/* Aoku — site system */
:root {
  --ink: #1c2430;
  --muted: #5b6675;
  --line: rgba(28, 36, 48, 0.1);
  --bg: #f7f4ef;
  --bg-soft: #efeae2;
  --bg-dark: #1f4d57;
  --text-on-dark: #f7f4ef;
  --muted-on-dark: rgba(247, 244, 239, 0.72);
  --blue: #1f6f7a;
  --accent: #1f6f7a;
  --accent-soft: #d7ebea;
  --port: #1e4d7b;
  --erp: #4a3f32;
  --lims: #2a4a5c;
  --games: #b85a2a;
  --nav-h: 56px;
  --max: 980px;
  --wide: 1120px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  word-break: break-word;
  overflow-wrap: anywhere;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
}

/* —— Nav —— */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: transparent;
}

/* Blur on a pseudo so fixed mobile menu is not trapped by backdrop-filter */
.site-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(247, 244, 239, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  pointer-events: none;
  z-index: 0;
}

.site-nav__inner {
  position: relative;
  z-index: 1;
  max-width: var(--wide);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 max(22px, env(safe-area-inset-right, 0px)) 0 max(22px, env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-nav__brand {
  color: var(--ink);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav__brand:hover {
  color: var(--accent);
  text-decoration: none;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__links a {
  color: var(--ink);
  font-size: 17px;
  font-weight: 560;
  padding: 0 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  border-radius: 980px;
}

.site-nav__links a:hover,
.site-nav__links a.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

.site-nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5.5px;
}

.site-nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 0;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.site-nav.is-open .site-nav__toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav.is-open .site-nav__toggle span:nth-child(2) {
  opacity: 0;
}

.site-nav.is-open .site-nav__toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* —— Layout —— */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 max(22px, env(safe-area-inset-right, 0px)) 0 max(22px, env(safe-area-inset-left, 0px));
}

.wrap--wide {
  max-width: var(--wide);
}

main {
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
}

/* —— Typography —— */
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0 0 8px;
}

.eyebrow--light {
  color: var(--muted-on-dark);
}

.display {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.display--sm {
  font-size: clamp(28px, 4.5vw, 48px);
}

.lede {
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.016em;
  color: var(--muted);
  margin: 0;
  max-width: 36em;
}

.lede--light {
  color: var(--muted-on-dark);
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 12px;
}

.section-copy {
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 40px;
  max-width: 38em;
}

.section-copy--light {
  color: var(--muted-on-dark);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  text-decoration: none;
  opacity: 0.88;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--blue);
  padding-left: 8px;
  padding-right: 8px;
}

.btn--ghost::after {
  content: " ›";
  font-weight: 400;
}

.btn--light {
  background: #fff;
  color: var(--ink);
}

.btn--on-dark {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  margin-top: 28px;
}

/* —— Sections —— */
.section {
  padding: 88px 0;
}

.section--tight {
  padding: 64px 0;
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section--soft {
  background: var(--bg-soft);
}

.section--port {
  background: linear-gradient(180deg, #1a4550 0%, #245864 100%);
  color: var(--text-on-dark);
}

.section--erp {
  background: linear-gradient(180deg, #3d342b 0%, #4a4036 100%);
  color: var(--text-on-dark);
}

.section--lims {
  background:
    radial-gradient(ellipse 70% 55% at 85% 0%, rgba(31, 111, 122, 0.1), transparent 62%),
    linear-gradient(180deg, #e6eef0 0%, #f4f7f8 100%);
}

.section--games {
  background: linear-gradient(180deg, #2c211c 0%, #3a2a22 100%);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}

.section--games .games-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at 70% 40%,
    rgba(184, 90, 42, 0.28),
    transparent 70%
  );
  pointer-events: none;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100dvh - var(--nav-h));
  display: flex;
  align-items: stretch;
  padding: 22px 0 56px;
  background:
    radial-gradient(ellipse 80% 60% at 85% 10%, rgba(215, 235, 234, 0.95), transparent 55%),
    linear-gradient(165deg, #e8f2f1 0%, #f7f4ef 48%, #efeae2 100%);
  color: var(--ink);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  mix-blend-mode: multiply;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(247, 244, 239, 0.15) 0%,
    rgba(247, 244, 239, 0.35) 55%,
    rgba(247, 244, 239, 0.82) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__layout {
  height: 100%;
  min-height: calc(100dvh - var(--nav-h) - 78px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 28px;
}

.hero__stage {
  flex: 1 1 0;
  min-height: 220px;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  /* Slightly taller top row so LIMS wide card shows more chart */
  grid-template-rows: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: 12px;
}

.hero-shot {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #d5ddd8;
  box-shadow:
    0 16px 40px rgba(28, 36, 48, 0.1),
    0 0 0 1px rgba(28, 36, 48, 0.06);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .hero-shot:hover {
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow:
      0 22px 48px rgba(28, 36, 48, 0.16),
      0 0 0 1px rgba(28, 36, 48, 0.08);
  }
}

.hero-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.hero-shot span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 11px;
  border-radius: 980px;
  background: rgba(247, 244, 239, 0.94);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}

.hero-shot--games {
  grid-row: 1 / 3;
}

.hero-shot--lims {
  grid-column: 2 / 4;
}

.hero-shot--games img {
  /* Tall slot: lift collage & bias toward character posters */
  height: 118%;
  top: auto;
  bottom: 0;
  object-position: 40% 18%;
}

.hero-shot--lims img {
  /* Wide slot: keep sidebar brand + trend chart in frame */
  object-position: left 8%;
}

.hero-shot--erp img {
  object-position: left top;
}

.hero-shot--port img {
  object-position: 68% center;
}

.hero__copy .btn-row {
  margin-bottom: 0;
}

.hero .display {
  color: var(--ink);
}

.hero .eyebrow--light,
.hero .lede--light {
  color: var(--muted);
}

.hero .btn--on-dark {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(31, 111, 122, 0.35);
}

.hero .btn--on-dark:hover {
  background: var(--accent-soft);
}

.page-hero {
  padding: 72px 0 48px;
  background: var(--bg-soft);
}

.page-hero--dark {
  background: linear-gradient(165deg, #e8f2f1 0%, #f7f4ef 100%);
  color: var(--ink);
}

.page-hero--dark .lede {
  color: var(--muted);
}

.page-hero--dark .eyebrow {
  color: var(--muted);
}

.page-hero--dark .btn--on-dark {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(31, 111, 122, 0.35);
}

.page-hero--photo {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 520px;
  padding: 96px 0 72px;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: right center;
}

.page-hero__veil {
  position: absolute;
  inset: 0;
}

.page-hero--photo .wrap {
  position: relative;
  z-index: 1;
}

.page-hero--ink {
  color: var(--text-on-dark);
  background: #16343c;
}

.page-hero--ink .page-hero__veil {
  background: linear-gradient(
    90deg,
    rgba(16, 28, 32, 0.86) 0%,
    rgba(16, 28, 32, 0.58) 38%,
    rgba(16, 28, 32, 0.12) 72%
  );
}

.page-hero--ink .eyebrow,
.page-hero--ink .lede {
  color: var(--muted-on-dark);
}

.page-hero--ink .btn--ghost {
  color: #fff;
}

.page-hero--paper {
  color: var(--ink);
  background: var(--bg);
}

.page-hero--paper .page-hero__veil {
  background: linear-gradient(
    90deg,
    rgba(247, 244, 239, 0.92) 0%,
    rgba(247, 244, 239, 0.72) 42%,
    rgba(247, 244, 239, 0.18) 78%
  );
}

.page-hero--paper .lede {
  color: var(--ink);
}

.page-hero--paper .btn--on-dark {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(31, 111, 122, 0.35);
}

/* —— Facts strip —— */
.facts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px 16px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.fact__value {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.fact__label {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.35;
}

/* —— Feature chapters —— */
.chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0;
}

.chapter:not(:last-child) {
  border-bottom: 1px solid var(--line);
}

.chapter--reverse .chapter__media {
  order: -1;
}

.chapter__media {
  border-radius: 18px;
  overflow: hidden;
  background: #e8e8ed;
  aspect-ratio: 16 / 10;
}

.chapter__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chapter__media--lims {
  aspect-ratio: 1024 / 549;
}

.chapter__kicker {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  margin: 0 0 8px;
}

.chapter__title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 12px;
}

.chapter__body {
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 20px;
}

/* —— Cards —— */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  padding: 28px 24px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.card--soft {
  background: var(--bg-soft);
  border: 0;
}

.card--dark {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
}

.card__title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}

.card__body {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.card--dark .card__body {
  color: var(--muted-on-dark);
}

.card__stat {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

/* —— Case —— */
.case {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  padding: 36px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 20px;
}

.case__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin: 16px 0 0;
}

.case__stats strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.case__stats span {
  font-size: 13px;
  color: var(--muted);
}

/* —— Team —— */
.team-card {
  text-align: left;
}

.team-card__photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  background: #e8e8ed;
}

.team-card__name {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 2px;
}

.team-card__role {
  font-size: 14px;
  color: var(--blue);
  margin: 0 0 10px;
}

.team-card__bio {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 12px;
}

.team-card__contact {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.team-card__contact a {
  color: var(--ink);
}

/* —— Media blocks —— */
.shot {
  border-radius: 18px;
  overflow: hidden;
  background: #e8e8ed;
}

.shot img {
  width: 100%;
  display: block;
}

.shot--shadow {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  aspect-ratio: 16 / 10;
}

.gallery--portrait img {
  aspect-ratio: 3 / 4;
}

/* —— Contact strip —— */
.contact-strip {
  padding: 72px 0;
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.contact-strip .eyebrow--light,
.contact-strip .section-copy--light {
  color: rgba(247, 244, 239, 0.92);
}

.contact-strip a {
  color: #b8f3fb;
}

.contact-strip .btn--primary,
.contact-strip .btn--on-dark {
  color: #fff;
}

.contact-strip .btn--ghost {
  color: #9ed0ff;
}

.contact-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.contact-list li {
  font-size: 17px;
}

.contact-list span {
  color: rgba(247, 244, 239, 0.92);
  display: inline-block;
  min-width: 4.5em;
}

/* —— Footer —— */
.site-footer {
  background: #183a42;
  color: rgba(247, 244, 239, 0.7);
  padding: 40px 0 calc(48px + env(safe-area-inset-bottom, 0px));
  font-size: 12px;
  line-height: 1.6;
}

.site-footer a {
  color: rgba(247, 244, 239, 0.7);
}

.site-footer a:hover {
  color: #f7f4ef;
}

.site-footer__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 max(22px, env(safe-area-inset-right, 0px)) 0 max(22px, env(safe-area-inset-left, 0px));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.site-footer nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* —— Policy —— */
.policy-shell {
  padding: 40px 0 72px;
  background: var(--bg-soft);
}

.policy-shell article {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 28px 48px;
  background: #fff;
  border-radius: 16px;
}

.policy-shell .back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 14px;
}

/* —— Responsive —— */
@media (max-width: 1100px) {
  .facts {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .site-nav__toggle {
    display: inline-flex;
  }

  .site-nav__links {
    position: fixed;
    top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 0;
    padding: 16px max(22px, env(safe-area-inset-right, 0px))
      calc(40px + env(safe-area-inset-bottom, 0px)) max(22px, env(safe-area-inset-left, 0px));
    background: #f7f4ef;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
      visibility 0s linear 0.25s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav.is-open .site-nav__links {
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
      visibility 0s;
  }

  .site-nav__links > li {
    width: 100%;
  }

  .site-nav__links a {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 17px;
    font-weight: 550;
    padding: 14px 16px;
    min-height: 52px;
    border-radius: 14px;
    border-bottom: 0;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
  }

  .site-nav__links a:hover,
  .site-nav__links a.is-active {
    background: var(--accent-soft);
    color: var(--accent);
  }

  .site-nav__links a::before {
    content: "";
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
  }

  /* Filled SVGs so CSS mask renders clearly */
  .site-nav__links a[data-nav="erp"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='8' height='8' rx='1.5' fill='black'/%3E%3Crect x='13' y='3' width='8' height='8' rx='1.5' fill='black'/%3E%3Crect x='3' y='13' width='8' height='8' rx='1.5' fill='black'/%3E%3Crect x='13' y='13' width='8' height='8' rx='1.5' fill='black'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='8' height='8' rx='1.5' fill='black'/%3E%3Crect x='13' y='3' width='8' height='8' rx='1.5' fill='black'/%3E%3Crect x='3' y='13' width='8' height='8' rx='1.5' fill='black'/%3E%3Crect x='13' y='13' width='8' height='8' rx='1.5' fill='black'/%3E%3C/svg%3E");
  }

  .site-nav__links a[data-nav="lims"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 2h6a1 1 0 0 1 0 2h-1v5.2l5.1 8.2A3.5 3.5 0 0 1 16.1 22H7.9a3.5 3.5 0 0 1-3-5.6L10 9.2V4H9a1 1 0 1 1 0-2zm1.7 9.3L6.8 17.3a1.5 1.5 0 0 0 1.1 2.2h8.2a1.5 1.5 0 0 0 1.1-2.2l-3.9-6z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 2h6a1 1 0 0 1 0 2h-1v5.2l5.1 8.2A3.5 3.5 0 0 1 16.1 22H7.9a3.5 3.5 0 0 1-3-5.6L10 9.2V4H9a1 1 0 1 1 0-2zm1.7 9.3L6.8 17.3a1.5 1.5 0 0 0 1.1 2.2h8.2a1.5 1.5 0 0 0 1.1-2.2l-3.9-6z'/%3E%3C/svg%3E");
  }

  .site-nav__links a[data-nav="games"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 8h10a4 4 0 0 1 3.9 4.8l-.7 3.2A3.5 3.5 0 0 1 16.8 19H7.2a3.5 3.5 0 0 1-3.4-2.9l-.7-3.2A4 4 0 0 1 7 8zm1.5 3.2a1 1 0 0 0-1 1V13H6.2a1 1 0 1 0 0 2H7.5v1.3a1 1 0 1 0 2 0V15H11a1 1 0 1 0 0-2H9.5v-.8a1 1 0 0 0-1-1zM15 12.2a1.1 1.1 0 1 0 0 2.2 1.1 1.1 0 0 0 0-2.2zm2.6 2.2a1.1 1.1 0 1 0 0 2.2 1.1 1.1 0 0 0 0-2.2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 8h10a4 4 0 0 1 3.9 4.8l-.7 3.2A3.5 3.5 0 0 1 16.8 19H7.2a3.5 3.5 0 0 1-3.4-2.9l-.7-3.2A4 4 0 0 1 7 8zm1.5 3.2a1 1 0 0 0-1 1V13H6.2a1 1 0 1 0 0 2H7.5v1.3a1 1 0 1 0 2 0V15H11a1 1 0 1 0 0-2H9.5v-.8a1 1 0 0 0-1-1zM15 12.2a1.1 1.1 0 1 0 0 2.2 1.1 1.1 0 0 0 0-2.2zm2.6 2.2a1.1 1.1 0 1 0 0 2.2 1.1 1.1 0 0 0 0-2.2z'/%3E%3C/svg%3E");
  }

  .site-nav__links a[data-nav="port"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 3.5a1.5 1.5 0 1 1 2 0V4h4.2a2.2 2.2 0 0 1 2 3.2L17.4 12H13v5.2c1.9-.2 3.6.3 5.1 1.4a1 1 0 0 1-1.2 1.6c-1.4-1-2.8-1.4-4.3-1.2v.5a1 1 0 1 1-2 0v-.5c-1.5-.2-2.9.2-4.3 1.2a1 1 0 1 1-1.2-1.6c1.5-1.1 3.2-1.6 5.1-1.4V12H6.6L4.8 7.2A2.2 2.2 0 0 1 6.8 4H11z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 3.5a1.5 1.5 0 1 1 2 0V4h4.2a2.2 2.2 0 0 1 2 3.2L17.4 12H13v5.2c1.9-.2 3.6.3 5.1 1.4a1 1 0 0 1-1.2 1.6c-1.4-1-2.8-1.4-4.3-1.2v.5a1 1 0 1 1-2 0v-.5c-1.5-.2-2.9.2-4.3 1.2a1 1 0 1 1-1.2-1.6c1.5-1.1 3.2-1.6 5.1-1.4V12H6.6L4.8 7.2A2.2 2.2 0 0 1 6.8 4H11z'/%3E%3C/svg%3E");
  }

  .site-nav__links a[data-nav="about"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 4a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7zm0 9c3.7 0 7 1.9 7 4.2V19a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-1.8C5 14.9 8.3 13 12 13z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 4a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7zm0 9c3.7 0 7 1.9 7 4.2V19a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-1.8C5 14.9 8.3 13 12 13z'/%3E%3C/svg%3E");
  }

  .site-nav__links a[data-nav="contact"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7.2 3.5h2.3a1.2 1.2 0 0 1 1.15.85l.7 2.4a1.2 1.2 0 0 1-.3 1.15L9.5 9.7a12.2 12.2 0 0 0 4.8 4.8l1.8-1.55a1.2 1.2 0 0 1 1.15-.3l2.4.7a1.2 1.2 0 0 1 .85 1.15v2.3a2 2 0 0 1-2.2 2A15.2 15.2 0 0 1 5.2 5.7a2 2 0 0 1 2-2.2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7.2 3.5h2.3a1.2 1.2 0 0 1 1.15.85l.7 2.4a1.2 1.2 0 0 1-.3 1.15L9.5 9.7a12.2 12.2 0 0 0 4.8 4.8l1.8-1.55a1.2 1.2 0 0 1 1.15-.3l2.4.7a1.2 1.2 0 0 1 .85 1.15v2.3a2 2 0 0 1-2.2 2A15.2 15.2 0 0 1 5.2 5.7a2 2 0 0 1 2-2.2z'/%3E%3C/svg%3E");
  }

  .page-hero {
    padding: 56px 0 40px;
  }

  .page-hero--photo {
    min-height: 360px;
    padding: 64px 0 40px;
  }

  .page-hero--ink .page-hero__veil {
    background: linear-gradient(
      180deg,
      rgba(16, 28, 32, 0.55) 0%,
      rgba(16, 28, 32, 0.82) 100%
    );
  }

  .page-hero--paper .page-hero__veil {
    background: linear-gradient(
      180deg,
      rgba(247, 244, 239, 0.78) 0%,
      rgba(247, 244, 239, 0.92) 100%
    );
  }

  .hero {
    min-height: 0;
    padding: 16px 0 40px;
    align-items: stretch;
  }

  .hero__layout {
    min-height: 0;
    gap: 22px;
  }

  .hero__stage {
    flex: none;
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 156px 128px;
  }

  .hero-shot--games,
  .hero-shot--lims {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-shot--games img {
    height: 100%;
    top: 0;
    bottom: auto;
    object-position: center 28%;
  }

  .hero-shot--lims img {
    object-position: left top;
  }

  .hero-shot span {
    left: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .section {
    padding: 48px 0;
  }

  .section--tight {
    padding: 40px 0;
  }

  .chapter {
    gap: 28px;
    padding: 40px 0;
  }

  .section-copy {
    font-size: 17px;
    margin-bottom: 28px;
  }

  .btn-row {
    margin-top: 22px;
  }

  .btn-row .btn--primary {
    width: 100%;
  }

  .contact-strip {
    padding: 48px 0 calc(48px + env(safe-area-inset-bottom, 0px));
  }

  .contact-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 16px;
  }

  .contact-list span {
    min-width: 0;
    font-size: 13px;
  }

  .facts {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
    padding: 36px 0;
  }

  .chapter,
  .chapter--reverse .chapter__media,
  .case {
    grid-template-columns: 1fr;
  }

  .chapter--reverse .chapter__media {
    order: 0;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery--2col {
    grid-template-columns: 1fr 1fr;
  }

  .case {
    padding: 24px;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .policy-shell {
    padding: 28px 0 calc(48px + env(safe-area-inset-bottom, 0px));
  }

  .policy-shell article {
    padding: 24px 18px 36px;
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .wrap,
  .site-nav__inner,
  .site-footer__inner {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }

  .hero__stage {
    grid-template-rows: 120px 108px;
    gap: 10px;
  }

  .hero-shot {
    border-radius: 12px;
  }

  .hero-shot span {
    left: 6px;
    bottom: 6px;
    padding: 4px 9px;
    font-size: 11px;
  }

  .facts {
    grid-template-columns: 1fr 1fr;
    gap: 16px 10px;
  }

  .gallery--2col {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 22px 18px;
  }

  .case {
    padding: 20px;
  }

  .page-hero--photo {
    min-height: 320px;
    padding: 56px 0 36px;
  }
}
