/* ============================================================
   DonnyCNguyen.com — Phase 1 one-pager
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

/* ---------- Tokens ---------- */
:root {
  --ink: #0A0A0A;
  --ink-soft: #161616;
  --paper: #FFFFFF;
  --bone: #F4F3F0;
  --bone-deep: #EAE8E2;
  --gray: #6E6E6E;
  --gray-soft: #9A9A98;
  --line: rgba(10,10,10,0.12);
  --line-light: rgba(255,255,255,0.16);

  /* Tweakable */
  --accent: #5E7C63;          /* muted sage */
  --accent-deep: #455e4a;
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --nav-h: 76px;
}

/* Accent deep is derived per-accent via JS, fallback above */

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
}

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

section { position: relative; }

/* Section vertical rhythm */
.band { padding-block: clamp(72px, 11vw, 148px); }
.band--tight { padding-block: clamp(56px, 8vw, 104px); }

.bg-paper { background: var(--paper); }
.bg-bone  { background: var(--bone); }
.bg-ink   { background: var(--ink); color: var(--paper); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow--center { justify-content: center; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; }

.h-section {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.04;
  text-wrap: balance;
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--ink); }
.muted { color: var(--gray); }
.measure { max-width: 56ch; }
.measure-sm { max-width: 44ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 1em 1.6em;
  border-radius: 2px;
  transition: transform .18s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 1em; height: 1em; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent-deep); }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); }

.btn--ghost { background: transparent; color: var(--paper); border: 1.5px solid var(--line-light); }
.btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }

.btn--ghost-dark { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost-dark:hover { border-color: var(--ink); }

.btn--lg { padding: 1.15em 1.9em; font-size: 1rem; }

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .35s ease, box-shadow .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.site-nav .wrap { display: flex; align-items: center; gap: 2rem; width: 100%; }

.nav-logo { display: flex; align-items: center; height: 42px; }
.nav-logo img { height: 100%; width: auto; }
.nav-logo .logo-dark { display: none; }

.nav-links { display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 2.4rem); margin-left: auto; }
.nav-links a {
  font-family: var(--font-display);
  font-weight: 500; font-size: 0.95rem; letter-spacing: 0.01em;
  color: rgba(255,255,255,0.82);
  position: relative; padding-block: 4px;
  transition: color .2s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent); transition: width .25s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: 0.6rem; }

/* scrolled / solid state */
.site-nav.solid {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.site-nav.solid .nav-logo .logo-light { display: none; }
.site-nav.solid .nav-logo .logo-dark { display: block; }
.site-nav.solid .nav-links a { color: var(--ink); }
.site-nav.solid .nav-links a:hover { color: var(--accent-deep); }
.site-nav.solid .btn--ghost { color: var(--ink); border-color: var(--line); }
.site-nav.solid .btn--ghost:hover { border-color: var(--ink); background: transparent; }

/* hamburger */
.nav-toggle { display: none; width: 44px; height: 44px; margin-left: auto; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; position: relative; transition: background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content:""; position:absolute; left:0; width:26px; height:2px; background:#fff; transition: transform .25s ease; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.site-nav.solid .nav-toggle span, .site-nav.solid .nav-toggle span::before, .site-nav.solid .nav-toggle span::after { background: var(--ink); }

/* mobile overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 70; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; padding: var(--gutter);
  transform: translateY(-100%); transition: transform .42s cubic-bezier(.7,0,.2,1);
  visibility: hidden;
}
.mobile-menu.open { transform: translateY(0); visibility: visible; }
.mobile-menu .mm-top { display: flex; align-items: center; justify-content: space-between; height: 42px; }
.mobile-menu .mm-top img { height: 38px; }
.mm-close { width: 44px; height: 44px; font-size: 2rem; line-height: 1; color: #fff; }
.mobile-menu nav { margin-top: auto; margin-bottom: auto; display: flex; flex-direction: column; gap: 0.2em; }
.mobile-menu nav a {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 11vw, 3.6rem); line-height: 1.1; color: #fff;
}
.mobile-menu nav a .idx { font-size: 0.9rem; font-weight: 600; color: var(--accent); letter-spacing: 0.1em; vertical-align: super; margin-right: .4em; }
.mobile-menu .mm-cta { margin-top: 2rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }

/* shared inner */
.hero-inner { display: grid; align-items: stretch; min-height: 100svh; }

/* role title stack */
.role-stack { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em; line-height: 0.92; text-transform: uppercase; }
.role-stack .ln { display: block; }
.role-stack .ln .dot { color: var(--accent); }
.hero-tagline { color: rgba(255,255,255,0.72); font-size: clamp(1.02rem, 1.5vw, 1.22rem); line-height: 1.55; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; color: rgba(255,255,255,0.55); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; font-family: var(--font-display); font-weight: 500; }
.hero-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

/* ---- layout: SPLIT (default) ---- */
[data-hero="split"] .hero-inner { grid-template-columns: 1.05fr 0.95fr; }
[data-hero="split"] .hero-photo {
  position: relative;
  background: #1a1a1a;
}
[data-hero="split"] .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
[data-hero="split"] .hero-photo::after { content:""; position:absolute; inset:0; background: linear-gradient(100deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0) 38%); }
[data-hero="split"] .hero-copy {
  display: flex; flex-direction: column; justify-content: center; gap: 1.8rem;
  padding: calc(var(--nav-h) + 4vw) var(--gutter) 5vw;
}
[data-hero="split"] .role-stack { font-size: clamp(3rem, 7vw, 6.2rem); }
[data-hero="split"] .hero-tagline { max-width: 40ch; }

/* ---- layout: FULL-BLEED ---- */
[data-hero="fullbleed"] .hero-inner { grid-template-columns: 1fr; }
[data-hero="fullbleed"] .hero-photo { position: absolute; inset: 0; }
[data-hero="fullbleed"] .hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 24%; }
[data-hero="fullbleed"] .hero-photo::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.72) 38%, rgba(10,10,10,0.15) 72%, rgba(10,10,10,0.35) 100%); }
[data-hero="fullbleed"] .hero-copy {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center; gap: 1.8rem;
  padding: calc(var(--nav-h) + 5vw) var(--gutter) 6vw;
  max-width: var(--maxw); margin-inline: auto; width: 100%;
}
[data-hero="fullbleed"] .role-stack { font-size: clamp(3rem, 9vw, 7.2rem); }
[data-hero="fullbleed"] .hero-tagline { max-width: 42ch; }

/* ---- layout: TYPE-FORWARD ---- */
[data-hero="type"] .hero-inner { grid-template-columns: 1fr; place-items: center; text-align: center; }
[data-hero="type"] .hero-photo { display: none; }
[data-hero="type"] .hero-copy {
  display: flex; flex-direction: column; align-items: center; gap: 2rem;
  padding: calc(var(--nav-h) + 8vw) var(--gutter) 8vw;
  max-width: 1100px; margin-inline: auto;
}
[data-hero="type"] .eyebrow { justify-content: center; }
[data-hero="type"] .role-stack { font-size: clamp(3.4rem, 12vw, 9rem); }
[data-hero="type"] .hero-tagline { max-width: 52ch; }
[data-hero="type"] .hero-ctas { justify-content: center; }
[data-hero="type"] .hero-portrait-strip { display: flex; align-items: center; gap: 1rem; margin-top: .5rem; }
[data-hero="type"] .hero-portrait-strip img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
[data-hero="type"] .hero-portrait-strip span { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.6); font-family: var(--font-display); }
.hero-portrait-strip { display: none; }

/* scroll cue */
.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,0.5); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; font-family: var(--font-display); }
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0)); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%,100% { transform: scaleY(0.4); opacity: .4;} 50% { transform: scaleY(1); opacity:1; } }

/* ============================================================
   POSITIONING STRIP
   ============================================================ */
.positioning { text-align: center; }
.positioning .stmt {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.7rem);
  line-height: 1.18; letter-spacing: -0.02em;
  max-width: 20ch; margin-inline: auto; text-wrap: balance;
}
.positioning .stmt em { font-style: normal; color: var(--accent); }
.positioning .sub { margin-top: 1.6rem; max-width: 60ch; margin-inline: auto; color: var(--gray); font-size: 1.08rem; }

/* ============================================================
   SPLIT CONTENT (book / speaking / about)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split--flip .split-visual { order: 2; }
.split-copy { display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; }
.split-copy .h-section { margin-top: 0.2rem; }
.split-copy p { color: var(--gray); }
.split-copy p.lead { color: var(--ink); }

/* ---- Book cover placeholder ---- */
.book-stage { display: flex; justify-content: center; perspective: 1600px; }
.book {
  position: relative; width: min(330px, 74%); aspect-ratio: 5 / 7.4;
  transform: rotateY(-19deg) rotateX(3deg); transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.book-stage:hover .book { transform: rotateY(-8deg) rotateX(1deg); }
.book-face {
  position: absolute; inset: 0; border-radius: 3px 6px 6px 3px;
  background: linear-gradient(135deg, #1c1c1c 0%, #0a0a0a 60%);
  box-shadow: 0 40px 70px -28px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.05);
  display: flex; flex-direction: column; padding: 12% 11%;
  overflow: hidden;
}
.book-face::before { /* spine shading */
  content:""; position:absolute; left:0; top:0; bottom:0; width: 16px;
  background: linear-gradient(90deg, rgba(255,255,255,0.14), rgba(255,255,255,0) 60%, rgba(0,0,0,0.4));
}
.book-face::after { /* accent edge */
  content:""; position:absolute; right:0; top:0; bottom:0; width: 5px; background: var(--accent);
}
.book-kicker { font-family: var(--font-display); font-size: 0.62rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.book-logo { margin-top: auto; margin-bottom: auto; }
.book-logo img { width: 56%; opacity: 0.96; }
.book-title-ph { display: flex; flex-direction: column; gap: 9px; }
.book-title-ph .bar { height: 12px; border-radius: 2px; background: rgba(255,255,255,0.16); }
.book-title-ph .bar.w1 { width: 86%; } .book-title-ph .bar.w2 { width: 64%; }
.book-byline { margin-top: 14px; font-family: var(--font-display); font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.book-glow { position:absolute; inset:-30% -20% auto auto; width: 60%; height: 60%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%); filter: blur(20px); pointer-events:none; }

/* waitlist form */
.waitlist { width: 100%; max-width: 440px; }
.waitlist .field { display: flex; gap: 0.6rem; }
.input {
  flex: 1; min-width: 0; font-family: var(--font-body); font-size: 1rem;
  padding: 1em 1.1em; border: 1.5px solid var(--line); border-radius: 2px; background: var(--paper);
  transition: border-color .2s ease;
}
.input:focus { outline: none; border-color: var(--accent); }
.form-note { font-size: 0.82rem; color: var(--gray-soft); margin-top: 0.8rem; }
.form-success { font-family: var(--font-display); font-weight: 600; color: var(--accent-deep); display: none; align-items: center; gap: 0.5em; }
.form-success.show { display: flex; }
.is-done .field { display: none; }

/* ---- Speaking visual ---- */
.photo-card { position: relative; border-radius: 3px; overflow: hidden; background: var(--bone-deep); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.photo-card--tall img { aspect-ratio: 4/5; }
.photo-frame { position: relative; }
.photo-frame::before { content:""; position:absolute; z-index:0; width: 64%; height: 64%; background: var(--accent); opacity: 0.16; }
.photo-frame.tl::before { left: -22px; top: -22px; }
.photo-frame.br::before { right: -22px; bottom: -22px; }
.photo-frame .photo-card { position: relative; z-index: 1; }

/* topic chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 500;
  padding: 0.55em 1em; border: 1px solid var(--line); border-radius: 100px; color: var(--ink);
  background: var(--paper);
}
.chip .dot { color: var(--accent); margin-right: .4em; }

/* stat row (about) */
.stat-row { display: flex; flex-wrap: wrap; gap: clamp(1.4rem, 4vw, 3rem); margin-top: .4rem; }
.stat .n { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem,3vw,2.3rem); letter-spacing: -0.02em; line-height: 1; }
.stat .l { font-size: 0.82rem; color: var(--gray); letter-spacing: 0.04em; margin-top: 0.4rem; }
.stat .n .dot { color: var(--accent); }

/* about facts */
.about-facts { display: flex; flex-wrap: wrap; gap: 0; margin-top: .6rem; width: 100%; }
.fact { padding: 0.2rem 1.4rem 0.2rem 0; margin-right: 1.4rem; border-right: 1px solid var(--line); }
.fact:last-child { border-right: none; }
.fact .v { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; line-height: 1.2; }
.fact .k { display: block; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-soft); margin-top: 0.3rem; }
@media (max-width: 480px) { .about-facts { flex-direction: column; gap: 0.9rem; } .fact { border-right: none; padding-right: 0; margin-right: 0; } }

/* booking form (on dark) */
.booking-form { display: flex; flex-direction: column; gap: 1rem; }
.bf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.bf-field { display: flex; flex-direction: column; gap: 0.45rem; }
.bf-field > span { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.55); font-weight: 500; }
.booking-form .input { background: rgba(255,255,255,0.05); border-color: var(--line-light); color: #fff; }
.booking-form .input::placeholder { color: rgba(255,255,255,0.4); }
.booking-form .input:focus { border-color: var(--accent); background: rgba(255,255,255,0.08); }
.booking-form textarea.input { resize: vertical; min-height: 84px; font-family: var(--font-body); }
.booking-form .form-note { color: rgba(255,255,255,0.4); }
.booking-form .form-success { color: #fff; }
@media (max-width: 560px) { .bf-grid { grid-template-columns: 1fr; } }

/* ============================================================
   BLOG
   ============================================================ */
.blog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem,4vw,3.2rem); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 2.5vw, 2.2rem); }
.post {
  display: flex; flex-direction: column; gap: 1rem; padding-top: 1.4rem;
  border-top: 2px solid var(--ink);
  transition: transform .25s ease;
}
.post:hover { transform: translateY(-4px); }
.post .post-meta { display: flex; gap: 0.8rem; align-items: center; font-family: var(--font-display); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray); }
.post .post-meta .cat { color: var(--accent); font-weight: 600; }
.post h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.18; letter-spacing: -0.015em; }
.post:hover h3 { color: var(--accent-deep); }
.post p { color: var(--gray); font-size: 0.96rem; }
.post .read { margin-top: auto; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--ink); display: inline-flex; align-items:center; gap: .4em; letter-spacing: 0.02em; }
.post .read svg { width: 0.9em; transition: transform .2s ease; }
.post:hover .read svg { transform: translateX(3px); }
.post .soon { align-self: flex-start; font-family: var(--font-display); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray-soft); border: 1px solid var(--line); border-radius: 100px; padding: 0.35em 0.8em; }

/* ============================================================
   EMAIL CAPTURE
   ============================================================ */
.capture { text-align: center; position: relative; overflow: hidden; }
.capture .wrap { position: relative; z-index: 2; }
.capture .h-section { color: #fff; }
.capture p { color: rgba(255,255,255,0.66); max-width: 50ch; margin: 1rem auto 2.2rem; }
.capture .waitlist { margin-inline: auto; }
.capture .input { background: rgba(255,255,255,0.06); border-color: var(--line-light); color: #fff; }
.capture .input::placeholder { color: rgba(255,255,255,0.5); }
.capture .input:focus { border-color: var(--accent); }
.capture .form-note { color: rgba(255,255,255,0.4); }
.capture .form-success { color: #fff; }
.capture-grid { position: absolute; inset: 0; z-index: 0; opacity: 0.5; background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px); background-size: 26px 26px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: #fff; padding-block: clamp(56px, 7vw, 88px) 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-light); }
.footer-brand img { height: 56px; }
.footer-brand p { color: rgba(255,255,255,0.5); margin-top: 1.2rem; max-width: 34ch; font-size: 0.96rem; }
.footer-col h4 { font-family: var(--font-display); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { color: rgba(255,255,255,0.72); font-size: 0.98rem; transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-top: 2rem; }
.footer-bottom .copy { color: rgba(255,255,255,0.4); font-size: 0.86rem; }
.footer-bottom .copy a { color: rgba(255,255,255,0.6); }
.socials { display: flex; gap: 0.7rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-light); display: flex; align-items: center; justify-content: center; transition: background .2s ease, border-color .2s ease; }
.socials a:hover { background: var(--accent); border-color: var(--accent); }
.socials svg { width: 18px; height: 18px; fill: #fff; }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .scroll-cue .line { animation: none; } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .post-grid { grid-template-columns: 1fr; gap: 0; }
  .post { border-top: none; border-bottom: 1px solid var(--line); padding-block: 1.6rem; }
  .post:first-child { border-top: 2px solid var(--ink); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .split { grid-template-columns: 1fr; gap: 2.6rem; }
  .split--flip .split-visual { order: 0; }
  [data-hero="split"] .hero-inner { grid-template-columns: 1fr; min-height: auto; }
  [data-hero="split"] .hero-photo { aspect-ratio: 4/5; min-height: 56vh; }
  [data-hero="split"] .hero-photo img { position: relative; }
  [data-hero="split"] .hero-copy { padding-top: calc(var(--nav-h) + 8vw); padding-bottom: 12vw; padding-inline: 5vw; }
  [data-hero="split"] .role-stack { font-size: clamp(2rem, 9.5vw, 3rem); }
  .hero-ctas { width: 100%; max-width: 100%; flex-wrap: nowrap; box-sizing: border-box; }
  .hero-ctas .btn { flex: 1 1 0; justify-content: center; min-width: 0; max-width: 100%; }
  .hero-meta { gap: 0.8rem; justify-content: center; }
  .scroll-cue { display: none; }
  .book { width: min(280px, 70%); }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .waitlist .field { flex-direction: column; }
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.6em 1em;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, background .2s ease;
}
.back-to-top svg { width: 0.9em; height: 0.9em; transition: transform .2s ease; }
.back-to-top:hover { background: var(--accent-deep); }
.back-to-top:hover svg { transform: translateY(-2px); }
.back-to-top.visible { opacity: 1; pointer-events: auto; }
