/* Northvera Technologies
   Palette: Void #080A0D, Graphite #11151A, Charcoal #1A1F26, Bone #E6E8EB, Silver #98A1AC, Glacier #9BDCFF
   Type: Mona Sans variable (wght 200-900, wdth 75-125), self-hosted (SIL OFL) */

@font-face {
  font-family: "Mona Sans";
  src: url("/assets/fonts/mona-sans-var.woff2") format("woff2-variations"), url("/assets/fonts/mona-sans-var.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #080A0D;
  --graphite: #11151A;
  --charcoal: #1A1F26;
  --bone: #E6E8EB;
  --silver: #98A1AC;
  --dim: #5E6670;
  --ice: #9BDCFF;
  --ice-deep: #4FA9DA;
  --line: rgba(230, 232, 235, 0.12);
  --line-strong: rgba(230, 232, 235, 0.28);
  --amber: #FFC36B;

  --font: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);

  --gutter: clamp(20px, 4.2vw, 72px);
  --max: 1480px;
  --nav-h: 76px;

  --fs-hero: clamp(3.1rem, 10.2vw, 11.75rem);
  --fs-h2: clamp(2.35rem, 5.9vw, 6.6rem);
  --fs-h3: clamp(1.45rem, 2.1vw, 2.05rem);
  --fs-lead: clamp(1.25rem, 1.7vw, 1.6rem);
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.0875rem);
  --fs-small: 0.875rem;
  --fs-label: 0.72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  background: var(--void);
  color-scheme: dark;
}
body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 380;
  font-stretch: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  font-kerning: normal;
}
body::after {
  /* film grain */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
html.menu-open { overflow: hidden; }

img, canvas, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
::selection { background: var(--ice); color: var(--void); }

[tabindex="-1"]:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 4px;
  border-radius: 1px;
}

.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip {
  position: fixed;
  left: 16px; top: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--bone);
  color: var(--void);
  font-weight: 600;
  font-size: var(--fs-small);
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Small editorial label, marked with a short seam */
.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-label);
  font-weight: 560;
  font-stretch: 112%;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: clamp(22px, 2.6vw, 38px);
}
.label::before {
  content: "";
  width: 1px;
  height: 14px;
  background: var(--ice);
  box-shadow: 0 0 10px 1px rgba(155, 220, 255, 0.55);
}

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--h);
  padding: 0 28px;
  font-size: 0.94rem;
  font-weight: 560;
  font-stretch: 106%;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease), background-color 0.45s var(--ease);
}
.btn span { position: relative; z-index: 1; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform 0.6s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn--solid { background: var(--bone); color: var(--void); }
.btn--solid::before { background: var(--ice); }
.btn--line { color: var(--bone); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--line::before { background: var(--bone); }
.btn--line:hover, .btn--line:focus-visible { color: var(--void); }
.btn--lg { --h: 62px; padding: 0 36px; font-size: 1rem; }

/* ---------- Curtain (page-load seam) ---------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  animation: curtain-off 0s linear 1.7s forwards;
}
.curtain__half {
  position: absolute;
  top: 0; bottom: 0;
  width: 50.5%;
  background: var(--void);
  animation: 1.05s var(--ease-io) 0.62s forwards;
}
.curtain__half--l { left: 0; animation-name: half-l; }
.curtain__half--r { right: 0; animation-name: half-r; }
.curtain__seam {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(to bottom, transparent, var(--ice) 12%, #fff 50%, var(--ice) 88%, transparent);
  box-shadow: 0 0 18px 3px rgba(155, 220, 255, 0.5), 0 0 60px 10px rgba(79, 169, 218, 0.25);
  transform: scaleY(0);
  animation: seam-draw 0.62s var(--ease) 0.05s forwards, seam-fade 0.7s ease 0.95s forwards;
}
@keyframes seam-draw { to { transform: scaleY(1); } }
@keyframes seam-fade { to { opacity: 0; transform: scaleY(1) scaleX(30); } }
@keyframes half-l { to { transform: translateX(-101%); } }
@keyframes half-r { to { transform: translateX(101%); } }
@keyframes curtain-off { to { visibility: hidden; } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding-inline: var(--gutter);
  transition: background-color 0.5s var(--ease), height 0.5s var(--ease), transform 0.6s var(--ease), border-color 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  --nav-h: 62px;
  background: rgba(8, 10, 13, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  padding: 8px 0;
}
.brand__mark { width: 20px; height: 20px; }
.brand__slab { fill: var(--bone); }
.brand__seam { fill: var(--ice); transform-origin: 50% 50%; transition: transform 0.5s var(--ease); }
.brand:hover .brand__seam { transform: scaleY(1.25); }
.brand__word {
  font-size: 0.78rem;
  font-weight: 620;
  font-stretch: 122%;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav__links ul { display: flex; gap: clamp(18px, 2.4vw, 38px); }
.nav__links a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 0.89rem;
  font-weight: 450;
  color: var(--silver);
  transition: color 0.35s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.5s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="true"] { color: var(--bone); }
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav__cta {
  white-space: nowrap;
  font-size: 0.86rem;
  font-weight: 560;
  font-stretch: 106%;
  padding: 10px 18px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav__cta:hover { background: var(--bone); color: var(--void); box-shadow: inset 0 0 0 1px var(--bone); }
.nav__toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  margin-right: -10px;
  background: none;
  border: 0;
  color: var(--bone);
  cursor: pointer;
}
.nav__toggle-bars, .nav__toggle-bars::before {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.nav__toggle-bars { top: 17px; }
.nav__toggle-bars::before { content: ""; left: 0; right: 0; top: 8px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { top: 0; transform: rotate(-90deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 40px;
  padding: calc(var(--nav-h) + 24px) var(--gutter) max(32px, env(safe-area-inset-bottom));
  background: var(--void);
}
.menu[hidden] { display: none; }
.menu__list li { border-top: 1px solid var(--line); overflow: hidden; }
.menu__list li:last-child { border-bottom: 1px solid var(--line); }
.menu__list a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  font-size: clamp(2.1rem, 10vw, 3.6rem);
  font-weight: 460;
  font-stretch: 112%;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.menu__mail { color: var(--silver); font-size: var(--fs-small); }
html.js .menu.is-open .menu__list a { animation: menu-in 0.8s var(--ease) both; }
html.js .menu.is-open .menu__list li:nth-child(2) a { animation-delay: 0.05s; }
html.js .menu.is-open .menu__list li:nth-child(3) a { animation-delay: 0.1s; }
html.js .menu.is-open .menu__list li:nth-child(4) a { animation-delay: 0.15s; }
@keyframes menu-in { from { transform: translateY(100%); } to { transform: none; } }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
}

/* ---------- Line reveals ---------- */
.line { display: block; overflow: hidden; padding-bottom: 0.09em; margin-bottom: -0.09em; }
.line__in { display: inline-block; }
html.js [data-split] .line__in,
html.js .closing__title .line__in { transform: translateY(108%); transition: transform 1.25s var(--ease); }
html.js [data-split].is-in .line__in,
html.js .closing.is-open .closing__title .line__in { transform: none; }
html.js [data-split] .line:nth-child(2) .line__in, html.js .closing__title .line:nth-child(2) .line__in { transition-delay: 0.08s; }
html.js [data-split] .line:nth-child(3) .line__in { transition-delay: 0.16s; }
html.js [data-split] .line:nth-child(4) .line__in { transition-delay: 0.24s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; background: var(--void); }
.hero__poster, .hero__poster img, .hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__poster img { object-fit: cover; animation: hero-settle 2.8s var(--ease) 0.6s both; }
.hero__canvas { opacity: 0; transition: opacity 1.6s ease; }
.hero__canvas.is-live { opacity: 1; }
@keyframes hero-settle { from { transform: scale(1.06); } to { transform: none; } }
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(8, 10, 13, 0.55), transparent 22%),
    linear-gradient(to top, rgba(8, 10, 13, 0.92) 0%, rgba(8, 10, 13, 0.55) 30%, transparent 58%),
    radial-gradient(120% 80% at 0% 100%, rgba(8, 10, 13, 0.75), transparent 60%);
}
.hero__inner {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0 var(--gutter) clamp(36px, 7vh, 84px);
  max-width: var(--max);
  margin-inline: auto;
  will-change: transform, opacity;
}
.hero__title {
  font-size: var(--fs-hero);
  font-weight: 470;
  font-stretch: 114%;
  line-height: 0.9;
  letter-spacing: -0.052em;
  margin-left: -0.05em;
  text-wrap: balance;
}
.hero__title .line__in { animation: rise 1.35s var(--ease) both; }
.hero__title .line:nth-child(1) .line__in { animation-delay: 0.95s; }
.hero__title .line:nth-child(2) .line__in { animation-delay: 1.05s; }
@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 46ch) auto;
  justify-content: space-between;
  align-items: end;
  gap: 28px 48px;
  margin-top: clamp(28px, 4.2vh, 52px);
  animation: fade-up 1.2s var(--ease) 1.35s both;
}
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero__lede { color: #C3C9D0; font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); line-height: 1.6; max-width: 46ch; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__caption {
  position: absolute;
  top: calc(var(--nav-h) + 28px);
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-stretch: 112%;
  font-weight: 520;
  color: var(--silver);
  animation: fade-up 1s var(--ease) 1.8s both;
}
.hero__caption-dot { width: 6px; height: 6px; background: var(--dim); }
.hero__caption.is-live .hero__caption-dot { background: var(--ice); box-shadow: 0 0 10px 1px rgba(155, 220, 255, 0.7); }
.scrollcue {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(36px, 7vh, 84px);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 8px;
  margin: -8px;
  color: var(--silver);
  animation: fade-up 1s var(--ease) 2s both;
}
.scrollcue__track { position: relative; width: 1px; height: 64px; background: var(--line-strong); overflow: hidden; }
.scrollcue__thumb { position: absolute; left: 0; top: 0; width: 1px; height: 22px; background: var(--ice); animation: cue 2.4s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-24px); } 60%, 100% { transform: translateY(66px); } }
.scrollcue__label { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; writing-mode: vertical-rl; }

@media (min-width: 1100px) {
  .scrollcue { display: flex; }
  .hero__inner { padding-right: calc(var(--gutter) + 60px); }
}
@media (max-width: 720px) {
  .hero__shade { background: linear-gradient(to bottom, rgba(8, 10, 13, 0.6), transparent 20%), linear-gradient(to top, rgba(8, 10, 13, 0.95) 0%, rgba(8, 10, 13, 0.7) 42%, transparent 70%); }
  .hero__foot { grid-template-columns: 1fr; }
  .hero__title { font-stretch: 104%; letter-spacing: -0.045em; }
  .hero__caption { display: none; }
  .hero__ctas .btn { flex: 1 1 auto; }
}

/* ---------- Introduction ---------- */
.intro { position: relative; padding-block: clamp(120px, 17vw, 260px) clamp(100px, 13vw, 200px); }
.intro__title {
  font-size: clamp(2.6rem, 7.4vw, 8.6rem);
  font-weight: 460;
  font-stretch: 110%;
  line-height: 0.94;
  letter-spacing: -0.048em;
  max-width: 14ch;
  margin-left: -0.04em;
}
.intro__title .w { color: var(--bone); transition: color 0.3s linear; }
html.js .intro__title.is-scrub .w { color: var(--dim); }
html.js .intro__title.is-scrub .w.is-lit { color: var(--bone); }
.intro__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 clamp(16px, 2vw, 32px);
  margin-top: clamp(64px, 9vw, 140px);
}
.intro__figure { grid-column: 1 / span 5; }
.intro__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--graphite); }
.intro__frame img { width: 100%; height: 112%; object-fit: cover; margin-top: -6%; will-change: transform; }
.intro__copy {
  grid-column: 7 / span 5;
  align-self: end;
  display: grid;
  gap: 1.25em;
  color: var(--silver);
  max-width: 40rem;
}
.intro__lead {
  color: var(--bone);
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.38;
  letter-spacing: -0.012em;
  margin-bottom: 0.6em;
}
html.js [data-reveal="image"] .intro__frame { clip-path: inset(100% 0 0 0); transition: clip-path 1.6s var(--ease-io); }
html.js [data-reveal="image"].is-in .intro__frame { clip-path: inset(0 0 0 0); }
@media (max-width: 860px) {
  .intro__figure { grid-column: 1 / -1; max-width: 520px; }
  .intro__copy { grid-column: 1 / -1; margin-top: 48px; }
}

/* ---------- Areas of focus ---------- */
.focus { position: relative; background: var(--void); border-top: 1px solid var(--line); }
.focus__viewport { max-width: var(--max); margin-inline: auto; padding: clamp(96px, 11vw, 160px) var(--gutter); }
.focus__head { margin-bottom: clamp(48px, 6vw, 80px); }
.focus__title {
  font-size: clamp(2.2rem, 4.9vw, 5.4rem);
  font-weight: 460;
  font-stretch: 108%;
  line-height: 0.96;
  letter-spacing: -0.042em;
  max-width: 14ch;
}
.focus__progress { display: none; align-items: center; gap: 18px; font-size: 0.78rem; color: var(--silver); font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.focus__current { color: var(--bone); }
.focus__bar { position: relative; width: 140px; height: 1px; background: var(--line-strong); }
.focus__bar-fill { position: absolute; inset: 0; background: var(--ice); transform: scaleX(0.333); transform-origin: 0 50%; }
.focus__list { display: grid; gap: clamp(64px, 9vw, 110px); }
.panel article { display: grid; gap: 28px; }
.panel__figure { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--graphite); }
.panel__figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.panel__text { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: baseline; }
.panel__num { grid-row: span 2; font-size: 0.8rem; font-weight: 560; letter-spacing: 0.12em; color: var(--ice); font-variant-numeric: tabular-nums; }
.panel__title { font-size: var(--fs-h3); font-weight: 500; font-stretch: 108%; letter-spacing: -0.025em; line-height: 1.1; }
.panel__text p { color: var(--silver); max-width: 38ch; margin-top: 8px; }

/* pinned horizontal track */
html.js.motion .focus.is-pinned .focus__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
html.js.motion .focus.is-pinned .focus__viewport { height: 100%; max-width: none; padding: 0; }
html.js.motion .focus.is-pinned .focus__track {
  display: flex;
  align-items: stretch;
  gap: clamp(40px, 5vw, 96px);
  height: 100%;
  width: max-content;
  padding: calc(var(--nav-h) + clamp(24px, 5vh, 56px)) var(--gutter) clamp(72px, 12vh, 120px) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  will-change: transform;
}
html.js.motion .focus.is-pinned .focus__head { width: clamp(320px, 30vw, 520px); flex: none; margin: 0; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 6px; }
html.js.motion .focus.is-pinned .focus__list { display: flex; gap: clamp(32px, 3.6vw, 64px); height: 100%; }
html.js.motion .focus.is-pinned .panel { width: clamp(380px, 38vw, 660px); height: 100%; flex: none; }
html.js.motion .focus.is-pinned .panel article { height: 100%; grid-template-rows: minmax(0, 1fr) auto; }
html.js.motion .focus.is-pinned .panel__figure { aspect-ratio: auto; min-height: 0; }
html.js.motion .focus.is-pinned .panel__figure img { transform: translateX(calc(var(--px, 0) * 1px)) scale(1.12); }
html.js.motion .focus.is-pinned .focus__progress { display: flex; position: absolute; left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); bottom: clamp(28px, 5vh, 52px); }

@media (min-width: 700px) and (max-width: 1023px) {
  .panel article { grid-template-columns: 1fr 1fr; align-items: end; gap: 32px; }
  .panel__figure { aspect-ratio: 4 / 5; }
}

/* ---------- Projects ---------- */
.projects { padding-block: clamp(110px, 14vw, 220px) clamp(90px, 11vw, 170px); border-top: 1px solid var(--line); }
.projects__head { margin-bottom: clamp(44px, 6vw, 88px); }
.projects__title {
  font-size: var(--fs-h2);
  font-weight: 460;
  font-stretch: 110%;
  line-height: 0.95;
  letter-spacing: -0.046em;
  max-width: 14ch;
}

/* ---------- Approach ---------- */
.approach { padding-block: clamp(110px, 14vw, 220px); border-top: 1px solid var(--line); }
.approach__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(16px, 2vw, 32px); }
.approach__head { grid-column: 1 / span 5; align-self: start; position: sticky; top: calc(var(--nav-h) + 6vh); }
.approach__title {
  font-size: clamp(2.2rem, 4.4vw, 4.9rem);
  font-weight: 460;
  font-stretch: 108%;
  line-height: 0.97;
  letter-spacing: -0.042em;
  max-width: 12ch;
}
.principles { grid-column: 7 / span 6; counter-reset: p; }
.principle {
  position: relative;
  padding: clamp(36px, 4.6vw, 64px) 0 clamp(36px, 4.6vw, 64px) clamp(24px, 2.4vw, 40px);
  border-top: 1px solid var(--line);
}
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle::before {
  content: "";
  position: absolute;
  left: 0;
  top: clamp(36px, 4.6vw, 64px);
  bottom: clamp(36px, 4.6vw, 64px);
  width: 1px;
  background: var(--ice);
  box-shadow: 0 0 12px 1px rgba(155, 220, 255, 0.55);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 0.9s var(--ease);
}
.principle__title {
  font-size: clamp(1.9rem, 3.7vw, 3.9rem);
  font-weight: 450;
  font-stretch: 112%;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--bone);
  transition: color 0.7s var(--ease), font-stretch 0.9s var(--ease);
}
.principle__text { margin-top: 16px; color: var(--silver); max-width: 38ch; }
html.js.motion .principles.is-tracking .principle__title { color: var(--dim); font-stretch: 100%; }
html.js.motion .principles.is-tracking .principle.is-active .principle__title { color: var(--bone); font-stretch: 116%; }
html.js.motion .principles.is-tracking .principle.is-active::before { transform: scaleY(1); }

@media (max-width: 900px) {
  .approach__head { grid-column: 1 / -1; position: static; margin-bottom: 56px; }
  .principles { grid-column: 1 / -1; }
}

/* ---------- Closing ---------- */
.closing { --ap: 50%; position: relative; background: var(--void); }
.closing__pin {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
html.js.motion .closing { height: 230vh; }
html.js.motion .closing__pin { position: sticky; top: 0; height: 100vh; height: 100svh; }
.closing__aperture {
  position: absolute;
  inset: 0;
  z-index: -2;
  clip-path: inset(0 calc(50% - var(--ap)) 0 calc(50% - var(--ap)));
}
.closing__aperture picture, .closing__aperture img { width: 100%; height: 100%; }
.closing__aperture img { object-fit: cover; transform: scale(var(--sc, 1)); }
.closing__aperture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 70% at 50% 55%, rgba(8, 10, 13, 0.7), rgba(8, 10, 13, 0.25) 70%), linear-gradient(to bottom, var(--void), transparent 20%, transparent 80%, var(--void));
}
.closing__seam {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  z-index: -1;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(to bottom, transparent, var(--ice) 15%, #fff 50%, var(--ice) 85%, transparent);
  box-shadow: 0 0 22px 4px rgba(155, 220, 255, 0.45), 0 0 80px 14px rgba(79, 169, 218, 0.2);
  opacity: 0;
}
html.js.motion .closing { --ap: 1px; }
html.js.motion .closing__seam { opacity: var(--seam, 1); }
.closing__inner { text-align: center; display: grid; justify-items: center; padding-block: 120px; }
.closing__title {
  font-size: clamp(2.7rem, 8.4vw, 9.6rem);
  font-weight: 470;
  font-stretch: 112%;
  line-height: 0.92;
  letter-spacing: -0.05em;
}
.closing__copy { margin-top: clamp(24px, 3vw, 40px); max-width: 44ch; color: #C3C9D0; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); }
.closing__actions { display: grid; justify-items: center; gap: 22px; margin-top: clamp(32px, 4vw, 52px); }
.closing__mail { color: var(--silver); font-size: 0.95rem; border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; transition: color 0.4s var(--ease), border-color 0.4s var(--ease); }
.closing__mail:hover { color: var(--bone); border-color: var(--ice); }
html.js.motion .closing__copy, html.js.motion .closing__actions { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease) 0.35s, transform 1.2s var(--ease) 0.35s; }
html.js.motion .closing.is-open .closing__copy, html.js.motion .closing.is-open .closing__actions { opacity: 1; transform: none; }
html.js.motion .closing.is-open .closing__actions { transition-delay: 0.5s; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: clamp(64px, 8vw, 110px) 36px; font-size: var(--fs-small); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: clamp(56px, 7vw, 96px); }
.footer__word { font-size: 0.84rem; font-weight: 640; font-stretch: 122%; letter-spacing: 0.17em; text-transform: uppercase; }
.footer__tag { color: var(--silver); margin-top: 10px; }
.footer__nav ul { display: grid; gap: 8px; }
.footer__nav a, .footer__contact a, .footer__legal a { color: var(--silver); transition: color 0.3s var(--ease); padding-block: 2px; display: inline-block; }
.footer__nav a:hover, .footer__contact a:hover, .footer__legal a:hover { color: var(--bone); }
.footer__h { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); font-weight: 560; margin-bottom: 10px; }
.footer__contact a { color: var(--bone); word-break: break-word; }
.footer__h--gap { margin-top: 28px; }
.footer__addr { font-style: normal; color: var(--silver); line-height: 1.65; }
.footer__addr-line { flex-basis: 100%; color: var(--silver); }
.legal__addr { font-style: normal; color: var(--bone); margin-top: 1em; padding-left: 1.4em; border-left: 1px solid var(--ice); line-height: 1.7; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--silver); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 28px; }
@media (max-width: 760px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__id, .footer__contact { grid-column: 1 / -1; }
}

/* ---------- Legal page ---------- */
.legal { padding-block: calc(var(--nav-h) + clamp(64px, 9vw, 140px)) clamp(80px, 10vw, 140px); }
.legal__title { font-size: clamp(2.4rem, 6vw, 5.6rem); font-weight: 460; font-stretch: 110%; line-height: 0.95; letter-spacing: -0.045em; }
.legal__meta { color: var(--silver); margin-top: 20px; }
.legal__body { max-width: 68ch; margin-top: clamp(48px, 6vw, 88px); color: #C3C9D0; }
.legal__body h2 { font-size: 1.35rem; font-weight: 540; font-stretch: 106%; letter-spacing: -0.015em; color: var(--bone); margin: 2.4em 0 0.7em; scroll-margin-top: 90px; }
.legal__body p + p, .legal__body p + ul, .legal__body ul + p { margin-top: 1em; }
.legal__body ul { list-style: none; display: grid; gap: 0.5em; }
.legal__body li { padding-left: 1.4em; position: relative; }
.legal__body li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 0.7em; height: 1px; background: var(--ice); }
.legal__body a { color: var(--bone); border-bottom: 1px solid var(--line-strong); }
.legal__body a:hover { border-color: var(--ice); }
.page-legal .nav { background: rgba(8, 10, 13, 0.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom-color: var(--line); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .curtain { display: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .scrollcue__thumb { animation: none; transform: translateY(20px); }
}
@media (max-width: 900px) { .nav__cta--always { display: inline-block; } }
html.js.motion .focus.is-pinned .panel__text { min-height: 8.6em; align-content: start; }

/* ---------- Consent banner and cookie settings ---------- */
.linkbtn { background: none; border: 0; padding: 2px 0; margin: 0; font: inherit; color: var(--silver); cursor: pointer; transition: color 0.3s var(--ease); }
.linkbtn:hover { color: var(--bone); }
.consent {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 110;
  max-width: 560px;
  padding: 24px 24px 20px;
  background: rgba(17, 18, 22, 0.94);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 24px 60px rgba(0, 0, 0, 0.5);
  color: var(--bone);
  font-size: 0.92rem;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease);
}
.consent.is-visible { opacity: 1; transform: none; transition-delay: 1.6s; }
.consent__title { font-size: 1rem; font-weight: 560; letter-spacing: -0.01em; margin-bottom: 8px; }
.consent__text p { color: #C3C6CE; }
.consent a, .consent-dialog a { color: var(--bone); border-bottom: 1px solid var(--line-strong); }
.consent a:hover, .consent-dialog a:hover { border-color: var(--ice); }
.consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.consent__btn { --h: 44px; padding: 0 20px; font-size: 0.88rem; flex: 1 1 auto; }
.consent__link { background: none; border: 0; padding: 8px 4px; font: inherit; font-size: 0.88rem; color: var(--silver); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.consent__link:hover { color: var(--bone); }

.consent-dialog {
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  background: var(--graphite);
  color: var(--bone);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 40px 100px rgba(0, 0, 0, 0.6);
  font-size: 0.95rem;
  line-height: 1.55;
}
.consent-dialog::backdrop { background: rgba(4, 5, 7, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.consent-dialog__inner { position: relative; padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; }
.consent-dialog__title { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.03em; padding-right: 40px; }
.consent-dialog__intro { color: #C3C6CE; }
.consent-dialog__gpc { padding: 12px 14px; box-shadow: inset 2px 0 0 var(--ice); background: rgba(255, 255, 255, 0.03); color: var(--bone); font-size: 0.9rem; }
.consent-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; padding-top: 18px; border-top: 1px solid var(--line); }
.consent-row h3 { font-size: 1rem; font-weight: 560; margin-bottom: 4px; }
.consent-row p { color: var(--silver); font-size: 0.88rem; }
.consent-row__fixed { font-size: 0.78rem; letter-spacing: 0.06em; color: var(--silver); white-space: nowrap; padding-top: 2px; }
.consent-dialog__status { font-size: 0.85rem; color: var(--silver); min-height: 1.4em; }
.consent-dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-dialog__actions .btn { --h: 46px; padding: 0 20px; font-size: 0.9rem; flex: 1 1 auto; }
.consent-dialog__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; background: none; border: 0; color: var(--silver); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.consent-dialog__close:hover { color: var(--bone); }

.switch { position: relative; display: inline-block; width: 52px; height: 30px; flex: none; cursor: pointer; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch__track { position: absolute; inset: 0; border-radius: 999px; background: var(--charcoal); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color 0.3s var(--ease); }
.switch__thumb { position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--silver); transition: transform 0.35s var(--ease), background-color 0.3s var(--ease); }
.switch input:checked + .switch__track { background: var(--ice); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(22px); background: var(--void); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--ice); outline-offset: 3px; }

/* ---------- Legal pages ---------- */
.legal__toc { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 28px; font-size: 0.92rem; }
.legal__toc a { color: var(--silver); border-bottom: 1px solid var(--line); }
.legal__toc a:hover, .legal__toc a[aria-current="page"] { color: var(--bone); border-color: var(--ice); }
.legal__body h3 { font-size: 1.05rem; font-weight: 560; color: var(--bone); margin: 1.8em 0 0.5em; }
.legal__body ol { list-style: decimal; padding-left: 1.4em; display: grid; gap: 0.5em; margin-top: 1em; }
.legal__body ol li { padding-left: 0.3em; }
.legal__body ol li::before { display: none; }
.legal__body p + ol, .legal__body ol + p, .legal__body h3 + ul, .legal__body .table-wrap + p { margin-top: 1em; }
.table-wrap { overflow-x: auto; margin-top: 1.2em; -webkit-overflow-scrolling: touch; }
.legal__body table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9rem; }
.legal__body th, .legal__body td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.legal__body th { color: var(--bone); font-weight: 560; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.legal__body td code { font-size: 0.88em; color: var(--bone); }
.legal__note { margin-top: 1.6em; padding: 16px 18px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 2px 0 0 var(--ice); color: var(--bone); }
.legal__actions { margin-top: 1.4em; }

@media (max-width: 520px) {
  .consent { padding: 20px 18px 16px; }
  .consent__btn { flex-basis: 100%; }
}
@media print {
  .nav, .consent, .consent-dialog, body::after { display: none !important; }
  body { background: #fff; color: #000; }
}

.projects__list { display: grid; gap: clamp(24px, 3vw, 48px); }

/* ---------- Desktop: calmer scale for the middle sections ---------- */
@media (min-width: 1024px) {
  .intro__grid { margin-top: clamp(56px, 7vw, 110px); }
  .intro__figure { grid-column: 2 / span 4; }
  .intro__copy { grid-column: 7 / span 5; }
  html.js.motion .focus.is-pinned .focus__track { align-items: flex-end; padding-bottom: clamp(80px, 14vh, 140px); }
  html.js.motion .focus.is-pinned .focus__list { height: auto; align-items: flex-end; }
  html.js.motion .focus.is-pinned .panel { width: clamp(300px, 27vw, 460px); height: auto; }
  html.js.motion .focus.is-pinned .panel article { height: auto; grid-template-rows: auto auto; }
  html.js.motion .focus.is-pinned .panel__figure { aspect-ratio: 4 / 3; max-height: 46vh; }
  
  
  
}
@media (min-width: 1024px) {
  html.js.motion .focus.is-pinned .focus__list { align-items: flex-start; }
  html.js.motion .focus.is-pinned .panel__text { min-height: 10.5em; }
}


/* ---------- Projects: editorial list ---------- */
.projects__list { display: grid; border-top: 1px solid var(--line); }
.proj {
  --p-bg: #0A1019; --p-rgb: 255, 195, 107;
  --p-accent: rgb(var(--p-rgb));
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 96px);
  align-items: center;
  padding-block: clamp(40px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  color: inherit;
  isolation: isolate;
}
.proj::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 1px;
  background: var(--p-accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.9s var(--ease);
}
.proj:hover::before, .proj:focus-visible::before { transform: scaleX(1); }
.proj:focus-visible { outline-offset: 8px; }
.proj--weathercall { --p-bg: #0A1019; --p-rgb: 255, 195, 107; }
.proj--salarywise { --p-bg: #061413; --p-rgb: 63, 217, 200; }
.proj--trackpostcode { --p-bg: #110A0E; --p-rgb: 255, 122, 150; }

.proj__field {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(18px, 2vw, 26px);
  font-size: var(--fs-label);
  font-weight: 540;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
}
.proj__badge { width: 18px; height: 18px; color: var(--p-accent); flex: none; }
.proj__badge svg { width: 100%; height: 100%; }
.proj__name {
  font-size: clamp(2.1rem, 3.6vw, 3.6rem);
  font-weight: 460;
  line-height: 1;
  letter-spacing: -0.04em;
  transition: color 0.5s var(--ease);
}
.proj__tag { margin-top: 16px; font-size: clamp(1.08rem, 1rem + 0.35vw, 1.3rem); line-height: 1.4; letter-spacing: -0.01em; color: #D5D8DE; max-width: 36ch; }
.proj__desc { margin-top: 12px; color: var(--silver); max-width: 54ch; font-size: 0.97rem; }
.proj__meta { display: flex; flex-wrap: wrap; gap: 12px clamp(28px, 3vw, 48px); margin: clamp(22px, 2.4vw, 30px) 0 0; }
.proj__meta dt { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); font-weight: 540; margin-bottom: 4px; }
.proj__meta dd { margin: 0; font-size: 0.92rem; color: var(--bone); }
.proj__go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(24px, 2.6vw, 34px);
  padding-bottom: 5px;
  font-size: 0.92rem;
  font-weight: 540;
  color: var(--bone);
  border-bottom: 1px solid rgba(var(--p-rgb), 0.45);
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.proj__go svg { width: 14px; height: 14px; color: var(--p-accent); transition: transform 0.5s var(--ease); }
.proj:hover .proj__go, .proj:focus-visible .proj__go { color: var(--p-accent); border-color: var(--p-accent); }
.proj:hover .proj__go svg { transform: translate(3px, -3px); }

.proj__stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--p-bg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.proj__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 120% at 50% 50%, transparent 55%, rgba(8, 10, 13, 0.55));
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.6s var(--ease);
}
.proj:hover .proj__stage::after { box-shadow: inset 0 0 0 1px rgba(var(--p-rgb), 0.35); }
.proj__art { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.82; transition: opacity 0.6s var(--ease); }
.proj:hover .proj__art { opacity: 1; }

@media (max-width: 860px) {
  .proj { grid-template-columns: 1fr; gap: 28px; }
  .proj__stage { order: -1; }
}
