/* Shadow Desks one page site. Fonts are self hosted, so no request leaves this origin. */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand tokens, taken from logo/main */
  --navy: #172857;
  --navy-2: #22346b;
  --teal: #31c4a5;
  --teal-ink: #0f7f6a;
  --teal-wash: #e3f6f1;
  --shadow-grey: #c7c6cb;
  --cream: #fbf9f4;
  --paper: #ffffff;
  --ink: #172857;
  --ink-soft: #4a5573;
  --line: #e6e2d8;
  --line-strong: #d3cec2;
  --danger: #a3341f;

  --font-display: "Outfit", ui-sans-serif, sans-serif;
  --font-body: "Manrope", ui-sans-serif, sans-serif;

  --radius: 14px;
  --radius-small: 10px;
  --lift: 0 1px 2px rgba(23, 40, 87, .06), 0 10px 30px -12px rgba(23, 40, 87, .22);
  --lift-strong: 0 2px 4px rgba(23, 40, 87, .06), 0 24px 48px -20px rgba(23, 40, 87, .35);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--teal-ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
::selection { background: var(--teal); color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal-ink); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--line-strong) var(--cream); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1 var(--font-body);
  padding: .95em 1.4em; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease-out), box-shadow .2s var(--ease-out), transform .2s var(--ease-out), color .2s;
}
.btn-primary { background: var(--teal); color: var(--navy); box-shadow: 0 1px 0 rgba(23, 40, 87, .12), 0 8px 18px -10px rgba(15, 127, 106, .7); }
.btn-primary:hover { background: #45cfb1; color: var(--navy); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-quiet { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-quiet:hover { background: var(--paper); color: var(--navy); }
.btn-small { padding: .7em 1.1em; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 249, 244, .92); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
@supports (backdrop-filter: blur(8px)) { .site-header { backdrop-filter: blur(8px); } }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(23, 40, 87, .5); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: auto; height: 44px; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover { color: var(--teal-ink); }

/* Hero: the background image fades into the page behind the copy */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: min(calc(100vw * 9 / 16), 860px); padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.hero > .wrap { width: 100%; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 85% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--cream) 0%, rgba(251, 249, 244, .92) 26%, rgba(251, 249, 244, .55) 42%, rgba(251, 249, 244, 0) 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 78%, var(--paper) 100%);
}
.hero-grid { display: block; }
.hero h1 { font-size: clamp(2.35rem, 4.4vw, 3.9rem); font-weight: 600; max-width: 14ch; }
.lede { margin-top: 22px; font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--ink-soft); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.assurances { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 10px; color: var(--ink-soft); font-size: .98rem; max-width: 40ch; }
.assurances li { display: flex; gap: 10px; align-items: flex-start; }
.assurances .i { color: var(--teal-ink); margin-top: .2em; }

/* Imprint and privacy notice: a narrow, readable text column */
.legal { padding-top: clamp(40px, 6vw, 72px); }
.legal-wrap { max-width: 760px; }
.legal-kicker { font-weight: 700; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 10px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; }
.legal-updated { margin-top: 12px; color: var(--ink-soft); }
.legal h2 { font-size: 1.3rem; font-weight: 600; margin-top: 36px; }
.legal p, .legal ul { margin-top: 12px; line-height: 1.65; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--teal-ink); }
.legal code { font-size: .92em; background: var(--teal-wash); padding: .1em .35em; border-radius: 4px; }
.legal-box { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: var(--radius-small); padding: 16px 18px; }
.todo { background: #fff1b8; color: #5b4300; padding: 0 .25em; border-radius: 3px; }
.book-privacy { color: var(--ink-soft); font-size: .9rem; }
.book-privacy a { color: var(--teal-ink); }

/* Page not found: the hero layout, filling the screen under the header */
.notfound { min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); }
.notfound-code { font-weight: 700; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 14px; }
.notfound h1 { max-width: 16ch; }
.booked::before {
  background:
    linear-gradient(270deg, var(--cream) 0%, rgba(251, 249, 244, .95) 34%, rgba(251, 249, 244, .7) 48%, rgba(251, 249, 244, 0) 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 80%, var(--paper) 100%);
}
.booked .hero-bg { object-position: 15% 50%; }
.booked .hero-grid { display: flex; justify-content: flex-end; }
.booked .hero-copy { width: min(100%, 540px); padding: 24px 0; }
.booked h1 { max-width: 18ch; font-size: clamp(2rem, 3.6vw, 3.1rem); }
.next-title { margin-top: 22px; font-size: 1.15rem; font-weight: 600; }
.next-steps { margin: 10px 0 0; padding-left: 1.4em; display: grid; gap: 6px; color: var(--ink-soft); }
.next-steps li::marker { color: var(--teal-ink); font-weight: 700; }
.next-steps strong, .next-note strong { color: var(--navy); }
.next-note { margin-top: 12px; color: var(--ink-soft); max-width: 46ch; }
.next-note a { color: var(--teal-ink); }
.booked .hero-actions { margin-top: 24px; }
@media (min-width: 981px) {
  /* Keep the whole scene visible when the copy is taller than the picture: no zoom, fade out at the bottom */
  .booked .hero-bg { bottom: auto; height: auto; aspect-ratio: 16 / 9; -webkit-mask-image: linear-gradient(180deg, #000 0, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 78%, transparent 100%); }
  .booked::before { background: linear-gradient(270deg, var(--cream) 0%, rgba(251, 249, 244, .95) 34%, rgba(251, 249, 244, .7) 48%, rgba(251, 249, 244, 0) 64%); }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 60ch; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head h2, .how-intro h2, .faq h2, .book-intro h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); font-weight: 600; }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.1rem; }

/* Services, part 1: the description is itself a template, filled from source documents */
.svc-doc { background: var(--paper); border-top: 1px solid var(--line); }
.tpl { position: relative; display: grid; grid-template-columns: minmax(150px, 190px) minmax(0, 1fr) minmax(150px, 190px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.tpl-sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; position: relative; z-index: 1; }
.tpl-left { justify-items: start; }
.tpl-right { justify-items: end; }
.tpl-src { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .92rem; color: var(--ink); padding: 8px 12px 8px 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--lift); cursor: default; transition: box-shadow .2s, border-color .2s; }
.tpl-right .tpl-src { flex-direction: row-reverse; padding: 8px 8px 8px 12px; }
.tpl-src .i { width: 36px; height: 36px; padding: 8px; border-radius: 9px; }
.tpl-sheet {
  position: relative; z-index: 1; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 8px;
  padding: clamp(28px, 4vw, 52px); box-shadow: var(--lift-strong);
  background-image: linear-gradient(var(--paper), var(--paper)), repeating-linear-gradient(0deg, transparent 0 35px, #f1eee6 35px 36px);
}
.tpl-name { display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; font-weight: 700; color: var(--ink-soft); padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px dashed var(--line-strong); width: 100%; }
.tpl-sheet h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); font-weight: 600; }
.tpl-body { margin-top: 18px; font-size: 1.12rem; line-height: 1.95; max-width: 60ch; }
.tfill { font-weight: 700; padding: .04em .18em; border-bottom: 2px solid currentColor; border-radius: 3px 3px 0 0; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: box-shadow .2s; }
/* Five sources, five colours. Ink colours pass 4.5:1 on their own wash. */
.c1 { --c: #172857; --w: #e7ebf6; }
.c2 { --c: #0b6b59; --w: #e3f6f1; }
.c3 { --c: #74345f; --w: #f5e8f1; }
.c4 { --c: #8a4b0b; --w: #f8ecdc; }
.c5 { --c: #4a515c; --w: #eceef1; }
.tfill { color: var(--c); background: var(--w); }
.c5.tfill { border-bottom-style: dashed; }
.tpl-src .i { color: var(--c); background: var(--w); }
.tpl-src.is-lit { border-color: var(--c); }
.tfill.is-lit { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--c); }
.tpl-arrows { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.tpl-arrows > path { fill: none; stroke-width: 1.75; opacity: .75; transition: opacity .2s, stroke-width .2s; }
.tpl-arrows > path.is-lit { opacity: 1; stroke-width: 2.5; }
.svc-meta.svc-meta-dark { color: #c7cede; }
.svc-meta.svc-meta-dark .i { color: var(--teal); }

/* Services, part 4: a routine described in words becomes a workflow */
.svc-custom { background: var(--paper); border-top: 1px solid var(--line); }
.custom { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.brief { margin: 0; position: sticky; top: 112px; }
.brief-text { margin: 0; padding: clamp(24px, 3vw, 36px); background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); }
.brief-text p { font: 500 clamp(1.25rem, 2vw, 1.6rem)/1.6 var(--font-display); color: var(--navy); }
.brief figcaption { margin-top: 12px; font-size: .9rem; color: var(--ink-soft); }
.phrase { border-bottom: 2px dotted var(--line-strong); padding: 0 .08em; transition: background-color .3s var(--ease-out), border-color .3s; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.phrase.is-lit { background: var(--teal-wash); border-bottom: 2px solid var(--teal-ink); }
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.step { position: relative; display: grid; grid-template-columns: 44px 1fr; align-items: start; gap: 18px; padding: 10px 14px 10px 0; margin-bottom: 8px; border-radius: var(--radius-small); transition: background-color .3s var(--ease-out); }
.step-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--teal-wash); color: var(--teal-ink); }
.step-icon .i { width: 24px; height: 24px; }
.step h3 { font-size: 1.15rem; font-weight: 600; }
.step p { color: var(--ink-soft); font-size: .97rem; margin-top: 2px; }
.step-added .step-icon { background: transparent; border: 2px dashed var(--teal); }
.step.is-lit h3 { color: var(--teal-ink); }
.svc-custom .svc-meta { margin-top: 36px; }

.svc-head { max-width: 62ch; margin-bottom: clamp(32px, 4vw, 52px); }
.svc-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); font-weight: 600; }
.svc-head p { margin-top: 16px; color: var(--ink-soft); font-size: 1.1rem; max-width: 52ch; }
.svc-meta { display: flex; gap: 8px; align-items: center; margin-top: 26px; color: var(--ink-soft); font-size: .95rem; }
.svc-meta .i { color: var(--teal-ink); }

/* Services, part 2: an inbox that sorts itself */
.svc-sort { background: var(--cream); }
.sorter { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, .7fr) minmax(0, 1.15fr); align-items: start; }
.sort-col { position: relative; z-index: 1; }
.sort-in { grid-column: 1; }
.sort-out { grid-column: 3; }
.sort-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; }
.sort-label { display: flex; gap: 8px; align-items: center; font-weight: 700; margin-bottom: 14px; }
.sort-label .i { color: var(--teal-ink); }
.sort-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.raw {
  display: grid; gap: 2px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius-small);
  transition: border-color .2s, box-shadow .2s;
}
.raw:nth-child(odd) { transform: rotate(-.6deg); }
.raw:nth-child(even) { transform: rotate(.5deg) translateX(6px); }
.raw-name { font-weight: 700; font-size: .98rem; word-break: break-word; }
.raw-meta { font-size: .85rem; color: var(--ink-soft); }
.done {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 18px; min-height: 76px;
  padding: 12px 18px; border-radius: var(--radius-small); border: 1px solid transparent;
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), box-shadow .2s;
}
.word { font: 600 clamp(1.6rem, 2.8vw, 2.4rem)/1 var(--font-display); letter-spacing: -0.02em; }
.done-meta { display: grid; gap: 2px; font-size: .9rem; justify-items: start; line-height: 1.35; }
.from { display: none; font-size: .8rem; opacity: .8; }
.cat { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cat-finance { background: var(--teal-wash); border-color: #bfe8dc; color: var(--navy); }
.cat-finance .cat { color: #0b6b59; }
.cat-legal { background: var(--navy); color: #fff; }
.cat-legal .cat { color: var(--teal); }
.cat-legal .done-meta { color: #d9deeb; }
.cat-people { background: var(--paper); border: 1px dashed #8a8794; color: var(--navy); }
.cat-people .cat { color: #5c6067; }
.raw.is-lit, .done.is-lit { box-shadow: 0 0 0 3px var(--teal); }
.sort-lines path { fill: none; stroke-width: 2; transition: stroke-width .2s, opacity .2s; }
.sort-lines path.is-lit { stroke-width: 3.5; }
.sort-lines .ln-finance { stroke: var(--teal-ink); }
.sort-lines .ln-legal { stroke: var(--navy); }
.sort-lines .ln-people { stroke: #8a8794; stroke-dasharray: 6 5; }
.sort-lines circle { stroke: none; }
.svc-foot { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-top: 36px; }
.svc-foot .svc-meta { margin-top: 0; }


/* Services, part 3: a routine running through the pipeline */
.svc-flow { background: var(--navy); color: #fff; }
.svc-flow .svc-head p { color: #d9deeb; }
.svc-flow h2 { color: #fff; }
.flow-controls { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: center; }
.scenarios { display: flex; flex-wrap: wrap; gap: 8px; }
.scenarios [role="radio"] {
  font: 600 .95rem/1 var(--font-body); padding: .75em 1.1em; border-radius: 999px; cursor: pointer;
  background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35); transition: background-color .2s, border-color .2s, color .2s;
}
.scenarios [role="radio"]:hover { border-color: #fff; }
.scenarios [role="radio"][aria-checked="true"] { background: #fff; color: var(--navy); border-color: #fff; }
.flow-run { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.svc-flow :focus-visible { outline-color: var(--teal); }
.flow-intro { margin-top: 22px; color: #d9deeb; max-width: 70ch; }
.track { position: relative; margin-top: 40px; }
.track-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.track-lines path { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 2; }
.track-lines path.is-done { stroke: var(--teal); }
.stations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; position: relative; }
.station { display: grid; justify-items: center; text-align: center; gap: 8px; align-content: start; }
.station .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); background: var(--navy); transition: background-color .3s, border-color .3s; }
.station h3 { font-size: 1.05rem; font-weight: 600; margin-top: 6px; color: #fff; }
.station p { font-size: .9rem; color: #c7cede; line-height: 1.45; }
.station.is-passed .dot { background: var(--teal); border-color: var(--teal); }
.station-gate .dot { width: 30px; height: 30px; border: 3px solid var(--teal); }
.flow-status { margin-top: 30px; min-height: 1.6em; font-weight: 600; color: var(--teal); }

/* How it works */
.how-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.how-intro { position: sticky; top: 112px; }
.how-intro p { margin-top: 16px; color: var(--ink-soft); font-size: 1.1rem; max-width: 44ch; }
.path { list-style: none; margin: 0; padding: 0; position: relative; }
.path::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 2px; background: var(--line-strong); }
.path li { position: relative; padding: 0 0 22px 44px; }
.path li:last-child { padding-bottom: 0; }
.path li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); border: 2px solid var(--navy); }
.path li::before { transition: background-color .35s var(--ease-out), transform .35s var(--ease-out); }
.path li.is-current::before { background: var(--navy); transform: scale(1.1); }
.path h3 { font-size: 1.3rem; font-weight: 600; }
.path p { margin-top: 6px; color: var(--ink-soft); max-width: 52ch; }

/* Principles band */
.principles { background: var(--navy); color: #fff; }
.principles-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.principles h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); font-weight: 600; color: #fff; }
.rules { margin: 0; display: grid; gap: 28px; }
.rules > div { padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.rules > div:last-child { border-bottom: 0; padding-bottom: 0; }
.rules dt { font: 600 1.2rem/1.3 var(--font-display); color: var(--teal); }
.rules dd { margin: 8px 0 0; color: #d9deeb; max-width: 56ch; }

/* Booking */
/* Booking: the robot image fills the section, and the copy sits on the open wall to the right */
.book { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: min(calc(100vw * 9 / 16), 860px); }
.book > .wrap { width: 100%; }
.book-bg { position: absolute; top: 0; left: -12%; z-index: -2; width: 112%; height: 100%; object-fit: cover; object-position: 25% 50%; }
.book::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(270deg, var(--cream) 0%, rgba(251, 249, 244, .95) 32%, rgba(251, 249, 244, .7) 46%, rgba(251, 249, 244, 0) 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 80%, var(--paper) 100%);
}
.book-grid { display: flex; justify-content: flex-end; }
.book-intro { width: min(100%, 500px); }
.book-intro p { margin-top: 16px; color: var(--ink-soft); font-size: 1.1rem; max-width: 44ch; }
.book-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.book-points li { display: flex; gap: 10px; }
.book-points .i { color: var(--teal-ink); margin-top: .25em; }
.book-actions { margin-top: 32px; display: grid; gap: 14px; justify-items: start; }
.book-email { color: var(--ink-soft); font-size: .98rem; }

/* FAQ */
.faq { background: var(--paper); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font: 600 1.12rem/1.35 var(--font-display);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg);
  transition: transform .25s var(--ease-out);
}
.faq-list details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq-list summary:hover { color: var(--teal-ink); }
.faq-list details p { padding: 0 0 22px; color: var(--ink-soft); max-width: 64ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 32px; align-items: start; }
.footer-brand img { width: 220px; height: auto; }
.footer-nav { display: grid; gap: 10px; }
.footer-nav a { color: var(--ink); text-decoration: none; }
.footer-nav a:hover { color: var(--teal-ink); text-decoration: underline; }
.footer-contact p { color: var(--ink-soft); margin-bottom: 6px; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .92rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; }

/* Motion. Hidden states apply only under html.anim, which the script sets when it runs and the visitor allows motion.
   Without it the page is complete and static. The footer is never animated. */

/* Hero: a staged fade in on load. Pure CSS, so it runs before the script and cannot flicker. */
@keyframes settle { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .95s var(--ease-out) both; }
  .hero-bg { animation: settle 1.6s var(--ease-out) both; }
  .hero-copy > :nth-child(1) { animation-delay: .05s; }
  .hero-copy > :nth-child(2) { animation-delay: .2s; }
  .hero-copy > :nth-child(3) { animation-delay: .34s; }
  .hero-copy > :nth-child(4) { animation-delay: .46s; }
  .hero-copy > :nth-child(n+5) { animation-delay: .56s; }
}

/* Simple reveal for the other sections */
.anim [data-reveal] { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), filter .7s var(--ease-out); }
.anim [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(22px); filter: blur(4px); }

/* Sections that hold in place while each scroll step reveals the next item */
.story { position: relative; }
.story.is-measuring * { transition: none !important; }
.story.is-pinned > .wrap { position: sticky; top: var(--pin-top, 72px); }

/* Template: filled words start as blanks */
.anim .tfill { transition: color .45s var(--ease-out), background-color .45s var(--ease-out), border-color .45s var(--ease-out); }
.anim .tfill:not(.is-on) { color: transparent; background-color: transparent; border-bottom-color: var(--line-strong); border-bottom-style: dotted; }

/* Sorter: filed items arrive one by one */
.anim .svc-sort .done { transition: opacity .55s var(--ease-out), transform .65s var(--ease-out), box-shadow .2s; }
.anim .svc-sort .done:not(.is-on) { opacity: 0; transform: translateX(-18px); }

/* Customer questions: the roadmap fills from grey to teal */
.track-progress { fill: none; stroke: var(--teal); stroke-width: 2; }
.station .dot { transition: background-color .35s var(--ease-out), border-color .35s var(--ease-out); }
.anim .flow-status { transition: opacity .6s var(--ease-out); }
.anim .flow-status:not(.is-on) { opacity: 0; }

/* Routine: steps and their phrases appear in process order */
.anim .svc-custom .step { transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); }
.anim .svc-custom .step:not(.is-lit) { opacity: 0; transform: translateY(14px); }
.anim .phrase:not(.is-lit) { border-bottom-color: transparent; }

/* How it works: titles first, then each description as the filled dot moves down */
.anim .path li { display: grid; grid-template-rows: auto 0fr; transition: grid-template-rows .55s var(--ease-out); }
.anim .path li.is-shown { grid-template-rows: auto 1fr; }
.anim .path li p { min-height: 0; overflow: hidden; transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), margin-top .55s var(--ease-out); }
.anim .path li:not(.is-shown) p { opacity: 0; transform: translateY(-6px); margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .how-grid, .principles-grid, .faq-grid { grid-template-columns: 1fr; }
  .how-intro { position: static; }
  .tpl { grid-template-columns: 1fr; gap: 20px; }
  .tpl-sources { display: flex; flex-wrap: wrap; gap: 10px; }
  .tpl-left { order: 0; } .tpl-sheet { order: 2; } .tpl-right { order: 1; justify-content: flex-start; }
  .tpl-right .tpl-src { flex-direction: row; padding: 8px 12px 8px 8px; }
  .tpl-arrows { display: none; }
  .custom { grid-template-columns: 1fr; }
  .brief { position: static; }
  .hero h1 { max-width: 18ch; }
  .booked .hero-bg { order: -1; object-position: 0% 50%; margin: 0 0 8px; -webkit-mask-image: linear-gradient(180deg, #000 0, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 80%, transparent 100%); }
  .booked .hero-grid { justify-content: flex-start; }
  .booked .hero-copy { padding-top: 0; }
  .booked { padding-top: 0; }
  .book { flex-direction: column; align-items: stretch; min-height: 0; padding-top: 0; }
  .book::before { display: none; }
  .book-grid { justify-content: flex-start; }
  .book-bg {
    position: static; order: -1; z-index: auto; width: 100%; height: auto; aspect-ratio: 16 / 10; margin-bottom: 8px; object-position: 0% 50%;
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0, #000 78%, transparent 100%);
  }
  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding-bottom: 0; }
  .hero::before { display: none; }
  .hero-bg {
    position: static; order: 2; z-index: auto; height: auto; aspect-ratio: 16 / 10; margin-top: 12px; object-position: 100% 50%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 82%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 82%, transparent 100%);
  }
}
@media (max-width: 760px) {
  .hero-bg { aspect-ratio: 4 / 3; }
  .book-bg { aspect-ratio: 4 / 3; }
  .sorter { grid-template-columns: 1fr; gap: 28px; }
  .sort-in, .sort-out { grid-column: 1; }
  .sort-lines { display: none; }
  .from { display: block; }
  .raw:nth-child(n) { transform: none; }
  .stations { grid-template-columns: 1fr; gap: 0; padding-left: 4px; }
  .station { grid-template-columns: 30px 1fr; justify-items: start; text-align: left; column-gap: 16px; row-gap: 2px; padding-bottom: 24px; }
  .station .dot { grid-row: 1 / span 3; }
  .station h3 { margin-top: 0; }
  }
@media (max-width: 720px) {
  .nav { display: none; }
  .brand img { height: 36px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .header-inner .btn-small { padding: .65em .9em; font-size: .9rem; }
}
