/* Thinkers & Builders
   Layout: a drafting table that becomes a stage. Every idea starts as
   construction lines in cool draft blue and ends lit in warm build light.
   Left-aligned on a 12-column grid with generous margins. Dark by design. */

:root {
  /* colour: draft means thinking, lamp means built. Nothing else gets colour. */
  --void: #000000;            /* the stage */
  --ink: #F4F1EC;             /* built text */
  --ink-soft: #ABA59C;        /* secondary text, 8.6:1 on void */
  --draft: #8FA3B8;           /* construction lines */
  --draft-ink: #C3CEDA;       /* type while it is still being drafted */
  --draft-text: #7F8A97;      /* words not yet built, 6:1 on void */
  --lamp: #FFB66E;            /* build light */
  --alert: #FF8577;           /* something needs attention, 7.9:1 on void */
  --hairline: rgb(236 228 214 / .14);
  --device-hi: #4A4744;
  --device-lo: #1A1918;

  --ink-rgb: 244 241 236;
  --draft-rgb: 143 163 184;
  --lamp-rgb: 255 182 110;
  --glass-rgb: 30 29 28;

  /* type: one family, a Swiss neo-grotesque, weight carries the hierarchy */
  --font: "Geist", "Helvetica Neue", Helvetica, Arial, ui-sans-serif, sans-serif;

  /* space */
  --gutter-l: max(clamp(24px, 7vw, 160px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(24px, 7vw, 160px), env(safe-area-inset-right, 0px));
  --col-gap: clamp(12px, 1.6vw, 24px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.36, .64, 1);

  color-scheme: dark;
}

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@property --w { syntax: "<number>"; inherits: true; initial-value: 680; }

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

html {
  background: var(--void);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html:not(.lenis) { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { max-width: 100%; }
a { color: inherit; }
::selection { background: var(--lamp); color: var(--void); }

:focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: 3px;
  border-radius: 6px;
}

.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  z-index: 100;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: max(12px, env(safe-area-inset-left, 0px));
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--void);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- Type ---------- */

.h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -.028em;
  font-weight: 580;
  text-wrap: balance;
}

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 16px;
  align-items: end;
  margin-bottom: clamp(40px, 7vh, 88px);
}
.section-head .h2 { grid-column: 1 / span 6; }
.section-head p {
  grid-column: 8 / -1;
  margin: 0;
  color: var(--ink-soft);
  max-width: 28em;
  text-wrap: pretty;
}

/* ---------- Liquid glass ----------
   Glass is only for the controls that float over content: the navigation,
   buttons, the menu sheet and form controls. Text, lists and data never are.
   Each pane is built from a backdrop blur and saturation, a tint, an inner
   top highlight, a gradient rim drawn with a mask, a soft lift shadow and,
   on devices with a pointer, a specular highlight that follows it. */

@property --tint { syntax: "<number>"; inherits: true; initial-value: .42; }

:root {
  --rim: linear-gradient(155deg,
    rgb(255 255 255 / .62) 0%, rgb(255 255 255 / .16) 22%, rgb(255 255 255 / 0) 46%,
    rgb(255 255 255 / 0) 60%, rgb(255 255 255 / .1) 82%, rgb(255 255 255 / .36) 100%);
}

/* The rim: a 1px border whose light falls from the top left */
.nav-bar::before, .btn::before, .nav-menu::before, .menu-panel::before,
.menu-close::before, .nav-lens::before, .opt::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* The specular highlight, positioned by the pointer */
.nav-bar::after, .btn::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, -60%), rgb(255 255 255 / .16), rgb(255 255 255 / 0) 70%);
  opacity: 0;
  transition: opacity .45s var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) {
  .nav-bar:hover::after, .btn:hover::after { opacity: 1; }
}

/* ---------- Buttons ---------- */

.btn {
  --h: 50px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--h);
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 560;
  letter-spacing: -.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .3s, color .3s, box-shadow .45s var(--ease-out);
}
/* Primary: bright tinted glass, so it still reads as the one thing to press */
.btn-primary {
  color: var(--void);
  background: linear-gradient(180deg, rgb(255 255 255 / .97), rgb(230 225 217 / .92));
  -webkit-backdrop-filter: blur(12px) saturate(1.6);
  backdrop-filter: blur(12px) saturate(1.6);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .95),
    inset 0 -1px 1px rgb(0 0 0 / .14),
    0 1px 2px rgb(0 0 0 / .35),
    0 10px 28px rgb(0 0 0 / .32);
}
.btn-primary::before {
  background: linear-gradient(155deg, rgb(255 255 255 / 1), rgb(255 255 255 / 0) 40%, rgb(0 0 0 / .1) 72%, rgb(255 255 255 / .7));
}
.btn-primary::after {
  background: radial-gradient(140px circle at var(--mx, 50%) var(--my, -60%), rgb(255 255 255 / .9), rgb(255 255 255 / 0) 70%);
  mix-blend-mode: soft-light;
}
.btn-primary:hover {
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .95),
    inset 0 -1px 1px rgb(0 0 0 / .14),
    0 1px 2px rgb(0 0 0 / .35),
    0 12px 48px rgb(var(--lamp-rgb) / .38);
}
/* Quiet: clear glass */
.btn-quiet {
  color: var(--ink);
  background: linear-gradient(180deg, rgb(255 255 255 / .09), rgb(255 255 255 / .04));
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  backdrop-filter: blur(18px) saturate(1.8);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 8px 24px rgb(0 0 0 / .28);
}
.btn-quiet:hover { background: linear-gradient(180deg, rgb(255 255 255 / .14), rgb(255 255 255 / .06)); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  z-index: 50;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: 0;
  right: 0;
  padding-left: max(12px, env(safe-area-inset-left, 0px));
  padding-right: max(12px, env(safe-area-inset-right, 0px));
  pointer-events: none;
}
.nav-bar {
  --tint: .42;
  pointer-events: auto;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 1120px;
  height: 58px;
  margin-inline: auto;
  padding: 0 9px 0 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgb(var(--glass-rgb) / calc(var(--tint) - .06)), rgb(var(--glass-rgb) / calc(var(--tint) + .06)));
  -webkit-backdrop-filter: blur(22px) saturate(1.9) brightness(.82);
  backdrop-filter: blur(22px) saturate(1.9) brightness(.82);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .14),
    inset 0 -1px 0 rgb(255 255 255 / .03),
    0 16px 40px rgb(0 0 0 / .42);
  transition: max-width .6s var(--ease-out), height .45s var(--ease-out), --tint .5s var(--ease-out);
}
/* Over a light screen, the glass tints up so the links stay readable */
.nav.is-over-light .nav-bar { --tint: .8; }
.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 620;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.mark { width: 22px; height: 22px; flex: none; }
.wordmark {
  display: inline-block;
  max-width: 14em;
  overflow: hidden;
  transition: max-width .55s var(--ease-out), opacity .35s;
}
.nav-links { position: relative; z-index: 2; display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 15px;
  text-decoration: none;
  transition: color .3s;
}
.nav-links a:hover, .nav-links a.is-current { color: var(--ink); }
html:not(.js) .nav-links a:hover { background: rgb(255 255 255 / .07); }
/* The lens: a drop of glass that springs to the link you point at, or the section you're in */
.nav-lens {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgb(255 255 255 / .13), rgb(255 255 255 / .05));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 4px 14px rgb(0 0 0 / .28);
  transform: translate(var(--lx, 0px), -50%);
  opacity: 0;
  transition: transform .55s var(--spring), width .55s var(--spring), opacity .3s var(--ease-out);
  pointer-events: none;
}
.nav-cta { --h: 42px; z-index: 2; margin-left: 8px; padding: 0 18px; font-size: 15px; }
.nav-menu {
  position: relative;
  isolation: isolate;
  z-index: 2;
  display: none;
  margin-left: auto;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgb(255 255 255 / .14), rgb(255 255 255 / .06));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 4px 14px rgb(0 0 0 / .25);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 560;
  cursor: pointer;
}

.nav.is-compact .nav-bar { max-width: 760px; height: 52px; }

@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-menu { display: inline-flex; align-items: center; }
  .nav-bar { padding-left: 16px; height: 56px; }
}

/* Mobile menu sheet: heavily tinted glass, as sheets should be */
.menu {
  position: fixed;
  z-index: 60;
  inset: 0;
  padding:
    calc(env(safe-area-inset-top, 0px) + 12px)
    max(12px, env(safe-area-inset-right, 0px))
    calc(env(safe-area-inset-bottom, 0px) + 12px)
    max(12px, env(safe-area-inset-left, 0px));
  background: rgb(0 0 0 / 0);
  transition: background-color .4s;
}
.menu.is-open { background: rgb(0 0 0 / .4); }
.menu-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 7px 7px 28px 24px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgb(var(--glass-rgb) / .74), rgb(var(--glass-rgb) / .86));
  -webkit-backdrop-filter: blur(30px) saturate(1.9) brightness(.85);
  backdrop-filter: blur(30px) saturate(1.9) brightness(.85);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 24px 60px rgb(0 0 0 / .5);
  opacity: 0;
  transform: translateY(-10px) scale(.97);
  transform-origin: top right;
  transition: opacity .3s var(--ease-out), transform .5s var(--spring);
}
.menu.is-open .menu-panel { opacity: 1; transform: none; }
.menu-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: 56px; padding-left: 0; }
.brand-static { pointer-events: none; }
.menu-close {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, rgb(255 255 255 / .16), rgb(255 255 255 / .06));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 4px 14px rgb(0 0 0 / .25);
  color: var(--ink);
  cursor: pointer;
}
.menu-close svg { width: 20px; height: 20px; }
.menu-links { position: relative; z-index: 2; display: grid; gap: 2px; margin-top: auto; }
.menu-links a {
  padding-block: 4px;
  color: var(--ink);
  font-size: clamp(36px, 11vw, 52px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.12;
  text-decoration: none;
}
.menu-foot { position: relative; z-index: 2; margin: 28px 0 0; color: var(--ink-soft); font-size: 15px; overflow-wrap: anywhere; }

/* Less glass for anyone who has asked for less transparency, or whose browser can't blur */
@media (prefers-reduced-transparency: reduce) {
  .nav-bar, .nav.is-over-light .nav-bar { --tint: .94; }
  .menu-panel { background: rgb(var(--glass-rgb) / .98); }
  .btn-quiet { background: rgb(255 255 255 / .12); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav-bar, .nav.is-over-light .nav-bar { --tint: .92; }
  .menu-panel { background: rgb(var(--glass-rgb) / .97); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  overflow: clip;
}
.hero-light-wrap { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero-light {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: 100%;
  background:
    radial-gradient(30% 22% at 40% 100%, rgb(255 205 150 / .62), rgb(255 168 92 / .34) 34%, rgb(255 150 70 / .1) 64%, rgb(255 150 70 / 0) 100%),
    radial-gradient(80% 42% at 46% 100%, rgb(255 160 80 / .16), rgb(255 160 80 / 0) 72%);
}
.hero-grid {
  position: absolute;
  inset: 0 0 0 0;
  left: 0;
  right: 0;
  z-index: -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  pointer-events: none;
}
.hero-grid span { background: rgb(var(--draft-rgb) / .055); transform-origin: 50% 0; }
.hero-guides { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.guide {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgb(var(--draft-rgb) / .5);
  transform-origin: 0 50%;
}
.guide-label,
.measure-label {
  position: absolute;
  color: var(--draft);
  font-size: 12px;
  font-weight: 520;
  letter-spacing: .01em;
  line-height: 1;

  white-space: nowrap;
}
.guide-label { transform: translateY(calc(-100% - 5px)); }
.measure {
  position: absolute;
  width: 1px;
  background: var(--draft);
}
.measure::before, .measure::after {
  content: "";
  position: absolute;
  left: -4px;
  width: 9px;
  height: 1px;
  background: var(--draft);
}
.measure::before { top: 0; }
.measure::after { bottom: 0; }
.measure-label { left: 8px; top: 50%; transform: translateY(-50%); }

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(120px, 18vh, 200px) clamp(40px, 9vh, 104px);
}
.hero-title {
  margin: 0;
  font-size: var(--hero-size, clamp(48px, 8.4vw, 168px));
  line-height: .98;
  letter-spacing: -.038em;
  font-weight: var(--w);
  color: var(--ink);
}
.hero-title .row { display: block; white-space: nowrap; }
.hero-title .word { display: inline-block; }
.hero-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  max-width: 36em;
  margin-top: clamp(28px, 5vh, 56px);
}
.hero-lede {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.5;
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 640px), (max-width: 1100px) and (orientation: portrait) {
  .hero-title .word { display: block; }
}
@media (max-width: 640px) {
  .hero-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-grid span:nth-child(n+5) { display: none; }
}

/* Intro: the page loads as a drawing. These states are only applied while
   the intro is pending; a fallback releases them if script never runs. */
.intro .hero-title { --w: 200; color: var(--draft-ink); animation: tb-release-title .8s 4s both; }
.intro .hero-title .word { clip-path: inset(-12% 100% -12% 0); animation: tb-release .8s 4s both; }
.intro .hero-foot, .intro .nav { opacity: 0; animation: tb-release .8s 4s both; }
.intro .hero-light { opacity: 0; animation: tb-release .8s 4s both; }
.intro .hero-grid span { transform: scaleY(0); }
@keyframes tb-release { to { opacity: 1; clip-path: inset(-12% 0 -12% 0); } }
@keyframes tb-release-title { to { --w: 680; color: var(--ink); } }

/* ---------- Belief ---------- */

.belief { padding-block: clamp(120px, 24vh, 260px) clamp(96px, 18vh, 200px); }
.belief-text {
  margin: 0;
  max-width: 19em;
  font-size: clamp(28px, 4.1vw, 64px);
  line-height: 1.1;
  letter-spacing: -.024em;
  font-weight: 500;
  text-wrap: pretty;
}

/* ---------- Approach ---------- */

.approach {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 96px 40px;
}
.approach-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: center;
}
.approach-copy { grid-column: 1 / span 5; min-width: 0; }
.approach-intro { margin: 18px 0 0; max-width: 28em; color: var(--ink-soft); text-wrap: pretty; }
.approach-stage {
  grid-column: 7 / -1;
  display: flex;
  justify-content: center;
  perspective: 1600px;
}
.steps-wrap { position: relative; margin-top: clamp(32px, 6vh, 56px); padding-left: 28px; }
.steps-wrap::before,
.steps-rail {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
}
.steps-wrap::before { background: var(--hairline); }
.steps-rail {
  background: linear-gradient(var(--draft), var(--lamp));
  transform-origin: 50% 0;
  transform: scaleY(var(--p, 1));
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(18px, 3.2vh, 30px); }
.step {
  display: grid;
  grid-template-columns: 2em minmax(0, 1fr);
  column-gap: 6px;
  transition: color .5s var(--ease-out), opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.step-n {
  padding-top: .45em;
  color: var(--draft);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  transition: color .5s;
}
.step h3 { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -.012em; }
.step p { margin: 0; padding-top: 6px; max-width: 30em; color: var(--ink-soft); transition: color .5s, opacity .45s var(--ease-out); text-wrap: pretty; }
.motion .step:not(.is-active), .motion .step:not(.is-active) p { color: var(--draft-text); }
.motion .step.is-active .step-n { color: var(--lamp); }

/* On larger screens only the current stage opens up; the others stay as titles */
@media (min-width: 900px) {
  .motion .step > div { display: grid; grid-template-rows: auto 0fr; transition: grid-template-rows .6s var(--ease-out); }
  .motion .step.is-active > div { grid-template-rows: auto 1fr; }
  .motion .step > div > p { min-height: 0; overflow: hidden; opacity: 0; }
  .motion .step.is-active > div > p { opacity: 1; }
}

@media (max-width: 899px) {
  .approach { align-items: stretch; padding-block: calc(env(safe-area-inset-top, 0px) + 92px) 28px; }
  .approach-grid { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 22px; }
  .approach-copy { display: contents; }
  .approach .h2 { order: 1; font-size: clamp(30px, 8vw, 40px); }
  .approach-intro { display: none; }
  .approach-stage { order: 2; }
  .steps-wrap { order: 3; margin-top: 0; }
  .step h3 { font-size: 21px; }
  .step p { font-size: 16px; }
  .motion .steps-wrap { padding-left: 0; }
  .motion .steps-wrap::before, .motion .steps-rail { display: none; }
  .motion .steps { display: grid; }
  .motion .step { grid-area: 1 / 1; opacity: 0; transform: translateY(8px); }
  .motion .step.is-active { opacity: 1; transform: none; }
  .motion .step.is-active, .motion .step.is-active p { color: var(--ink); }
  .motion .step.is-active p { color: var(--ink-soft); }
}

/* ---------- Devices ---------- */

.device { position: relative; will-change: transform; }

.phone {
  --ph: min(76vh, 760px);
  --pad: calc(var(--ph) * .0118);
  flex: none;
  height: var(--ph);
  width: calc(var(--ph) * .4746);
  border-radius: calc(var(--ph) * .084);
  background: linear-gradient(150deg, var(--device-hi), var(--device-lo) 34%, var(--device-lo) 72%, var(--device-hi));
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / .1),
    inset 0 1px 1px rgb(255 255 255 / .14),
    0 60px 120px -30px rgb(0 0 0 / .95),
    0 0 calc(var(--lit, 0) * 140px) calc(var(--lit, 0) * 6px) rgb(var(--lamp-rgb) / calc(var(--lit, 0) * .32));
}
.phone::before, .phone::after {
  content: "";
  position: absolute;
  width: calc(var(--ph) * .006);
  border-radius: 2px;
  background: var(--device-hi);
}
.phone::before { right: calc(var(--ph) * -.005); top: 27%; height: 12%; }
.phone::after { left: calc(var(--ph) * -.005); top: 21%; height: 7%; }
.phone-screen {
  position: absolute;
  inset: var(--pad);
  overflow: hidden;
  border-radius: calc(var(--ph) * .0725);
  background: var(--void);
  isolation: isolate;
  transform: translateZ(0);
}
.island {
  position: absolute;
  z-index: 4;
  top: calc(var(--ph) * .025);
  left: 50%;
  width: calc(var(--ph) * .145);
  height: calc(var(--ph) * .043);
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}
.phone-stage { --ph: min(76vh, 760px); }
.phone-work { --ph: min(78vh, 720px); }

@media (max-width: 899px) {
  .phone-stage { --ph: clamp(300px, calc(100svh - 390px), 560px); }
  .phone-work { --ph: min(68svh, 600px); }
}

.canvas {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  transform: scale(var(--s, .8));
}
.canvas[data-canvas="390"] { width: 390px; height: 844px; }
.canvas[data-canvas="1200"] { width: 1200px; height: 720px; }
.layer { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }

.browser {
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--device-lo);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / .1),
    0 60px 120px -30px rgb(0 0 0 / .95);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid rgb(0 0 0 / .6);
}
.dots { display: flex; gap: 7px; flex: none; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: rgb(255 255 255 / .16); }
.address {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 62%;
  height: 26px;
  margin-inline: auto;
  padding: 0 14px;
  overflow: hidden;
  border-radius: 8px;
  background: rgb(255 255 255 / .07);
  color: var(--ink-soft);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.address svg { width: 12px; height: 12px; flex: none; }
.browser-view { position: relative; aspect-ratio: 1200 / 720; overflow: hidden; }

/* The screens are glass too: a faint reflection that slides as the device turns */
.phone-screen::after, .browser-view::after {
  content: "";
  position: absolute;
  z-index: 6;
  inset: -10% -40%;
  background: linear-gradient(112deg,
    rgb(255 255 255 / 0) 40%, rgb(255 255 255 / .07) 47%, rgb(255 255 255 / .025) 52%, rgb(255 255 255 / 0) 58%);
  transform: translateX(var(--sheen, -18%));
  pointer-events: none;
}

/* ---------- Mock interfaces (each product keeps its own palette) ---------- */

.ui { position: absolute; inset: 0; overflow: hidden; font-family: var(--font); line-height: 1.3; }
.ui p { margin: 0; }
.ui dl, .ui dd { margin: 0; }
.ui-body { position: absolute; inset: 0; }

.sb {
  position: absolute;
  z-index: 2;
  top: 15px;
  left: 34px;
  right: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 22px;
  font-size: 16px;
  font-weight: 600;
 
}
.sb-icons { width: 68px; height: 12px; }
.home-ind {
  position: absolute;
  top: 826px;
  left: 128px;
  width: 134px;
  height: 5px;
  border-radius: 3px;
  background: rgb(255 255 255 / .6);
}
.tabbar {
  position: absolute;
  top: 748px;
  left: 24px;
  width: 342px;
  height: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 0 6px;
  border-radius: 32px;
  background: rgb(34 42 62 / .86);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), inset 0 0 0 .5px rgb(255 255 255 / .16), 0 12px 30px rgb(0 0 0 / .45);
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 52px;
  border-radius: 26px;
  font-size: 10px;
  font-weight: 560;
}
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Sketch and wireframe */
.layer-sketch { background: #121314; }
.layer-sketch path { fill: none; stroke: #AEB8C3; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.layer-sketch .heavy { stroke-width: 2.4; }
.layer-wire { background: #0C0E12; }
.layer-wire g { stroke: var(--draft); }
.layer-sketch, .layer-wire { opacity: 0; }
.scanline {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--lamp);
  box-shadow: 0 0 18px 4px rgb(var(--lamp-rgb) / .55), 0 0 70px 18px rgb(var(--lamp-rgb) / .2);
  opacity: 0;
}

/* Meridian */
.ui-meridian {
  --m-bg: #0A0E18;
  --m-card: #141A28;
  --m-line: rgb(180 200 255 / .12);
  --m-ink: #F3F6FC;
  --m-soft: #98A3BA;
  --m-brand: #7FA7FF;
  background: radial-gradient(120% 56% at 82% 0%, #19233D 0%, var(--m-bg) 58%);
  color: var(--m-ink);
}
.m-kicker { position: absolute; top: 76px; left: 24px; font-size: 14px; color: var(--m-soft); }
.m-title { position: absolute; top: 96px; left: 24px; font-size: 26px; font-weight: 640; letter-spacing: -.015em; }
.m-card {
  position: absolute;
  top: 150px;
  left: 16px;
  width: 358px;
  height: 214px;
  border-radius: 28px;
  background: var(--m-card);
  box-shadow: inset 0 0 0 1px var(--m-line);
}
.m-code { position: absolute; top: 24px; font-size: 34px; line-height: 1; font-weight: 620; letter-spacing: -.02em; }
.m-place { position: absolute; top: 66px; font-size: 12.5px; color: var(--m-soft); white-space: nowrap; }
.m-time { position: absolute; top: 84px; font-size: 18px; font-weight: 540; }
.m-time sup { margin-left: 2px; font-size: 11px; color: var(--m-soft); vertical-align: 6px; line-height: 0; }
.m-from, .m-from-place, .m-from-time { left: 24px; }
.m-to, .m-to-place, .m-to-time { right: 24px; text-align: right; }
.m-path {
  position: absolute;
  top: 36px;
  left: 116px;
  width: 126px;
  height: 14px;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(90deg, rgb(152 163 186 / .7) 0 4px, transparent 4px 9px) center / 100% 1.5px no-repeat;
}
.m-path svg { width: 26px; height: 18px; padding: 0 4px; background: var(--m-card); color: var(--m-brand); }
.m-facts {
  position: absolute;
  top: 126px;
  left: 24px;
  right: 24px;
  display: grid;
  grid-template-columns: 112px 112px 1fr;
  padding-top: 16px;
  border-top: 1px solid var(--m-line);
}
.m-facts dt { font-size: 12px; color: var(--m-soft); }
.m-facts dd { margin-top: 4px; font-size: 19px; font-weight: 600; }
.m-label { position: absolute; left: 24px; font-size: 13px; color: var(--m-soft); }
.m-journey-label { top: 388px; }
.m-count-label { top: 480px; }
.m-track {
  position: absolute;
  top: 414px;
  left: 24px;
  right: 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.m-track li { position: relative; height: 6px; border-radius: 3px; background: rgb(255 255 255 / .12); }
.m-track li span { position: absolute; top: 14px; left: 0; font-size: 11px; color: var(--m-soft); white-space: nowrap; }
.m-track .done { background: var(--m-brand); }
.m-track .now { background: linear-gradient(90deg, var(--m-brand) 45%, rgb(255 255 255 / .12) 45%); }
.m-track .now span { color: var(--m-ink); }
.m-big { position: absolute; top: 494px; left: 21px; font-size: 62px; line-height: 1; font-weight: 300; letter-spacing: -.03em; }
.m-big span { margin-left: 8px; font-size: 22px; font-weight: 500; letter-spacing: 0; color: var(--m-soft); }
.m-note { position: absolute; top: 566px; left: 24px; font-size: 14px; color: var(--m-soft); }
.m-cta {
  position: absolute;
  top: 636px;
  left: 16px;
  width: 358px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: var(--m-brand);
  color: #08101F;
  font-size: 16px;
  font-weight: 620;
}
.ui-meridian .tab { color: var(--m-soft); }
.ui-meridian .tab.is-on { color: var(--m-brand); background: rgb(127 167 255 / .15); }

.notif {
  position: absolute;
  z-index: 3;
  top: 52px;
  left: 12px;
  width: 366px;
  height: 78px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: center;
  padding: 0 16px 0 14px;
  border-radius: 26px;
  background: rgb(40 44 56 / .97);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), inset 0 0 0 .5px rgb(255 255 255 / .16), 0 16px 40px rgb(0 0 0 / .5);
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
}
.notif-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: linear-gradient(160deg, #A4C0FF, #5A84E6); color: #0A1430; }
.notif-icon svg { width: 30px; height: 30px; }
.notif-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.notif-body b { font-weight: 640; }
.notif-body span { color: rgb(255 255 255 / .8); }
.notif-time { align-self: start; margin-top: 15px; font-size: 12px; color: rgb(255 255 255 / .55); }

/* Meridian boarding pass */
.pass-title { position: absolute; top: 64px; left: 24px; font-size: 28px; font-weight: 640; letter-spacing: -.015em; }
.pass {
  position: absolute;
  top: 116px;
  left: 16px;
  width: 358px;
  height: 680px;
  overflow: hidden;
  border-radius: 30px;
  background: #F3F5FA;
  color: #0B1222;
}
.pass-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 148px;
  padding: 0 26px;
  background: var(--m-brand);
  color: #07112A;
}
.pass-city b { display: block; font-size: 46px; line-height: 1; font-weight: 660; letter-spacing: -.03em; }
.pass-city span { display: block; margin-top: 6px; font-size: 14px; font-weight: 520; opacity: .72; }
.pass-city-to { text-align: right; }
.pass-plane { width: 28px; height: 28px; }
.pass-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px 26px 0; }
.pass-grid .span-2 { grid-column: 1 / -1; }
.pass-grid dt { font-size: 12px; color: #5B6478; }
.pass-grid dd { margin-top: 2px; font-size: 19px; font-weight: 620; }
.pass-tear {
  position: relative;
  height: 1px;
  margin-top: 26px;
  background: repeating-linear-gradient(90deg, #B9C0CF 0 6px, transparent 6px 12px);
}
.pass-tear::before, .pass-tear::after {
  content: "";
  position: absolute;
  top: -14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0C111D;
}
.pass-tear::before { left: -14px; }
.pass-tear::after { right: -14px; }
.pass-code { display: block; width: 196px; height: 196px; margin: 28px auto 0; fill: #0B1222; }
.pass-hint { margin-top: 14px !important; font-size: 13px; text-align: center; color: #5B6478; }

/* Tally */
.ui-tally {
  --t-bg: #0B110F;
  --t-card: #131B18;
  --t-line: rgb(190 235 210 / .1);
  --t-ink: #F1F6F3;
  --t-soft: #93A39B;
  --t-brand: #9ED9B9;
  background: var(--t-bg);
  color: var(--t-ink);
}
.t-head { position: absolute; top: 60px; left: 24px; right: 24px; display: flex; align-items: center; justify-content: space-between; }
.t-head p { font-size: 32px; font-weight: 660; letter-spacing: -.02em; }
.t-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #22302A; color: var(--t-brand); font-size: 13px; font-weight: 620; }
.t-goal {
  position: absolute;
  top: 122px;
  left: 16px;
  width: 358px;
  padding: 22px 24px 20px;
  border-radius: 28px;
  background: var(--t-card);
  box-shadow: inset 0 0 0 1px var(--t-line);
}
.t-goal-name { font-size: 15px; color: var(--t-soft); }
.t-amount { margin-top: 4px !important; font-size: 58px; line-height: 1.05; font-weight: 280; letter-spacing: -.035em; }
.t-of { margin-top: 2px !important; font-size: 14px; color: var(--t-soft); }
.t-bar { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; margin-top: 20px; }
.t-bar i { height: 30px; border-radius: 4px; background: rgb(255 255 255 / .08); }
.t-bar i:nth-child(-n+8) { background: var(--t-brand); }
.t-note { margin-top: 16px !important; font-size: 14px; line-height: 1.4; }
.t-next {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--t-line);
  color: var(--t-soft);
  font-size: 15px;
}
.t-next b { color: var(--t-ink); font-weight: 600; }
.t-label { position: absolute; top: 458px; left: 24px; font-size: 13px; color: var(--t-soft); }
.t-list {
  position: absolute;
  top: 482px;
  left: 16px;
  right: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: 24px;
  background: var(--t-card);
  box-shadow: inset 0 0 0 1px var(--t-line);
}
.t-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; column-gap: 14px; align-items: center; height: 62px; padding: 0 18px; }
.t-list li + li { background: linear-gradient(var(--t-line), var(--t-line)) 68px 0 / calc(100% - 68px) 1px no-repeat; }
.t-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #1E2B25; color: var(--t-brand); font-style: normal; font-size: 14px; font-weight: 640; }
.t-list b { display: block; font-size: 15px; font-weight: 580; }
.t-list small { font-size: 12.5px; color: var(--t-soft); }
.t-list em { font-style: normal; font-size: 15px; font-weight: 600; color: var(--t-brand); }
.tabbar-tally { background: rgb(28 40 35 / .9); }
.ui-tally .tab { color: var(--t-soft); }
.ui-tally .tab.is-on { color: var(--t-brand); background: rgb(158 217 185 / .13); }

/* Kerb (a light, public-service web page) */
.ui-kerb {
  --k-bg: #F6F5F2;
  --k-ink: #17191D;
  --k-soft: #5D626B;
  --k-line: #DAD8D2;
  --k-head: #1C2733;
  --k-go: #1E6B52;
  --k-plate: #F7D117;
  background: var(--k-bg);
  color: var(--k-ink);
  font-size: 16px;
}
.k-header { display: flex; align-items: center; gap: 28px; height: 64px; padding: 0 64px; background: var(--k-head); color: #fff; font-size: 16px; }
.k-header b { margin-right: auto; font-size: 18px; font-weight: 640; }
.k-header span { color: rgb(255 255 255 / .78); }
.k-main { top: 64px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; padding: 36px 64px; }
.k-back { font-size: 15px; color: var(--k-soft); text-decoration: underline; text-underline-offset: 3px; }
.k-step { margin-top: 24px !important; font-size: 16px; color: var(--k-soft); }
.k-h1 { margin-top: 4px !important; font-size: 44px; line-height: 1.1; font-weight: 680; letter-spacing: -.02em; }
.k-plate {
  display: inline-block;
  margin-top: 22px !important;
  padding: 8px 26px;
  border-radius: 8px;
  background: var(--k-plate);
  box-shadow: inset 0 0 0 2px rgb(0 0 0 / .7);
  color: #111;
  font-size: 46px;
  line-height: 1.1;
  font-weight: 720;
  letter-spacing: .01em;
}
.k-facts { max-width: 540px; margin-top: 22px !important; }
.k-facts div { display: grid; grid-template-columns: 200px 1fr; padding: 9px 0; border-top: 1px solid var(--k-line); }
.k-facts div:last-child { border-bottom: 1px solid var(--k-line); }
.k-facts dt { color: var(--k-soft); }
.k-facts dd { font-weight: 560; }
.k-radio { display: flex; align-items: center; gap: 14px; margin-top: 12px !important; font-size: 17px; }
.k-facts + .k-radio { margin-top: 22px !important; }
.k-radio i { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--k-ink); }
.k-radio.is-on i { box-shadow: inset 0 0 0 2px var(--k-ink), inset 0 0 0 7px var(--k-bg), inset 0 0 0 14px var(--k-ink); }
.k-btn {
  display: inline-block;
  margin-top: 24px !important;
  padding: 13px 26px;
  border-radius: 6px;
  background: var(--k-go);
  box-shadow: 0 2px 0 #0F3D2E;
  color: #fff;
  font-size: 18px;
  font-weight: 620;
}
.k-summary {
  align-self: start;
  margin-top: 46px;
  padding: 26px 28px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--k-line);
}
.k-sum-title { font-size: 20px; font-weight: 660; }
.k-summary dl { margin-top: 14px; }
.k-summary dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--k-line); }
.k-summary dt { color: var(--k-soft); }
.k-summary dd { font-weight: 580; text-align: right; }
.k-sum-note { margin-top: 14px !important; font-size: 14px; line-height: 1.45; color: var(--k-soft); }

/* Kerb on a phone */
.ui-kerb-m .sb { color: #fff; }
.km-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 108px;
  padding: 0 20px 18px;
  background: var(--k-head);
  color: #fff;
}
.km-header b { font-size: 17px; font-weight: 640; }
.km-header span { color: rgb(255 255 255 / .78); font-size: 16px; }
.km-body { top: 108px; padding: 20px 20px 0; }
.km-h1 { margin-top: 4px !important; font-size: 32px; line-height: 1.12; font-weight: 680; letter-spacing: -.02em; }
.km-plate { margin-top: 18px !important; padding: 6px 20px; font-size: 38px; }
.km-facts { margin-top: 20px !important; }
.km-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--k-line); font-size: 15px; }
.km-facts div:last-child { border-bottom: 1px solid var(--k-line); }
.km-facts dt { color: var(--k-soft); }
.km-facts dd { font-weight: 560; }
.ui-kerb-m .k-radio { font-size: 16px; }
.km-facts + .k-radio { margin-top: 22px !important; }
.km-btn {
  display: grid;
  place-items: center;
  height: 52px;
  margin-top: 24px !important;
  border-radius: 6px;
  background: var(--k-go);
  box-shadow: 0 2px 0 #0F3D2E;
  color: #fff;
  font-size: 17px;
  font-weight: 620;
}
.km-safari {
  position: absolute;
  top: 752px;
  left: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  height: 50px;
  border-radius: 25px;
  background: rgb(255 255 255 / .9);
  box-shadow: 0 0 0 .5px rgb(0 0 0 / .12), 0 8px 24px rgb(0 0 0 / .12);
  color: var(--k-ink);
  font-size: 15px;
}
.km-home { background: rgb(0 0 0 / .5); }

/* ---------- Work ---------- */

.work { padding-block: clamp(96px, 16vh, 180px) clamp(40px, 8vh, 80px); }
.project { position: relative; overflow-x: clip; padding-block: clamp(40px, 9vh, 112px); }
.section-head + .project { padding-top: 0; }
.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 40px;
  align-items: center;
}
.project-copy { grid-column: 1 / span 5; min-width: 0; }
.project-visual {
  position: relative;
  isolation: isolate;
  grid-column: 6 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: min(84vh, 800px);
  perspective: 1600px;
}
.project-name {
  margin: 0;
  font-size: clamp(48px, 6.6vw, 108px);
  line-height: .95;
  letter-spacing: -.042em;
  font-weight: 640;
}
.project-line {
  max-width: 24em;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  text-wrap: pretty;
}
.facts { display: grid; margin: 36px 0 0; max-width: 30em; }
.facts div {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 16px;
  padding-block: 13px;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
}
.facts div:last-child { border-bottom: 1px solid var(--hairline); }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; }
.project-glow {
  position: absolute;
  z-index: -1;
  inset: -6% -18%;
  background: radial-gradient(closest-side, rgb(var(--glow) / .3), rgb(var(--glow) / .08) 58%, rgb(var(--glow) / 0));
  pointer-events: none;
}
.is-meridian { --glow: 127 167 255; }
.is-tally { --glow: 158 217 185; }
.is-kerb { --glow: 120 200 160; }
.kerb-stack { width: 100%; max-width: 900px; padding-bottom: 7%; }
.phone-kerb { --ph: min(54vh, 480px); position: absolute; right: -1%; bottom: -5%; }

@media (max-width: 899px) {
  .section-head .h2, .section-head p { grid-column: 1 / -1; }
  .project-copy, .project-visual { grid-column: 1 / -1; }
  .project-visual { order: -1; min-height: 0; padding-block: 24px; }
  .kerb-stack { display: flex; justify-content: center; padding-bottom: 0; }
  .kerb-stack .browser { display: none; }
  .phone-kerb { --ph: min(68svh, 600px); position: relative; right: auto; bottom: auto; }
}

/* ---------- Services ---------- */

.services { padding-block: clamp(96px, 18vh, 200px) clamp(80px, 12vh, 140px); }
.service-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--hairline); }
.service {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 10px;
  padding-block: clamp(22px, 3.2vw, 40px);
  border-top: 1px solid var(--hairline);
}
.service::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--lamp), rgb(var(--lamp-rgb) / 0) 70%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .8s var(--ease-out);
}
.service-name {
  grid-column: 1 / span 6;
  margin: 0;
  font-size: clamp(26px, 3.2vw, 46px);
  line-height: 1.06;
  letter-spacing: -.024em;
  font-weight: 340;
  transition: font-weight .6s var(--ease-out);
}
.service p {
  grid-column: 7 / -1;
  max-width: 32em;
  margin: 0;
  padding-top: .45em;
  color: var(--ink-soft);
  text-wrap: pretty;
}
@media (hover: hover) {
  .service:hover::before { transform: scaleX(1); }
  .service:hover .service-name { font-weight: 640; }
}
.service.is-lit::before { transform: scaleX(1); }
.service.is-lit .service-name { font-weight: 640; }
.stack { max-width: 44em; margin: 40px 0 0; color: var(--ink-soft); text-wrap: pretty; }

@media (max-width: 760px) {
  .service-name, .service p { grid-column: 1 / -1; }
  .service p { padding-top: 0; }
}

/* ---------- Enquiry ---------- */

.contact {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(110px, 18vh, 200px) clamp(96px, 14vh, 160px);
}
.contact-light {
  position: absolute;
  z-index: -1;
  left: -25%;
  right: -25%;
  bottom: -480px;
  height: 1000px;
  background:
    radial-gradient(26% 24% at 30% 50%, rgb(255 205 150 / .42), rgb(255 168 92 / .2) 36%, rgb(255 150 70 / .06) 66%, rgb(255 150 70 / 0) 100%),
    radial-gradient(70% 42% at 40% 50%, rgb(255 160 80 / .11), rgb(255 160 80 / 0) 72%);
  pointer-events: none;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 64px;
  align-items: start;
}
.contact-intro {
  grid-column: 1 / span 5;
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 112px);
  min-width: 0;
}
.enquiry-wrap { grid-column: 7 / -1; min-width: 0; }

.contact-title {
  max-width: 9em;
  margin: 0;
  font-size: clamp(42px, 5.4vw, 88px);
  line-height: .98;
  letter-spacing: -.04em;
  font-weight: 660;
  text-wrap: balance;
}
.contact-lede { max-width: 26em; margin: 24px 0 0; color: var(--ink-soft); font-size: clamp(17px, 1.3vw, 19px); text-wrap: pretty; }

.next { max-width: 26em; margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--hairline); }
.next li {
  display: grid;
  grid-template-columns: 2em minmax(0, 1fr);
  column-gap: 6px;
  padding-block: 14px;
  border-bottom: 1px solid var(--hairline);
}
.next-n { padding-top: 1px; color: var(--lamp); font-size: 15px; font-variant-numeric: tabular-nums; }
.next p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.45; }

.contact-alt { display: grid; gap: 8px; margin-top: 36px; }
.contact-alt > p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.email {
  min-width: 0;
  color: var(--ink);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 500;
  letter-spacing: -.01em;
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(var(--lamp), var(--lamp)) 0 100% / 0 1.5px no-repeat;
  transition: background-size .7s var(--ease-out);
}
.email:hover { background-size: 100% 1.5px; }
.btn-small { --h: 38px; padding: 0 16px; font-size: 14px; }
.copy-status { color: var(--lamp); font-size: 15px; }

@media (max-width: 899px) {
  .contact-intro, .enquiry-wrap { grid-column: 1 / -1; }
}
@media (max-width: 899px), (max-height: 860px) {
  .contact-intro { position: static; }
}

/* The form */
.enquiry { display: grid; gap: 48px; }
.q { min-width: 0; margin: 0; padding: 0; border: 0; }
.q-title {
  display: block;
  margin: 0 0 14px;
  padding: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -.012em;
}
.q-help { margin: -8px 0 16px; color: var(--ink-soft); font-size: 15px; line-height: 1.45; }
.q-error, .field-error { margin: 0 0 12px; color: var(--alert); font-size: 15px; line-height: 1.4; }
.field-error { margin: 0; }

/* Single choice with a description: a grouped list */
.choices { border-top: 1px solid var(--hairline); }
.choice {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
  column-gap: 16px;
  min-height: 68px;
  padding: 14px 6px 14px 2px;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  transition: background-color .25s;
}
.choice-text b { display: block; font-size: 17px; font-weight: 560; line-height: 1.35; }
.choice-text small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 15px; line-height: 1.4; }
.choice-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgb(var(--ink-rgb) / .34);
  transition: box-shadow .4s var(--spring);
}
.choice:has(input:checked) .choice-mark {
  box-shadow: inset 0 0 0 1.5px var(--lamp), inset 0 0 0 5.5px var(--void), inset 0 0 0 11px var(--lamp);
}

/* Short choices: a grid of toggles */
.opts { --cols: 3; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 8px; }
.opts-2 { --cols: 2; }
.opt-fill { grid-column: span 2; }
.opt {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgb(255 255 255 / .06), rgb(255 255 255 / .02));
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  backdrop-filter: blur(12px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .07), 0 6px 18px rgb(0 0 0 / .2);
  font-size: 16px;
  line-height: 1.3;
  cursor: pointer;
  transition: box-shadow .35s var(--ease-out), background .35s var(--ease-out);
}
.opt::before { opacity: .7; transition: opacity .35s var(--ease-out); }
.opt::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lamp);
  transform: scale(0);
  transition: transform .45s var(--spring);
}
.opt:has(input:checked) {
  background: linear-gradient(180deg, rgb(var(--lamp-rgb) / .2), rgb(var(--lamp-rgb) / .07));
  box-shadow: inset 0 1px 0 rgb(255 226 196 / .28), 0 8px 26px rgb(var(--lamp-rgb) / .14);
}
.opt:has(input:checked)::before {
  opacity: 1;
  background: linear-gradient(155deg, rgb(255 222 186 / .95), rgb(var(--lamp-rgb) / .3) 32%, rgb(var(--lamp-rgb) / .08) 60%, rgb(var(--lamp-rgb) / .6));
}
.opt:has(input:checked)::after { transform: scale(1); }

.choice input, .opt input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.choice:has(input:focus-visible), .opt:has(input:focus-visible) { outline: 2px solid var(--lamp); outline-offset: 2px; border-radius: 14px; }
@media (hover: hover) {
  .choice:hover { background: rgb(255 255 255 / .03); }
  .opt:hover { background: linear-gradient(180deg, rgb(255 255 255 / .1), rgb(255 255 255 / .04)); }
  .opt:hover::before { opacity: 1; }
  .opt:has(input:checked):hover { background: linear-gradient(180deg, rgb(var(--lamp-rgb) / .24), rgb(var(--lamp-rgb) / .09)); }
}

/* Text fields */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field > label:not(.q-title) { color: var(--ink-soft); font-size: 15px; }
.optional { margin-left: 6px; color: var(--draft-text); }
.input {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgb(255 255 255 / .025), rgb(255 255 255 / .055));
  box-shadow: inset 0 1px 2px rgb(0 0 0 / .35), inset 0 0 0 1px rgb(255 255 255 / .1), 0 1px 0 rgb(255 255 255 / .05);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  transition: box-shadow .25s, background-color .25s;
}
textarea.input { min-height: 172px; resize: vertical; line-height: 1.55; }
.input:hover { box-shadow: inset 0 1px 2px rgb(0 0 0 / .35), inset 0 0 0 1px rgb(255 255 255 / .2), 0 1px 0 rgb(255 255 255 / .05); }
.input:focus {
  outline: none;
  background: linear-gradient(180deg, rgb(255 255 255 / .04), rgb(255 255 255 / .07));
  box-shadow: inset 0 1px 2px rgb(0 0 0 / .35), inset 0 0 0 1.5px var(--lamp), 0 0 0 4px rgb(var(--lamp-rgb) / .14);
}
.input[aria-invalid="true"] { box-shadow: inset 0 1px 2px rgb(0 0 0 / .35), inset 0 0 0 1.5px var(--alert); }
.field[data-field="details"] .field-error { margin-top: 8px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* The brief: the one card on the form, because it is the document being made */
.brief { display: none; }
.js .brief {
  display: block;
  padding: 20px 24px 6px;
  border-radius: 20px;
  background: rgb(255 255 255 / .03);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.brief-title { margin: 0 0 6px; color: var(--ink-soft); font-size: 15px; }
.brief dl { margin: 0; }
.brief dl div {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: 16px;
  padding-block: 11px;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
  line-height: 1.4;
}
.brief dt { color: var(--ink-soft); }
.brief dd { margin: 0; color: var(--draft-text); transition: color .6s var(--ease-out); }
.brief .is-set dd { color: var(--ink); }

/* Sending */
.send { display: grid; justify-items: start; gap: 16px; }
.ts-widget:empty { display: none; }
.form-error { margin: 0; color: var(--alert); font-size: 15.5px; line-height: 1.45; }
.form-error a { color: inherit; }
.send-btn {
  --h: 58px;
  position: relative;
  min-width: 190px;
  overflow: hidden;
  padding: 0 32px;
  font-size: 17px;
}
.send-btn:disabled { cursor: progress; }
.send-btn.is-sending::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 42%;
  height: 2px;
  border-radius: 0;
  opacity: 1;
  mix-blend-mode: normal;
  background: var(--lamp);
  box-shadow: 0 0 12px 2px rgb(var(--lamp-rgb) / .6);
  animation: tb-sweep 1.15s var(--ease-out) infinite;
}
@keyframes tb-sweep { from { transform: translateX(-110%); } to { transform: translateX(250%); } }
.privacy-note { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.privacy-note a { color: var(--ink); text-underline-offset: 3px; }

/* Sent */
.sent { display: grid; justify-items: start; gap: 22px; }
.sent.is-in { animation: tb-arrive .8s var(--ease-out) both; }
@keyframes tb-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.sent-title {
  max-width: 14em;
  margin: 0;
  font-size: clamp(30px, 3.1vw, 46px);
  line-height: 1.08;
  letter-spacing: -.024em;
  font-weight: 620;
  text-wrap: balance;
  outline: none;
}
.sent-text { margin: -6px 0 0; color: var(--ink-soft); font-size: 17px; }
.sent-text b { color: var(--ink); font-weight: 560; overflow-wrap: anywhere; }
.sent-brief { width: 100%; }

@media (max-width: 640px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
  .enquiry { gap: 40px; }
  .q-title { font-size: 20px; }
  .opts { --cols: 2; }
  .opts-stage { --cols: 1; }
  .opt-fill { grid-column: 1 / -1; }
  .opt { padding-inline: 14px; font-size: 15.5px; }
  .send, .send-btn { width: 100%; }
  .js .brief { padding-inline: 18px; }
  .brief dl div { grid-template-columns: 5.5em minmax(0, 1fr); }
}

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--hairline); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-left: auto; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); font-size: 15px; text-decoration: none; transition: color .25s; }
.footer-links a:hover { color: var(--ink); }
.legal { width: 100%; margin: 0; color: var(--ink-soft); font-size: 14px; }
@media (max-width: 640px) { .footer-links { margin-left: 0; } }

/* ---------- Not found ---------- */

.nf {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding-block: calc(env(safe-area-inset-top, 0px) + 28px) calc(env(safe-area-inset-bottom, 0px) + 56px);
}
.nf-body { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; margin-top: auto; }
.nf-code { margin: 0; color: var(--draft); font-size: 15px; }
.nf-title {
  max-width: 12em;
  margin: 0;
  padding-bottom: .12em;
  color: var(--draft-ink);
  font-size: clamp(44px, 8vw, 128px);
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 220;
  background: linear-gradient(rgb(var(--draft-rgb) / .5), rgb(var(--draft-rgb) / .5)) 0 100% / 100vw 1px no-repeat;
  text-wrap: balance;
}
.nf-lede { max-width: 30em; margin: 0; color: var(--ink-soft); }
.nf-lede a { color: var(--ink); }
.nf-title.nf-plain {
  max-width: 13em;
  color: var(--ink);
  font-size: clamp(38px, 6vw, 88px);
  font-weight: 620;
  background: none;
}
.nf-list { display: grid; gap: 6px; margin: 0; padding-left: 1.1em; color: var(--alert); }

/* ---------- Text pages ---------- */

.doc { padding-block: calc(env(safe-area-inset-top, 0px) + 28px) calc(env(safe-area-inset-bottom, 0px) + 96px); }
.doc-body { max-width: 40em; margin-top: clamp(64px, 12vh, 140px); }
.doc-body h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -.038em;
  font-weight: 640;
}
.doc-updated { margin: 16px 0 0; color: var(--ink-soft); font-size: 15px; }
.doc-body h2 {
  margin: 48px 0 10px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -.012em;
}
.doc-body p { margin: 0 0 14px; color: var(--ink-soft); font-size: 17px; line-height: 1.65; text-wrap: pretty; }
.doc-body a { color: var(--ink); text-underline-offset: 3px; }
.doc-back { margin-top: 40px; }

/* ---------- Film grain over the whole stage ---------- */

body::after {
  content: "";
  position: fixed;
  z-index: 70;
  inset: 0;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html:not(.lenis) { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
