/* ============================================================
   dupinder.ai — Design System
   Aesthetic: editorial-minimal, warm & human, anti-hype.
   Pure CSS. No frameworks. Fast + crawler-friendly.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Palette */
  --ink:        #1b1a17;   /* warm near-black — primary text, dark sections */
  --ink-soft:   #26241f;   /* slightly lifted ink for dark surfaces */
  --ember:      #c75d2c;   /* warm clay/amber — accent, links, highlights */
  --ember-deep: #a8481c;   /* hover / pressed accent */
  --ember-tint: #f0e0d2;   /* soft accent wash for bands */
  --paper:      #f6f1e8;   /* warm parchment — primary background */
  --paper-2:    #efe8da;   /* alt warm band */
  --surface:    #fffdf9;   /* cards / elevated */
  --surface-2:  #ffffff;   /* pure white where extra lift needed */
  --text:       #2a2823;   /* warm charcoal — body */
  --muted:      #847b6d;   /* warm stone — captions, secondary */
  --line:       #e3dacb;   /* hairlines on light */
  --line-dark:  rgba(246,241,232,0.14); /* hairlines on ink */

  /* Foreground on dark */
  --on-dark:        #f6f1e8;
  --on-dark-soft:   rgba(246,241,232,0.78);
  --on-dark-muted:  rgba(246,241,232,0.55);

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --text-hero:    clamp(2.7rem, 6vw + 0.5rem, 5.2rem);
  --text-h2:      clamp(2rem, 3.2vw + 0.5rem, 3.4rem);
  --text-h3:      clamp(1.45rem, 1.6vw + 0.6rem, 2.1rem);
  --text-h4:      clamp(1.2rem, 1vw + 0.6rem, 1.5rem);
  --text-lead:    clamp(1.12rem, 0.7vw + 0.85rem, 1.4rem);
  --text-body:    clamp(1rem, 0.3vw + 0.92rem, 1.12rem);
  --text-sm:      0.92rem;
  --text-cap:     0.8rem;
  --overline:     0.74rem;

  /* Spacing (4px base) */
  --su: 4px;
  --s-1: calc(var(--su) * 2);
  --s-2: calc(var(--su) * 3);
  --s-3: calc(var(--su) * 4);
  --s-4: calc(var(--su) * 6);
  --s-5: calc(var(--su) * 8);
  --s-6: calc(var(--su) * 12);
  --s-7: calc(var(--su) * 16);
  --s-8: calc(var(--su) * 24);

  /* Radius */
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Shadows — warm-tinted, soft */
  --shadow-sm: 0 1px 2px rgba(43,30,18,0.05);
  --shadow-md: 0 6px 22px rgba(43,30,18,0.08);
  --shadow-lg: 0 20px 50px rgba(43,30,18,0.12);
  --shadow-xl: 0 30px 80px rgba(43,30,18,0.16);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);

  /* Layout */
  --container: 1180px;
  --container-narrow: 760px;
  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "kern" 1, "liga" 1;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
::selection { background: var(--ember); color: var(--paper); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.018em;
  color: var(--ink);
  font-optical-sizing: auto;
}
h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); letter-spacing: -0.01em; }
p { max-width: 64ch; }
strong { font-weight: 600; color: var(--ink); }
em { font-style: italic; }

.overline {
  font-family: var(--font-body);
  font-size: var(--overline);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.overline::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--ember);
  display: inline-block;
}
.on-dark .overline { color: var(--ember); }

.lead { font-size: var(--text-lead); line-height: 1.55; color: var(--text); max-width: 56ch; }
.on-dark .lead { color: var(--on-dark-soft); }

/* accent on a word */
.accent { color: var(--ember); }
.serif-em { font-family: var(--font-display); font-style: italic; font-weight: 400; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }
.narrow { max-width: var(--container-narrow); margin-inline: auto; }
.center { text-align: center; }
.center p { margin-inline: auto; }

.on-dark { background: var(--ink); color: var(--on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--on-dark); }
.on-dark p { color: var(--on-dark-soft); }
.band { background: var(--paper-2); }

.eyebrow-row { display: flex; flex-direction: column; gap: var(--s-3); margin-bottom: var(--s-5); }
.section-head { max-width: 30ch; }
.section-head.center { margin-inline: auto; }

/* grain + atmosphere */
.grain::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 0;
}
.on-dark.grain::after { mix-blend-mode: overlay; opacity: 0.06; }
.section > .container { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-weight: 600; font-size: 0.98rem; letter-spacing: 0.005em;
  padding: 0.95em 1.6em;
  border-radius: var(--radius-pill);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
  will-change: transform;
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform 0.35s var(--ease); }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-primary:active { transform: translateY(-1px) scale(0.99); }
.on-dark .btn-primary { background: var(--ember); color: #fff; }
.on-dark .btn-primary:hover { background: var(--ember-deep); }

.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-3px); background: var(--surface); }
.on-dark .btn-ghost { color: var(--on-dark); border-color: var(--line-dark); }
.on-dark .btn-ghost:hover { border-color: var(--on-dark); background: rgba(246,241,232,0.06); }

.btn-text {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 600; color: var(--ember);
  position: relative;
}
.btn-text svg { width: 1em; height: 1em; transition: transform 0.35s var(--ease); }
.btn-text:hover svg { transform: translateX(4px); }
.btn-text::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1.5px; width: 0;
  background: currentColor; transition: width 0.4s var(--ease);
}
.btn-text:hover::after { width: calc(100% - 1.5em); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* link underline-draw */
.link-draw { position: relative; color: var(--ember); font-weight: 600; }
.link-draw::after { content:""; position:absolute; left:0; bottom:-2px; height:1.5px; width:0; background: currentColor; transition: width .4s var(--ease); }
.link-draw:hover::after { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(246,241,232,0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(43,30,18,0.02);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); letter-spacing: -0.01em; }
.brand .dot { color: var(--ember); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--ink);
  display: grid; place-items: center; color: var(--paper);
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.brand-mark span { transform: translateY(1px); }
.brand-mark b { color: var(--ember); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--text); position: relative; }
.nav-links a::after { content:""; position:absolute; left:0; bottom:-6px; height:2px; width:0; background: var(--ember); transition: width .35s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: var(--s-3); }
.nav-mobile-cta { display: none; } /* shown only inside the mobile menu */
.nav .btn { padding: 0.7em 1.25em; font-size: 0.92rem; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; }
.nav-toggle span { position: relative; width: 22px; height: 2px; background: var(--ink); display: block; transition: 0.3s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after { content:""; position:absolute; left:0; width:22px; height:2px; background: var(--ink); transition: 0.3s var(--ease); }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(3.5rem, 7vw, 6.5rem);
  overflow: hidden;
}
.hero::before {
  /* subtle warm glow top-right */
  content:""; position:absolute; top:-25%; right:-12%;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle at center, rgba(199,93,44,0.16), rgba(199,93,44,0) 62%);
  pointer-events:none; z-index:0;
  filter: blur(8px);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy { max-width: 36ch; }
.hero h1 { margin-top: var(--s-3); padding-bottom: 0.08em; }
.hero h1 .line { display: block; }
.hero .lead { margin-top: var(--s-4); }
.hero .btn-row { margin-top: var(--s-5); }
.hero-trust {
  margin-top: var(--s-5); padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4);
  font-size: var(--text-sm); color: var(--muted);
}
.hero-trust b { color: var(--ink); font-weight: 600; }
.hero-trust .sep { color: var(--ember); }

/* Hero "hours reclaimed" panel — signature moment */
.reclaim {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.5vw, 2.2rem);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.reclaim::before {
  content:""; position:absolute; inset:0; border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  pointer-events:none;
}
.reclaim-head { display:flex; align-items:baseline; justify-content:space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.reclaim-head .label { font-size: var(--text-cap); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.reclaim-head .live { display:inline-flex; align-items:center; gap: 0.4em; font-size: var(--text-cap); color: var(--ember); font-weight: 600; }
.reclaim-head .live .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 rgba(199,93,44,0.5); animation: pulse 2.4s var(--ease-soft) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(199,93,44,0.45);} 70%{ box-shadow: 0 0 0 9px rgba(199,93,44,0);} 100%{ box-shadow:0 0 0 0 rgba(199,93,44,0);} }

.reclaim-row { padding-block: var(--s-3); border-top: 1px solid var(--line); }
.reclaim-row:first-of-type { border-top: none; }
.reclaim-row .top { display:flex; align-items:baseline; justify-content:space-between; gap: var(--s-2); margin-bottom: 0.55rem; }
.reclaim-row .task { font-weight: 600; color: var(--ink); font-size: 0.98rem; }
.reclaim-row .delta { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.reclaim-row .delta b { color: var(--ember); font-weight: 700; }
.reclaim-track { height: 10px; border-radius: var(--radius-pill); background: var(--paper-2); overflow: hidden; position: relative; }
.reclaim-fill {
  height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--ember), var(--ember-deep));
  width: 100%;
  transition: width 1.3s var(--ease);
  transition-delay: var(--d, 0s);
}
.reclaim .in .reclaim-fill, .reclaim-fill.shrink { width: var(--to); }
.reclaim-foot { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px dashed var(--line); font-size: var(--text-sm); color: var(--muted); display:flex; align-items:center; gap: 0.5em; }
.reclaim-foot b { color: var(--ink); }

/* hero portrait + floating proof card */
.hero-visual { position: relative; }
.hero-portrait { width:100%; aspect-ratio: 4/5; object-fit: cover; object-position: top center; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); border:1px solid var(--line); display:block; }
.hero-stat { position:absolute; left: clamp(10px, 4%, 22px); bottom: -20px; background: var(--surface); border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: var(--s-3) var(--s-4); width: min(78%, 290px); }
.hero-stat::before { content:""; position:absolute; inset:0; border-radius:inherit; box-shadow: inset 0 1px 0 rgba(255,255,255,0.6); pointer-events:none; }
.hero-stat .hs-top { display:flex; align-items:center; gap:.5em; font-size:var(--text-cap); font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin-bottom:.55rem; }
.hero-stat .hs-top .pulse { width:7px;height:7px;border-radius:50%;background:var(--ember); box-shadow:0 0 0 0 rgba(199,93,44,.5); animation:pulse 2.4s var(--ease-soft) infinite; }
.hero-stat .row { display:flex; align-items:baseline; justify-content:space-between; gap: var(--s-2); padding:.3rem 0; border-top:1px solid var(--line); }
.hero-stat .row:first-of-type { border-top:none; }
.hero-stat .row .k { color: var(--muted); font-size:.84rem; }
.hero-stat .row .v { color: var(--ink); font-weight:700; font-size:.9rem; font-variant-numeric:tabular-nums; white-space:nowrap; }
.hero-stat .row .v b { color: var(--ember); }

/* interior page-hero photo */
.hero-photo { width:100%; aspect-ratio: 4/5; object-fit: cover; object-position: top center; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border:1px solid var(--line); display:block; }

/* ---------- POV / quote section ---------- */
.pov h2 { max-width: 18ch; }
.pull-quote {
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1.35;
  color: var(--on-dark); max-width: 24ch;
}
.pull-quote .accent { color: var(--ember); font-style: normal; }
.pov-grid { display:grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem,5vw,4rem); align-items:center; }

/* ---------- Cards / services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 2.3vw, 2.1rem);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .num { font-family: var(--font-display); font-size: 0.95rem; color: var(--ember); font-weight: 600; letter-spacing: 0.05em; }
.card h3 { font-size: var(--text-h4); margin-top: var(--s-3); margin-bottom: var(--s-3); }
.card p { font-size: var(--text-sm); color: var(--text); }
.card .card-icon {
  width: 50px; height: 50px; border-radius: 13px; display:grid; place-items:center;
  background: var(--ember-tint); color: var(--ember-deep); margin-bottom: var(--s-3);
}
.card .card-icon svg { width: 24px; height: 24px; }
.card ul.ticks { margin-top: var(--s-3); display: grid; gap: 0.5rem; }
.card ul.ticks li { font-size: var(--text-sm); color: var(--muted); display:flex; gap:0.55em; align-items:flex-start; }
.card ul.ticks li::before { content:""; flex:none; width: 16px; height:16px; margin-top: 3px; border-radius: 50%; background: var(--ember-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23a8481c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/10px no-repeat; }

/* ---------- Stats / results ---------- */
.stats { display:grid; grid-template-columns: repeat(3,1fr); gap: var(--s-4); }
.stat {
  background: var(--ink); color: var(--on-dark); border-radius: var(--radius);
  padding: clamp(1.5rem, 2.3vw, 2.2rem);
  position: relative; overflow: hidden;
}
.stat::after { content:""; position:absolute; right:-30px; top:-30px; width:120px; height:120px; border-radius:50%; background: radial-gradient(circle, rgba(199,93,44,0.25), transparent 70%); }
.stat .big { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.1rem); line-height:1; color: var(--ember); font-weight: 500; position: relative; }
.stat .big .arrow { color: var(--on-dark-muted); font-size: 0.55em; vertical-align: middle; margin: 0 0.15em; }
.stat .stat-label { margin-top: var(--s-3); font-weight: 600; color: var(--on-dark); }
.stat p { font-size: var(--text-sm); color: var(--on-dark-soft); margin-top: 0.4rem; }

/* ---------- Audience tiles ---------- */
.tiles { display:grid; grid-template-columns: repeat(3,1fr); gap: var(--s-4); }
.tile {
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem,2vw,1.9rem);
  background: var(--surface); transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.tile .kicker { font-size: var(--text-cap); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ember); }
.tile h4 { margin: var(--s-2) 0; }
.tile p { font-size: var(--text-sm); color: var(--muted); }

/* ---------- About teaser / split ---------- */
.split { display:grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem,5vw,4.5rem); align-items:center; }
.split.rev { grid-template-columns: 1.15fr 0.85fr; }
.portrait {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden;
  background:
    radial-gradient(120% 120% at 30% 20%, #2c2922, var(--ink) 70%);
  box-shadow: var(--shadow-xl);
  display:grid; place-items:center;
}
.portrait img { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; }
.portrait .ph { text-align:center; color: var(--on-dark-muted); padding: var(--s-4); }
.portrait .ph .mono { font-family: var(--font-display); font-size: clamp(3rem,7vw,5rem); color: var(--ember); line-height:1; }
.portrait .ph .cap { font-size: var(--text-cap); letter-spacing: 0.14em; text-transform: uppercase; margin-top: var(--s-3); }
.portrait .frame { position:absolute; inset:10px; border:1px solid rgba(246,241,232,0.16); border-radius: calc(var(--radius-lg) - 8px); pointer-events:none; }
.portrait .badge {
  position:absolute; left: 14px; bottom: 14px; z-index:2;
  background: rgba(27,26,23,0.72); backdrop-filter: blur(8px);
  color: var(--on-dark); border:1px solid var(--line-dark);
  border-radius: var(--radius-pill); padding: 0.5em 0.95em; font-size: var(--text-cap); font-weight:600;
  display:flex; align-items:center; gap:0.5em;
}
.portrait .badge .dot { width:7px;height:7px;border-radius:50%;background:var(--ember); }

/* ---------- Marquee divider ---------- */
.marquee {
  background: var(--ink); color: var(--on-dark);
  padding-block: clamp(1rem, 2vw, 1.4rem);
  overflow: hidden; white-space: nowrap; position: relative;
  border-block: 1px solid var(--line-dark);
}
.marquee-track { display: inline-flex; align-items:center; gap: 2.5rem; animation: marquee 32s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-display); font-style: italic; font-size: clamp(1.1rem,2vw,1.6rem); color: var(--on-dark); }
.marquee-track .sep { color: var(--ember); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Steps (how I work) ---------- */
.steps { display:grid; grid-template-columns: repeat(4,1fr); gap: var(--s-4); counter-reset: step; }
.step { position: relative; padding-top: var(--s-4); border-top: 2px solid var(--line); }
.step .n { font-family: var(--font-display); font-size: 0.95rem; color: var(--ember); font-weight: 600; }
.step h4 { font-size: 1.15rem; margin: var(--s-2) 0; }
.step p { font-size: var(--text-sm); color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: var(--s-2); }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: box-shadow .35s var(--ease), border-color .35s var(--ease); }
.faq-item[open] { box-shadow: var(--shadow-md); border-color: transparent; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: clamp(1.1rem,1.8vw,1.5rem);
  display:flex; align-items:center; justify-content:space-between; gap: var(--s-3);
  font-family: var(--font-display); font-size: clamp(1.05rem,1.4vw,1.25rem); font-weight: 500; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary .icon { flex:none; width: 30px; height:30px; border-radius:50%; border:1.5px solid var(--line); display:grid; place-items:center; transition: transform .4s var(--ease), background-color .3s, border-color .3s; position: relative; }
.faq-item summary .icon::before, .faq-item summary .icon::after { content:""; position:absolute; background: var(--ink); border-radius:2px; transition: .3s var(--ease); }
.faq-item summary .icon::before { width: 12px; height: 2px; }
.faq-item summary .icon::after { width: 2px; height: 12px; }
.faq-item[open] summary .icon { background: var(--ember); border-color: var(--ember); transform: rotate(180deg); }
.faq-item[open] summary .icon::before, .faq-item[open] summary .icon::after { background: #fff; }
.faq-item[open] summary .icon::after { height: 0; }
.faq-answer { padding: 0 clamp(1.1rem,1.8vw,1.5rem) clamp(1.1rem,1.8vw,1.5rem); }
.faq-answer p { color: var(--text); font-size: var(--text-body); max-width: 68ch; }
.faq-answer p + p { margin-top: 0.8rem; }

/* ---------- CTA / Contact ---------- */
.cta-final { position: relative; overflow: hidden; }
.cta-final::before { content:""; position:absolute; bottom:-30%; left:-10%; width:50vw; height:50vw; max-width:600px; max-height:600px; background: radial-gradient(circle, rgba(199,93,44,0.18), transparent 65%); pointer-events:none; }
.contact-grid { display:grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem,5vw,4.5rem); align-items: start; }
.contact-methods { display:grid; gap: var(--s-2); }
.contact-method {
  display:flex; align-items:center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4); border:1px solid var(--line-dark); border-radius: var(--radius);
  background: rgba(246,241,232,0.04); transition: border-color .35s var(--ease), background-color .35s var(--ease), transform .35s var(--ease);
}
.contact-method:hover { border-color: var(--ember); transform: translateX(4px); background: rgba(246,241,232,0.07); }
.contact-method .ic { flex:none; width:42px;height:42px;border-radius:11px;display:grid;place-items:center;background: rgba(199,93,44,0.16); color: var(--ember); }
.contact-method .ic svg { width: 20px; height:20px; }
.contact-method .label { font-size: var(--text-cap); color: var(--on-dark-muted); }
.contact-method .val { font-weight: 600; color: var(--on-dark); }

/* form */
.form { display:grid; gap: var(--s-3); }
.field { display:grid; gap: 0.4rem; }
.field label { font-size: var(--text-cap); font-weight:600; color: var(--on-dark-soft); letter-spacing: 0.02em; }
.field input, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--on-dark);
  background: rgba(246,241,232,0.06); border:1.5px solid var(--line-dark); border-radius: var(--radius-sm);
  padding: 0.85em 1em; transition: border-color .3s var(--ease), background-color .3s var(--ease);
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--on-dark-muted); }
.field input:focus, .field textarea:focus { outline:none; border-color: var(--ember); background: rgba(246,241,232,0.1); }
.field textarea { resize: vertical; min-height: 120px; }
.form .btn { width: 100%; margin-top: var(--s-2); }
.form-note { font-size: var(--text-cap); color: var(--on-dark-muted); text-align:center; }
.form-success { display:none; padding: var(--s-4); border:1px solid var(--ember); border-radius: var(--radius); background: rgba(199,93,44,0.1); color: var(--on-dark); }
.form-success.show { display:block; }

/* newsletter inline */
.subscribe { display:flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-4); }
.subscribe input { flex:1; min-width: 200px; font-family:inherit; font-size:1rem; padding:0.85em 1.1em; border-radius: var(--radius-pill); border:1.5px solid var(--line); background: var(--surface); color: var(--text); }
.subscribe input:focus { outline:none; border-color: var(--ember); }
.subscribe .btn { flex:none; }
.subscribe-msg { font-size: var(--text-cap); color: var(--muted); margin-top: 0.6rem; min-height: 1.1em; }

/* ---------- Footer ---------- */
.footer { background: #141310; color: var(--on-dark-soft); padding-top: clamp(3.5rem,6vw,5rem); }
.footer .container { position: relative; z-index: 1; }
.footer-top { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-5); padding-bottom: var(--s-6); }
.footer .brand { color: var(--on-dark); }
.footer-blurb { margin-top: var(--s-3); font-size: var(--text-sm); color: var(--on-dark-muted); max-width: 34ch; }
.footer-col h5 { font-size: var(--text-cap); text-transform: uppercase; letter-spacing: 0.12em; color: var(--on-dark-muted); font-family: var(--font-body); font-weight: 700; margin-bottom: var(--s-3); }
.footer-col a { display:block; padding: 0.35rem 0; font-size: var(--text-sm); color: var(--on-dark-soft); transition: color .25s, transform .25s var(--ease); }
.footer-col a:hover { color: var(--ember); transform: translateX(3px); }
.footer-bottom { display:flex; flex-wrap:wrap; gap: var(--s-3); justify-content:space-between; align-items:center; padding-block: var(--s-4); border-top: 1px solid var(--line-dark); font-size: var(--text-cap); color: var(--on-dark-muted); }
.socials { display:flex; gap: var(--s-2); }
.socials a { width:38px;height:38px;border-radius:10px;display:grid;place-items:center;border:1px solid var(--line-dark); color: var(--on-dark-soft); transition: .3s var(--ease); }
.socials a:hover { color: var(--ember); border-color: var(--ember); transform: translateY(-3px); }
.socials svg { width:18px;height:18px; }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.r-left { transform: translateX(-44px); }
.js .reveal.r-right { transform: translateX(44px); }
.js .reveal.r-scale { transform: scale(0.94); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
.js .reveal[data-delay="3"] { transition-delay: 0.24s; }
.js .reveal[data-delay="4"] { transition-delay: 0.32s; }

/* scroll progress */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--ember), var(--ember-deep)); z-index: 200; transition: width 0.1s linear; }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: var(--text-cap); color: var(--muted); margin-bottom: var(--s-3); }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--ember); }
.crumb .sep { margin-inline: 0.5em; }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding-top: calc(var(--nav-h) + clamp(2.5rem,5vw,4rem)); padding-bottom: clamp(2rem,4vw,3.5rem); }

/* prose blocks */
.prose p { margin-bottom: 1.1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 { margin-top: var(--s-5); margin-bottom: var(--s-2); }

/* belief list */
.beliefs { display:grid; grid-template-columns: repeat(2,1fr); gap: var(--s-4); }
.belief { padding: var(--s-4); border-radius: var(--radius); background: var(--surface); border:1px solid var(--line); }
.belief .q { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); margin-bottom: 0.5rem; }
.belief p { font-size: var(--text-sm); color: var(--muted); }

/* experience timeline */
.timeline { display:grid; gap: var(--s-2); max-width: 760px; }
.tl-item { display:grid; grid-template-columns: 130px 1fr; gap: var(--s-4); padding: var(--s-4) 0; border-top:1px solid var(--line); }
.tl-item:first-child { border-top: none; }
.tl-when { font-size: var(--text-cap); color: var(--ember); font-weight: 700; letter-spacing: 0.04em; padding-top: 0.2rem; }
.tl-what h4 { font-size: 1.15rem; }
.tl-what .role { color: var(--muted); font-size: var(--text-sm); margin-bottom: 0.4rem; }
.tl-what p { font-size: var(--text-sm); color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero-copy { max-width: 100%; }
  .reclaim { max-width: 480px; }
  .pov-grid, .split, .split.rev, .contact-grid { grid-template-columns: 1fr; }
  .cards, .stats, .tiles { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .beliefs { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  :root { --nav-h: 64px; }
  .nav .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s-3) clamp(1.25rem,4vw,2.5rem) var(--s-5);
    transform: translateY(-12px); opacity:0; pointer-events:none;
    transition: transform .35s var(--ease), opacity .35s var(--ease);
    box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
  }
  body.menu-open .nav-menu { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-menu a { padding: 0.9rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-menu .nav-links a { display: block; }
  .nav-menu a::after { display:none; }
  .nav-menu .btn { display: inline-flex; margin-top: var(--s-3); width: 100%; }
  .cards, .stats, .tiles, .steps, .footer-top { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: var(--s-1); }
  .hero-trust { flex-direction: column; gap: 0.4rem; }
  .hero-trust .sep { display: none; }
  .btn-row .btn { width: 100%; }
}

/* ---------- Article / blog ---------- */
.article { max-width: 740px; margin-inline: auto; }
.article h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
.article-hero-img { display:block; width:100%; aspect-ratio: 1200/420; object-fit:cover; border:1px solid var(--line); border-radius: var(--radius-lg); margin: var(--s-5) 0 var(--s-2); box-shadow: var(--shadow-sm); }
.article-meta { display:flex; flex-wrap:wrap; gap: var(--s-2) var(--s-3); align-items:center; color: var(--muted); font-size: var(--text-sm); margin-top: var(--s-3); }
.article-meta .tag { color: var(--ember); font-weight:700; text-transform:uppercase; letter-spacing:0.1em; font-size: var(--text-cap); }
.article-body { margin-top: var(--s-5); }
.article-body p, .article-body li { font-size: 1.12rem; line-height: 1.75; color: var(--text); max-width: 68ch; }
.article-body p { margin-bottom: 1.15rem; }
.article-body h2 { font-size: var(--text-h3); margin: var(--s-6) 0 var(--s-3); }
.article-body h3 { font-size: var(--text-h4); margin: var(--s-5) 0 var(--s-2); }
.article-body ul { margin: var(--s-2) 0 var(--s-4) 1.2em; list-style: disc; }
.article-body li { margin-bottom: 0.5rem; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--ember-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.article-body p.lede, .lede { font-family: var(--font-display); font-size: clamp(1.25rem,2vw,1.55rem) !important; line-height:1.4 !important; color: var(--ink) !important; font-weight: 400; margin-bottom: var(--s-4); }
.callout { border-left: 3px solid var(--ember); background: var(--ember-tint); padding: var(--s-4); border-radius: 0 var(--radius) var(--radius) 0; margin: var(--s-5) 0; }
.callout p { margin: 0 !important; color: var(--ink) !important; font-size: 1.08rem !important; }
.takeaways { background: var(--ink); color: var(--on-dark); border-radius: var(--radius); padding: clamp(1.5rem,3vw,2rem); margin: var(--s-6) 0; }
.takeaways h3 { color: var(--on-dark); margin: 0 0 var(--s-3); }
.takeaways ul { list-style:none; margin: 0; display:grid; gap: var(--s-2); }
.takeaways li { color: var(--on-dark-soft) !important; padding-left: 1.6em; position:relative; font-size: 1.02rem !important; }
.takeaways li::before { content:"→"; position:absolute; left:0; color: var(--ember); font-weight:700; }
.author-box { display:flex; gap: var(--s-4); align-items:center; border:1px solid var(--line); border-radius: var(--radius); padding: var(--s-4); background: var(--surface); margin-top: var(--s-6); }
.author-box .ab-photo { flex:none; width:64px; height:64px; border-radius:50%; background: radial-gradient(120% 120% at 30% 20%, #2c2922, var(--ink)); display:grid; place-items:center; color: var(--ember); font-family: var(--font-display); font-size:1.4rem; overflow:hidden; position:relative; }
.author-box .ab-photo img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.author-box .ab-name { font-weight:700; color: var(--ink); }
.author-box .ab-bio { font-size: var(--text-sm); color: var(--muted); margin-top: 0.2rem; }
.post-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: var(--s-4); }
.post-card { display:block; border:1px solid var(--line); border-radius: var(--radius); padding: var(--s-5); background: var(--surface); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); height:100%; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.post-card .tag { color: var(--ember); font-weight:700; text-transform:uppercase; letter-spacing:0.1em; font-size: var(--text-cap); }
.post-card h3 { font-size: var(--text-h4); margin: var(--s-2) 0; }
.post-card p { font-size: var(--text-sm); color: var(--muted); }
.post-card .read { margin-top: var(--s-3); font-size: var(--text-cap); color: var(--ember); font-weight:600; }
@media (max-width:620px){ .post-grid { grid-template-columns:1fr; } .author-box{ flex-direction:column; text-align:center; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
}
