/* Home page additions (Oct 2026): the "Why we exist" story (the hero knot carries on into it), the
   "one missed call" journey card and the scroll reveals. The existing sections keep their content and layout. */
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/instrument-serif.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/instrument-serif-italic.woff2') format('woff2'); }

/* ---------- Story ---------- */
.story { position: relative; border-top: 1px solid var(--line); }
.story__stage { position: relative; max-width: 1240px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) clamp(16px, 4vw, 48px); box-sizing: border-box; }
.story__eyebrow { margin: 0 0 22px; }
.story__line { margin: 0 0 .5em; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(2.4rem, 5.2vw, 4.8rem); line-height: 1.02; letter-spacing: -.01em; color: var(--ink); }
.story__line em { font-style: italic; }
/* the services each line is about, linked to their pages */
.story__tag { display: block; margin: 0 0 .9rem; font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif; font-size: .74rem; font-weight: 700; font-stretch: 112%; letter-spacing: .16em; line-height: 1.6; text-transform: uppercase; color: var(--ink-soft); text-shadow: none; }
.story__tag a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); transition: color .2s ease, border-color .2s ease; }
.story__tag a:hover { color: var(--ink); border-color: var(--ink); }
.story__tag .story__list > span { margin: 0 .35em; opacity: .5; }
.story__cat { display: block; margin: 0 0 .5rem; color: var(--ink); font-weight: 700; letter-spacing: .2em; }
.story__list { display: block; max-width: 760px; margin: 0 auto; font-weight: 400; letter-spacing: .12em; }
.story__next { display: none; }
.story__hands { display: none; }

/* the serif is only applied (and so only downloaded) once the story is near */
.story--near .story__line { font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif; }

/* the hero knot, moved into a fixed layer by story.js so it stays on screen through the story */
.knot-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; will-change: transform, opacity; }
.knot-layer canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hero::before, .hero::after { transition: opacity .6s ease; }
.hero.hero--handoff::before, .hero.hero--handoff::after { opacity: 0; }
/* phones: the headline's dark wash would otherwise end in a hard line across the knot as the hero slides away */
@media (max-width: 760px) { .hero--handoff .hero__content::before { -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); } }

/* live (scroll-driven) version, switched on by story.js */
.story--live { border-top: 0; }
.story--live .story__track { position: relative; height: 600vh; }
.story--live .story__stage { position: sticky; top: 0; z-index: 2; height: 100vh; height: 100svh; max-width: none; padding: 0; overflow: hidden; }
.story--live .story__hands { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.story--live .story__inner { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) clamp(64px, 11vh, 120px); box-sizing: border-box; text-align: center; }
.story--live .story__words { position: relative; width: min(100%, 900px); height: 0; margin-bottom: 3.4rem; font-size: clamp(2.2rem, 4.4vw, 4rem); }
.story--live .story__eyebrow { display: none; }
.story--live .story__line { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; font-size: 1em; transform: none; text-shadow: 0 2px 24px rgba(0,0,0,.85); transition: opacity .7s ease, transform .9s cubic-bezier(.2,.7,0,1); }
/* lines glide in from below and out upwards, overlapping a little, so there is never a blank moment */
.story--live .story__line[data-state="off"] { opacity: 0; transform: translateY(.4em); pointer-events: none; }
.story--live .story__line[data-state="out"] { opacity: 0; transform: translateY(-.4em); pointer-events: none; }
.story--live .story__line .w { display: inline-block; opacity: .16; filter: blur(3px); transition: opacity .55s ease, filter .55s ease; }
.story--live .story__line .w.on { opacity: 1; filter: none; }
.story--live .story__next { display: inline-flex; position: absolute; left: 50%; top: 1.3rem; white-space: nowrap; margin-left: 0; translate: -50% 0; font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif; font-size: .78rem; font-weight: 700; font-stretch: 112%; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease, color .2s ease; pointer-events: none; }
.story--live .story__next.on { opacity: 1; transform: none; pointer-events: auto; }
.story__next:hover { color: var(--ink); }
@media (max-width: 860px) {
  .story--live .story__track { height: 540vh; }
  .story--live .story__inner { padding-bottom: clamp(70px, 16vh, 140px); }
  .story--live .story__words { font-size: clamp(2rem, 8.4vw, 2.9rem); }
  .story--live .story__eyebrow { display: none; }
  .story__tag { font-size: .66rem; letter-spacing: .12em; margin-bottom: .7rem; }
  .story__list { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .story--live .story__line, .story--live .story__line .w { transition: none; filter: none; }
}

/* ---------- Journey card ---------- */
.journey { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: var(--ground); }
.journey__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: center; gap: clamp(32px, 6vw, 96px); max-width: 1240px; margin: 0 auto; padding: clamp(72px, 9vw, 130px) clamp(16px, 4vw, 48px); box-sizing: border-box; }
.journey__title { margin: 0 0 20px; font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 700; font-stretch: 112%; line-height: 1; letter-spacing: -.01em; text-transform: uppercase; }
.journey__title em { font-style: normal; color: transparent; -webkit-text-stroke: 1.2px var(--ink); }
.journey__lede { max-width: 44ch; margin: 0 0 28px; color: #D6D6D6; line-height: 1.6; }
.jcard { border: 1px solid var(--line-strong); border-radius: 18px; background: linear-gradient(180deg, #111 0%, #0a0a0a 100%); box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06); overflow: hidden; }
.jcard__head { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.jcard__avatar { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--ground); font-weight: 700; font-size: .85rem; }
.jcard__who { flex: 1; min-width: 0; }
.jcard__who b { display: block; font-size: 1.02rem; }
.jcard__who span { color: var(--ink-soft); font-size: .85rem; }
.jcard__pill { flex: none; padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.jcard__rows { margin: 0; padding: 6px 0; list-style: none; }
.jcard__row { display: grid; grid-template-columns: 108px minmax(0, 1fr) 24px; align-items: center; gap: 14px; padding: 13px 22px; border-bottom: 1px solid rgba(255,255,255,.06); }
.jcard__row:last-child { border-bottom: 0; }
.jcard__k { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: #8d8d8d; }
.jcard__v { font-size: .95rem; line-height: 1.35; }
.jcard__tick { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); color: transparent; transition: background .3s ease, border-color .3s ease, color .3s ease, transform .4s cubic-bezier(.3,1.6,.5,1); }
.jcard__tick svg { width: 12px; height: 12px; }
.jcard__row.on .jcard__tick { background: var(--ink); border-color: var(--ink); color: var(--ground); transform: scale(1.06); }
.jcard__foot { margin: 0; padding: 14px 22px 18px; border-top: 1px solid var(--line); color: #8d8d8d; font-size: .78rem; }
.jcard--anim .jcard__row { opacity: .28; transition: opacity .45s ease; }
.jcard--anim .jcard__row.on { opacity: 1; }
@media (max-width: 860px) {
  .journey__inner { grid-template-columns: 1fr; }
  .jcard__row { grid-template-columns: 86px minmax(0, 1fr) 22px; gap: 10px; padding: 12px 16px; }
  .jcard__head { padding: 16px; }
  .jcard__foot { padding: 12px 16px 16px; }
}

/* ---------- Scroll reveals (classes are only added by story.js, so nothing hides without it) ---------- */
/* section headings light up word by word; the dim state stays readable (grey on black) */
.rw-on .rw { display: inline-block; color: #6e6e6e; transform: translateY(.12em); transition: color .7s ease, transform .8s cubic-bezier(.2,.7,0,1), -webkit-text-stroke-color .7s ease; }
.rw-on em .rw { color: transparent; -webkit-text-stroke-color: #6e6e6e; }
.rw-on.rw-in .rw { color: var(--ink); transform: none; }
.rw-on.rw-in em .rw { color: transparent; -webkit-text-stroke-color: var(--ink); }
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .9s cubic-bezier(.2,.7,0,1); }
.rv.rv-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv, .rw-on .rw { transition: none; } }
