*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.55; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; line-height: 0.92; letter-spacing: 0.005em; color: var(--olive); margin: 0 0 0.4em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.05; }
p { margin: 0 0 1em; max-width: 62ch; }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 128px) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5em; font-size: var(--step--1); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); margin-bottom: 1rem; }
.eyebrow::before { content: "✱"; color: var(--olive); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--olive); color: var(--white); padding: 10px 16px; border-radius: var(--pill); z-index: 100; }
.skip:focus { top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 46px; padding: 0.7em 1.4em; border-radius: var(--pill); border: 2px solid var(--olive); background: var(--olive); color: var(--white); font: 800 var(--step--1)/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; cursor: pointer; transition: transform 0.2s var(--ease), background 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--night); }
.btn--ghost { background: transparent; color: var(--olive); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--night); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid color-mix(in srgb, var(--olive) 12%, transparent); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand-name { font-family: var(--font-display); font-size: 1.5rem; line-height: 0.9; text-transform: uppercase; color: var(--olive); }
.brand-name small { display: block; font-family: var(--font-body); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.3em; color: var(--ink-soft); }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: var(--step--1); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-mobile { display: none; position: relative; }
.nav-mobile summary { list-style: none; cursor: pointer; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary .open-label, .nav-mobile:not([open]) summary .close-label { display: none; }
.nav-mobile .panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(86vw, 320px); background: var(--olive-deep); color: var(--cream); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.nav-mobile .panel ul { list-style: none; margin: 0 0 16px; padding: 0; }
.nav-mobile .panel a { display: block; padding: 10px 0; font-family: var(--font-display); font-size: 1.8rem; text-transform: uppercase; text-decoration: none; color: var(--cream); }
@media (max-width: 860px) { .nav-links, .header-cta { display: none; } .nav-mobile { display: block; } }

/* Footer */
.site-footer { background: var(--night); color: var(--cream); padding: 64px 0 28px; overflow: hidden; border-top: 6px solid var(--accent); }
.footer-values { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--step--1); }
.footer-lead { text-align: center; margin: 56px auto 24px; max-width: 52ch; }
.footer-top { display: flex; justify-content: center; }
.footer-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: 72px; }
.footer-links h2 { font-family: var(--font-body); font-size: var(--step--1); font-weight: 800; letter-spacing: 0.08em; color: var(--cream); margin: 0 0 6px; }
.footer-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 14px; padding: 0; margin: 0; }
.footer-links a { text-decoration: none; opacity: 0.85; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.ghost-mark { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(3.5rem, 13vw, 15rem); line-height: 0.85; color: var(--night-2); white-space: nowrap; margin: 24px 0; letter-spacing: 0.01em; user-select: none; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: var(--step--1); opacity: 0.75; border-top: 1px solid var(--night-2); padding-top: 20px; }

/* Reveal (progressive: content visible without JS) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (max-width: 420px) { .brand-name small { letter-spacing: 0.12em; } .brand-name { font-size: 1.25rem; } }

/* v4.1 shared: gold accents, footer badge, hover motion */
.btn--accent { background: var(--gold-grad); border-color: transparent; color: var(--night); }
.site-footer { border-top-color: var(--accent); }
.footer-mark { position: relative; display: flex; align-items: center; gap: clamp(12px, 3vw, 32px); }
.footer-badge { width: clamp(64px, 9vw, 130px); height: auto; flex: none; transition: transform .6s var(--ease); }
.footer-mark:hover .footer-badge { transform: rotate(-8deg) scale(1.05); }
.footer-mark .ghost-mark { margin: 0; font-size: clamp(2.6rem, 10.5vw, 12rem); overflow: hidden; }
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s var(--ease); }
.btn:hover::after { transform: translateX(120%); }
.js .reveal.is-in h2 { animation: rise .8s var(--ease) both; }
.footer-mark { margin-top: 40px; }
.footer-legal { font-size: var(--step--1); opacity: .6; margin: 28px 0 10px; max-width: none; }
