/* The Authenticity Algorithm — site styles. Mobile-first, Pacific Palette, bright by default. */
:root {
  --navy: #0B1D3A;
  --ink: #0B1D3A;
  --ink-2: #33445A;
  --ink-3: #5A6B7E;
  --gold: #C9A54E;
  --gold-text: #8A6A1E;
  --sand: #F8F2E8;
  --morning: #FAFCFE;
  --sky: #EAF5FC;
  --sky-wash: #D4EDFC;
  --pacific: #89CFF0;
  --teal: #2F6F99;
  --line: #E3E8EE;
  --white: #FFFFFF;
  --mark: #C9A54E;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(11, 29, 58, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 29, 58, 0.14);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: 16px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 18px; line-height: 1.7; color: var(--ink); background: var(--morning); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; color: var(--navy); }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }

/* Preview */
.preview-bar { background: #FFF6DB; color: #5B4410; font-size: 14px; line-height: 1.5; padding: 10px var(--gutter); text-align: center; border-bottom: 1px solid #EBD9A3; }
.draft-tag { display: inline-block; vertical-align: middle; font: 700 10px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: #6B4E0E; background: #FCE9B2; border: 1px dashed #C9A54E; border-radius: 999px; padding: 4px 8px; margin: 0 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font: 600 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); background: #13305C; }
.btn[disabled] { background: #9AA6B4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-small { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header / nav */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(250, 252, 254, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: var(--gold); display: grid; place-items: center; font: 700 22px/1 var(--font-display); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 15px; }
.brand-sub { font-size: 12px; color: var(--ink-3); }
.nav-toggle { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 22px; height: 2px; background: var(--navy); position: relative; transition: transform .3s var(--ease); }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; } .nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }
.nav-menu { list-style: none; margin: 0; padding: 12px var(--gutter) 24px; display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--morning); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 72px); overflow-y: auto; }
.nav-menu.is-open { display: block; }
.nav-menu > li > a, .nav-details > summary { display: flex; align-items: center; min-height: 48px; color: var(--navy); font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; }
.nav-menu > li > a[aria-current="page"], .nav-details > summary[aria-current] { color: var(--teal); }
.nav-menu > li > .btn { margin-top: 12px; color: #fff; }
.nav-details > summary { list-style: none; }
.nav-details > summary::-webkit-details-marker { display: none; }
.nav-details > summary::after { content: ""; width: 8px; height: 8px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.nav-details[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.sub-menu { list-style: none; margin: 0 0 8px; padding: 0 0 0 4px; }
.sub-menu a { display: block; padding: 10px 12px 10px 20px; border-radius: 10px; text-decoration: none; color: var(--navy); position: relative; }
.sub-menu a::before { content: ""; position: absolute; left: 6px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--navy)); }
.sub-menu a strong { display: block; font-size: 15px; }
.sub-menu a span { display: block; font-size: 13px; color: var(--ink-3); }
.sub-menu a:hover, .sub-menu a[aria-current="page"] { background: var(--sky); }
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .nav-menu { display: flex; position: static; padding: 0; background: none; border: 0; box-shadow: none; align-items: center; gap: 28px; max-height: none; overflow: visible; }
  .nav-menu > li > .btn { margin: 0; }
  .has-sub { position: relative; }
  .sub-menu { position: absolute; top: calc(100% + 10px); left: -16px; width: 340px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px; }
}

/* Sections */
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section-sky { background: var(--sky); }
.section-sand { background: var(--sand); }
.section-navy { background: var(--navy); color: #E8EEF6; }
.section-navy h2, .section-navy h3 { color: #fff; }
.eyebrow { display: inline-block; font: 700 13px/1.4 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 16px; }
.section-navy .eyebrow { color: var(--gold); }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-2); max-width: 720px; }
.section-head { max-width: 760px; margin-bottom: 44px; }

/* Hero */
.hero { padding: 64px 0 72px; background: radial-gradient(1200px 500px at 85% -10%, var(--sky-wash), transparent 60%), radial-gradient(900px 400px at -10% 110%, #F4ECDD, transparent 60%), var(--morning); overflow: hidden; }
@media (min-width: 900px) { .hero { padding: 104px 0 112px; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.25fr 0.75fr; } }
.hero h1 em { font-style: italic; color: var(--gold-text); }
.hero-stack { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-stack li { font: 600 13px/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; }

/* Book visual (CSS cover) */
.book { perspective: 1400px; display: grid; place-items: center; }
.book-cover { width: min(280px, 72vw); aspect-ratio: 2 / 3; border-radius: 6px 14px 14px 6px; background: linear-gradient(160deg, #0F2748 0%, var(--navy) 55%, #07142A 100%); color: #fff; padding: 32px 26px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: -14px 24px 50px rgba(11, 29, 58, 0.35), inset 6px 0 0 rgba(255,255,255,0.06); transform: rotateY(-14deg) rotateX(4deg); position: relative; }
.book-cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: linear-gradient(90deg, rgba(0,0,0,0.35), transparent); border-radius: 6px 0 0 6px; }
.book-cover .bc-top { font: 700 11px/1.4 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.book-cover .bc-title { font: 800 34px/1.05 var(--font-display); letter-spacing: -0.01em; }
.book-cover .bc-sub { font-size: 13px; line-height: 1.5; color: #BFD0E4; margin-top: 12px; }
.book-cover .bc-rule { width: 48px; height: 2px; background: var(--gold); margin: 18px 0; }
.book-cover .bc-author { font: 600 13px/1.4 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; }

/* Cards / grids */
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 720px) and (max-width: 1039px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 1px 0 rgba(11,29,58,0.02); }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; border-top: 4px solid var(--c, var(--gold)); }
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.card-link .card-layer { font: 700 12px/1.4 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.card-link .card-service { color: var(--ink-2); font-weight: 600; }
.card-link .card-more { margin-top: auto; padding-top: 16px; font-weight: 600; color: var(--teal); }
.card-link .card-tagline { font-family: var(--font-display); font-style: italic; color: var(--ink-2); }

/* Mark pages */
.mark-hero { padding: 56px 0 64px; background: linear-gradient(180deg, color-mix(in srgb, var(--mark) 14%, var(--morning)) 0%, var(--morning) 100%); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .mark-hero { padding: 88px 0 96px; } }
.breadcrumb { font-size: 14px; margin-bottom: 28px; color: var(--ink-3); }
.breadcrumb a { color: var(--ink-2); }
.mark-name { display: inline-flex; align-items: center; gap: 10px; font: 700 14px/1.4 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); margin-bottom: 18px; }
.mark-name::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--mark); }
.mark-hero h1 { max-width: 900px; }
.mark-hero .hook { font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: var(--ink-2); max-width: 760px; }
.pullquote { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.35; color: var(--navy); border-left: 4px solid var(--mark); padding-left: 24px; margin: 0 0 24px; max-width: 900px; }
.model { counter-reset: step; }
.model-part { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 28px 28px; border-top: 4px solid var(--mark); }
.model-steps .model-part::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font: 800 34px/1 var(--font-display); color: var(--mark); margin-bottom: 14px; }
.model-close { margin-top: 28px; font-size: 1.1rem; color: var(--ink-2); max-width: 820px; }
.channels { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .channels { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .channels { grid-template-columns: repeat(4, 1fr); } }
.channel { background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.channel strong { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); }
.cycle { display: grid; gap: 14px; margin-top: 36px; }
@media (min-width: 900px) { .cycle { grid-template-columns: repeat(4, 1fr); } }
.cycle-step { background: var(--navy); color: #E8EEF6; border-radius: var(--radius); padding: 22px; position: relative; }
.cycle-step strong { display: block; color: #fff; font: 700 1.25rem/1.2 var(--font-display); margin-bottom: 6px; }
@media (min-width: 900px) { .cycle-step:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--mark); font-size: 22px; z-index: 1; } }
.questions .model-part h3 { font-size: clamp(1.3rem, 2.8vw, 1.8rem); }
.stage { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.stage .q { font: italic 700 1.35rem/1.25 var(--font-display); color: var(--navy); margin-bottom: 8px; }
.stage .n { font-weight: 700; font-size: 15px; color: var(--ink-2); }
.stage .b { font-size: 15px; color: var(--ink-3); margin: 6px 0 0; }
.offering { display: flex; flex-direction: column; }
.offering .aud { margin-top: auto; padding-top: 14px; font-size: 14px; color: var(--ink-3); border-top: 1px dashed var(--line); }
.offering .scope { font: 700 12px/1.4 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-text); }
.stat { font: 800 clamp(2.4rem, 6vw, 3.6rem)/1 var(--font-display); color: var(--navy); }
.proof { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .proof { grid-template-columns: auto 1fr; gap: 48px; } }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; min-height: 56px; display: flex; align-items: center; }
.faq details p { padding-bottom: 18px; margin: 0; color: var(--ink-2); }
.cta-band { background: var(--navy); color: #E8EEF6; border-radius: var(--radius-lg); padding: clamp(32px, 6vw, 64px); display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.2fr 1fr; } }
.cta-band h2 { color: #fff; }
.cta-band .btn { background: var(--gold); color: var(--navy); }
.cta-band .btn:hover { background: #D8B868; color: var(--navy); }
.cta-band .btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.6); }
.cta-band .btn-ghost:hover { background: #fff; color: var(--navy); }
.mark-nav { display: grid; gap: 12px; }
@media (min-width: 720px) { .mark-nav { grid-template-columns: 1fr 1fr; } }
.mark-nav a { display: block; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--navy); }
.mark-nav a span { display: block; font-size: 13px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.mark-nav a strong { font-family: var(--font-display); font-size: 1.25rem; }
.mark-nav a.next { text-align: right; }

/* Forms */
.form { display: grid; gap: 18px; }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-row { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; }
.form label, .form legend { font-weight: 600; font-size: 15px; color: var(--navy); }
.form .opt { font-weight: 400; color: var(--ink-3); }
.form .req { color: #B3261E; }
.form input[type="email"], .form input[type="text"], .form input:not([type]), .form select, .form textarea { width: 100%; min-height: 50px; padding: 12px 14px; font: 400 16px/1.4 var(--font-body); color: var(--ink); background: #fff; border: 1.5px solid #C9D3DE; border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(47, 111, 153, 0.18); }
.form .check { display: flex; align-items: center; gap: 10px; font-weight: 500; min-height: 40px; }
.form .check input { width: 20px; height: 20px; accent-color: var(--navy); }
.form-note { font-size: 14px; color: var(--ink-3); margin: 0; }
.form-warning { font-size: 14px; margin: 0; color: #7A4D00; background: #FFF4D6; border: 1px solid #EFD48A; border-radius: 10px; padding: 10px 12px; }
.section-navy .form-note { color: #B9C7D8; }
.inline-form { grid-template-columns: 1fr; }
@media (min-width: 600px) { .inline-form { grid-template-columns: 1fr auto; } .inline-form .form-warning { grid-column: 1 / -1; } }
.registry-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 5vw, 44px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); color: var(--ink); }

/* Footer */
.site-footer { background: #07142A; color: #B9C7D8; padding: 64px 0 32px; font-size: 15px; }
.site-footer a { color: #DCE6F2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand { font: 700 1.5rem/1.2 var(--font-display); color: #fff; margin-bottom: 10px; }
.footer-head { font: 700 12px/1.4 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.footer-stack { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: #8FA3BA; }
.footer-legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; color: #8FA3BA; }
.footer-legal p { margin: 0 0 6px; }

/* Prose pages */
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* Reveal motion (progressive enhancement) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .book-cover { transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media print { .site-header, .site-footer, .preview-bar, .btn { display: none !important; } body { background: #fff; } }
.h1-service { display: block; font-size: 0.55em; font-weight: 700; color: var(--ink-2); margin-top: 0.2em; letter-spacing: -0.01em; }

/* Accessibility fixes from axe (contrast on navy; inline links underlined) */
.cta-band .eyebrow, .card-navy .eyebrow { color: var(--gold); }
.card-navy { background: var(--navy); color: #E8EEF6; border-color: var(--navy); }
.card-navy h3 { color: #fff; }
.registry-card .form-note { color: var(--ink-3); }
.form-note a, .footer-legal a, .prose a, .lead a { text-decoration: underline; }
.section-navy .lead a { color: var(--pacific); }
.form-success { margin: 0; font-weight: 600; color: #1D5C3A; background: #E6F4EC; border: 1px solid #A8D5B9; border-radius: 10px; padding: 12px 14px; grid-column: 1 / -1; }
.section-navy .form-success { color: #1D5C3A; }
