/* Oxblood / cream / charcoal / brass. Token names kept so the site can be re-branded in one place. */
:root {
  --paper: #F4EBDB; --ivory: #E9DCC4; --ink: #1F1B1A; --ink-2: #332D2B;
  --mute: #6F625C; --mute-d: #C9B9A6;
  --line: rgba(31,27,26,.16); --line-d: rgba(244,235,219,.22);
  --green: #5B1F24; --green-2: #7C2C32;   /* "green" token = oxblood on this site */
  --brass: #C49A5C; --brass-l: #E0BE86;
  --sage: #94A584;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-size: 1.125rem; }
h1, h2, h3 { font-weight: 400; margin: 0; }
section { position: relative; }
.label { font-size: .8125rem; }

/* Header: solid bar so it reads on every colour block */
.mh-nav { mix-blend-mode: normal; background: var(--ink); color: var(--paper); padding: 14px var(--gutter); }

/* ---- Hero: full-bleed oxblood opening frame ---- */
.hero { --fig: clamp(3.2rem, 13vw, 13rem); background: var(--green); color: var(--paper); min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(20px, 4.5vh, 48px); padding: 100px var(--gutter) 120px; text-align: center; overflow: hidden; }
.hero h1 { font-family: var(--serif); font-size: clamp(2.7rem, 7.2vw, 7.2rem); line-height: .98; letter-spacing: -.02em; }
.hero h1 span { display: inline-block; }
.hero h1 .h1b { font-style: italic; color: var(--brass-l); }
.slot { height: var(--fig); width: 100%; }
.big { position: fixed; z-index: 6; left: 0; top: 0; transform-origin: 50% 50%; font-family: var(--mono); font-size: var(--fig); font-weight: 400; line-height: 1; letter-spacing: -.05em; color: var(--paper); white-space: nowrap; font-feature-settings: "tnum" 1; will-change: transform; transition: opacity .6s var(--ease-out); pointer-events: none; }
.big.gone { opacity: 0; }
.dg { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; }
.dg .st { display: block; will-change: transform; }
.dg .st i { display: block; height: 1em; line-height: 1; font-style: normal; }
.rm .big { position: absolute; left: 50%; top: 0; transform: translateX(-50%); }
.rm .slot { position: relative; }

.parts { display: flex; width: min(100%, 1040px); height: 92px; }
.part { flex: var(--w) 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; padding: 6px 4px; }
.part b { font: 500 1rem var(--sans); } .part span { font: 500 1.2rem var(--mono); }
.part:first-child { border-radius: 10px 0 0 10px; } .part:last-child { border-radius: 0 10px 10px 0; }
.p-costs { background: var(--ink-2); color: var(--paper); } .p-pay { background: var(--sage); color: var(--ink); }
.p-tax { background: var(--brass); color: var(--ink); } .p-left { background: var(--paper); color: var(--green); }

.hint { position: absolute; right: var(--gutter); bottom: 40px; display: inline-flex; align-items: center; gap: 14px; font: .8125rem var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--paper); }
.hint i { display: block; width: 64px; height: 1px; background: var(--brass-l); transition: width .5s var(--ease-out); }
.hint:hover i { width: 96px; }
.replay:focus-visible, .mh-btn:focus-visible, .hint:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* ---- Story: oxblood section, cream diagram panel ---- */
.story { background: var(--green); color: var(--paper); padding: 20px 0 0; border-top: 1px solid var(--line-d); }
.story .label { color: var(--brass-l); }
.story-head { padding: 40px 0 0; }
.story-head h2 { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1; margin-top: 10px; }
.story-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4vw; }
.card-col { order: 2; }
.steps { order: 1; padding-bottom: 20vh; }
.card { position: sticky; top: 14vh; height: 76vh; max-height: 740px; background: var(--ivory); color: var(--ink); border-radius: var(--radius); display: flex; flex-direction: column; padding: 20px 24px 14px; margin-top: 4vh; box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); }
.card .label { color: var(--mute); }
.card svg { flex: 1 1 auto; min-height: 0; width: 100%; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.dots { display: flex; gap: 7px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(31,27,26,.2); transition: background .4s, transform .4s var(--ease-out); }
.dots i.on { background: var(--green); transform: scale(1.3); }
.replay { font: 500 .8125rem var(--mono); letter-spacing: .08em; text-transform: uppercase; background: none; border: 1px solid rgba(31,27,26,.3); color: var(--ink); border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: background .3s, color .3s; }
.replay:hover { background: var(--ink); color: var(--paper); }

.step { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; max-width: 30rem; transition: opacity .8s var(--ease-out); }
.js .step { opacity: .28; }
.js .step.on { opacity: 1; }
.step h3 { font-family: var(--serif); font-size: clamp(2.2rem, 3.4vw, 3.4rem); line-height: 1; letter-spacing: -.01em; margin: 10px 0 16px; }
.step .line { margin: 0; font-size: var(--fs-lead); color: rgba(244,235,219,.88); max-width: 26ch; }
.step .label { margin: 0; }

/* SVG parts */
.base { stroke: rgba(31,27,26,.25); stroke-width: 1.5; fill: none; }
.rule { stroke: rgba(31,27,26,.35); stroke-width: 1; fill: none; }
.f-green { fill: var(--green); } .f-ink2 { fill: var(--ink-2); } .f-sage { fill: var(--sage); } .f-brass { fill: var(--brass); }
.ghost { fill: var(--brass-l); stroke: var(--ink); stroke-width: 1; }
.pill { fill: var(--paper); stroke: var(--brass); stroke-width: 2; }
.jar { fill: none; stroke: rgba(31,27,26,.45); stroke-width: 2; }
.pg { fill: var(--paper); stroke: rgba(31,27,26,.3); stroke-width: 2; }
svg text { font-family: var(--sans); }
svg .mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }
svg .lab { font-family: var(--mono); letter-spacing: .06em; fill: var(--mute); }
svg .serif-t { font-family: var(--serif); letter-spacing: -.01em; }
svg .t-paper { fill: var(--paper); } svg .t-ink { fill: var(--ink); }

/* ---- Services / stats (cream) ---- */
.services { padding: 16vh 0 0; }
.services h2 { font-family: var(--serif); font-size: var(--fs-h2); line-height: .98; margin-bottom: 40px; color: var(--green); }
.svc-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.svc { padding: 24px 24px 8px 0; }
.svc h3 { font: 600 1.2rem var(--sans); margin-bottom: 8px; }
.svc p { margin: 0; color: var(--ink-2); font-size: 1.0625rem; }
.stats { padding: 14vh 0; }
.stats ul { list-style: none; margin: 0; padding: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats b { display: block; font: 400 clamp(2.8rem, 5vw, 4.6rem)/1 var(--serif); color: var(--green); margin-bottom: 8px; }
.stats span { color: var(--ink-2); font-size: 1.0625rem; display: block; max-width: 18ch; }

/* ---- Contact (charcoal) ---- */
.contact { padding: 16vh 0 0; }
.contact h2 { font-family: var(--serif); font-size: var(--fs-h2); line-height: .98; margin-bottom: 20px; }
.contact h2 em { color: var(--brass); }
.contact .line { font-size: var(--fs-lead); color: var(--mute-d); max-width: 30ch; margin: 0 0 32px; }
.contact .mh-btn { background: var(--brass); color: var(--ink); }
.contact .mh-btn:hover { background: var(--brass-l); }
.details { display: flex; flex-wrap: wrap; gap: 24px 56px; margin: 64px 0 0; padding-top: 28px; }
.details dt { margin-bottom: 4px; } .details dd { margin: 0; font-size: 1.0625rem; max-width: 22ch; }
.details a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); padding-bottom: 2px; }
.details a:hover { background-size: 100% 1px; }
.foot { margin-top: 56px; padding: 22px 0 110px; font: .85rem var(--mono); color: var(--mute-d); }

/* Fades + hairlines (JS only) */
.js .fade { opacity: 0; transform: translateY(10px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
.js .fade.in { opacity: 1; transform: none; }
.js .fade:nth-child(2) { transition-delay: .08s; } .js .fade:nth-child(3) { transition-delay: .16s; }
.js .fade:nth-child(4) { transition-delay: .24s; } .js .fade:nth-child(5) { transition-delay: .32s; }
.draw { position: relative; }
.draw::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); transform-origin: left; }
.stats .draw::before { background: var(--line); }
.details.draw::before { background: var(--line-d); }
.js .draw::before { transform: scaleX(0); transition: transform 1.6s var(--ease-out); }
.js .draw.in::before { transform: scaleX(1); }
.mh-btn .arr { display: inline-block; transition: transform .5s var(--ease-out); }
.mh-btn:hover .arr { transform: translateY(3px); }

@media (max-width: 960px) {
  .svc-row { grid-template-columns: repeat(2, 1fr); }
  .svc { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .stats ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .hero { --fig: clamp(3rem, 17vw, 7rem); padding: 92px var(--gutter) 96px; gap: 22px; }
  .hero h1 { font-size: clamp(2.6rem, 11.5vw, 4.4rem); }
  .hero h1 span { display: block; }
  .parts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; height: auto; width: min(100%, 420px); }
  .part { padding: 12px 6px; border-radius: 10px !important; }
  .part b { font-size: 1rem; } .part span { font-size: 1.05rem; }
  .part span { font-weight: 500; }
  .hint { position: static; margin-top: 4px; }
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .steps { order: 2; padding-bottom: 14vh; }
  .card-col { order: 0; position: sticky; top: 62px; z-index: 5; background: var(--green); padding: 8px 0 10px; }
  .card { position: static; height: auto; margin-top: 0; padding: 10px 8px 8px; }
  .card svg { flex: none; aspect-ratio: 660 / 520; height: auto; }
  .step { min-height: 56vh; }
  .step h3 { font-size: 2rem; margin: 6px 0 10px; }
  .services { padding-top: 12vh; } .stats { padding: 10vh 0; } .contact { padding-top: 12vh; }
}
@media (max-width: 520px) { .svc-row { grid-template-columns: 1fr; } .dots { display: none; } }

/* Reduced motion: each step shows its own final diagram beside its text */
.rm .card-col { display: none; }
.rm .story-grid { display: block; }
.rm .steps { padding: 0; }
.rm .step { max-width: none; min-height: 0; opacity: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4vw; align-items: center; padding: 40px 0; border-bottom: 1px solid var(--line-d); }
.rm .step .txt { grid-column: 1; }
.rm .step .fig { grid-column: 2; grid-row: 1; background: var(--ivory); border-radius: var(--radius); padding: 16px; }
.rm .step .fig svg { width: 100%; height: auto; }
@media (max-width: 820px) { .rm .step { grid-template-columns: 1fr; } .rm .step .fig { grid-column: 1; grid-row: auto; } }
