:root {
  --paper: #F4EBDD; --ivory: #E8DAC2; --ink: #0F3D3E; --ink-2: #17504F;
  --mute: #6E6A5B; --mute-d: #A3BDB6;
  --line: rgba(15,61,62,.16); --line-d: rgba(244,235,221,.18);
  --green: #A9552B; --green-2: #E39A6A; --brass: #C9824F; --brass-l: #EDB88F;
  --copper: #B5653A; --copper-d: #9F512A;
}
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { overflow-x: hidden; }

.band {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center;
  min-height: 100vh; padding: 110px max(var(--gutter), calc((100% - var(--max)) / 2)) 60px;
}
.band + .band { padding-top: 60px; min-height: 92vh; }
.text { max-width: 560px; }
.text h1, .text h2 { margin: 18px 0 22px; font-size: clamp(2.8rem, 5.4vw, 5.4rem); }
.text h2 { font-size: clamp(2.5rem, 4.6vw, 4.6rem); }
.text em { color: var(--green); }
.lede { font-size: var(--fs-lead); line-height: 1.45; margin: 0 0 30px; max-width: 30ch; color: inherit; opacity: .84; }
.label { margin: 0; }

.panel {
  position: relative; border-radius: 28px; padding: clamp(24px, 3vw, 44px); min-height: 540px;
  display: flex; flex-direction: column; justify-content: center; overflow: hidden;
}
.p-ivory { background: var(--ivory); color: var(--ink); }
.p-ink { background: var(--ink); color: var(--paper); }
.p-ink .label { color: var(--mute-d); }
.replay {
  position: absolute; top: 16px; right: 16px; font: 500 .72rem var(--mono); letter-spacing: .08em; color: inherit; opacity: .55;
  background: none; border: 1px solid currentColor; border-radius: 999px; padding: 7px 12px; cursor: pointer; z-index: 3;
  transition: opacity .3s;
}
.replay:hover, .replay:focus-visible { opacity: 1; }

/* CHAT */
.chat { display: flex; flex-direction: column; gap: 14px; padding-top: 16px; }
.row { display: flex; gap: 10px; align-items: flex-end; max-width: 88%; position: relative; }
.row.client { align-self: flex-end; }
.row.partner { align-self: flex-start; }
.row .col { position: relative; min-height: 46px; }
.bubble { padding: 14px 18px; border-radius: 20px; font-size: 1.05rem; line-height: 1.4; }
.client .msg { background: var(--green); color: var(--paper); border-bottom-right-radius: 6px; }
.partner .msg { background: var(--ink-2); border: 1px solid var(--line-d); border-bottom-left-radius: 6px; }
.av { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--brass); color: var(--ink); display: grid; place-items: center; font-size: .8rem; font-weight: 500; }
.dots { display: none; gap: 5px; align-items: center; height: 46px; position: absolute; left: 0; bottom: 0; background: var(--ink-2); border: 1px solid var(--line-d); }
.client .dots { left: auto; right: 0; background: var(--green-2); border: 0; }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--mute-d); animation: dot 1s infinite ease-in-out; }
.client .dots span { background: var(--paper); }
.dots span:nth-child(2) { animation-delay: .15s; } .dots span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.stamp { font-size: .78rem; color: var(--mute-d); display: flex; gap: 10px; align-items: center; }
.stamp.s1 { align-self: flex-end; }
.pill { background: rgba(46,125,105,.22); color: var(--brass-l); padding: 5px 11px; border-radius: 999px; }
.js .row .msg, .js .stamp { opacity: 0; transform: translateY(8px); }
.js .row .msg.in, .js .stamp.in { opacity: 1; transform: none; transition: opacity .6s, transform .7s var(--ease-out); }
.js .row .msg { position: relative; }
.js .row.hold .msg { position: absolute; left: 0; bottom: 0; }
.row.show-dots .dots { display: flex; }

/* CALC */
.calc { display: flex; flex-direction: column; gap: 22px; }
.slider { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: baseline; }
.slider output { font-size: 1.05rem; color: var(--green); }
.slider input { grid-column: 1 / -1; width: 100%; accent-color: var(--green); height: 28px; margin: 0; }
.result { border-top: 1px solid var(--line); padding-top: 18px; }
.big { margin: 4px 0 0; font-size: clamp(3.4rem, 6vw, 5.4rem); line-height: 1; color: var(--green); }
.big small { font-size: 1rem; color: var(--mute); }
.sub { margin: 6px 0 0; font-size: .85rem; color: var(--mute); }
.days { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; }
.days span { aspect-ratio: 1; border-radius: 6px; border: 1px solid var(--line); display: grid; place-items: center; font: .6rem var(--mono); color: var(--mute); transition: background .4s, color .4s, border-color .4s; }
.days span.on { background: var(--green); color: var(--paper); border-color: var(--green); }
.days span.mark { outline: 2px solid var(--brass); outline-offset: 2px; }
.capt { font-size: .82rem; margin: 14px 0 0; display: flex; gap: 8px; align-items: center; color: var(--green); }
.capt .dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--brass); }
.illus { align-self: flex-start; font-size: .68rem; }

/* IRS */
.env-stage { display: grid; place-items: center; height: 200px; margin-bottom: 28px; perspective: 700px; }
.envelope { position: relative; width: 220px; height: 140px; margin-top: 50px; }
.env-back, .env-front { position: absolute; inset: 0; border-radius: 8px; }
.env-back { background: #0A2C2D; }
.env-front { background: linear-gradient(135deg, transparent 49.5%, rgba(246,243,236,.12) 50%) , linear-gradient(225deg, transparent 49.5%, rgba(246,243,236,.12) 50%), #17504F; clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%); border-radius: 8px; }
.flap { position: absolute; left: 0; right: 0; top: 0; height: 74px; background: #1E6160; clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transition: transform .9s var(--ease-inout), z-index 0s .45s; z-index: 4; }
.envelope.open .flap { transform: rotateX(180deg); z-index: 1; }
.letter { position: absolute; left: 14px; right: 14px; top: 8px; height: 120px; background: var(--paper); color: var(--ink); border-radius: 6px; padding: 12px; display: flex; flex-direction: column; gap: 8px; z-index: 2; transition: transform 1s .5s var(--ease-out); }
.letter b { font-size: .72rem; font-weight: 500; }
.letter i { height: 4px; border-radius: 2px; background: rgba(15,20,23,.16); display: block; }
.letter i.short { width: 55%; }
.env-front { z-index: 3; }
.envelope.open .letter { transform: translateY(-62px); }
.tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.tl::before { content: ""; position: absolute; left: 8%; right: 8%; top: 7px; height: 2px; background: var(--line-d); }
.tl::after { content: ""; position: absolute; left: 8%; top: 7px; height: 2px; width: 84%; background: var(--green-2); transform-origin: left; transform: scaleX(var(--p, 1)); transition: transform 1.6s var(--ease-inout); }
.tl li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; position: relative; z-index: 1; }
.tl .node { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 2px solid var(--mute-d); transition: background .4s, border-color .4s; }
.tl li.on .node { background: var(--green-2); border-color: var(--green-2); }
.tl .d { font-size: .8rem; color: var(--brass-l); }
.tl b { font-weight: 500; font-size: 1.05rem; }
.js .tl li { opacity: .35; transition: opacity .5s; } .js .tl li.on { opacity: 1; }
.calm { text-align: center; margin: 30px 0 0; font-size: 1.1rem; color: var(--brass-l); }
.js .calm { opacity: 0; transform: translateY(8px); transition: opacity .8s, transform .8s var(--ease-out); } .js .calm.on { opacity: 1; transform: none; }

/* SERVICES */
.svc { list-style: none; margin: 8px 0 0; padding: 0; }
.svc li { padding: 14px 0 14px 18px; border-top: 1px solid var(--line); position: relative; transition: color .4s; }
.svc li:last-child { border-bottom: 1px solid var(--line); }
.svc li::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--line); transition: background .4s, transform .4s; }
.svc li.on::before { background: var(--green); transform: scale(1.3); }
.svc b { display: block; font-weight: 500; font-size: 1.15rem; }
.svc span { color: var(--mute); font-size: 1rem; }
.ring { width: 100%; max-width: 520px; margin: 0 auto; }
.ring text { font-family: var(--sans); font-size: 15px; fill: var(--ink); }
.ring .n { font-family: var(--mono); font-size: 13px; fill: var(--mute); transition: fill .4s; }
.ring .spoke { stroke: var(--line); stroke-width: 1.5; transition: stroke .5s; }
.ring .orbit { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 6; }
.ring .nd circle { fill: var(--paper); stroke: var(--line); stroke-width: 1.5; transition: fill .5s, stroke .5s; }
.ring .nd.on circle { fill: var(--green); stroke: var(--green); }
.ring .nd.on .n { fill: var(--paper); }
.ring .nd.on text.l { font-weight: 600; fill: var(--green); }
.ring .spoke.on { stroke: var(--green); }
.ring .you circle { fill: var(--ink); }
.ring .you text { fill: var(--paper); font-family: var(--serif); font-size: 26px; font-style: italic; }

/* CONTACT */
.contact { align-items: flex-start; gap: 6px; }
.contact .label { margin-top: 18px; }
.big-link { font-size: clamp(1.15rem, 2.2vw, 1.9rem); text-decoration: none; border-bottom: 1px solid var(--line-d); padding-bottom: 4px; word-break: break-word; }
.big-link:hover { border-color: var(--brass-l); }
.addr { margin: 0 0 20px; font-size: 1.1rem; max-width: 26ch; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 28px var(--gutter) 90px; font-size: .85rem; color: var(--mute); border-top: 1px solid var(--line); max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; }

@media (max-width: 860px) {
  .band, .band + .band { grid-template-columns: 1fr; min-height: 0; padding-top: 90px; padding-bottom: 36px; }
  .band + .band { padding-top: 36px; }
  .text h1, .text h2 { font-size: clamp(2.7rem, 12vw, 3.6rem); }
  .panel { min-height: 0; padding: 24px 20px; border-radius: 22px; }
  .lede { max-width: none; }
  .doc { width: 112px; margin-left: -56px; height: 82px; }
  .pile { height: 170px; }
  .folder .label { font-size: .58rem; letter-spacing: 0; }
  .days { grid-template-columns: repeat(10, 1fr); gap: 4px; }
  .env-stage { height: 190px; }
  .tl .d { font-size: .72rem; } .tl b { font-size: .95rem; }
  .replay { top: 10px; right: 10px; }
  .chat { padding-top: 34px; } .calc { padding-top: 26px; } .env-stage { margin-top: 20px; } .ring { margin-top: 20px; } .pile { margin-top: 24px; } .contact { padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .doc, .letter, .flap { transition: none !important; }
}

/* quiet touches */
.js .rv { opacity: 0; transform: translateY(10px); }
.js .seen .rv { opacity: 1; transform: none; transition: opacity 1s var(--ease-out) var(--d, 0s), transform 1s var(--ease-out) var(--d, 0s); }
.rule { display: block; height: 1px; width: 72px; background: var(--brass); margin-bottom: 22px; transform-origin: left; }
.js .rule { transform: scaleX(0); }
.js .seen .rule { transform: none; transition: transform 1.1s var(--ease-out); }
.mh-btn::after { content: "\2192"; display: inline-block; transition: transform .5s var(--ease-out); }
.mh-btn:hover::after { transform: translateX(4px); }
.big-link { background: linear-gradient(var(--brass-l), var(--brass-l)) left bottom / 0 1px no-repeat; border-bottom: 0; transition: background-size .6s var(--ease-out); padding-bottom: 6px; }
.big-link:hover { background-size: 100% 1px; }
.deadline { font-size: .8rem; color: var(--brass-l); margin: 0 0 18px; padding-right: 0; }
.contact { justify-content: center; }
.foot a { text-decoration: none; }
.calc { padding-top: 22px; }


/* ===== tones, panels ===== */
.tone-teal { background: var(--ink); color: var(--paper); }
.tone-cream { background: var(--paper); }
.tone-sand { background: var(--ivory); }
.tone-copper { background: var(--copper-d); color: var(--paper); }
.tone-teal .text .label { color: var(--mute-d); }
.tone-copper .text .label { color: rgba(244,235,221,.88); }
.tone-teal .text em { color: var(--brass-l); }
.tone-copper .text em { color: var(--ink); }
.tone-copper .rule { background: var(--paper); }
.tone-teal .svc li { border-color: var(--line-d); } .tone-teal .svc li::before { background: var(--line-d); } .tone-teal .svc li.on::before { background: var(--green-2); }
.tone-teal .svc span { color: var(--mute-d); }
.tone-teal .mh-btn { background: var(--paper); color: var(--ink); } .tone-teal .mh-btn:hover, .tone-copper .mh-btn:hover { background: var(--brass-l); }
.tone-copper .mh-btn { background: var(--ink); color: var(--paper); }
.text h2 { font-size: clamp(2.7rem, 5.2vw, 5.4rem); }
.band + .band, .hero + .band { min-height: 92vh; }
.panel { min-height: 600px; padding: clamp(28px, 3.4vw, 52px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.35);
  background-image: repeating-linear-gradient(transparent 0 35px, rgba(15,61,62,.06) 35px 36px); }
.p-ink { background-color: var(--ink); background-image: repeating-linear-gradient(transparent 0 35px, rgba(244,235,221,.05) 35px 36px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.tone-cream .p-ink, .tone-sand .p-ink { box-shadow: 0 30px 60px -28px rgba(15,61,62,.55); }
.cap { position: absolute; left: clamp(28px, 3.4vw, 52px); top: 22px; margin: 0; font: 400 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.cap b { color: var(--green); font-weight: 500; margin-right: 8px; } .p-ink .cap { color: var(--mute-d); } .p-ink .cap b { color: var(--green-2); }
.p-ink .replay { color: var(--paper); }
.contact .big-link { color: var(--paper); }
.contact { background-color: var(--ink); }
.foot { background: var(--paper); }
.calc .big { color: var(--green); }

/* ===== HERO: full-bleed split ===== */
.hero { position: relative; display: grid; grid-template-columns: 56fr 44fr; height: max(100svh, 780px); overflow: hidden; }
.hero-ink { grid-column: 1; grid-row: 1; background: var(--ink); max-width: none; padding: 128px clamp(24px, 4vw, 56px) 60px; display: flex; flex-direction: column; position: relative; z-index: 1; }
.hero-paper { grid-column: 2; grid-row: 1; background: var(--paper); }
.hero-ink h1 { font-size: clamp(3rem, 8.8vw, 9.6rem); margin: 4px 0 24px; line-height: .9; }
.hero-ink h1 em { color: var(--brass-l); display: block; }
.hero-ink .lede { color: var(--paper); opacity: .85; }
.hero-ink .mh-btn { align-self: flex-start; background: var(--paper); color: var(--ink); }
.hero-ink .mh-btn:hover { background: var(--brass-l); }
.scene { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.scene .replay { pointer-events: auto; top: auto; bottom: 18px; right: 18px; color: var(--ink); }
.pile { position: absolute; left: 78%; top: 33%; width: 0; height: 0; font-size: clamp(9px, .98vw, 14.5px); }
.doc {
  position: absolute; left: 0; top: 0; width: 17em; height: 22em; margin: -11em 0 0 -8.5em;
  background: linear-gradient(158deg, #fffdf8 0%, #fbf4e6 60%, #f3e9d4 100%); color: var(--ink);
  border: 1px solid rgba(15,61,62,.18); border-radius: .35em; padding: 1.3em 1.3em 1em; overflow: hidden; line-height: 1.35;
  box-shadow: 0 .15em .3em rgba(15,61,62,.18), 0 1.2em 2.6em -.4em rgba(15,61,62,.35);
  transform: translate(var(--x), var(--y)) rotate(var(--r));
  transition: transform .62s cubic-bezier(.6,0,.15,1), opacity .18s .5s; will-change: transform;
}
.doc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: .7em; background: var(--c, var(--green)); }
.doc::after { content: ""; position: absolute; right: 0; top: 0; width: 2.4em; height: 2.4em; background: linear-gradient(225deg, var(--paper) 0 50%, rgba(15,61,62,.14) 50% 100%); }
.doc .t { display: flex; justify-content: space-between; font: 500 1.1em var(--mono); margin: .5em 0 .9em; padding-right: 1.6em; }
.doc .t small { font-size: .78em; color: var(--mute); font-weight: 400; }
.doc .k { font: .72em var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: .7em 0 .1em; }
.doc .v { font: 500 1em var(--mono); }
.doc .r { display: flex; justify-content: space-between; gap: .6em; font: .85em var(--mono); padding: .3em 0; border-bottom: 1px dashed rgba(15,61,62,.2); }
.doc .r.tot { font-weight: 500; border-bottom: 0; border-top: 1px solid var(--ink); margin-top: .5em; }
.doc .g { display: grid; grid-template-columns: 1fr 1fr; gap: .1em 1em; }
.doc .n { font: .75em var(--mono); color: var(--mute); margin-top: .8em; }
.doc .st { position: absolute; right: 1.1em; bottom: 1em; border: .15em solid var(--green); color: var(--green); font: 500 .8em var(--mono); letter-spacing: .12em; padding: .2em .5em; border-radius: .2em; transform: rotate(-8deg); opacity: .8; }
.ready { position: absolute; left: 78%; top: 33%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: .5em; color: var(--green); text-align: center; }
.ready svg { width: clamp(64px, 6vw, 96px); height: auto; }
.ready span { font-size: clamp(2.4rem, 4vw, 4.2rem); font-style: italic; line-height: 1; white-space: nowrap; }
.js .ready { opacity: 0; transition: opacity .8s var(--ease-out); } .js .ready.on { opacity: 1; }
.tick { stroke-dasharray: 40; stroke-dashoffset: 0; }
.js .ready:not(.on) .tick { stroke-dashoffset: 40; }
.ready.on .tick { transition: stroke-dashoffset .7s .35s ease-out; }
.folders { position: absolute; left: 34%; right: 3%; bottom: 10%; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.6vw, 24px); }
.folder { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.folder .tab { position: absolute; top: -13px; left: 0; width: 42%; height: 17px; background: var(--copper); border-radius: 8px 8px 0 0; }
.folder .body { width: 100%; height: clamp(104px, 12vw, 172px); background: var(--ivory); border: 1px solid rgba(15,61,62,.25); border-radius: 4px 14px 14px 14px; display: grid; place-items: center; overflow: hidden; transition: background .4s, border-color .4s; box-shadow: 0 14px 34px -6px rgba(15,61,62,.45); }
.folder .body em { font: 400 clamp(2.4rem, 4.6vw, 4.8rem)/1 var(--serif); font-style: normal; color: var(--mute); transition: color .4s; display: block; }
.folder.on .body { background: #fffaf0; border-color: var(--copper); }
.folder.on .body em { color: var(--green); }
.folder.hit { animation: hit .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes hit { 0% { transform: translateY(0) scale(1); } 30% { transform: translateY(-9px) scale(1.035); } 60% { transform: translateY(3px) scale(.99); } 100% { transform: none; } }
.folder .fl { font: 500 .8rem var(--mono); letter-spacing: .06em; padding: 5px 12px; border-radius: 99px; background: var(--paper); color: var(--ink); }
.hero + .band { padding-top: 60px; }
.contact .mh-btn { background: var(--paper); color: var(--ink); } .contact .mh-btn:hover { background: var(--brass-l); }
/* header: no blend, colour follows the band underneath */
.mh-nav { mix-blend-mode: normal; color: var(--ink); transition: color .4s; }
.mh-nav.on-dark { color: var(--paper); }
.mh-nav.on-hero .mh-logo { color: var(--paper); }
.mh-nav.on-hero:not(.on-dark) nav { color: var(--ink); }
@media (max-width: 860px) { .mh-nav.on-hero, .mh-nav.on-hero nav { color: var(--paper) !important; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; }
  .hero-ink { grid-column: 1; padding: 84px 20px 76px; }
  .hero-ink .label { display: none; }
  .hero-ink h1 { font-size: clamp(3rem, 14.5vw, 3.9rem); margin-bottom: 16px; }
  .hero-ink .lede { font-size: 1.1rem; margin-bottom: 22px; max-width: 24em; }
  .hero-paper { grid-column: 1; grid-row: 2; }
  .scene { position: relative; inset: auto; grid-column: 1; grid-row: 2; margin-top: -42px; height: 372px; }
  .pile { left: 50%; top: 262px; font-size: 7.2px; }
  .ready { left: 50%; top: 250px; } .ready svg { width: 56px; } .ready span { font-size: 2.5rem; }
  .folders { left: 16px; right: 16px; top: 0; bottom: auto; gap: 8px; }
  .folder .body { height: 84px; } .folder .body em { font-size: 2.1rem; }
  .folder .fl { font-size: .58rem; padding: 4px 7px; letter-spacing: 0; }
  .folder .tab { top: -10px; height: 12px; }
  .scene .replay { bottom: 12px; right: 12px; }
  .hero + .band { padding-top: 40px; }
  .panel { min-height: 0; padding: 56px 20px 28px; }
  .cap { left: 20px; top: 20px; font-size: .62rem; }
  .band, .band + .band, .hero + .band { min-height: 0; padding-top: 56px; padding-bottom: 48px; }
}
