/* Havnar Labs — site styles
   Monochrome. Black, white and four greys; no accent colour. Host Grotesk for
   everything, IBM Plex Mono (light) for labels and numbering in parentheses.
   Work imagery keeps its own colour; everything around it stays black and white. */

:root {
  --black: #0a0a0a;
  /* the hero's sky: the site's one colour, used sparingly */
  --sky: #5ca6ca;
  --cloud: #334d80;
  --white: #ffffff;
  --g1: #f2f2f0;   /* panel */
  --g2: #e2e2df;   /* hairline on white */
  --g3: #8d8d89;   /* secondary text on black */
  --g4: #5e5e5a;   /* secondary text on white */
  --line-d: #262624;

  --sans: "Host Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 2.4vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--black);
  font-family: var(--sans); font-size: 17px; line-height: 1.5; font-weight: 400;
  letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--sky); color: var(--black); }
.dark ::selection, .mz ::selection, .site-footer ::selection { background: var(--sky); color: var(--black); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--black); color: var(--white); padding: 8px 14px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; padding: 0 var(--gutter); }

.mono { font-family: var(--mono); font-weight: 300; font-size: 12px; line-height: 1.45; letter-spacing: 0; text-transform: uppercase; }
.dim { color: var(--g4); }
.dark { background: var(--black); color: var(--white); }
.dark .dim { color: var(--g3); }

.h2 { margin: 0; font-weight: 400; font-size: clamp(36px, 4.6vw, 76px); line-height: .98; letter-spacing: -0.045em; text-wrap: balance; }

.ph { font-family: var(--mono); font-size: .8em; font-weight: 300; text-transform: none; letter-spacing: 0; border-bottom: 1px dashed currentColor; opacity: .75; }

/* links and buttons */
.link { display: inline-flex; gap: 10px; align-items: baseline; text-decoration: none; font-size: 16px; padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.link span { transition: transform .5s var(--ease); }
.link:hover span { transform: translateX(4px); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 52px; padding: 0 28px;
  border: 1px solid var(--black); border-radius: 999px; background: var(--black); color: var(--white);
  font-family: var(--mono); font-size: 12px; font-weight: 400; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background .3s, color .3s;
}
.btn:hover { background: var(--white); color: var(--black); }
.btn--light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--light:hover { background: transparent; color: var(--white); }

/* ---------- header: a floating block of frosted glass, dark enough to read over
   the clouds, the black sections and the white ones alike ---------- */
.site-header {
  position: fixed; z-index: 60;
  top: calc(12px + env(safe-area-inset-top, 0px)); left: var(--gutter); right: var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 9px 9px 9px 18px; border-radius: 18px;
  color: var(--white);
  background: rgba(14, 14, 14, .52);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .1);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: rgba(14, 14, 14, .92); }
}
.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; text-decoration: none; font-weight: 500; font-size: 17px; letter-spacing: -0.03em; }
.mark { width: 56px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.35; overflow: visible; transition: transform .7s var(--ease); }
.mark__depth path { transition: transform .7s var(--ease); }
/* on hover the mark tips toward you and its depth layers spread */
.brand:hover .mark { transform: perspective(200px) rotateX(18deg) rotateY(-22deg); }
.brand:hover .mark__depth path:nth-child(1) { transform: translate(3.6px, 3.2px); }
.brand:hover .mark__depth path:nth-child(2) { transform: translate(2.4px, 2.1px); }
.brand:hover .mark__depth path:nth-child(3) { transform: translate(1.2px, 1.1px); }
.nav { display: flex; gap: 4px; }
.nav a { position: relative; padding: 9px 14px; border-radius: 999px; font-family: var(--mono); font-weight: 400; font-size: 12px; text-transform: uppercase; text-decoration: none; color: rgba(255, 255, 255, .78); transition: background .3s, color .3s; }
.nav a:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.nav a[aria-current="page"] { background: rgba(255, 255, 255, .14); color: var(--white); }
.nav__cta { justify-self: end; font-family: var(--mono); font-weight: 400; font-size: 12px; text-transform: uppercase; text-decoration: none; padding: 10px 18px; border-radius: 999px; background: var(--white); color: var(--black); transition: opacity .3s; }
.nav__cta:hover { opacity: .8; }
.nav__toggle { display: none; justify-self: end; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--white); padding: 9px 16px; font-family: var(--mono); font-weight: 300; font-size: 12px; text-transform: uppercase; cursor: pointer; }

.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--black); color: var(--white);
  padding: calc(110px + env(safe-area-inset-top, 0px)) var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease); visibility: hidden;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__links { display: grid; }
.menu__links a { display: flex; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-d); text-decoration: none; font-size: clamp(38px, 11vw, 64px); line-height: 1; letter-spacing: -0.05em; }
.menu__links a span { font-family: var(--mono); font-weight: 300; font-size: 12px; letter-spacing: 0; color: var(--g3); }
.menu__foot { display: grid; gap: 16px; justify-items: start; color: var(--g3); }

@media (max-width: 960px) {
  .site-header { grid-template-columns: 1fr auto; padding: 7px 7px 7px 14px; border-radius: 16px; top: calc(10px + env(safe-area-inset-top, 0px)); }
  .site-header .mark { width: 46px; height: 26px; }
  .nav, .nav__cta { display: none; }
  .nav__toggle { display: inline-block; }
}

/* ---------- reveals ---------- */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; }
.js .split .w > span { transform: translateY(110%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i) * 35ms); }
.js .split.is-in .w > span { transform: none; }
.js [data-fade] { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: .35s; }
.js [data-fade].is-in { opacity: 1; transform: none; }
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* paragraph that lights up word by word as you scroll */
[data-words] .wd { opacity: var(--wo, .16); transition: opacity .25s linear; }

/* ---------- section heads ---------- */
.sec-head { display: grid; grid-template-columns: minmax(160px, 1fr) 3fr; gap: 20px var(--gutter); align-items: start; margin-bottom: clamp(48px, 7vw, 112px); }
.sec-head .mono { padding-top: .6em; }
.sec-head .h2 { max-width: 20ch; }
.sec-head--row { grid-template-columns: minmax(160px, 1fr) 2fr 1fr; align-items: end; }
.sec-head--row .link { justify-self: end; }
@media (max-width: 860px) {
  .sec-head, .sec-head--row { grid-template-columns: 1fr; }
  .sec-head .mono { padding-top: 0; }
  .sec-head--row .link { justify-self: start; }
}

/* =========================================================
   Home
   ========================================================= */

/* Hero */
/* Mask zoom: a 260vh track; the stage pins while the name zooms open */
.mz { position: relative; height: 260vh; background: var(--black); color: var(--white); }
.mz__stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; isolation: isolate; }
.mz__clouds { position: absolute; inset: 0; z-index: -2;
  /* shown until WebGL starts, and kept if it cannot */
  background: linear-gradient(180deg, #2f6f8f 0%, var(--sky) 38%, #c9dde8 62%, var(--cloud) 100%); }
.mz__clouds canvas { display: block; }
/* The headline knocks out of black: white letters on a black layer, multiplied
   over the clouds, so the clouds show only through the letters. */
.mz__knock {
  position: absolute; inset: 0; z-index: -1; display: flex; align-items: center;
  padding: 0 var(--gutter); color: #fff; mix-blend-mode: multiply;
  /* a soft white spot under the pointer lets the clouds show through the black too */
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #a6a6a6 0, #a6a6a6 calc(var(--sr, 0px) * .35), #000 var(--sr, 0px));
  transform-origin: var(--ox, 30%) var(--oy, 50%); transform: scale(var(--s, 1)); opacity: var(--co, 1);
  will-change: transform;
}
.mz__head { margin: 0; max-width: 14em; font-weight: 700; font-size: clamp(46px, 7.6vw, 150px); line-height: .9; letter-spacing: -0.055em; text-wrap: balance; }
@media (max-width: 760px) { .mz__head { font-size: clamp(44px, 13.2vw, 76px); line-height: .92; } }
.mz__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 10, 10, .85), rgba(10, 10, 10, .25) 60%, rgba(10, 10, 10, .45)); opacity: var(--o, 0); pointer-events: none; }
.mz__top { position: absolute; left: 0; right: 0; top: calc(96px + env(safe-area-inset-top, 0px)); display: flex; justify-content: flex-end; gap: 32px; pointer-events: none; opacity: var(--o, 1); }
.mz__end { position: absolute; left: 0; right: 0; bottom: clamp(72px, 12vh, 140px); display: grid; gap: 32px; justify-items: start; opacity: var(--o, 0); transform: translateY(calc((1 - var(--o, 0)) * 30px)); visibility: hidden; }
.mz__end.is-on { visibility: visible; }
.mz__big { margin: 0; font-weight: 400; font-size: clamp(44px, 7.4vw, 128px); line-height: .92; letter-spacing: -0.06em; }
.mz__ctas { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.mz [data-mz-bottom] { opacity: var(--o, 1); }
.hero__side { margin: 0; text-align: right; color: var(--g3); }
.hero__bottom { position: absolute; left: 0; right: 0; bottom: calc(32px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; }
.hero__list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hero__list span { color: var(--g3); margin-right: 6px; }
.hero__scroll { text-decoration: none; display: inline-flex; gap: 10px; }
.hero__scroll span { display: inline-block; animation: nudge 2s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }
@media (max-width: 760px) {
  .hero__bottom { justify-content: flex-end; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  .hero__side, .hero__list { display: none; }
}

/* Intro statement */
.intro { padding: clamp(96px, 14vw, 220px) 0; }
.intro__grid { display: grid; grid-template-columns: minmax(160px, 1fr) 3fr; gap: 24px var(--gutter); }
.intro__text { margin: 0 0 40px; font-size: clamp(28px, 3.6vw, 58px); line-height: 1.08; letter-spacing: -0.04em; max-width: 24ch; }
@media (max-width: 860px) { .intro__grid { grid-template-columns: 1fr; } }

/* Symptom rows */
.symptoms { padding: 0 0 clamp(96px, 12vw, 180px); }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--black); }
.row { display: grid; grid-template-columns: minmax(160px, 1fr) 3fr; gap: 24px var(--gutter); align-items: baseline; padding: clamp(18px, 2vw, 28px) 0; border-bottom: 1px solid var(--g2); transition: padding .6s var(--ease); }
.row__t { margin: 0; font-size: clamp(20px, 2vw, 32px); line-height: 1.15; letter-spacing: -0.03em; max-width: 34ch; transition: transform .6s var(--ease); }
.row:hover .row__t { transform: translateX(16px); }
@media (max-width: 860px) { .row { grid-template-columns: 48px 1fr; } }

/* Services accordion */
.services { padding: clamp(96px, 12vw, 180px) 0; }
.svc-list { border-top: 1px solid var(--white); }
.svc-item { border-bottom: 1px solid var(--line-d); }
.svc-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(160px, 1fr) 1.6fr 1.4fr 40px; gap: 16px var(--gutter); align-items: center; padding: clamp(20px, 2.4vw, 36px) 0; }
.svc-item summary::-webkit-details-marker { display: none; }
.svc-item__name { font-size: clamp(32px, 4.4vw, 72px); line-height: .95; letter-spacing: -0.05em; transition: transform .6s var(--ease); }
.svc-item__hook { color: var(--g3); font-size: clamp(16px, 1.3vw, 20px); }
.svc-item summary i, .faq summary i { position: relative; width: 20px; height: 20px; justify-self: end; }
.svc-item summary i::before, .svc-item summary i::after, .faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: currentColor; transition: transform .5s var(--ease); }
.svc-item summary i::after, .faq summary i::after { transform: rotate(90deg); }
.svc-item[open] summary i::after, .faq details[open] summary i::after { transform: rotate(0); }
.svc-item summary:hover .svc-item__name { transform: translateX(12px); }
.svc-item__body { display: grid; grid-template-columns: minmax(160px, 1fr) 1.6fr 1.4fr 40px; gap: 16px var(--gutter); padding: 0 0 clamp(28px, 3vw, 48px); }
.svc-item__body p { grid-column: 2; margin: 0; font-size: 18px; line-height: 1.5; color: #d6d6d2; max-width: 46ch; }
.svc-item__body ul { grid-column: 3; margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--g3); }
.svc-item__body li::before { content: "↳ "; }
.services__more { margin: 48px 0 0; }
.link--light { color: var(--white); }
@media (max-width: 860px) {
  .svc-item summary { grid-template-columns: 32px 1fr 24px; }
  .svc-item__hook { grid-column: 2 / -1; grid-row: 2; }
  .svc-item summary i { grid-column: 3; grid-row: 1; }
  .svc-item__body { grid-template-columns: 1fr; }
  .svc-item__body p, .svc-item__body ul { grid-column: 1; }
}

/* Work: project cards that stack as you scroll. Each card is a split panel:
   the facts on black, one visual beside them. Cards pin a little lower than the
   one before; the covered card shrinks back and dims (--sc, --br from site.js). */
.work-index { padding: clamp(96px, 12vw, 180px) 0; }
.projects { display: grid; gap: 10vh; padding-bottom: 4vh; }
.proj {
  position: sticky; top: calc(88px + var(--i) * 22px);
  display: grid; grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  height: min(74vh, 720px); min-height: 460px;
  background: var(--black); color: var(--white); overflow: hidden;
  transform-origin: 50% 0; transform: scale(var(--sc, 1)); filter: brightness(var(--br, 1));
  will-change: transform;
}
.proj__info { display: grid; grid-template-rows: auto 1fr auto; gap: 24px; padding: clamp(24px, 3vw, 48px); border-right: 1px solid var(--line-d); }
.proj__k { margin: 0; display: flex; gap: 14px; color: var(--g3); }
.proj__k span { color: var(--sky); }
.proj__info > div:nth-child(2) { align-self: center; }
.proj__name { margin: 0; font-weight: 400; font-size: clamp(34px, 3.8vw, 64px); line-height: .95; letter-spacing: -0.055em; }
.proj__line { margin: 18px 0 0; max-width: 32ch; color: #cfcfcb; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.45; }
.proj__foot { display: grid; gap: 22px; }
.proj__did { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-d); }
.proj__did li { padding: 9px 0; border-bottom: 1px solid var(--line-d); color: var(--g3); }
.proj__link { justify-self: start; text-decoration: none; font-size: 16px; padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease); }
.proj__link span { display: inline-block; transition: transform .5s var(--ease); }
.proj__link:hover { background-size: 0 1px; background-position: 100% 100%; }
.proj__link:hover span { transform: translateX(4px); }
.proj__media { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 6%; background: #141413; }
.proj__media img { display: block; transition: transform 1.4s var(--ease), filter .9s var(--ease); }
.proj__media--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proj:hover .proj__media--photo img { transform: scale(1.03); }
.proj__media--shot img { width: 84%; height: auto; border-radius: 6px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); }
.proj:hover .proj__media--shot img { transform: translateY(-6px); }
.proj__media--phones .phone { width: clamp(120px, 24%, 230px); transition: transform 1.2s var(--ease); }
.proj__media--phones .phone + .phone { transform: translateY(9%); }
.proj:hover .proj__media--phones .phone { transform: translateY(-3%); }
.proj:hover .proj__media--phones .phone + .phone { transform: translateY(6%); }
.proj__media--phones .phone img { border-color: #000; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); }
@media (max-width: 860px) {
  .projects { gap: 6vh; }
  .proj { top: calc(72px + var(--i) * 14px); grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: 78vh; height: 78svh; min-height: 520px; }
  .proj__info { grid-template-rows: auto auto; gap: 14px; padding: 20px; border-right: 0; border-bottom: 1px solid var(--line-d); }
  .proj__line { margin-top: 10px; font-size: 15px; }
  .proj__foot { grid-template-columns: 1fr; gap: 0; }
  .proj__did { display: none; }
  .proj__k { order: 0; }
  .proj__media--shot img { width: 90%; }
  .proj__media--phones .phone { width: 34%; }
}

/* Process */
.process { padding: clamp(96px, 12vw, 180px) 0; background: var(--g1); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--black); }
.steps li { padding: 24px var(--gutter) 8px 0; border-right: 1px solid var(--g2); min-height: 320px; display: flex; flex-direction: column; }
.steps li + li { padding-left: var(--gutter); }
.steps li:last-child { border-right: 0; }
.steps h3 { margin: auto 0 14px; font-weight: 400; font-size: clamp(32px, 3.2vw, 52px); letter-spacing: -0.05em; line-height: 1; }
.steps p { margin: 0; color: var(--g4); font-size: 16px; max-width: 32ch; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li { min-height: 240px; padding: 24px 16px 24px 0; border-bottom: 1px solid var(--g2); }
  .steps li + li { padding-left: 0; }
  .steps li:nth-child(even) { padding-left: 16px; border-right: 0; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li, .steps li:nth-child(even) { border-right: 0; padding-left: 0; min-height: 0; } .steps h3 { margin-top: 48px; } }

/* Industries directory */
.sectors { padding: clamp(96px, 12vw, 180px) 0; }
.dir { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--black); }
.dir a { display: grid; grid-template-columns: 1.4fr 1.6fr 60px; gap: 8px var(--gutter); align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--g2); text-decoration: none; position: relative; isolation: isolate; transition: color .4s, padding .6s var(--ease); }
.dir a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--black); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.dir a:hover { color: var(--white); padding-left: 16px; padding-right: 16px; }
.dir a:hover::before { transform: scaleY(1); }
.dir__name { font-size: clamp(22px, 2.2vw, 36px); letter-spacing: -0.04em; line-height: 1.1; }
.dir__note { color: var(--g4); transition: color .4s; }
.dir a:hover .dir__note { color: var(--g3); }
.dir .mono { justify-self: end; }
@media (max-width: 760px) { .dir a { grid-template-columns: 1fr 32px; } .dir__note { grid-column: 1; grid-row: 2; font-size: 14px; } .dir .mono { grid-column: 2; grid-row: 1; } }

/* Founder */
.founder-note { padding: clamp(96px, 12vw, 180px) 0 clamp(64px, 8vw, 120px); }
.founder-note__grid { display: grid; grid-template-columns: minmax(160px, 1fr) 3fr; gap: 24px var(--gutter); }
.founder-note__quote { margin: 0; font-size: clamp(26px, 3.2vw, 52px); line-height: 1.1; letter-spacing: -0.04em; max-width: 26ch; }
.founder-note__who { display: flex; gap: 16px; align-items: center; margin-top: 48px; max-width: 60ch; }
.founder-note__who p { margin: 0; font-size: 15px; }
.founder-note__mono { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--white); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px var(--gutter); margin: clamp(80px, 9vw, 140px) 0 0; }
.facts div { border-top: 1px solid var(--line-d); padding-top: 14px; }
.facts dt { color: var(--g3); }
.facts dd { margin: 10px 0 0; font-size: clamp(22px, 2.2vw, 34px); letter-spacing: -0.04em; line-height: 1.05; }
@media (max-width: 860px) { .founder-note__grid { grid-template-columns: 1fr; } .facts { grid-template-columns: 1fr 1fr; } }

/* FAQ */
.faq { padding: clamp(96px, 12vw, 180px) 0; }
.faq__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px var(--gutter); }
.faq__grid .h2 { margin-top: 20px; }
.faq__list { border-top: 1px solid var(--black); }
.faq details { border-bottom: 1px solid var(--g2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 0; font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -0.025em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 16px; height: 16px; }
.faq details p { margin: 0 0 24px; max-width: 56ch; color: var(--g4); }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--black); color: var(--white); padding-top: clamp(96px, 12vw, 180px); overflow: hidden; }
.footer__cta { position: relative; display: grid; gap: 24px; justify-items: start; padding-bottom: clamp(64px, 8vw, 120px); border-bottom: 1px solid var(--line-d); }
.footer__mark { position: absolute; right: 0; top: 0; display: block; width: min(30vw, 420px); height: auto; aspect-ratio: 16 / 10; touch-action: pan-y; cursor: grab; }
.footer__mark:active { cursor: grabbing; }
@media (max-width: 860px) { .footer__mark { position: relative; top: 0; width: 72%; margin: -8px 0 0; } }
.footer__cta .mono { color: var(--g3); }
.footer__big { font-size: clamp(48px, 8.4vw, 150px); line-height: .9; letter-spacing: -0.06em; text-decoration: none; transition: opacity .4s; }
/* the arrow is drawn, so phones cannot swap it for an emoji */
.arrow-ne { display: inline-block; width: .62em; height: .62em; vertical-align: .02em; fill: none; stroke: var(--sky); stroke-width: 2.2; stroke-linecap: square; transition: transform .6s var(--ease); }
.footer__big:hover .arrow-ne { transform: translate(8px, -8px); }
.footer__note { margin: 0; max-width: 46ch; color: var(--g3); }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--gutter); padding: 40px 0; }
.footer__cols .mono { color: var(--g3); margin: 0 0 14px; }
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer__cols a { text-decoration: none; }
.footer__cols a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__word { display: block; width: 100%; padding: 0 var(--gutter); margin-top: clamp(24px, 4vw, 64px); }
.footer__word text { fill: var(--white); font-family: var(--sans); font-weight: 500; font-size: 200px; letter-spacing: -0.06em; }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-d); color: var(--g3); position: relative; background: var(--black); }
.footer__base a { text-decoration: none; }
@media (max-width: 760px) { .footer__cols { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   Inner pages
   ========================================================= */
.page-head { padding: calc(140px + env(safe-area-inset-top, 0px)) 0 clamp(56px, 7vw, 112px); border-bottom: 1px solid var(--g2); }
.page-head--media { padding-bottom: 0; border-bottom: 0; }
/* a full-bleed band under the title: footage or project imagery, drifting slightly as you scroll */
.page-head__media { position: relative; margin: clamp(48px, 6vw, 96px) 0 0; height: clamp(320px, 58vh, 640px); overflow: hidden; background: var(--black); }
.page-head__media video { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; transform: translateY(var(--par, 0px)); }
.page-head__media figcaption { position: absolute; left: var(--gutter); bottom: 18px; color: var(--g3); }

.page-head__title { margin: 24px 0 0; font-weight: 400; font-size: clamp(48px, 8.4vw, 148px); line-height: .9; letter-spacing: -0.065em; max-width: 13ch; text-wrap: balance; }
.page-head__title--sm { font-size: clamp(44px, 6vw, 96px); }
.page-head__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px var(--gutter); align-items: end; margin-top: clamp(40px, 5vw, 72px); }
.page-head__lede { margin: 0; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; letter-spacing: -0.02em; max-width: 44ch; }
.jump { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.jump a { text-decoration: none; padding: 7px 12px; border: 1px solid var(--g2); border-radius: 999px; transition: background .3s, color .3s, border-color .3s; }
.jump a:hover { background: var(--black); color: var(--white); border-color: var(--black); }
@media (max-width: 860px) { .page-head__row { grid-template-columns: 1fr; } .jump { justify-content: flex-start; } }

.ticks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--g2); }
.ticks li { padding: 11px 0 11px 26px; border-bottom: 1px solid var(--g2); position: relative; font-size: 16px; }
.ticks li::before { content: "↳"; position: absolute; left: 0; font-family: var(--mono); font-weight: 300; color: var(--g4); }
.dark .ticks, .dark .ticks li, .plan--inv .ticks, .plan--inv .ticks li { border-color: var(--line-d); }

/* Services */
.svc-wrap { padding: 0 0 clamp(64px, 8vw, 120px); }
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px var(--gutter); padding: clamp(56px, 7vw, 112px) 0; border-bottom: 1px solid var(--g2); scroll-margin-top: 80px; }
.svc__head { position: sticky; top: 100px; align-self: start; }
.svc__name { margin: 16px 0 14px; font-weight: 400; font-size: clamp(44px, 5.6vw, 96px); line-height: .92; letter-spacing: -0.06em; }
.svc__hook { margin: 0; font-size: clamp(18px, 1.5vw, 22px); color: var(--g4); max-width: 26ch; }
.svc__k { margin: 0 0 10px; color: var(--g4); }
.svc__who { margin: 0 0 24px; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.25; letter-spacing: -0.03em; }
.svc__text { margin: 0 0 36px; color: var(--g4); max-width: 56ch; }
.svc__result { margin: 28px 0 0; padding: 20px 22px; background: var(--black); color: var(--white); display: grid; gap: 6px; font-size: 18px; letter-spacing: -0.02em; }
.svc__result .mono { color: var(--g3); }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } .svc__head { position: static; } }

.pricing { padding: clamp(96px, 12vw, 180px) 0; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); }
.plan { background: var(--black); padding: clamp(24px, 3vw, 48px); display: flex; flex-direction: column; gap: 16px; min-height: 420px; }
.plan .mono { color: var(--g3); }
.plan h3 { margin: auto 0 0; font-weight: 400; font-size: clamp(30px, 3vw, 48px); letter-spacing: -0.05em; line-height: 1; }
.plan p { margin: 0; color: #d0d0cc; max-width: 42ch; }
.plan--inv { background: var(--white); color: var(--black); }
.plan--inv p { color: var(--g4); }
.plan--inv .mono { color: var(--g4); }
.plan--inv .ticks, .plan--inv .ticks li { border-color: var(--g2); }
.pricing__note { margin: 40px 0 0; color: var(--g3); max-width: 50ch; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } .plan { min-height: 320px; } }

/* Work hero: a spiral stream of every case-study screen fills the screen
   behind the headline. Each screen is cut into vertical slices bent around
   the cylinder, so the cards curve with it; positions come from site.js. */
.work-hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; background: var(--black); color: var(--white); }
.spiral { position: absolute; inset: 0; margin: 0; overflow: hidden; perspective: 1500px; perspective-origin: 66% 55%; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.spiral.is-dragging { cursor: grabbing; }
.spiral__stage { position: absolute; inset: 0; transform-style: preserve-3d; }
.spiral__track { position: absolute; left: 66%; top: 55%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(-10deg) rotateZ(-6deg); }
.spiral__card {
  --size: clamp(104px, 12vw, 188px);
  position: absolute; width: var(--size); height: var(--size); left: calc(var(--size) / -2); top: calc(var(--size) / -2);
  max-width: none; border-radius: 10px; pointer-events: none; -webkit-user-drag: none;
}
/* without WebGL: three screens fanned out instead */
.spiral:not(.is-live) .spiral__card:nth-child(n+4) { display: none; }
.spiral:not(.is-live) .spiral__card:nth-child(1) { transform: translate(-60%, -30%) rotate(-8deg); }
.spiral:not(.is-live) .spiral__card:nth-child(3) { transform: translate(60%, 30%) rotate(8deg); }
/* with the canvas running, the images are only its source */
.spiral.is-live .spiral__card { visibility: hidden; }
.spiral__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* fades: top and bottom ends of the helix, and a shade behind the headline */
.spiral::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(180deg, var(--black) 0%, rgba(10, 10, 10, 0) 18%, rgba(10, 10, 10, 0) 82%, var(--black) 100%),
    linear-gradient(90deg, rgba(10, 10, 10, .92) 0%, rgba(10, 10, 10, .55) 32%, rgba(10, 10, 10, 0) 52%); }
.spiral__cap { position: absolute; z-index: 2; right: var(--gutter); top: calc(104px + env(safe-area-inset-top, 0px)); color: var(--g3); }
.work-hero__copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(32px, 6vh, 72px); pointer-events: none; }
.work-hero__copy a { pointer-events: auto; }
.work-hero .page-head__title { max-width: 11ch; }
.work-hero .page-head__row { margin-top: clamp(28px, 4vh, 56px); }
.work-hero .page-head__lede { color: var(--g4); }
.work-hero .jump a { border-color: rgba(255, 255, 255, .22); background: rgba(10, 10, 10, .4); }
.work-hero .jump a:hover { background: var(--white); color: var(--black); border-color: var(--white); }
@media (max-width: 860px) {
  .spiral { perspective-origin: 50% 37%; }
  .spiral__track { left: 50%; top: 37%; }
  .spiral::after { background:
    linear-gradient(180deg, var(--black) 0%, rgba(10, 10, 10, 0) 16%, rgba(10, 10, 10, 0) 38%, rgba(10, 10, 10, .9) 66%, var(--black) 100%); }
  .spiral__cap { display: none; }
  .work-hero .page-head__title { font-size: clamp(44px, 12.4vw, 72px); }
  .work-hero .page-head__lede { font-size: 16px; }
}

/* Case studies */
.cs { padding: clamp(80px, 10vw, 160px) 0; border-bottom: 1px solid var(--g2); scroll-margin-top: 40px; }
.cs__head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px var(--gutter); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.cs__head > .mono { grid-column: 1 / -1; color: var(--g4); }
.cs__name { margin: 0; font-weight: 400; font-size: clamp(52px, 8vw, 140px); line-height: .88; letter-spacing: -0.065em; }
.cs__sub { margin: 0; grid-column: 1; font-size: clamp(18px, 1.5vw, 22px); color: var(--g4); max-width: 40ch; }
.cs__meta { grid-column: 2; grid-row: 2 / span 2; margin: 0; display: grid; gap: 14px; align-self: end; }
.cs__meta div { border-top: 1px solid var(--black); padding-top: 8px; }
.cs__meta dt { color: var(--g4); }
.cs__meta dd { margin: 4px 0 0; font-size: 15px; }
.cs__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px var(--gutter); margin-top: clamp(48px, 6vw, 96px); }
.cs__cols > div > .mono { margin: 0 0 14px; color: var(--g4); }
.cs__text { margin: 0; font-size: 18px; line-height: 1.5; }
.cs__cols h3 { margin: 0 0 14px; color: var(--g4); }
/* one lead visual per case study, then supporting screens, each shown once */
.cs__lead { margin: 0 0 var(--gutter); overflow: hidden; background: var(--g1); }
.cs__lead img { width: 100%; height: auto; display: block; }
.cs__lead--photo { aspect-ratio: 21 / 9; }
.cs__lead--photo img { height: 100%; object-fit: cover; }
.cs__row { display: grid; gap: var(--gutter); margin-bottom: var(--gutter); }
.cs__row--2 { grid-template-columns: 1fr 1fr; }
.cs__row--3 { grid-template-columns: repeat(3, 1fr); }
.cs__row figure { margin: 0; }
.cs__row img { width: 100%; height: auto; display: block; border: 1px solid var(--g2); }
.cs__row figcaption { margin-top: 10px; color: var(--g4); }
@media (max-width: 860px) { .cs__row--2, .cs__row--3 { grid-template-columns: 1fr; } .cs__lead--photo { aspect-ratio: 4 / 3; } }
@media (max-width: 960px) { .cs__head, .cs__cols { grid-template-columns: 1fr; } .cs__meta { grid-column: 1; grid-row: auto; } }

/* Screenshot frames. Every screenshot is shown at its own aspect ratio:
   browser shots under a thin bar, phone shots in a plain black bezel. */
.browser { margin: 0; background: var(--white); border: 1px solid var(--g2); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .45); }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: var(--g1); border-bottom: 1px solid var(--g2); }
.browser__bar i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid #b9b9b5; }
.browser__bar b { margin-left: 10px; font-family: var(--mono); font-weight: 300; font-size: 11px; color: var(--g4); }
.browser img { width: 100%; height: auto; }
.phone { margin: 0; position: relative; }
.phone img { width: 100%; height: auto; aspect-ratio: 840 / 1776; object-fit: cover; object-position: top; border-radius: clamp(16px, 2.2vw, 30px); border: clamp(4px, .5vw, 7px) solid var(--black); background: var(--black); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.phone figcaption { margin-top: 12px; color: var(--g4); text-align: center; }

.stage { position: relative; background: var(--g1); padding: clamp(24px, 6vw, 96px) clamp(16px, 8vw, 140px); margin-bottom: var(--gutter); }
.stage--kr .browser--main { width: 100%; }
.stage--kr .phone--float { position: absolute; width: clamp(90px, 15%, 220px); right: clamp(12px, 4vw, 64px); bottom: clamp(-20px, -2vw, -8px); }
.hero-shot { margin: 0 0 var(--gutter); overflow: hidden; aspect-ratio: 21 / 9; background: var(--g1); }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; }
.grid-2, .grid-3 { display: grid; gap: var(--gutter); align-items: start; margin-bottom: var(--gutter); }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 3vw, 48px); padding: clamp(24px, 5vw, 80px) clamp(16px, 6vw, 112px); background: var(--g1); }
.phones--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 2.4vw, 36px); }
.phones--5 .phone:nth-child(even) { transform: translateY(6%); }
.phones--5 { padding-bottom: clamp(48px, 8vw, 128px); }
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-shot { aspect-ratio: 4 / 3; }
  /* phones scroll sideways on small screens instead of shrinking to nothing */
  .phones, .phones--5 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 24px 16px 32px; margin: 0 calc(-1 * var(--gutter)); }
  .phones .phone { flex: 0 0 58vw; scroll-snap-align: center; }
  .phones--5 .phone:nth-child(even) { transform: none; }
  .stage--kr .phone--float { width: 24%; bottom: -12px; }
}

/* Industries */
.inds { padding: 0 0 clamp(64px, 8vw, 120px); }
.inds .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ind { padding: clamp(32px, 4vw, 64px) var(--gutter) clamp(32px, 4vw, 64px) 0; border-bottom: 1px solid var(--g2); display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 80px; }
.ind:nth-child(even) { padding-left: var(--gutter); padding-right: 0; border-left: 1px solid var(--g2); }
.ind > .mono { color: var(--g4); }
.ind__name { margin: 24px 0 0; font-weight: 400; font-size: clamp(32px, 3.4vw, 56px); line-height: .96; letter-spacing: -0.05em; }
.ind__line { margin: 0; font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -0.02em; }
.ind__body { margin: 0; color: var(--g4); max-width: 52ch; }
.ind__fix { margin: 12px 0 0; display: grid; gap: 6px; max-width: 52ch; }
.ind__fix .mono { color: var(--g4); }
.ind__see { margin: auto 0 0; padding-top: 16px; color: var(--g4); }
.ind__see a { color: var(--black); }
.ind--inv { background: var(--black); color: var(--white); padding-left: var(--gutter) !important; padding-right: var(--gutter) !important; }
.ind--inv .ind__body, .ind--inv > .mono { color: var(--g3); }
@media (max-width: 860px) { .inds .wrap { grid-template-columns: 1fr; } .ind, .ind:nth-child(even) { padding-left: 0; padding-right: 0; border-left: 0; } }

/* Contact */
.contact { padding: 0 0 clamp(80px, 10vw, 140px); }
.contact__media { position: relative; margin: 0 0 clamp(40px, 5vw, 72px); height: clamp(220px, 34vh, 360px); overflow: hidden; background: var(--black); }
.contact__media video { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; transform: translateY(var(--par, 0px)); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px clamp(32px, 6vw, 112px); align-items: start; }
.contact__aside { position: sticky; top: 110px; display: grid; gap: 28px; }
.contact__aside .page-head__title { margin: 0; }
.next { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--black); }
.next li { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--g2); }
.next span { color: var(--g4); }
.reach { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px var(--gutter); }
.reach div { border-top: 1px solid var(--g2); padding-top: 8px; }
.reach dt { color: var(--g4); }
.reach dd { margin: 4px 0 0; font-size: 15px; }
@media (max-width: 960px) { .contact__grid { grid-template-columns: 1fr; } .contact__aside { position: static; } }

.form { background: var(--g1); padding: clamp(20px, 3.4vw, 48px); }
.form__progress { display: flex; gap: 4px; margin-bottom: 32px; }
.form__progress span { flex: 1; height: 2px; background: var(--g2); transition: background .4s; }
.form__progress span.on { background: var(--black); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field--full { grid-column: 1 / -1; }
.field > label, .chips legend { font-size: 15px; display: flex; justify-content: space-between; gap: 8px; width: 100%; padding: 0; }
.chips legend { margin-bottom: 10px; }
.opt { font-family: var(--mono); font-weight: 300; font-size: 11px; text-transform: uppercase; color: var(--g4); }
.input { width: 100%; height: 52px; padding: 0 14px; border: 0; border-bottom: 1px solid var(--black); border-radius: 0; background: var(--white); font-size: 16px; appearance: none; -webkit-appearance: none; transition: box-shadow .2s; }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230a0a0a' stroke-width='1.2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
textarea.input { height: 120px; padding: 14px; resize: vertical; }
.input:focus { outline: none; box-shadow: inset 0 -2px 0 var(--black); }
.combo { display: flex; gap: 8px; }
.combo .input:first-child { flex: 1; }
.combo .input + .input { flex: 1.1; }
.hint { font-size: 13px; color: var(--g4); }
.err { display: none; font-size: 13px; color: var(--black); font-family: var(--mono); font-weight: 400; text-transform: uppercase; }
.err::before { content: "× "; }
.field.has-error .input { border-bottom-width: 2px; background: #fff7f5; }
.field.has-error .err { display: block; }
.chips { flex-direction: row; flex-wrap: wrap; gap: 6px; }
.chips .err { width: 100%; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; padding: 10px 16px; border: 1px solid var(--g2); border-radius: 999px; background: var(--white); font-size: 14.5px; transition: background .2s, color .2s, border-color .2s; user-select: none; }
.chip input:checked + span { background: var(--black); color: var(--white); border-color: var(--black); }
.chip input:focus-visible + span { outline: 1px solid var(--black); outline-offset: 3px; }
.form__foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--g2); }
.form__foot .hint { max-width: 38ch; margin: 0; }
.thanks { display: none; }
.form.is-done .form__body { display: none; }
.form.is-done .thanks { display: grid; gap: 18px; }
.thanks .h2 { margin: 0; }
.cal { border: 1px dashed var(--g4); min-height: 240px; display: grid; place-content: center; text-align: center; padding: 24px; }
.cal p { margin: 4px 0; }
@media (max-width: 520px) { .fgrid { grid-template-columns: 1fr; } }

/* Legal */
.prose-wrap { padding: clamp(56px, 7vw, 112px) 0 clamp(80px, 10vw, 140px); }
.prose { max-width: calc(70ch + 2 * var(--gutter)); }
.prose h2 { font-weight: 400; font-size: 28px; letter-spacing: -0.03em; margin: 2em 0 .4em; }
.prose p { color: var(--g4); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .split .w > span, .js [data-fade], .js [data-reveal] { transform: none; opacity: 1; }
  html { scroll-behavior: auto; }
}
