/* burst.technology
   Paper, ink and one vermilion accent. The tilted block from the logo is the
   motif: it is the logo, the cursor, the card hover, the train and the shards. */

:root {
  /* Fixed brand colours. */
  --paper: #f2efe7;
  --ink: #121212;
  --shu: #ff4321;

  /* Theme tokens: day. */
  --bg: #f2efe7;
  --bg-2: #e8e3d7;
  --fg: #121212;
  --fg-2: #2b2b29;
  --muted: #6f6b62;
  --line: rgba(18, 18, 18, .14);
  --solid: #121212;
  --on-solid: #f2efe7;
  --band: #121212;
  --on-band: #f2efe7;
  --on-band-rgb: 242, 239, 231;
  --shu-ink: #c9260a;
  --sign: #fbfaf6;
  --grain-blend: multiply;
  --grain-invert: 0;
  --grain-opacity: .07;
  color-scheme: light;

  /* The logo block: a square tipped back about 8 degrees, cut flat at the bottom. */
  --block: polygon(0.5% 18%, 89.4% 0.8%, 100% 100%, 11% 100%);
  --tilt: -8deg;

  --pad: clamp(20px, 5vw, 72px);
  --max: 1360px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.7, 0, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Theme tokens: night. Set by sun.js from the real sunrise and sunset in St Neots. */
:root[data-theme="dark"] {
  --bg: #12110f;
  --bg-2: #1d1c19;
  --fg: #ece8de;
  --fg-2: #cdc8bc;
  --muted: #8e897d;
  --line: rgba(236, 232, 222, .14);
  --solid: #ece8de;
  --on-solid: #12110f;
  --band: #1a1916;
  --on-band: #ece8de;
  --on-band-rgb: 236, 232, 222;
  --shu-ink: #ff6a4d;
  --sign: #23211e;
  --grain-blend: screen;
  --grain-invert: 1;
  --grain-opacity: .05;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Washi grain over everything, very faint. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
  filter: invert(var(--grain-invert));
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: normal; }
::selection { background: var(--shu); color: var(--ink); }
:focus-visible { outline: 2px solid var(--shu); outline-offset: 4px; border-radius: 2px; }

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

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--solid); color: var(--on-solid); padding: 10px 14px;
}
.skip:focus { top: 12px; }

.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60;
  background: var(--shu);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}

/* ---------- Brand (built in HTML so it scales and animates) ---------- */

.brand {
  display: inline-flex;
  align-items: flex-end;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.brand-block {
  display: flex;
  align-items: flex-end;
  width: 3.24em;
  height: 2.3em;
  padding: 0 0 .2em .37em;
  background: var(--solid);
  color: var(--on-solid);
  clip-path: var(--block);
  flex: none;
}
.brand-rest { padding: 0 0 .2em .06em; }
.brand--sm { font-size: 15px; }
/* The wordmark text sits low inside the block; lift it so it lines up with the nav links. */
.nav .brand--sm { transform: translateY(-.43em); }
.brand--md { font-size: 22px; }
.brand--inverse .brand-block { background: var(--on-band); color: var(--band); }
.brand--inverse .brand-rest { color: var(--on-band); }

/* ---------- Cursor: a thin crosshair, with the block trailing behind ---------- */

.cursor {
  position: fixed; left: 0; top: 0; z-index: 90;
  width: 18px; height: 14px; margin: -7px 0 0 -9px;
  background: var(--shu); clip-path: var(--block);
  pointer-events: none; opacity: 0;
  transition: width .35s var(--spring), height .35s var(--spring), margin .35s var(--spring), opacity .3s;
  will-change: transform;
}
.cursor.is-on { opacity: .9; }
.cursor.is-hover { width: 46px; height: 36px; margin: -18px 0 0 -23px; opacity: .55; }
@media (pointer: fine) {
  html, body { cursor: crosshair; }
  a, button, summary, label, [role="button"], .hc-opts input, .net-node { cursor: pointer; }
  input[type="text"], input[type="email"], textarea { cursor: text; }
}
@media (pointer: coarse) { .cursor { display: none; } }

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: transform .5s var(--ease), background .3s, box-shadow .3s;
}
.nav.is-solid {
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav-inner {
  display: flex; align-items: center; gap: clamp(20px, 4vw, 56px);
  height: 72px;
}
.nav-cta {
  display: inline-flex; align-items: center; height: 44px; box-sizing: border-box;
  white-space: nowrap; position: relative; margin-left: auto;
  font-size: 15px; font-weight: 600; line-height: 1;
  padding: 0 18px; border: 1.5px solid var(--fg); border-radius: 999px;
  transition: background .25s, color .25s;
}
.nav-cta:hover { background: var(--solid); color: var(--on-solid); }

/* ---------- Shared type ---------- */

.label {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.label--light { color: rgba(var(--on-band-rgb), .6); }
.muted { color: var(--muted); }
h2 {
  font-size: clamp(34px, 5.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
  max-width: 15ch;
}

/* Words that rise out of a mask. */
.w { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--d, 0s) + var(--i) * 45ms); }
.is-in .w > span, .w.is-in > span { transform: none; }

[data-reveal]:not(h2) { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  isolation: isolate;
}
.shards { position: absolute; inset: 0; z-index: -1; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 96px);
  padding-top: 120px; padding-bottom: clamp(48px, 8vh, 96px);
}
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero h1 {
  font-size: clamp(40px, 5.6vw, 88px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 700;
  max-width: 12ch;
}
.hero h1 .w > span { transition-delay: calc(.25s + var(--i) * 55ms); }
.hero-art { height: min(62vh, 560px); cursor: pointer; }
.lede { font-size: clamp(17px, 1.35vw, 20px); max-width: 46ch; color: var(--fg-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.fade-up { opacity: 0; animation: fade-up 1s var(--ease) var(--d, 0s) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; align-content: end; gap: 28px; padding-top: 96px; }
  .hero-art { order: -1; height: 30vh; min-height: 200px; }
  }



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

.btn {
  position: relative; display: inline-flex; align-items: center;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px;
  overflow: hidden; isolation: isolate;
  transition: transform .4s var(--spring), color .3s;
}
.btn::before {
  content: ""; position: absolute; inset: -20% -10%; z-index: -1;
  background: var(--shu); clip-path: var(--block);
  transform: translateY(105%) rotate(6deg);
  transition: transform .55s var(--ease);
}
.btn:hover::before { transform: none; }
.btn--ink { background: var(--solid); color: var(--on-solid); }
.btn--ink:hover { color: var(--ink); }
.btn--line { box-shadow: inset 0 0 0 1.5px var(--fg); }
.btn--line::before { background: var(--solid); }
.btn--line:hover { color: var(--on-solid); }

/* ---------- Statement ---------- */

/* ---------- Platforms ---------- */

.platforms ul {
  display: flex; flex-wrap: wrap; gap: 14px clamp(28px, 4vw, 64px);
  padding-block: 26px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.platforms li {
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(16px, 1.5vw, 20px); font-weight: 600; letter-spacing: -0.015em; color: var(--fg-2);
}
.platforms li::before { content: ""; width: 11px; height: 9px; background: var(--shu); clip-path: var(--block); flex: none; }
.platforms li.is-label { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.platforms li.is-label::before { display: none; }

.statement { padding-block: clamp(90px, 12vw, 180px); }
.scrub {
  margin-top: 28px;
  font-size: clamp(28px, 3.9vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 24ch;
}
.scrub .sw { opacity: var(--o, .14); transition: opacity .2s linear, color .4s; }
.scrub em .sw { color: var(--shu-ink); }

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

.services { padding-bottom: clamp(90px, 12vw, 180px); }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 7vw, 96px); }
.group { display: grid; grid-template-columns: minmax(180px, 1fr) 3fr; gap: clamp(20px, 3vw, 48px); padding-block: 40px; border-top: 1.5px solid var(--fg); }
.group-head h3 { font-size: 22px; letter-spacing: -0.02em; }
.group-head p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; perspective: 900px; }

.card {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 300px;
  padding: 26px 24px 24px;
  background: var(--bg-2);
  border-radius: 4px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: color .45s var(--ease), transform .5s var(--ease), opacity .9s var(--ease);
}
.card.is-in { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.card::before {
  content: ""; position: absolute; z-index: -1;
  left: -30%; bottom: -30%; width: 160%; height: 160%;
  background: var(--solid); clip-path: var(--block);
  transform: translate(-30%, 60%) rotate(18deg) scale(.4);
  transform-origin: 0 100%;
  transition: transform .7s var(--ease);
}
.card:hover { color: var(--on-solid); }
.card:hover::before { transform: none; }
.card-no { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--muted); transition: color .45s; }
.card:hover .card-no { color: var(--shu); }
.card h4 { font-size: 24px; letter-spacing: -0.03em; line-height: 1.1; margin-top: 36px; }
.card p { font-size: 15px; line-height: 1.5; color: inherit; opacity: .82; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tags li { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1px currentColor; opacity: .7; }

@media (max-width: 980px) {
  .group { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
}

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

.approach { background: var(--band); color: var(--on-band); padding-block: clamp(90px, 12vw, 180px); }
.approach .label { color: rgba(var(--on-band-rgb), .55); }
.approach .muted { color: rgba(var(--on-band-rgb), .6); max-width: 34ch; margin-top: 22px; }
.approach-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(40px, 8vw, 120px); }
.approach-head { position: sticky; top: 120px; align-self: start; display: grid; gap: 22px; }
.approach-head .muted { margin-top: 0; }

.steps { position: relative; display: grid; gap: clamp(48px, 7vw, 96px); padding-left: 36px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; }
.steps::before { background: rgba(var(--on-band-rgb), .15); }
.steps::after { background: var(--shu); transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
.step { display: grid; grid-template-columns: auto 1fr; gap: 24px; }
.step-no { width: 1.3em; font-size: clamp(44px, 6vw, 84px); font-weight: 800; line-height: .9; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(var(--on-band-rgb), .45); transition: color .6s, -webkit-text-stroke-color .6s; }
.step.is-lit .step-no { color: var(--shu); -webkit-text-stroke-color: var(--shu); }
.step h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 10px; }
.step p { color: rgba(var(--on-band-rgb), .72); max-width: 42ch; }

@media (max-width: 860px) {
  .approach-inner { grid-template-columns: 1fr; }
  .approach-head { position: static; }
  .step { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Area ---------- */

.area {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 8vw, 120px);
  padding-block: clamp(90px, 12vw, 180px);
}
.area-copy { display: grid; gap: 22px; align-content: start; position: sticky; top: 120px; align-self: start; }
.area-copy .muted { max-width: 40ch; }

.line { position: relative; padding-left: 44px; align-self: center; }
.line ul { position: relative; display: grid; gap: 22px; }
/* Each stop draws the stretch of line back to the previous stop, so it ends exactly at the last circle. */
.line li + li::before { content: ""; z-index: 1; position: absolute; left: -29px; bottom: 50%; height: calc(100% + 22px); width: 3px; background: var(--fg); }
.line li { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 20px; color: var(--muted); transition: color .4s; }
.line li strong { display: block; font-size: clamp(20px, 2vw, 26px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.line li small { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.line li em { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color .4s; }
.line li.is-passed { color: var(--fg); }
.line li.is-passed em { color: var(--shu-ink); }
.line li.is-home strong, .line li.is-home em { color: var(--shu-ink); }
.line .dot { z-index: 2; position: absolute; left: -39px; top: 50%; width: 23px; height: 23px; margin-top: -11.5px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 4px var(--fg); transition: background .4s; }
.line li.is-passed .dot { background: var(--fg); }
.line .dot { transition: background .4s, box-shadow .4s, transform .5s var(--spring); }
.line li.is-here .dot { background: var(--shu); box-shadow: inset 0 0 0 4px var(--shu); transform: scale(1.15); }
.line li.is-here.is-remote .dot { background: var(--shu); box-shadow: inset 0 0 0 4px var(--shu); outline-color: var(--shu); }
/* The last stretch is remote: a dashed line. */
.line li.is-remote::before { content: ""; z-index: 1; position: absolute; left: -29px; bottom: 50%; height: calc(100% + 22px); width: 3px; background: repeating-linear-gradient(var(--bg) 0 5px, var(--fg) 5px 10px); }
.line li.is-remote .dot { box-shadow: inset 0 0 0 3px var(--fg); background: var(--bg); outline: 2px dashed var(--fg); outline-offset: 3px; }
.train {
  position: absolute; left: 4px; top: 0; width: 30px; height: 24px; margin-top: -12px;
  background: var(--shu); clip-path: var(--block);
  transform: translateY(var(--y, 0px)) rotate(var(--r, 0deg)) scale(var(--s, 1));
  opacity: var(--s, 1);
  will-change: transform;
}

@media (max-width: 860px) {
  .area { grid-template-columns: 1fr; }
  .area-copy { position: static; }
}

/* ---------- Contact ---------- */

.contact { background: var(--band); color: var(--on-band); padding-top: clamp(90px, 12vw, 180px); overflow: clip; }
.big {
  font-size: clamp(64px, 16vw, 250px);
  line-height: .9; letter-spacing: -0.06em; font-weight: 800;
  max-width: none; margin: 24px 0 clamp(36px, 5vw, 64px);
}
.big .l { display: inline-block; transition: transform .5s var(--spring), color .3s; }
.big .l:hover { transform: translateY(-.12em) rotate(-8deg); color: var(--shu); }
.big .l.is-sp { width: .22em; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-lede { color: rgba(var(--on-band-rgb), .72); max-width: 36ch; font-size: 18px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-side { display: grid; gap: 18px; }
.contact-alt { font-size: 15px; color: rgba(var(--on-band-rgb), .55); }
.contact-alt a { color: var(--on-band); border-bottom: 1.5px solid var(--shu); padding-bottom: 1px; transition: color .25s; }
.contact-alt a:hover { color: var(--shu); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 28px; }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; padding: 22px 0 10px; border: 0; border-bottom: 1.5px solid rgba(var(--on-band-rgb), .25);
  background: transparent; color: var(--on-band); font: inherit; font-size: 18px; resize: vertical;
  border-radius: 0; outline: none; transition: border-color .3s;
}
.field textarea { min-height: 120px; }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--shu); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field textarea + label { top: 22px; }
.field label {
  position: absolute; left: 0; top: 22px; pointer-events: none;
  font-size: 18px; color: rgba(var(--on-band-rgb), .5);
  transform-origin: 0 0; transition: transform .35s var(--ease), color .3s;
}
.field label span { font-size: .8em; opacity: .7; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-22px) scale(.72); color: rgba(var(--on-band-rgb), .7); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--shu); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.btn--paper { background: var(--on-band); color: var(--band); border: 0; cursor: pointer; font-family: inherit; }
.btn--paper::before { background: var(--shu); }
.btn--paper:disabled { opacity: .6; cursor: progress; }
.form-status { font-size: 15px; color: rgba(var(--on-band-rgb), .75); }
.form-status.is-error { color: #ff8a73; }
.form.is-sent .field, .form.is-sent .btn { opacity: .35; pointer-events: none; transition: opacity .5s; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

.foot {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 36px;
  margin-top: clamp(90px, 12vw, 160px); padding-bottom: 36px; padding-top: 28px;
  border-top: 1px solid rgba(var(--on-band-rgb), .14);
  font-size: 14px; color: rgba(var(--on-band-rgb), .55);
}
.foot .brand { margin-right: auto; }
.foot-link { border-bottom: 1px solid rgba(var(--on-band-rgb), .3); transition: color .25s, border-color .25s; }
.foot-link:hover { color: var(--shu); border-color: var(--shu); }

/* ---------- Motion toggle: always available, so anyone can pause the animation ---------- */

.motion-toggle {
  display: inline-flex; appearance: none; align-items: center; gap: 8px; height: 44px; box-sizing: border-box;
  padding: 0 18px 0 10px; margin: 0; white-space: nowrap;
  border: 1.5px solid var(--fg); border-radius: 999px; background: none; color: var(--fg);
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer;
  transition: background .25s, color .25s;
}
.motion-toggle svg { width: 22px; height: 22px; flex: none; }
.motion-toggle:hover { background: var(--solid); color: var(--on-solid); }

/* ---------- Floating contact button ---------- */
/* Shows once the hero is behind you, pops away as the contact section arrives (see features.js). */

.fab {
  position: fixed; z-index: 45;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: var(--solid); color: var(--on-solid);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45), 0 0 0 1px rgba(128, 128, 128, .18);
  transform: scale(0); opacity: 0; visibility: hidden; pointer-events: none;
  /* Leaving: a quick pop (it swells a touch, then vanishes). */
  transition: transform .38s cubic-bezier(.6, -.5, .74, .05), opacity .3s ease .08s, visibility 0s linear .4s, background .25s;
}
.fab.is-on {
  transform: none; opacity: 1; visibility: visible; pointer-events: auto;
  transition: transform .5s var(--spring), opacity .2s ease, visibility 0s, background .25s;
}
.fab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fab:hover { background: var(--shu); color: #121212; }
.fab:active { transform: scale(.94); }
@media (min-width: 861px) { .fab { width: 58px; height: 58px; right: 28px; bottom: 28px; } }

/* ---------- Daylight block (menu bar) ---------- */

.nav-end { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-end .nav-cta { margin-left: 0; }
.daylight {
  position: relative; appearance: none; border: 0; background: none; padding: 6px; margin: 0;
  color: var(--fg); cursor: pointer; display: grid; place-items: center;
}
.daylight svg { width: 30px; height: auto; overflow: visible; transition: transform .4s var(--spring); }
.daylight:hover svg { transform: rotate(-6deg) scale(1.08); }
.dl-edge { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.dl-fill { fill: currentColor; }
.dl-tip {
  position: absolute; right: 50%; top: calc(100% + 8px); transform: translate(50%, -4px);
  white-space: nowrap; font-size: 12px; font-weight: 600; letter-spacing: .02em;
  padding: 6px 10px; border-radius: 6px; background: var(--solid); color: var(--on-solid);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
}
.daylight:hover .dl-tip, .daylight:focus-visible .dl-tip { opacity: 1; transform: translate(50%, 0); }

/* Theme change: the new theme spreads out from the sun (sun.js drives the clip). */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
body { transition: background-color .5s, color .5s; }

/* ---------- Experience ---------- */

.experience { padding-bottom: clamp(90px, 12vw, 180px); }
.exp-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.exp-copy { display: grid; gap: 20px; max-width: 60ch; color: var(--fg-2); }
.exp-lede { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.45; letter-spacing: -0.015em; color: var(--fg); }
.career { display: grid; margin-top: 18px; border-top: 1.5px solid var(--fg); }
.career li { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.career span { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.career strong { font-size: 18px; letter-spacing: -0.02em; color: var(--fg); }
.career em { font-size: 15px; color: var(--muted); text-align: right; }
.exp-lead { font-size: 16px; color: var(--muted); padding-left: 16px; border-left: 2px solid var(--shu); }
.built { margin-top: 14px; padding-top: 22px; border-top: 1.5px solid var(--fg); }
.built h3 { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.built ul { display: grid; gap: 12px; }
.built li { position: relative; padding-left: 24px; font-size: 16px; }
.built li::before { content: ""; position: absolute; left: 0; top: 8px; width: 11px; height: 9px; background: var(--shu); clip-path: var(--block); }
.built strong { color: var(--fg); }
.stats { display: grid; gap: 14px; }
.stats li { display: grid; gap: 6px; padding: 26px 28px; background: var(--bg-2); border-radius: 4px; position: relative; overflow: hidden; }
.stats li::after { content: ""; position: absolute; right: -14px; top: -10px; width: 70px; height: 54px; background: var(--shu); clip-path: var(--block); opacity: .9; transform: translate(40px, -30px) rotate(10deg); transition: transform .8s var(--spring) .3s; }
.stats li.is-in::after { transform: none; }
.stats strong { font-size: clamp(54px, 6vw, 84px); font-weight: 800; letter-spacing: -0.05em; line-height: .95; font-variant-numeric: tabular-nums; }
.stats span { font-size: 15px; color: var(--muted); max-width: 26ch; }
@media (max-width: 860px) {
  .exp-grid { grid-template-columns: 1fr; }
  .career li { grid-template-columns: 1fr; gap: 2px; }
  .career em { text-align: left; }
}

/* ---------- Travelling tiles ---------- */

.shards { pointer-events: none; }
.shards.is-fixed { position: fixed; inset: 0; z-index: 3; }
.hero-art, .form-anchor { position: relative; }
.static-shape { position: absolute; left: 0; top: 0; pointer-events: none; }
.form-anchor { width: min(100%, 230px); height: 130px; margin-top: 36px; }
.form-anchor--steps { width: min(100%, 300px); height: 170px; margin-top: 28px; }
.form-anchor--contact { width: min(100%, 300px); height: 210px; margin-top: 40px; }
.form-anchor--heart { width: 110px; height: 110px; margin: 0; }
@media (max-width: 980px) { .group .form-anchor { display: none; } }
@media (max-width: 860px) { .form-anchor { display: none; } }

/* ---------- Network ---------- */

.statement-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; margin-top: 28px; }
.statement-grid .scrub { margin-top: 0; }
.net { position: relative; margin: 0; }
.net svg { width: 100%; height: auto; overflow: visible; }
.net-edge { stroke: var(--line); stroke-width: 1.5; fill: none; transition: stroke .3s; }
.net-edge.is-hot { stroke: var(--shu); }
.net-node { cursor: pointer; }
.net-node .n-block { fill: var(--bg-2); stroke: var(--fg); stroke-width: 1.5; transition: fill .3s; }
.net-node:hover .n-block, .net-node.is-hot .n-block { fill: var(--solid); }
.net-node .n-ico { fill: none; stroke: var(--fg); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.net-node:hover .n-ico, .net-node.is-hot .n-ico { stroke: var(--on-solid); }
.net-node .n-label { font-family: var(--sans); font-size: 14px; font-weight: 600; fill: var(--fg); letter-spacing: -0.01em; }
.net-node.is-pulse .n-block { animation: n-pulse .6s var(--ease); }
@keyframes n-pulse { 40% { fill: var(--shu); } }
.net-packet { fill: var(--shu); }
.net-tip { min-height: 1.5em; margin-top: 8px; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .statement-grid { grid-template-columns: 1fr; } }

/* ---------- Card icons ---------- */

.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ico { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.ico .i-acc { stroke: var(--shu); }
.ico .i-fill { fill: currentColor; stroke: none; }
.ico .i-fill.i-acc { fill: var(--shu); }
.card.is-in .i-spin { transform-box: fill-box; transform-origin: center; animation: i-spin 2.4s linear infinite; }
@keyframes i-spin { to { transform: rotate(360deg); } }
.ico .i-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.card.is-in .i-draw { animation: i-draw 3.2s var(--ease) infinite; }
@keyframes i-draw { 0%, 12% { stroke-dashoffset: 1; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
.ico .i-draw2 { stroke-dasharray: 1; stroke-dashoffset: 1; }
.card.is-in .i-draw2 { animation: i-draw 4s var(--ease) infinite; }
.ico .i-blink { fill: currentColor; stroke: none; opacity: .25; }
.ico .i-blink.i-acc { fill: var(--shu); }
.card.is-in .i-blink { animation: i-blink 2.7s steps(1) infinite; animation-delay: calc(var(--k) * .3s); }
@keyframes i-blink { 0% { opacity: 1; } 30% { opacity: .25; } }
.card.is-in .i-arc { animation: i-arc 2s ease-in-out infinite; animation-delay: calc(var(--k) * .25s); }
@keyframes i-arc { 0%, 100% { opacity: .2; } 30% { opacity: 1; } }
.card.is-in .i-led { animation: i-led 1.6s steps(1) infinite; animation-delay: calc(var(--k) * -.55s); }
@keyframes i-led { 50% { opacity: .2; } }

/* ---------- Health check ---------- */

.check { padding-block: clamp(90px, 12vw, 180px); background: var(--bg-2); }
.check-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.hc { display: grid; gap: 14px; }
.hc-q { margin: 0; padding: 20px 22px; border: 0; border-radius: 4px; background: var(--bg); display: grid; gap: 14px; transition: box-shadow .3s; }
.hc-q.is-answered { box-shadow: inset 3px 0 0 var(--shu); }
.hc-q legend { float: left; width: 100%; padding: 0; display: flex; gap: 14px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.hc-q legend span { font-size: 13px; color: var(--muted); letter-spacing: .08em; padding-top: 3px; flex: none; }
.hc-opts { clear: both; display: flex; flex-wrap: wrap; gap: 8px; padding-left: 34px; }
.hc-opts label { position: relative; cursor: pointer; }
.hc-opts input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.hc-opts span { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 14px; font-weight: 600; transition: background .25s, color .25s, box-shadow .25s, transform .3s var(--spring); }
.hc-opts label:hover span { box-shadow: inset 0 0 0 1.5px var(--fg); }
.hc-opts input:checked + span { background: var(--solid); color: var(--on-solid); box-shadow: none; transform: scale(1.04); }
.hc-opts input:focus-visible + span { outline: 2px solid var(--shu); outline-offset: 3px; }

.hc-result { position: sticky; top: 110px; padding: 30px; border-radius: 6px; background: var(--bg); display: grid; gap: 14px; justify-items: start; }
.hc-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.hc-ring { position: relative; width: 132px; height: 132px; }
.hc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.hc-track { fill: none; stroke: var(--line); stroke-width: 8; }
.hc-bar { fill: none; stroke: var(--shu); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--score, 0)); transition: stroke-dashoffset 1s var(--ease); }
.hc-score { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0; font-size: 38px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.hc-score small { font-size: 12px; font-weight: 600; color: var(--muted); margin: 0; letter-spacing: .02em; }
.hc-title { font-size: 24px; letter-spacing: -0.03em; line-height: 1.15; }
.hc-text { color: var(--muted); }
.hc-gaps { display: grid; gap: 8px; font-size: 15px; }
.hc-gaps li { display: flex; gap: 10px; animation: fade-up .5s var(--ease) both; }
.hc-gaps li::before { content: ""; flex: none; width: 10px; height: 8px; margin-top: 7px; background: var(--shu); clip-path: var(--block); }
.hc-send[hidden] { display: none; }
@media (max-width: 860px) { .check-grid { grid-template-columns: 1fr; } .hc-result { position: static; } .hc-opts { padding-left: 0; } }

/* ---------- FAQ ---------- */

.faq { padding-block: clamp(90px, 12vw, 180px); }
.faq-list { max-width: 880px; border-top: 1.5px solid var(--fg); }
.faq details { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 16px; height: 13px; background: var(--fg); clip-path: var(--block); transition: transform .5s var(--spring), background .3s; }
.faq details[open] summary::after { transform: rotate(98deg); background: var(--shu); }
.faq summary:hover::after { background: var(--shu); }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq details p { padding: 0 0 26px; max-width: 62ch; color: var(--fg-2); }

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

/* Animation is on unless the visitor has paused it with the button in the top bar (sets html.no-motion). */
html.no-motion { scroll-behavior: auto; }
html.no-motion *, html.no-motion *::before, html.no-motion *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
html.no-motion .w > span { transform: none !important; opacity: 1 !important; }
html.no-motion .scrub .sw { opacity: 1 !important; }
html.no-motion [data-reveal] { opacity: 1 !important; transform: none !important; }
/* Looping icon animations stop entirely, and each icon rests in a finished, readable state. */
html.no-motion *, html.no-motion *::before, html.no-motion *::after { animation-iteration-count: 1 !important; }
html.no-motion .ico * { animation: none !important; }
html.no-motion .ico .i-draw, html.no-motion .ico .i-draw2 { stroke-dashoffset: 0 !important; }
html.no-motion .ico .i-blink { opacity: .55 !important; }
html.no-motion .ico .i-blink.i-acc { opacity: 1 !important; }
html.no-motion .ico .i-arc, html.no-motion .ico .i-led { opacity: 1 !important; }

/* Phone sizes for the top bar buttons (kept after the base rules so they win). */
@media (max-width: 720px) {
  .nav-inner { gap: 12px; }
  .nav-end { gap: 6px; }
  .nav-end .daylight { padding: 4px; }
  .nav-cta { height: 40px; padding: 0 14px; font-size: 14px; }
  .motion-toggle { height: 40px; width: 40px; padding: 0; justify-content: center; }
  .motion-toggle .mt-label { display: none; }
}
