/* Book Design Masters
   Layout: wide split hero with a dealt deck of covers, a moving shelf of work, then calm full-width bands.
   Palette: bookcloth teal, ink navy, foil gold on cool paper. Type: Poppins (display) + Figtree (text). */
:root {
  --paper: #f6f7f9;
  --paper-2: #eaedf1;
  --white: #ffffff;
  --ink: #172033;
  --ink-soft: #4b5568;
  --line: #d7dce4;
  --accent: #0f6e6a;
  --accent-dark: #0a5250;
  --accent-tint: #e2f0ee;
  --gold: #c99a3c;
  --display: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --max: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 18px 40px -18px rgba(23, 32, 51, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.2rem; font-weight: 500; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
em { font-style: italic; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 780px; }
.center { text-align: center; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.align-start { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 1em; }
.eyebrow a { color: inherit; text-decoration: none; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 34em; }
.prose { max-width: 62ch; }
.prose h2 { margin-bottom: .6em; }
.pull { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.4rem; color: var(--accent); }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { --bg: var(--accent); display: inline-flex; align-items: center; gap: .5em; background: var(--bg); color: var(--white); border: 2px solid var(--bg); padding: .85em 1.5em; border-radius: 999px; font: 600 .95rem/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s; }
.btn:hover { color: var(--white); background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(15, 110, 106, .6); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn-gold { --bg: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #b5862c; border-color: #b5862c; color: var(--ink); }
.btn-sm { padding: .65em 1.15em; font-size: .88rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(23, 32, 51, .5); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: inline-flex; text-decoration: none; }
.logo img { width: 160px; }
.wordmark { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; font-size: 1.2rem; color: var(--ink); line-height: 1; }
.wordmark em { color: var(--accent); }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a:not(.btn), .sub-toggle { display: flex; align-items: center; gap: 6px; padding: 10px 12px; color: var(--ink); text-decoration: none; font: 500 .96rem var(--body); background: none; border: 0; cursor: pointer; position: relative; }
.main-nav > ul > li > a:not(.btn)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav > ul > li > a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.sub-toggle svg { width: 12px; height: 12px; transition: transform .25s; }
.has-sub.is-active > .sub-toggle { color: var(--accent); }
.has-sub { position: relative; }
.sub { position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); list-style: none; margin: 0; padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
.sub a { border-radius: 6px; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--accent-tint); color: var(--accent-dark); }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .sub-toggle svg, .has-sub.open .sub-toggle svg { transform: rotate(180deg); }
.nav-cta { margin-left: 10px; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); cursor: pointer; position: relative; }
.menu-toggle span:not(.sr-only) { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 24px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: block; order: 3; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px max(20px, env(safe-area-inset-left, 0px)) 20px; clip-path: inset(0 0 100% 0); transition: clip-path .4s var(--ease); visibility: hidden; }
  .main-nav.open { clip-path: inset(0 0 0 0); visibility: visible; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .main-nav a:not(.btn), .sub-toggle { padding: 12px 4px; font-size: 1.05rem; width: 100%; }
  .main-nav > ul > li > a:not(.btn)::after { display: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; display: none; }
  .has-sub.open .sub { display: block; }
  .has-sub:hover .sub { display: none; }
  .has-sub.open:hover .sub { display: block; }
  .nav-cta { margin: 10px 0 0; }
}

/* Sections */
.band { padding-block: clamp(64px, 9vw, 120px); background: var(--white); }
.band.tight { padding-top: clamp(32px, 5vw, 56px); }
.band-paper { background: var(--paper); }
.band-ink { background: var(--ink); color: #e9edf3; }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 56px); }

/* Hero */
.hero { background: var(--white); padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-title { font-size: clamp(2.3rem, 5.4vw, 4.3rem); line-height: 1.08; letter-spacing: -.03em; margin-bottom: .45em; }
.hero-title span { display: inline-block; }
.hero-title em { color: var(--accent); }
.page-hero { background: var(--white); padding-block: clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-hero.compact { padding-bottom: clamp(32px, 4vw, 56px); }
.page-title { font-size: clamp(2rem, 4.2vw, 3.3rem); letter-spacing: -.025em; max-width: 18ch; }
.page-hero.compact .page-title { max-width: 22ch; }

/* Deck of covers (hero) */
.deck { position: relative; aspect-ratio: 5 / 4; max-width: 100%; }
.deck-card { position: absolute; margin: 0; width: 72%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--paper-2); }
.deck-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.d0 { left: 0; top: 4%; transform: rotate(-7deg); z-index: 1; }
.d1 { left: 14%; top: 22%; transform: rotate(2deg); z-index: 3; }
.d2 { right: 0; top: 0; transform: rotate(8deg); z-index: 2; }

/* Marquee */
.marquee { background: var(--ink); padding-block: 22px; overflow: hidden; }
.marquee-track { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; width: max-content; }
.marquee-track li { flex: none; width: clamp(200px, 22vw, 280px); }
.marquee-track img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; opacity: .92; transition: opacity .3s, transform .3s var(--ease); }
.marquee-track a:hover img { opacity: 1; transform: scale(1.03); }

/* Services */
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: minmax(0, 1fr); } }
.svc-card { display: flex; flex-direction: column; height: 100%; padding: 28px 24px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.svc-card:hover { color: var(--ink); transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.svc-n { font-family: var(--display); font-weight: 600; font-size: .95rem; color: var(--gold); margin-bottom: 18px; }
.svc-card p { color: var(--ink-soft); font-size: .97rem; }
.more { margin-top: auto; font-weight: 600; color: var(--accent); font-size: .92rem; }
.more span { display: inline-block; transition: transform .3s var(--ease); }
.svc-card:hover .more span { transform: translateX(5px); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--line); }
.timeline::after { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(var(--progress, 1)); transition: transform 1.4s var(--ease); }
.timeline li { position: relative; padding-top: 40px; min-width: 0; }
.step-dot { position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 2px solid var(--accent); z-index: 1; }
.band-paper .step-dot { background: var(--paper); }
.timeline p { color: var(--ink-soft); }
@media (max-width: 760px) {
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-left: 36px; }
  .timeline::before, .timeline::after { top: 0; bottom: 0; left: 9px; right: auto; width: 2px; height: auto; transform-origin: top; transform: scaleY(var(--progress, 1)); }
  .timeline li { padding-top: 0; }
  .step-dot { left: -36px; }
}

/* Quote */
.stars { color: var(--gold); letter-spacing: .25em; font-size: 1.1rem; margin-bottom: 18px; }
.big-quote { margin: 0 0 20px; font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(1.25rem, 2.6vw, 1.9rem); line-height: 1.45; color: var(--white); }
.cite { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; color: var(--gold); }
.t-card { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); text-align: center; }
.t-card blockquote { margin: 0 0 16px; font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(1.2rem, 2.3vw, 1.6rem); line-height: 1.45; }
.t-card figcaption { font-weight: 600; color: var(--ink-soft); }

/* Partners */
.partners { background: var(--paper); padding-block: 40px; border-bottom: 1px solid var(--line); }
.partner-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 52px; }
.partner-row img { height: 40px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.partner-row img:hover { filter: none; opacity: 1; }
.partner-ph { font-weight: 600; color: var(--ink-soft); opacity: .6; letter-spacing: .06em; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--display); font-weight: 500; font-size: 1.1rem; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 2px 100% no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 22px; margin: 0; max-width: 62ch; }

/* CTA + forms */
.cta-band { background: var(--accent-tint); }
.display-lg { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.05; letter-spacing: -.03em; }
.display-lg em { color: var(--accent); }
.contact-form { display: grid; gap: 14px; background: var(--white); padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); box-shadow: var(--shadow); }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 480px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--ink-soft); }
input, textarea, select { width: 100%; font: inherit; font-weight: 400; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; transition: border-color .2s, background .2s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 3px rgba(15, 110, 106, .15); }
.contact-form .btn { justify-self: start; }
.form-status { color: var(--accent-dark); font-weight: 600; margin: 0; }
.contact-aside h2 { font-size: 1.5rem; margin-top: 1.2em; }
.contact-aside h2:first-child { margin-top: 0; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Social */
.social { display: flex; gap: 10px; list-style: none; margin: 1.2em 0 0; padding: 0; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); transition: background .2s, color .2s, transform .25s var(--ease); }
.social a:hover { background: var(--accent); border-color: var(--accent); color: var(--white); transform: translateY(-3px); }
.social svg { width: 17px; height: 17px; fill: currentColor; }
.social-lg a { width: 46px; height: 46px; }

/* Framed images */
.framed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--paper-2); }
.framed img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Other services pills */
.other-svc { padding-block: 48px; border-top: 1px solid var(--line); }
.pill-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-row a { display: inline-block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; transition: background .2s, border-color .2s; }
.pill-row a:hover { background: var(--accent-tint); border-color: var(--accent); color: var(--accent-dark); }

/* Portfolio */
.pf-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pf-grid { grid-template-columns: minmax(0, 1fr); } }
.pf-item { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; box-shadow: 0 8px 20px -14px rgba(23, 32, 51, .4); transition: box-shadow .35s var(--ease), transform .2s; transform-style: preserve-3d; }
.pf-item:hover { box-shadow: var(--shadow); }
.pf-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pf-tag { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .94); color: var(--ink); font: 600 .74rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; transform: translateY(6px); opacity: 0; transition: opacity .3s, transform .3s var(--ease); }
.pf-item:hover .pf-tag, .pf-item:focus-visible .pf-tag { opacity: 1; transform: none; }
@media (hover: none) { .pf-tag { opacity: 1; transform: none; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1200px); overflow: visible; }
.lightbox::backdrop { background: rgba(23, 32, 51, .88); backdrop-filter: blur(4px); }
.lightbox img { max-height: 86vh; width: auto; margin: 0 auto; border-radius: var(--radius); }
.lightbox[open] img { animation: pop .35s var(--ease); }
.lb-close { position: absolute; top: -14px; right: -14px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--white); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }

/* Blog */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 720px) { .post-list { grid-template-columns: minmax(0, 1fr); } }
.post-card { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.post-card:hover { color: var(--ink); transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover img { transform: scale(1.04); }
.post-card > div { padding: 22px 24px 26px; }
.post-card h2 { font-size: 1.3rem; }
.post-card p:last-child { color: var(--ink-soft); font-size: .97rem; margin: 0; }
.meta { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.post { padding-block: clamp(40px, 6vw, 80px); background: var(--white); }
.post .page-title { max-width: none; }
.post-img { margin: 28px 0 36px; }
.post-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* Footer */
.site-footer { background: var(--ink); color: #c6ccd8; padding-top: 72px; font-size: .97rem; }
.site-footer h3 { font: 600 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.logo-light img { background: var(--white); padding: 6px 10px; border-radius: 6px; width: 150px; }
.logo-light .wordmark { color: var(--white); }
.logo-light .wordmark em { color: var(--gold); }
.f-brand p { margin-top: 14px; }
.flinks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #e7ebf1; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .social a { border-color: #36415a; color: #e7ebf1; }
.site-footer .social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.news-form { display: flex; flex-wrap: wrap; gap: 10px; }
.news-form input { flex: 1 1 180px; min-width: 0; background: #212c43; border-color: #36415a; color: var(--white); }
.news-form input::placeholder { color: #8f9ab0; }
.news-form .form-status { flex-basis: 100%; color: var(--gold); }
.copyright { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid #2b3550; margin-top: 56px; padding-block: 24px; font-size: .86rem; }

/* ---------------- Motion ---------------- */
@keyframes rise { from { opacity: 0; transform: translateY(.5em); } to { opacity: 1; transform: none; } }
@keyframes deal0 { from { opacity: 0; transform: translate(-30%, 20%) rotate(-20deg); } to { opacity: 1; transform: rotate(-7deg); } }
@keyframes deal1 { from { opacity: 0; transform: translateY(30%) rotate(-6deg); } to { opacity: 1; transform: rotate(2deg); } }
@keyframes deal2 { from { opacity: 0; transform: translate(30%, 20%) rotate(22deg); } to { opacity: 1; transform: rotate(8deg); } }
@keyframes float0 { 50% { transform: rotate(-6deg) translateY(-8px); } }
@keyframes float1 { 50% { transform: rotate(1deg) translateY(-12px); } }
@keyframes float2 { 50% { transform: rotate(9deg) translateY(-6px); } }
@keyframes slide { to { transform: translateX(calc(-50% - 9px)); } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-title span { animation: rise .9s var(--ease) both; }
  .hero-title span:nth-child(2) { animation-delay: .1s; }
  .hero-title span:nth-child(3) { animation-delay: .2s; }
  .hero .lede, .hero .cta-row { animation: rise .9s .35s var(--ease) both; }
  .hero .eyebrow { animation: rise .8s var(--ease) both; }
  .d0 { animation: deal0 1s .25s var(--ease) both, float0 7s 1.4s ease-in-out infinite; }
  .d1 { animation: deal1 1s .45s var(--ease) both, float1 8s 1.6s ease-in-out infinite; }
  .d2 { animation: deal2 1s .35s var(--ease) both, float2 6.5s 1.5s ease-in-out infinite; }
  .marquee-track { animation: slide 60s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }

  /* Scroll reveal: only hidden once JS is confirmed running */
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .timeline { --progress: 0; }
  .js .timeline.in { --progress: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track li[aria-hidden] { display: none; }
}

/* Article body */
.post .prose { max-width: 68ch; }
.post .prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 1.8em 0 .5em; }
.post .prose .h-num { color: var(--accent); }
.post .prose .tip { background: var(--accent-tint); border-radius: var(--radius); padding: 16px 20px; color: var(--ink); }
.post .prose .tip strong { color: var(--accent-dark); }
