/* WAO Team — portfolio */

:root {
  --ink: #0A1033;
  --navy: #0E1A66;
  --cobalt: #1B33C9;
  --electric: #3D5BFF;
  --peri: #AFC0FF;
  --mist: #E3E8FF;
  --cream: #F1EEE3;
  --text: #14182E;
  --dim: #3A4AA8;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'Archivo', system-ui, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
  --gutter: 64px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-gated { overflow: hidden; }
img { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
/* optical balance: Playfair italic runs smaller and lighter than Archivo Black */
.section-title em, .team__title em, .marquee__unit em, .contact__title em { font-size: 1.06em; margin-left: 0.05em; line-height: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--peri); outline-offset: 3px; }

html.has-cursor, html.has-cursor * { cursor: none !important; }

/* page background that blends between sections */
.backdrop { position: fixed; inset: 0; z-index: -1; background: var(--ink); }
body::after {
  content: ''; position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background-image: url('/assets/grain.png'); background-size: 200px 200px;
  opacity: 0.09; mix-blend-mode: overlay;
}

/* star light layers */
.glow { position: absolute; display: block; }
.glow--xl { width: 760px; height: 760px; left: -380px; top: -380px; color: var(--electric); filter: blur(60px); opacity: 0.85; }
.glow--md { width: 420px; height: 420px; left: -210px; top: -210px; color: var(--peri); filter: blur(22px); opacity: 0.8; }
.glow--core { width: 180px; height: 180px; left: -90px; top: -90px; color: var(--cream); filter: blur(4px); opacity: 0.9; }

/* shared */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.mask { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.line { display: block; transform: translateY(110%); transition: transform 1.1s var(--ease-out); }
.in .line, .line.in { transform: translateY(0); }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* logo */
.logo { display: inline-flex; align-items: baseline; gap: 0.06em; font-size: 24px; line-height: 1; white-space: nowrap; text-decoration: none; color: inherit; }
.logo__wao { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.logo__star { width: 0.74em; height: 0.74em; color: currentColor; }
.logo__team { font-family: var(--sans); font-weight: 800; font-stretch: 106%; }

.nav { display: flex; gap: 26px; font-family: var(--mono); font-size: 14px; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--peri); }
.lang { position: relative; padding-left: 26px; border-left: 1px solid currentColor; }
.lang__btn { display: inline-flex; align-items: center; gap: 6px; padding: 0; background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }
.lang__btn:hover { color: var(--peri); }
.lang__btn span { font-size: 10px; transition: transform 0.25s ease; }
.lang.open .lang__btn span { transform: rotate(180deg); }
.lang__menu { position: absolute; right: -12px; top: calc(100% + 14px); z-index: 90; min-width: 156px; margin: 0; padding: 6px; list-style: none;
  background: var(--ink); color: var(--cream); border-radius: 14px; box-shadow: 0 14px 34px rgba(10, 16, 51, 0.35);
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
.lang__menu::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.lang.open .lang__menu { opacity: 1; transform: none; pointer-events: auto; }
@media (hover: hover) and (pointer: fine) { .lang:hover .lang__menu { opacity: 1; transform: none; pointer-events: auto; } .lang:hover .lang__btn span { transform: rotate(180deg); } }
.lang__menu a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 12px; border-radius: 9px; color: var(--cream); }
.lang__menu a:hover { background: rgba(241, 238, 227, 0.08); color: var(--peri); }
.lang__menu a[aria-current] { color: var(--peri); }
.lang__menu a[aria-current]::after { content: '✦'; font-size: 11px; }
.mobile-menu__langs { display: flex; gap: 22px; }
.mobile-menu__lang { font-family: var(--mono); font-size: 14px; text-decoration: none; padding: 10px 0; color: var(--peri); }
.menu-btn { display: none; background: none; border: 0; padding: 10px 0; font-family: var(--mono); font-size: 14px; cursor: pointer; }

/* ENTRY GATE */
.gate {
  position: fixed; inset: 0; z-index: 90; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.9s ease, visibility 0.9s;
}
.gate.hide { opacity: 0; visibility: hidden; }
.gate__star { position: absolute; left: 50%; top: 40%; width: 0; height: 0; }
.gate__star .glow--xl { width: 420px; height: 420px; left: -210px; top: -210px; filter: blur(40px); opacity: 0.7; }
.gate__star .glow--md { width: 200px; height: 200px; left: -100px; top: -100px; filter: blur(14px); }
.gate__star .glow--core { width: 70px; height: 70px; left: -35px; top: -35px; filter: blur(2px); }
.gate__actions { position: absolute; left: 0; right: 0; top: calc(40% + 120px); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.gate__tag { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; color: var(--peri); }
.gate__enter {
  font-family: var(--mono); font-size: 15px; letter-spacing: 0.04em; color: var(--ink); background: var(--cream);
  border: 0; border-radius: 999px; padding: 0 30px; min-height: 50px; cursor: pointer; transition: transform 0.4s var(--ease-out);
}
.gate__enter:hover { transform: scale(1.05); }
.gate__silent { background: none; border: 0; padding: 6px; font-family: var(--mono); font-size: 12px; color: #8FA2F0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* TOP BAR */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center; padding: 22px 56px;
  color: var(--hdr-fg, var(--cream)); opacity: 0; transform: translateY(-10px); pointer-events: none;
  transition: opacity 0.4s, transform 0.4s, color 0.4s;
}
.topbar.show { opacity: 1; transform: none; pointer-events: auto; }
.topbar::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--hdr-bg, var(--ink)); opacity: 0.9;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background 0.4s;
}

.mobile-menu { position: fixed; inset: 0; z-index: 80; background: var(--ink); color: var(--cream); display: flex; flex-direction: column; padding: 24px 20px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu__close { align-self: flex-end; background: none; border: 0; font-family: var(--mono); font-size: 14px; padding: 10px 0; cursor: pointer; }
.mobile-menu nav { margin-top: auto; margin-bottom: auto; display: flex; flex-direction: column; gap: 10px; }
.mobile-menu nav a { font-weight: 900; font-size: 56px; letter-spacing: -0.04em; text-decoration: none; line-height: 1.05; }

/* progress rail + sound */
.rail { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); width: 2px; height: 120px; z-index: 40; background: rgba(241, 238, 227, 0.2); border-radius: 1px; transition: background 0.4s; }
.rail__fill { width: 2px; height: 0; background: var(--hdr-fg, var(--cream)); border-radius: 1px; }
.sound {
  position: fixed; right: 9px; top: calc(50% + 76px); z-index: 40; width: 22px; height: 22px; padding: 0; border: 0; background: transparent;
  display: flex; align-items: flex-end; justify-content: center; gap: 2px; cursor: pointer; opacity: 0; transition: opacity 0.6s;
}
.sound span { display: block; width: 2px; height: 3px; border-radius: 1px; background: var(--hdr-fg, var(--cream)); }
body:not(.is-gated) .sound { opacity: 1; }

/* HERO */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; background: var(--ink); color: var(--cream); }
.hero__scene { position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 45%, #1B33C9 0%, #13258F 55%, #0A1033 100%); opacity: 0; }
.hero__trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__glow { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; will-change: transform; }
.hero__inner { position: relative; z-index: 2; height: 100%; display: grid; grid-template-rows: auto 1fr auto auto; padding: 28px 56px 30px; }
.hero__bar { display: flex; justify-content: space-between; align-items: center; }
.reveal-nav { opacity: 0; transform: translateY(-10px); transition: opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s; }
.hero.nav-in .reveal-nav { opacity: 1; transform: none; }
.hero__title { align-self: center; margin: 0; text-align: center; font-weight: 900; font-size: clamp(52px, 10.4vw, 150px); line-height: 0.92; letter-spacing: -0.05em; }
.hero__title .line { transition-duration: 1.1s; }
.wao {
  display: inline-block; padding: 0 0.12em; margin: 0 -0.12em;
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em;
  background-image: linear-gradient(90deg, #8FA2F0, #8FA2F0);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.hero__sub { margin: 0 auto 40px; max-width: 760px; text-align: center; font-size: clamp(18px, 1.9vw, 26px); line-height: 1.35; letter-spacing: -0.01em; }
.hero__sub span, .team__sub span span { transition: color 0.4s; }
.word { color: #4A5FD8; }
.word.lit { color: var(--cream); }
.hero__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; font-family: var(--mono); font-size: 13px; color: var(--peri); }
.geo { display: flex; gap: 10px; align-items: center; font-variant-numeric: tabular-nums; }
.geo svg { width: 10px; height: 10px; color: var(--cream); flex: none; }
.geo__coords { color: var(--cream); white-space: pre; }
.geo__name { transition: opacity 0.3s; white-space: pre; }
.hero__scroll { text-decoration: none; }

/* WORK */
.work { position: relative; color: var(--text); padding: 120px 0; }
.marquee { overflow: hidden; white-space: nowrap; margin-bottom: 72px; }
.marquee__track { display: inline-flex; will-change: transform; }
.marquee__unit { display: inline-block; padding-right: 0.32em; font-weight: 900; font-size: clamp(64px, 10vw, 128px); letter-spacing: -0.05em; line-height: 1.1; color: var(--cobalt); }
.marquee__unit svg { width: 0.62em; height: 0.62em; vertical-align: 0.05em; margin-left: 0.32em; color: var(--cobalt); }

.projects { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--text); }
.project { border-bottom: 1px solid var(--text); }
.project__row {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer;
  display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 0.8fr) 64px; gap: 20px; align-items: center; padding: 26px 0;
}
.project__row:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 4px; }
.project__n, .project__type, .project__year { font-family: var(--mono); font-size: 14px; }
.project__year { text-align: right; }
.project__name {
  display: flex; align-items: center; gap: 14px; font-weight: 900; font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.035em; line-height: 1;
  transition: transform 0.5s var(--ease-out), color 0.3s;
}
.project__name svg { flex: none; width: 30px; height: 30px; margin-left: -44px; color: var(--cobalt); transform: scale(0) rotate(-90deg); transition: transform 0.5s cubic-bezier(0.3, 1.4, 0.4, 1); }
.project__row:hover .project__name, .project.is-open .project__name { transform: translateX(44px); color: var(--cobalt); }
.project__row:hover .project__name svg, .project.is-open .project__name svg { transform: scale(1) rotate(0); }
.project__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.8s var(--ease-io); }
.project.is-open .project__panel { grid-template-rows: 1fr; }
.project__body { min-height: 0; overflow: hidden; display: grid; grid-template-columns: 64px minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
.project__media { grid-column: 2; margin: 4px 0 40px; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #ECE8DA; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.2s var(--ease-out); }
.project.is-open .project__media img { transform: scale(1); }
.project__info { margin: 4px 0 40px; display: flex; flex-direction: column; gap: 20px; opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease 0.25s, transform 0.6s ease 0.25s; }
.project.is-open .project__info { opacity: 1; transform: none; }
.project__desc { margin: 0; font-size: 21px; line-height: 1.4; }
.hl__v { display: block; font-weight: 900; font-size: 52px; letter-spacing: -0.04em; line-height: 1.05; color: var(--cobalt); }
.hl--serif .hl__v { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.hl__l { display: block; margin-top: 8px; font-family: var(--mono); font-size: 13px; }
.project__note { margin: 0; display: flex; gap: 8px; align-items: center; font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--cobalt); }
.project__note svg { width: 12px; height: 12px; flex: none; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-family: var(--mono); font-size: 12px; border: 1px solid currentColor; border-radius: 999px; padding: 6px 12px; }
.chips--light li { border-color: var(--peri); }
.project__link { font-family: var(--mono); font-size: 14px; color: var(--cobalt); text-underline-offset: 3px; }

.preview { position: fixed; left: 0; top: 0; z-index: 30; width: 340px; height: 255px; border-radius: 14px; overflow: hidden; background: #ECE8DA; border: 1px solid #D9D4C3; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.preview img { width: 100%; height: 100%; object-fit: cover; }

/* NUMBERS */
.numbers { position: relative; color: var(--cream); padding: 110px 0; }
.numbers__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.stat__line { height: 1px; width: 0; background: var(--cream); margin-bottom: 22px; transition: width 1.1s var(--ease-out); }
.stat.in .stat__line { width: 100%; }
.stat p { margin: 10px 0 0; font-family: var(--mono); font-size: 14px; color: #D6DDFF; }
.odo { display: flex; font-weight: 900; font-size: 84px; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.odo__d { display: inline-block; height: 1.05em; overflow: hidden; }
.odo__reel { display: flex; flex-direction: column; transition: transform 1.8s cubic-bezier(0.2, 0.7, 0.1, 1); }
.odo__reel span { display: block; height: 1.05em; }
.stat--big { margin-top: 80px; }
.stat__big-row { display: flex; align-items: flex-end; gap: 40px; }
.odo--big { flex: none; font-size: clamp(72px, 10.4vw, 150px); letter-spacing: -0.04em; }
.stat--big p { margin: 0 0 14px; max-width: 440px; font-family: var(--sans); font-size: 30px; line-height: 1.2; letter-spacing: -0.01em; color: var(--cream); }

/* TEAM */
.team { position: relative; color: var(--cream); padding: 120px 0 140px; }
.team__head { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 40px; align-items: end; }
.team__title { margin: 0; font-weight: 900; font-size: clamp(64px, 7.8vw, 112px); line-height: 0.92; letter-spacing: -0.05em; }
.team__sub { margin: 0 0 14px; font-size: 24px; line-height: 1.4; letter-spacing: -0.01em; }
.team__subline { display: block; white-space: nowrap; }
.map { margin: 40px 0 0; }
.map svg { width: 100%; height: auto; display: block; overflow: visible; }
.map__base { fill: none; stroke: #2A3A9A; stroke-width: 3.4; stroke-linecap: round; opacity: 0; transition: opacity 1.2s; }
.map__glow { filter: blur(7px); }
.map__glow path, .map__country { fill: none; stroke-linecap: round; transition: opacity 0.6s, stroke 0.4s; }
.map__labels text { font-family: var(--mono); font-size: 17px; fill: var(--cream); transition: opacity 0.4s; }
.map__labels tspan.sub { fill: var(--peri); }
.map__legend { display: none; }

.cards { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { height: 300px; perspective: 1200px; outline: none; cursor: pointer; }
.card:focus-visible .card__inner { outline: 2px solid var(--peri); outline-offset: 4px; border-radius: 18px; }
.card__inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.8s cubic-bezier(0.3, 1.2, 0.4, 1); }
.card.flipped .card__inner { transform: rotateY(180deg); }
.card__front, .card__back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 18px; display: flex; flex-direction: column; gap: 14px; }
.card__front { background: var(--cream); color: var(--text); padding: 16px; }
.card__back { background: var(--cobalt); color: var(--cream); padding: 20px; transform: rotateY(180deg); }
.card__meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; }
.card__back .card__meta { color: #D6DDFF; }
.card__photo { flex: 1; position: relative; overflow: hidden; border-radius: 12px; background: #D9D4C3; }
.card__photo img { position: absolute; max-width: none; height: auto; }
.card__name { margin: 0; font-weight: 900; font-size: 26px; letter-spacing: -0.03em; }
.card__role { margin: 4px 0 0; font-family: var(--mono); font-size: 13px; }
.card__bio { margin: 0; font-size: 18px; line-height: 1.4; }
.card__back .chips { margin-top: auto; }
.card__link { font-family: var(--mono); font-size: 13px; text-underline-offset: 3px; }

/* SERVICES */
.services { position: relative; color: var(--cream); padding: 120px 0; }
.section-title { margin: 0 0 56px; font-weight: 900; font-size: clamp(56px, 6.7vw, 96px); line-height: 0.95; letter-spacing: -0.045em; }
.services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.services__group { margin: 0 0 18px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; color: var(--peri); }
.services__group--second { margin-top: 64px; }
.svc { display: flex; flex-direction: column; gap: 12px; }
.svc__line { height: 1px; width: 0; background: var(--cream); transition: width 1.1s var(--ease-out); }
.svc.in .svc__line { width: 100%; }
.svc__top { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-family: var(--mono); font-size: 13px; color: #D6DDFF; }
.svc__top svg { width: 18px; height: 18px; color: var(--cream); transition: transform 0.6s cubic-bezier(0.3, 1.4, 0.4, 1); }
.svc:hover .svc__top svg { transform: rotate(135deg) scale(1.5); }
.svc h3 { margin: 0; min-height: 2.2em; font-weight: 800; font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; transition: color 0.3s; }
.svc:hover h3 { color: var(--peri); }
.svc p { margin: 0; font-size: 16px; line-height: 1.5; color: #E4E8FF; }
.svc__eg { margin-top: auto; padding-top: 8px; font-family: var(--mono); font-size: 13px; color: #D6DDFF; }

.process { margin-top: 110px; --p: 0; --rot: 0deg; }
.process__label { margin: 0 0 28px; font-family: var(--mono); font-size: 14px; letter-spacing: 0.12em; }
.process__track { position: relative; height: 2px; background: #2E47D6; }
.process__fill { position: absolute; left: 0; top: 0; height: 2px; width: calc(var(--p) * 100%); background: var(--cream); }
.process__star { position: absolute; top: 1px; left: calc(var(--p) * 100%); width: 0; height: 0; pointer-events: none; }
.process__halo { position: absolute; width: 160px; height: 160px; left: -80px; top: -80px; color: var(--peri); filter: blur(18px); opacity: 0.8; }
.process__core { position: absolute; width: 34px; height: 34px; left: -17px; top: -17px; color: var(--cream); transform: rotate(var(--rot)); }
.process__steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { opacity: 0.25; transform: translateY(12px); transition: opacity 0.6s, transform 0.6s var(--ease-out); }
.step.lit { opacity: 1; transform: none; }
.step__n { font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1; }
.step h3 { margin: 10px 0 0; font-weight: 800; font-size: 22px; }
.step p { margin: 8px 0 0; font-size: 16px; line-height: 1.5; color: #E4E8FF; }

/* CONTACT */
.contact { position: relative; color: var(--cobalt); overflow: hidden; }
.contact__glow { position: absolute; right: -120px; top: 40px; width: 620px; height: 620px; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.contact.in .contact__glow { opacity: 1; }
.contact__glow-a { position: absolute; inset: 0; width: 620px; height: 620px; color: var(--electric); filter: blur(70px); opacity: 0.55; }
.contact__glow-b { position: absolute; left: 160px; top: 160px; width: 300px; height: 300px; color: var(--peri); filter: blur(26px); opacity: 0.5; }
.contact__wrap { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-top: 110px; padding-bottom: 36px; }
.contact__label { margin: 0 0 20px; font-family: var(--mono); font-size: 14px; letter-spacing: 0.12em; color: var(--text); }
.contact__title { margin: 0 0 28px; font-weight: 900; font-size: clamp(28px, 3.9vw, 50px); line-height: 1; letter-spacing: -0.04em; color: var(--text); white-space: nowrap; }
.contact__email {
  display: block; overflow: hidden; padding-bottom: 0.08em; white-space: nowrap; text-decoration: none; color: var(--cobalt);
  font-weight: 900; font-size: clamp(34px, 9.2vw, 118px); line-height: 1; letter-spacing: -0.055em;
}
.contact__email .ch { display: inline-block; transform: translateY(110%); transition: transform 0.9s var(--ease-out), color 0.4s ease; }
.contact__email .ch--at { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.contact.in .contact__email .ch { transform: none; }
.contact__email.copied .ch { color: var(--electric); }
.contact__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 28px; border-radius: 999px; font-family: var(--mono); font-size: 15px; text-decoration: none; cursor: pointer; }
.btn--solid { background: var(--cobalt); color: var(--cream); border: 1px solid var(--cobalt); }
.btn--line { background: transparent; color: var(--cobalt); border: 1px solid var(--cobalt); }
.footer { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--cobalt); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; font-family: var(--mono); font-size: 13px; color: var(--text); }
.footer__legal { display: flex; justify-content: flex-end; gap: 20px; }
.footer__legal button { background: none; border: 0; padding: 4px 0; font-family: var(--mono); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* LEGAL */
.legal-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(10, 16, 51, 0.6); opacity: 0; transition: opacity 0.5s ease; }
.legal-backdrop.show { opacity: 1; }
.legal {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 71; width: min(760px, 100vw);
  background: var(--cream); color: var(--text); display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform 0.7s var(--ease-io); visibility: hidden;
}
.legal.open { transform: none; visibility: visible; }
.legal__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 48px; border-bottom: 1px solid #D9D4C3; font-family: var(--mono); font-size: 13px; }
.legal__tabs { display: flex; gap: 8px; }
.legal__tabs button { border: 1px solid var(--cobalt); border-radius: 999px; padding: 8px 14px; background: transparent; color: var(--cobalt); font-family: var(--mono); font-size: 13px; cursor: pointer; }
.legal__tabs button[aria-selected="true"] { background: var(--cobalt); color: var(--cream); }
.legal__close { background: none; border: 0; color: var(--cobalt); font-family: var(--mono); font-size: 13px; cursor: pointer; padding: 8px 4px; }
.legal__scroll { flex: 1; overflow-y: auto; padding: 48px 48px 64px; -webkit-overflow-scrolling: touch; }
.legal__doc h2 { margin: 0 0 8px; font-weight: 900; font-size: 56px; letter-spacing: -0.04em; line-height: 1; color: var(--cobalt); }
.legal__sub { margin: 0 0 36px; font-family: var(--mono); font-size: 12px; color: #5A5E70; }
.legal__doc h3 { margin: 28px 0 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.legal__doc p, .legal__doc li { font-size: 15px; line-height: 1.6; }
.legal__doc p { margin: 0 0 10px; }
.legal__doc ul { padding-left: 20px; }
.legal__rows { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 12px; }
.legal__row { border: 1px solid #D9D4C3; border-radius: 12px; padding: 14px 16px; background: #FBFAF5; }
.legal__row span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--cobalt); margin-bottom: 6px; }
.legal__row strong { display: block; font-size: 15px; margin-bottom: 6px; }
.legal__row p { margin: 0; font-size: 14px; color: #3A3F55; }

/* CURSOR */
.cursor { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; display: none; opacity: 0; transition: opacity 0.3s; }
html.has-cursor .cursor { display: block; }
.cursor__halo { position: absolute; width: 64px; height: 64px; left: -32px; top: -32px; filter: blur(10px); opacity: 0; transform: scale(0.4); transition: opacity 0.35s, transform 0.5s cubic-bezier(0.3, 1.4, 0.4, 1), color 0.3s; }
.cursor__star { position: absolute; width: 20px; height: 20px; left: -10px; top: -10px; transition: transform 0.6s cubic-bezier(0.3, 1.4, 0.4, 1), color 0.3s; }
.cursor.act .cursor__halo { opacity: 0.9; transform: scale(1); }
.cursor.act .cursor__star { transform: rotate(90deg) scale(1.35); }

/* ---------- TABLET ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .hero__inner { padding: 24px 40px 28px; }
  .topbar { padding: 20px 40px; }
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { height: 360px; }
  .team__head { grid-template-columns: 1fr; gap: 24px; }
  .team__subline { white-space: normal; }
  .stat__big-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .contact__title { white-space: normal; }
}

@media (max-width: 900px) {
  .map__labels { display: none; }
  .map__legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; font-family: var(--mono); font-size: 12px; }
  .map__legend span { border: 1px solid #2A3A9A; border-radius: 999px; padding: 6px 10px; color: var(--peri); transition: color 0.3s, border-color 0.3s; }
  .map__legend span.on { color: var(--cream); border-color: var(--cream); }
}

/* ---------- MOBILE ---------- */
@media (max-width: 700px) {
  :root { --gutter: 20px; }
  .nav { display: none; }
  .menu-btn { display: block; }
  .rail { display: none; }
  .sound { top: auto; bottom: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; background: rgba(10, 16, 51, 0.55); align-items: center; padding: 0 12px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .sound span { background: var(--cream); }
  .topbar { padding: 14px 20px; }
  .logo { font-size: 21px; }

  .hero { min-height: 560px; }
  .hero__inner { padding: 18px 20px 22px; }
  .hero__title { font-size: clamp(46px, 14.5vw, 76px); line-height: 0.95; }
  .hero__sub { font-size: 17px; margin-bottom: 28px; }
  .hero__foot { font-size: 11px; gap: 10px; }
  .geo__name { display: none; }
  .hero__scroll { margin-right: 52px; }
  .glow--xl { width: 480px; height: 480px; left: -240px; top: -240px; filter: blur(44px); }
  .glow--md { width: 260px; height: 260px; left: -130px; top: -130px; filter: blur(16px); }
  .glow--core { width: 110px; height: 110px; left: -55px; top: -55px; }

  .work { padding: 80px 0; }
  .marquee { margin-bottom: 40px; }
  .project__row { grid-template-columns: 30px minmax(0, 1fr) auto; row-gap: 6px; padding: 20px 0; }
  .project__name { font-size: 32px; }
  .project__name svg { display: none; }
  .project__row:hover .project__name, .project.is-open .project__name { transform: none; }
  .project__type { grid-column: 2; grid-row: 2; font-size: 12px; }
  .project__year { grid-column: 3; grid-row: 1; font-size: 12px; }
  .project__body { grid-template-columns: 1fr; gap: 0; }
  .project__media { grid-column: 1; margin: 0 0 20px; }
  .project__info { margin: 0 0 32px; }
  .project__desc { font-size: 18px; }
  .hl__v { font-size: 40px; }
  .preview { display: none; }

  .numbers { padding: 80px 0; }
  .numbers__grid { grid-template-columns: 1fr; gap: 36px; }
  .odo { font-size: 72px; }
  .odo--big { font-size: clamp(64px, 20vw, 96px); }
  .stat--big { margin-top: 56px; }
  .stat--big p { font-size: 22px; }

  .team { padding: 80px 0 90px; }
  .team__title { font-size: 64px; }
  .team__sub { font-size: 19px; }
  .map { margin-top: 32px; }
  .cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 28px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 78vw; max-width: 320px; height: 420px; scroll-snap-align: center; }

  .services { padding: 80px 0; }
  .section-title { margin-bottom: 40px; }
  .services__grid { grid-template-columns: 1fr; row-gap: 40px; }
  .svc h3 { min-height: 0; }
  .process { margin-top: 72px; }
  .process__steps { grid-template-columns: 1fr; gap: 28px; }

  .contact__wrap { padding-top: 80px; padding-bottom: 80px; }
  .contact__title { font-size: 30px; }
  .contact__glow { right: -260px; top: 120px; }
  .footer { grid-template-columns: 1fr; gap: 10px; }
  .footer__legal { justify-content: flex-start; }

  .legal__bar { padding: 16px 20px; }
  .legal__tabs button { padding: 8px 10px; font-size: 12px; }
  .legal__scroll { padding: 32px 20px 48px; }
  .legal__doc h2 { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .line, .reveal, .stat__line, .svc__line, .card__inner, .project__panel, .odo__reel, .contact__email .ch { transition-duration: 0.01s !important; }
}
.nowrap { white-space: nowrap; }

/* Korean: Hangul falls back to Pretendard; keep words whole */
html:lang(ko) { --sans: 'Archivo', 'Pretendard Variable', Pretendard, system-ui, sans-serif; --mono: 'IBM Plex Mono', 'Pretendard Variable', Pretendard, ui-monospace, monospace; }
html:lang(ko) body { word-break: keep-all; }
html:lang(ko) .hero__title { line-height: 1.08; letter-spacing: -0.04em; }
html:lang(ko) .hero__sub, html:lang(ko) .card__bio, html:lang(ko) .project__desc { letter-spacing: -0.02em; }
@media (max-width: 760px) { html:lang(ko) .hero__title { font-size: clamp(36px, 10.6vw, 60px); } }
