/* =====================================================================
   Reut AI, redesign mock (direction 2, colour pass).
   White paper and ink-navy type. Colour comes from the logo's trio and
   is given a job: each capability owns one hue, and that hue follows it
   through the situations, the capability list and the proof.
     automation → teal   whatsapp → green   training/AI → pink   custom → violet
   ===================================================================== */
:root {
  --paper:    #FFFFFF;
  --bg:       #F3EEFA;
  --mist:     #F3F5F7;
  --ink:      #0E1A2B;
  --graphite: #5B6472;
  --rule:     #DDE1E4;

  --pink:   #E5397F;  --pink-ink:   #C2185B;  --pink-wash:   #FDEAF2;
  --teal:   #12B39A;  --teal-ink:   #0A7464;  --teal-wash:   #E0F6F1;
  --violet: #7C5CF0;  --violet-ink: #5B3FD0;  --violet-wash: #EEEAFE;
  --green:  #22B35E;  --green-ink:  #157A3F;  --green-wash:  #E3F6EA;
  --lilac:  #F7F5FF;

  --font: "IBM Plex Sans Hebrew", system-ui, "Segoe UI", Arial, sans-serif;
  --gutter: clamp(20px, 6vw, 96px);
  --space:  clamp(96px, 16vh, 200px);
  --measure: 36rem;
  --ease: cubic-bezier(.25,.8,.25,1);
}

/* capability colour roles */
[data-kind="automation"] { --c: var(--teal-ink);   --c2: var(--teal);   --w: var(--teal-wash); }
[data-kind="whatsapp"]   { --c: var(--green-ink);  --c2: var(--green);  --w: var(--green-wash); }
[data-kind="training"]   { --c: var(--pink-ink);   --c2: var(--pink);   --w: var(--pink-wash); }
[data-kind="custom"]     { --c: var(--violet-ink); --c2: var(--violet); --w: var(--violet-wash); }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: calc(100% * var(--a11y-scale, 1)); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font-family: var(--font); font-size: 1.125rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
/* soft brand backdrop: a fine dot print over three colour glows from the
   logo trio. The glows drift at different speeds as the page scrolls
   (--sp, 0..1, set on .backdrop by app.js), so the colour shifts from
   section to section. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(124,92,240,.20) 1.1px, transparent 1.6px) 0 0 / 22px 22px;
}
.backdrop { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; --sp: 0; }
.backdrop__glow { position: absolute; width: 92vmax; height: 72vmax; border-radius: 50%; }
.backdrop__glow--pink   { top: -36vmax; right: -34vmax; background: radial-gradient(closest-side, rgba(229,57,127,.24), transparent);
  transform: translate3d(calc(var(--sp) * -38vw), calc(var(--sp) * 70vh), 0); }
.backdrop__glow--teal   { top: 10vh; left: -44vmax; background: radial-gradient(closest-side, rgba(18,179,154,.21), transparent);
  transform: translate3d(calc(var(--sp) * 30vw), calc(var(--sp) * -18vh), 0) scale(calc(1 + var(--sp) * .25)); }
.backdrop__glow--violet { bottom: -40vmax; right: -20vmax; background: radial-gradient(closest-side, rgba(124,92,240,.22), transparent);
  transform: translate3d(calc(var(--sp) * -24vw), calc(var(--sp) * -42vh), 0); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
a, button, input, textarea { touch-action: manipulation; -webkit-tap-highlight-color: rgba(14,26,43,.08); }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--violet-ink); outline-offset: 4px; border-radius: 4px; }
/* line icons drawn from the sprite */
svg use { fill: none; }
.sit__art svg, .tile svg, .contact__wa-icon svg {
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }
.mocknote { background: var(--mist); color: var(--graphite); font-size: .8125rem; text-align: center; padding: 6px var(--gutter); }

/* ---------------------------------------------------------------- top -- */
.top { display: flex; align-items: center; justify-content: space-between; padding: 24px var(--gutter); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 1.4rem; letter-spacing: .005em; }
.logo svg { width: 40px; height: 48px; }
@media (max-width: 600px) { .logo { font-size: 1.25rem; } .logo svg { width: 34px; height: 41px; } }
.logo b { color: var(--pink-ink); font-weight: 700; }
.top__cta { font-size: 1rem; font-weight: 500; text-decoration: none; padding: 10px 0; border-bottom: 2px solid var(--pink); }
.top__cta:hover { color: var(--pink-ink); }
.show-sm { display: none; }
@media (max-width: 600px) { .hide-sm { display: none; } .show-sm { display: inline; } }

/* -------------------------------------------------------------- button -- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 32px; border: 0; border-radius: 999px;
  background: var(--pink-ink); color: #fff; font: inherit; font-size: 1.0625rem; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.button:hover { background: #A3134B; transform: translateY(-1px); }

/* --------------------------------------------------------------- hero -- */
.hero {
  min-height: calc(100svh - 120px);
  display: grid; align-items: center; gap: clamp(40px, 6vw, 96px);
  padding: 0 var(--gutter) clamp(64px, 10vh, 120px);
}
@media (min-width: 960px) { .hero { grid-template-columns: 1.15fr .85fr; } }
.hero h1 {
  font-size: clamp(2.5rem, 1.1rem + 4.8vw, 5.2rem);
  font-weight: 600; line-height: 1.08; letter-spacing: -.015em;
  max-width: 14ch; margin-bottom: clamp(24px, 4vh, 36px);
}
.hero__sub { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); color: var(--graphite); max-width: 34ch; margin-bottom: clamp(32px, 5vh, 44px); }
/* The logo, large. One orchestrated load sequence (dots → lines → ring),
   then a quiet loop: a pulse travels each line into the ring. */
.hero__mark { justify-self: center; width: min(100%, 640px); }
.hmark { display: block; width: 100%; height: auto; overflow: hidden; }
.hmark__halo { fill: var(--lilac); }
.hmark__line { fill: none; stroke-width: 1.05; stroke-linecap: round; stroke-dasharray: 1.05 3; stroke-dashoffset: 1.05; animation: hm-draw 1s cubic-bezier(.6,0,.3,1) forwards; }
.hmark__line--1 { stroke: var(--pink);   animation-delay: .45s; }
.hmark__line--2 { stroke: var(--teal);   animation-delay: .6s; }
.hmark__line--3 { stroke: var(--violet); animation-delay: .75s; }
.hmark__dot { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: hm-pop .5s cubic-bezier(.3,1.5,.5,1) forwards; }
.hmark__dot--1 { fill: var(--pink);   animation-delay: .05s; }
.hmark__dot--2 { fill: var(--teal);   animation-delay: .18s; }
.hmark__dot--3 { fill: var(--violet); animation-delay: .31s; }
.hmark__ring { fill: var(--paper); fill-opacity: 0; stroke-opacity: 0; stroke: var(--pink); stroke-width: 1.9; stroke-dasharray: 1.05 3; stroke-dashoffset: 1.05; transform-box: fill-box; transform-origin: center; transform: rotate(-90deg); animation: hm-ring .8s cubic-bezier(.6,0,.3,1) 1.35s forwards; }
.hmark__core { fill: var(--ink); transform-box: fill-box; transform-origin: center; transform: scale(0); animation: hm-pop .45s cubic-bezier(.3,1.5,.5,1) 2s forwards, hm-beat 2.6s ease-in-out 3.6s infinite; }
.hmark__pulse { opacity: 0; fill: var(--paper); stroke-width: .8; animation: hm-fade .2s ease forwards; }
/* each pulse stays hidden until its own motion begins (matches the SMIL begin times) */
.hmark__pulse--1 { stroke: var(--pink);   animation-delay: 2.2s; }
.hmark__pulse--2 { stroke: var(--teal);   animation-delay: 3.07s; }
.hmark__pulse--3 { stroke: var(--violet); animation-delay: 3.93s; }
/* the name emerges out of the ring, left to right, once the ring has closed */
.hmark__word {
  font-family: var(--font); font-size: 13.5px; font-weight: 700; letter-spacing: -.2px; fill: var(--ink);
  unicode-bidi: plaintext; clip-path: inset(0 100% 0 0); transform: translateX(-3px);
  animation: hm-word .9s cubic-bezier(.6,0,.3,1) 2.05s forwards;
}
.hmark__ai { fill: var(--pink-ink); }
@keyframes hm-word { to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes hm-draw { to { stroke-dashoffset: 0; } }
@keyframes hm-ring { 0% { stroke-opacity: 1; } 100% { stroke-opacity: 1; stroke-dashoffset: 0; fill-opacity: 1; } }
@keyframes hm-pop  { to { transform: scale(1); } }
@keyframes hm-fade { to { opacity: 1; } }
@keyframes hm-beat { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.3); } }

@media (max-width: 959px) {
  .hero__mark { order: -1; justify-self: start; width: clamp(220px, 62vw, 380px); margin-bottom: -8px; }
}
@media (max-width: 600px) {
  .hero { min-height: 0; padding-top: 6vh; }
  .hero .button { width: 100%; }
}
/* Reduced motion: the finished logo, still. */
@media (prefers-reduced-motion: reduce) {
  .hmark__line, .hmark__ring { animation: none; stroke-dashoffset: 0; fill-opacity: 1; stroke-opacity: 1; }
  .hmark__dot, .hmark__core { animation: none; transform: none; }
  .hmark__pulse { display: none; }
  .hmark__word { animation: none; clip-path: none; transform: none; }
}
html.a11y-reduce-motion .hmark__pulse { display: none; }
html.a11y-reduce-motion .hmark__core { animation: none; transform: none; }

/* ------------------------------------------------------- section rhythm -- */
.build, .proof, .start, .about { padding: var(--space) var(--gutter) 0; }
.build h2, .proof h2, .start h2, .about h2, .contact h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.25rem); font-weight: 600; line-height: 1.15; letter-spacing: -.01em;
  max-width: 20ch; margin-bottom: clamp(40px, 7vh, 72px);
}

/* --------------------------------------------- the day: situations -- */
.day { padding: var(--space) var(--gutter) 0; }
.day__head { margin-bottom: 8px; }
.day__intro { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); font-weight: 500; color: var(--graphite); }
.day__count { display: none; }

/* Base (no JS / reduced motion / phones): a calm stacked list. */
.day__list { list-style: none; margin: 0; padding: 0; }
.sit { padding-block: clamp(48px, 9vh, 88px); border-bottom: 1px solid var(--rule); }
.sit:last-child { border-bottom: 0; }

.sit__art {
  position: relative; width: 72px; height: 72px; border-radius: 20px; margin-bottom: 24px;
  display: grid; place-items: center; background: var(--mist); color: var(--graphite);
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
.sit__art > svg { width: 50%; height: 50%; }
.sit__badge {
  position: absolute; inset-inline-end: -10px; bottom: -10px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--c2); color: #fff; border: 3px solid var(--bg);
  opacity: 0; transform: scale(.6); transition: opacity .4s var(--ease) .3s, transform .4s var(--ease) .3s;
}
.sit__badge svg { width: 58%; height: 58%; stroke-width: 2; }
.sit.is-instead .sit__art { background: var(--w); color: var(--c); }
.sit.is-instead .sit__badge { opacity: 1; transform: none; }

.sit__q {
  font-size: clamp(1.75rem, 1rem + 3.2vw, 3.6rem); font-weight: 500; line-height: 1.15; letter-spacing: -.01em;
  max-width: 19ch; margin-bottom: clamp(28px, 5vh, 44px);
}
.sit__pair { margin: 0; display: grid; gap: 18px; max-width: 44rem; }
.sit__row { display: grid; grid-template-columns: 6.5rem 1fr; gap: 16px; align-items: baseline; }
.sit__row dt { font-size: .9375rem; font-weight: 500; color: var(--graphite); }
.sit__row dd { margin: 0; font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); line-height: 1.6; }
.sit__row--today dd { color: var(--graphite); }
.sit__row--instead dt { color: var(--c); font-weight: 600; }
.sit__row--instead dd { color: var(--ink); font-weight: 500; }
.sit__kind {
  display: inline-block; margin-top: 22px; margin-inline-start: calc(6.5rem + 16px);
  font-size: .875rem; font-weight: 600; color: var(--c); background: var(--w);
  padding: 4px 12px; border-radius: 999px;
}
@media (max-width: 600px) {
  .sit__row { grid-template-columns: 1fr; gap: 4px; }
  .sit__kind { margin-inline-start: 0; }
  .sit__art { width: 60px; height: 60px; border-radius: 16px; }
}

/* the strike: one line drawn through what happens today */
.strike {
  background-image: linear-gradient(var(--graphite), var(--graphite));
  background-repeat: no-repeat; background-position: right 58%; background-size: 100% 1.5px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* JS-driven states */
.day.is-live .strike { background-size: 0% 1.5px; transition: background-size .7s var(--ease); }
.day.is-live .sit__row--instead,
.day.is-live .sit__kind { opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease) .25s, transform .5s var(--ease) .25s; }
.day.is-live .sit.is-instead .strike { background-size: 100% 1.5px; }
.day.is-live .sit.is-instead .sit__row--instead,
.day.is-live .sit.is-instead .sit__kind { opacity: 1; transform: none; }

/* Desktop stage: pinned, one situation at a time; text beside a large icon tile. */
.day.is-stage { padding-top: 0; }
.day.is-stage .day__track { position: relative; height: calc(var(--n, 7) * 115svh); }
.day.is-stage .day__stage { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.day.is-stage .day__head { display: flex; align-items: baseline; gap: 20px; margin-bottom: clamp(36px, 6vh, 64px); }
.day.is-stage .day__count { display: block; font-size: .9375rem; color: var(--graphite); font-variant-numeric: tabular-nums; }
.day.is-stage .day__list { display: grid; }
.day.is-stage .sit {
  grid-area: 1 / 1; padding: 0; border: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(200px, 22vw, 300px); gap: clamp(32px, 5vw, 80px); align-items: center;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.day.is-stage .sit.is-active { opacity: 1; transform: none; pointer-events: auto; }
.day.is-stage .sit__body { grid-column: 1; grid-row: 1; }
.day.is-stage .sit__art { grid-column: 2; grid-row: 1; width: 100%; height: auto; aspect-ratio: 1; border-radius: 40px; margin: 0; }
.day.is-stage .sit__art > svg { width: 38%; height: 38%; stroke-width: 1.3; }
.day.is-stage .sit__badge { width: 76px; height: 76px; inset-inline-end: -18px; bottom: -18px; border-width: 6px; }

/* --------------------------------------------------------- what I build -- */
.build__list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(36px, 6vh, 52px); max-width: 68rem; }
.build__list li { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; row-gap: 6px; align-items: start; }
.build__list .tile { grid-row: span 2; }
@media (min-width: 900px) { .build__list li { grid-template-columns: 56px 16rem 1fr; column-gap: 28px; align-items: baseline; } .build__list .tile { grid-row: auto; align-self: center; } }
.tile { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--w); color: var(--c); }
.tile svg { width: 28px; height: 28px; }
.build__list h3 { font-size: clamp(1.35rem, 1.15rem + .6vw, 1.6rem); font-weight: 600; }
.build__list p { color: var(--graphite); max-width: var(--measure); }
.build__note { margin-top: clamp(48px, 8vh, 80px); font-size: clamp(1.15rem, 1rem + .4vw, 1.35rem); font-weight: 500; max-width: 30ch; }

/* ---------------------------------------------------------------- proof -- */
.proof__list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(40px, 7vh, 64px); max-width: 52rem; }
.proof__who { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.proof__tag { font-size: .8125rem; font-weight: 600; color: var(--c); background: var(--w); padding: 2px 10px; border-radius: 999px; }
.proof__was { color: var(--graphite); font-size: 1.125rem; margin-bottom: 6px; }
.proof__now { font-size: clamp(1.2rem, 1.05rem + .45vw, 1.45rem); font-weight: 500; line-height: 1.5; padding-inline-start: 36px; position: relative; }
.proof__now::before, .proof__now::after { content: ""; position: absolute; inset-inline-start: 0; top: .3em; width: 24px; height: 24px; border-radius: 7px; }
.proof__now::before { background: var(--w); }
.proof__now::after {
  background: var(--c);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ----------------------------------------------------------- how it starts -- */
.start__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; counter-reset: step; max-width: 72rem; }
@media (min-width: 900px) { .start__steps { grid-template-columns: repeat(3, 1fr); gap: 56px; } }
.start__steps li { counter-increment: step; }
.start__steps li::before {
  content: counter(step); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  font-size: 1.35rem; font-weight: 600; margin-bottom: 20px; color: #fff; background: var(--pink);
}
.start__steps li:nth-child(2)::before { background: var(--teal); }
.start__steps li:nth-child(3)::before { background: var(--violet); }
.start__steps h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; }
.start__steps p { color: var(--graphite); max-width: 30ch; }

/* ---------------------------------------------------------------- about -- */
.about { display: grid; gap: 48px; align-items: center; max-width: 72rem; }
@media (min-width: 800px) { .about { grid-template-columns: 19rem 1fr; gap: 80px; } }
.about__photo { width: 100%; max-width: 19rem; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: -20px 20px 0 var(--teal-wash); }
.about h2 { margin-bottom: 24px; }
.about__text p { color: var(--graphite); max-width: var(--measure); }
.about__text p + p { margin-top: 16px; }

/* -------------------------------------------------------------- contact -- */
.contact {
  margin-top: var(--space); background: var(--violet-wash);
  padding: var(--space) var(--gutter);
  display: grid; gap: 48px; align-items: start;
}
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1.1fr; gap: 96px; } }
.contact h2 { margin-bottom: 24px; }
.contact__intro p { color: var(--graphite); max-width: 32ch; font-size: 1.1875rem; }
.contact__wa { display: flex; align-items: center; gap: 12px; margin-top: 32px; font-size: 1.0625rem !important; }
.contact__wa-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--green-wash); color: var(--green-ink); flex-shrink: 0; }
.contact__wa-icon svg { width: 22px; height: 22px; }
.contact__wa a { color: var(--green-ink); font-weight: 600; text-underline-offset: 4px; }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; max-width: 40rem;
  background: var(--paper); border-radius: 24px; padding: clamp(24px, 3.5vw, 40px);
  box-shadow: 0 1px 2px rgba(14,26,43,.04), 0 18px 40px -18px rgba(91,63,208,.25);
}
.field--wide { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .9375rem; font-weight: 500; margin-bottom: 8px; }
.optional { color: var(--graphite); font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid #C9CFD4; background: var(--paper); color: var(--ink);
  font: inherit; font-size: 1.0625rem; transition: border-color .15s, box-shadow .15s;
}
.field input[dir="ltr"] { text-align: right; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--violet-ink); box-shadow: 0 0 0 3px var(--violet-wash); }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: .9375rem; color: var(--graphite); }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--pink-ink); }
.form__end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
@media (max-width: 600px) { .form__end .button { width: 100%; } }
.form__status { font-size: .9375rem; color: var(--teal-ink); font-weight: 500; }
.form__status.is-error { color: #A4262C; }

/* --------------------------------------------------------------- footer -- */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 32px var(--gutter) 40px; font-size: .9375rem; color: var(--graphite); }
.foot a { margin-inline-end: 20px; text-underline-offset: 3px; }
@media (max-width: 600px) { .foot { padding-bottom: 88px; } }

/* ------------------------------------------- where the time goes (tabs) -- */
[data-kind="map"] { --c: #1F3150; --c2: #1F3150; --w: #E9EDF2; }
.areas, .faq { padding: var(--space) var(--gutter) 0; }
.areas h2, .faq h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.25rem); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.areas h2 { margin-bottom: 16px; }
.areas__head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.areas__head p { color: var(--graphite); font-size: 1.125rem; }
.tab svg, .row__arrow { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-bottom: 20px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border: 1.5px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--graphite);
  font: inherit; font-size: .9875rem; font-weight: 500; cursor: pointer; transition: border-color .15s, color .15s, background-color .15s;
}
.tab svg { width: 20px; height: 20px; }
.tab:hover { border-color: var(--ink); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.panels { border: 1px solid var(--rule); border-radius: 16px; background: var(--paper); }
.panel__head { display: none; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; gap: 10px; padding: 22px 20px; border-bottom: 1px solid var(--rule); font-size: 1.0625rem; }
.row:last-child { border-bottom: 0; }
.row__now { color: var(--graphite); }
.row__then { font-weight: 500; }
.row__arrow { width: 22px; height: 22px; color: var(--c); }
.chip { justify-self: start; display: inline-block; white-space: nowrap; font-size: .8125rem; font-weight: 600; color: var(--c); background: var(--w); padding: 3px 12px; border-radius: 999px; }
@media (max-width: 899px) { .row__arrow { transform: rotate(-90deg); } }
@media (min-width: 900px) {
  .panel__head { display: grid; grid-template-columns: 1fr 28px 1fr 11rem; gap: 24px; padding: 14px 28px; border-bottom: 1px solid var(--rule); font-size: .875rem; font-weight: 600; color: var(--graphite); }
  .row { grid-template-columns: 1fr 28px 1fr 11rem; gap: 24px; align-items: center; padding: 24px 28px; }
}
.panel[hidden] { display: none; }
.areas__more { margin-top: 24px; color: var(--graphite); }
.areas__more a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; }

/* ------------------------------------------------------------------ faq -- */
.faq__in { max-width: 880px; }
.faq h2 { margin-bottom: clamp(32px, 5vh, 48px); }
.faq__list { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 20px 0; padding-inline-end: 40px; font-size: 1.125rem; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; inset-inline-end: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq details p { color: var(--graphite); padding-bottom: 22px; max-width: 68ch; }

/* --------------------------------------------------- form: area picker -- */
.area-pick { border: 0; padding: 0; margin: 0; min-width: 0; }
.area-pick legend { display: block; padding: 0; font-size: .9375rem; font-weight: 500; margin-bottom: 8px; }
.area-pick__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.area-pick label { position: relative; }
.area-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.area-pick span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1.5px solid #C8CFD8; border-radius: 999px; font-size: .9375rem; color: var(--graphite); transition: all .15s; }
.area-pick input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.area-pick input:focus-visible + span { outline: 2px solid var(--violet-ink); outline-offset: 2px; }

/* --------------------------------------------------------------- footer -- */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 32px var(--gutter) 40px; font-size: .9375rem; color: var(--graphite); }
.foot a { margin-inline-end: 20px; text-underline-offset: 3px; }
@media (max-width: 600px) { .foot { padding-bottom: 88px; } }

/* --------------------------------------------------- accessibility widget -- */
.a11y {
  position: fixed; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: 16px; z-index: 40; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 1px solid var(--rule);
  display: grid; place-items: center; box-shadow: 0 2px 10px rgba(14,26,43,.08);
}
.a11y svg { width: 22px; height: 22px; }
.a11y-panel {
  position: fixed; bottom: 72px; left: 16px; z-index: 41; width: min(272px, calc(100vw - 32px));
  background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 16px;
  box-shadow: 0 12px 32px rgba(14,26,43,.12); display: grid; gap: 12px; font-size: .9375rem;
}
.a11y-panel[hidden] { display: none; }
.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.a11y-panel button { min-height: 40px; min-width: 44px; padding: 0 12px; margin-inline-start: 6px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-size: .875rem; cursor: pointer; }
.a11y-panel button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.a11y-reset { margin-inline-start: 0 !important; }

/* ================================================================ motion --
   One idea, carried down the page: what happens by hand today is struck
   out, and the new way flows in, in the logo's colours. Every rule here
   sits under html.js-motion (added by app.js only when motion is
   allowed), so without JS, or with reduced motion, the page is complete
   and still. Scroll-linked values arrive as custom properties:
     .hero         --hp  0..1  hero scrolled away
     .day          --dp  0..1  progress through the day (desktop stage)
     .start__steps --stp 0..1  thread drawn between the steps
     .about        --ap  0..1  photo passing through the viewport
   Entrances get .is-in from an IntersectionObserver.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html.js-motion:not(.a11y-reduce-motion) {
    --out: cubic-bezier(.16, 1, .3, 1);
    --pop: cubic-bezier(.3, 1.5, .5, 1); /* the logo dots' pop (hm-pop), reused for every pop below */
  }

  /* hero: the copy lifts away, the mark floats forward */
  html.js-motion:not(.a11y-reduce-motion) .hero__text { transform: translate3d(0, calc(var(--hp, 0) * -70px), 0); opacity: calc(1 - var(--hp, 0) * .75); }
  html.js-motion:not(.a11y-reduce-motion) .hero__mark { transform: translate3d(0, calc(var(--hp, 0) * 90px), 0) scale(calc(1 + var(--hp, 0) * .12)); }

  /* the day, desktop stage: a thread under the heading fills in the colour
     of the current situation, and the tile turns in on every change */
  html.js-motion:not(.a11y-reduce-motion) .day.is-stage .day__head { position: relative; padding-bottom: 18px; }
  html.js-motion:not(.a11y-reduce-motion) .day.is-stage .day__head::before { content: ""; position: absolute; inset-inline: 0; bottom: 1px; height: 1px; background: var(--rule); }
  html.js-motion:not(.a11y-reduce-motion) .day.is-stage .day__head::after {
    content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; border-radius: 3px;
    background: var(--c2, var(--pink)); transform-origin: right; transform: scaleX(var(--dp, 0));
    transition: background-color .5s var(--ease);
  }
  html.js-motion:not(.a11y-reduce-motion) .day.is-stage .sit .sit__art { transform: rotate(-8deg) scale(.86); transition: transform .8s var(--out), background-color .6s var(--ease), color .6s var(--ease); }
  html.js-motion:not(.a11y-reduce-motion) .day.is-stage .sit.is-active .sit__art { transform: none; }
  html.js-motion:not(.a11y-reduce-motion) .day.is-stage .sit .sit__q { clip-path: inset(0 0 0 100%); transition: clip-path .7s var(--out) .05s; }
  html.js-motion:not(.a11y-reduce-motion) .day.is-stage .sit.is-active .sit__q { clip-path: inset(-.2em 0 -.3em 0); }

  /* the day, phones: each situation arrives as it scrolls in */
  html.js-motion:not(.a11y-reduce-motion) .day.is-live:not(.is-stage) .sit .sit__art { transform: scale(.7) rotate(-10deg); opacity: 0; transition: transform .7s var(--out), opacity .4s, background-color .6s var(--ease), color .6s var(--ease); }
  html.js-motion:not(.a11y-reduce-motion) .day.is-live:not(.is-stage) .sit .sit__q { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .6s var(--out) .1s, transform .7s var(--out) .1s; }
  html.js-motion:not(.a11y-reduce-motion) .day.is-live:not(.is-stage) .sit.is-in .sit__art { transform: none; opacity: 1; }
  html.js-motion:not(.a11y-reduce-motion) .day.is-live:not(.is-stage) .sit.is-in .sit__q { opacity: 1; transform: none; }

  /* what I build: tiles pop in turn, text is wiped in from the reading edge */
  html.js-motion:not(.a11y-reduce-motion) .build__list li .tile { transform: scale(.4) rotate(-25deg); opacity: 0; transition: transform .7s var(--pop) calc(var(--i, 0) * 110ms), opacity .3s calc(var(--i, 0) * 110ms); }
  html.js-motion:not(.a11y-reduce-motion) .build__list li h3 { clip-path: inset(0 0 0 100%); transition: clip-path .8s var(--out) calc(var(--i, 0) * 110ms + 120ms); }
  html.js-motion:not(.a11y-reduce-motion) .build__list li p  { clip-path: inset(0 0 0 100%); transition: clip-path .9s var(--out) calc(var(--i, 0) * 110ms + 240ms); }
  html.js-motion:not(.a11y-reduce-motion) .build__list li.is-in .tile { transform: none; opacity: 1; }
  html.js-motion:not(.a11y-reduce-motion) .build__list li.is-in h3, html.js-motion:not(.a11y-reduce-motion) .build__list li.is-in p { clip-path: inset(-.2em 0 -.4em 0); }
  html.js-motion:not(.a11y-reduce-motion) .build__note { opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity .7s var(--out), transform .8s var(--out); }
  html.js-motion:not(.a11y-reduce-motion) .build__note.is-in { opacity: 1; transform: none; }

  /* proof: the old way is struck out, then the result lands with its tick */
  html.js-motion:not(.a11y-reduce-motion) .proof__list li .strike { background-size: 0% 1.5px; transition: background-size .7s var(--ease) .2s; }
  html.js-motion:not(.a11y-reduce-motion) .proof__list li .proof__now { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .6s var(--out) .75s, transform .7s var(--out) .75s; }
  html.js-motion:not(.a11y-reduce-motion) .proof__list li .proof__now::after { transform: scale(0); transition: transform .5s var(--pop) 1.1s; }
  html.js-motion:not(.a11y-reduce-motion) .proof__list li.is-in .strike { background-size: 100% 1.5px; }
  html.js-motion:not(.a11y-reduce-motion) .proof__list li.is-in .proof__now { opacity: 1; transform: none; }
  html.js-motion:not(.a11y-reduce-motion) .proof__list li.is-in .proof__now::after { transform: none; }

  /* how it starts: each number pops as the thread reaches it */
  html.js-motion:not(.a11y-reduce-motion) .start__steps li::before { transform: scale(0); transition: transform .55s var(--pop); }
  html.js-motion:not(.a11y-reduce-motion) .start__steps li > * { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity .6s var(--out) .15s, transform .7s var(--out) .15s; }
  html.js-motion:not(.a11y-reduce-motion) .start__steps li.is-in::before { transform: none; }
  html.js-motion:not(.a11y-reduce-motion) .start__steps li.is-in > * { opacity: 1; transform: none; }

  /* about: the photo slides against its teal backing */
  html.js-motion:not(.a11y-reduce-motion) .about__photo {
    transform: translate3d(0, calc((var(--ap, .5) - .5) * -48px), 0) rotate(calc((var(--ap, .5) - .5) * -3deg));
    box-shadow: calc(-12px - var(--ap, .5) * 16px) calc(12px + var(--ap, .5) * 16px) 0 var(--teal-wash);
  }

  /* contact: the form rises and settles onto its shadow */
  html.js-motion:not(.a11y-reduce-motion) .form {
    opacity: 0; transform: translate3d(0, 48px, 0) scale(.97);
    box-shadow: 0 1px 2px rgba(14,26,43,.04), 0 4px 10px -8px rgba(91,63,208,.2);
    transition: opacity .7s var(--out), transform .9s var(--out), box-shadow 1.1s var(--out) .2s;
  }
  html.js-motion:not(.a11y-reduce-motion) .form.is-in { opacity: 1; transform: none; box-shadow: 0 1px 2px rgba(14,26,43,.04), 0 18px 40px -18px rgba(91,63,208,.25); }
  /* where the time goes: the panel rises in; on every tab change its rows
     arrive in turn and each arrow nudges toward the new way */
  html.js-motion:not(.a11y-reduce-motion) .areas .panels { opacity: 0; transform: translate3d(0, 32px, 0); transition: opacity .7s var(--out), transform .8s var(--out); }
  html.js-motion:not(.a11y-reduce-motion) .areas .panels.is-in { opacity: 1; transform: none; }
  html.js-motion:not(.a11y-reduce-motion) .panel.is-shown .row { animation: row-in .55s var(--out) both; animation-delay: calc(var(--r, 0) * 70ms); }
  html.js-motion:not(.a11y-reduce-motion) .panel.is-shown .row__arrow { animation: arrow-nudge .6s var(--out) both; animation-delay: calc(var(--r, 0) * 70ms + 200ms); }

  /* faq: questions settle in one after another; an opened answer eases down */
  html.js-motion:not(.a11y-reduce-motion) .faq details { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .5s var(--out) calc(var(--i, 0) * 70ms), transform .6s var(--out) calc(var(--i, 0) * 70ms); }
  html.js-motion:not(.a11y-reduce-motion) .faq.is-in details { opacity: 1; transform: none; }
  html.js-motion:not(.a11y-reduce-motion) .faq details[open] p { animation: row-in .4s var(--out) both; }
}
@keyframes row-in { from { opacity: 0; transform: translate3d(0, 10px, 0); } }
@keyframes arrow-nudge { from { opacity: 0; transform: translate3d(10px, 0, 0); } }
@media (prefers-reduced-motion: no-preference) and (max-width: 899px) {
  html.js-motion:not(.a11y-reduce-motion) .panel.is-shown .row__arrow { animation-name: arrow-nudge-down; }
}
@keyframes arrow-nudge-down { from { opacity: 0; transform: rotate(-90deg) translate3d(10px, 0, 0); } }
@media (prefers-reduced-motion: no-preference) {
}
/* the dotted thread between the three steps (desktop row), drawn by scroll
   from the first number (right) toward the last (left) */
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  html.js-motion:not(.a11y-reduce-motion) .start__steps { position: relative; isolation: isolate; }
  html.js-motion:not(.a11y-reduce-motion) .start__steps::before {
    content: ""; position: absolute; z-index: -1; top: 24px; height: 4px;
    right: 26px; left: calc((100% - 112px) / 3 - 26px);
    background: radial-gradient(circle, var(--violet) 1.6px, transparent 2px) 0 50% / 12px 4px repeat-x;
    clip-path: inset(0 0 0 calc((1 - var(--stp, 0)) * 100%));
  }
}

html.a11y-high-contrast {
  --graphite: #000; --ink: #000; --rule: #000; --mist: #fff; --lilac: #fff; --bg: #fff;
  --teal-ink: #00513D; --green-ink: #0B4D26; --pink-ink: #8E0E40; --violet-ink: #3A1FA0;
}
html.a11y-high-contrast body::before, html.a11y-high-contrast .backdrop { display: none; }
html.a11y-high-contrast .contact { background: #fff; }
html.a11y-reduce-motion *, html.a11y-reduce-motion *::before, html.a11y-reduce-motion *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
