/* Layout: 12 columns with three power lines at columns 1, 5 and 9. Vertical steps are multiples of 8px.
   Colour: one deep blue on cold paper and ink. The raw page in the demo keeps the browser's own link blue. */
:root {
  --edge: clamp(16px, 3.334vw, 48px);
  --gap: clamp(8px, 1.667vw, 24px);
  --col: calc((100vw - 2 * var(--edge) - 11 * var(--gap)) / 12);
  --w4: calc(var(--col) * 4 + var(--gap) * 3);

  --blue: #2B3F7E;
  --ink: #0F1116;
  --paper: #F2F4F8;
  --raw: #FFFFFF;
  --light: #FFFFFF;
  --sky: #8FA6FF;
  --dusk: #3A3F4C;
  --rule: #C9CED8;
  --bottle: #14493B;
  --night: #05060A;

  --sans: 'Host Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --times: 'Times New Roman', Times, serif;
  --mono: ui-monospace, Menlo, Consolas, 'Courier New', monospace;
  --wick: 'Gloock', Georgia, serif;

  --t-giant: clamp(112px, 19vw, 368px);
  --t-h1: clamp(56px, 7.778vw, 128px);
  --t-h2: clamp(36px, 4.445vw, 72px);
  --t-h3: clamp(26px, 2.5vw, 40px);
  --t-body: clamp(17px, 1.25vw, 20px);
  --t-small: 15px;
  --t-page: clamp(40px, 11.6vw, 168px);

  --out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-body)/1.5 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, pre, fieldset { margin: 0; padding: 0; }
h1, h2, h3 { font-weight: 400; }
[hidden] { display: none !important; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
img { max-width: 100%; display: block; }
::selection { background: var(--blue); color: var(--light); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.hero :focus-visible, .nz :focus-visible, .foot :focus-visible { outline-color: var(--light); }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: fixed; left: 16px; top: -64px; z-index: 100;
  padding: 8px 16px; background: var(--ink); color: var(--light);
}
.skip:focus { top: 16px; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding-left: max(var(--edge), env(safe-area-inset-left, 0px));
  padding-right: max(var(--edge), env(safe-area-inset-right, 0px));
}

/* ---------- Round buttons ---------- */
.orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 144px; height: 144px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ink);
  color: var(--light);
  font-size: var(--t-small);
  line-height: 1.25;
  text-align: center;
  padding: 16px;
  isolation: isolate;
  flex: none;
}
.orb__fill {
  position: absolute; left: -10%; right: -10%; top: 0; height: 120%;
  border-radius: 50%;
  background: var(--blue);
  transform: translateY(100%);
  transition: transform .6s var(--out);
  z-index: -1;
}
.orb__label { transition: transform .6s var(--out); }
.orb:hover .orb__fill, .orb:focus-visible .orb__fill { transform: translateY(-8%); }
.orb:hover .orb__label { transform: scale(1.06); }
.orb:active .orb__label { transform: scale(.96); }
.orb--blue { background: var(--blue); }
.orb--blue .orb__fill { background: var(--light); }
.orb--blue:hover, .orb--blue:focus-visible { color: var(--blue); }
.orb--blue { transition: color .3s; }
.orb--light { background: var(--light); color: var(--blue); transition: color .3s; }
.orb--light .orb__fill { background: var(--ink); }
.orb--light:hover, .orb--light:focus-visible { color: var(--light); }
.orb--ink { transition: color .3s; }
.orb--ink .orb__fill { background: var(--light); }
.orb--ink:hover, .orb--ink:focus-visible { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--blue);
  box-shadow: 0 -16vh 0 var(--blue);
  color: var(--light);
}
.nav { position: relative; z-index: 2; padding-top: 24px; align-items: start; }
.logo { grid-column: 1 / 5; display: inline-flex; align-items: center; gap: 8px; }
.logo svg { width: 24px; height: 24px; flex: none; }
.nav__links { grid-column: 9 / 13; display: flex; justify-content: space-between; }
.nav__links a { position: relative; padding-bottom: 8px; }
.nav__links a::after {
  content: ''; position: absolute; left: 50%; bottom: 0;
  width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
  background: currentColor;
  transform: scale(0);
  transition: transform .4s var(--out);
}
.nav__links a:hover::after, .nav__links a:focus-visible::after { transform: scale(1); }

/* Two copies of the name run in step. The white one passes behind the person. The black one sits on top,
   cut to the person's outline by the photo's own alpha, so the name reads as one line that changes colour. */
.hero {
  --hero-h: max(100svh, 560px);
  --mq-y: clamp(8px, 2.5vh, 24px);
  --me-w: calc(6 * var(--col) + 5 * var(--gap));
  --me-h: min(calc(var(--me-w) * 1.25), calc(var(--hero-h) - 24px));
  --me-x: calc(var(--edge) + 2 * (var(--col) + var(--gap)) + (var(--me-w) - var(--me-h) * .8) / 2);
}
.hero__figure {
  position: absolute; z-index: 1; bottom: 0; left: var(--me-x);
  width: calc(var(--me-h) * .8); height: var(--me-h);
  pointer-events: none;
}
.hero__me { display: block; width: 100%; height: 100%; }
.hero__over {
  position: absolute; inset: 0; overflow: hidden; color: var(--ink);
  -webkit-mask: url(../assets/denys-980.webp) center / 100% 100% no-repeat;
  mask: url(../assets/denys-980.webp) center / 100% 100% no-repeat;
}
.hero__over .mq { left: calc(var(--me-x) * -1); }
.hero__mid { position: relative; z-index: 2; align-items: center; padding-bottom: calc(var(--t-giant) * .9); }
.place {
  grid-column: 1 / 5;
  justify-self: start;
  display: flex; align-items: center; gap: 24px;
  margin-left: calc(var(--edge) * -1);
  padding: 16px 16px 16px var(--edge);
  background: var(--ink);
  border-radius: 0 64px 64px 0;
}
.place__text { display: grid; line-height: 1.3; white-space: nowrap; }
.dial { width: 64px; height: 64px; flex: none; }
.dial__night { fill: none; stroke: var(--dusk); stroke-width: 6; }
.dial__day { fill: none; stroke: var(--light); stroke-width: 6; }
.dial__now { fill: var(--blue); stroke: var(--light); stroke-width: 2; }
.hero__side { grid-column: 9 / 13; display: grid; gap: 32px; }
.hero__role { font-size: var(--t-h3); line-height: 1.2; }
.hero__cta { display: flex; gap: var(--gap); }
.hero__cta .orb { width: clamp(112px, 10vw, 144px); height: clamp(112px, 10vw, 144px); }

/* Giant name */
.mq {
  position: absolute; left: 0; bottom: var(--mq-y);
  white-space: nowrap;
  pointer-events: none;
  font: 400 var(--t-giant)/1 var(--sans);
  letter-spacing: -.03em;
}
.mq__track { display: inline-flex; will-change: transform; }
.mq__item i { font-style: normal; }

/* ---------- Intro ---------- */
.intro { padding-block: 192px 96px; background: var(--paper); position: relative; }
.intro__lead {
  grid-column: 1 / 9;
  font-size: var(--t-h2);
  line-height: 1.12;
  letter-spacing: -.02em;
}
.intro__side { grid-column: 9 / 13; display: grid; gap: 48px; justify-items: start; align-content: start; padding-top: 8px; }

/* ---------- Case ---------- */
.case {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--bottle);
  color: var(--light);
}
.case__field { position: absolute; inset: 0; background: var(--bottle); }
.case__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.case__canvas.is-held { cursor: grabbing; }
.case__fallback { position: absolute; right: var(--edge); top: 15%; width: 50%; }
.w { position: absolute; inset: 0; visibility: hidden; pointer-events: none; }
.w > .grid { height: 100%; }
.w--site { visibility: visible; display: grid; grid-template-rows: auto 1fr; padding-bottom: 96px; }

.wk-nav { padding-top: 24px; align-items: baseline; }
.wk-logo { grid-column: 1 / 5; font: 400 24px/1.2 var(--wick); }
.wk-links { grid-column: 5 / 9; display: flex; justify-content: space-between; font-size: var(--t-small); }
.wk-main { align-items: center; }
.wk-body { grid-column: 1 / 6; display: grid; gap: 24px; justify-items: start; pointer-events: auto; }
.wk-title { font: 400 var(--t-h1)/1 var(--wick); white-space: nowrap; }
.wk-copy { font-size: var(--t-body); max-width: var(--w4); }
.wk-fin { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.wk-fin label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: var(--t-small); }
.wk-fin input { position: absolute; opacity: 0; }
.wk-fin i {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--c);
  outline: 2px solid transparent; outline-offset: 2px;
  transition: outline-color .2s;
}
.wk-fin input:checked + i { outline-color: var(--light); }
.wk-fin input:focus-visible + i { outline-color: var(--light); outline-style: dashed; }
.wk-buyrow { display: flex; align-items: center; gap: 24px; }
.wk-buy {
  padding: 16px 32px; border-radius: 64px;
  background: var(--light); color: var(--ink);
  transition: transform .3s var(--out);
}
.wk-buy:hover { transform: scale(1.04); }
.wk-buy:active { transform: scale(.97); }
.wk-price { font: 400 var(--t-h3)/1 var(--wick); }

.w--script .grid { align-items: center; padding-bottom: 96px; }
.log {
  grid-column: 1 / 9;
  font: 400 clamp(15px, 1.53vw, 24px)/2 var(--mono);
  white-space: normal;
}
.log__l { display: block; white-space: pre; }
.log b { font-weight: 400; color: var(--sky); }
.log__cmd { color: var(--light); }

.w--app .grid { padding-top: 24px; padding-bottom: 96px; }
.bench {
  grid-column: 1 / 5;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 24px 24px 0;
  background: var(--raw);
  color: var(--ink);
}
.bench__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 24px; }
.bench__name { font-size: var(--t-h3); line-height: 1.2; }
.bench__job { font-size: var(--t-small); line-height: 1.6; text-align: right; }
.bench__list { display: grid; grid-auto-rows: 1fr; font-size: clamp(18px, 1.67vw, 26px); line-height: 1.2; }
.bench__list li { display: grid; grid-template-columns: 32px 1fr; gap: 16px; align-items: center; border-top: 1px solid var(--rule); }
.bench__list svg { width: 32px; height: 32px; fill: none; stroke: var(--ink); stroke-width: 1.5; }
.bench__list .tick { stroke: var(--blue); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; }
.bench__done { background: linear-gradient(currentColor, currentColor) 0 56% / 0 2px no-repeat; }
.bench__foot { position: relative; margin-inline: -24px; padding: 16px 24px; font-size: var(--t-small); line-height: 1.5; border-top: 1px solid var(--rule); }
.bench__bar { position: absolute; left: 0; right: 0; top: -1px; height: 4px; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; }

.w--live .grid { align-items: center; padding-bottom: 96px; }
.live { grid-column: 1 / 5; display: grid; gap: 48px; justify-items: start; pointer-events: auto; }
.live__title { font-size: var(--t-h2); line-height: 1.1; letter-spacing: -.02em; }

.dims { position: absolute; inset: 0; pointer-events: none; }
.dim {
  position: absolute; left: 0; top: 0;
  font-size: var(--t-small); line-height: 1;
  white-space: nowrap;
  opacity: 0;
}

.case__bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  min-height: 96px;
  padding-block: 24px;
  align-items: baseline;
  pointer-events: none;
}
.steps { grid-column: 1 / 5; display: flex; gap: 24px; font-size: var(--t-small); counter-reset: s; pointer-events: auto; }
.steps button { position: relative; padding-block: 4px; }
.steps li { counter-increment: s; }
.steps button::before { content: counter(s) ' '; }
.steps button::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: currentColor;
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .5s var(--out);
}
.steps button.is-on::after { transform: scaleX(1); }
.say { grid-column: 5 / 12; font-size: var(--t-body); line-height: 1.4; min-height: 2.8em; }

.case__bloom {
  position: absolute; left: 76.5%; top: 31%;
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, var(--paper) 62%, transparent 100%);
  transform: scale(0);
  pointer-events: none;
}

.w--end { color: var(--ink); }
.w--end .grid { align-content: center; row-gap: 32px; }
.end__line { grid-column: 1 / 9; font-size: var(--t-h1); line-height: 1.04; letter-spacing: -.03em; }
.end__link {
  grid-column: 1 / 5; justify-self: start; pointer-events: auto;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px;
  transition: color .25s;
}
.end__link:hover { color: var(--blue); }

/* ---------- Work index ---------- */
.index { padding-block: 96px 128px; background: var(--paper); }
.index__title { grid-column: 1 / 5; font-size: var(--t-h2); line-height: 1.1; letter-spacing: -.02em; }
.index__cover { grid-column: 9 / 13; grid-row: 1 / 3; align-self: start; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--blue); }
.index__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.index__cover img.is-on { opacity: 1; }
.index__list { grid-column: 1 / 9; grid-row: 2; padding-top: 64px; }
.row { border-top: 1px solid var(--rule); }
.row:last-child { border-bottom: 1px solid var(--rule); }
.row a {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: baseline;
  padding-block: 32px;
}
.row__title { grid-column: 1 / 5; font-size: var(--t-h3); line-height: 1.2; transition: transform .6s var(--out), color .3s; }
.row__what { grid-column: 5 / 8; font-size: var(--t-small); }
.row__year { grid-column: 8 / 9; font-size: var(--t-small); text-align: right; font-variant-numeric: tabular-nums; }
.row a:hover .row__title, .row a:focus-visible .row__title { transform: translateX(16px); color: var(--blue); }

/* ---------- NZ Beauty ---------- */
.nz { padding-block: 128px; background: var(--ink); color: var(--light); }
.nz__head { align-items: end; padding-bottom: 64px; }
.nz__title { grid-column: 1 / 9; font-size: var(--t-h1); line-height: 1; letter-spacing: -.03em; }
.nz__facts { grid-column: 9 / 13; margin: 0; font-size: var(--t-small); line-height: 1.5; }
.nz__facts div { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: var(--gap); padding-block: 8px; border-top: 1px solid var(--dusk); }
.nz__facts dt { font-weight: 500; }
.nz__facts dd { margin: 0; }
.nz__board { width: 100%; height: auto; }
.nz__brief { padding-block: 128px; row-gap: 48px; }
.nz__task { grid-column: 1 / 9; font-size: var(--t-h2); line-height: 1.12; letter-spacing: -.02em; }
.nz__did { grid-column: 9 / 13; padding-top: 8px; }
.nz__did h3 { font-size: var(--t-small); font-weight: 500; padding-bottom: 8px; }
.nz__did ul { font-size: var(--t-small); line-height: 1.6; }

.nz__feat { align-items: start; }
.nz__list { grid-column: 1 / 9; grid-row: 1; }
.nz__item {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--gap); align-content: start;
  min-height: 48vh; padding-block: 32px;
  border-top: 1px solid var(--dusk);
}
.nz__name { grid-column: 1 / 5; font-size: var(--t-h3); line-height: 1.2; transition: color .3s; }
.nz__item.is-on .nz__name { color: var(--sky); }
.nz__item p { grid-column: 5 / 9; }
/* The screen stays put while the rows pass. No device frame: the page itself is the picture. */
.nz__phone {
  grid-column: 9 / 12; grid-row: 1 / 3;
  position: sticky; top: 96px;
  aspect-ratio: 390 / 844;
  overflow: hidden;
}
.nz__phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.nz__phone img.is-on { opacity: 1; }
.nz__go { grid-column: 1 / 5; grid-row: 2; margin-top: 32px; }

/* ---------- Services ---------- */
.build { padding-block: 64px 128px; background: var(--paper); }
.build__title { grid-column: 5 / 13; font-size: var(--t-h2); line-height: 1.1; letter-spacing: -.02em; padding-bottom: 64px; }
.svc { padding-block: 40px; align-items: baseline; }
.svc + .svc { position: relative; }
.svc + .svc::before {
  content: ''; position: absolute; top: 0; height: 1px; background: var(--rule);
  left: max(var(--edge), env(safe-area-inset-left, 0px));
  right: max(var(--edge), env(safe-area-inset-right, 0px));
}
.svc h3 { grid-column: 1 / 5; font-size: var(--t-h1); font-weight: 400; line-height: 1; letter-spacing: -.03em; }
/* Each word arrives as bare HTML and gets its design as it comes up the screen */
.svc h3.is-split { display: grid; width: max-content; align-items: baseline; }
.svc h3.is-split span { grid-area: 1 / 1; }
.svc__raw { font-family: var(--times); font-weight: 700; letter-spacing: 0; }
/* The word walks along the power lines, one row at a time */
@media (min-width: 901px) {
  .svc + .svc h3 { grid-column: 5 / 9; grid-row: 1; }
  .svc + .svc p { grid-column: 1 / 5; grid-row: 1; }
  .svc + .svc + .svc h3 { grid-column: 9 / 13; }
  .svc + .svc + .svc ul { grid-column: 5 / 9; grid-row: 1; }
}
.svc p { grid-column: 5 / 9; }
.svc ul { grid-column: 9 / 13; font-size: var(--t-small); line-height: 1.6; }

/* ---------- Before and after ---------- */
.demo { padding-block: 64px 128px; background: var(--paper); }
.demo__head { align-items: end; padding-bottom: 64px; }
.demo__title { grid-column: 1 / 9; font-size: var(--t-h2); line-height: 1.1; letter-spacing: -.02em; }
.demo__note { grid-column: 9 / 13; }
.demo__stage {
  --x: 50%;
  position: relative;
  height: clamp(480px, 84vh, 880px);
  overflow: hidden;
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}
.page { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr; }
.page__top { padding-top: 24px; align-items: start; }
.page__name { grid-column: 1 / 5; }
.page__nav { grid-column: 9 / 13; }
.page__mid { align-items: center; padding-bottom: calc(var(--t-page) * 1.1); }
.page__lead { grid-column: 1 / 5; }
.page__btn { grid-column: 9 / 13; justify-self: start; }
.page__big { position: absolute; left: max(var(--edge), env(safe-area-inset-left, 0px)); bottom: 24px; white-space: nowrap; line-height: 1; }

/* The plain page: everything here is what a browser gives you for free */
.page--raw { background: var(--raw); color: #000; font: 400 16px/1.25 var(--times); -webkit-font-smoothing: auto; }
.page--raw .page__nav { list-style: disc; padding-left: 40px; }
.page--raw .page__nav li { color: #0000EE; text-decoration: underline; }
.page--raw .page__btn { padding: 1px 6px; font: 400 13.33px/1.3 Arial, sans-serif; background: #EFEFEF; border: 2px outset #767676; border-radius: 3px; }
.page--raw .page__big { font: 700 calc(var(--t-page) * .94)/1 var(--times); }

/* The designed page */
.page--design { background: var(--blue); color: var(--light); clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.page--design .page__nav { display: flex; justify-content: space-between; }
.page--design .page__lead { font-size: var(--t-h3); line-height: 1.2; }
.page--design .page__btn { display: grid; place-items: center; width: 144px; height: 144px; border-radius: 50%; background: var(--light); color: var(--blue); font-size: var(--t-small); }
.page--design .page__big { font: 400 var(--t-page)/1 var(--sans); letter-spacing: -.03em; }

.seam { position: absolute; top: 0; bottom: 0; left: var(--x); width: 48px; margin-left: -24px; z-index: 5; outline: none; }
.seam__line { position: absolute; top: 0; bottom: 0; left: 23px; width: 2px; background: var(--ink); }
.seam__grip {
  position: absolute; left: 24px; top: 58%;
  display: grid; place-items: center;
  width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%;
  background: var(--ink); color: var(--light);
  transition: transform .4s var(--out);
}
.seam__grip svg { width: 32px; height: 16px; }
.demo__stage:hover .seam__grip { transform: scale(1.1); }
.seam.is-held .seam__grip, .demo__stage:hover .seam.is-held .seam__grip { transform: scale(.92); }
.seam:focus-visible .seam__grip { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- Terms ---------- */
.terms { padding-block: 64px; background: var(--paper); }
.terms__title { grid-column: 1 / 5; align-self: start; position: sticky; top: 96px; font-size: var(--t-h2); line-height: 1.1; letter-spacing: -.02em; }
.terms__list { grid-column: 5 / 13; margin: 0; }
.terms__row {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline;
  padding-block: 32px;
  border-top: 1px solid var(--rule);
}
.terms__row:last-child { border-bottom: 1px solid var(--rule); }
.terms__row dt { grid-column: 1 / 5; font-size: var(--t-h3); line-height: 1.2; }
.terms__row dd { grid-column: 5 / 9; margin: 0; }

/* ---------- About ---------- */
.about { padding-block: 128px 192px; background: var(--paper); }
.about__title { grid-column: 5 / 13; font-size: var(--t-h2); line-height: 1.1; letter-spacing: -.02em; padding-bottom: 64px; }
.about__text { grid-column: 5 / 9; }
.about__tools { grid-column: 9 / 13; }
.about__tools h3 { font-size: var(--t-small); font-weight: 500; padding-bottom: 8px; }
.about__tools p { font-size: var(--t-small); line-height: 1.6; }

/* ---------- Footer ---------- */
.foot { position: relative; background: var(--ink); color: var(--light); padding-top: 192px; }
.curve { position: absolute; left: 0; right: 0; top: -1px; height: 14vh; overflow: hidden; pointer-events: none; }
.curve__shape {
  position: absolute; left: -25%; width: 150%; top: -100%; height: 200%;
  border-radius: 50%;
  background: var(--paper);
  transform-origin: 50% 50%;
}
.foot__main { row-gap: 48px; padding-bottom: 128px; }
.foot__title { grid-column: 1 / 13; font-size: var(--t-h1); font-weight: 400; line-height: 1; letter-spacing: -.03em; }
.brief {
  grid-column: 1 / 13;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px;
}
.brief__need { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.brief__need legend { float: left; font-size: var(--t-h3); line-height: 48px; padding-right: 16px; }
.brief__need label { cursor: pointer; }
.brief__need input { position: absolute; opacity: 0; }
.brief__need span {
  display: block;
  padding: 8px 24px;
  border: 1px solid var(--light);
  border-radius: 48px;
  font-size: var(--t-body);
  line-height: 30px;
  transition: background-color .25s, color .25s;
}
.brief__need label:hover span { background: var(--light); color: var(--ink); }
.brief__need input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--light); }
.brief__need input:focus-visible + span { outline: 2px solid var(--light); outline-offset: 3px; }
.field { display: grid; gap: 8px; align-content: start; }
.field--email { grid-column: 1 / 5; }
.field--what { grid-column: 5 / 13; }
.field label { font-size: var(--t-small); font-weight: 500; }
.field input, .field textarea {
  width: 100%;
  background: none; border: 0; border-bottom: 1px solid var(--light); border-radius: 0;
  padding: 8px 0 16px;
  font-size: var(--t-h3);
  line-height: 1.3;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--sky); }
.field [aria-invalid] { border-bottom-color: var(--sky); }
.field textarea::placeholder { color: var(--light); opacity: .72; }
.field__error { min-height: 24px; font-size: var(--t-small); line-height: 24px; color: var(--sky); }
.brief__go { grid-column: 1 / 5; }
.brief__after { grid-column: 5 / 13; display: grid; gap: 16px; align-content: start; font-size: var(--t-small); }
.brief__status { display: grid; gap: 4px; }
.brief__status a { text-decoration: underline; text-underline-offset: 3px; }
.brief__ways { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.brief__go[disabled] { cursor: progress; opacity: .72; }
.brief__trap { position: absolute; left: -9999px; }
.brief__sent { font-size: var(--t-h3); line-height: 1.2; padding-bottom: 8px; }
.foot__links { grid-column: 1 / 13; display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 16px 32px;
  border: 1px solid var(--light);
  border-radius: 64px;
  transition: background-color .25s, color .25s;
}
.pill:hover { background: var(--light); color: var(--ink); }
.foot__meta { padding-block: 24px; font-size: var(--t-small); line-height: 1.5; align-items: start; }
.meta { display: grid; gap: 0; grid-column: 1 / 5; }
.meta > span:first-child { font-weight: 500; }
.meta--page { grid-column: 5 / 9; }
.meta--raw { grid-column: 9 / 13; }
.meta--social { grid-column: 1 / 13; display: flex; gap: 24px; padding-top: 16px; }
.meta--social:empty { display: none; }
.linkbtn { justify-self: start; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--sky); }

/* ---------- Menu ---------- */
.burger {
  position: fixed; z-index: 60;
  top: max(24px, env(safe-area-inset-top, 0px));
  right: max(var(--edge), env(safe-area-inset-right, 0px));
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--ink);
  transform: scale(0);
  transition: transform .5s var(--out), background-color .3s;
}
.burger.is-on { transform: scale(1); }
.burger:hover { background: var(--blue); }
.burger.on-dark { background: var(--light); }
.burger.on-dark span { background: var(--ink); }
.burger.on-dark:hover { background: var(--light); }
.burger[aria-expanded='true'], .burger[aria-expanded='true']:hover { background: var(--blue); }
.burger[aria-expanded='true'] span { background: var(--light); }
.burger span {
  position: absolute; left: 24px; right: 24px; height: 2px; background: var(--light);
  transition: transform .4s var(--out);
}
.burger span:first-child { top: 31px; }
.burger span:last-child { top: 39px; }
.burger[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded='true'] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.drawer {
  position: fixed; z-index: 50; top: 0; bottom: 0; right: 0;
  width: min(560px, 100vw);
  background: var(--ink); color: var(--light);
  visibility: hidden;
}
.drawer__curve { position: absolute; top: 0; bottom: 0; left: -119px; width: 120px; height: 100%; fill: var(--ink); }
.drawer__body { height: 100%; display: grid; grid-template-rows: 1fr auto; padding: 128px 48px 48px; }
.drawer nav { display: grid; align-content: start; gap: 8px; font-size: var(--t-h2); line-height: 1.2; }
.drawer nav a { justify-self: start; transition: transform .5s var(--out); }
.drawer nav a:hover, .drawer nav a:focus-visible { transform: translateX(16px); }
.drawer__foot { display: flex; gap: 24px; font-size: var(--t-small); }

/* ---------- Narrow screens ---------- */
@media (max-width: 900px) {
  .place, .hero__side, .logo, .nav__links,
  .intro__lead, .intro__side, .wk-logo, .wk-links, .wk-body, .log, .bench, .live,
  .index__title, .index__cover, .index__list, .build__title,
  .nz__title, .nz__facts, .nz__task, .nz__did, .nz__list, .nz__go, .demo__title, .demo__note, .terms__title, .terms__list,
  .svc h3, .svc p, .svc ul, .about__title, .about__text, .about__tools,
  .steps, .say, .meta, .meta--page, .meta--raw { grid-column: 1 / -1; }

  .nav__links { display: none; }
  .hero__mid { align-content: start; align-items: start; row-gap: 16px; padding-top: 24px; padding-bottom: 0; }
  .hero__side { grid-row: 1; display: block; }
  .hero__role { font-size: 20px; white-space: nowrap; }
  .place { grid-row: 2; padding-block: 8px; gap: 16px; font-size: 15px; }
  .place__sun { display: none; }
  .dial { width: 48px; height: 48px; }
  .hero {
    --mq-y: calc(var(--hero-h) * .33);
    --me-h: min(calc(var(--hero-h) * .6), 125vw);
    --me-x: calc(50vw - var(--me-h) * .4);
  }
  .hero__cta {
    position: absolute; z-index: 3; left: var(--edge); right: var(--edge); bottom: calc(var(--edge) + 8px);
    flex-direction: row-reverse; justify-content: space-between;
  }
  .hero__cta .orb { width: 112px; height: 112px; }

  .intro { padding-block: 96px 64px; }
  .intro__side { padding-top: 48px; }

  .wk-nav { padding-top: 16px; }
  .wk-links { display: none; }
  .w--site { padding-bottom: 136px; }
  .wk-main { align-items: end; }
  .wk-body { gap: 16px; }
  .wk-title { font-size: 56px; }
  .wk-copy { font-size: 16px; line-height: 1.4; max-width: 28em; }
  .log { align-self: start; padding-top: 72px; font-size: 13px; line-height: 1.8; }
  .log__l { white-space: pre-wrap; }
  .w--script .grid { align-items: start; }
  .w--app .grid { align-items: end; padding-bottom: 136px; }
  .bench { padding: 16px 16px 0; grid-template-rows: auto auto auto; }
  .bench__head { padding-bottom: 8px; }
  .bench__job { line-height: 1.3; }
  .bench__list { font-size: 16px; grid-auto-rows: 40px; }
  .bench__list li { grid-template-columns: 24px 1fr; gap: 8px; }
  .bench__list svg { width: 24px; height: 24px; }
  .bench__foot { margin-inline: -16px; padding: 8px 16px; }
  .w--live .grid { align-items: end; padding-bottom: 152px; }
  .live { gap: 24px; }
  .live .orb { width: 112px; height: 112px; }
  .case__bar { padding-block: 16px; row-gap: 8px; min-height: 120px; }
  .say { font-size: 15px; min-height: 4.2em; }
  .steps { gap: 16px; }
  .dim { display: none; }

  .end__line { grid-column: 1 / -1; font-size: 48px; }
  .end__link { grid-column: 1 / -1; }
  .index { padding-block: 32px 64px; }
  .nz { padding-block: 64px; }
  .nz__head { row-gap: 32px; padding-bottom: 32px; }
  .nz__brief { padding-block: 64px; row-gap: 32px; }
  .nz__phone {
    grid-column: 1 / -1; grid-row: auto; order: -1;
    position: static; display: flex; gap: 8px; height: auto; aspect-ratio: auto;
    margin-inline: calc(var(--edge) * -1); padding-inline: var(--edge);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
    scrollbar-width: none;
  }
  .nz__phone img { position: static; flex: 0 0 72vw; width: 72vw; height: auto; opacity: 1; scroll-snap-align: start; }
  .nz__list { grid-row: auto; padding-top: 32px; }
  .nz__item { min-height: 0; padding-block: 24px; row-gap: 8px; }
  .nz__name, .nz__item p { grid-column: 1 / -1; }
  .nz__item.is-on .nz__name { color: inherit; }
  .nz__go { grid-row: auto; }
  .index__cover { display: none; }
  .index__list { grid-row: auto; padding-top: 32px; }
  .row a { grid-template-columns: 1fr auto; row-gap: 4px; padding-block: 24px; }
  .row__title { grid-column: 1 / -1; }
  .row__what { grid-column: 1; }
  .row__year { grid-column: 2; }

  .demo { padding-block: 32px 64px; }
  .demo__head { row-gap: 16px; padding-bottom: 32px; }
  .demo__stage { height: clamp(480px, 76vh, 680px); }
  .page__name { grid-column: 1 / 8; }
  .page__nav { grid-column: 8 / 13; }
  .page__lead { grid-column: 1 / 13; }
  .page__btn { grid-column: 1 / 13; }
  .page__mid { align-content: center; row-gap: 16px; }
  .page--raw .page__nav { padding-left: 16px; }
  .page--design .page__nav { display: block; }
  .page--design .page__lead { font-size: 20px; }
  .page--design .page__btn { width: 96px; height: 96px; }
  .page__big { bottom: 16px; }
  .seam__grip { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
  .terms { padding-block: 32px 64px; }
  .terms__title { position: static; padding-bottom: 32px; }
  .terms__row { row-gap: 8px; padding-block: 24px; }
  .terms__row dt, .terms__row dd { grid-column: 1 / -1; }
  .build__title { padding-bottom: 32px; }
  .svc { row-gap: 16px; padding-block: 32px; }
  .about { padding-block: 64px 192px; }
  .about__title { padding-bottom: 32px; }
  .about__tools { padding-top: 32px; }

  .foot { padding-top: 128px; }
  .foot__main { padding-bottom: 64px; }
  .brief__need legend { float: none; width: 100%; padding: 0 0 8px; line-height: 1.2; }
  .field--email, .field--what, .brief__go, .brief__after { grid-column: 1 / -1; }
  .field input, .field textarea { font-size: 20px; }
  .brief { row-gap: 24px; }
  .meta, .meta--page, .meta--raw { padding-bottom: 16px; }
  .burger { width: 56px; height: 56px; top: max(16px, env(safe-area-inset-top, 0px)); transform: scale(1); }
  .burger span { left: 16px; right: 16px; }
  .burger span:first-child { top: 23px; }
  .burger span:last-child { top: 31px; }
  .drawer__body { padding: 96px 32px 32px; }
}

/* No JavaScript or no CDN: show the finished page */
html.static .burger { display: none; }
html.static .nav__links { display: flex; grid-column: 1 / -1; padding-top: 16px; }
html.static .case { height: auto; min-height: 0; }
html.static .w { position: relative; inset: auto; visibility: visible; padding-block: 48px; }
html.static .case__canvas, html.static .case__bar { display: none; }

@media (prefers-reduced-motion: reduce) {
  .orb__fill, .orb__label, .row__title, .burger, .burger span, .drawer nav a, .seam__grip, .nz__phone img { transition: none; }
}
