/* SysDock: paper, slate ink, one spruce accent. Mona Sans + Spline Sans Mono. */
:root {
  --paper: #fbfaf7;
  --band: #f2f1ec;
  --line: #e1dfd8;
  --line-strong: #cfccc3;
  --ink: #131a24;
  --text: #414b58;
  --muted: #6b7380;
  --accent: #2f5a4c;
  --accent-dark: #224337;
  --accent-soft: #e3ece7;
  --sans: "Mona Sans", "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 36px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); font-weight: 500; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.06; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); line-height: 1.15; letter-spacing: -0.018em; }
h3 { font-size: 1.15rem; line-height: 1.35; letter-spacing: -0.005em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.label {
  font: 500 0.78rem/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.mono { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.lead { font-size: 1.125rem; line-height: 1.6; max-width: 34em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border: 1px solid var(--accent); border-radius: 3px;
  background: var(--accent); color: #fff; text-decoration: none; cursor: pointer;
  font: 500 0.8rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase;
  transition: background .15s, transform .15s, box-shadow .2s, border-color .15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--band); border-color: var(--ink); }
.link {
  display: inline-block; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  padding-bottom: 6px; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1px no-repeat;
  transition: background-size .2s;
}
.link:hover { background-size: 100% 2px; }
.small-link {
  font: 500 0.74rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); text-decoration: none;
}
.small-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Header */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(251,250,247,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav__bar { display: flex; align-items: center; gap: 28px; height: 68px; }
/* Header and footer logo: just the words, the same proportions as the big lockup (.sdl, "Animated logo" below) */
.logo { --u: 6.5px; display: inline-flex; align-items: center; gap: calc(1.6 * var(--u)); text-decoration: none; color: var(--ink); font: 400 calc(2.4 * var(--u))/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { white-space: nowrap; text-decoration: none; font: 500 0.78rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); padding: 8px 0; }
.nav__links a:hover { color: var(--ink); box-shadow: inset 0 -1px var(--accent); }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 3px; background: none; color: var(--ink); cursor: pointer; }
.nav .btn { white-space: nowrap; flex: none; }
@media (max-width: 1240px) {   /* the logo, seven links and the button need about 1180px */
  .nav__links {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
  }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__links { display: flex; }
  .nav__toggle { display: inline-grid; place-items: center; }
  .nav__bar > .btn { display: none; }
}

/* Sections */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section--band { background: var(--band); }
.section__head { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 640px; }

/* Hero */
.hero { padding: clamp(48px, 6vw, 84px) 0 clamp(44px, 5vw, 64px); }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero__ill { width: 100%; height: auto; }

/* Line illustrations: slate strokes, paper fills, one spruce accent */
.ill { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ill .thin { stroke: var(--line-strong); stroke-width: 1.2; }
.ill .bar { stroke-width: 9; stroke: var(--ink); }
.ill .bar-s { stroke-width: 4; }
.ill .dots { stroke: var(--muted); stroke-width: 2.5; stroke-dasharray: 0.1 5; }
.ill .dash { stroke: var(--muted); stroke-dasharray: 4 6; }
.ill .f-paper { fill: #fff; }
.ill .f-band { fill: var(--band); }
.ill .f-soft { fill: var(--accent-soft); }
.ill .f-acc { fill: var(--accent); stroke: none; }
.ill .s-acc { stroke: var(--accent); stroke-width: 2.5; }
.ill .s-white { stroke: #fff; stroke-width: 2; }
.ill .qmark { stroke-width: 9; }
.hero h1 { margin: 18px 0 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts { border-top: 1px solid var(--line-strong); margin: 0; }
.facts div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 500 0.74rem/1.7 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); }
@media (max-width: 860px) {
  /* One column: the words, then the four aims, then the drawing (the aims sit outside the grid, so the grid dissolves and its pieces are ordered directly) */
  .hero { display: flex; flex-direction: column; }
  .hero__grid { display: contents; }
  .hero__grid > * { order: 1; padding-inline: var(--gutter); }
  .hero > .wrap:last-child { order: 2; width: 100%; }
  .hero__grid > .hero__ill { order: 3; max-width: calc(520px + 2 * var(--gutter)); margin-top: 40px; box-sizing: border-box; }
}

.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; text-align: center; }
.strip p { font: 500 0.72rem/1.6 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Ruled list (services, process) */
.ruled { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.ruled li { display: grid; grid-template-columns: 10rem 1fr 9rem; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.ruled .label { padding-top: 4px; }
.ruled h3 { margin-bottom: 6px; }
.ruled p { max-width: 36em; }
.ruled .mono { text-align: right; padding-top: 4px; }
.ruled__icon { display: flex; flex-direction: column; gap: 12px; }
.ruled__icon svg { width: 44px; height: 44px; }
@media (max-width: 720px) {
  .ruled__icon { flex-direction: row; align-items: center; }
  .ruled__icon svg { width: 34px; height: 34px; }
  .ruled li { grid-template-columns: 1fr auto; gap: 6px 16px; padding: 22px 0; }
  .ruled li > div { grid-column: 1 / -1; }
  .ruled .label { grid-row: 1; }
  .ruled .mono { grid-row: 1; }
}

/* Case study */
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line-strong); margin-bottom: clamp(36px, 5vw, 56px); overflow-x: auto; scrollbar-width: none; }
.tab {
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 0 0 14px; cursor: pointer;
  text-align: left; white-space: nowrap; color: var(--muted); font: 500 0.95rem/1.3 var(--sans);
}
.tab .mono { display: block; margin-bottom: 4px; font-size: 0.72rem; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tab[aria-selected="true"] .mono { color: var(--accent); }
html:not(.js) .tabs { display: none; }
html:not(.js) .panel[hidden] { display: block; }
html:not(.js) .panel + .panel { margin-top: 96px; }
.panel { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.case__intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 88px); margin-bottom: clamp(32px, 5vw, 52px); align-items: end; }
.case__title { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; letter-spacing: -0.015em; margin-top: 12px; }
.case__body { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .case__intro, .case__body { grid-template-columns: 1fr; } }

.notes { list-style: none; margin: 0; padding: 0; counter-reset: note; border-top: 1px solid var(--line-strong); }
.notes li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); counter-increment: note; }
.notes li::before { content: counter(note); }
.notes li::before, .pin {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff; font: 500 0.75rem/1 var(--mono);
}
.notes h4 { color: var(--ink); font-weight: 500; font-size: 1rem; margin: 0 0 4px; }
.notes p { font-size: 0.95rem; }
.notes li.is-active h4 { color: var(--accent); }

.outcomes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); margin: clamp(36px, 5vw, 56px) 0 0; border-top: 1px solid var(--line-strong); }
.outcomes li { padding: 20px 24px 0 0; color: var(--ink); font-weight: 500; font-size: 1.05rem; }
.outcomes li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.outcomes .label { display: block; margin-bottom: 6px; font-weight: 500; }
@media (max-width: 720px) {
  .outcomes { grid-template-columns: 1fr; }
  .outcomes li, .outcomes li + li { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Mock 02: team chat */
.chat { display: grid; grid-template-columns: 0.75fr 1.25fr; min-height: 300px; }
.chat__rooms { padding: 22px 18px; border-right: 1px solid var(--line); display: grid; gap: 14px; align-content: start; background: #fcfcfa; }
.chat__rooms .anno { padding-left: 34px; }
.chat__rooms .anno > .pin { left: 0; top: -4px; }
.room { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; padding: 6px 8px; border-radius: 3px; color: var(--text); }
.room::before { content: "#"; font-family: var(--mono); color: var(--muted); }
.room.on { background: var(--accent-soft); color: var(--accent-dark); }
.room--lock::before { content: none; }
.room--lock svg { width: 12px; height: 12px; fill: none; stroke: var(--ink); stroke-width: 1.2; }
.chat__msgs { padding: 22px; display: grid; gap: 14px; align-content: start; }
.msg { display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 0.78rem; }
.msg b { font-weight: 500; color: var(--ink); }
.av { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--band); border: 1px solid var(--line-strong); font: 500 0.6rem/1 var(--mono); color: var(--ink); }
.av--acc { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); }
.av--s { width: 20px; height: 20px; font-size: 0.5rem; margin-left: -6px; background: #fff; }
.seen { display: flex; align-items: center; gap: 8px; padding-left: 38px; }
.seen .mono { font-size: 0.68rem; margin-right: 6px; }
.seen > .pin { left: 0; top: 0; }
.compose { justify-content: space-between; margin-top: 8px; }
.send { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); }

/* Mock 03: tour website */
.trips { padding: 22px; display: grid; gap: 14px; }
.trips__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.trips__name { font-weight: 600; color: var(--ink); font-size: 0.9rem; }
.textsize { display: inline-flex; align-items: baseline; gap: 3px; font-size: 0.72rem; border: 1px solid var(--accent); color: var(--accent-dark); background: var(--accent-soft); padding: 6px 10px; border-radius: 3px; }
.textsize .a1 { font-size: 0.75rem; font-weight: 600; } .textsize .a2 { font-size: 1.05rem; font-weight: 600; margin-right: 6px; }
.textsize > .pin { top: -13px; left: -13px; }
.trips__h { font-size: 1.7rem; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; padding-left: 36px; }
.trips__h > .pin { left: 0; top: 8px; }
.trip { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 4px; }
.trip > .pin { left: auto; right: -11px; top: -11px; }
.trip__pic { width: 100%; height: auto; }
.trip__t { font-size: 1.05rem; font-weight: 500; color: var(--ink); line-height: 1.3; }
.trip__d { font-size: 0.85rem; margin: 4px 0 12px; }
.trip__btn { display: inline-block; font: 500 0.66rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; background: var(--ink); color: #fff; padding: 10px 12px; border-radius: 3px; }
.trip__btn > .pin { top: -12px; left: auto; right: -14px; }
@media (max-width: 560px) { .trip { grid-template-columns: 1fr; } .chat { grid-template-columns: 1fr; } .chat__rooms { border-right: 0; border-bottom: 1px solid var(--line); } }

/* Mock 05: text alerts */
.sms__form { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.sms__form .qbtn { margin: 0; padding: 0 14px; }
.sms__consent { display: flex; align-items: center; gap: 8px; font-size: 0.76rem; padding-left: 30px; white-space: nowrap; }
.sms__consent > .pin { left: 0; top: -3px; }
.box { width: 13px; height: 13px; border: 1px solid var(--line-strong); border-radius: 2px; flex: none; }
.box.on { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 2px #fff; }
.sms { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 22px; background: #fcfcfa; }
.phone { border: 1.5px solid var(--ink); border-radius: 18px; padding: 16px 12px 12px; background: #fff; min-height: 170px; display: flex; flex-direction: column; }
.phone::before { content: ""; width: 34px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 0 auto 12px; }
.phone > .pin { top: -11px; left: auto; right: -11px; }
.phone__who { font: 500 0.6rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 12px; }
.bubble { font-size: 0.74rem; line-height: 1.45; background: var(--band); border-radius: 12px 12px 12px 3px; padding: 10px 12px; color: var(--ink); }
.bubble--acc { background: var(--accent-soft); }
.phone__time { font-size: 0.62rem; margin-top: 6px; }
@media (max-width: 560px) {
  .sms__form { grid-template-columns: 1fr; }
  .sms { grid-template-columns: 1fr; }
  .phone { min-height: 0; }
}

/* Mock 06: quick-answer chat */
.ask { display: grid; grid-template-columns: 1fr 1.1fr; }
.ask__page { padding: 22px; display: grid; gap: 10px; align-content: start; border-right: 1px solid var(--line); }
.ask__btn { justify-self: start; font: 500 0.62rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent-dark); padding: 8px 10px; border-radius: 999px; margin-left: 30px; }
.ask .ask__btn > .pin { left: -34px; top: 2px; }
.ask__pic { width: 100%; height: auto; margin-top: 4px; }
.ask__line { height: 6px; border-radius: 3px; background: var(--line); width: 90%; }
.ask__line--b { height: 10px; background: var(--ink); width: 60%; }
.ask__line--s { width: 55%; }
.ask__chat { padding: 18px; display: grid; gap: 10px; align-content: start; background: #fcfcfa; }
.ask__chat .anno > .pin { left: auto; right: -11px; top: -11px; }
.bubble--me { justify-self: end; max-width: 85%; background: var(--ink); color: #fff; border-radius: 12px 12px 3px 12px; }
.ask__link { display: block; margin-top: 6px; font-weight: 500; color: var(--accent-dark); }
.ask__chat .chips .chip { font-size: 0.66rem; }
@media (max-width: 560px) { .ask { grid-template-columns: 1fr; } .ask__page { border-right: 0; border-bottom: 1px solid var(--line); } }

/* Mock 07: office network and shared drive */
.net { display: grid; grid-template-columns: 1.2fr 1fr; }
.net__map { padding: 20px 18px 12px; border-right: 1px solid var(--line); }
.net .net__map > .pin { top: 12px; left: 12px; }
.net__ill { width: 100%; height: auto; }
.ill .ill__t { fill: var(--muted); stroke: none; font: 500 9px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; text-anchor: middle; }
.net__files { padding: 22px 20px; display: grid; gap: 8px; align-content: start; background: #fcfcfa; }
.drive { font-size: 0.78rem; padding: 9px 10px; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
.drive b { font-family: var(--mono); font-weight: 500; margin-right: 4px; }
.drive--on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.net .drive--on > .pin { left: auto; right: -11px; top: -11px; }
.folders { display: grid; gap: 6px; padding: 6px 0 0 14px; border-left: 1px solid var(--line); margin-left: 10px; }
.folders span { font-size: 0.74rem; display: flex; align-items: center; gap: 8px; }
.folders span::before { content: ""; width: 14px; height: 10px; border: 1.2px solid var(--ink); border-radius: 1px 3px 2px 2px; background: #fff; }
@media (max-width: 560px) { .net { grid-template-columns: 1fr; } .net__map { border-right: 0; border-bottom: 1px solid var(--line); } }

/* Approach: two paths */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 48px); }
.path { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; }
.path__ill { width: 100%; height: auto; aspect-ratio: 2 / 1; background: var(--band); border-radius: 4px; margin-bottom: 24px; }
.path__meta { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line-strong); }
.path h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 10px; }
.path > p:not(.path__meta) { margin-bottom: 22px; }
.path__steps { list-style: none; margin: auto 0 0; padding: 0; counter-reset: st; border-top: 1px solid var(--line); }
.path__steps li { counter-increment: st; display: grid; grid-template-columns: 34px 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: 0.98rem; }
.path__steps li::before { content: "0" counter(st); font: 500 0.78rem/1.9 var(--mono); color: var(--accent); }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } }

/* Process: four illustrated steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step__ill { width: 100%; height: auto; aspect-ratio: 200 / 130; background: var(--band); border-radius: 4px; margin-bottom: 20px; }
.step__meta { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line-strong); }
.steps h3 { margin-bottom: 6px; }
.steps p:last-child { font-size: 0.95rem; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; gap: 40px 28px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Questions with a drawing beside them */
.faq-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: end; }
.faq__ill { width: 100%; max-width: 340px; height: auto; justify-self: end; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } .faq__ill { display: none; } }
.contact__ill { width: 100%; max-width: 360px; height: auto; margin-top: 40px; }

/* The annotated mock-up: a drawing of the quote flow, not a screenshot */
.mock { position: relative; margin: 0; }
.mock .field { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock__alert .mono { flex: none; white-space: nowrap; }
@media (max-width: 560px) { .facts div { grid-template-columns: 7.5rem 1fr; } }
.mock__frame { background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(19,26,36,.28); overflow: hidden; }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--band); }
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.mock__bar span { margin-left: 10px; font: 400 0.72rem/1 var(--mono); color: var(--muted); }
.mock__body { display: grid; grid-template-columns: 1fr 0.9fr; }
.mock__form { padding: 22px; display: grid; gap: 16px; border-right: 1px solid var(--line); }
.mock__quote { padding: 22px; background: #fcfcfa; display: grid; gap: 10px; align-content: start; }
.mock .mlabel { font: 500 0.62rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.mock .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mock .chip { font-size: 0.74rem; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 3px; color: var(--text); }
.mock .chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.mock .checks { display: grid; gap: 6px; font-size: 0.78rem; }
.mock .checks span { display: flex; align-items: center; gap: 8px; }
.mock .checks b { width: 13px; height: 13px; border: 1px solid var(--line-strong); border-radius: 2px; flex: none; }
.mock .checks b.on { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 2px #fff; }
.mock .field { height: 30px; border: 1px solid var(--line); border-radius: 3px; display: flex; align-items: center; padding: 0 10px; font-size: 0.74rem; color: var(--muted); }
.mock .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock .qtitle { font-weight: 500; color: var(--ink); font-size: 0.9rem; }
.mock .qline { display: flex; justify-content: space-between; gap: 10px; font-size: 0.76rem; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.mock .qline em { font-style: normal; font-family: var(--mono); color: var(--ink); }
.mock .qtotal { display: flex; justify-content: space-between; font-weight: 500; color: var(--ink); padding-top: 6px; font-size: 0.85rem; }
.mock .qtotal em { font-style: normal; font-family: var(--mono); }
.mock .qbtn { margin-top: 8px; height: 30px; border-radius: 3px; background: var(--ink); color: #fff; font: 500 0.62rem/30px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; text-align: center; }
.mock .muted-x { color: var(--muted); font-size: 0.7rem; }
.mock__alert { display: flex; gap: 10px; align-items: center; padding: 12px 22px; border-top: 1px solid var(--line); background: var(--band); font-size: 0.76rem; }
.mock__alert .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.mock__alert .mono { margin-left: auto; font-size: 0.7rem; }
.anno { position: relative; }
.anno > .pin { top: -11px; left: -11px; }
.mock__form .anno { padding-left: 36px; }
.mock__form .anno > .pin { top: -5px; left: 0; }
.mock__quote > .pin { top: 10px; left: auto; right: 12px; }
.mock__alert > .pin { top: -13px; left: auto; right: 14px; }
.pin { position: absolute; z-index: 2; box-shadow: 0 0 0 4px rgba(47,90,76,.18); transition: transform .15s; }
.pin.is-active { transform: scale(1.18); box-shadow: 0 0 0 6px rgba(47,90,76,.25); }
@media (max-width: 560px) {
  .mock__body { grid-template-columns: 1fr; }
  .mock__form { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* About */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.portrait {
  aspect-ratio: 4 / 5; border-radius: 4px; background: linear-gradient(160deg, #e9e7e0, #d9d6cc);
  display: grid; place-items: center; color: var(--muted); position: relative; overflow: hidden;
}
.portrait svg { width: 38%; opacity: .5; }
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(1.14); transition: filter .6s ease; }
/* Spruce duotone: shadows lift to spruce (screen), highlights take a light green (multiply); full colour on hover */
.portrait::before, .portrait::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: opacity .6s ease; }
.portrait::before { background: #bcdccb; mix-blend-mode: multiply; }
.portrait::after { background: var(--accent); mix-blend-mode: screen; opacity: .32; }
.portrait:hover img { filter: none; }
.portrait:hover::before, .portrait:hover::after { opacity: 0; }
.about__fig { margin: 0; }
.about h2 { margin-bottom: 18px; }
.about .facts { margin-top: 32px; }
.edu { display: grid; gap: 4px; justify-items: start; }
.edu img { width: 124px; height: auto; margin-bottom: 8px; }
.edu__detail { font-size: 0.9rem; color: var(--text); }
.about .link { margin-top: 28px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about__fig { max-width: 420px; } }

/* Questions */
.faq { border-top: 1px solid var(--line-strong); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; color: var(--ink); font-weight: 500; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.3rem/1 var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 24px; max-width: 40em; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); }
.contact h2 { margin-bottom: 16px; }
.contact .facts { margin-top: 32px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 7px; font: 500 0.74rem/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.form input, .form textarea {
  font: 400 1rem/1.5 var(--sans); color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 3px; padding: 11px 13px; width: 100%;
}
.form textarea { min-height: 128px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,90,76,.15); }
.form .err { display: none; font: 400 0.82rem/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: #9b2c22; }
.form .invalid .err { display: block; }
.form .invalid input, .form .invalid textarea { border-color: #9b2c22; }
.form .hp { position: absolute; left: -9999px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__status { font-size: 0.95rem; color: var(--accent-dark); }
/* Contact page (/contact) */
.page-contact h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 14px 0 18px; }
.reach { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.reach li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.reach p { margin: 0; }
.reach__label { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px !important; }
.reach a { color: var(--accent-dark); font-weight: 500; }

/* Footer */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer p { font-size: 0.92rem; margin-top: 14px; max-width: 22em; }
.footer h4 { margin: 0 0 14px; font: 500 0.74rem/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.92rem; }
.footer ul a { text-decoration: none; }
.footer ul a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer__legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* Simple pages */
.plain { min-height: 60vh; display: grid; align-content: center; }
.plain h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 14px 0 18px; }
.plain .hero__actions { margin-top: 28px; }

/* Gentle entrance, skipped for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* Services: the closing "much more" row */
.ruled .ruled__more { background: var(--band); border-bottom-color: var(--line-strong); padding-left: 20px; padding-right: 20px; margin: 0 -20px; border-radius: 4px; }
.ruled__more .small-link { text-align: right; padding-top: 6px; white-space: nowrap; }
@media (max-width: 720px) { .ruled .ruled__more { margin: 0 -12px; padding-left: 12px; padding-right: 12px; } .ruled__more .ruled__icon { grid-column: 1; grid-row: 1; } .ruled__more .small-link { grid-column: 2; grid-row: 1; align-self: center; padding-top: 0; } }

/* Plain-words promise under Approach */
.promise { display: grid; grid-template-columns: 88px 1fr; gap: 28px; align-items: center; margin-top: clamp(40px, 6vw, 64px); padding-top: clamp(32px, 4vw, 44px); border-top: 1px solid var(--line-strong); }
.promise__ill { width: 88px; height: auto; }
.promise__text { color: var(--ink); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.25; letter-spacing: -0.015em; font-weight: 500; margin-bottom: 8px; }
.promise p:last-child { max-width: 40em; }
@media (max-width: 560px) { .promise { grid-template-columns: 1fr; gap: 16px; } .promise__ill { width: 64px; } }
.contact__note { display: flex; align-items: center; gap: 10px; margin-top: 20px; color: var(--ink); font-weight: 500; }
.contact__note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* Hero: the four aims (grow, be more effective, streamline, less stress) in one ruled row */
.aims { list-style: none; margin: clamp(36px, 4.5vw, 60px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.aims li { padding: 20px 24px 0; border-left: 1px solid var(--line); }
.aims li:first-child { padding-left: 0; border-left: 0; }
.aims li:last-child { padding-right: 0; }
.aims .mono { color: var(--accent); }
.aims__t { margin: 8px 0 6px; color: var(--ink); font-weight: 500; font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.01em; }
.aims li p:last-child { font-size: 0.95rem; line-height: 1.5; }
@media (max-width: 960px) {
  .aims { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .aims li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .aims li:nth-child(even) { padding-right: 0; }
}
@media (max-width: 480px) {
  .aims { grid-template-columns: 1fr; row-gap: 0; border-top: 0; }
  .aims li { padding: 16px 0; border-left: 0; border-top: 1px solid var(--line); }
  .aims li:first-child { border-top-color: var(--line-strong); }
}

/* Hero animation: a request travels from the website to a quote to the owner's phone.
   site.js adds .anim (never with reduced motion); without it the drawing is static. */
.hero__ill .h-cursor { opacity: 0; }
.hero__ill.anim:not(.go) * { animation-play-state: paused !important; }
.hero__ill.anim .h-browser { animation: h-rise .7s ease both; }
.hero__ill.anim .h-phone { animation: h-rise .7s ease .2s both; }
.hero__ill.anim .h-grow { transform-box: fill-box; transform-origin: left center; animation: h-grow .45s ease both; }
.hero__ill.anim .h-d1 { animation-delay: .5s; } .hero__ill.anim .h-d2 { animation-delay: .62s; }
.hero__ill.anim .h-d3 { animation-delay: .74s; } .hero__ill.anim .h-d4 { animation-delay: .84s; }
.hero__ill.anim .h-photo { animation: h-fade .6s ease .6s both; }
.hero__ill.anim .h-cursor { animation: h-cursor 1.6s ease .9s both; }
.hero__ill.anim .h-btn { transform-box: fill-box; transform-origin: center; animation: h-press .3s ease 1.75s both; }
.hero__ill.anim .h-dash1, .hero__ill.anim .h-end1 { animation: h-fade .3s ease 1.85s both; }
.hero__ill.anim .h-sheet { animation: h-drop .6s cubic-bezier(.2,.8,.2,1) 2.45s both; }
.hero__ill.anim .h-q0 { animation-delay: 2.95s; } .hero__ill.anim .h-q1 { animation-delay: 3.1s; }
.hero__ill.anim .h-q2 { animation-delay: 3.25s; } .hero__ill.anim .h-q3 { animation-delay: 3.4s; }
.hero__ill.anim .h-q4 { animation-delay: 3.55s; }
.hero__ill.anim .h-check { transform-box: fill-box; transform-origin: center; animation: h-pop .45s cubic-bezier(.3,1.6,.5,1) 3.85s both; }
.hero__ill.anim .h-dash2, .hero__ill.anim .h-end2 { animation: h-fade .3s ease 4.15s both; }
.hero__ill.anim .h-bubble { transform-box: fill-box; transform-origin: right center; animation: h-pop .45s cubic-bezier(.3,1.6,.5,1) 5.05s both; }
.hero__ill.anim .h-bubble2 { animation: h-fade .4s ease 5.35s both; }
.hero__ill.anim .h-notify { transform-box: fill-box; transform-origin: center; animation: h-pop .4s cubic-bezier(.3,1.6,.5,1) 5.15s both, h-pulse 2.4s ease-in-out 5.8s infinite; }
@keyframes h-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes h-fade { from { opacity: 0; } }
@keyframes h-grow { from { transform: scaleX(0); } }
@keyframes h-press { 50% { transform: scale(.9); } }
@keyframes h-drop { from { opacity: 0; transform: translateY(-26px); } }
@keyframes h-pop { from { opacity: 0; transform: scale(0); } }
@keyframes h-pulse { 50% { transform: scale(1.3); } }
@keyframes h-cursor {
  0% { opacity: 0; transform: translate(320px, 330px); }
  15% { opacity: 1; }
  55% { transform: translate(110px, 196px); }
  62% { transform: translate(110px, 196px) scale(.85); }
  70% { transform: translate(110px, 196px) scale(1); opacity: 1; }
  100% { transform: translate(118px, 206px); opacity: 0; }
}

/* The "Do not push button" box (footer) */
.nopush { margin-top: 24px; max-width: 220px; display: grid; justify-items: center; gap: 6px; padding: 18px 16px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--band); }
.nopush .label { margin: 0; text-align: center; max-width: none; font-size: 0.72rem; }
.nopush__btn { background: none; border: 0; padding: 0; width: 120px; cursor: pointer; border-radius: 6px; -webkit-tap-highlight-color: transparent; }
.nopush__btn svg { display: block; width: 100%; height: auto; overflow: visible; }
.nopush__btn .np-side { fill: #1f3f34; transition: opacity .12s ease; }                  /* the cap's depth, showing below and to the right */
.nopush__btn .np-top { fill: #3f7463; }
.nopush__btn .np-shine { fill: none; stroke: #fff; stroke-width: 2.5; opacity: .75; transition: opacity .12s ease; }
.nopush__btn .np-well { fill: none; stroke: var(--ink); stroke-width: 3; opacity: 0; transition: opacity .12s ease; }   /* the dark rim of the hole it sinks into */
.nopush__btn .np-cap { transform-box: fill-box; transform-origin: center; transition: transform .12s ease; }
.nopush__btn .np-sparks { transition: opacity .15s; }
.nopush__btn:hover .np-top { fill: #4a8472; }
/* pushed: the cap slides back onto its own shadow and shrinks a little, as if sinking into the page */
.nopush__btn:active .np-cap, .nopush__btn.is-pushed .np-cap { transform: translate(2.2px, 3px) scale(.9); }
.nopush__btn:active .np-side, .nopush__btn.is-pushed .np-side { opacity: 0; }
.nopush__btn:active .np-well, .nopush__btn.is-pushed .np-well { opacity: .55; }
.nopush__btn:active .np-shine, .nopush__btn.is-pushed .np-shine { opacity: .3; }
.nopush__btn:active .np-sparks, .nopush__btn.is-pushed .np-sparks { opacity: 0; }
.nopush__btn:disabled { cursor: default; }

/* The abyss: what happens when someone pushes it anyway.
   The screen is swapped for square tiles (each a clipped copy of the page) over black; site.js sends them falling. */
.abyss-layer { position: fixed; inset: 0; z-index: 9999; transform-style: preserve-3d; }
.abyss-tile { position: absolute; transform-origin: center; transform-style: preserve-3d; will-change: transform; }
.abyss-face { position: absolute; inset: 0; overflow: hidden; background: var(--paper); will-change: transform, opacity; }
/* A band of light and shadow that slides across a square as it bends, like light on curling paper */
.abyss-sheen { position: absolute; top: 0; bottom: 0; left: 0; width: 260%; opacity: 0; pointer-events: none; will-change: transform, opacity;
  background: linear-gradient(100deg, rgba(0,0,0,.16) 0%, rgba(0,0,0,0) 14%, rgba(255,255,255,.5) 24%, rgba(0,0,0,0) 36%, rgba(0,0,0,.2) 52%, rgba(0,0,0,0) 64%, rgba(255,255,255,.45) 76%, rgba(0,0,0,0) 88%, rgba(0,0,0,.18) 100%); }
/* The singularity everything falls into */
.abyss-dot { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; opacity: 0; pointer-events: none;
  box-shadow: 0 0 6px 2px rgba(255,255,255,.8), 0 0 18px 6px rgba(190,225,212,.5); will-change: transform, opacity; }
.abyss-dot--flare { box-shadow: 0 0 10px 4px #fff, 0 0 30px 12px rgba(255,255,255,.9), 0 0 70px 26px rgba(190,225,212,.7); }
/* The vortex sky: one canvas of color, smoke, sparkles and glowing things, behind the paper squares */
.abyss-sky { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform: translateZ(-900px); pointer-events: none; }
.abyss-sky--things { transform: translateZ(-860px); }
.abyss-sky--fog { transform: translateZ(-940px); }
.abyss-copy { position: absolute; background: var(--paper); color: var(--text); font: 400 16px/1.6 var(--sans); pointer-events: none; }
.abyss-copy * { animation: none !important; transition: none !important; }
html.abyss-on, html.abyss-on body { overflow: hidden; background: #000; }
html.abyss-on body > *:not(.abyss-layer) { visibility: hidden !important; }
html.abyss-done .abyss-layer, .abyss-layer--black { background: #000; }

/* After the abyss: a glossy black stage and the stick man who walks onto it */
.abyss-scene { position: absolute; inset: 0; overflow: hidden; transform: translateZ(1px); }
/* --avh is 1% of the scene's own height (set by site.js), so a resized window doesn't change these */
.stage { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--avh, 1vh) * 10); min-height: 56px; opacity: 0;
  background:
    linear-gradient(105deg, transparent 18%, rgba(255,255,255,.07) 30%, transparent 42%, transparent 62%, rgba(255,255,255,.05) 72%, transparent 84%),
    linear-gradient(to bottom, #3a4049 0, #1b1f25 2px, #0d0f13 28%, #050608 100%);
  box-shadow: 0 -1px 0 rgba(255,255,255,.32), 0 -18px 40px rgba(120,150,140,.06); }
.stick { position: absolute; left: 0; bottom: calc(max(var(--avh, 1vh) * 10, 56px) * .62); height: clamp(170px, calc(var(--avh, 1vh) * 32), 330px); aspect-ratio: 260 / 290; will-change: transform; }
.stick__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.stick__mirror { position: absolute; left: 0; top: 100%; width: 100%; height: 100%; margin-top: -9%; transform: scaleY(-1); opacity: .2; pointer-events: none;
  -webkit-mask: linear-gradient(to top, #000, transparent 55%); mask: linear-gradient(to top, #000, transparent 55%); }
.st-line { fill: none; stroke: #f4f2ec; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.st-hair { stroke-width: 4; }
.st-fill { fill: #f4f2ec; }
.st-head { fill: none; stroke: #f4f2ec; stroke-width: 5; }
.st-ink { fill: #f4f2ec; }
.st-face { fill: none; stroke: #f4f2ec; stroke-width: 3.4; stroke-linecap: round; }
.st-sign { fill: #fbfaf7; stroke: #cfccc3; stroke-width: 2; }
.st-text { fill: #131a24; font: 600 25.5px/1 var(--sans); text-anchor: middle; letter-spacing: -0.01em; }
.stick__leg { transform-box: view-box; transform-origin: 92px 172px; transition: transform .35s ease; }
.stick__shin { transform-box: view-box; transform-origin: 92px 207px; transition: transform .35s ease; }
.stick__foot { transform-box: view-box; transform-origin: 92px 243px; transition: transform .35s ease; }
.stick__arm { transform-box: view-box; transform-origin: 92px 114px; transition: transform .35s ease; }
.stick__head { transform-box: fill-box; transform-origin: 50% 90%; transition: transform .6s ease; }
.stick__face { transition: transform .6s ease; }
.stick__eyes { transform-box: fill-box; transform-origin: center; }
/* The walk. One full cycle is two steps (1.654s). First half: the foot is planted and the leg sweeps back
   under him at a steady rate, while the body rides over it (st-bob: lowest when both feet are down, highest
   mid-step), so the foot stays on the stage where it landed. Second half: the knee bends, the foot lifts,
   swings through and the heel comes down again. site.js moves him one stride per step to match. */
.stick--walking .stick__leg { animation: st-thigh 1.654s linear infinite; }
.stick--walking .stick__shin { animation: st-shin 1.654s linear infinite; }
.stick--walking .stick__foot { animation: st-foot 1.654s linear infinite; }
.stick--walking .stick__leg--b, .stick--walking .stick__leg--b .stick__shin, .stick--walking .stick__leg--b .stick__foot { animation-delay: -.827s; }
.stick--walking .stick__arm { animation: st-arm .827s ease-in-out infinite alternate; }
.stick--walking .stick__bob { animation: st-bob .827s linear infinite; }
@keyframes st-thigh { 0% { transform: rotate(26deg); } 12.5% { transform: rotate(12.7deg); } 25% { transform: rotate(0deg); } 37.5% { transform: rotate(-12.7deg); } 50% { transform: rotate(-26deg); } 62.5% { transform: rotate(-14deg); } 75% { transform: rotate(10deg); } 87.5% { transform: rotate(28deg); } 100% { transform: rotate(26deg); } }
@keyframes st-shin { 0%, 44% { transform: rotate(0deg); } 50% { transform: rotate(-10deg); } 62.5% { transform: rotate(-40deg); } 75% { transform: rotate(-60deg); } 87.5% { transform: rotate(-30deg); } 100% { transform: rotate(0deg); } }
@keyframes st-foot { 0% { transform: rotate(-14deg); } 6% { transform: rotate(-20deg); } 12.5% { transform: rotate(-12.7deg); } 25% { transform: rotate(0deg); } 37.5% { transform: rotate(12.7deg); } 44% { transform: rotate(19deg); } 50% { transform: rotate(16deg); } 62.5% { transform: rotate(29deg); } 75% { transform: rotate(40deg); } 87.5% { transform: rotate(12deg); } 100% { transform: rotate(-14deg); } }
@keyframes st-arm { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
@keyframes st-bob { 0%, 100% { transform: translateY(7.1px); } 25%, 75% { transform: translateY(1.7px); } 50% { transform: translateY(0); } }
/* walking: head a little down, looking at the floor ahead of him */
.stick--walking .stick__head { transform: rotate(-11deg) translateY(4px); }
.stick--walking .stick__face { transform: translate(-7px, 7px); }
/* the sign: he grips the stick at its middle and carries it level at his side, the sign out in front of
   him with its blank side showing, until he lifts it above his head and turns it to face the viewer.
   The three turns below add up (to -75 degrees: the stick goes from nearly level, sign end a little raised so the
   big sign clears the floor, to upright), so change them together. */
.stick__hold { transform-box: view-box; transform-origin: 92px 114px; transform: rotate(57.6deg); transition: transform 1s cubic-bezier(.35,.8,.3,1.06); }
.stick__fore { transform-box: view-box; transform-origin: 118px 104px; transform: rotate(-218.3deg); transition: transform 1s cubic-bezier(.35,.8,.3,1.06); }
.stick__pole { transform-box: view-box; transform-origin: 129px 80px; transform: rotate(85.7deg); transition: transform 1s cubic-bezier(.35,.8,.3,1.06); }
/* the sign turns round on the stick itself (x = 130), so it never leaves it */
.stick__flip { transform-box: view-box; transform-origin: 130px -50px; }
.stick__words { opacity: 0; }
.stick--show .stick__hold, .stick--show .stick__fore, .stick--show .stick__pole { transform: rotate(0deg); }
.stick--show .stick__flip { animation: st-flip 1s ease-in-out both; }
.stick--show .stick__words { opacity: 1; transition: opacity 0s .5s; }
@keyframes st-flip { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.03); } }
/* stopped: feet together-ish and flat, facing the viewer */
.stick--still .stick__leg--a { transform: rotate(11deg); }
.stick--still .stick__leg--b { transform: rotate(-11deg); }
.stick--still .stick__leg--a .stick__foot { transform: rotate(-11deg); }
.stick--still .stick__leg--b .stick__foot { transform: rotate(11deg); }
.stick--still .stick__arm { transform: rotate(5deg); }
.stick--still .stick__head { transform: rotate(-5deg) translateY(2px); }
.stick--still .stick__eyes { animation: st-blink 4.2s 1.2s infinite; }
@keyframes st-blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
/* the reach and the press of the button nobody can see */
.stick--reach .stick__arm { transform: rotate(110deg); transition: transform .45s cubic-bezier(.3,.8,.3,1); }
.stick--press .stick__arm { transform: rotate(119deg); transition: transform .12s ease-out; }
.stick__ping { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 2px solid #fff; pointer-events: none; animation: st-ping .5s ease-out forwards; }
@keyframes st-ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(4.5); opacity: 0; } }

/* Logo: the name, with "Intelligent Systems. Simplified." beneath it in the header */
.logo__text { display: grid; gap: calc(.6 * var(--u)); }
.logo__text small { font: 500 calc(1.38 * var(--u))/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* The call page (call.html): where the "Do not push button" story ends. Same paper, a number and a way home. */
.call { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 22px; padding: 32px 20px; text-align: center; background: var(--paper); }
.abyss-copy .call { min-height: 100%; height: 100%; }
.call__lead { margin: 0; max-width: 30em; text-wrap: balance; font-size: clamp(1.15rem, 2.6vw, 1.5rem); line-height: 1.4; color: var(--ink); }
.call .btn { margin-top: 10px; }

/* ---------- Animated logo ----------
   Just the words. "Sys" fades in, holds a beat, then "Dock" slides up into place from just
   below the line (clipped by .sdl__name, so it rises out of nowhere) with a small settle.
   The moment it lands, "Intelligent Systems. Simplified." clicks down out from under the name
   (clipped by .sdl__tag), overshooting a touch and snapping back. Both then fly into the
   header logo.
   .sdl--play runs it; without it the lockup is simply the still name.
   Sized in em: set font-size on .sdl to scale the whole lockup. */
.sdl { display: inline-flex; align-items: center; gap: 1.6em; color: var(--ink); }
.sdl__word { display: grid; padding: 2px 4px 2px 0; text-align: left; }
.sdl__name { display: block; font: 400 2.4em/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.sdl__name b, .logo__name b { font-weight: 600; }
.sdl__name b { display: inline-block; }
.sdl__tag { display: block; overflow: hidden; margin-top: .3em; padding: 0 0 .35em; }
.sdl__tag > span { display: block; font: 500 1.38em/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* Timeline: "Sys" fades in 0-.45s, "Dock" rises .6-1.44s */
.sdl--play .sdl__name { overflow: hidden; padding: .9em 0 .1em; animation: sdl-in .45s ease-out both; }
.sdl--play .sdl__name b { animation: sdl-up .84s linear .6s both; }
/* "Dock" clicks down at .6 + .84 x 70% = 1.19s: the line clicks out the bottom right then */
.sdl--play .sdl__tag > span { animation: sdl-out .42s linear 1.19s both; }
@keyframes sdl-out {
  0%   { transform: translateY(-110%); animation-timing-function: cubic-bezier(.3,.7,.4,1); }
  45%  { transform: translateY(14%);   animation-timing-function: ease-in-out; }
  70%  { transform: translateY(-4%);   animation-timing-function: ease-out; }
  100% { transform: none; }
}

@keyframes sdl-in { from { opacity: 0; } to { opacity: 1; } }
/* like a tossed ball: shoots up fast and slows as it climbs past the line, stops for a
   split second at the peak, speeds back down, and clicks into place with a tiny tick */
@keyframes sdl-up {
  0%   { transform: translateY(115%); animation-timing-function: cubic-bezier(.15,.75,.4,1); }
  42%  { transform: translateY(-80%); animation-timing-function: linear; }
  48%  { transform: translateY(-80%); animation-timing-function: cubic-bezier(.6,0,1,.75); }
  70%  { transform: translateY(0);    animation-timing-function: ease-out; }
  77%  { transform: translateY(-3%);  animation-timing-function: ease-in; }
  84%  { transform: none; }
  100% { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sdl--play * { animation: none !important; }
}

/* Opening screen on the home page: the animated logo plays on paper, then site.js flies its
   name into the header logo's place while the paper fades, and swaps
   in the real header logo once they land. Shown on every load (the inline script in
   index.html adds .intro-on). Without site.js, a plain CSS fade clears it, so the page can
   never get stuck behind it; site.js adds .intro--js to take over from that fade. */
.intro { display: none; }
.intro-on .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 100;
  padding: 16px; background: var(--paper); cursor: pointer;
  animation: intro-out .6s ease 3s forwards;
}
.intro-on .intro.intro--js { animation: none; }
.intro .sdl { font-size: clamp(7px, 2vw, 16px); }
.intro--flying { pointer-events: none; }
.intro--flying .sdl__word, .intro--flying .sdl__tag { overflow: visible; }
.intro-hold .nav .logo { visibility: hidden; }   /* the header logo waits for the flying one */
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

/* The call page carries the logo above its line */
.call__logo { font-size: clamp(6.5px, 1.6vw, 11px); margin-bottom: 14px; }


/* ------------------------------------------------------------------
   Liveliness (Nov 2026): a hero that runs its example, moving band,
   staggered entrances and hover feedback. Everything that moves sits
   behind prefers-reduced-motion; without it the page is the same
   page, standing still.
   ------------------------------------------------------------------ */


/* The one word the headline turns on */
.hl { color: var(--accent); background: linear-gradient(var(--accent), var(--accent)) 0 96% / 100% 3px no-repeat; padding-bottom: 2px; }

/* Buttons: an arrow that steps forward, a lift on hover */
.btn:not(.btn--ghost)::after { content: "\2192"; font-size: 1.15em; letter-spacing: 0; transition: transform .2s cubic-bezier(.2,.7,.2,1); }
.btn:not(.btn--ghost):hover::after { transform: translateX(4px); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -12px rgba(34,67,55,.55); }
.btn--ghost:hover { box-shadow: none; }
.btn:active { transform: translateY(1px); box-shadow: none; }

/* Cards and rows answer the pointer */
.path { transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .25s; }
.path:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 24px 40px -28px rgba(19,26,36,.3); }
.ruled li h3, .aims__t, .steps h3 { transition: color .2s; }
.ruled__icon svg, .step__ill { transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.ruled li:hover h3, .aims li:hover .aims__t, .steps li:hover h3 { color: var(--accent); }
.ruled li:hover .ruled__icon svg { transform: translateY(-3px) scale(1.06); }
.steps li:hover .step__ill { transform: translateY(-3px); }
.aims li { position: relative; }

/* The moving band (site.js builds .strip__track; without it the plain line stays) */
.strip--move { padding: 14px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.strip__track { display: flex; width: max-content; }
.strip__track ul { display: flex; flex: none; list-style: none; margin: 0; padding: 0; }
.strip__track li { display: flex; align-items: center; white-space: nowrap; font: 500 0.72rem/1.6 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.strip__track li::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin: 0 26px; }

@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance: held while the opening logo plays, then each piece rises in turn */
  .intro-hold .hero__copy > *, .intro-hold .hero__stage, .intro-hold .aims li { opacity: 0; }
  .hero-in .hero__copy > *, .hero-in .hero__stage, .hero-in .aims li { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero-in .hero__copy > :nth-child(2) { animation-delay: .08s; }
  .hero-in .hero__copy > :nth-child(3) { animation-delay: .18s; }
  .hero-in .hero__copy > :nth-child(4) { animation-delay: .28s; }
  .hero-in .hero__stage { animation-delay: .2s; }
  .hero-in .aims li:nth-child(1) { animation-delay: .4s; } .hero-in .aims li:nth-child(2) { animation-delay: .48s; }
  .hero-in .aims li:nth-child(3) { animation-delay: .56s; } .hero-in .aims li:nth-child(4) { animation-delay: .64s; }
  .hero-in .hl { animation: underline .7s cubic-bezier(.2,.7,.2,1) .75s both; }


  /* The four aims take turns: a spruce rule runs across the top of each */
  .aims li::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--accent); transform-origin: 0 50%; animation: aim 14s linear 2s infinite backwards; }
  .aims li:nth-child(2)::before { animation-delay: 5.5s; }
  .aims li:nth-child(3)::before { animation-delay: 9s; }
  .aims li:nth-child(4)::before { animation-delay: 12.5s; }

  .strip__track { animation: slide 90s linear infinite; }
  .strip--move:hover .strip__track { animation-play-state: paused; }

  /* Lists arrive one row at a time instead of as a block */
  .steps.reveal, .ruled.reveal { opacity: 1; transform: none; }
  .steps.reveal > li, .ruled.reveal > li { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .steps.reveal.is-in > li, .ruled.reveal.is-in > li { opacity: 1; transform: none; }
  .reveal > li:nth-child(2) { transition-delay: .09s; } .reveal > li:nth-child(3) { transition-delay: .18s; }
  .reveal > li:nth-child(4) { transition-delay: .27s; } .reveal > li:nth-child(5) { transition-delay: .36s; }
  .reveal > li:nth-child(6) { transition-delay: .45s; } .reveal > li:nth-child(7) { transition-delay: .54s; }
  .reveal { transform: translateY(22px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
  .paths .path.reveal { transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .25s; }
  .paths .path.reveal:nth-child(2):not(.is-in) { transition-delay: .14s; }
  .paths .path.reveal.is-in:hover { transform: translateY(-3px); transition-duration: .25s; }

  /* Small drawings keep moving: dotted lines march, the finished system beats */
  .path__ill .dash, .contact__ill .dash { animation: march 1.4s linear infinite; }
  .ill .beat { transform-box: fill-box; transform-origin: center; animation: h-pulse 2.2s ease-in-out infinite; }

  /* Case studies: the numbered pins pop in one after another when a study opens */
  body > main .panel .pin { animation: h-pop .4s cubic-bezier(.3,1.6,.5,1) .25s both; }
  body > main .panel [data-note="2"] > .pin { animation-delay: .4s; } body > main .panel [data-note="3"] > .pin { animation-delay: .55s; }
  body > main .panel [data-note="4"] > .pin { animation-delay: .7s; }
}
/* Two-across aims (tablet): the second row has no rule to run along, so the turn-taking line rests */
@media (min-width: 481px) and (max-width: 960px) { .aims li::before { display: none; } }
@media (prefers-reduced-motion: reduce) { .ill .pulse { display: none; } }

/* How far down the page you are: a spruce line along the bottom of the header */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); animation: grow-x linear both; animation-timeline: scroll(root); }
  }
}

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes underline { from { background-size: 0 3px; } to { background-size: 100% 3px; } }
@keyframes aim { 0% { transform: scaleX(0); opacity: 1; } 24% { transform: scaleX(1); opacity: 1; } 30%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes march { to { stroke-dashoffset: -20; } }
@keyframes grow-x { to { transform: scaleX(1); } }

/* Case studies: "The idea / See it live" switch. The drawing explains the idea; the real screen proves it. */
.case__media { min-width: 0; }
.flip { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 99px; padding: 3px; background: #fff; margin-bottom: 14px; }
.flip button { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; border: 0; background: none; color: var(--muted); padding: 9px 14px; border-radius: 99px; cursor: pointer; transition: background .2s, color .2s; }
.flip button:hover { color: var(--ink); }
.flip button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.mock.real { display: none; }
.case__media.show-real .mock.drawing { display: none; }
.case__media.show-real .mock.real { display: block; animation: fade .35s ease; }
.real__win { height: clamp(260px, 34vw, 400px); overflow: hidden; background: var(--band); }
.real__win img { display: block; width: 100%; height: auto; }
.show-real .real__win img { animation: tour 9s cubic-bezier(.45,0,.55,1) .5s both; }
@keyframes tour { 0% { transform: none; } 70%, 100% { transform: translateY(var(--travel, 0px)); } }
.real__cap { margin-top: 10px; font: 400 0.74rem/1.45 var(--mono); color: var(--muted); }
html:not(.js) .flip { display: none; }

/* After launch: changes by email (spruce band) */
.section--accent { background: var(--accent); color: rgba(255,255,255,.82); }
.section--accent h2, .section--accent h3 { color: #fff; }
.section--accent .label, .section--accent .mono { color: #b7d3c7; }
.changes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.changes h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.15; letter-spacing: -0.015em; margin: 12px 0 18px; }
.changes__steps { list-style: none; margin: 30px 0 28px; padding: 0; border-top: 1px solid rgba(255,255,255,.2); }
.changes__steps li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.changes__steps .mono { padding-top: 3px; }
.changes__steps h3 { font-size: 1.02rem; font-weight: 500; margin: 0 0 3px; }
.changes__steps p { font-size: 0.95rem; }
.changes__mail-link { display: inline-block; color: #fff; text-decoration: none; font-weight: 500; font-size: 1.05rem; padding-bottom: 6px;
  background: linear-gradient(#fff, #fff) 0 100% / 100% 1px no-repeat; transition: background-size .2s; }
.changes__mail-link:hover { background-size: 100% 2px; }
.changes__mock .mock__frame { box-shadow: 0 40px 70px -34px rgba(0,0,0,.55); border-color: transparent; }
.mail { color: var(--ink); font-size: 0.92rem; }
.mail__row { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 11px 20px; border-bottom: 1px solid var(--line); }
.mail__row span { color: var(--muted); font-size: 0.82rem; }
.mail__to { justify-self: start; font-weight: 500; color: var(--accent); background: var(--accent-soft); padding: 1px 10px; border-radius: 99px; }
.mail__body { padding: 18px 20px 6px; display: grid; gap: 10px; line-height: 1.55; }
.mail__body mark { background: #fbf1c9; color: inherit; padding: 0 3px; border-radius: 2px; white-space: nowrap; }
.mail__sig { color: var(--muted); }
.mail__att { display: inline-flex; align-items: center; gap: 10px; margin: 8px 20px 20px; border: 1px solid var(--line-strong); border-radius: 5px; padding: 6px 12px 6px 6px; font-size: 0.8rem; }
.mail__thumb { width: 34px; height: 26px; border-radius: 3px; background: linear-gradient(160deg, #c9b79a, #8a6f4d 60%, #4d3d2a); }
@media (max-width: 860px) { .changes { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .show-real .real__win img { animation: none; } }

/* Referrals: client quotes, short build videos, and a line asking for introductions */
.ref__lead { margin: -12px 0 clamp(32px, 4vw, 48px); color: var(--text); }
.watch { margin-top: 0; }
.refer { margin-top: clamp(48px, 6vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; padding: 24px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.refer p { max-width: 46em; }
.refer b { color: var(--ink); font-weight: 500; }

/* Referral letter: the client's own letter, word for word */
.letter { margin: clamp(48px, 6vw, 72px) 0 0; display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(24px, 5vw, 72px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line-strong); }
.letter__side h3 { margin: 10px 0 6px; font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.letter__side .mono { font-size: 0.72rem; }
.letter__intro { margin-top: 22px; }
.letter__body { margin: 0; padding: clamp(24px, 3.4vw, 40px); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 24px 44px -34px rgba(19,26,36,.4); }
.letter__body p { color: var(--text); line-height: 1.65; }
.letter__body p + p { margin-top: 14px; }
.letter__sign { margin-top: 22px; display: grid; gap: 2px; }
.letter__sign b { color: var(--ink); font-weight: 500; }
.letter__sign span { font-size: 0.9rem; color: var(--muted); }
.letter + .letter { margin-top: clamp(32px, 4vw, 48px); }
@media (max-width: 860px) { .letter { grid-template-columns: 1fr; } }


/* Story cards: the cover is the client (name, owner, address); a tap plays the story in the player */
.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.story { display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper); color: inherit; font: inherit; cursor: pointer;
  box-shadow: 0 24px 44px -32px rgba(19,26,36,.45); transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s; }
.story:hover, .story:focus-visible { transform: translateY(-4px); box-shadow: 0 32px 54px -30px rgba(19,26,36,.5); }
.story__cover { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: #dfeae4; }
.story__ill { width: 66%; height: auto; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.story__ill .thin { stroke-width: 1.4; opacity: .8; }
.story__ill .fill { fill: var(--paper); }
.story:hover .story__ill { transform: scale(1.04); }
.story__play { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); box-shadow: 0 8px 20px -8px rgba(19,26,36,.5); transition: transform .25s; }
.story__play::after { content: ""; position: absolute; left: 17px; top: 14px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
.story:hover .story__play { transform: scale(1.08); }
/* "Want to see more of our work?" card: a fan of browser windows that spreads on hover */
a.story { text-decoration: none; }
.story--more .story__who { color: var(--text); line-height: 1.5; }
.fan .tone { fill: var(--accent-soft); stroke: none; }
.fan__w { transform-box: view-box; transform-origin: 80px 175px; transform: rotate(var(--r)); transition: transform .6s cubic-bezier(.22,1,.36,1); }
.story--more:hover .fan__w, .story--more:focus-visible .fan__w { transform: rotate(calc(var(--r) * 1.3)); }
.story--more:hover .story__ill { transform: none; }
.story__text { display: grid; gap: 4px; padding: 20px 22px 22px; border-top: 1px solid var(--line); flex: 1; align-content: start; }
.story__head { color: var(--ink); font-weight: 500; font-size: 1.22rem; line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 10px; }
.story__name { color: var(--ink); font-weight: 500; font-size: 0.98rem; line-height: 1.3; }
.story__who { color: var(--text); font-size: 0.95rem; }
.story__where { font-size: 0.72rem; }
.story__go { margin-top: 12px; color: var(--accent); font-size: 0.72rem; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 860px) {
  .stories { grid-template-columns: 1fr; }
  .story { flex-direction: row; }
  .story__cover { width: 38%; aspect-ratio: auto; flex: none; }
  .story__play { width: 36px; height: 36px; right: 10px; bottom: 10px; }
  .story__play::after { left: 14px; top: 11px; border-width: 7px 0 7px 11px; }
  .story__text { border-top: 0; border-left: 1px solid var(--line); padding: 16px 18px; }
}

/* The story player: five scenes (who, the problem, what we built, what changed, speak with them) */
.player { border: 0; padding: 0; background: transparent; width: min(880px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); overflow: visible; }
.player::backdrop { background: rgba(19,26,36,.78); }
.player__box { position: relative; background: var(--paper); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; aspect-ratio: 16 / 10; max-height: calc(100dvh - 24px); }
.player__bar { display: flex; gap: 6px; padding: 18px 64px 0 20px; }
.player__seg { flex: 1; height: 3px; border-radius: 2px; background: var(--line-strong); overflow: hidden; position: relative; }
.player__seg::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }
.player__x { position: absolute; top: 6px; right: 10px; width: 40px; height: 40px; border: 0; background: none; font: 400 1.8rem/1 var(--sans); color: var(--muted); cursor: pointer; border-radius: 50%; }
.player__x:hover { color: var(--ink); background: var(--band); }
.player__stage { flex: 1; display: grid; place-items: center; padding: clamp(20px, 4vw, 48px); cursor: pointer; min-height: 0; overflow: auto; }
.player__ctrl { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px 12px 20px; }
.player__hint { font-size: 0.68rem; opacity: .7; }
.player__btns { display: flex; gap: 6px; }
.player__btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s; }
.player__btn:hover { background: var(--band); border-color: var(--line-strong); }
.player__btn:disabled { opacity: .35; cursor: default; background: var(--paper); }
.player__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.player__btn--play { background: var(--accent); border-color: var(--accent); color: #fff; }
.player__btn--play:hover { background: var(--accent); filter: brightness(1.12); }
.player__btn--play .i-play { fill: currentColor; stroke-width: 1.6; }
.player__btn--play .i-play, .player.is-paused .player__btn--play .i-pause { display: none; }
.player.is-paused .player__btn--play .i-play { display: block; }
/* Paused: hold every running animation (feature icons drawing, the typing caret, scene fade-ins) */
.player.is-paused .player__stage * { animation-play-state: paused !important; }
.scene { width: 100%; max-width: 640px; animation: scene-in .5s cubic-bezier(.22,1,.36,1) both; }
@keyframes scene-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.scene .label { display: block; margin-bottom: 14px; color: var(--accent); }
.scene__name { font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.1; letter-spacing: -0.015em; color: var(--ink); font-weight: 500; }
.scene__who { margin-top: 14px; font-size: 1.1rem; color: var(--text); }
.scene__where { margin-top: 6px; }
.scene__type { font-size: clamp(1.2rem, 2.6vw, 1.65rem); line-height: 1.45; color: var(--ink); min-height: 4.4em; }
.scene__type::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 3px; vertical-align: -0.15em; background: var(--accent); animation: caret 1s steps(1) infinite; }
.scene__type.done::after { animation: none; opacity: 0; }
@keyframes caret { 50% { opacity: 0; } }
.feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.feat { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; opacity: 0; transform: translateY(8px); transition: opacity .45s, transform .45s cubic-bezier(.22,1,.36,1); }
.feat.on { opacity: 1; transform: none; }
.feat svg { width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; background: var(--accent-soft); border-radius: 10px; padding: 9px; }
.feat svg * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.feat.on svg * { animation: draw .8s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.feat b { display: block; color: var(--ink); font-weight: 500; font-size: 0.98rem; }
.feat span { font-size: 0.86rem; color: var(--muted); line-height: 1.4; }
.scene--end { text-align: center; }
.scene--end .mark { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; }
.scene--end .mark svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.scene--end p { font-size: clamp(1.1rem, 2.4vw, 1.4rem); line-height: 1.45; color: var(--ink); max-width: 30em; margin: 0 auto; }
.scene--end .sub { margin-top: 10px; font-size: 1rem; color: var(--muted); }
.scene__acts { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.scene__tag { display: inline-block; margin-top: 16px; font: 500 0.64rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: #fbf1c9; color: #6b5a1e; padding: 4px 8px; border-radius: 3px; }
@media (max-width: 700px) {
  .player__box { aspect-ratio: auto; height: calc(100dvh - 24px); }
  .feats { grid-template-columns: 1fr; gap: 12px; }
  .feat { grid-template-columns: 38px 1fr; }
  .feat svg { width: 38px; height: 38px; padding: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene, .feat { animation: none; transition: none; }
  .feat svg * { stroke-dashoffset: 0; animation: none !important; }
  .scene__type::after { display: none; }
}

/* Player: a size up on laptops and desktops; the "In their words" scene */
@media (min-width: 701px) {
  .scene { max-width: 720px; }
  .feats { gap: 26px 40px; }
  .feat { grid-template-columns: 54px 1fr; gap: 16px; }
  .feat svg { width: 54px; height: 54px; padding: 11px; border-radius: 12px; }
  .feat b { font-size: 1.15rem; margin-bottom: 3px; }
  .feat span { font-size: 1rem; }
}
.scene--quote blockquote { margin: 0; }
.scene--quote blockquote::before { content: "\201C"; display: block; font: 500 4.4rem/0.7 var(--sans); color: var(--accent); height: 34px; }
.scene--quote blockquote p { font-size: clamp(1.25rem, 2.8vw, 1.75rem); line-height: 1.45; color: var(--ink); }
.scene--quote cite { display: block; margin-top: 20px; font-style: normal; color: var(--text); }
.scene--quote cite .mono { display: block; margin-top: 4px; }
