/* Functional Fitness — tokens & shared primitives */
:root {
  --olive: #52613A;
  --olive-deep: #3D4A2A;
  --olive-light: #8A9C68;
  --bone: #F4F0E6;
  --bone-warm: #EBE4D2;
  --ink: #1A1A17;
  --ink-soft: #3A3A3A;
  --sable: #B8623E;
  --line: rgba(26, 26, 23, 0.12);
  --line-strong: rgba(26, 26, 23, 0.22);

  --f-serif: "Fraunces", Georgia, serif;
  --f-sans: "Inter Tight", system-ui, sans-serif;

  --maxw: 1280px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* TOP BAR */
.topbar { background: var(--ink); color: var(--bone); font-family: var(--f-sans); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 0; }
.topbar-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap; }
.topbar .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sable); margin-right: 10px; vertical-align: middle; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(184, 98, 62, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(184, 98, 62, 0); } 100% { box-shadow: 0 0 0 0 rgba(184, 98, 62, 0); } }
.topbar a.cta-link { border-bottom: 1px solid rgba(244, 240, 230, 0.4); padding-bottom: 2px; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 50; background: var(--bone); border-bottom: 1px solid var(--line); backdrop-filter: saturate(140%) blur(6px); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.logo { font-family: var(--f-serif); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.logo em { font-style: italic; color: var(--olive); font-weight: 500; }
.logo-mark { width: 28px; height: 28px; background: var(--olive); color: var(--bone); display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-serif); font-style: italic; font-weight: 600; font-size: 15px; border-radius: 2px; }
.nav-links { display: flex; gap: 28px; font-family: var(--f-sans); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.nav-links a:hover { color: var(--olive); }
.nav-links a.active { color: var(--olive); border-bottom: 1px solid var(--olive); padding-bottom: 4px; }
.nav-cta { font-family: var(--f-sans); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; background: var(--ink); color: var(--bone); padding: 12px 18px; border-radius: 2px; transition: transform 0.18s ease, box-shadow 0.18s ease; box-shadow: 0 0 0 0 var(--sable); border: none; cursor: pointer; }
.nav-cta:hover { transform: translate(2px, -2px); box-shadow: -4px 4px 0 0 var(--sable); }
.nav-cta-wrap { position: relative; }
.nav-cta-toggle { display: inline-flex; align-items: center; gap: 8px; }
.nav-cta-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 260px; background: var(--ink); color: var(--bone); border: 1px solid var(--ink); display: none; flex-direction: column; z-index: 60; box-shadow: -6px 6px 0 0 var(--sable); }
.nav-cta-wrap.open .nav-cta-menu, .nav-cta-wrap:hover .nav-cta-menu, .nav-cta-wrap:focus-within .nav-cta-menu { display: flex; }
.nav-cta-menu a { padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid rgba(244,240,230,0.14); color: var(--bone); font-family: var(--f-sans); transition: background 0.18s ease; }
.nav-cta-menu a:last-child { border-bottom: none; }
.nav-cta-menu a:hover { background: var(--olive-deep); }
.nav-cta-menu .nm-tag { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sable); }
.nav-cta-menu .nm-name { font-family: var(--f-serif); font-size: 17px; letter-spacing: -0.005em; font-weight: 500; }
@media (max-width: 720px) { .nav-cta-menu { right: auto; left: 0; min-width: 220px; } }

/* WRAP */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* SECTION */
.section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: end; margin-bottom: 36px; }
.section-num { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 14px; color: var(--olive); letter-spacing: 0.02em; }
.section-num::before { content: "— "; }
.section h2 { font-family: var(--f-serif); font-weight: 500; font-size: clamp(36px, 4.5vw, 56px); line-height: 1.02; letter-spacing: -0.015em; margin: 12px 0 0; max-width: 18ch; }
.section h2 em { font-style: italic; color: var(--olive); font-weight: 400; }
.section-intro { font-family: var(--f-sans); font-size: 16px; color: var(--ink-soft); line-height: 1.6; max-width: 48ch; }
.eyebrow { font-family: var(--f-sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--olive); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: "—"; color: var(--olive); font-weight: 500; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-sans); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; padding: 14px 22px; border-radius: 2px; border: 1px solid transparent; cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease; background: transparent; color: var(--ink); }
.btn .arr { transition: transform 0.18s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: var(--bone); }
.btn-primary:hover { transform: translate(2px, -2px); box-shadow: -4px 4px 0 0 var(--sable); }
.btn-olive { background: var(--olive); color: var(--bone); }
.btn-olive:hover { background: var(--olive-deep); transform: translate(2px, -2px); box-shadow: -4px 4px 0 0 var(--ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bone); transform: translate(2px, -2px); box-shadow: -4px 4px 0 0 var(--sable); }
.btn-ghost-light { border-color: var(--bone); color: var(--bone); }
.btn-ghost-light:hover { background: var(--bone); color: var(--ink); transform: translate(2px, -2px); box-shadow: -4px 4px 0 0 var(--sable); }
.btn-link { padding: 6px 0; border-bottom: 1px solid var(--ink); border-radius: 0; letter-spacing: 0.06em; }
.btn-link:hover { color: var(--olive); border-color: var(--olive); }

/* BADGES */
.badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-sans); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding: 8px 14px; background: var(--bone-warm); color: var(--ink); border: 1px solid var(--ink); transform: rotate(-3deg); box-shadow: 4px 4px 0 0 var(--ink); }
.badge.sable { background: var(--sable); color: var(--bone); }
.badge.olive { background: var(--olive); color: var(--bone); }
.badge.flat { transform: none; box-shadow: none; background: transparent; border: 1px solid var(--line-strong); color: var(--ink-soft); }

/* EMPHASIS BANNER */
.emph { background: var(--ink); color: var(--bone); padding: 36px 40px; display: grid; grid-template-columns: 6px 1fr auto; gap: 28px; align-items: center; width: 100%; }
.emph .bar { width: 6px; align-self: stretch; background: var(--sable); }
.emph h4 { font-family: var(--f-serif); font-weight: 500; font-size: 28px; margin: 0 0 6px; line-height: 1.1; letter-spacing: -0.01em; }
.emph p { margin: 0; color: rgba(244,240,230,0.78); font-size: 14px; max-width: 60ch; }

/* QUOTE */
.quote { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; letter-spacing: -0.01em; max-width: 22ch; color: var(--ink); }
.quote::before { content: "« "; color: var(--olive); font-style: normal; }
.quote::after { content: " »"; color: var(--olive); font-style: normal; }

/* PHOTO PLACEHOLDER */
.ph { background: repeating-linear-gradient(135deg, var(--bone-warm) 0 12px, #ddd5c0 12px 24px); position: relative; overflow: hidden; }
.ph::after { content: attr(data-label); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; color: var(--ink-soft); letter-spacing: 0.08em; text-align: center; padding: 20px; }
.ph.olive { background: repeating-linear-gradient(135deg, var(--olive-light) 0 12px, #5d6d44 12px 24px); }
.ph.olive::after { color: rgba(244,240,230,0.85); }
.ph.dark { background: repeating-linear-gradient(135deg, #2a2a26 0 12px, #1a1a17 12px 24px); }
.ph.dark::after { color: rgba(244,240,230,0.7); }
.ph.sable { background: repeating-linear-gradient(135deg, #c47352 0 12px, var(--sable) 12px 24px); }
.ph.sable::after { color: rgba(244,240,230,0.9); }

/* FOOTER */
.footer { background: var(--ink); color: var(--bone); padding: 80px 0 40px; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 56px; }
.footer h5 { font-family: var(--f-sans); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-warm); margin: 0 0 18px; font-weight: 500; }
.footer p, .footer li { font-size: 14px; line-height: 1.7; color: rgba(244, 240, 230, 0.78); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li a:hover { color: var(--bone); border-bottom: 1px solid var(--sable); }
.footer .brand { font-family: var(--f-serif); font-size: 32px; font-weight: 500; color: var(--bone); line-height: 1; letter-spacing: -0.01em; margin-bottom: 18px; }
.footer .brand em { font-style: italic; color: var(--olive-light); font-weight: 400; }
.footer-bottom { max-width: var(--maxw); margin: 56px auto 0; padding: 24px 32px 0; border-top: 1px solid rgba(244,240,230,0.12); display: flex; justify-content: space-between; font-family: var(--f-sans); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(244,240,230,0.55); flex-wrap: wrap; gap: 16px; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* BURGER & MOBILE DRAWER */
.nav-burger { display: none; background: transparent; border: 1px solid var(--ink); padding: 10px 12px; cursor: pointer; align-items: center; justify-content: center; gap: 4px; font-family: var(--f-sans); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease; }
.nav-burger:hover { background: var(--ink); color: var(--bone); }
.nav-burger .burger-icon { display: inline-flex; flex-direction: column; gap: 3px; width: 16px; }
.nav-burger .burger-icon span { display: block; height: 2px; width: 100%; background: currentColor; transition: transform 0.18s ease, opacity 0.18s ease; }
.nav-burger[aria-expanded="true"] .burger-icon span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] .burger-icon span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] .burger-icon span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-drawer { position: fixed; inset: 0; background: var(--ink); color: var(--bone); z-index: 200; display: none; flex-direction: column; overflow-y: auto; }
.mobile-drawer.open { display: flex; }
.mobile-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; border-bottom: 1px solid rgba(244,240,230,0.18); }
.mobile-drawer-head .logo { color: var(--bone); }
.mobile-drawer-head .logo em { color: var(--olive-light); }
.mobile-drawer-head .logo-mark { background: var(--bone); color: var(--ink); }
.mobile-drawer-close { background: transparent; border: 1px solid var(--bone); color: var(--bone); padding: 10px 16px; font-family: var(--f-sans); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.mobile-drawer-close:hover { background: var(--bone); color: var(--ink); }

.mobile-drawer-links { display: flex; flex-direction: column; padding: 24px 0; flex: 1; }
.mobile-drawer-links a { padding: 18px 28px; font-family: var(--f-serif); font-weight: 500; font-size: 28px; letter-spacing: -0.01em; color: var(--bone); border-bottom: 1px solid rgba(244,240,230,0.10); display: grid; grid-template-columns: 28px 1fr; gap: 18px; align-items: baseline; }
.mobile-drawer-links a::before { content: counter(mli, decimal-leading-zero); counter-increment: mli; font-family: var(--f-serif); font-style: italic; font-size: 14px; color: var(--sable); font-weight: 400; }
.mobile-drawer-links { counter-reset: mli; }
.mobile-drawer-links a:hover, .mobile-drawer-links a.active { color: var(--olive-light); }

.mobile-drawer-cta { padding: 24px 28px; border-top: 1px solid rgba(244,240,230,0.18); display: flex; flex-direction: column; gap: 10px; background: var(--ink-soft); }
.mobile-drawer-cta .ptag { font-family: var(--f-sans); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sable); margin-bottom: 4px; }
.mobile-drawer-cta a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid rgba(244,240,230,0.22); color: var(--bone); transition: background 0.18s ease, color 0.18s ease; }
.mobile-drawer-cta a:hover { background: var(--olive); border-color: var(--olive); }
.mobile-drawer-cta a .name { font-family: var(--f-serif); font-size: 18px; font-weight: 500; letter-spacing: -0.005em; }
.mobile-drawer-cta a .tag { font-family: var(--f-sans); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sable); }
.mobile-drawer-foot { padding: 18px 28px 28px; font-family: var(--f-sans); font-size: 11px; letter-spacing: 0.1em; color: rgba(244,240,230,0.5); border-top: 1px solid rgba(244,240,230,0.08); display: flex; flex-direction: column; gap: 6px; }
.mobile-drawer-foot a { color: var(--bone-warm); }

body.drawer-open { overflow: hidden; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .section-head { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-cta-wrap { display: none; }
  .nav-burger { display: inline-flex; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 64px 0; }
}

/* Accessibility — skip link */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 999; background: var(--ink); color: var(--bone); padding: 10px 16px; }
