/* =========================================================
   Kiara Gelle · UGC portfolio
   Same brand as kiaragelle.com: burgundy + butter on cream,
   Inter Tight / Instrument Serif / Pinyon Script
   ========================================================= */

:root {
  --burgundy: #7B1C2E;
  --burgundy-deep: #5C1222;
  --burgundy-ink: #3A0C16;
  --butter: #F3D96B;
  --butter-soft: #FCE9A6;
  --cream: #FFF6E6;
  --white: #FFFDF8;
  --ink: #2B1518;
  --ink-soft: #6E4B50;
  --line: rgba(123, 28, 46, .18);

  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;

  --gutter: clamp(16px, 4.5vw, 64px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--cream);
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .48 0 0 0 0 .11 0 0 0 0 .18 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--butter); color: var(--burgundy-ink); }
:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.035em; line-height: .98; color: var(--burgundy); }
h1 em, h2 em, .hero-sub em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
h2 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.4rem); }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.kicker {
  font-family: var(--script); font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.7rem); line-height: 1;
  color: var(--burgundy); margin: 0 0 .35em; display: inline-block;
  transform: rotate(-3deg); transform-origin: left center;
}
.kicker-light { color: var(--butter); }
.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-sub { color: var(--ink-soft); font-size: 1.08em; margin-top: 1.1em; max-width: 580px; }
.muted { color: var(--ink-soft); }
em { font-style: italic; }

.btn {
  display: inline-flex; align-items: center; gap: .55em;
  background: var(--burgundy); color: var(--cream); border: 0; border-radius: 3px;
  padding: .95em 1.4em; font-weight: 700; font-size: 1rem; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer; transition: background .2s;
}
.btn span { transition: transform .25s var(--ease); }
.btn:hover { background: var(--burgundy-deep); }
.btn:hover span { transform: translateY(2px); }
.text-link {
  font-weight: 600; text-decoration: none; color: var(--burgundy);
  background: linear-gradient(var(--butter), var(--butter)) no-repeat 0 92% / 100% .38em;
  padding: 0 .1em; transition: background-size .25s var(--ease);
}
.text-link:hover { background-size: 100% 100%; }

.hl {
  background: linear-gradient(100deg, transparent 0 .2em, var(--butter) .2em calc(100% - .15em), transparent calc(100% - .15em)) no-repeat 0 80% / 0% .6em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 1.1s var(--ease); padding: 0 .06em;
}
.hl.on { background-size: 100% .6em; }

/* =============== NAV =============== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter); transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.scrolled {
  background: rgba(255, 246, 230, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line); padding-block: 8px;
}
.wordmark { font-family: var(--script); font-size: 2rem; line-height: 1; color: var(--burgundy); text-decoration: none; padding-top: 4px; }
.nav-links { display: flex; gap: clamp(18px, 2.4vw, 34px); align-items: center; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .98rem; position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--burgundy);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links .nav-hi { color: var(--burgundy); font-weight: 700; }
.nav-links .nav-hi::after { transform: scaleX(1); background: var(--butter); height: 6px; bottom: 3px; z-index: -1; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; font-weight: 700; color: var(--burgundy); padding: 8px 0; }

/* =============== HERO =============== */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(116px, 15vh, 160px) var(--gutter) clamp(64px, 8vw, 100px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center;
}
.hero h1 { font-size: clamp(3.6rem, 1.6rem + 7vw, 8rem); letter-spacing: -.045em; margin-bottom: .2em; }
.hero-sub { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; color: var(--ink); max-width: 15em; }
.hero-sub em { color: var(--burgundy); }
.hero-stats { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.65rem); color: var(--ink-soft); margin-bottom: 1.3em; }
.hero-stats .hl { color: var(--burgundy); font-style: normal; font-family: var(--sans); font-weight: 800; letter-spacing: -.02em; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

/* fanned video cards */
.fan { position: relative; height: clamp(360px, 38vw, 520px); }
.fan-card {
  --spread: 26%;
  position: absolute; top: 50%; left: 50%;
  width: 35%; aspect-ratio: 9 / 16; padding: 0; border: 6px solid var(--white); border-radius: 10px;
  background: var(--white); overflow: hidden; cursor: pointer;
  translate: calc(-50% + (var(--i) - 2) * var(--spread) * 2.2) -50%;
  rotate: calc((var(--i) - 2) * 7deg);
  box-shadow: 0 18px 34px -18px rgba(58, 12, 22, .5);
  transition: translate .5s var(--ease), rotate .5s var(--ease), scale .3s var(--ease);
  animation: deal .9s var(--ease) both; animation-delay: calc(.12s * var(--i) + .2s);
}
.fan-card:nth-child(1), .fan-card:nth-child(5) { z-index: 1; }
.fan-card:nth-child(2), .fan-card:nth-child(4) { z-index: 2; }
.fan-card:nth-child(3) { z-index: 3; }
.fan-card img { width: 100%; height: 100%; object-fit: cover; }
.fan-card:hover, .fan-card:focus-visible { scale: 1.06; z-index: 5; }
.fan:hover .fan-card { --spread: 28%; }
@keyframes deal { from { opacity: 0; translate: -50% -40%; rotate: 0deg; } }
.fan-hint {
  position: absolute; right: 2%; bottom: -4%; margin: 0; z-index: 6;
  font-family: var(--script); font-size: 1.9rem; color: var(--burgundy); rotate: -6deg;
}

/* =============== BRAND TAPE =============== */
.tape-strip {
  background: var(--burgundy); color: var(--butter); rotate: -1.6deg; margin: 0 -20px; overflow: hidden;
  padding: 14px 0; position: relative; z-index: 3; box-shadow: 0 10px 24px -14px rgba(58, 12, 22, .5);
}
.tape-track {
  display: flex; align-items: center; gap: 28px; width: max-content; animation: slide 60s linear infinite;
  font-weight: 800; font-size: clamp(1.05rem, .9rem + .7vw, 1.5rem); text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap;
}
.tape-track i {
  width: .8em; height: .8em; background: var(--butter-soft); display: inline-block;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
@keyframes slide { to { transform: translateX(-50%); } }

/* =============== ABOUT =============== */
.about {
  padding-top: clamp(90px, 11vw, 150px); padding-bottom: clamp(60px, 8vw, 110px);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center;
}
.about h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); margin-bottom: .6em; line-height: 1.02; }
.about-text > p:not(.kicker) { max-width: 36em; font-size: 1.05em; }
.about-text .btn { margin-top: 10px; }
.index-card {
  background: var(--white); border-top: 3px solid var(--burgundy); padding: 18px 26px 12px; rotate: 1.2deg;
  box-shadow: 0 16px 34px -22px rgba(58, 12, 22, .5);
}
.index-title { font-family: var(--script); font-size: 2.1rem; color: var(--burgundy); margin: 0 0 4px; line-height: 1.2; }
.index-card dl { margin: 0; }
.index-card dl div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; min-height: 42px; align-items: center; border-bottom: 1px solid rgba(123, 28, 46, .13); padding: 4px 0; }
.index-card dl div:last-child { border-bottom: 0; }
.index-card dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--ink-soft); }
.index-card dd { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.2; }

/* =============== RESULTS =============== */
.results { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(90px, 11vw, 150px); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--burgundy); }
.stat { padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 28px) clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--line); }
.stat:not(:nth-child(3n + 1)) { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--line); }
.stat p { margin: 0; }
.ctx { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--ink-soft); }
.stat .num { font-weight: 900; font-size: clamp(3rem, 2rem + 3.6vw, 5.4rem); letter-spacing: -.05em; line-height: 1; color: var(--burgundy); margin: .2em 0 .12em; }
.lbl { font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.2; color: var(--ink); }
.stat-hl .num { display: inline-block; background: linear-gradient(transparent 58%, var(--butter) 58% 92%, transparent 92%); padding: 0 .06em; }

/* =============== RECEIPTS =============== */
.receipts { background: var(--burgundy); color: var(--cream); padding: clamp(90px, 11vw, 150px) 0; }
.receipts h2 { color: var(--cream); }
.receipts h2 em { color: var(--butter); }
.receipts .section-sub { color: rgba(255, 246, 230, .82); }
.receipt-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 44px); align-items: start; }
.receipt {
  position: relative; margin: 0; background: var(--white); color: var(--ink);
  padding: 22px 18px 16px; rotate: var(--r, 0deg);
  box-shadow: 0 24px 44px -24px rgba(0, 0, 0, .6);
}
.js .receipt.reveal { transform: translateY(18px); }
.js .receipt.reveal.in { transform: none; }
.tape {
  position: absolute; top: -14px; left: 50%; width: 110px; height: 30px; translate: -50% 0; rotate: -4deg;
  background: rgba(243, 217, 107, .85);
  clip-path: polygon(3% 0, 97% 4%, 100% 22%, 97% 45%, 100% 70%, 96% 100%, 4% 96%, 0 74%, 3% 50%, 0 24%);
}
.tape-r { rotate: 5deg; }
.receipt-head { display: block; margin-bottom: 14px; }
.receipt-head span { display: block; }
.acc { font-size: .72rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 700; color: var(--ink-soft); }
.big { font-weight: 900; font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); letter-spacing: -.05em; color: var(--burgundy); line-height: 1; margin-top: 6px; }
.receipt-head .sub { font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--ink-soft); }
.receipt img { width: 100%; max-height: 420px; object-fit: cover; object-position: top; border: 1px solid var(--line); }
.receipt-foot { margin: 14px 0 0; }
.receipt-foot div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.receipt-foot div:last-child { border-bottom: 0; }
.receipt-foot dt { color: var(--ink-soft); }
.receipt-foot dd { margin: 0; font-weight: 700; color: var(--ink); }
.receipt-foot div:first-child dd { color: var(--burgundy); }

/* =============== WORK =============== */
.work { padding-top: clamp(90px, 11vw, 150px); padding-bottom: clamp(50px, 6vw, 80px); }
.niche {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); gap: clamp(20px, 4vw, 60px);
  padding: clamp(28px, 3.5vw, 44px) 0; border-top: 1px solid var(--line); align-items: start;
}
.niche:first-of-type { border-top: 1.5px solid var(--burgundy); }
.niche-name { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem); letter-spacing: -.01em; line-height: 1.05; position: sticky; top: 90px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px) clamp(12px, 1.8vw, 24px); max-width: 720px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.thumb { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: var(--burgundy-ink); box-shadow: 0 14px 26px -18px rgba(58, 12, 22, .6); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile:hover .thumb img, .tile:focus-visible .thumb img { transform: scale(1.05); }
.play {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; translate: -50% -50%; border-radius: 50%;
  background: var(--butter); opacity: 0; scale: .8; transition: opacity .3s, scale .3s var(--ease);
}
.play::after { content: ""; position: absolute; left: 54%; top: 50%; translate: -50% -50%; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--burgundy); }
.tile:hover .play, .tile:focus-visible .play { opacity: 1; scale: 1; }
.t-brand { font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; color: var(--burgundy); margin-top: 12px; line-height: 1.2; }
.t-fmt { font-family: var(--serif); font-style: italic; font-size: 1.02rem; color: var(--ink-soft); }

/* =============== CASE STUDY =============== */
.case { padding-top: clamp(60px, 8vw, 110px); padding-bottom: clamp(90px, 11vw, 150px); }
.case-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.case-phone { display: block; text-decoration: none; justify-self: center; width: min(100%, 300px); }
.phone {
  display: block; position: relative; aspect-ratio: 9 / 18.6; background: #120508; border-radius: 13% / 6.3%; padding: 3.2%;
  box-shadow: 0 30px 60px -24px rgba(58, 12, 22, .6); rotate: -3deg; transition: rotate .4s var(--ease);
}
.case-phone:hover .phone { rotate: 0deg; }
.phone-screen { display: block; width: 100%; height: 100%; border-radius: 10% / 4.9%; overflow: hidden; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.case-watch { display: block; text-align: center; margin-top: 16px; font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--burgundy); }
.case-agg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--burgundy); margin-bottom: 22px; }
.agg { padding: 18px 12px 16px 0; }
.agg:not(:first-child) { padding-left: 14px; border-left: 1px solid var(--line); }
.agg p { margin: 0; }
.agg .num { font-weight: 900; font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem); letter-spacing: -.05em; line-height: 1; color: var(--burgundy); }
.agg .lbl { font-size: 1.02rem; margin-top: 6px; color: var(--ink-soft); }
.agg-hl .num { background: linear-gradient(transparent 58%, var(--butter) 58% 92%, transparent 92%); display: inline-block; }
.case-lead { font-size: 1.08em; max-width: 36em; }
.case-table { margin-top: 26px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.ct-row { display: grid; grid-template-columns: 56px repeat(4, minmax(0, 1fr)) 90px; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .25s; }
a.ct-row:hover { background: rgba(252, 233, 166, .5); }
.ct-head { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--ink-soft); padding: 10px 0; }
.ct-row span:first-child { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--burgundy); }
.ct-head span:first-child { font-family: var(--sans); font-style: normal; font-size: .72rem; color: var(--ink-soft); }
.ct-row .b { font-weight: 800; color: var(--burgundy); }
.ct-row .go { font-weight: 600; color: var(--burgundy); text-align: right; }
.case-note { font-family: var(--serif); font-style: italic; color: var(--ink-soft); margin-top: 12px; }

/* =============== SERVICES =============== */
.services-sec { padding-bottom: clamp(90px, 11vw, 150px); }
.services { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--burgundy); }
.service {
  display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start;
  padding: clamp(26px, 3.2vw, 40px) 0; border-bottom: 1px solid var(--line); position: relative;
}
.service::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); z-index: -1; background: var(--butter-soft); opacity: 0; transition: opacity .3s; }
.service:hover::before { opacity: .55; }
.service .num { font-family: var(--serif); font-style: italic; font-size: 2.2rem; color: var(--burgundy); line-height: 1; }
.svc-tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--ink-soft); margin: 0 0 6px; }
.service h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem); }
.service > p { margin: 0; }
.service ul { list-style: none; margin: 0; padding: 0; font-family: var(--serif); font-style: italic; font-size: 1.12rem; line-height: 1.35; color: var(--ink-soft); }
.service li { padding: 2px 0 2px 18px; position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 1.5px; background: var(--burgundy); }

/* =============== CONTACT + FOOTER =============== */
.footer { background: var(--burgundy); color: var(--cream); padding: clamp(90px, 11vw, 150px) var(--gutter) 40px; }
.cta { max-width: 860px; }
.footer h2 { color: var(--cream); font-size: clamp(2.4rem, 1.4rem + 4vw, 5rem); }
.footer h2 em { color: var(--butter); }
.cta-sub { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--butter-soft); margin: .7em 0 1em; }
.cta-mail {
  display: inline-block; font-weight: 800; font-size: clamp(1.25rem, .9rem + 1.8vw, 2.3rem); letter-spacing: -.03em;
  text-decoration: none; color: var(--cream); overflow-wrap: anywhere;
  background: linear-gradient(var(--butter), var(--butter)) no-repeat 0 95% / 100% .14em; padding-bottom: .08em;
  transition: color .25s, background-size .3s var(--ease);
}
.cta-mail:hover { color: var(--burgundy-ink); background-size: 100% 100%; }
.footer-mark { font-family: var(--script); color: var(--butter); font-size: clamp(4.4rem, 2rem + 12vw, 12rem); line-height: 1.15; margin: clamp(60px, 8vw, 110px) 0 0; white-space: nowrap; }
.footer-cols { display: grid; grid-template-columns: auto auto 1fr; gap: 28px clamp(40px, 7vw, 110px); border-top: 1px solid rgba(255, 246, 230, .2); padding-top: 28px; margin-top: 10px; }
.footer-cols a { display: block; text-decoration: none; padding: 3px 0; font-weight: 500; }
.footer-cols a:hover { color: var(--butter); }
.footer-h { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--butter-soft); margin: 0 0 6px; }
.footer-small { justify-self: end; align-self: end; text-align: right; color: rgba(255, 246, 230, .65); font-size: .9rem; margin: 0; }

/* =============== VIDEO MODAL =============== */
.modal {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
  background: rgba(58, 12, 22, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s;
}
.modal[hidden] { display: none; }
.modal.open { opacity: 1; }
.modal-box { position: relative; width: min(400px, 100%); }
.modal video { width: 100%; max-height: 78vh; aspect-ratio: 9 / 16; object-fit: contain; background: #000; border-radius: 12px; }
.modal-x { position: absolute; top: -42px; right: 0; background: none; border: 0; color: var(--cream); font-weight: 700; cursor: pointer; padding: 8px 0; }
.modal-cap { margin: 12px 0 0; color: var(--cream); }
.modal-cap b { font-weight: 800; }
.modal-cap span { font-family: var(--serif); font-style: italic; color: var(--butter-soft); font-size: 1.1rem; margin-left: 6px; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* =============== RESPONSIVE =============== */
@media (max-width: 1080px) {
  .service { grid-template-columns: 64px minmax(0, 1fr); gap: 8px 18px; }
  .service > div, .service > p, .service ul { grid-column: 2; }
  .service > p { margin-top: 4px; }
  .service ul { margin-top: 6px; }
  .ct-row { grid-template-columns: 44px repeat(4, minmax(0, 1fr)) 70px; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 100px; }
  .fan { height: clamp(330px, 80vw, 480px); margin-top: 10px; }
  .about { grid-template-columns: 1fr; }
  .index-card { max-width: 480px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: clamp(16px, 3vw, 28px); border-left: 1px solid var(--line); }
  .receipt-row { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; gap: 48px; }
  .niche { grid-template-columns: 1fr; gap: 16px; }
  .niche-name { position: static; }
  .case-grid { grid-template-columns: 1fr; }
  .case-phone { width: min(70%, 260px); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-small { grid-column: 1 / -1; justify-self: start; text-align: left; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 58px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--cream); padding: 8px var(--gutter) 20px; box-shadow: 0 20px 30px -20px rgba(58, 12, 22, .3);
    transform: translateY(-10px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .nav-links a { font-size: 1.4rem; font-weight: 700; padding: 10px 0; color: var(--burgundy); }
  .nav-links a::after { display: none; }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.open { background: var(--cream); }
  .menu-btn { display: block; }
  .hero h1 { font-size: clamp(3.2rem, 17vw, 4.6rem); }
  .fan-card { width: 34%; border-width: 4px; --spread: 19%; }
  .fan-hint { font-size: 1.5rem; bottom: -6%; }
  .tape-strip { padding: 10px 0; }
  .tiles { gap: 14px 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .t-brand { font-size: .9rem; margin-top: 8px; }
  .t-fmt { font-size: .88rem; line-height: 1.2; }
  .play { width: 42px; height: 42px; }
  .stat .num { font-size: clamp(2.3rem, 11vw, 3rem); }
  .lbl { font-size: 1.05rem; }
  .case-agg { grid-template-columns: 1fr 1fr; }
  .agg:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .agg:nth-child(4) { border-top: 1px solid var(--line); }
  .ct-row { grid-template-columns: 30px repeat(4, minmax(0, 1fr)) 26px; gap: 6px; font-size: .9rem; }
  .ct-head { font-size: .6rem; letter-spacing: .06em; }
  .ct-head span:first-child { visibility: hidden; }
  .ct-row .go { font-size: 0; }
  .ct-row .go::after { content: "↗"; font-size: 1rem; }
  .index-card { padding: 14px 18px 10px; }
  .index-card dl div { grid-template-columns: 84px 1fr; }
  .index-card dd { font-size: 1.05rem; }
  .footer-mark { font-size: clamp(3.6rem, 20vw, 6rem); }
}

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