/* =====================================================================
   Anna Miller, Portfolio & Consulting. Version 2.
   Design language: "a warm, stitched-together story"
   Paper cream base, ink navy text, terracotta + amber accents.
   Editorial serif (Fraunces) + humanist sans (Inter) + Caveat notes.
   Signature motifs: a dotted thread that sews the page together,
   speech-bubble quotes, stitched badges, arch portrait frames.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --paper:        #FBF7F0;
  --paper-deep:   #F3EBDD;
  --card:         #FFFDF9;
  --ink:          #232733;
  --ink-strong:   #171B26;
  --ink-soft:     #5A5F6E;
  --terracotta:   #C2563B;
  --terracotta-d: #A7472F;
  --terracotta-t: #F3DDD5;
  --amber:        #E9A23B;
  --amber-t:      #F8E8CC;
  --slate:        #5C6F94;
  --slate-t:      #DFE5F0;
  --sage:         #6E8B6B;
  --sage-t:       #E2EBDF;
  --line:         #E6DCCB;
  --night:        #1B2030;
  --night-soft:   #262C40;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand:    "Caveat", "Segoe Script", cursive;

  --radius-s: 12px;
  --radius:   20px;
  --radius-l: 30px;

  --shadow-s: 0 1px 2px rgba(27, 32, 48, 0.05), 0 3px 10px rgba(27, 32, 48, 0.05);
  --shadow-m: 0 2px 6px rgba(27, 32, 48, 0.06), 0 14px 32px rgba(27, 32, 48, 0.09);
  --shadow-l: 0 6px 14px rgba(27, 32, 48, 0.08), 0 28px 60px rgba(27, 32, 48, 0.13);

  --wrap: 1140px;
  --wrap-narrow: 860px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* paper grain, laid over everything at very low strength */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-strong);
  line-height: 1.08;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.25; }

p { margin: 0 0 1.1em; text-wrap: pretty; }

a { color: var(--terracotta); text-underline-offset: 3px; }
a:hover { color: var(--terracotta-d); }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--amber-t); color: var(--ink-strong); }

/* themed scrollbar */
html { scrollbar-color: #CB7E5E var(--paper-deep); scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--paper-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #CB7E5E, var(--terracotta));
  border-radius: 8px;
  border: 3px solid var(--paper-deep);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: var(--wrap-narrow); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--night); color: #fff;
  padding: 10px 18px; z-index: 3000; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Decorative text helpers ---------- */
.serif-i { font-family: var(--font-display); font-style: italic; font-weight: 500; }

/* hand-drawn amber underline */
.mark { position: relative; white-space: nowrap; }
.mark > svg {
  position: absolute;
  left: 0; bottom: -0.1em;
  width: 100%; height: 0.32em;
  overflow: visible;
}
.mark > svg path {
  fill: none;
  stroke: var(--amber);
  stroke-width: 7;
  stroke-linecap: round;
  opacity: 0.85;
}

.hand {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--ink-soft);
  line-height: 1.3;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 36px; height: 0;
  border-top: 2px dashed var(--terracotta);
  opacity: 0.7;
}
.eyebrow .eyebrow-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0;
  color: var(--amber);
}

/* rotating hero word */
.rotate-word {
  display: inline-block;
  color: var(--terracotta);
  font-style: italic;
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.rotate-word.is-swapping {
  opacity: 0;
  transform: translateY(0.3em);
}

/* drop cap for editorial story openings */
.dropcap::first-letter {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 3.1em;
  float: left;
  line-height: 0.8;
  padding: 0.08em 0.14em 0 0;
  color: var(--terracotta);
}

/* stitched sticker badge */
.sticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1.6px dashed var(--terracotta);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-strong);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow-s);
}
.sticker .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px var(--sage-t);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--sage-t); }
  50%      { box-shadow: 0 0 0 6px var(--sage-t); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
}
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: linear-gradient(135deg, #D2654A, var(--terracotta));
  color: #fff;
  box-shadow: 0 6px 18px rgba(194, 86, 59, 0.32);
  will-change: transform;
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-d));
  color: #fff;
  box-shadow: 0 12px 28px rgba(194, 86, 59, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--ink-strong);
  border-color: var(--ink-strong);
}
.btn--ghost:hover {
  background: var(--ink-strong);
  color: var(--paper);
}

.btn--light { background: var(--paper); color: var(--ink-strong); }
.btn--light:hover { background: #fff; color: var(--ink-strong); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 240, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 18px rgba(27, 32, 48, 0.05);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  max-width: var(--wrap);
  margin: 0 auto;
}
.brand {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--ink-strong);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand .brand-dot { color: var(--terracotta); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: var(--paper-deep); color: var(--ink-strong); }
.nav-links a[aria-current="page"] {
  background: var(--ink-strong);
  color: var(--paper);
}
.nav-cta { margin-left: 10px; padding: 10px 20px; font-size: 0.95rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink-strong);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    display: none;
    box-shadow: var(--shadow-m);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .nav-cta { margin: 8px 0 0; text-align: center; justify-content: center; }
}

/* ---------- Scroll progress thread ---------- */
.thread-progress {
  position: fixed;
  top: 0; bottom: 0;
  left: 28px;
  width: 2px;
  z-index: 90;
  pointer-events: none;
}
.thread-progress::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, var(--line) 0 6px, transparent 6px 15px);
  background-size: 2px 15px;
}
.thread-progress-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--amber), var(--terracotta));
  transform: scaleY(0);
  transform-origin: top center;
}
@media (max-width: 1240px) { .thread-progress { display: none; } }

/* ---------- Back to top ---------- */
.back-top {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 95;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1.6px dashed var(--terracotta);
  background: var(--card);
  color: var(--terracotta);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-m);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.2s ease, color 0.2s ease;
}
.back-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--terracotta); color: #fff; }

/* ---------- Marquee ---------- */
.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 48px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 48px;
  min-width: 100%;
  justify-content: space-around;
  animation: marquee-scroll 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee.is-static .marquee-track { animation: none; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% - 48px)); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-strong);
  white-space: nowrap;
}
.marquee-item .spark { color: var(--amber); font-size: 1rem; }
.marquee-item em { color: var(--terracotta); font-style: italic; }

/* praise chip variant, used on the Kind Words page */
.marquee--chips { background: transparent; border: 0; padding: 8px 0; }
.praise-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow-s);
}
.praise-chip .spark { color: var(--amber); }

/* ---------- Thread divider ---------- */
.thread-divider {
  display: block;
  width: min(560px, 72vw);
  margin: 0 auto;
  overflow: visible;
}
.thread-divider path {
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 1 10;
  opacity: 0.65;
}
.thread-divider circle { fill: var(--amber); }

section { position: relative; }
.section { padding: 100px 0; }
.section--tight { padding: 72px 0; }
.section--deep { background: var(--paper-deep); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::before { display: none; }
.lede { font-size: 1.16rem; color: var(--ink-soft); }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 92px; overflow: visible; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.8rem, 6.4vw, 5rem);
  margin-bottom: 0.42em;
}
.hero-copy .lede { font-size: 1.2rem; max-width: 33em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-note { margin-top: 26px; }

/* arch portrait frame */
.portrait-stage { position: relative; justify-self: center; }
.portrait-frame {
  position: relative;
  width: min(390px, 80vw);
  border-radius: 999px 999px var(--radius-l) var(--radius-l);
  overflow: hidden;
  border: 6px solid var(--card);
  box-shadow: var(--shadow-l);
  background: var(--paper-deep);
}
.portrait-frame img { width: 100%; height: auto; }
.portrait-stage::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 999px 999px calc(var(--radius-l) + 14px) calc(var(--radius-l) + 14px);
  border: 2px dashed var(--amber);
  opacity: 0.75;
  transform: rotate(-2.2deg);
  pointer-events: none;
}
.float-chip {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-m);
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-strong);
  white-space: nowrap;
  z-index: 2;
}
.float-chip .chip-em { color: var(--terracotta); }
.chip-1 { top: 9%; left: -14%; animation: bob 5.2s ease-in-out infinite; }
.chip-2 { bottom: 18%; right: -15%; animation: bob 6.1s ease-in-out 0.8s infinite; }
.chip-3 { bottom: -5%; left: 3%; animation: bob 5.7s ease-in-out 0.4s infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
.portrait-caption {
  position: absolute;
  top: -36px; right: -4px;
  transform: rotate(6deg);
  color: var(--terracotta);
  font-size: 1.5rem;
  z-index: 2;
}

@media (max-width: 920px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .portrait-stage { margin-top: 8px; }
  .chip-1 { left: -2%; }
  .chip-2 { right: -2%; }
}

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--night);
  color: #EDE8DF;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(440px 220px at 12% 0%, rgba(233, 162, 59, 0.13), transparent 65%),
    radial-gradient(440px 240px at 88% 100%, rgba(194, 86, 59, 0.16), transparent 65%);
  pointer-events: none;
}
.stats-kicker {
  position: relative;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8E94A6;
  margin: 0 0 42px;
}
.stats-kicker .spark { color: var(--amber); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  position: relative;
}
.stat { text-align: center; }
.stat-figure {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.8vw, 3.1rem);
  font-weight: 600;
  color: #fff;
  display: block;
  line-height: 1.05;
  font-variant-numeric: proportional-nums;
}
.stat-figure .stat-accent { color: var(--amber); }
.stat-label { font-size: 0.92rem; color: #B9BECC; margin-top: 10px; display: block; }
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Glow cards (pointer-tracking highlight) ---------- */
.glow-card { position: relative; overflow: hidden; }
.glow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(233, 162, 59, 0.16), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.glow-card:hover::before { opacity: 1; }
.glow-card > * { position: relative; }

/* ---------- Bento grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}
.bento-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-s);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.bento-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-m);
  border-color: #DCCFB8;
}
.bento-tile h3 { margin-bottom: 0.3em; }
.bento-tile p { margin-bottom: 0; }
.bento-kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 10px;
}
.bento-figure {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1;
  color: var(--ink-strong);
}
.bento-tile--night {
  background: linear-gradient(150deg, var(--night-soft), var(--night));
  border-color: #303750;
  color: #C7CBD8;
}
.bento-tile--night h3, .bento-tile--night .bento-figure { color: #fff; }
.bento-tile--night .bento-kicker { color: var(--amber); }
.bento-tile--terra {
  background: linear-gradient(150deg, #D2654A, var(--terracotta-d));
  border-color: #B65540;
  color: #FFE9DF;
}
.bento-tile--terra h3, .bento-tile--terra .bento-figure { color: #fff; }
.bento-tile--terra .bento-kicker { color: var(--amber-t); }
.bento-tile--photo { padding: 0; overflow: hidden; }
.bento-tile--photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.bento-tile--night .fit-list li { color: #C7CBD8; }
.bento-tile--night .fit-list li::before { color: var(--amber); }
.bento-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bento-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.99rem;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.bento-list a:hover {
  border-color: var(--terracotta);
  background: var(--terracotta-t);
  transform: translateX(3px);
}
.bento-list .arrow { color: var(--terracotta); }

.bs-4  { grid-column: span 4; }
.bs-5  { grid-column: span 5; }
.bs-6  { grid-column: span 6; }
.bs-7  { grid-column: span 7; }
.bs-8  { grid-column: span 8; }
.bs-12 { grid-column: span 12; }
@media (max-width: 980px) {
  .bs-4, .bs-5, .bs-7, .bs-8 { grid-column: span 6; }
}
@media (max-width: 640px) {
  .bs-4, .bs-5, .bs-6, .bs-7, .bs-8 { grid-column: span 12; }
  .bento-tile { padding: 28px; }
}

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 24px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid--2, .card-grid--3 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow-s);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-m);
  border-color: #DCCFB8;
}
.card h3 { margin-bottom: 0.45em; }
.card p:last-child { margin-bottom: 0; }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
}
.card-icon--terracotta { background: var(--terracotta-t); }
.card-icon--amber  { background: var(--amber-t); }
.card-icon--slate  { background: var(--slate-t); }
.card-icon--sage   { background: var(--sage-t); }

.card-link {
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.card-link .arrow { transition: transform 0.18s ease; }
.card-link:hover .arrow { transform: translateX(4px); }

.card-num {
  position: absolute;
  top: 24px; right: 26px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--line);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1;
}

/* ---------- Speech-bubble quotes ---------- */
.bubble {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow-s);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bubble:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.bubble::after {
  content: "";
  position: absolute;
  left: 36px; bottom: -11px;
  width: 20px; height: 20px;
  background: var(--card);
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(-45deg);
  border-bottom-left-radius: 6px;
}
.bubble blockquote { margin: 0; font-size: 1.02rem; color: var(--ink); }
.bubble .quote-mark {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 0.6;
  color: var(--amber);
  display: block;
  margin-bottom: 14px;
}
.quote-attrib {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 26px;
}
.avatar-dot {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
  flex-shrink: 0;
}
.avatar-dot--terracotta { background: var(--terracotta); }
.avatar-dot--slate { background: var(--slate); }
.avatar-dot--sage  { background: var(--sage); }
.avatar-dot--amber { background: var(--amber); }
.avatar-dot--night { background: var(--night-soft); }
.quote-attrib .who { line-height: 1.35; }
.quote-attrib .who strong { display: block; color: var(--ink-strong); font-size: 0.98rem; }
.quote-attrib .who span { font-size: 0.86rem; color: var(--ink-soft); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 88px 0 60px; text-align: center; position: relative; overflow: visible; }
.page-hero .lede { max-width: 640px; margin-left: auto; margin-right: auto; }
.page-hero h1 .serif-i { color: var(--terracotta); }
.folio {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(8rem, 20vw, 14rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(194, 86, 59, 0.14);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.page-hero .wrap { position: relative; z-index: 1; }

/* =====================================================================
   Page-specific components
   ===================================================================== */

/* ----- About ----- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }

.polaroid {
  background: #fff;
  padding: 14px 14px 58px;
  border-radius: 8px;
  box-shadow: var(--shadow-m);
  transform: rotate(-2.2deg);
  position: relative;
  max-width: 430px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.polaroid:hover { transform: rotate(-0.6deg) translateY(-4px); box-shadow: var(--shadow-l); }
.polaroid img { border-radius: 4px; }
.polaroid .polaroid-note {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 1.45rem;
  color: var(--ink-soft);
}

/* thread-styled career timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 6px 0 0 36px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 9px; top: 4px; bottom: 4px;
  border-left: 2px dashed var(--line);
}
.timeline li { position: relative; padding-bottom: 30px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -33px; top: 7px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px var(--amber-t);
}
.timeline li:last-child::before { background: var(--terracotta); box-shadow: 0 0 0 5px var(--terracotta-t); }
.t-when {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 4px;
}
.timeline strong { color: var(--ink-strong); display: block; font-size: 1.05rem; }
.timeline p { margin: 4px 0 0; font-size: 0.96rem; color: var(--ink-soft); }

.quality-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.quality-list li {
  display: flex;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 16px 18px;
  align-items: flex-start;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.quality-list li:hover { transform: translateX(4px); border-color: #DCCFB8; }
.quality-list .q-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--amber-t);
  font-size: 1.1rem;
}
.quality-list strong { display: block; color: var(--ink-strong); }
.quality-list p { margin: 2px 0 0; font-size: 0.94rem; color: var(--ink-soft); }

.innovator-card {
  background: linear-gradient(135deg, #FFFDF9 0%, #FDF3E0 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 40px;
  box-shadow: var(--shadow-m);
  position: relative;
  overflow: hidden;
}
.innovator-card::after {
  content: "💡";
  position: absolute;
  right: -16px; bottom: -22px;
  font-size: 7rem;
  opacity: 0.12;
  transform: rotate(-12deg);
}
.innovator-stats { display: flex; gap: 38px; flex-wrap: wrap; margin-top: 22px; }
.innovator-stats .stat-figure { color: var(--ink-strong); font-size: 2.1rem; }
.innovator-stats .stat-label { color: var(--ink-soft); margin-top: 2px; }

.tool-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.tool-group-label {
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
}
.tool-chip {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.tool-chip:hover { border-color: var(--terracotta); transform: translateY(-2px); background: var(--terracotta-t); }

.value-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) { .value-strip { grid-template-columns: 1fr; } }

/* ----- Services ----- */
.service-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: var(--shadow-s);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-row:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.service-row + .service-row { margin-top: 22px; }
.service-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--terracotta);
  border-right: 2px dashed var(--line);
  padding-right: 8px;
  line-height: 1.2;
}
.service-body h3 { margin-bottom: 0.35em; }
.service-result {
  display: inline-block;
  background: var(--sage-t);
  color: #3F5240;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.fit-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.fit-list li { padding-left: 28px; position: relative; font-size: 0.97rem; color: var(--ink-soft); }
.fit-list li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--terracotta);
  font-weight: 700;
}
.deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.deliverables .tool-chip { font-size: 0.82rem; padding: 5px 12px; }
@media (max-width: 640px) {
  .service-row { grid-template-columns: 1fr; gap: 10px; }
  .service-num { border-right: 0; border-bottom: 2px dashed var(--line); padding: 0 0 8px; }
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
  position: relative;
}
.process-steps::before {
  content: "";
  position: absolute;
  top: 26px; left: 12%; right: 12%;
  border-top: 2px dashed var(--terracotta);
  opacity: 0.45;
}
.process-step { text-align: center; padding: 0 16px; position: relative; }
.process-step .step-dot {
  counter-increment: step;
  width: 52px; height: 52px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--terracotta);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--terracotta);
  position: relative;
  box-shadow: 0 0 0 6px var(--paper);
}
.process-step .step-dot::after { content: counter(step); }
.process-step h3 { font-size: 1.12rem; }
.process-step p { font-size: 0.93rem; color: var(--ink-soft); }
@media (max-width: 880px) {
  .process-steps { grid-template-columns: 1fr; gap: 30px; }
  .process-steps::before { display: none; }
}

details.faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 4px 22px;
  margin-bottom: 12px;
  transition: border-color 0.2s ease;
}
details.faq[open] { border-color: #DCCFB8; }
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-strong);
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--terracotta);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { color: var(--ink-soft); margin: 0 0 18px; }

/* ----- Work: sticky case-study deck ----- */
.case-stack { display: flex; flex-direction: column; gap: 44px; }
.case-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-m);
}
@media (min-width: 881px) {
  .case-card { position: sticky; }
  .case-stack .case-card:nth-child(1) { top: 92px; }
  .case-stack .case-card:nth-child(2) { top: 116px; }
  .case-stack .case-card:nth-child(3) { top: 140px; }
  .case-stack { padding-bottom: 40px; }
}
.case-card:nth-child(even) .case-visual { order: 2; }
.case-visual {
  padding: 46px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 8px;
  position: relative;
}
.case-visual--terracotta { background: linear-gradient(150deg, #C2563B 0%, #A7472F 100%); color: #FFE9DF; }
.case-visual--night { background: linear-gradient(150deg, #262C40 0%, #1B2030 100%); color: #D6DAE6; }
.case-visual--sage { background: linear-gradient(150deg, #6E8B6B 0%, #57724F 100%); color: #EAF2E6; }
.case-visual .big-figure {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.1rem);
  font-weight: 600;
  color: #fff;
  line-height: 1;
}
.case-visual .figure-label { font-size: 0.95rem; opacity: 0.92; max-width: 270px; }
.case-body { padding: 46px 42px; background: var(--card); }
.case-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}
.case-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.case-meta .tool-chip { font-size: 0.82rem; padding: 5px 12px; }
.case-quote {
  border-left: 3px solid var(--amber);
  margin: 22px 0 0;
  padding: 4px 0 4px 18px;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.case-quote cite { display: block; font-style: normal; font-size: 0.86rem; margin-top: 8px; color: var(--ink); font-weight: 600; }
@media (max-width: 880px) {
  .case-card { grid-template-columns: 1fr; }
  .case-card:nth-child(even) .case-visual { order: 0; }
  .case-visual { padding: 38px 28px; }
  .case-body { padding: 32px 26px; }
}

.media-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-s);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.media-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.media-card video { width: 100%; display: block; border-bottom: 1px solid var(--line); }
.media-card .media-body { padding: 22px 24px; }
.media-card h3 { font-size: 1.15rem; margin-bottom: 0.3em; }
.media-card p { font-size: 0.94rem; color: var(--ink-soft); margin: 0; }

.doc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 720px) { .doc-list { grid-template-columns: 1fr; } }
.doc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 16px 20px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.doc-item:hover {
  transform: translateY(-2px);
  border-color: var(--terracotta);
  box-shadow: var(--shadow-s);
  color: var(--ink);
}
.doc-item .doc-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--terracotta-t);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.doc-item strong { display: block; font-size: 0.97rem; color: var(--ink-strong); }
.doc-item span { font-size: 0.84rem; color: var(--ink-soft); }

.redaction-note {
  background: var(--slate-t);
  border: 1px solid #C8D2E4;
  border-radius: var(--radius-s);
  padding: 16px 20px;
  font-size: 0.93rem;
  color: #3D4C68;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

/* ----- Kind Words ----- */
.letter-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(30px, 4.5vw, 58px);
  box-shadow: var(--shadow-m);
  position: relative;
  background-image: repeating-linear-gradient(
    transparent 0 31px,
    rgba(230, 220, 203, 0.4) 31px 32px
  );
}
.letter-card .quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--amber);
  line-height: 0.5;
  display: block;
  margin-bottom: 24px;
}
.letter-card p { font-size: 1.05rem; }

.masonry { columns: 3 300px; column-gap: 24px; }
.masonry > * { break-inside: avoid; margin-bottom: 24px; }

.group-label { display: flex; align-items: center; gap: 18px; margin: 64px 0 28px; }
.group-label h2 { margin: 0; font-size: 1.5rem; }
.group-label::after { content: ""; flex: 1; border-top: 2px dashed var(--line); }
.group-label .g-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ----- Contact ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-s);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-m);
  border-color: var(--terracotta);
  color: var(--ink);
}
.contact-card + .contact-card { margin-top: 18px; }
.contact-card .cc-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.contact-card strong { display: block; font-size: 1.1rem; color: var(--ink-strong); font-family: var(--font-display); }
.contact-card span { color: var(--ink-soft); font-size: 0.95rem; }

.expect-list { list-style: none; margin: 0; padding: 0; counter-reset: expect; }
.expect-list li {
  counter-increment: expect;
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
}
.expect-list li:last-child { border-bottom: 0; }
.expect-list li::before {
  content: counter(expect, decimal-leading-zero);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--terracotta);
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1.4;
}
.expect-list strong { color: var(--ink-strong); display: block; }
.expect-list p { margin: 2px 0 0; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--night);
  color: #B9BECC;
  margin-top: 110px;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: min(680px, 86vw);
  height: 2px;
  background-image: linear-gradient(90deg, var(--amber) 0 6px, transparent 6px 16px);
  background-size: 16px 2px;
  opacity: 0.8;
}
.footer-cta {
  padding: 88px 0 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-cta .eyebrow { color: var(--amber); }
.footer-cta .eyebrow::before { border-top-color: var(--amber); }
.footer-cta h2 {
  color: #fff;
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  max-width: 14em;
  margin-bottom: 26px;
}
.footer-cta h2 .serif-i { color: var(--amber); }
.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  padding-bottom: 8px;
  border-bottom: 2px dashed var(--amber);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-mail:hover { color: var(--amber); border-bottom-style: solid; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 52px 0 44px;
}
.site-footer .brand { color: #fff; font-size: 1.6rem; }
.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #B9BECC; text-decoration: none; transition: color 0.15s ease; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 26px 0 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #8E94A6;
}
.footer-bottom .hand { color: var(--amber); font-size: 1.25rem; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
  .marquee-track { animation: none !important; }
}
