/* One family on its width axis: 62% for the shutter readout and figures, 100% for text and titles, wider only for the brand. */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.4c98b9d490.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --asfalto: #121810;
  --asfalto-2: #1d2619;
  --gesso: #ecece6;
  --gesso-2: #dcdcd3;
  --rosso: #a8070c;
  --vivo: #f0302a;
  --oliva: #3b4622;
  --blueprint: #2b5590;
  --bp-ink: rgb(236 236 230 / 0.6);
  --ink: #121810;
  --soft-d: #b7bf9a;
  --soft-l: #4a4a44;

  --margin: clamp(1rem, 4vw, 3.5rem);
  --gap: clamp(1.25rem, 3vw, 3rem);
  --section: clamp(5rem, 11vw, 10rem);

  --t-hero: clamp(2.1rem, 3.6vw, 4rem);
  --t-ch: clamp(1.75rem, 2.9vw, 3rem);
  --t-list: clamp(2.6rem, 7.4vw, 7.25rem);
  --list-grey: #86867f;
  --t-h2: clamp(2.25rem, 5.6vw, 5.25rem);
  --t-h3: clamp(1.5rem, 2.3vw, 2.125rem);
  --t-say: clamp(1.5rem, 2.5vw, 2.25rem);
  --t-lead: clamp(1.125rem, 1.35vw, 1.3125rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-hover: 180ms;
  --t-press: 120ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--asfalto);
  color: var(--gesso);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: var(--t-body);
  font-weight: 420;
  line-height: 1.55;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--rosso); color: var(--gesso); }
:focus-visible { outline: 3px solid var(--vivo); outline-offset: 3px; }
.services :focus-visible, .contact :focus-visible { outline-color: var(--gesso); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: 0; z-index: 80; padding: 0.75rem 1rem; background: var(--rosso); color: var(--gesso); transform: translateY(-120%); }
.skip:focus { transform: none; }

main, .footer { overflow-x: clip; }
.wrap { padding-inline: var(--margin); max-width: 112rem; margin-inline: auto; }

.h2 {
  position: relative;
  font-size: var(--t-h2);
  font-stretch: 100%;
  font-weight: 480;
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.h3 {
  font-size: var(--t-h3);
  font-stretch: 100%;
  font-weight: 560;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.link {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  transition: color var(--t-hover) ease, text-decoration-color var(--t-hover) ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  background: var(--rosso);
  color: var(--gesso);
  font-weight: 650;
  font-stretch: 104%;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.button:active { transform: translateY(2px); }
.button--small { min-height: 2.75rem; padding: 0 1.1rem; }
.button--dark { background: var(--ink); color: var(--gesso); }
.button__roll { display: block; height: 1.2em; overflow: hidden; line-height: 1.2; }
.button__track { display: flex; flex-direction: column; transition: transform 460ms var(--ease-out); }

.cursor { position: fixed; left: 0; top: 0; z-index: 60; width: 10px; height: 9px; margin: -4px 0 0 -5px; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: opacity 200ms ease; }
.cursor::before { content: ""; position: absolute; inset: 0; background: #fff; clip-path: polygon(0 0, 100% 0, 50% 100%); transition: scale 280ms var(--ease-out); }
.cursor.is-on { opacity: 1; }
.cursor.is-hot::before { scale: 1.9; }
@media (hover: hover) {
  .button:hover { background: var(--gesso); color: var(--ink); }
  .button:hover .button__track { transform: translateY(-50%); }
  .button--dark:hover { background: var(--asfalto-2); color: var(--gesso); }
  .link:hover { text-decoration-color: var(--rosso); }
  .services .link:hover, .contact .link:hover { text-decoration-color: currentColor; color: #fff; }
}

@property --bar-ground { syntax: "<color>"; inherits: true; initial-value: transparent; }

.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
  padding-inline: var(--margin);
  background: transparent;
  color: var(--gesso);
  transition: color 300ms ease, --bar-ground 420ms ease;
}
/* past the dive a ground in the colour of the section underneath fades in. Its blur is progressive: four
   layers, the stronger ones masked to shorter bands, so it is strongest under the links and dies out with no edge. */
.bar__ground { position: absolute; inset: 0 0 auto 0; z-index: -1; height: 8.5rem; pointer-events: none; opacity: 0; transition: opacity 420ms ease; background: linear-gradient(to bottom, color-mix(in srgb, var(--bar-ground, transparent) 82%, transparent) 0%, color-mix(in srgb, var(--bar-ground, transparent) 58%, transparent) 38%, color-mix(in srgb, var(--bar-ground, transparent) 22%, transparent) 68%, transparent 100%); }
.bar__ground i { position: absolute; inset: 0; }
.bar__ground i:nth-child(1) { -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%); }
.bar__ground i:nth-child(2) { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 80%); mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 80%); }
.bar__ground i:nth-child(3) { -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 34%, transparent 60%); mask-image: linear-gradient(to bottom, #000 0%, #000 34%, transparent 60%); }
.bar__ground i:nth-child(4) { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 22%, transparent 44%); mask-image: linear-gradient(to bottom, #000 0%, #000 22%, transparent 44%); }
.bar[data-ground] .bar__ground { opacity: 1; }
.bar.nav--open .bar__ground { opacity: 0; }
/* its ink follows the section underneath */
.bar[data-tone="light"] { color: var(--ink); }
.bar[data-tone="light"] .langs a { color: var(--soft-l); }
.bar[data-tone="light"] .langs a[aria-current="page"] { color: var(--ink); }
.bar.nav--open { color: var(--gesso); }
.bar__brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-stretch: 112%; text-decoration: none; }
.vt { width: 2.1rem; height: auto; fill: currentColor; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.nav__links { position: absolute; left: 50%; top: 50%; display: flex; gap: clamp(1rem, 2.2vw, 2rem); transform: translate(-50%, -50%); }
.nav__links a { position: relative; display: inline-block; text-decoration: none; padding-block: 0.5rem; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.2rem; height: 3px; background: var(--vivo); transform: scaleX(0); transform-origin: 0 50%; transition: transform 260ms var(--ease-out); }
@media (hover: hover) { .nav__links a:hover::after { transform: scaleX(1); } }
.langs { display: flex; align-items: center; font-size: var(--t-small); font-weight: 560; letter-spacing: 0.02em; }
.langs li + li::before { content: "|" / ""; margin-inline: 0.4rem; color: var(--vivo); font-weight: 400; }
.langs a { display: inline-block; padding-block: 0.6rem; color: var(--soft-d); text-decoration: none; transition: color var(--t-hover) ease; }
.langs a[aria-current="page"] { color: var(--gesso); }
@media (hover: hover) { .langs a:hover { color: var(--gesso); } }
.nav__toggle { display: none; min-height: 2.75rem; padding: 0 0.25rem; font-weight: 600; }

.dive { position: relative; background: var(--asfalto); color: var(--gesso); }
.dive__stage { position: relative; overflow: clip; }
.dive__canvas { display: none; position: absolute; inset: 0; width: 100%; height: 100%; }
.dive__mark { position: absolute; left: 50%; top: 50%; width: min(34vw, 30rem); transform: translate(-50%, -54%); }
.dive__mark .far { fill: none; stroke: var(--soft-d); stroke-width: 0.35; }
.dive__mark .near { fill: var(--gesso); }

.hero { position: relative; z-index: 2; min-height: 100svh; }
.hero__title { font-size: var(--t-hero); font-stretch: 118%; font-weight: 300; line-height: 1; letter-spacing: -0.03em; }
.hero__who, .hero__clock { position: absolute; top: calc(4rem + clamp(1.25rem, 4vh, 2.5rem)); font-size: var(--t-body); font-stretch: 100%; font-weight: 560; letter-spacing: 0; line-height: 1.4; }
.hero__who { left: var(--margin); max-width: 26rem; }
.hero__who .sep { margin-inline: 0.35em; color: var(--vivo); font-weight: 400; }
.hero__clock { right: var(--margin); color: var(--soft-d); font-weight: 460; font-variant-numeric: tabular-nums; }
.hero__a { position: absolute; left: var(--margin); top: 16%; }
.hero__b { position: absolute; right: var(--margin); top: 77%; text-align: right; }
.hero__lead { position: absolute; left: var(--margin); bottom: clamp(1.25rem, 4vh, 2.5rem); max-width: 34ch; font-size: var(--t-lead); line-height: 1.45; }
.hero__cta { position: absolute; right: var(--margin); bottom: clamp(1.25rem, 4vh, 2.5rem); }

.meter { display: none; }
.meter__v { font-size: var(--t-hero); font-stretch: 62%; font-weight: 340; line-height: 1; color: var(--vivo); font-variant-numeric: tabular-nums; }
.meter__v::after { content: " s"; font-size: 0.42em; color: var(--gesso); }
.meter__l { font-size: var(--t-small); color: var(--soft-d); }

.chapters { position: relative; z-index: 2; display: grid; gap: clamp(2.5rem, 6vw, 5rem); padding: var(--section) var(--margin); }
.ch__t { font-size: var(--t-ch); font-stretch: 100%; font-weight: 400; line-height: 1.06; letter-spacing: -0.03em; max-width: 17ch; }
.ch--q { margin: 0; }
.ch--q .ch__t { margin: 0; font-size: calc(var(--t-ch) * 0.82); line-height: 1.14; letter-spacing: -0.025em; max-width: 24ch; text-indent: -0.42em; text-wrap: pretty; }
.ch__by { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.4rem; font-size: clamp(0.85rem, 1vw, 1rem); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.ch__by::before { content: ""; width: 2rem; height: 1px; background: currentColor; opacity: 0.6; }

/* once WebGL2 is confirmed the stage is pinned and drawn on a canvas */
.dive.is-live { height: 640vh; }
.is-live .dive__stage { position: sticky; top: 0; height: var(--stage-h, 100svh); }
.is-live .dive__canvas { display: block; }
.is-live .hero, .is-live .ch, .is-live .meter { will-change: opacity, transform; }
.is-live .dive__mark { display: none; }
.is-live .hero { position: absolute; inset: 0; min-height: 0; }
.is-live .meter { position: absolute; z-index: 3; left: 50%; bottom: clamp(1.25rem, 4vh, 2.5rem); display: grid; justify-items: center; gap: 0.3rem; transform: translateX(-50%); text-align: center; }
.is-live .chapters { position: absolute; inset: 0; display: block; padding: 0; pointer-events: none; }
.is-live .ch { position: absolute; left: var(--margin); top: 50%; max-width: 40vw; opacity: 0; visibility: hidden; transform: translateY(-50%); }

/* a soft halo in the tone of the background keeps the words readable where they cross the layers; the dive turns light near its end */
.is-live .ch { text-shadow: 0 0 0.9em rgb(18 24 16 / 0.75), 0 0 2.2em rgb(18 24 16 / 0.5); }
.dive__stage.is-light .ch { text-shadow: 0 0 0.9em rgb(236 236 228 / 0.95), 0 0 2.2em rgb(236 236 228 / 0.7); }
.dive__stage.is-light .ch__t, .dive__stage.is-light .ch__by { color: var(--ink); }
.dive__stage.is-light .meter__v { color: var(--rosso); }
.dive__stage.is-light .meter__v::after { color: var(--ink); }
.dive__stage.is-light .meter__l { color: var(--soft-l); }
.dive.is-still .dive__canvas { display: none; }
.dive.is-still .dive__mark { display: block; }

.work { background: var(--gesso); color: var(--ink); padding-block: clamp(2rem, 5vh, 3.5rem) var(--section); }
.work__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; }
.work__head .h2 { grid-column: 1 / 8; }
.work__intro { grid-column: 9 / 13; max-width: 36ch; }
.rows { margin-top: clamp(3rem, 6vw, 5rem); }
.row { border-top: 2px solid var(--gesso-2); }
.row:last-child { border-bottom: 2px solid var(--gesso-2); }
.row__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: 0.5rem var(--gap); align-items: center; padding-block: clamp(0.9rem, 1.8vw, 1.6rem); }
.row__name { font-size: var(--t-list); font-stretch: 100%; font-weight: 420; line-height: 1; letter-spacing: -0.035em; color: var(--list-grey); transition: color 260ms ease; }
.row__side { text-align: right; }
.row__what { font-size: var(--t-small); color: var(--soft-l); }
.row__line { margin-top: 0.2rem; font-weight: 580; }
.row__btn { display: flex; align-items: center; gap: 0.35em; width: 100%; padding: 0.06em 0; text-align: left; font: inherit; letter-spacing: inherit; color: inherit; }
.row__label { display: inline-block; transition: transform 420ms var(--ease-out); }
.row__sign { position: relative; flex: none; width: 0.32em; height: 0.32em; margin-left: auto; color: var(--ink); }
.row__sign::before, .row__sign::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 0.055em; margin-top: -0.0275em; background: currentColor; transition: transform 420ms var(--ease-out); }
.row__sign::after { transform: rotate(90deg); }
.row.is-open .row__sign::after { transform: rotate(0deg); }
.row.is-open .row__name { color: var(--ink); }
@media (hover: hover) {
  .row__head:hover .row__name { color: var(--ink); }
  .row__head:hover .row__label { transform: translateX(0.22em); }
}
.row__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--gap) clamp(2rem, 6vw, 6rem); padding-block: 0.5rem clamp(2.5rem, 5vw, 4rem); align-items: start; }
.row__text { max-width: 60ch; }
.row__text p + p { margin-top: 0.9rem; }
.stack { color: var(--soft-l); }
.row.is-js .row__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 560ms var(--ease-out); }
.row.is-js.is-open .row__panel { grid-template-rows: 1fr; }
.row__inner { min-height: 0; overflow: hidden; }
.row.is-js .row__inner { visibility: hidden; transition: visibility 0s linear 560ms; }
.row.is-js.is-open .row__inner { visibility: visible; transition-delay: 0s; }

.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.75rem, 1.6vw, 1.5rem); align-items: start; }
.phones--two { grid-template-columns: repeat(2, minmax(0, 0.42fr)); }
.phone { overflow: hidden; border-radius: clamp(14px, 1.6vw, 22px); background: var(--gesso-2); }
.phone:nth-child(2) { margin-top: clamp(1.5rem, 4vw, 4rem); }
.phone img, .screen img { width: 100%; }
.screen { overflow: hidden; border-radius: clamp(8px, 0.8vw, 12px); background: var(--gesso-2); }

.count { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem clamp(1.5rem, 3vw, 3rem); margin-bottom: 1.5rem; font-size: var(--t-lead); line-height: 1.35; }
.count__fig { display: grid; font-weight: 600; }
.count__rest { flex-basis: 100%; }
.count__n { display: block; font-size: var(--t-h2); font-stretch: 62%; font-weight: 380; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.peek { position: fixed; left: 0; top: 0; z-index: 40; width: clamp(17rem, 26vw, 28rem); pointer-events: none; }
.peek__card { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; background: var(--gesso-2); box-shadow: 0 28px 56px -22px rgb(18 24 16 / 0.5), 0 2px 8px rgb(18 24 16 / 0.12); transform-origin: 0% 55%; opacity: 0; scale: 0.8; visibility: hidden; transition: opacity 160ms ease, scale 260ms var(--ease-out), visibility 0s linear 260ms; }
.peek.is-on .peek__card { opacity: 1; scale: 1; visibility: visible; transition: opacity 140ms ease, scale 520ms var(--ease-out), visibility 0s; }
.peek__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; opacity: 0; scale: 1.08; transition: opacity 220ms ease, scale 700ms var(--ease-out); }
.peek__card img.is-on { opacity: 1; scale: 1; }

.mark { --paper: var(--blueprint) url("/assets/images/blueprint-paper.fc6550c721.jpg") 0 0 / 320px; background: var(--paper); color: var(--gesso); }
.mark__stage { position: relative; overflow: clip; perspective: 1700px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3.4fr); gap: var(--gap); align-items: center; min-height: 100svh; padding: calc(4rem + clamp(2rem, 6vh, 4rem)) var(--margin) clamp(3rem, 8vh, 5rem); }
.mark__text { position: relative; z-index: 1; max-width: 32ch; text-shadow: 0 1px 18px rgb(14 38 78 / 0.7); }
.mark__text p { margin-top: 1rem; }
.mark__text--a { grid-column: 1; align-self: start; }
.mark__text--b { grid-column: 3; align-self: end; }
.mark__h { font-size: var(--t-ch); }
.mark__sheet { position: absolute; left: 50%; top: 48%; width: min(210vw, 290vh, 3600px); aspect-ratio: 80 / 60; background: var(--paper); transform: translate(-50%, -50%) rotateX(42deg) rotateZ(16deg); transform-origin: 50% 50%; -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 98%); mask-image: radial-gradient(closest-side, #000 45%, transparent 98%); }
.mark__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mark__steps { z-index: 1; position: absolute; right: var(--margin); bottom: clamp(1.25rem, 4vh, 2.5rem); display: flex; gap: 1.5rem; font-weight: 600; color: var(--soft-d); }
.mark__steps span { position: relative; padding-bottom: 0.35rem; transition: color 240ms ease; }
.mark__steps span::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--vivo); transform: scaleX(0); transform-origin: 0 50%; transition: transform 380ms var(--ease-out); }
.mark__steps .is-on { color: var(--gesso); }
.mark__steps .is-on::after { transform: none; }
.mark.is-live { height: 360vh; }
.is-live .mark__stage { position: sticky; top: 0; height: var(--stage-h, 100svh); min-height: 0; }
.is-live .mark__text--b { opacity: 0; }

/* --fade dims the construction without group opacity, which would rasterise the group at low resolution in 3D */
.bp__build { --fade: 1; }
.bp__build .cl { stroke-opacity: var(--fade); }
.bp__build .bp__dot, .bp__build text { fill-opacity: var(--fade); }
.bp__gridline { stroke: rgb(226 236 255 / 0.12); }
.bp__gridline--major { stroke: rgb(226 236 255 / 0.2); }
.bp__hatchline { stroke: rgb(236 240 250 / 0.75); }
.cl { fill: none; stroke: rgb(236 240 250 / 0.5); stroke-width: 0.04; stroke-linecap: round; }
.cl--axis { stroke: rgb(236 240 250 / 0.62); stroke-width: 0.045; }
.cl--compass { stroke: rgb(236 240 250 / 0.4); stroke-width: 0.035; }
.cl--dim, .cl--leader { stroke: rgb(236 240 250 / 0.7); stroke-width: 0.035; }
.cl--angle { stroke: var(--vivo); stroke-width: 0.07; }
.bp__label { font-size: 1.1px; font-weight: 600; letter-spacing: 0.02em; fill: rgb(236 240 250 / 0.95); }
.bp__label--angle { fill: var(--vivo); }
.bp__note { font-size: 0.75px; font-weight: 600; letter-spacing: 0.04em; fill: rgb(236 240 250 / 0.8); }
.bp__dot { fill: var(--vivo); transform-box: fill-box; transform-origin: center; }
.bp__dot--small { fill: rgb(240 48 42 / 0.6); }
.bp__ink { fill: none; stroke: #f4f6fb; stroke-width: 0.16; stroke-linejoin: round; stroke-linecap: round; }
.bp__ink.is-closed { animation: bp-close 520ms var(--ease-out); }
@keyframes bp-close { 30% { stroke-width: 0.34; } }
.bp__hatch { opacity: 0; }
.bp__fill { fill: #f4f6fb; }

.is-live .cl { visibility: hidden; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: butt; }
.is-live .bp__dot { scale: 0; }
.is-live .bp__label, .is-live .bp__note, .is-live .bp__fill { opacity: 0; }
.is-live .bp__ink { stroke-dasharray: 0 1000; }

/* the colour of the section above slides away as a wedge cut at the angle of the mark */
[data-wipe] { position: relative; }
[data-wipe]::before { content: ""; position: absolute; right: 0; top: -1px; z-index: 3; width: calc(var(--section) * 1.54); height: calc(var(--section) * 0.95); background: var(--prev, transparent); clip-path: polygon(0 0, 100% 0, 100% 100%); transform: scale(var(--wp, 0)); transform-origin: 100% 0; pointer-events: none; }

.services { background: var(--oliva); color: var(--gesso); padding-block: var(--section); }
.services__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.services__title { grid-column: 1 / -1; max-width: 22ch; }
.services__intro { grid-column: 1 / 5; position: sticky; top: calc(4rem + 2rem); margin-top: clamp(1.5rem, 3vw, 3rem); }
.services__say { font-size: var(--t-say); font-stretch: 100%; font-weight: 420; line-height: 1.22; letter-spacing: -0.015em; max-width: 22ch; }
.services__terms { margin-top: 1.5rem; max-width: 34ch; color: var(--soft-d); }
.services__cta { margin-top: 2rem; }
.services__list { grid-column: 6 / -1; margin-top: clamp(1.5rem, 3vw, 3rem); }
.services__group { font-size: var(--t-small); font-weight: 650; color: var(--soft-d); }
.services__group + .svcs { margin-top: 0.75rem; }
.svcs + .services__group { margin-top: clamp(2.5rem, 5vw, 4rem); }

.svc { --i: 1; display: grid; grid-template-columns: 3.25rem minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem clamp(1.25rem, 2.5vw, 2.5rem); align-items: start; margin-inline: -1.25rem; padding: 1.5rem 1.25rem; border-radius: 6px; transition: background-color 320ms ease, opacity 320ms ease; }
.svc:nth-child(2) { --i: 2; }
.svc:nth-child(3) { --i: 3; }
.svc__name { font-size: var(--t-h3); font-stretch: 100%; font-weight: 560; line-height: 1.12; letter-spacing: -0.01em; }
.svc__outcome { margin-top: 0.6rem; max-width: 40ch; }
.svc__gets li + li { margin-top: 0.3rem; }
.svc__gets { font-weight: 560; }
.svc__stack { margin-top: 0.75rem; font-size: var(--t-small); color: var(--soft-d); }

.glyph { width: 3.25rem; height: 3.25rem; overflow: visible; }
.g { fill: none; stroke: var(--gesso); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.g--accent { fill: var(--vivo); stroke: none; }
.g--accent-line { stroke: var(--vivo); }

.js [data-io] .glyph .g[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js [data-io] .glyph .g--accent { scale: 0; transform-box: fill-box; transform-origin: center; }
.js [data-io].is-in .glyph .g[pathLength] { stroke-dashoffset: 0; transition: stroke-dashoffset 1100ms var(--ease-out) calc(var(--i) * 110ms + 260ms); }
.js [data-io].is-in .glyph .g--accent { scale: 1; transition: scale 520ms var(--ease-out) calc(var(--i) * 110ms + 900ms); }

@media (hover: hover) {
  .svc:hover { background: rgb(18 24 16 / 0.16); }
  .services__list:has(.svc:hover) .svc:not(:hover) { opacity: 0.45; }
  .js [data-io].is-in .svc:hover .glyph .g[pathLength] { animation: glyph-draw 900ms var(--ease-out); }
}
@keyframes glyph-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.about { background: var(--gesso); color: var(--ink); padding-block: var(--section); }
.about__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap) clamp(2rem, 6vw, 7rem); align-items: start; }
.about__say { margin-top: clamp(1.5rem, 3vw, 2.5rem); font-size: var(--t-say); font-stretch: 100%; font-weight: 420; line-height: 1.2; max-width: 34ch; }
.about__body { margin-top: 1.75rem; max-width: 60ch; }
.about__body p + p { margin-top: 0.9rem; }
.about__pic { overflow: hidden; }
.about__pic img { width: 100%; }
.about__pic figcaption { margin-top: 0.6rem; font-size: var(--t-small); color: var(--soft-l); }
.facts { margin-top: 2rem; }
.facts__row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; padding-block: 0.55rem; }
.facts dt { color: var(--soft-l); }
.facts__lead { font-weight: 650; }
.facts__list li + li { margin-top: 0.3rem; }
.is-reading .read__word { color: color-mix(in srgb, currentColor 28%, transparent); transition: color 260ms ease; }
.is-reading .read__word.is-lit { color: inherit; }

.process { background: var(--gesso); color: var(--ink); padding-block: var(--section); }
.process__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; }
.process__head .h2 { grid-column: 1 / 7; }
.process__note { grid-column: 8 / 13; color: var(--soft-l); max-width: 40ch; }
.grid-start { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 8vw, 9rem); margin-top: clamp(3rem, 6vw, 5.5rem); counter-reset: step; }
.slot { position: relative; padding: 1.75rem 0 0 1.5rem; counter-increment: step; }
.slot .h3::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 0.9rem; font-size: clamp(2.75rem, 5vw, 4.25rem); font-stretch: 62%; font-weight: 340; line-height: 0.9; letter-spacing: -0.02em; color: var(--rosso); font-variant-numeric: tabular-nums; }
.slot::before { content: ""; position: absolute; left: 0; top: 0; width: clamp(5rem, 10vw, 9rem); height: 100%; max-height: 7rem; border-left: 6px solid var(--rosso); border-top: 6px solid var(--rosso); }
.slot:nth-child(even) { margin-top: clamp(4rem, 9vw, 8rem); }
.slot p { margin-top: 0.75rem; max-width: 42ch; }

.robot { background: var(--asfalto); color: var(--gesso); padding-block: var(--section); }
.robot__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; }
.robot__head .h2 { grid-column: 1 / 7; }
.robot__intro { grid-column: 8 / 13; max-width: 40ch; }
.robot__body { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--gap) clamp(2rem, 5vw, 5rem); margin-top: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.robot__stage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.persona img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.persona figcaption { margin-top: 0.75rem; font-size: var(--t-small); line-height: 1.45; }
.persona__name { display: block; font-weight: 650; }
.qa__item + .qa__item { margin-top: 1.25rem; }
.qa dt { font-weight: 650; }
.qa dd { margin-top: 0.25rem; max-width: 52ch; }
.qa dd .qa__cta { display: flex; width: fit-content; margin-top: 1rem; }

.is-live .robot__stage { display: block; position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--asfalto-2); }
.is-live .persona { position: absolute; inset: 0; opacity: 0; transition: opacity 480ms ease; }
.is-live .persona.is-on { opacity: 1; }
.is-live .persona picture { height: 100%; }
.is-live .persona img { width: 100%; height: 100%; aspect-ratio: auto; }
.is-live .persona figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.robot__who { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.who { min-height: 2.75rem; padding: 0 1.125rem; border-radius: 4px; background: var(--asfalto-2); font-weight: 600; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.who[aria-pressed="true"] { background: var(--rosso); color: var(--gesso); }
.who:active, .q:active { transform: translateY(2px); }
.robot__hello { min-height: 2.7em; margin-top: 1.5rem; font-size: var(--t-lead); line-height: 1.35; }
.is-live .qa { margin-top: 1rem; }
.is-live .qa__item + .qa__item { margin-top: 0; }
.is-live .qa dd { display: none; }
.q { display: block; width: calc(100% + 1.5rem); min-height: 3rem; margin-left: -0.75rem; padding: 0.6rem 0.75rem; text-align: left; font-weight: 600; line-height: 1.35; border-radius: 4px; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.q[aria-current="true"] { background: var(--gesso); color: var(--ink); }
@media (hover: hover) {
  .who:not([aria-pressed="true"]):hover, .q:not([aria-current="true"]):hover { background: var(--asfalto-2); color: var(--soft-d); }
}
.robot__answer { min-height: 7em; margin-top: 1.5rem; font-size: var(--t-lead); line-height: 1.4; }
.robot__answer .button { margin-top: 1.25rem; font-size: var(--t-body); }
.typed__rest { visibility: hidden; }
.typed__caret { display: inline-block; width: 0.5em; height: 0.9em; margin-left: 0.08em; vertical-align: -0.08em; background: var(--vivo); }

.contact { background: var(--rosso); color: var(--gesso); padding-block: var(--section); }
.contact__lead { margin-top: 1.5rem; font-size: var(--t-lead); }
.contact__mail { margin-top: clamp(2rem, 5vw, 4rem); font-size: var(--t-h2); font-stretch: 100%; font-weight: 440; line-height: 1.05; letter-spacing: -0.02em; }
.contact__mail a { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; transition: color var(--t-hover) ease; }
@media (hover: hover) { .contact__mail a:hover { color: #fff; text-decoration-thickness: 0.1em; } }
.contact__phone { margin-top: 0.75rem; font-size: var(--t-lead); font-weight: 600; font-variant-numeric: tabular-nums; }
.contact__phone a { display: inline-block; padding-block: 0.4rem; text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.2em; transition: color var(--t-hover) ease; }
@media (hover: hover) { .contact__phone a:hover { color: #fff; } }
.contact__row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.5rem; margin-top: clamp(2rem, 4vw, 3rem); }
.contact__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; font-weight: 600; }
.contact__links a { display: inline-flex; align-items: center; gap: 0.55rem; padding-block: 0.6rem; }
.contact__links .social { flex: none; width: 1.15em; height: 1.15em; fill: currentColor; }
.contact__where { margin-top: 2rem; }

.footer { background: var(--asfalto); color: var(--gesso); padding-block: clamp(4rem, 8vw, 7rem) 2.5rem; }
.footer__mark { display: block; width: 100%; height: auto; max-height: 62vh; fill: var(--gesso); }
.footer__row { display: grid; grid-template-columns: minmax(0, 6fr) repeat(2, minmax(0, 3fr)); gap: 2rem var(--gap); margin-top: clamp(3rem, 6vw, 5rem); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.footer__nav a { display: inline-block; padding-block: 0.4rem; }
.footer__legal { color: var(--soft-d); }
.footer__legal p + p { margin-top: 0.3rem; }

/* inner pages (case studies, privacy): a heading block, then parts with the title on the left and the text on the right */
.page { padding-block: calc(4rem + clamp(3rem, 8vw, 7rem)) var(--section); --rule: rgb(236 236 230 / 0.16); --muted: var(--soft-d); }
.page--light { background: var(--gesso); color: var(--ink); --rule: var(--gesso-2); --muted: var(--soft-l); }
.page__eyebrow { font-size: var(--t-small); font-weight: 600; letter-spacing: 0.02em; color: var(--muted); }
.page__title { margin-top: 1rem; font-size: var(--t-h2); font-stretch: 100%; font-weight: 480; line-height: 0.98; letter-spacing: -0.02em; max-width: 17ch; text-wrap: balance; }
.page__lead { margin-top: clamp(1.5rem, 3vw, 2.5rem); font-size: var(--t-lead); max-width: 54ch; }
.page__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2rem; }
.page__actions .link { font-weight: 600; padding-block: 0.6rem; }
.page__figure { margin-top: clamp(3rem, 6vw, 5rem); border-radius: 6px; overflow: hidden; }
.page__figure img { width: 100%; }
.page__parts { margin-top: clamp(3rem, 6vw, 5rem); }
.part { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem var(--gap); padding-block: clamp(2rem, 4.5vw, 3.5rem); border-top: 2px solid var(--rule); }
.part__title { grid-column: 1 / 5; }
.part__body { grid-column: 5 / 12; max-width: 64ch; }
.part__body > * + * { margin-top: 1rem; }
.part__list > li { padding-block: 0.85rem; border-top: 1px solid var(--rule); }
.part__list > li:first-child { border-top: 0; padding-top: 0; }
.part__list a { font-weight: 620; }
.part__list .note { display: block; margin-top: 0.15rem; color: var(--muted); }
.part__facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.6rem 2rem; }
.part__facts dt { font-weight: 620; }
.page__end { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.5rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 2px solid var(--rule); }
.page__end .h3 { flex: 1 1 22rem; max-width: 24ch; }
.page__updated { margin-top: 2rem; font-size: var(--t-small); color: var(--muted); }
@media (max-width: 48em) {
  .part__title, .part__body { grid-column: 1 / -1; }
  .part__facts { grid-template-columns: 1fr; gap: 0.15rem; }
  .part__facts dd + dt { margin-top: 0.6rem; }
}

/* hidden states apply only once the script has added .js; without it everything is visible */
.js [data-io] .rise { opacity: 0; transform: translateY(26px); }
.js [data-io].is-in .rise {
  opacity: 1;
  transform: none;
  transition: opacity 700ms ease, transform 950ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 85ms + 140ms);
}
.js [data-io] .streak { opacity: 0; transform: translateX(14vw); }
.js [data-io].is-in .streak { animation: pan-in 1150ms var(--ease-out) forwards; }
.streak::before, .streak::after { content: attr(data-text) / ""; position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.js [data-io].is-in .streak::before { animation: trail-1 1150ms var(--ease-out); }
.js [data-io].is-in .streak::after { animation: trail-2 1150ms var(--ease-out); }
.js [data-io] .pan { clip-path: inset(0 0 0 100%); }
.js [data-io] .pan img { transform: translateX(10%) scale(1.08); }
.js [data-io].is-in .pan { clip-path: inset(0); transition: clip-path 1000ms var(--ease-out) calc(var(--i, 0) * 110ms + 180ms); }
.js [data-io].is-in .pan img { transform: none; transition: transform 1500ms var(--ease-out) calc(var(--i, 0) * 110ms + 180ms); }

@keyframes pan-in {
  0% { opacity: 0; transform: translateX(14vw); }
  25% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes trail-1 {
  0% { opacity: 0; transform: translateX(0); }
  20% { opacity: 0.4; transform: translateX(0.28em); }
  100% { opacity: 0; transform: translateX(0); }
}
@keyframes trail-2 {
  0% { opacity: 0; transform: translateX(0); }
  20% { opacity: 0.18; transform: translateX(0.7em); }
  100% { opacity: 0; transform: translateX(0); }
}
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .typed__caret { animation: caret 900ms steps(1) infinite; }
}

/* content stays, travel goes */
@media (prefers-reduced-motion: reduce) {
  .js [data-io] .rise, .js [data-io] .streak, .js [data-io] .pan, .js [data-io] .pan img { opacity: 1; transform: none; clip-path: none; animation: none; transition: opacity 400ms ease; }
  .streak::before, .streak::after { content: none; }
  .nav__links a::after, .button, .who, .q, .is-live .persona, .row__panel, .row__inner, .row__label, .row__sign::before, .row__sign::after, .svc, .button__track { transition: none; }
  .js [data-io] .glyph .g[pathLength] { stroke-dashoffset: 0; transition: none; animation: none; }
  .js [data-io] .glyph .g--accent { scale: 1; transition: none; }
  .bp__ink.is-closed { animation: none; }
}

@media (max-width: 60em) {
  .row__body, .about__grid, .robot__body { grid-template-columns: minmax(0, 1fr); }
  .work__head .h2, .work__intro, .process__head .h2, .process__note, .robot__head .h2, .robot__intro { grid-column: 1 / -1; }
  .row__head { grid-template-columns: minmax(0, 1fr); }
  .row__side { text-align: left; }
  .row__head { padding-block: 1.1rem 2rem; }
  .mark__stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; align-items: start; gap: 1rem; }
  .mark__text--a, .mark__text--b { grid-column: 1; }
  .mark__sheet { width: 280vw; top: 52%; }
  .mark__text--b { grid-row: 3; }
  .mark__steps { display: none; }
  .footer__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__row nav { grid-column: 1 / -1; }
}

@media (max-width: 48em) {
  :root { --t-hero: 2.25rem; }
  .hero__title { font-stretch: 82%; }
  .nav__toggle { display: inline-flex; align-items: center; }
  .nav__links {
    position: fixed;
    inset: 4rem 0 0 0;
    left: 0;
    top: 4rem;
    transform: none;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 1.5rem var(--margin);
    background: var(--asfalto);
    font-size: var(--t-h3);
    font-stretch: 112%;
    font-weight: 700;
  }
  .nav__links a { display: block; padding-block: 0.75rem; }
  .bar.nav--open .nav__links { display: flex; }
  .bar__brand span { display: none; }
  .nav > .button { display: none; }

  .hero__clock { display: none; }
  .hero__who { max-width: none; top: calc(4rem + 5rem); }
  .is-live .meter__l { max-width: 8rem; }
  .hero__a { top: 11.5rem; }
  .hero__b { top: auto; bottom: 13.5rem; }
  .hero__lead { bottom: 5.75rem; }
  .hero__cta { left: var(--margin); right: auto; }
  .dive__mark { width: 80vw; top: 44%; }
  .is-live .meter { left: auto; right: var(--margin); top: calc(4rem + 1.1rem); bottom: auto; justify-items: end; transform: none; text-align: right; }
  .is-live .meter__v { font-size: 2.25rem; }
  .is-live .ch { left: var(--margin); right: var(--margin); top: auto; bottom: clamp(2rem, 8vh, 4rem); max-width: none; transform: none; }
  .dive.is-live { height: 560vh; }

  .services__intro, .services__list { grid-column: 1 / -1; }
  .services__intro { position: static; }
  .svc { grid-template-columns: 2.75rem minmax(0, 1fr); margin-inline: 0; padding-inline: 0; }
  .svc .glyph { width: 2.75rem; height: 2.75rem; }
  .svc__side { grid-column: 2; }
  .grid-start { grid-template-columns: minmax(0, 1fr); }
  .slot:nth-child(even) { margin-top: 0; margin-left: clamp(1.5rem, 8vw, 3rem); }
  .facts__row { grid-template-columns: 7rem minmax(0, 1fr); }
  .footer__row { grid-template-columns: minmax(0, 1fr); }
}
