@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500&display=swap');

:root {
  --ink: #17191c;
  --ink-soft: #555a61;
  --paper: #f4f1eb;
  --white: #ffffff;
  --dark: #0d0f12;
  --dark-soft: #a9adb5;
  --line: rgba(23, 25, 28, .14);
  --line-dark: rgba(255, 255, 255, .16);
  --accent: #ff5b4f;
  --focus: #0a72ef;
  --shell: min(1180px, calc(100vw - 48px));
  --shadow-border: 0 0 0 1px rgba(23, 25, 28, .12);
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--ink); color: var(--white); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 16px; background: var(--white); box-shadow: var(--shadow-border); border-radius: 6px; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(244, 241, 235, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.nav-wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: var(--white); background: var(--ink); border-radius: 50%; font-family: var(--mono); font-size: 11px; font-weight: 500; }
.desktop-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.desktop-nav a { color: var(--ink-soft); font-size: 14px; font-weight: 500; transition: color .2s ease; }
.desktop-nav a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.lang-toggle { min-width: 56px; height: 44px; padding: 0; border: 0; background: transparent; color: #8a8e94; cursor: pointer; font-family: var(--mono); font-size: 12px; }
.lang-toggle span { padding-inline: 2px; }
.lang-toggle .lang-active { color: var(--ink); font-weight: 500; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; border-radius: 6px; font-size: 14px; font-weight: 500; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 40px; padding-inline: 16px; color: var(--white); background: var(--ink); }
.button-primary { color: var(--white); background: var(--ink); }
.button-primary:hover { background: #30343a; }

.hero { min-height: calc(100svh - 72px); padding-block: clamp(72px, 9vw, 120px) 88px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); align-items: center; gap: clamp(48px, 7vw, 110px); }

.hero-visual { position: relative; }
.portrait-frame { position: relative; z-index: 1; margin: 0; }
.portrait-img { position: relative; display: block; width: min(88%, 400px); height: auto; margin-inline: auto; border-radius: 50%; box-shadow: 0 24px 70px rgba(23, 25, 28, .16); will-change: transform; }
.hero-brief { position: relative; z-index: 2; margin-top: -58px; }

/* Motion layer (motion.js) — nothing here may hide content, because the
   stylesheet cannot know whether the module loaded. Hidden start states are
   set from JS only after Motion resolves. */
.word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; }
.word-inner { display: inline-block; will-change: transform; }

/* Drawn at its LARGEST size and scaled down at rest (0.45), never scaled up.
   A composited layer is rasterised once at its natural size, so scaling up
   stretches those pixels — visibly so at high browser zoom. Scaling down
   always resamples from more pixels than it needs, which stays crisp. */
.cursor-ring { position: fixed; z-index: 90; left: 0; top: 0; width: 58px; height: 58px; border: 3.3px solid var(--accent); border-radius: 50%; pointer-events: none; mix-blend-mode: multiply; will-change: transform; }

.section-glow { position: absolute; z-index: 0; left: 0; top: 0; width: 620px; height: 620px; background: radial-gradient(circle, rgba(255,91,79,.16) 0%, rgba(255,91,79,0) 62%); pointer-events: none; will-change: transform; }
.section-dark { position: relative; overflow: hidden; }
.section-dark > .shell { position: relative; z-index: 1; }

.timeline { position: relative; }
.timeline-rail { position: absolute; left: -22px; top: 0; width: 2px; height: 100%; background: var(--line-dark); }
.timeline-rail i { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleY(0); transform-origin: top center; will-change: transform; }
.timeline-item { position: relative; }
.timeline-node { position: absolute; left: -27px; top: 52px; width: 12px; height: 12px; border-radius: 50%; background: var(--dark); box-shadow: inset 0 0 0 2px var(--line-dark); transition: box-shadow .5s ease, background .5s ease; }
.timeline-item.is-lit .timeline-node { background: var(--accent); box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 6px rgba(255,91,79,.16); }
.eyebrow, .section-index { margin: 0; font-family: var(--mono); font-size: 11px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; color: var(--ink-soft); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #28a66a; box-shadow: 0 0 0 4px rgba(40, 166, 106, .12); }
h1 { max-width: 860px; margin: 0; font-size: clamp(48px, 5.8vw, 80px); font-weight: 600; line-height: .96; letter-spacing: -.055em; text-wrap: balance; }
.hero-intro { max-width: 690px; margin: 38px 0 0; color: var(--ink-soft); font-size: clamp(18px, 2vw, 22px); line-height: 1.55; letter-spacing: -.018em; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 42px; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--ink); }
.hero-brief { padding: 24px; background: var(--white); border-radius: 8px; box-shadow: var(--shadow-border), 0 10px 35px rgba(23, 25, 28, .05); }
.brief-topline { display: flex; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.brief-statement { margin: 28px 0 42px; font-size: 22px; line-height: 1.35; letter-spacing: -.035em; }
.brief-list { margin: 0; }
.brief-list div { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.brief-list dt { color: var(--ink-soft); font-size: 12px; }
.brief-list dd { margin: 0; font-size: 12px; font-weight: 500; text-align: right; }
.brief-list a { text-decoration: underline; text-decoration-color: #b8bbc0; text-underline-offset: 3px; }

.signal-strip { overflow: hidden; padding-block: 19px; color: var(--white); background: var(--ink); }
.signal-track { width: max-content; min-width: 100%; padding-inline: 24px; display: flex; align-items: center; justify-content: center; gap: 24px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.signal-track.is-kinetic { justify-content: flex-start; padding-inline: 0; will-change: transform; }
.signal-track i { width: 3px; height: 3px; flex: 0 0 auto; background: var(--accent); border-radius: 50%; }

.section { padding-block: clamp(96px, 12vw, 160px); }
.section-head { display: grid; grid-template-columns: minmax(180px, .42fr) minmax(0, 1fr); gap: 48px; margin-bottom: 80px; }
.section-index { padding-top: 8px; color: var(--ink-soft); }
.section-head h2 { max-width: 830px; margin: 0; font-size: clamp(38px, 5vw, 64px); font-weight: 600; line-height: 1.02; letter-spacing: -.055em; text-wrap: balance; }
.section-head > div > p { max-width: 700px; margin: 28px 0 0; color: var(--ink-soft); font-size: 18px; line-height: 1.65; }
.service-list { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 250px; gap: 32px; align-items: start; padding: 42px 0; border-bottom: 1px solid var(--line); }
.service-number { padding-top: 5px; font-family: var(--mono); font-size: 11px; }
.service-row h3 { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.25; letter-spacing: -.035em; }
.service-row p { max-width: 650px; margin: 12px 0 0; color: var(--ink-soft); line-height: 1.65; }
.service-row ul { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.service-row li { padding: 6px 10px; color: var(--ink-soft); background: rgba(255,255,255,.58); border-radius: 999px; box-shadow: 0 0 0 1px rgba(23,25,28,.1); font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.service-row { position: relative; transition: padding-left .35s cubic-bezier(.22,1,.36,1); }
.service-row::before { content: ''; position: absolute; left: 0; top: -1px; width: 0; height: 1px; background: var(--accent); transition: width .45s cubic-bezier(.22,1,.36,1); }
.service-row:hover { padding-left: 14px; }
.service-row:hover::before { width: 100%; }
.service-row:hover .service-number { color: var(--accent); }
.service-number { transition: color .3s ease; }
.timeline-item { transition: background .3s ease; }
.timeline-item:hover { background: rgba(255,255,255,.025); }

.section-dark { color: var(--white); background: var(--dark); }
.section-head-dark .section-index, .section-head-dark > div > p { color: var(--dark-soft); }
.timeline { border-top: 1px solid var(--line-dark); }
.timeline-item { display: grid; grid-template-columns: minmax(150px, .42fr) minmax(230px, .58fr) minmax(0, 1fr); gap: 48px; padding: 46px 0 52px; border-bottom: 1px solid var(--line-dark); }
.timeline-date { color: var(--dark-soft); font-family: var(--mono); font-size: 12px; }
.timeline-role h3 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -.03em; }
.timeline-role p { margin: 10px 0 0; color: var(--dark-soft); font-size: 14px; line-height: 1.5; }
.timeline-copy p { max-width: 610px; margin: 0; color: #d3d5d9; font-size: 16px; line-height: 1.7; }
.timeline-item.current .timeline-date { color: var(--accent); }
.experience-foot { display: grid; grid-template-columns: minmax(180px, .42fr) 1fr; gap: 48px; align-items: end; padding-top: 72px; }
.experience-number { margin: 0; font-size: clamp(80px, 12vw, 160px); font-weight: 600; line-height: .75; letter-spacing: -.075em; }
.experience-number .plus { color: var(--accent); }
.experience-foot > p:last-child { max-width: 430px; margin: 0; color: var(--dark-soft); font-size: 20px; line-height: 1.4; }

/* ---- Migration risk map ----
   Default (no JS): a plain ordered list of risks, fully readable. The plot is
   decoration that only earns its place once motion.js can position the points. */
.risk-map { display: grid; gap: clamp(40px, 5vw, 72px); }
.risk-plot { display: none; }
.risk-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.risk-item { padding: 30px 0; border-bottom: 1px solid var(--line); }
.risk-item h3 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.03em; }
.risk-item > p { max-width: 620px; margin: 10px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.risk-fix { display: grid; gap: 4px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.risk-fix span:first-child { color: var(--accent); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.risk-fix span:last-child { color: var(--ink); font-size: 15px; line-height: 1.6; }

.motion-ready .risk-map { grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); align-items: start; }
.motion-ready .risk-plot { display: block; position: sticky; top: 120px; }
.risk-svg { width: 100%; height: auto; display: block; overflow: visible; }
.risk-axis { stroke: var(--ink); stroke-width: 1.5; }
.risk-grid { stroke: var(--line); stroke-width: 1; }
.risk-danger { fill: rgba(255, 91, 79, .09); }
.risk-quad { fill: var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.risk-axis-x { display: flex; justify-content: space-between; margin: 10px 0 0 60px; color: var(--ink-soft); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.risk-axis-y { margin: 0; color: var(--ink-soft); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg) translateY(50%); position: absolute; left: 8px; top: 34%; }
.risk-plot { position: relative; }

.risk-point { cursor: pointer; }
.risk-point circle { fill: var(--paper); stroke: var(--ink); stroke-width: 1.6; transition: fill .3s ease, stroke .3s ease, r .3s ease; }
.risk-point.is-critical circle { stroke: var(--accent); }
.risk-point text { fill: var(--ink); font-family: var(--mono); font-size: 11px; font-weight: 500; }
.risk-point.is-active circle { fill: var(--accent); stroke: var(--accent); }
.risk-point.is-active text { fill: var(--white); }

.motion-ready .risk-item { cursor: pointer; opacity: .45; transition: opacity .35s ease; }
.motion-ready .risk-item.is-active { opacity: 1; }
.motion-ready .risk-item .risk-fix { display: none; }
.motion-ready .risk-item.is-active .risk-fix { display: grid; }
.motion-ready .risk-item::before { content: attr(data-num); float: left; margin-right: 14px; color: var(--ink-soft); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; padding-top: 6px; }

/* ---- Delivery pipeline ----
   Default (no JS): every stage renders stacked and fully readable. The sticky
   scrub is layered on only once motion.js reports in via .motion-ready. */
.pipeline { padding-bottom: clamp(96px, 12vw, 160px); }
.pipeline-grid { display: grid; grid-template-columns: minmax(200px, .34fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: start; }

.pipeline-nav { display: none; margin: 0; padding: 0; list-style: none; }
.pipeline-nav li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 11px 0; color: var(--ink-soft); font-size: 14px; line-height: 1.35; opacity: .34; transition: opacity .45s ease, color .45s ease; }
.pipeline-nav li span:first-child { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; padding-top: 3px; }
.pipeline-nav li.is-active { opacity: 1; color: var(--ink); }
.pipeline-nav li.is-done { opacity: .62; }

.pipeline-panel { padding-block: 48px; border-top: 1px solid var(--line); }
.pipeline-step { margin: 0 0 18px; color: var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.pipeline-panel h3 { margin: 0; font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; line-height: 1.08; letter-spacing: -.045em; }
.pipeline-panel > p { max-width: 560px; margin: 18px 0 0; color: var(--ink-soft); font-size: 17px; line-height: 1.65; }
.pipeline-art { width: 100%; max-width: 460px; height: auto; margin-top: 34px; display: block; }

/* Artefact primitives — hairlines and one coral accent, same law as the rest */
.art-line { fill: none; stroke: var(--ink); stroke-width: 1.5; opacity: .85; }
.art-alt { stroke: var(--ink-soft); }
.art-hair { stroke: var(--ink-soft); stroke-width: 1.5; opacity: .5; }
.art-fill { fill: var(--accent); }
.art-node { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.art-node-hero { fill: var(--accent); stroke: var(--accent); }
.art-tick { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.art-branch { fill: none; stroke: var(--accent); stroke-width: 1.8; }
.art-wave { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.art-alert { fill: none; stroke: var(--accent); stroke-width: 2; }
.art-dot { fill: var(--ink-soft); opacity: .35; }
.art-dot-fail { fill: var(--accent); opacity: 1; }
.art-row-fail { stroke: var(--accent); }

/* In scrub mode one stage owns the whole viewport, so the type and the diagram
   scale with viewport height instead of sitting small in a mostly empty box. */
.motion-ready .pipeline-nav { display: block; position: sticky; top: 140px; }
.motion-ready .pipeline-nav li { padding: clamp(10px, 1.5svh, 16px) 0; font-size: 15px; }
.motion-ready .pipeline-nav li span:first-child { font-size: 11px; }
.motion-ready .pipeline-sticky { position: sticky; top: 0; min-height: 100svh; display: flex; align-items: center; padding-block: clamp(56px, 8svh, 96px); }
.motion-ready .pipeline-panels { position: relative; min-height: min(760px, calc(100svh - clamp(112px, 16svh, 192px))); }
.motion-ready .pipeline-panel { position: absolute; inset: 0; padding-block: 0; border-top: 0; opacity: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: center; }
.motion-ready .pipeline-panel.is-active { pointer-events: auto; }
.motion-ready .pipeline-step { margin-bottom: clamp(14px, 2svh, 24px); font-size: 12px; }
.motion-ready .pipeline-panel h3 { font-size: clamp(34px, 5.4svh, 62px); }
.motion-ready .pipeline-panel > p { max-width: 54ch; margin-top: clamp(16px, 2.4svh, 28px); font-size: clamp(17px, 2.3svh, 23px); line-height: 1.55; }
.motion-ready .pipeline-art { width: min(100%, 720px, 52svh); max-width: none; margin-top: clamp(28px, 5svh, 56px); }

.approach-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; box-shadow: var(--shadow-border); border-radius: 8px; overflow: hidden; }
.approach-grid li { min-height: 350px; display: flex; flex-direction: column; padding: 28px; background: rgba(255,255,255,.55); border-right: 1px solid var(--line); }
.approach-grid li:last-child { border: 0; }
.approach-grid li > span { font-family: var(--mono); font-size: 11px; }
.approach-grid h3 { margin: auto 0 14px; font-size: 23px; line-height: 1.2; letter-spacing: -.035em; }
.approach-grid p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.65; }

.principles { padding-bottom: clamp(96px, 12vw, 160px); }
.principles blockquote { max-width: 1020px; margin: 0; font-size: clamp(36px, 5.5vw, 72px); font-weight: 500; line-height: 1.05; letter-spacing: -.06em; }
.principle-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; margin-top: 76px; padding-top: 28px; border-top: 1px solid var(--line); }
.principle-notes p { margin: 0; }
.principle-notes strong, .principle-notes span { display: block; }
.principle-notes strong { margin-bottom: 8px; font-size: 14px; }
.principle-notes span { color: var(--ink-soft); font-size: 14px; line-height: 1.55; }

.contact-section { padding-block: clamp(100px, 13vw, 180px); color: var(--white); background: var(--accent); }
.contact-section .section-index { color: rgba(255,255,255,.72); }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(72px, 12vw, 170px); }
.contact-grid h2 { max-width: 700px; margin: 26px 0 0; font-size: clamp(48px, 7vw, 88px); font-weight: 600; line-height: .96; letter-spacing: -.065em; }
.contact-copy { align-self: end; }
.contact-copy > p { max-width: 560px; margin: 0 0 36px; font-size: 18px; line-height: 1.6; }

.contact-form { display: grid; gap: 18px; margin-bottom: 44px; }
.form-field { display: grid; gap: 8px; }
.form-field label { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.form-field input, .form-field textarea { width: 100%; padding: 14px 16px; color: var(--white); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); border-radius: 6px; font: inherit; font-size: 15px; transition: border-color .25s ease, background .25s ease; }
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(255,255,255,.55); }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--white); background: rgba(255,255,255,.18); }
.form-field textarea { resize: vertical; min-height: 110px; }
.form-gotcha { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-submit { justify-self: start; min-width: 200px; color: var(--accent); background: var(--white); border: 0; cursor: pointer; }
.form-submit:hover { background: #fff3f1; }
.form-submit[disabled] { opacity: .6; cursor: wait; transform: none; }
.form-status { min-height: 20px; margin: 0; font-size: 14px; }
.form-status.is-error { color: #ffd9d5; }

.floating-cta { position: fixed; z-index: 60; right: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; color: var(--white); background: var(--ink); border-radius: 999px; box-shadow: 0 14px 40px rgba(13,15,18,.3), 0 0 0 1px rgba(255,255,255,.08); font-size: 14px; font-weight: 500; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .4s ease, transform .4s cubic-bezier(.22,1,.36,1); }
.floating-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.floating-cta:hover { transform: translateY(-2px); }
.floating-cta[hidden] { display: none; }
.contact-email { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 18px; border-top: 1px solid rgba(255,255,255,.5); border-bottom: 1px solid rgba(255,255,255,.5); font-size: clamp(18px, 2vw, 24px); font-weight: 500; }
.contact-email:hover span { transform: translate(3px,-3px); }
.contact-email span { transition: transform .2s ease; }
.contact-links { display: flex; justify-content: space-between; gap: 24px; margin-top: 24px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
.contact-links a { text-decoration: underline; text-underline-offset: 4px; }
.site-footer { padding-block: 26px; color: #d5d7da; background: var(--dark); border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 24px; align-items: center; }
.footer-grid p, .footer-grid a, .footer-privacy { margin: 0; font-size: 11px; }
.footer-grid p:nth-child(2) { color: var(--dark-soft); text-align: center; }
.footer-privacy { padding: 0; color: var(--dark-soft); background: transparent; border: 0; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.footer-privacy:hover { color: var(--white); }

.analytics-consent { position: fixed; z-index: 80; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 24px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; overflow-y: auto; color: var(--ink); background: var(--white); border-radius: 8px; box-shadow: 0 18px 70px rgba(13, 15, 18, .28), var(--shadow-border); transform: translateX(-50%); }
.analytics-consent[hidden] { display: none; }
.consent-label { margin: 0 0 9px; color: var(--ink-soft); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.analytics-consent h2 { margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: -.035em; }
.analytics-consent #consent-body { max-width: 520px; margin: 10px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.consent-policy { display: inline-block; margin-top: 10px; color: var(--ink-soft); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; align-items: center; gap: 10px; }
.consent-actions .button { min-height: 42px; white-space: nowrap; cursor: pointer; border: 0; }
.consent-decline { color: var(--ink); background: #ece9e3; }
.consent-decline:hover { background: #dedad2; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; align-items: start; gap: 48px; }
  .hero-visual { width: 100%; max-width: 620px; margin-inline: auto; }
  .portrait-img { width: min(78%, 360px); margin-inline: auto; }
  .hero-brief { max-width: 620px; margin-inline: auto; margin-top: -48px; }
  .service-row { grid-template-columns: 52px 1fr; }
  .service-row ul { grid-column: 2; justify-content: flex-start; }
  .timeline-item { grid-template-columns: 140px 1fr; }
  .timeline-copy { grid-column: 2; }
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-grid li:nth-child(2) { border-right: 0; }
  .approach-grid li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-copy { max-width: 700px; }
}

@media (max-width: 700px) {
  :root { --shell: min(100% - 32px, 1180px); }
  .nav-wrap { height: 64px; }
  .brand-name, .button-small { display: none; }
  .nav-actions { gap: 0; }
  .hero { padding-block: 56px 72px; gap: 40px; }
  .portrait-img { width: min(74%, 300px); }
  .hero-brief { margin-top: -36px; }
  .floating-cta { right: 14px; bottom: 14px; min-height: 48px; padding: 0 18px; font-size: 13px; }
  h1 { font-size: clamp(47px, 14vw, 66px); }
  .hero-intro { margin-top: 28px; font-size: 18px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 16px; }
  .hero-actions .button { width: 100%; }
  .text-link { align-self: flex-start; }
  .hero-brief { padding: 20px; }
  .brief-statement { margin-bottom: 32px; }
  .section { padding-block: 90px; }
  .section-head { grid-template-columns: 1fr; gap: 28px; margin-bottom: 58px; }
  .section-index { padding: 0; }
  .section-head h2 { font-size: 40px; }
  .section-head > div > p { font-size: 16px; }
  .service-row { grid-template-columns: 34px 1fr; gap: 16px; padding-block: 32px; }
  .service-row h3 { font-size: 22px; }
  .service-row p { font-size: 14px; }
  .timeline-item { grid-template-columns: 1fr; gap: 14px; padding-block: 34px; }
  .timeline-copy { grid-column: 1; }
  .experience-foot { grid-template-columns: 1fr; gap: 36px; }
  .experience-number { font-size: 100px; }
  .approach-grid { grid-template-columns: 1fr; }
  .approach-grid li { min-height: 270px; border-right: 0; border-bottom: 1px solid var(--line); }
  .approach-grid li:nth-child(3) { border-bottom: 1px solid var(--line); }
  .principles blockquote { font-size: 42px; }
  .principle-notes { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid h2 { font-size: 52px; }
  .contact-copy > p { font-size: 16px; }
  .contact-email { font-size: 17px; overflow-wrap: anywhere; }
  .contact-links { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr auto; }
  .footer-grid p:nth-child(2) { display: none; }
  .footer-privacy { justify-self: start; }
  .analytics-consent { right: 16px; left: 16px; bottom: max(12px, env(safe-area-inset-bottom)); width: auto; max-height: calc(100dvh - 24px); padding: 18px; grid-template-columns: 1fr; gap: 16px; transform: none; }
  .consent-actions { align-items: stretch; flex-direction: column; }
  .consent-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .cursor-ring, .section-glow, .timeline-rail, .timeline-node { display: none; }
}

@media (max-width: 980px) {
  /* The plot needs width to be readable, so on narrow screens the risk map
     falls back to the plain list — which is the no-JS layout anyway. */
  .motion-ready .risk-map { grid-template-columns: 1fr; }
  .motion-ready .risk-plot { display: none; }
  .motion-ready .risk-item { opacity: 1; cursor: default; }
  .motion-ready .risk-item .risk-fix { display: grid; }

  /* Sticky scrubbing fights touch momentum, so below the desktop breakpoint
     the pipeline falls back to the plain stacked reading order. */
  .pipeline-grid { grid-template-columns: 1fr; }
  .motion-ready .pipeline-nav { display: none; }
  .motion-ready .pipeline-sticky { position: static; min-height: 0; padding-block: 0; display: block; }
  .motion-ready .pipeline-panels { min-height: 0; }
  .motion-ready .pipeline-panel { position: static; opacity: 1; padding-block: 44px; border-top: 1px solid var(--line); pointer-events: auto; display: block; }
  /* The viewport-scaled type only makes sense while one stage owns the screen. */
  .motion-ready .pipeline-step { margin-bottom: 18px; font-size: 11px; }
  .motion-ready .pipeline-panel h3 { font-size: clamp(28px, 3.4vw, 42px); }
  .motion-ready .pipeline-panel > p { max-width: 560px; margin-top: 18px; font-size: 17px; line-height: 1.65; }
  .pipeline-art, .motion-ready .pipeline-art { width: 100%; max-width: 400px; margin-top: 34px; }
}

@media (pointer: coarse), (max-width: 980px) {
  .cursor-ring, .section-glow { display: none; }
  .timeline-rail { left: -14px; }
  .timeline-node { left: -19px; top: 40px; width: 10px; height: 10px; }
}
