:root {
    --ink: #0d1b2a;
    --ink-soft: #1b2956;
    --paper: #f7f4ed;
    --paper-pure: #fffdf8;
    --accent: #0a6c74;
    --accent-bright: #12a3ad;
    --signal: #e8643c;
    --line: #d9d2c4;
    --muted: #5a6472;
    --shadow: 0 1px 2px rgba(13,27,42,.04), 0 8px 28px rgba(13,27,42,.08);
    --radius: 14px;
    --max: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* ---------- Pre-launch announcement bar ---------- */
.announce-bar {
    background: linear-gradient(90deg, var(--ink) 0%, var(--ink-soft) 100%);
    color: var(--paper-pure);
    font-size: .88rem;
    letter-spacing: .01em;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.announce-inner { display: flex; align-items: center; justify-content: center; gap: 12px; }
.announce-bar a { color: var(--accent-bright); font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.announce-bar a:hover { border-bottom-color: var(--accent-bright); }
.announce-pulse {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: var(--signal); box-shadow: 0 0 0 0 rgba(232,100,60,.65);
    animation: announce-pulse 2.2s infinite;
}
@keyframes announce-pulse {
    0% { box-shadow: 0 0 0 0 rgba(232,100,60,.65); }
    70% { box-shadow: 0 0 0 10px rgba(232,100,60,0); }
    100% { box-shadow: 0 0 0 0 rgba(232,100,60,0); }
}

body {
    font-family: 'Inter Tight', sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 { font-family: 'Fraunces', serif; line-height: 1.08; font-weight: 600; letter-spacing: -.01em; }

a { color: inherit; text-decoration: none; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(247,244,237,.82);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.05rem; }
.brand-logo { height: 46px; width: auto; display: block; }
.brand-mark { color: var(--accent); font-size: 1.3rem; }
.brand-text em { color: var(--muted); font-style: italic; font-weight: 400; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { font-size: .94rem; font-weight: 500; color: var(--ink-soft); transition: color .2s; position: relative; }
.site-nav a:hover { color: var(--accent); }
.site-nav a.active { color: var(--accent); }
.site-nav a.active::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px; background: var(--accent); }
.nav-cta { background: var(--ink); color: var(--paper-pure) !important; padding: 9px 18px; border-radius: 999px; font-weight: 600 !important; }
.nav-cta:hover { background: var(--accent) !important; }
.nav-toggle, .nav-burger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 90px 0 80px; background: radial-gradient(120% 90% at 80% -10%, rgba(18,163,173,.16), transparent 60%), var(--paper); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.eyebrow { font-family: 'Spline Sans Mono', monospace; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.3rem); margin-bottom: 24px; }
.hero h1 .ital { font-style: italic; color: var(--accent); }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 30ch; margin-bottom: 34px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .98rem; transition: transform .15s, background .2s, box-shadow .2s; }
.btn-primary { background: var(--ink); color: var(--paper-pure); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper-pure); }

/* Book cover mockup */
.book-cover { position: relative; aspect-ratio: 3/4; border-radius: 6px; background: linear-gradient(155deg, var(--ink-soft), var(--ink) 60%, #060d18); box-shadow: 18px 22px 50px rgba(13,27,42,.35); padding: 38px 30px; color: var(--paper-pure); display: flex; flex-direction: column; transform: rotate(2.5deg); transition: transform .4s; overflow: hidden; }
.book-cover:hover { transform: rotate(0deg) translateY(-6px); }
.book-cover::before { content: ""; position: absolute; left: 14px; top: 0; bottom: 0; width: 3px; background: rgba(255,255,255,.12); }
.book-cover .bc-sym { font-size: 2rem; color: var(--accent-bright); }
.book-cover .bc-kicker { font-family: 'Spline Sans Mono', monospace; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: auto; }
.book-cover .bc-title { font-family: 'Fraunces', serif; font-size: 1.85rem; line-height: 1.02; margin: 10px 0 14px; text-transform: uppercase; letter-spacing: .01em; }
.book-cover .bc-subtitle { font-family: 'Inter Tight', sans-serif; font-size: .82rem; line-height: 1.35; color: rgba(255,255,255,.82); margin-bottom: 10px; }
.book-cover .bc-tagline { font-family: 'Spline Sans Mono', monospace; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-bright); margin-bottom: 16px; }
.book-cover .bc-author { font-size: .9rem; color: rgba(255,255,255,.7); }

/* Diagonal "Coming Soon" ribbon across the top-right corner of the book cover */
.book-cover .bc-ribbon {
    position: absolute;
    top: 22px;
    right: -42px;
    transform: rotate(35deg);
    background: var(--signal);
    color: #fff;
    font-family: 'Spline Sans Mono', monospace;
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 6px 50px;
    box-shadow: 0 3px 10px rgba(0,0,0,.25);
    z-index: 2;
}

/* Image-based book cover (real cover art) */
.book-cover-img {
    position: relative;
    max-width: 380px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 18px 22px 50px rgba(13,27,42,.35);
    transform: rotate(2.5deg);
    transition: transform .4s;
}
.book-cover-img:hover { transform: rotate(0deg) translateY(-6px); }
.book-cover-img img { display: block; width: 100%; height: auto; }
.book-cover-img .bc-ribbon {
    position: absolute;
    top: 22px;
    right: -42px;
    transform: rotate(35deg);
    background: var(--signal);
    color: #fff;
    font-family: 'Spline Sans Mono', monospace;
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 6px 50px;
    box-shadow: 0 3px 10px rgba(0,0,0,.25);
    z-index: 2;
}

/* ---------- Sections ---------- */
section.band { padding: 80px 0; }
.section-head { max-width: 60ch; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-top: 14px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--paper-pure); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico { font-size: 1.6rem; color: var(--accent); display: block; margin-bottom: 16px; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--ink); }
.card p { color: var(--muted); font-size: .98rem; }
/* Cards keep dark text even inside dark .alt sections (cards have light backgrounds) */
.alt .card h3 { color: var(--ink); }
.alt .card p { color: var(--muted); }

.alt { background: var(--ink); color: var(--paper); }
.alt .section-head h2 { color: var(--paper-pure); }
.alt .section-head p { color: rgba(247,244,237,.7); }
.alt .eyebrow { color: var(--accent-bright); }

/* Pricing / offer cards */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.offer { background: var(--paper-pure); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.offer.featured { border: 2px solid var(--accent); position: relative; }
.offer.featured::before { content: "Most popular"; position: absolute; top: -12px; left: 32px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; letter-spacing: .04em; }
.offer h3 { font-size: 1.4rem; margin-bottom: 6px; color: var(--ink); }
.offer .price { font-family: 'Fraunces', serif; font-size: 2.4rem; font-weight: 600; margin: 12px 0; color: var(--ink); }
.offer .price small { font-size: .9rem; color: var(--muted); font-family: 'Inter Tight'; font-weight: 400; }
.offer ul { list-style: none; margin: 18px 0 26px; display: grid; gap: 11px; }
.offer li { padding-left: 26px; position: relative; color: var(--muted); font-size: .96rem; }
.offer li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.offer .btn { margin-top: auto; justify-content: center; }
/* Offer cards keep dark text even inside dark .alt sections */
.alt .offer h3, .alt .offer .price { color: var(--ink); }
.alt .offer .price small, .alt .offer li { color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--accent), var(--accent-bright)); color: #fff; text-align: center; padding: 72px 0; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); color: #fff; margin-bottom: 16px; }
.cta-band p { opacity: .9; font-size: 1.15rem; margin-bottom: 30px; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--ink); color: #fff; }

/* Generic page header */
.page-hero { padding: 80px 0 50px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); margin-bottom: 16px; }
.page-hero p { color: var(--muted); font-size: 1.2rem; max-width: 60ch; }

/* Prose */
.prose { max-width: 70ch; }
.prose p { margin-bottom: 18px; font-size: 1.06rem; }
.prose h2 { font-size: 1.7rem; margin: 36px 0 14px; }
.prose ul { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; font-size: .92rem; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 1rem; background: var(--paper-pure); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10,108,116,.12); }
.contact-aside { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 36px; }
.contact-aside h3 { color: var(--paper-pure); font-size: 1.4rem; margin-bottom: 16px; }
.contact-aside p { color: rgba(247,244,237,.75); margin-bottom: 20px; }
.contact-aside .ci { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; font-size: .96rem; }
.contact-aside .ci span { color: var(--accent-bright); }

/* ---------- Pre-launch notify form ---------- */
.notify-inline { display: flex; gap: 10px; margin-top: 30px; max-width: 460px; }
.notify-inline input { flex: 1; padding: 13px 16px; border: 1.5px solid var(--ink); border-radius: 999px; font-family: inherit; font-size: .98rem; background: var(--paper-pure); color: var(--ink); }
.notify-inline input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10,108,116,.12); }
.notify-inline button { padding: 13px 24px; border: none; border-radius: 999px; background: var(--ink); color: var(--paper-pure); font-family: inherit; font-weight: 600; font-size: .98rem; cursor: pointer; transition: background .2s, transform .15s; }
.notify-inline button:hover { background: var(--accent); transform: translateY(-2px); }
.notify-hint { margin-top: 12px; font-size: .85rem; color: var(--muted); }

.coming-soon-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(232,100,60,.12); color: var(--signal); font-family: 'Spline Sans Mono', monospace; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; margin-bottom: 22px; }
.coming-soon-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }

.alt .notify-inline input { background: var(--paper-pure); }
.alt .notify-hint { color: rgba(247,244,237,.65); }

/* ---------- Team / Leadership ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-card { background: var(--paper-pure); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; text-align: center; transition: transform .2s, box-shadow .2s; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-photo { width: 130px; height: 130px; margin: 0 auto 20px; border-radius: 50%; background: linear-gradient(155deg, var(--ink-soft), var(--ink)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4); font-family: 'Spline Sans Mono', monospace; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; border: 3px solid var(--paper); box-shadow: 0 6px 20px rgba(13,27,42,.18); overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.35rem; margin-bottom: 4px; color: var(--ink); }
.team-card .role { font-family: 'Spline Sans Mono', monospace; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.team-card p.bio { color: var(--muted); font-size: .97rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 60px 0 28px; margin-top: 0; }
.footer-logo { height: 34px; width: auto; display: block; margin-bottom: 4px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { color: rgba(247,244,237,.6); max-width: 36ch; margin-top: 12px; font-size: .95rem; }
.footer-cta { display: inline-block; margin-top: 16px; padding: 8px 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font-size: .85rem; color: var(--paper) !important; transition: border-color .2s, background .2s; }
.footer-cta:hover { border-color: var(--accent-bright); background: rgba(18,163,173,.1); color: var(--accent-bright) !important; }
.footer-links h4 { font-family: 'Inter Tight'; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(247,244,237,.5); margin-bottom: 14px; }
.footer-links a { display: block; color: rgba(247,244,237,.85); margin-bottom: 9px; font-size: .95rem; }
.footer-links a:hover { color: var(--accent-bright); }
.footer-base { border-top: 1px solid rgba(247,244,237,.12); padding-top: 22px; font-size: .85rem; color: rgba(247,244,237,.5); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-status { font-family: 'Spline Sans Mono', monospace; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--signal); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .feature-grid, .offer-grid, .team-grid { grid-template-columns: 1fr; }
    .notify-inline { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .book-cover { max-width: 280px; transform: rotate(0); }
    .book-cover-img { max-width: 280px; transform: rotate(0); }
    .nav-burger { display: block; cursor: pointer; width: 26px; height: 18px; position: relative; }
    .nav-burger span, .nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; height: 2px; width: 26px; background: var(--ink); transition: .3s; }
    .nav-burger span { top: 8px; }
    .nav-burger span::before { top: -7px; }
    .nav-burger span::after { top: 7px; }
    .site-nav { position: fixed; inset: 70px 0 auto 0; flex-direction: column; background: var(--paper); padding: 20px 28px; gap: 18px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s; align-items: flex-start; }
    .nav-toggle:checked ~ .site-nav { transform: translateY(0); }
    .nav-cta { align-self: stretch; text-align: center; }
}

/* ---------- Reveal on scroll (restrained, accessible) ---------- */
/* Elements start slightly down + transparent, then ease into place when they
   enter the viewport. One consistent motion, short duration. Honors reduced-motion.
   The hidden initial state applies ONLY when JS is active (html.js), so if JS
   fails or is disabled, content is always visible — no permanently-hidden text. */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
    will-change: opacity, transform;
}
.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}
/* Stagger children (e.g. cards in a grid) for a gentle cascade */
.js .reveal-stagger > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s cubic-bezier(.22,.61,.36,1), transform .55s cubic-bezier(.22,.61,.36,1);
}
.js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .08s; }
.js .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .16s; }
.js .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .24s; }

/* Hero loads immediately (above the fold) with a soft entrance */
.hero .hero-grid > * { animation: hero-in .8s cubic-bezier(.22,.61,.36,1) both; }
.hero .hero-grid > *:nth-child(2) { animation-delay: .12s; }
@keyframes hero-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
}

/* Accessibility: respect users who prefer reduced motion — no movement at all */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
    .hero .hero-grid > * { animation: none !important; }
    .book-cover-img, .card { transition: none !important; }
}
