/*
Theme Name: Mutiu Babatunde Portfolio
Theme URI: https://mutiubabatunde.local
Author: Portfolio Team
Description: A bespoke one-page portfolio for Mutiu Babatunde.
Version: 1.1.4
Text Domain: mutiu-portfolio
*/

:root {
  --ink: #27120b;
  --ink-soft: #4d2a1e;
  --cream: #f5f0e7;
  --paper: #fffdf8;
  --gold: #d5a83e;
  --blue: #879bb7;
  --line: rgba(39, 18, 11, 0.18);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
body.menu-open, body.modal-open { overflow: hidden; }
.has-loader body { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 100; top: 1rem; left: 1rem; width: auto; height: auto; padding: .75rem 1rem; margin: 0; clip: auto; color: var(--ink); background: var(--paper); }
.site-shell { overflow: clip; }
.cinematic-loader { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; color: var(--paper); background: var(--ink); opacity: 1; visibility: visible; transition: opacity .7s ease, visibility .7s; }
.cinematic-loader.is-finished { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-shutter { position: absolute; left: 0; width: 100%; height: 50%; background: #160a06; transform: scaleY(0); animation: shutter-in .75s cubic-bezier(.7,0,.2,1) forwards; }
.loader-shutter-top { top: 0; transform-origin: top; }
.loader-shutter-bottom { bottom: 0; transform-origin: bottom; }
.loader-content { position: relative; z-index: 2; width: min(86vw, 64rem); text-align: center; }
.loader-intro { display: block; margin-bottom: 1.4rem; color: var(--gold); font-size: .67rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; opacity: 0; transform: translateY(1rem); animation: loader-rise .65s .45s forwards; }
.loader-name { display: flex; align-items: baseline; justify-content: center; gap: .17em; overflow: hidden; font-family: var(--serif); font-size: clamp(3.4rem, 10vw, 9rem); line-height: .85; letter-spacing: -.065em; }
.loader-name span, .loader-name em { display: block; transform: translateY(120%); animation: name-rise .9s cubic-bezier(.2,.8,.2,1) forwards; }
.loader-name span { animation-delay: .58s; }
.loader-name em { color: var(--gold); font-weight: 400; animation-delay: .72s; }
.loader-rule { position: relative; width: min(70vw, 38rem); height: 1px; margin: 2rem auto .8rem; overflow: hidden; background: rgba(255,255,255,.14); }
.loader-rule i { display: block; width: 100%; height: 100%; background: var(--gold); transform: translateX(-101%); animation: loader-rule 1.2s 1s cubic-bezier(.7,0,.2,1) forwards; }
.loader-count { display: block; text-align: right; color: rgba(255,255,255,.6); font-size: .65rem; letter-spacing: .12em; opacity: 0; animation: loader-rise .5s 1s forwards; }
@keyframes shutter-in { to { transform: scaleY(1); } }
@keyframes name-rise { to { transform: translateY(0); } }
@keyframes loader-rise { to { opacity: 1; transform: none; } }
@keyframes loader-rule { to { transform: translateX(0); } }
.scroll-progress { position: fixed; inset: 0 0 auto; z-index: 80; height: 3px; background: transparent; }
.scroll-progress span { display: block; width: 100%; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.wrap { width: min(92vw, 1440px); margin: 0 auto; }
.eyebrow {
  margin: 0 0 1rem;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 4vw;
  color: var(--paper);
  mix-blend-mode: difference;
  transition: padding .35s ease, background-color .35s ease, border-color .35s ease, color .35s ease, box-shadow .35s ease;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled, .menu-open .site-header { padding-block: .72rem; color: var(--paper); background: rgba(22, 10, 6, .9); border-bottom: 1px solid rgba(213,168,62,.24); box-shadow: 0 .8rem 2.5rem rgba(18,8,4,.14); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); mix-blend-mode: normal; }
.brand { display: inline-flex; align-items: center; gap: .75rem; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { display: block; width: 3rem; height: 3rem; flex: 0 0 auto; object-fit: contain; filter: drop-shadow(0 .3rem .75rem rgba(0,0,0,.12)); }
.desktop-nav { display: flex; align-items: center; gap: 1.6rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.desktop-nav a { position: relative; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; bottom: -.35rem; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s; }
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; min-width: 4.2rem; min-height: 2.75rem; padding: .4rem .7rem; border: 1px solid transparent; border-radius: 999px; background: transparent; color: inherit; text-transform: uppercase; font-weight: 700; letter-spacing: .08em; cursor: pointer; }
.menu-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.mobile-menu { display: none; }

.hero {
  position: relative;
  min-height: 100svh;
  color: var(--paper);
  background: var(--ink);
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(25,8,4,.95) 0%, rgba(25,8,4,.72) 43%, rgba(25,8,4,.08) 75%), linear-gradient(0deg, rgba(25,8,4,.45), transparent 45%);
}
.hero-glow { position: absolute; z-index: -1; left: var(--pointer-x, 68%); top: var(--pointer-y, 35%); width: 42vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(213,168,62,.22), transparent 68%); transform: translate(-50%,-50%); pointer-events: none; transition: left .5s ease-out, top .5s ease-out; }
.hero-content, .contact .wrap { position: relative; z-index: 1; }
.hero-ghost { position: absolute; z-index: -1; right: -2vw; bottom: -8vw; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.11); font-family: var(--serif); font-size: clamp(18rem, 38vw, 42rem); line-height: .7; letter-spacing: -.14em; pointer-events: none; }
.hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 68% 30%; filter: saturate(.78) contrast(1.03); transform-origin: center top; animation: hero-ken-burns 20s ease-in-out infinite alternate; will-change: transform; }
@keyframes hero-ken-burns {
  0% { transform: scale(1.015) translate3d(0,0,0); }
  100% { transform: scale(1.085) translate3d(-1.4%,0,0); }
}
.hero-content { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 8rem 0 5vh; }
.hero-kicker { margin-bottom: 2rem; display: flex; align-items: center; gap: 1rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; }
.hero-kicker::before { content: ""; width: 3.5rem; height: 1px; background: var(--gold); }
.hero h1 { margin: 0; max-width: 10ch; font-family: var(--serif); font-size: clamp(4.4rem, 10.5vw, 10rem); font-weight: 400; line-height: .78; letter-spacing: -.07em; }
.hero h1 span { display: block; margin-left: .72em; color: var(--gold); font-style: italic; }
.hero-footer { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-top: 3.2rem; }
.hero-copy { max-width: 34rem; margin: 0; font-size: clamp(1rem, 1.35vw, 1.28rem); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; min-height: 3.25rem; padding: .75rem 1.15rem; border: 1px solid currentColor; border-radius: 999px; color: inherit; background: transparent; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: color .25s, background .25s, transform .25s; }
.button:hover, .button:focus-visible { color: var(--ink); background: var(--paper); transform: translateY(-2px); }
.button-dark:hover, .button-dark:focus-visible { color: var(--paper); background: var(--ink); }
.button-arrow { font-size: 1.15rem; }
.scroll-cue { position: absolute; right: 0; bottom: 2.2rem; display: flex; align-items: center; gap: .8rem; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; writing-mode: vertical-rl; }
.scroll-cue i { display: block; width: 1px; height: 4rem; background: rgba(255,255,255,.5); overflow: hidden; }
.scroll-cue i::after { content: ""; display: block; width: 100%; height: 50%; background: var(--gold); animation: scroll-line 2s ease-in-out infinite; }
@keyframes scroll-line { 0% { transform: translateY(-110%); } 100% { transform: translateY(220%); } }

.ticker { background: var(--gold); border-block: 1px solid rgba(39,18,11,.25); overflow: hidden; }
.ticker-track { display: flex; width: max-content; padding: 1rem 0; animation: ticker 26s linear infinite; }
.ticker-track span { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 2rem); white-space: nowrap; }
.ticker-track span::after { content: "✦"; padding: 0 1.5rem; font-family: var(--sans); font-size: .6em; vertical-align: middle; }
@keyframes ticker { to { transform: translateX(-50%); } }

.manifesto { padding: clamp(6rem, 12vw, 12rem) 0; }
.manifesto-grid { display: grid; grid-template-columns: .55fr 1.45fr; gap: 5vw; align-items: start; }
.chapter-marker { display: flex; align-items: center; gap: 1rem; }
.chapter-marker > span { display: grid; place-items: center; width: 3rem; height: 3rem; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font-family: var(--serif); }
.chapter-marker .eyebrow { margin: 0; }
.manifesto h2 { margin: 0; font-family: var(--serif); font-size: clamp(3rem, 7vw, 7.6rem); font-weight: 400; line-height: .94; letter-spacing: -.055em; }
.manifesto h2 em { color: var(--gold); }
.manifesto-note { max-width: 22rem; margin: 2rem 0 0 auto; font-size: 1.03rem; }

.about { padding: 0 0 clamp(6rem, 12vw, 12rem); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(20rem, .95fr); gap: 7vw; align-items: center; }
.portrait-frame { position: relative; min-height: 48rem; overflow: hidden; border-radius: 48% 48% 0 0; background: var(--blue); }
.portrait-frame img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: center 20%; }
.portrait-tag { position: absolute; left: 1.2rem; bottom: 1.2rem; padding: .8rem 1rem; background: var(--paper); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.portrait-quote { position: absolute; right: 1.2rem; top: 52%; padding: 1.2rem 1.35rem; color: var(--paper); background: rgba(39,18,11,.9); font-family: var(--serif); font-size: clamp(1rem, 1.7vw, 1.5rem); line-height: 1.25; transform: rotate(2deg); box-shadow: 0 1rem 3rem rgba(0,0,0,.2); }
.about-copy h2, .section-heading { margin: 0 0 1.8rem; font-family: var(--serif); font-size: clamp(3.1rem, 6.5vw, 6.5rem); font-weight: 400; line-height: .92; letter-spacing: -.055em; }
.about-copy .lead { font-size: clamp(1.2rem, 2vw, 1.75rem); line-height: 1.35; }
.about-copy p { max-width: 38rem; }
.credential-row { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); margin-top: 2.5rem; }
.credential { padding: 1.15rem 1rem 1.15rem 0; border-bottom: 1px solid var(--line); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

.book-section { position: relative; padding: clamp(6rem, 10vw, 10rem) 0; color: var(--paper); background: var(--ink); }
.book-watermark { position: absolute; inset: 50% auto auto 50%; color: transparent; -webkit-text-stroke: 1px rgba(213,168,62,.12); font-family: var(--serif); font-size: clamp(9rem, 22vw, 25rem); line-height: .7; transform: translate(-50%,-50%) rotate(-7deg); pointer-events: none; white-space: nowrap; }
.book-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 8vw; align-items: center; }
.book-cover-wrap { position: relative; padding: 6%; }
.book-cover-wrap::before { content: ""; position: absolute; inset: 12% 0 0 12%; border: 1px solid var(--gold); }
.book-cover { position: relative; width: min(100%, 31rem); margin: 0 auto; box-shadow: -1.5rem 2rem 5rem rgba(0,0,0,.45); transform: perspective(1000px) rotateY(8deg) rotateX(1deg); transition: transform .7s cubic-bezier(.2,.7,.2,1), box-shadow .7s; }
.book-cover-wrap:hover .book-cover { transform: perspective(1000px) rotateY(0) translateY(-.7rem); box-shadow: 0 2.8rem 6rem rgba(0,0,0,.55); }
.book-copy .eyebrow { color: var(--gold); }
.book-copy h2 { margin: 0; font-family: var(--serif); font-size: clamp(3.6rem, 7vw, 7.2rem); font-weight: 400; line-height: .88; letter-spacing: -.06em; }
.book-subtitle { max-width: 33rem; margin: 1.5rem 0; color: var(--gold); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.book-description { max-width: 39rem; color: rgba(255,253,248,.75); font-size: 1.04rem; }
.book-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.book-themes { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.book-themes span { padding: .48rem .75rem; border: 1px solid rgba(255,255,255,.28); border-radius: 99px; color: rgba(255,255,255,.82); font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; }

.marriageversity { padding: clamp(6rem, 11vw, 11rem) 0; background: var(--paper); }
.mv-top { display: grid; grid-template-columns: .75fr 1.25fr; gap: 6vw; align-items: end; margin-bottom: 4rem; }
.mv-top .section-heading { margin: 0; }
.mv-top p { max-width: 34rem; margin: 0; font-size: 1.15rem; }
.mv-visual { position: relative; min-height: min(72vw, 54rem); overflow: hidden; }
.mv-visual img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.mv-card { position: absolute; right: 2vw; bottom: 2vw; width: min(92%, 31rem); padding: clamp(1.5rem, 3vw, 3rem); color: var(--paper); background: rgba(39,18,11,.95); backdrop-filter: blur(12px); }
.mv-card h3 { margin: 0 0 1rem; font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.mv-card p { color: rgba(255,253,248,.76); }
.mv-pillars { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2rem; border-block: 1px solid var(--line); }
.mv-pillars > div { position: relative; padding: 2rem clamp(1rem, 3vw, 3rem) 2rem 0; }
.mv-pillars > div + div { padding-left: clamp(1rem, 3vw, 3rem); border-left: 1px solid var(--line); }
.mv-pillars span { color: var(--gold); font-size: .7rem; }
.mv-pillars strong { display: block; margin: .75rem 0; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 400; }
.mv-pillars p { margin: 0; color: rgba(39,18,11,.7); }

.topics { padding: clamp(6rem, 10vw, 10rem) 0; color: var(--paper); background: var(--ink-soft); }
.speaking-stage { display: grid; grid-template-columns: .72fr 1.28fr; gap: 6vw; align-items: start; }
.speaking-photo { position: sticky; top: 6rem; min-height: 70vh; overflow: hidden; border-radius: 18rem 18rem .4rem .4rem; }
.speaking-photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); border-radius: inherit; }
.speaking-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; filter: saturate(.75); }
.speaking-intro { max-width: 31rem; color: rgba(255,253,248,.7); }
.topic-list { border-top: 1px solid rgba(255,255,255,.25); margin-top: 4rem; }
.topic { position: relative; display: grid; grid-template-columns: 4rem 1fr auto; align-items: center; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid rgba(255,255,255,.25); transition: padding .35s, color .35s; }
.topic::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold); transform: scaleY(0); transform-origin: bottom; transition: transform .35s; }
.topic:hover { color: var(--ink); padding-inline: 1rem; }
.topic:hover::before { transform: scaleY(1); }
.topic:hover .topic-number { color: var(--ink); }
.topic-number { color: var(--gold); font-size: .72rem; }
.topic-name { font-family: var(--serif); font-size: clamp(1.65rem, 4vw, 4rem); line-height: 1; }
.topic-note { font-size: .73rem; text-transform: uppercase; letter-spacing: .1em; }
.speaking-button { margin-top: 2rem; }

.quote-section { position: relative; overflow: hidden; padding: clamp(6rem, 11vw, 11rem) 0; color: var(--paper); background: linear-gradient(110deg, #31170e 0 67%, var(--gold) 67%); }
.quote-section::before { content: ""; position: absolute; inset: 0; opacity: .32; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(8.333% - 1px), rgba(255,255,255,.08) calc(8.333% - 1px), rgba(255,255,255,.08) 8.333%); pointer-events: none; }
.quote-section::after { content: "COVENANT"; position: absolute; right: 3vw; bottom: -1.5rem; color: rgba(49,23,14,.1); font-family: var(--serif); font-size: clamp(4rem, 8vw, 9rem); letter-spacing: .04em; line-height: 1; writing-mode: vertical-rl; pointer-events: none; }
.quote-index { position: absolute; z-index: 2; top: 2rem; right: 3vw; color: var(--ink); font-size: .66rem; font-weight: 700; letter-spacing: .18em; }
.quote-layout { position: relative; z-index: 1; display: grid; grid-template-columns: clamp(4rem, 9vw, 8rem) minmax(0, 1fr); align-items: start; }
.quote-mark { color: var(--gold); font-family: var(--serif); font-size: clamp(8rem, 18vw, 18rem); line-height: .62; transform: translateY(.08em); }
.quote-section blockquote { max-width: 10.5ch; margin: 0; font-family: var(--serif); font-size: clamp(3.5rem, 7vw, 7.5rem); line-height: .88; letter-spacing: -.06em; }
.quote-section blockquote span, .quote-section blockquote em { display: block; }
.quote-section blockquote span:nth-child(2) { margin-left: .38em; }
.quote-section blockquote em { position: relative; width: max-content; max-width: 100%; margin: .18em 0 0 .68em; color: var(--gold); font-weight: 400; }
.quote-section blockquote em::after { content: ""; position: absolute; left: .06em; right: 0; bottom: -.08em; height: .055em; background: currentColor; transform: scaleX(.22); transform-origin: left; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.quote-layout.is-visible blockquote em::after { transform: scaleX(1); }
.quote-signoff { grid-column: 2; display: grid; grid-template-columns: 3rem auto 1fr; align-items: center; gap: 1rem; width: min(100%, 43rem); margin-top: 3rem; }
.quote-signoff i { height: 1px; background: var(--gold); }
.quote-signoff cite { font-size: .73rem; font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.quote-signoff small { color: rgba(255,255,255,.58); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }

.inquiry-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1.25rem; }
.inquiry-backdrop { position: absolute; inset: 0; background: rgba(20,8,4,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: modal-fade .3s ease both; }
.inquiry-dialog { position: relative; width: min(100%, 48rem); max-height: calc(100dvh - 2.5rem); padding: clamp(1.5rem, 4vw, 3.5rem); overflow-y: auto; color: var(--ink); background: var(--paper); box-shadow: 0 2rem 7rem rgba(0,0,0,.38); animation: modal-arrive .45s cubic-bezier(.2,.8,.2,1) both; }
.inquiry-dialog::before { content: ""; position: absolute; inset: 0 auto 0 0; width: .35rem; background: var(--gold); }
.inquiry-close { position: absolute; top: 1rem; right: 1rem; padding: .45rem .7rem; border: 0; color: var(--ink); background: transparent; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.inquiry-close span { margin-left: .35rem; font-size: 1.2rem; vertical-align: -.08em; }
.inquiry-heading { max-width: 37rem; margin-bottom: 2rem; }
.inquiry-heading .eyebrow { color: #9a6a00; }
.inquiry-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 400; line-height: .92; letter-spacing: -.05em; }
.inquiry-heading p:last-child { margin-bottom: 0; color: rgba(39,18,11,.65); }
.inquiry-form { display: grid; gap: 1rem; }
.inquiry-form label { display: grid; gap: .45rem; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.inquiry-form input, .inquiry-form textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(39,18,11,.32); border-radius: 0; padding: .7rem .1rem; color: var(--ink); background: transparent; font: 400 1rem/1.4 var(--sans); text-transform: none; outline: none; transition: border-color .2s, box-shadow .2s; }
.inquiry-form textarea { min-height: 7rem; resize: vertical; }
.inquiry-form input:focus, .inquiry-form textarea:focus { border-color: var(--gold); box-shadow: 0 1px 0 var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: .75rem; }
.form-submit p { max-width: 19rem; margin: 0; color: rgba(39,18,11,.55); font-size: .72rem; }
.honey-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-feedback { margin-bottom: 2rem; padding: 1rem 1.2rem; border-left: 3px solid var(--gold); color: var(--ink); background: var(--paper); font-size: .88rem; }
@keyframes modal-fade { from { opacity: 0; } }
@keyframes modal-arrive { from { opacity: 0; transform: translateY(2rem) scale(.98); } }

.contact { position: relative; min-height: 90svh; display: flex; align-items: end; padding: 8rem 0 4rem; overflow: hidden; color: var(--paper); background: var(--ink); isolation: isolate; }
.contact::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(39,18,11,.98), rgba(39,18,11,.72) 45%, rgba(39,18,11,.15)); }
.contact-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 66% 22%; filter: saturate(.7); transform-origin: center top; animation: footer-ken-burns 22s ease-in-out infinite alternate; will-change: transform; }
@keyframes footer-ken-burns {
  0% { transform: scale(1.08) translate3d(-1.25%,0,0); }
  100% { transform: scale(1.015) translate3d(0,0,0); }
}
.contact h2 { max-width: 9ch; margin: 0; font-family: var(--serif); font-size: clamp(4rem, 9vw, 9rem); line-height: .84; letter-spacing: -.06em; }
.contact h2 em { color: var(--gold); }
.contact-bottom { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.35); }
.contact-links { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.copyright { color: rgba(255,255,255,.62); font-size: .75rem; }

[data-reveal] { --reveal-y: 2.5rem; opacity: 0; filter: blur(.55rem); transform: translate3d(0,var(--reveal-y),0) scale(.985); transition: opacity .72s ease, filter .72s ease, transform .85s cubic-bezier(.2,.7,.2,1); transition-delay: 0ms; will-change: opacity, filter, transform; }
[data-reveal].is-above { --reveal-y: -2.5rem; }
[data-reveal].is-below { --reveal-y: 2.5rem; }
[data-reveal].is-visible { opacity: 1; filter: blur(0); transform: translate3d(0,0,0) scale(1); transition-delay: var(--reveal-delay, 0ms); }

@media (max-width: 820px) {
  .admin-bar .site-header { top: 46px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-menu { position: fixed; inset: 0 0 auto; z-index: 45; display: flex; flex-direction: column; justify-content: flex-start; width: 100%; height: 100dvh; min-height: 100svh; padding: 8.5rem 8vw 3rem; overflow-y: auto; color: var(--paper); background: radial-gradient(circle at 85% 15%, rgba(213,168,62,.16), transparent 28%), var(--ink); visibility: hidden; transform: translateY(-105%); transition: transform .45s cubic-bezier(.7,0,.2,1), visibility .45s; }
  .admin-bar .mobile-menu { padding-top: 11.5rem; }
  .mobile-menu.is-open { transform: none; }
  .mobile-menu.is-open { visibility: visible; }
  .mobile-menu-label { margin-bottom: 1.5rem; color: var(--gold); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
  .mobile-menu a { padding: .6rem 0; font-family: var(--serif); font-size: clamp(2.5rem, 10vw, 4.5rem); }
  .hero::after { background: linear-gradient(0deg, rgba(25,8,4,.96), rgba(25,8,4,.32) 70%, rgba(25,8,4,.1)); }
  .hero-image { object-position: 57% 20%; }
  .hero-content { justify-content: flex-end; padding-bottom: 2rem; }
  .hero h1 { font-size: clamp(4rem, 18vw, 6.8rem); }
  .hero h1 span { margin-left: 0; }
  .hero-ghost { display: none; }
  .hero-footer { display: block; margin-top: 2rem; }
  .hero-footer .button { margin-top: 1.5rem; }
  .manifesto-grid, .about-grid, .book-grid, .mv-top, .speaking-stage { grid-template-columns: 1fr; }
  .manifesto-note { margin-left: 0; }
  .portrait-frame { min-height: 38rem; }
  .book-grid { gap: 4rem; }
  .book-cover-wrap { max-width: 32rem; margin: 0 auto; }
  .mv-top { align-items: start; }
  .mv-visual { min-height: 42rem; }
  .mv-pillars { grid-template-columns: 1fr; }
  .mv-pillars > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .speaking-photo { position: relative; top: auto; min-height: 38rem; }
  .quote-section { background: linear-gradient(155deg, #31170e 0 78%, var(--gold) 78%); }
  .quote-section::after { display: none; }
  .quote-index { color: var(--paper); }
  .quote-layout { grid-template-columns: 3.5rem 1fr; }
  .quote-section blockquote span:nth-child(2), .quote-section blockquote em { margin-left: 0; }
  .quote-section blockquote em { color: var(--gold); }
  .quote-signoff { grid-column: 1 / -1; grid-template-columns: 2rem auto; }
  .quote-signoff small { grid-column: 2; }
  .topic { grid-template-columns: 2.2rem 1fr; }
  .topic-note { display: none; }
  .contact::after { background: linear-gradient(0deg, rgba(39,18,11,.98), rgba(39,18,11,.28) 80%); }
  .contact-image { object-position: 52% center; }
  .contact-bottom { display: block; }
  .copyright { margin-top: 1.5rem; }
}

@media (min-width: 821px) {
  .hero-image { inset: 0 0 0 auto; width: 66%; object-position: center top; -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.12) 8%, rgba(0,0,0,.78) 25%, #000 40%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.12) 8%, rgba(0,0,0,.78) 25%, #000 40%); }
  .hero::after { background: linear-gradient(90deg, rgba(25,8,4,1) 0%, rgba(25,8,4,.98) 33%, rgba(25,8,4,.64) 60%, rgba(25,8,4,.18) 100%), linear-gradient(0deg, rgba(25,8,4,.45), transparent 45%); }
  .contact-image { inset: 0 0 0 auto; width: 65%; object-position: center top; -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.1) 9%, rgba(0,0,0,.8) 27%, #000 42%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.1) 9%, rgba(0,0,0,.8) 27%, #000 42%); }
  .contact::after { background: linear-gradient(90deg, rgba(39,18,11,1) 0%, rgba(39,18,11,.98) 38%, rgba(39,18,11,.55) 68%, rgba(39,18,11,.12)); }
}

@media (max-width: 520px) {
  .brand span { display: none; }
  .hero-kicker { margin-bottom: 1rem; }
  .hero-copy { font-size: .96rem; }
  .scroll-cue { display: none; }
  .credential-row { grid-template-columns: 1fr; }
  .portrait-frame { min-height: 31rem; }
  .mv-visual { min-height: 36rem; }
  .mv-card { inset: auto 1rem 1rem; width: auto; }
  .portrait-quote { right: .75rem; top: 56%; font-size: 1rem; }
  .speaking-photo { min-height: 32rem; }
  .form-row { grid-template-columns: 1fr; }
  .form-submit { align-items: stretch; flex-direction: column; }
  .form-submit .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .has-loader body { overflow: auto; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; filter: none; transform: none; }
  .cinematic-loader { display: none; }
  .hero-image, .contact-image { animation: none; transform: none; }
}

/* Blue edition: a cool, high-contrast companion to the signature brown palette. */
.palette-blue {
  --ink: #050b13;
  --ink-soft: #0b2440;
  --cream: #f2f6fb;
  --paper: #ffffff;
  --gold: #2f80ed;
  --blue: #90abc9;
  --line: rgba(5,11,19,.18);
  background: var(--cream);
}
.palette-blue .cinematic-loader { background: #06101d; }
.palette-blue .loader-shutter { background: #02060b; }
.palette-blue .site-header.is-scrolled, .palette-blue.menu-open .site-header { background: rgba(3,10,18,.92); border-bottom-color: rgba(47,128,237,.32); }
.palette-blue .hero { background: #050b13; }
.palette-blue .hero::after { background: linear-gradient(90deg, rgba(3,10,18,.98) 0%, rgba(3,10,18,.82) 43%, rgba(3,10,18,.1) 76%), linear-gradient(0deg, rgba(3,10,18,.55), transparent 46%); }
.palette-blue .hero-glow { background: radial-gradient(circle, rgba(47,128,237,.28), transparent 68%); }
.palette-blue .ticker { border-color: rgba(5,11,19,.28); }
.palette-blue .book-section { background: #050b13; }
.palette-blue .book-description { color: rgba(255,255,255,.76); }
.palette-blue .marriageversity { background: #fff; }
.palette-blue .mv-card { background: rgba(5,11,19,.95); }
.palette-blue .mv-card p { color: rgba(255,255,255,.76); }
.palette-blue .topics { background: #0b2440; }
.palette-blue .speaking-intro { color: rgba(255,255,255,.72); }
.palette-blue .quote-section { background: linear-gradient(110deg, #06111f 0 67%, #2f80ed 67%); }
.palette-blue .quote-section::after { color: rgba(5,11,19,.13); }
.palette-blue .quote-index { color: #050b13; }
.palette-blue .contact { background: #050b13; }
.palette-blue .contact::after { background: linear-gradient(90deg, rgba(3,10,18,1), rgba(3,10,18,.82) 47%, rgba(3,10,18,.16)); }
.palette-blue .inquiry-backdrop { background: rgba(2,7,13,.84); }
.palette-blue .inquiry-dialog, .palette-blue .form-feedback { color: #050b13; background: #fff; }
.palette-blue .inquiry-heading p:last-child, .palette-blue .form-submit p { color: rgba(5,11,19,.62); }
.palette-blue .inquiry-form input, .palette-blue .inquiry-form textarea { color: #050b13; border-bottom-color: rgba(5,11,19,.32); }
@media (max-width: 820px) {
  .palette-blue .mobile-menu { background: radial-gradient(circle at 85% 15%, rgba(47,128,237,.2), transparent 28%), #050b13; }
  .palette-blue .hero::after { background: linear-gradient(0deg, rgba(3,10,18,.97), rgba(3,10,18,.34) 72%, rgba(3,10,18,.1)); }
  .palette-blue .quote-section { background: linear-gradient(155deg, #06111f 0 78%, #2f80ed 78%); }
  .palette-blue .quote-index { color: #fff; }
  .palette-blue .contact::after { background: linear-gradient(0deg, rgba(3,10,18,.98), rgba(3,10,18,.3) 80%); }
}

/* Book checkout carries the primary blue / white / ink palette. */
body.palette-blue.wcpp-page{color:#050b13}
.palette-blue.wcpp-page .wcpp-art{background:#e3ebf5}
.palette-blue.wcpp-page .wcpp-description,.palette-blue.wcpp-page .wcpp-fine,.palette-blue.wcpp-page .wcpp-footer{color:#455970}
.palette-blue.wcpp-page .wcpp-header,.palette-blue.wcpp-page .wcpp-footer{border-color:#050b1326}
.palette-blue.wcpp-page .wcpp-art-label{background:#f2f6fbeb;color:#0b2440}
.palette-blue.wcpp-page .wcpp-steps [aria-current]{color:#1968d5}
.store-content{max-width:1100px;min-height:65vh;margin:auto;padding:10rem 1.5rem 5rem;color:var(--ink)}
.store-content h1{font-family:var(--serif);font-size:clamp(2.5rem,5vw,4rem);line-height:1.1}
.store-content .woocommerce{padding:2rem 0}

.developer-credit{display:inline-block}@media(max-width:600px){.developer-credit{display:block;margin-top:4px}}

.developer-credit-link{color:inherit;text-decoration:underline;text-underline-offset:3px}.developer-credit-link:hover{color:var(--gold,#2f80ed)}

/* The official wordmark has white lettering, so retain a dark badge on both palettes. */
.developer-credit{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px;vertical-align:middle}
.developer-credit .developer-credit-link{display:inline-flex;align-items:center;padding:4px 6px;border-radius:4px;background:#050b13;text-decoration:none;border:1px solid #ffffff26}
.developer-credit .developer-credit-link img{display:block;width:110px;height:25px;max-width:none;object-fit:contain}
.developer-credit .developer-credit-link:focus-visible{outline:2px solid #2f80ed;outline-offset:3px}
@media(max-width:600px){.developer-credit{margin-top:8px}}
