/* ==========================================================================
   USA Renovation Pros — design tokens
   ========================================================================== */
:root {
  --ink: #282825;
  --ink-soft: #5d5d58;
  --paper: #f4f4f2;
  --paper-2: #f8f8f7;
  --night: #292a2e;
  --black: #050506;
  --violet: #b48cff;
  --orange: #e8834a;
  --green: #3f8f6b;
  --red: #e2554f;
  --blue: #2f5be0;
  --line: rgba(40, 40, 37, .12);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nav-h: 68px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.wrap-narrow { width: min(720px, 100% - 40px); margin-inline: auto; }
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.display em, h1 em { font-style: italic; }
.kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }

/* Smooth cross-page transitions (Chrome/Edge/Safari 18+) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .45s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .6s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-30px) scale(.98); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(40px); } }
.nav { view-transition-name: nav; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .62em 1.15em; border-radius: 10px;
  font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: transform .3s var(--ease), background .25s, color .25s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: #111; color: #fff; }
.btn--dark:hover { box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.btn--light { background: #fff; color: #111; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--outline-light:hover { background: #fff; color: #111; }
.btn--pin { background: #e60023; color: #fff; }
.link-arrow { font-weight: 700; font-size: 15px; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: transform .45s var(--ease), border-color .3s;
}
.nav.is-scrolled { border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; width: min(1240px, 100% - 40px); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: baseline; gap: 6px; text-decoration: none; }
.logo__mark { font-family: var(--sans); font-weight: 800; font-size: 11px; letter-spacing: .12em; background: #111; color: #fff; padding: 3px 6px 2px; border-radius: 5px; transform: translateY(-4px); }
.logo__word { font-family: var(--serif); font-size: 27px; letter-spacing: -.01em; }
.logo__word em { color: var(--violet); }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__link { background: none; border: 0; padding: 8px 12px; font-size: 14.5px; font-weight: 500; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; }
.nav__link:hover { background: rgba(0,0,0,.05); }
.nav__cta { display: flex; gap: 10px; margin-left: 14px; }
.nav__drop { position: relative; }
.nav__menu {
  position: absolute; top: calc(100% + 10px); left: -10px; width: 340px;
  background: #fff; border-radius: 16px; padding: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,.14), 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top left;
  transition: .3s var(--ease);
}
.nav__drop:hover .nav__menu, .nav__drop.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__drop:hover [data-drop] svg, .nav__drop.is-open [data-drop] svg { transform: rotate(180deg); }
[data-drop] svg { transition: transform .3s; }
.nav__menu a { display: flex; gap: 12px; padding: 12px; border-radius: 10px; text-decoration: none; }
.nav__menu a:hover { background: var(--paper); }
.nav__menu strong { display: block; font-size: 14.5px; }
.nav__menu small { display: block; font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; }
.nav__burger { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: .35s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav--open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav--open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto; height: calc(100dvh - var(--nav-h));
    flex-direction: column; align-items: stretch; gap: 0; padding: 20px;
    background: #fff; overflow-y: auto;
    clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease);
  }
  .nav--open .nav__links { clip-path: inset(0); }
  .nav__link { font-family: var(--serif); font-size: 30px; padding: 10px 4px; justify-content: space-between; width: 100%; }
  .nav__menu { position: static; width: auto; box-shadow: none; display: none; opacity: 1; visibility: visible; transform: none; padding: 0 0 8px; }
  .nav__drop.is-open .nav__menu { display: block; }
  .nav__cta { margin: 20px 0 0; }
  .nav__cta .btn { flex: 1; justify-content: center; padding: 14px; }
}

/* ==========================================================================
   Section edges (torn paper / wave / brush)
   ========================================================================== */
.edge { position: absolute; left: 0; right: 0; height: clamp(28px, 5.5vw, 80px); pointer-events: none; z-index: 2; }
.edge svg { width: 100%; height: 100%; }
.edge--top { top: 1px; transform: translateY(-100%); }

/* ==========================================================================
   1. Hero — sticky, with a starfield; the next section slides over it
   ========================================================================== */
.hero {
  --p: 0; /* 0 → 1 as the sheet covers it, set by main.js */
  position: sticky; top: 0; z-index: 0;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  background: var(--night); color: #fff; overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 20px 120px;
}
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__glow { position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(to bottom, transparent, #3b3456 75%, #4a3f6c); pointer-events: none; }
.hero__content { position: relative; z-index: 2; max-width: 900px; transform: translateY(calc(var(--p) * -60px)) scale(calc(1 - var(--p) * .08)); opacity: calc(1 - var(--p) * 1.2); }
.hero__title { font-size: clamp(52px, 9vw, 112px); line-height: .98; }
.hero__title em { color: var(--violet); }
.hero__sub { max-width: 520px; margin: 26px auto 34px; font-size: clamp(16px, 1.5vw, 19px); font-weight: 500; color: rgba(255,255,255,.82); }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__doodle { position: absolute; z-index: 1; color: rgba(255,255,255,.75); width: clamp(70px, 9vw, 130px); }
.hero__doodle--a { left: 6%; top: 30%; animation: bob 7s ease-in-out infinite; }
.hero__doodle--b { right: 7%; top: 58%; animation: bob 8s ease-in-out -2s infinite; color: var(--violet); }
.hero__doodle--c { right: 14%; top: 18%; width: clamp(50px, 6vw, 90px); animation: bob 6s ease-in-out -4s infinite; }
.hero__cursor { position: absolute; z-index: 2; left: 70%; top: 44%; width: 38px; animation: cursor 9s ease-in-out infinite; filter: drop-shadow(0 4px 10px rgba(180,140,255,.4)); }
@keyframes bob { 50% { translate: 0 -14px; rotate: 4deg; } }
@keyframes cursor { 0%, 100% { translate: 0 0; } 30% { translate: -40px 30px; } 60% { translate: 30px 50px; } }
@media (max-width: 700px) { .hero__doodle--a { top: 76%; left: 4%; } .hero__doodle--c, .hero__cursor { display: none; } }

/* Inner-page hero (category, post, about…) */
.page-hero {
  --p: 0;
  position: sticky; top: 0; z-index: 0;
  min-height: 62vh; display: flex; align-items: center;
  background: radial-gradient(ellipse at 50% 120%, color-mix(in srgb, var(--c) 45%, var(--night)), var(--night) 65%);
  color: #fff; overflow: hidden;
  padding: calc(var(--nav-h) + 50px) 0 110px;
}
.page-hero__inner { position: relative; z-index: 1; text-align: center; transform: translateY(calc(var(--p) * -50px)); opacity: calc(1 - var(--p) * 1.2); }
.page-hero h1 { font-size: clamp(44px, 7vw, 92px); margin: 14px auto 18px; max-width: 980px; }
.page-hero h1 em { color: var(--c); }
.page-hero p { max-width: 600px; margin: 0 auto; color: rgba(255,255,255,.8); font-size: 18px; }
.page-hero .kicker { color: var(--c); }
.page-hero--post h1 { font-size: clamp(38px, 5.6vw, 76px); }
.post-meta { display: block; margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.6); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 30px; }
.chip { padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; text-decoration: none; border: 1.5px solid rgba(255,255,255,.3); color: inherit; transition: .25s; }
.chip:hover, .chip.is-active { background: #fff; color: #111; border-color: #fff; }

/* ==========================================================================
   2. Sheet — light paper section that slides over the hero
   ========================================================================== */
.sheet { position: relative; z-index: 3; background: var(--paper); padding: 70px 0 140px; }
.sheet .edge { color: var(--paper); }
.sheet--flat { padding: 60px 0 110px; }

.intro { position: relative; padding: 60px 0 40px; }
.intro__title { font-size: clamp(48px, 8vw, 104px); max-width: 900px; line-height: 1; }
.hl {
  background: linear-gradient(90deg, var(--c) 50%, var(--ink) 50%) 100% 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: background-position 1.2s var(--ease) .35s;
}
.in .hl, .hl.in { background-position: 0 0; }

.hang { position: absolute; right: 2%; top: -70px; display: flex; gap: clamp(20px, 5vw, 70px); pointer-events: none; }
.hang__item { width: clamp(50px, 6vw, 82px); color: var(--ink); transform-origin: 50% calc(-1 * var(--len)); animation: sway 5s ease-in-out infinite; animation-delay: var(--d); padding-top: var(--len); position: relative; }
.hang__item::before { content: ""; position: absolute; top: 0; left: 50%; width: 1.5px; height: calc(var(--len) + 14px); background: var(--ink); opacity: .6; }
@keyframes sway { 0%, 100% { rotate: -5deg; } 50% { rotate: 5deg; } }

.statement { padding: 40px 0 30px; }
.statement__text { font-family: var(--serif); font-size: clamp(36px, 5.2vw, 70px); line-height: 1.08; margin: 0; max-width: 1000px; }
.statement__body { max-width: 560px; font-size: 19px; color: var(--ink-soft); margin: 30px 0 0 auto; }
.scribble { position: relative; display: inline-block; white-space: nowrap; }
.scribble__line { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .32em; overflow: visible; }
.scribble__line path, .ul__line path { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease) .5s; vector-effect: non-scaling-stroke; }
.in .scribble__line path, .in .ul__line path, .ul.in .ul__line path { stroke-dashoffset: 0; }

.latest { padding-top: 90px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section-head h3 { font-size: clamp(34px, 4vw, 52px); }
.sheet__desk { width: min(520px, 70vw); margin: 90px 0 0 auto; color: var(--ink); opacity: .85; padding-right: 4%; }
.art--big { width: 100%; height: auto; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.card { transition-delay: var(--delay, 0ms); }
.card__link { display: block; text-decoration: none; }
.card__body { padding: 18px 4px 0; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 29px; margin: 8px 0 8px; transition: color .25s; }
.card p { margin: 0 0 12px; color: var(--ink-soft); font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { font-size: 13px; color: var(--ink-soft); }
.card:hover h3 { color: var(--violet); }

.cover {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--tone) 25%, #fff) 0, transparent 55%),
    color-mix(in srgb, var(--tone) 32%, var(--paper-2));
}
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.cover--art { display: grid; place-items: center; color: color-mix(in srgb, var(--tone) 55%, #1a1a1a); }
.cover--art .art { width: 62%; transition: transform .9s var(--ease); }
.cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); pointer-events: none; }
.card:hover .cover img { transform: scale(1.05); }
.card:hover .cover--art .art { transform: translateY(-8px) rotate(-3deg) scale(1.04); }
.cover--tall { aspect-ratio: 2 / 3; }
.cover--wide { aspect-ratio: 16 / 9; }

/* ==========================================================================
   3. Dark section — scroll-lit words and stacking category cards
   ========================================================================== */
.dark { position: relative; z-index: 4; background: var(--black); color: #fff; padding: 120px 0 120px; }
.dark .edge { color: var(--black); }
.dark__title { font-size: clamp(42px, 6.4vw, 92px); line-height: 1.02; text-align: center; max-width: 1050px; margin: 0 auto; }
.dark__title .w { color: rgba(255,255,255,.18); transition: color .35s; }
.dark__title .w.lit { color: #fff; }
.dark__body { max-width: 620px; margin: 50px auto 0; text-align: center; color: rgba(255,255,255,.7); font-size: 18px; }

.stack { margin-top: 120px; display: grid; gap: 40px; }
.stack__card {
  --scale: 1;
  position: sticky; top: calc(var(--nav-h) + 24px + var(--i) * 26px);
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px;
  min-height: min(560px, 76vh); padding: clamp(28px, 5vw, 64px);
  border-radius: 28px; text-decoration: none; color: #fff; overflow: hidden;
  background: radial-gradient(circle at 85% 30%, color-mix(in srgb, var(--c) 70%, #fff) 0, transparent 50%), var(--c);
  transform: scale(var(--scale)); transform-origin: 50% 0;
  box-shadow: 0 -20px 60px rgba(0,0,0,.35);
}
.stack__card h3 { font-size: clamp(48px, 7vw, 96px); margin: 10px 0 16px; }
.stack__card p { font-size: 19px; max-width: 420px; margin: 0 0 28px; opacity: .92; }
.stack__card .kicker { color: rgba(255,255,255,.85); }
.stack__art { color: #fff; transition: transform .8s var(--ease); }
.stack__card:hover .stack__art { transform: rotate(-4deg) scale(1.05); }
@media (max-width: 760px) { .stack__card { grid-template-columns: 1fr; } .stack__art { width: 60%; justify-self: end; } }

/* ==========================================================================
   4. Showcase carousel
   ========================================================================== */
.showcase { position: relative; z-index: 4; background: var(--blue); color: #fff; }
.showcase__stage { position: relative; padding: 90px 0 70px; }
.showcase__track {
  display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 max(20px, calc(50vw - 170px));
}
.showcase__track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 min(340px, 78vw); scroll-snap-align: center; transition: transform .6s var(--ease), opacity .6s; opacity: .55; transform: scale(.9); }
.slide.is-active { opacity: 1; transform: none; }
.slide a { text-decoration: none; color: #fff; }
.slide .cover { box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.slide__meta { padding: 16px 4px 0; }
.slide h3 { font-size: 28px; margin-top: 6px; }
.slide .kicker { background: #fff; padding: 4px 8px; border-radius: 6px; }
.round-btn { position: absolute; top: 40%; z-index: 2; width: 60px; height: 60px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.75); background: rgba(0,0,0,.08); color: #fff; font-size: 22px; transition: .3s var(--ease); }
.round-btn:hover { background: #fff; color: var(--blue); transform: scale(1.06); }
.round-btn--prev { left: 4%; }
.round-btn--next { right: 4%; }
@media (max-width: 700px) { .round-btn { top: auto; bottom: 14px; width: 48px; height: 48px; } }
.showcase__bar { background: #000; padding: 28px 20px; text-align: center; font-weight: 800; letter-spacing: .06em; font-size: clamp(14px, 1.6vw, 20px); }
.showcase__bar span { display: inline-block; transition: opacity .3s, transform .3s; }
.showcase__bar span.swap { opacity: 0; transform: translateY(8px); }

/* ==========================================================================
   5. Annotated statement
   ========================================================================== */
.annotated { position: relative; z-index: 4; background: var(--paper); padding: 160px 0 130px; overflow: hidden; }
.annotated__inner { position: relative; }
.annotated__text { font-size: clamp(26px, 3.3vw, 44px); line-height: 1.35; font-weight: 500; max-width: 820px; margin: 0 0 0 auto; text-align: right; }
.ul { position: relative; white-space: nowrap; }
.ul__line { position: absolute; left: 0; bottom: -.18em; width: 100%; height: .4em; overflow: visible; }
.ul .ul__line path { stroke: var(--green); }
.ul--red .ul__line path { stroke: var(--red); }
.note { position: absolute; display: flex; align-items: center; gap: 8px; font-size: 16px; }
.note__arrow { width: 70px; stroke-width: 4; }
.note--left { left: 0; top: -70px; color: var(--green); flex-direction: column; align-items: flex-start; }
.note--left .note__arrow { width: 56px; margin-left: 120px; transform: rotate(100deg); }
.note--right { right: 6%; bottom: -90px; color: var(--red); }
.note__arrow--flip { transform: rotate(110deg); }
@media (max-width: 860px) { .note { position: static; margin-top: 24px; justify-content: flex-end; } .note--left .note__arrow { display: none; } }
.scatter { display: flex; justify-content: center; gap: clamp(16px, 4vw, 60px); margin-top: 140px; color: var(--ink); }
.scatter__item { width: clamp(56px, 8vw, 110px); rotate: calc((var(--k) - 2) * 7deg); animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--k) * -1.2s); }

/* ==========================================================================
   6. Counter + newsletter (sticky — the footer slides over it)
   ========================================================================== */
.counter { position: sticky; top: 0; z-index: 4; background: var(--paper-2); padding: 120px 0 160px; }
.counter .edge { color: var(--paper-2); }
.counter__inner { display: grid; gap: 50px; justify-items: center; text-align: center; }
.counter__line { margin: 0; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; }
.counter__num { font-family: var(--serif); font-size: clamp(110px, 16vw, 220px); line-height: .8; color: var(--violet); }
.counter__line .display { font-size: clamp(36px, 4.6vw, 64px); text-align: left; line-height: 1.02; }
.subscribe { width: min(540px, 100%); }
.subscribe label { display: block; font-weight: 600; margin-bottom: 14px; }
.subscribe__row { display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: 14px; box-shadow: 0 0 0 1.5px var(--ink); }
.subscribe input[type=email] { flex: 1; min-width: 0; border: 0; outline: 0; padding: 10px 12px; font: inherit; background: transparent; }
.subscribe .hp { position: absolute; left: -9999px; }
.subscribe__ok { color: var(--green); font-weight: 700; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { position: relative; z-index: 5; background: #1b1b1d; color: #fff; padding: 110px 0 40px; }
.footer .edge { color: #1b1b1d; }
.footer__inner { width: min(1200px, 100% - 40px); margin: auto; }
.footer__big { display: flex; align-items: end; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 70px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__big h2 { font-size: clamp(48px, 7vw, 100px); line-height: .98; }
.footer__big em { color: var(--violet); }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 200px)); gap: 30px; padding: 50px 0; }
.footer__cols h5 { margin: 0 0 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.footer__cols a { display: block; padding: 4px 0; text-decoration: none; color: rgba(255,255,255,.85); }
.footer__cols a:hover { color: var(--violet); }
.footer__fine { font-size: 13px; color: rgba(255,255,255,.5); margin: 0; }
@media (max-width: 600px) { .footer__cols { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Post
   ========================================================================== */
.progress { position: fixed; top: 0; left: 0; z-index: 60; height: 3px; width: 100%; background: var(--violet); transform-origin: 0 50%; transform: scaleX(var(--read, 0)); }
.post__cover { position: relative; width: min(1100px, 100% - 40px); margin: -10px auto 40px; }
.pin-btn { position: absolute; top: 16px; left: 16px; background: #e60023; color: #fff; font-weight: 700; font-size: 14px; padding: 8px 16px; border-radius: 999px; text-decoration: none; opacity: 0; transform: translateY(-6px); transition: .3s var(--ease); }
.post__cover:hover .pin-btn, .pin-btn:focus { opacity: 1; transform: none; }
.disclosure { font-size: 14px; color: var(--ink-soft); background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 12px 16px; }

.prose { font-size: 18.5px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose .lead { font-size: 22px; line-height: 1.55; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 44px); margin-top: 1.7em; }
.prose h3 { font-size: 22px; margin-top: 1.5em; }
.prose a { color: var(--ink); text-decoration-color: var(--violet); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { color: var(--violet); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--violet); }
.prose blockquote { margin-inline: 0; padding-left: 20px; border-left: 3px solid var(--violet); font-family: var(--serif); font-size: 28px; line-height: 1.3; }
.prose img { border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.prose code { background: #fff; padding: 2px 6px; border-radius: 6px; font-size: .9em; }

.product { position: relative; display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: center; background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: 0 0 0 1px var(--line); margin: 1.6em 0; transition: box-shadow .3s, transform .4s var(--ease); }
.product:hover { box-shadow: 0 0 0 1.5px var(--ink), 0 18px 40px rgba(0,0,0,.08); }
.product__img { aspect-ratio: 1; border-radius: 12px; background: var(--paper); display: grid; place-items: center; overflow: hidden; color: var(--ink); }
.product__img .art { width: 70%; }
.product__img:has(img) { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.product__img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.product h4 { font-size: 20px; margin: 0 0 6px; }
.product p { margin: 0 0 10px; font-size: 16px; color: var(--ink-soft); line-height: 1.55; }
.product__pros { list-style: none; padding: 0 !important; margin: 0 0 14px; font-size: 15px; }
.product__pros li::before { content: "✓ "; color: var(--green); font-weight: 800; }
.product__pros li + li { margin-top: 2px; }
.product .btn { text-decoration: none; color: #fff; }
.product__badge { position: absolute; top: -12px; left: 20px; background: var(--violet); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
@media (max-width: 560px) { .product { grid-template-columns: 1fr; } .product__img { max-width: 200px; } }
.tip { background: color-mix(in srgb, var(--violet) 14%, #fff); border-radius: var(--radius); padding: 20px 24px; margin: 1.6em 0; }
.tip strong { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #6c47c9; }
.tip p { margin: 6px 0 0; }

.adminbar { position: fixed; z-index: 70; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; gap: 14px; align-items: center; background: #111; color: #fff; padding: 10px 12px 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); white-space: nowrap; }
.adminbar a { background: var(--violet); color: #fff; text-decoration: none; padding: 6px 14px; border-radius: 999px; }
.pin-card { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center; margin-top: 60px; margin-bottom: 0; }
.pin-card__img { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,.12); }
.pin-card__img img { width: 100%; }
.pin-card__img:hover .pin-btn { opacity: 1; transform: none; }
.pin-card figcaption { font-size: 17px; color: var(--ink-soft); }
.pin-card figcaption strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 34px; color: var(--ink); margin-bottom: 6px; }
@media (max-width: 560px) { .pin-card { grid-template-columns: 1fr; } .pin-card__img { max-width: 260px; } }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 60px; padding-top: 30px; border-top: 1px solid var(--line); }
.share span { font-weight: 700; margin-right: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags .chip { border-color: var(--line); }
.related { position: relative; z-index: 3; background: var(--paper-2); padding: 90px 0 120px; }
.empty { text-align: center; font-size: 20px; color: var(--ink-soft); padding: 60px 0; }

/* ==========================================================================
   Reveal animations (classes toggled by main.js)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--delay, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .fade-up { opacity: 0; transform: translateY(20px); animation: fadeUp 1s var(--ease) forwards; animation-delay: .7s; }
.js .fade-up + .fade-up { animation-delay: .85s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.js [data-split]:not(.is-split) { opacity: 0; }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; animation-delay: calc(.15s + var(--i) * 70ms); }
@keyframes rise { to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .fade-up { opacity: 1; transform: none; }
  [data-split] .w > span { transform: none; }
}
