/* Workless: modern studio up top, a scholar's world underneath. Tokens follow the final logo & pattern packs. */
:root {
  --oxblood: #6B1C27;
  --oxblood-deep: #5A1820;
  --ember: #9A3A2E;
  --night: #1A130F;
  --night-2: #241A15;
  --gold: #C79A3C;
  --saffron: #F2B01E;
  --cream: #FFF4D6;
  --bone: #EFE8DA;
  --bone-2: #E6DCC8;
  --paper: #F7F1E4;
  --ink: #2A211E;
  --muted: #6E5D4F;
  --serif: "Amiri", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(16px, 5vw, 80px);
  --x: 70%; --y: 40%;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: var(--night); color: var(--cream); font-family: var(--sans); font-size: 17px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.page-light { background: var(--bone); color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; color: var(--saffron); }
::selection { background: var(--saffron); color: var(--night); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }

/* ---------- Type ---------- */
.kicker { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--gold); }
.kicker--dark { color: var(--oxblood); }
.h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(44px, 6.6vw, 104px); line-height: 1.02; letter-spacing: -.015em; }
.h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(38px, 5.6vw, 80px); line-height: 1.04; letter-spacing: -.01em; margin-top: .25em; color: var(--cream); }
.h2--ink, .page-light .h1 { color: var(--ink); }
.h2--ink em, .light em, .page-light em { color: var(--oxblood); }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: rgba(255,244,214,.75); max-width: 600px; }
.light .lede, .page-light .lede { color: var(--muted); }
.section-head { text-align: center; max-width: 900px; margin: 0 auto clamp(40px, 6vw, 72px); }
.section-head .lede { margin: 18px auto 0; }
.more { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--saffron); border-bottom: 1px solid rgba(242,176,30,.4); padding-bottom: 3px; transition: gap .35s var(--ease), border-color .3s; }
.more:hover { gap: 16px; border-color: var(--saffron); }
.light .more, .page-light .more { color: var(--oxblood); border-color: rgba(107,28,39,.35); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: 1em 1.7em; border-radius: 999px; font-weight: 600; font-size: 16px; line-height: 1; white-space: nowrap; transition: background .3s, color .3s, border-color .3s, box-shadow .3s, transform .35s var(--ease); will-change: transform; }
.btn--sm { padding: .75em 1.2em; font-size: 14px; }
.btn--saffron { background: var(--saffron); color: var(--night); box-shadow: 0 10px 30px -12px rgba(242,176,30,.8); }
.btn--saffron:hover { background: #ffc43f; box-shadow: 0 16px 40px -12px rgba(242,176,30,.95); }
.btn--ghost { border: 1px solid rgba(255,244,214,.35); color: var(--cream); }
.btn--ghost:hover { border-color: var(--cream); background: rgba(255,244,214,.08); }
.btn--oxblood { background: var(--oxblood); color: var(--cream); }
.btn--oxblood:hover { background: var(--ember); }
.btn--line { border: 1.5px solid var(--oxblood); color: var(--oxblood); }
.btn--line:hover { background: var(--oxblood); color: var(--cream); }
.link-btn { color: rgba(255,244,214,.7); font-weight: 500; }
.link-btn:hover { color: var(--cream); }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--night); display: grid; place-content: center; justify-items: center; gap: 18px; }
.loader__nib { width: 64px; opacity: 0; transform: scale(.6); animation: ignite .9s .05s var(--ease) forwards; }
.loader__word { width: 140px; opacity: 0; animation: rise .7s .4s var(--ease) forwards; }
@keyframes ignite { 60% { opacity: 1; filter: brightness(1.4); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rise { from { transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Nav ---------- */
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 28px; padding: 16px var(--pad); color: var(--cream); transition: background .45s, border-color .45s, transform .5s var(--ease), padding .4s, color .3s; border-bottom: 1px solid transparent; }
.nav[data-theme="light"] { color: var(--ink); }
.nav.is-scrolled { padding-top: 10px; padding-bottom: 10px; }
.nav.is-scrolled[data-theme="dark"] { background: rgba(26,19,15,.84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: rgba(199,154,60,.18); }
.nav.is-scrolled[data-theme="light"] { background: rgba(239,232,218,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: rgba(107,28,39,.12); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.nav__nib { width: 22px; }
.nav__word { height: 26px; width: auto; }
.nav__word--ink, .nav[data-theme="light"] .nav__word--cream { display: none; }
.nav[data-theme="light"] .nav__word--ink { display: block; }
.nav__links { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.nav__links a { position: relative; opacity: .78; transition: opacity .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; width: 40px; height: 40px; position: relative; }
.nav__burger span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.nav__burger span:first-child { top: 16px; } .nav__burger span:last-child { top: 23px; }
body.sheet-open .nav__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
body.sheet-open .nav__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.sheet { position: fixed; inset: 0; z-index: 45; background: var(--night); color: var(--cream); display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: var(--pad); font-family: var(--serif); font-size: 38px; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); }
.sheet .btn { font-family: var(--sans); align-self: flex-start; margin-top: 16px; }
body.sheet-open .sheet { clip-path: inset(0); }
body.sheet-open .nav { background: transparent !important; color: var(--cream) !important; border-color: transparent !important; }
body.sheet-open .nav .nav__word--cream { display: block !important; }
body.sheet-open .nav .nav__word--ink { display: none !important; }

/* ---------- Home: hero (plain, modern) ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(32px, 5vw, 80px); padding: 130px var(--pad) 110px; overflow: hidden; isolation: isolate; }
.hero__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle clamp(280px, 34vw, 560px) at var(--x) var(--y), rgba(255,195,77,.13), rgba(208,122,52,.05) 45%, transparent 70%), radial-gradient(90% 60% at 50% 120%, rgba(107,28,39,.45), transparent 60%); }
.hero__veil { position: absolute; inset: 0; z-index: -2; background: url("../assets/brand/pattern-tile-night.svg") 0 0 / 180px; opacity: .035; -webkit-mask-image: linear-gradient(90deg, #000, transparent 35%, transparent 65%, #000); mask-image: linear-gradient(90deg, #000, transparent 35%, transparent 65%, #000); }
.hero__copy { display: grid; gap: 22px; max-width: 640px; }
.hero__title .w { display: inline-block; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: rgba(255,244,214,.55); margin-top: 6px; }
.hero__proof span::before { content: "✦"; color: var(--gold); margin-right: 8px; font-size: 11px; }

/* the site being built */
.build { position: relative; width: 100%; max-width: 640px; justify-self: end; }
.browser { position: relative; border-radius: 18px; background: var(--paper); color: var(--ink); overflow: hidden; box-shadow: 0 60px 120px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(199,154,60,.25); transform: perspective(1400px) rotateY(-8deg) rotateX(3deg); transition: transform .9s var(--ease); }
.build:hover .browser { transform: perspective(1400px) rotateY(0) rotateX(0); }
.browser__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #e9e0cd; }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3c6ab; }
.browser__url { margin-left: 12px; flex: 1; height: 24px; border-radius: 999px; background: #f7f1e4; font-size: 12px; color: var(--muted); display: flex; align-items: center; padding: 0 12px; overflow: hidden; white-space: nowrap; }
.browser__url b { color: var(--ink); font-weight: 600; }
.site { position: relative; aspect-ratio: 16 / 11; padding: 4.5% 5%; display: grid; grid-template-rows: auto 1fr auto; gap: 4%; }
.site__nav { display: flex; align-items: center; gap: 4%; }
.site__logo { width: 22%; height: 10px; border-radius: 4px; background: var(--oxblood); }
.site__links { display: flex; gap: 4%; flex: 1; justify-content: flex-end; }
.site__links span { width: 9%; height: 6px; border-radius: 3px; background: #cfc2a8; }
.site__hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 6%; align-items: center; }
.site__h { font-family: var(--serif); font-weight: 700; font-size: clamp(16px, 2.2vw, 34px); line-height: 1.02; color: var(--ink); min-height: 2.1em; }
.site__h .caret { display: inline-block; width: 2px; height: .9em; background: var(--oxblood); margin-left: 2px; vertical-align: -.1em; animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.site__p { display: grid; gap: 6px; margin-top: 10%; }
.site__p span { height: 6px; border-radius: 3px; background: #d8ccb3; transform-origin: left; }
.site__p span:nth-child(2) { width: 82%; } .site__p span:nth-child(3) { width: 60%; }
.site__btn { margin-top: 10%; width: 40%; height: 22px; border-radius: 999px; background: var(--saffron); transform-origin: left; }
.site__img { aspect-ratio: 1; border-radius: 14px; background: linear-gradient(160deg, #6B1C27, #2b1c16); position: relative; overflow: hidden; }
.site__img::after { content: ""; position: absolute; inset: 0; background: url("../assets/img/scholar-face.webp") center / cover; opacity: .9; mix-blend-mode: luminosity; }
.site__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.site__cards span { height: 46px; border-radius: 10px; background: #ebe2cf; transform-origin: bottom; }
.build__nib { position: absolute; width: 34px; left: 0; top: 0; z-index: 3; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
.build__chip { position: absolute; z-index: 2; background: var(--night-2); color: var(--cream); border: 1px solid rgba(199,154,60,.35); border-radius: 14px; padding: 10px 14px; font-size: 13px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); }
.build__chip b { display: block; font-family: var(--serif); font-size: 22px; line-height: 1; color: var(--saffron); }
.build__chip--a { left: -6%; bottom: 14%; }
.build__chip--b { right: -3%; top: 12%; }
.build__chip--b small { color: rgba(255,244,214,.6); }

/* ---------- Hook ---------- */
.hook { position: relative; min-height: 90vh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 120px var(--pad); gap: 22px; }
.hook__wait { font-family: var(--serif); font-size: clamp(60px, 11vw, 170px); font-weight: 700; line-height: .9; color: var(--cream); }
.hook__q { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 46px); line-height: 1.2; max-width: 860px; }
.hook__nib { width: 56px; animation: flicker 4s ease-in-out infinite; }
.hook__go { margin-top: 10px; display: grid; justify-items: center; gap: 10px; font-family: var(--serif); font-style: italic; font-size: 20px; color: rgba(255,244,214,.7); }
.hook__go i { width: 1px; height: 54px; background: linear-gradient(var(--gold), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes flicker { 0%, 100% { filter: brightness(1); transform: scale(1); } 30% { filter: brightness(1.12); transform: scale(1.02); } 55% { filter: brightness(.96); } 75% { filter: brightness(1.08); transform: scale(1.01); } }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { opacity: 0; } }

/* ---------- Transport: into the scholar's world ---------- */
.portal { position: relative; height: 420vh; background: var(--night); }
.portal__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.portal__frame { position: absolute; inset: 0; display: grid; place-items: center; }
.portal__img { height: 100%; width: auto; max-width: none; object-fit: cover; will-change: transform, filter; transform-origin: 37% 40%; }
.portal__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(26,19,15,.92) 0%, rgba(26,19,15,.6) 28%, transparent 52%), linear-gradient(0deg, rgba(26,19,15,.75), transparent 35%); opacity: 0; }
.portal__sides { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 75% at 50% 50%, transparent 55%, var(--night) 100%); }
.portal__lines { position: absolute; left: var(--pad); bottom: 18vh; width: min(560px, calc(100% - 2 * var(--pad))); }
.portal__line { position: absolute; left: 0; bottom: 0; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 36px); line-height: 1.35; color: var(--cream); opacity: 0; text-shadow: 0 2px 30px rgba(0,0,0,.6); }
.portal__line small { display: block; font-family: var(--sans); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; text-shadow: none; }
.portal__name { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; opacity: 0; padding: var(--pad); background: radial-gradient(60% 60% at 50% 50%, rgba(26,19,15,.82), rgba(26,19,15,.55) 70%, rgba(26,19,15,.3)); }
.portal__name p { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 30px); color: rgba(255,244,214,.8); }
.portal__name img.nib { width: clamp(64px, 7vw, 96px); }
.portal__name img.word { width: clamp(240px, 38vw, 480px); }
.portal__name .after { font-style: normal; max-width: 560px; color: var(--cream); }
.portal__skip { position: absolute; right: var(--pad); top: 96px; font-size: 13px; color: rgba(255,244,214,.6); border-bottom: 1px dashed rgba(255,244,214,.35); z-index: 2; }
.portal__skip:hover { color: var(--saffron); }
/* the progress line doubles as a slider: a tall grab area with a 2px line drawn inside it */
.portal__bar { position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: calc(5vh - 15px); height: 32px; cursor: grab; touch-action: none; outline: none; }
.portal__bar::before, .portal__bar span { content: ""; position: absolute; left: 0; top: 50%; height: 2px; margin-top: -1px; }
.portal__bar::before { right: 0; background: rgba(255,244,214,.12); }
.portal__bar span { width: 0; background: var(--gold); }
.portal__bar.is-dragging { cursor: grabbing; }
.portal__knob { position: absolute; top: 50%; left: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(199,154,60,.22); transition: transform .3s var(--ease), box-shadow .3s; }
.portal__bar:hover .portal__knob, .portal__bar.is-dragging .portal__knob { transform: scale(1.3); }
.portal__bar:focus-visible .portal__knob { box-shadow: 0 0 0 3px var(--night), 0 0 0 5px var(--cream); }
.portal__hint { position: absolute; z-index: 3; left: 50%; bottom: calc(5vh + 22px); transform: translateX(-50%); font-size: 13px; letter-spacing: .14em; color: var(--gold); white-space: nowrap; pointer-events: none; transition: opacity .8s var(--ease); }
.portal__hint span { display: inline-block; animation: hint-pulse 2.4s ease-in-out infinite; }
.portal__hint.is-gone { opacity: 0; }
@keyframes hint-pulse { 0%, 100% { opacity: .45; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

/* ---------- Back to today ---------- */
.today { background: var(--bone); color: var(--ink); text-align: center; padding: clamp(90px, 11vw, 150px) var(--pad) clamp(30px, 4vw, 50px); position: relative; }
.today em { color: var(--oxblood); }
.today__line { font-family: var(--serif); font-size: clamp(30px, 4vw, 56px); line-height: 1.15; max-width: 880px; margin: 0 auto; }
.vine { height: 24px; background: url("../assets/brand/vine-border-bone.svg") 0 0 / auto 24px repeat-x; }
.vine--dark { background-image: url("../assets/brand/vine-border-oxblood.svg"); }
.vine--thin { height: 18px; background-size: auto 18px; }

/* ---------- How I work (light) ---------- */
.how { background: var(--bone); color: var(--ink); padding: clamp(40px, 5vw, 70px) var(--pad) clamp(100px, 12vw, 160px); }
.arches { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); max-width: 1240px; margin: 0 auto; }
.arch { position: relative; padding: clamp(70px, 8vw, 110px) clamp(24px, 3vw, 40px) 40px; border-radius: 999px 999px 22px 22px / 200px 200px 22px 22px; background: var(--paper); border: 1px solid rgba(107,28,39,.16); text-align: center; transition: transform .6s var(--ease), border-color .4s, box-shadow .6s; }
.arch:hover { transform: translateY(-10px); border-color: var(--gold); box-shadow: 0 40px 80px -50px rgba(107,28,39,.6); }
.arch__icon { width: 60px; height: 60px; margin: 0 auto 16px; }
.arch__icon svg { width: 100%; height: 100%; fill: none; stroke: var(--oxblood); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.arch__num { font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--gold); }
.arch h3 { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; margin: 6px 0 10px; }
.arch p:last-child { color: var(--muted); }

/* ---------- Monday teaser + demo ---------- */
.monday { background: var(--night); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; padding: clamp(100px, 12vw, 160px) var(--pad); position: relative; overflow: hidden; }
.monday__copy { max-width: 520px; justify-self: end; display: grid; gap: 22px; justify-items: start; }
.monday__note { font-size: 13px; color: rgba(255,244,214,.5); font-style: italic; }
.monday__stage { justify-self: start; width: 100%; max-width: 420px; position: relative; display: grid; align-items: center; }
.picker { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { padding: .6em 1.2em; border-radius: 999px; border: 1px solid rgba(42,33,30,.18); font-weight: 500; font-size: 15px; transition: all .3s var(--ease); }
.pick:hover { border-color: var(--oxblood); }
.picker--dark .pick { border-color: rgba(255,244,214,.25); color: var(--cream); }
.picker--dark .pick:hover { border-color: var(--cream); }
.pick.is-on { background: var(--oxblood); border-color: var(--oxblood); color: var(--cream); }
.toggle { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bone-2); }
.toggle__btn { position: relative; z-index: 1; padding: .55em 1.15em; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .3s; }
.toggle__btn.is-on { color: var(--cream); }
.toggle__pill { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--ink); transition: transform .5s var(--ease), width .5s var(--ease); }
.phone { width: 100%; max-width: 370px; border-radius: 46px; background: var(--night); padding: 12px; box-shadow: 0 50px 100px -40px rgba(0,0,0,.8), inset 0 0 0 1px rgba(199,154,60,.35); }
.phone__top { display: flex; align-items: center; gap: 12px; padding: 18px 16px 14px; color: var(--cream); }
.phone__top b { display: block; font-size: 16px; }
.phone__top small { font-size: 12px; color: rgba(255,244,214,.55); }
.phone__avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--oxblood); }
.phone__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.phone__body { background: var(--night-2); border-radius: 34px; min-height: 540px; padding: 18px 14px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; }
.bub { position: relative; max-width: 92%; padding: 11px 14px; border-radius: 18px 18px 18px 6px; background: var(--bone); color: var(--ink); font-size: 15px; line-height: 1.45; box-shadow: 0 6px 16px -10px rgba(0,0,0,.6); }
.bub--stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; }
.stat { background: #fff8e8; border-radius: 12px; padding: 8px 6px; text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--oxblood); }
.stat small { display: block; font-size: 11px; color: var(--muted); line-height: 1.2; margin-top: 4px; }
.stat i { font-style: normal; font-size: 11px; font-weight: 600; }
.up { color: #2e7d4f; } .down { color: var(--ember); }
.bub--chart { padding: 12px 12px 8px; width: 92%; }
.bub--chart small { font-size: 11px; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 86px; margin-top: 6px; }
.bars span { flex: 1; background: var(--gold); border-radius: 4px 4px 2px 2px; height: 0; transition: height .9s var(--ease); }
.bars span.peak { background: var(--oxblood); }
.days { display: flex; gap: 6px; margin-top: 4px; }
.days i { flex: 1; text-align: center; font-style: normal; font-size: 10px; color: var(--muted); }
.bub--act { background: var(--saffron); color: var(--night); font-weight: 500; }
.bub--act b { font-weight: 700; }
.bub--sign { font-family: var(--serif); font-style: italic; background: transparent; color: var(--cream); box-shadow: none; padding-top: 2px; font-size: 17px; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; background: var(--bone); border-radius: 18px 18px 18px 6px; align-self: flex-start; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { transform: translateY(-4px); opacity: .5; } }
.dispatch { width: 100%; background: #fffaf0; border-radius: 22px; overflow: hidden; box-shadow: 0 50px 100px -40px rgba(42,33,30,.55), 0 0 0 1px rgba(107,28,39,.12); color: var(--ink); }
.dispatch__head { background: var(--oxblood); display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; color: var(--saffron); font-family: var(--serif); font-style: italic; }
.dispatch__head img { height: 28px; }
.dispatch__body { padding: 26px 24px 30px; }
.dispatch__body h3 { font-family: var(--serif); font-size: 30px; line-height: 1.1; margin-bottom: 14px; }
.dispatch__body p { color: #4a3d36; margin-bottom: 14px; font-size: 16px; }
.dispatch__body .bars { height: 70px; margin: 8px 0 4px; }
.dispatch__act { background: #fdf0cc; border-left: 3px solid var(--saffron); padding: 12px 14px; border-radius: 6px; }
.dispatch__sign { font-family: var(--serif); font-style: italic; color: var(--oxblood); font-size: 19px; margin: 0 !important; }

/* ---------- Work preview + Work page ---------- */
.work { background: var(--bone); color: var(--ink); padding: clamp(100px, 12vw, 160px) var(--pad); }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(16px, 2vw, 28px); max-width: 1240px; margin: 0 auto; }
.proj { position: relative; display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: var(--paper); border: 1px solid rgba(107,28,39,.12); transition: transform .6s var(--ease), box-shadow .6s; }
.proj:hover { transform: translateY(-8px); box-shadow: 0 40px 80px -50px rgba(107,28,39,.6); }
.proj__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--night); }
.proj__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.proj:hover .proj__media img { transform: scale(1.05); }
.proj__media--soon { display: grid; place-items: center; background: var(--night) url("../assets/brand/pattern-tile-night.svg") 0 0 / 120px; }
.proj__media--soon::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(26,19,15,.55), rgba(26,19,15,.92)); }
.proj__media--soon span { position: relative; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--cream); }
.proj__tag { position: absolute; top: 16px; left: 16px; z-index: 2; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .4em .8em; border-radius: 999px; background: var(--saffron); color: var(--night); }
.proj__body { padding: 24px 26px 28px; display: grid; gap: 8px; }
.proj__kind { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--oxblood); font-weight: 600; }
.proj__body h3 { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.proj__body p { color: var(--muted); }
.proj__link { margin-top: 8px; justify-self: start; }

/* ---------- Pricing preview + page ---------- */
.ways { background: var(--paper); color: var(--ink); padding: clamp(100px, 12vw, 160px) var(--pad); }
.tiers__grid { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: clamp(16px, 2.4vw, 32px); max-width: 1180px; margin: 0 auto; }
.tier { position: relative; display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 3.4vw, 48px); border-radius: 28px; background: var(--bone); border: 1px solid rgba(107,28,39,.14); transition: transform .5s var(--ease), box-shadow .5s; }
.tier:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -50px rgba(107,28,39,.5); }
.tier--sig { background: var(--oxblood); color: var(--cream); border-color: var(--oxblood); }
.tier__badge { position: absolute; top: 24px; right: 24px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--saffron); color: var(--night); padding: .35em .8em; border-radius: 999px; }
.tier__name { font-family: var(--serif); font-size: 44px; line-height: 1; }
.tier__for { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--oxblood); }
.tier--sig .tier__for { color: var(--saffron); }
.tier__sum { color: var(--muted); font-size: 17px; }
.tier--sig .tier__sum { color: rgba(255,244,214,.78); }
.tier__list { display: grid; margin: 6px 0 12px; }
.tier__list div { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(107,28,39,.14); }
.tier--sig .tier__list div { border-color: rgba(255,244,214,.18); }
.tier__list dt { font-weight: 600; font-size: 14px; color: var(--oxblood); }
.tier--sig .tier__list dt { color: var(--saffron); }
.tier__list dd { font-size: 15px; }
.tier .btn { margin-top: auto; align-self: flex-start; }
.tier__rule { text-align: center; margin-top: 36px; font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--muted); }

/* ---------- Different ---------- */
.different { position: relative; padding: clamp(110px, 15vw, 200px) var(--pad); background: var(--oxblood-deep); overflow: hidden; isolation: isolate; }
.different__pattern { position: absolute; inset: 0; z-index: -1; background: url("../assets/brand/pattern-tile-oxblood.svg") 0 0 / 200px; opacity: .06; }
.different__inner { max-width: 1000px; margin: 0 auto; }
.strikes { list-style: none; margin: 28px 0 40px; }
.strikes li { font-family: var(--serif); font-size: clamp(32px, 5vw, 72px); line-height: 1.15; }
.strikes span { background: linear-gradient(var(--saffron), var(--saffron)) 0 52% / 0% 4px no-repeat; transition: background-size 1s var(--ease), color .6s; }
.strikes li.is-struck span { background-size: 100% 4px; color: rgba(255,244,214,.45); }
.different__out { font-family: var(--serif); font-size: clamp(24px, 2.8vw, 38px); line-height: 1.35; max-width: 820px; }

/* ---------- Start (form) ---------- */
.start { position: relative; padding: clamp(110px, 14vw, 180px) var(--pad); text-align: center; overflow: hidden; isolation: isolate; }
.start__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 40% at 50% 14%, rgba(255,195,77,.16), transparent 70%); }
.start__inner { max-width: 760px; margin: 0 auto; display: grid; justify-items: center; }
.start__nib { width: 70px; animation: flicker 4s ease-in-out infinite; }
.start__lede { font-size: 19px; color: rgba(255,244,214,.75); margin: 16px 0 40px; }
.story { width: 100%; text-align: left; background: rgba(255,244,214,.04); border: 1px solid rgba(199,154,60,.3); border-radius: 28px; padding: clamp(24px, 4vw, 44px); }
.story__dots { display: flex; gap: 8px; margin-bottom: 22px; }
.story__dots i { width: 28px; height: 3px; border-radius: 2px; background: rgba(255,244,214,.2); transition: background .4s; }
.story__dots i.is-on { background: var(--saffron); }
.step { border: 0; display: none; }
.step.is-on { display: block; animation: stepIn .6s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(18px); } }
.step legend { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); line-height: 1.2; margin-bottom: 20px; }
.story input[type="text"], .keep__form input { width: 100%; padding: 16px 18px; border-radius: 14px; background: rgba(26,19,15,.6); border: 1px solid rgba(255,244,214,.2); color: var(--cream); font-size: 17px; transition: border-color .3s; }
.story input::placeholder, .keep__form input::placeholder { color: rgba(255,244,214,.38); }
.story input:focus, .keep__form input:focus { outline: none; border-color: var(--saffron); }
.row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: .75em 1.2em; border-radius: 999px; border: 1px solid rgba(255,244,214,.25); cursor: pointer; transition: all .3s var(--ease); }
.chip span:hover { border-color: var(--cream); }
.chip input:checked + span { background: var(--saffron); border-color: var(--saffron); color: var(--night); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--saffron); outline-offset: 3px; }
.story__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; }
.story__nav .btn { margin-left: auto; }
.story__err { min-height: 1.4em; margin-top: 10px; color: var(--saffron); font-size: 14px; }
.story__done { text-align: center; padding: 20px 0 8px; }
.story__done p { color: rgba(255,244,214,.8); }
.story__thanks { font-family: var(--serif); font-size: 40px; color: var(--cream) !important; margin-bottom: 8px; }
.story.is-done .story__dots, .story.is-done .step, .story.is-done .story__nav, .story.is-done .story__err { display: none; }
.keep { margin-top: 56px; max-width: 620px; color: rgba(255,244,214,.68); font-size: 16px; }
.keep__form { display: flex; gap: 10px; margin-top: 18px; }
.keep__form .btn { flex: 0 0 auto; }

/* ---------- Inner page hero ---------- */
.phero { padding: clamp(150px, 18vw, 220px) var(--pad) clamp(60px, 8vw, 100px); text-align: center; position: relative; }
.phero .h1 { margin: 14px auto 0; max-width: 1000px; }
.phero .lede { margin: 22px auto 0; }
.page-light .phero { background: var(--bone); }

/* ---------- Pricing page extras ---------- */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); max-width: 1180px; margin: 0 auto; counter-reset: s; }
.step3 { padding: 32px; border-radius: 24px; background: var(--paper); border: 1px solid rgba(107,28,39,.12); }
.step3::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--oxblood); color: var(--cream); font-family: var(--serif); font-size: 22px; margin-bottom: 16px; }
.step3 h3 { font-family: var(--serif); font-size: 26px; line-height: 1.15; margin-bottom: 8px; }
.step3 p { color: var(--muted); }
.steps3--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
/* How it works: a numbered path down the page */
.flow { max-width: 820px; margin: 0 auto; list-style: none; counter-reset: f; color: var(--ink); }
.flow li { position: relative; display: grid; gap: 4px; padding: 0 0 30px 68px; }
.flow li::before { counter-increment: f; content: counter(f); position: absolute; left: 0; top: -6px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--oxblood); color: var(--cream); font-family: var(--serif); font-size: 22px; }
.flow li::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 2px; width: 2px; background: rgba(107,28,39,.16); }
.flow li:last-child { padding-bottom: 0; }
.flow li:last-child::after { display: none; }
.flow b { font-family: var(--serif); font-size: clamp(22px, 2vw, 26px); line-height: 1.2; }
.flow span { color: var(--muted); }
.flow__note { max-width: 820px; margin: 34px auto 0; padding-left: 68px; color: var(--muted); font-style: italic; }
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; max-width: 1180px; margin: 0 auto; list-style: none; }
.promises li { padding: 22px 24px; border-radius: 18px; background: var(--paper); border: 1px solid rgba(107,28,39,.12); }
.promises b { display: block; font-family: var(--serif); font-size: 22px; color: var(--oxblood); }
.promises span { color: var(--muted); font-size: 15px; }
.band { padding: clamp(80px, 10vw, 130px) var(--pad); }
.band--paper { background: var(--paper); }
.band--bone { background: var(--bone); }

/* ---------- FAQ ---------- */
.faq__list { max-width: 820px; margin: 0 auto; color: var(--ink); }
.q { border-bottom: 1px solid rgba(107,28,39,.16); }
.q summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-family: var(--serif); font-size: clamp(21px, 2vw, 27px); line-height: 1.25; }
.q summary::-webkit-details-marker { display: none; }
.q summary::after { content: ""; flex: 0 0 14px; height: 14px; background: linear-gradient(var(--oxblood), var(--oxblood)) center / 100% 2px no-repeat, linear-gradient(var(--oxblood), var(--oxblood)) center / 2px 100% no-repeat; transition: transform .45s var(--ease); }
.q[open] summary::after { transform: rotate(135deg); }
.q summary:hover { color: var(--oxblood); }
.q__a { overflow: hidden; }
.q__a p { padding: 0 0 26px; color: #4a3d36; max-width: 680px; }

/* ---------- Demo page: dashboard ---------- */
.dash { max-width: 1180px; margin: 0 auto; background: #fffaf0; color: var(--ink); border-radius: 28px; border: 1px solid rgba(107,28,39,.14); box-shadow: 0 60px 120px -60px rgba(42,33,30,.6); overflow: hidden; }
.dash__top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between; padding: 20px 26px; background: var(--oxblood); color: var(--cream); }
.dash__top b { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.dash__top small { display: block; color: rgba(255,244,214,.7); font-size: 13px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255,244,214,.12); }
.seg button { padding: .5em 1em; border-radius: 999px; font-size: 14px; font-weight: 600; color: rgba(255,244,214,.75); transition: all .3s; }
.seg button.is-on { background: var(--cream); color: var(--oxblood); }
.dash__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 22px; }
.kpi { padding: 18px; border-radius: 18px; background: var(--paper); border: 1px solid rgba(107,28,39,.1); }
.kpi small { display: block; font-size: 13px; color: var(--muted); }
.kpi b { display: block; font-family: var(--serif); font-size: 40px; line-height: 1.05; color: var(--ink); margin-top: 4px; }
.kpi i { font-style: normal; font-size: 13px; font-weight: 600; }
.panel { padding: 20px 22px; border-radius: 18px; background: var(--paper); border: 1px solid rgba(107,28,39,.1); }
.panel h4 { font-family: var(--serif); font-size: 22px; font-weight: 400; margin-bottom: 4px; }
.panel > small { color: var(--muted); font-size: 13px; }
.panel--wide { grid-column: span 3; }
.panel--note { grid-column: span 1; background: var(--night); color: var(--cream); border: 0; display: grid; align-content: space-between; gap: 18px; }
.panel--note p { font-family: var(--serif); font-size: 21px; line-height: 1.35; }
.panel--note em { color: var(--saffron); }
.panel--half { grid-column: span 2; }
.chart { width: 100%; height: 220px; margin-top: 10px; }
.chart .grid-l { stroke: rgba(42,33,30,.08); }
.chart .area { fill: rgba(199,154,60,.18); }
.chart .line { fill: none; stroke: var(--oxblood); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .pt { fill: var(--oxblood); }
.chart text { font-size: 11px; fill: var(--muted); font-family: var(--sans); }
.rank { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.rank li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 15px; }
.rank li span:last-of-type { font-weight: 600; }
.rank li i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: rgba(107,28,39,.08); overflow: hidden; }
.rank li i::after { content: ""; display: block; height: 100%; width: var(--w, 0%); background: var(--gold); border-radius: 3px; transition: width 1s var(--ease); }
.funnel { display: grid; gap: 8px; margin-top: 14px; }
.funnel div { position: relative; height: 38px; border-radius: 10px; background: rgba(107,28,39,.06); overflow: hidden; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; font-size: 14px; }
.funnel div::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: rgba(199,154,60,.32); transition: width 1s var(--ease); }
.funnel span { position: relative; }
.demo-note { text-align: center; margin-top: 18px; font-size: 13px; color: var(--muted); font-style: italic; }

/* ---------- CTA band ---------- */
.cta { text-align: center; padding: clamp(90px, 11vw, 150px) var(--pad); background: var(--night); color: var(--cream); position: relative; overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 50% at 50% 30%, rgba(255,195,77,.14), transparent 70%); }
.cta .h2 { margin-bottom: 18px; }
.cta .lede { margin: 0 auto 32px; }
.cta em { color: var(--saffron) !important; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: var(--cream); border-top: 1px solid rgba(199,154,60,.18); }
.footer__inner { display: grid; justify-items: center; gap: 26px; padding: 70px var(--pad) 50px; text-align: center; }
.footer__lockup { width: 140px; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-size: 15px; color: rgba(255,244,214,.72); }
.footer__links a:hover { color: var(--saffron); }
.footer__small { font-size: 13px; color: rgba(255,244,214,.45); max-width: 560px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 90; transform: translate(-50%, calc(100% + 60px)); visibility: hidden; background: var(--bone); color: var(--ink); padding: 14px 22px; border-radius: 999px; font-size: 15px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); max-width: calc(100% - 32px); transition: transform .6s var(--ease), visibility 0s .6s; }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--ease), visibility 0s; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav__links, .nav > .btn { display: none; }
  .nav__burger { display: block; }
  .hero { grid-template-columns: 1fr; padding-top: 110px; }
  .build { justify-self: center; max-width: 560px; }
  .browser { transform: none; }
  .arches, .steps3 { grid-template-columns: 1fr; max-width: 560px; }
  .tiers__grid { grid-template-columns: 1fr; max-width: 560px; }
  .monday { grid-template-columns: 1fr; }
  .monday__copy, .monday__stage { justify-self: center; }
  .dash__grid { grid-template-columns: 1fr 1fr; }
  .panel--wide, .panel--half, .panel--note { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero__ctas .btn { flex: 1; }
  .build__chip--a { left: -2%; bottom: -8%; }
  .build__chip--b { right: -2%; top: -6%; }
  .row { grid-template-columns: 1fr; }
  .keep__form { flex-direction: column; }
  .tier__list div { grid-template-columns: 1fr; gap: 2px; }
  .phone { border-radius: 38px; }
  .phone__body { min-height: 500px; border-radius: 28px; }
  .portal__lines { bottom: 12vh; }
  .portal__skip { top: 78px; }
  .kpi b { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* three-up pricing: stack the feature rows */
.tiers__grid[style*="--cols:3"] .tier__list div { grid-template-columns: 1fr; gap: 2px; }

/* ---------- Hero: story-first headline, trio, handwritten note ---------- */
.hero .h1 { font-size: clamp(44px, 6vw, 96px); }
.hero__trio { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 30px); color: var(--gold); margin-top: -4px; }
.hero__trio span { position: relative; }
.hand { font-family: "Caveat", "Segoe Print", cursive; }
.ink { fill: none; stroke: var(--saffron); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 400; stroke-dashoffset: 400; }
.build__note { position: absolute; right: 2%; bottom: -150px; display: flex; align-items: flex-start; gap: 4px; color: var(--saffron); font-family: "Caveat", "Segoe Print", cursive; font-size: 30px; font-weight: 600; line-height: 1; transform: rotate(-4deg); z-index: 3; text-shadow: 0 0 22px rgba(242,176,30,.35); }
.build__note span { margin-top: 6px; }
.build__note svg { width: 70px; height: 78px; filter: drop-shadow(0 0 8px rgba(242,176,30,.35)); }
.build__note.is-drawn .ink { animation: ink 1.4s var(--ease) forwards; }
.build__note.is-drawn .ink--head { animation-delay: 1.1s; animation-duration: .5s; }
.build__note.is-drawn svg { animation: bob 2.4s 2s ease-in-out infinite; }
.build__note:hover { color: #ffd060; }
@keyframes ink { to { stroke-dashoffset: 0; } }
@keyframes bob { 50% { transform: translateY(8px); } }
.hero { padding-bottom: 190px; }

/* ---------- Hook lives inside the portal now ---------- */
.portal__hook { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; text-align: center; gap: 20px; padding: var(--pad); background: var(--night); }
.portal__hooknib { width: 56px; animation: flicker 4s ease-in-out infinite; }
.hook__go svg { width: 42px; height: 64px; }
.hook__go .ink { stroke-width: 2.4; animation: ink 1.6s .3s var(--ease) forwards, none; }
.hook__go .ink--head { animation-delay: 1.4s; animation-duration: .5s; }
.hook__go:hover { color: var(--saffron); }
.portal__flash { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 46%, #fff3cf 0%, #ffc24d 22%, rgba(208,122,52,.55) 46%, rgba(26,19,15,0) 72%); }
.portal__line--title { font-size: clamp(26px, 3.2vw, 46px); line-height: 1.18; }
.portal__line--title small { font-size: 14px; letter-spacing: .3em; }
.portal__line em { color: var(--saffron); }
@media (max-width: 1000px) { .build__note { right: 4%; bottom: -120px; font-size: 26px; } .hero { padding-bottom: 170px; } }
@media (prefers-reduced-motion: reduce) { .ink { stroke-dashoffset: 0; } }
