/* Vestal Analytics — site styles
   Palette: Vestal green primary, muted gold accent, white/warm paper, charcoal text. */

:root {
  --green-950: #04231A;
  --green-900: #062A1F;
  --green-800: #0B3D2E;
  --green-700: #12503C;
  --green-600: #1B6349;
  --green-100: #E4EEE9;
  --green-50: #F1F6F3;
  --gold-700: #8C6A2E;
  --gold-600: #A8843F;
  --gold-500: #B8924A;
  --gold-400: #CFAE66;
  --gold-100: #F4EBD5;
  --gold-50: #FAF5E8;
  --ink: #1E2A25;
  --ink-2: #4A5651;
  --ink-3: #6E7A74;
  --paper: #FFFFFF;
  --paper-2: #F7F6F2;
  --line: #E2E0D8;
  --line-dark: rgba(255,255,255,.14);
  --focus: #CFAE66;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-brand: "Cinzel", "Times New Roman", Georgia, serif;

  --wrap: 1180px;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 10px 30px rgba(6, 42, 31, .08);
  --shadow-lg: 0 24px 60px rgba(6, 42, 31, .16);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--ink);
  background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; letter-spacing: -.015em; color: var(--green-900); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
strong { font-weight: 600; }
.muted { color: var(--ink-3); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wrap { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; }
@media (min-width: 900px) { .wrap { width: min(var(--wrap), 100% - 4rem); } }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold-500); color: var(--green-950); padding: .6rem 1rem; z-index: 1000; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { left: 8px; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-700); margin: 0 0 .9rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold-500); }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.measure { max-width: 68ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem; line-height: 1;
  padding: .9rem 1.3rem; border-radius: var(--radius); text-decoration: none; border: 1.5px solid transparent;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s; cursor: pointer; font-family: inherit;
}
.btn svg { transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--green-800); color: #fff; }
.btn-primary:hover { background: var(--green-900); color: #fff; box-shadow: var(--shadow); }
.btn-gold { background: var(--gold-500); color: var(--green-950); }
.btn-gold:hover { background: var(--gold-400); color: var(--green-950); }
.btn-outline { border-color: var(--green-800); color: var(--green-800); background: transparent; }
.btn-outline:hover { background: var(--green-50); }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-sm { padding: .6rem .9rem; font-size: .85rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--green-900); flex-shrink: 0; }
.brand-mark { width: 52px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-brand); font-weight: 600; font-size: 1.35rem; letter-spacing: .08em; color: var(--green-800); }
.brand-sub { font-size: .62rem; letter-spacing: .38em; text-transform: uppercase; color: var(--ink-3); margin-top: .28rem; padding-left: .1em; }
.site-nav { margin-left: auto; display: none; }
.site-nav ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .55rem .7rem; font-size: .9rem; font-weight: 500; color: var(--ink-2); text-decoration: none; border-radius: var(--radius); position: relative; white-space: nowrap; }
.site-nav a:hover { color: var(--green-900); background: var(--green-50); }
.site-nav a[aria-current="page"] { color: var(--green-900); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .25rem; height: 2px; background: var(--gold-500); border-radius: 2px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .4rem; }
.site-nav + .header-actions { margin-left: 0; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--green-900); cursor: pointer; }
.icon-btn:hover { background: var(--green-50); }
.header-cta { display: none; white-space: nowrap; }
.nav-toggle { display: inline-grid; }
@media (min-width: 1200px) {
  .site-nav { display: block; }
  .nav-toggle { display: none; }
  .site-nav li:last-child a { background: var(--green-800); color: #fff; padding: .6rem 1rem; margin-left: .4rem; }
  .site-nav li:last-child a:hover { background: var(--green-900); color: #fff; }
  .site-nav li:last-child a[aria-current="page"]::after { display: none; }
  .site-nav li:last-child a[aria-current="page"] { background: var(--gold-500); color: var(--green-950); }
}
@media (min-width: 1200px) and (max-width: 1340px) { .site-nav a { padding: .55rem .45rem; font-size: .84rem; } .site-nav li:last-child a { padding: .55rem .8rem; } }
.mobile-nav { border-top: 1px solid var(--line); background: #fff; padding: 1rem 1rem 1.4rem; }
.mobile-nav ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.mobile-nav li a { display: block; padding: .8rem .4rem; font-size: 1.05rem; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav li a[aria-current="page"] { color: var(--green-800); font-weight: 600; }
.mobile-nav .btn { width: 100%; justify-content: center; }
.mobile-contact { margin: 1rem 0 0; font-size: .9rem; color: var(--ink-3); }
body.nav-open { overflow: hidden; }

/* Home hero */
.hero { position: relative; color: #fff; background: var(--green-900); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img, .hero-media svg { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(6,42,31,.94) 0%, rgba(6,42,31,.82) 45%, rgba(6,42,31,.45) 100%),
  linear-gradient(180deg, rgba(6,42,31,.2), rgba(6,42,31,.75)); }
.hero-inner { padding: clamp(4rem, 10vw, 8rem) 0 clamp(3.5rem, 8vw, 6.5rem); display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 980px) { .hero-inner { grid-template-columns: 1.2fr .8fr; } }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 4rem); max-width: 16ch; }
.hero .eyebrow { color: var(--gold-400); }
.hero .eyebrow::before { background: var(--gold-400); }
.hero .lead { color: rgba(255,255,255,.86); font-size: 1.15rem; max-width: 56ch; }
.hero-proof { display: flex; align-items: flex-start; gap: 1rem; margin-top: 1.8rem; padding: 1.1rem 1.2rem; border: 1px solid rgba(207,174,102,.4); border-radius: var(--radius-lg); background: rgba(4,35,26,.45); max-width: 620px; }
.hero-proof .num { font-size: 2.4rem; font-weight: 700; letter-spacing: -.03em; color: var(--gold-400); line-height: 1; }
.hero-proof p { margin: 0; font-size: .95rem; color: rgba(255,255,255,.88); }
.hero-logo { display: none; justify-self: end; }
@media (min-width: 980px) { .hero-logo { display: block; width: min(340px, 100%); background: rgba(255,255,255,.96); border-radius: 18px; padding: 2rem 1.8rem; box-shadow: 0 30px 70px rgba(0,0,0,.35), 0 0 0 1px rgba(207,174,102,.35); } }
.hero-logo img { width: 100%; height: auto; }
.hero .btn-outline-light { border-color: rgba(255,255,255,.6); }

/* Stat band */
.stat-band { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.stat-grid { display: grid; gap: 1px; background: var(--line); grid-template-columns: 1fr; }
@media (min-width: 720px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--paper-2); padding: 1.6rem 1.4rem; }
.stat .stat-value { font-size: 1.4rem; font-weight: 700; color: var(--green-800); letter-spacing: -.02em; display: block; margin-bottom: .3rem; }
.stat .stat-value.big { font-size: 2.2rem; color: var(--gold-700); }
.stat p { margin: 0; font-size: .92rem; color: var(--ink-2); }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--green-900); color: rgba(255,255,255,.88); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--gold-400); } .section-dark .eyebrow::before { background: var(--gold-400); }
.section-dark a:not(.btn) { color: var(--gold-400); }
.section-dark .btn-gold { color: var(--green-950); }
.section-head { max-width: 760px; margin-bottom: 2.5rem; }
.section-head h2 { margin-bottom: .6rem; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }
.section-dark .section-head p { color: rgba(255,255,255,.8); }
.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } .split.split-40 { grid-template-columns: 2fr 3fr; } }

/* Cards */
.cards { display: grid; gap: 1.2rem; }
.cards-2 { grid-template-columns: 1fr; }
.cards-3 { grid-template-columns: 1fr; }
.cards-4 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .cards-2, .cards-3, .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } .cards-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.5rem; position: relative; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d6d3c8; }
.card h3 { font-size: 1.1rem; margin-bottom: .55rem; }
.card p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.card .card-num { font-size: .78rem; font-weight: 600; color: var(--gold-700); letter-spacing: .1em; margin-bottom: .8rem; display: block; }
.card-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-weight: 600; font-size: .92rem; text-decoration: none; }
.card-link svg { transition: transform .2s var(--ease); } .card-link:hover svg { transform: translateX(3px); }
.card--accent { border-top: 3px solid var(--gold-500); }
.card--dark { background: var(--green-800); border-color: var(--green-700); color: rgba(255,255,255,.88); }
.card--dark h3 { color: #fff; } .card--dark p { color: rgba(255,255,255,.8); }
.icon-tile { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; background: var(--green-50); color: var(--green-800); margin-bottom: 1rem; }
.icon-tile svg { width: 24px; height: 24px; }

/* Question pair */
.question { border-left: 3px solid var(--gold-500); padding: .2rem 0 .2rem 1.4rem; }
.question h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.question p { color: var(--ink-2); }

/* Definition rows (service list) */
.defs { border-top: 1px solid var(--line); }
.def { display: grid; gap: .4rem 2rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .def { grid-template-columns: 300px 1fr; } }
.def dt { font-weight: 600; color: var(--green-900); }
.def dd { margin: 0; color: var(--ink-2); }

/* Checklist */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.check-list li { padding-left: 2rem; position: relative; color: var(--ink-2); }
.check-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--gold-100); border: 1.5px solid var(--gold-500); }
.check-list li::after { content: ""; position: absolute; left: 5px; top: calc(.45em + 4px); width: 6px; height: 6px; border-radius: 50%; background: var(--gold-600); }

/* Limitation box */
.limitation { border: 1px solid var(--line); border-left: 4px solid var(--gold-500); background: var(--gold-50); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 2rem 0 0; }
.limitation-label { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-700); margin-bottom: .4rem; }
.limitation p:last-child { margin: 0; font-size: .95rem; color: var(--ink-2); }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(180deg, var(--green-50), #fff); border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; gap: 2rem; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .page-hero-grid { grid-template-columns: 1.1fr .9fr; } }
.page-hero--compact .page-hero-grid { padding: 3rem 0 2.2rem; grid-template-columns: 1fr; }
.page-hero h1 { max-width: 20ch; }
.page-hero-visual svg { width: 100%; height: auto; }

/* Strength index visual */
.si { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow); }
.si-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.si-head h3 { margin: 0; font-size: 1rem; }
.si-badge { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-700); background: var(--gold-100); padding: .35rem .6rem; border-radius: 999px; }
.si-scale { display: grid; grid-template-columns: 130px 1fr; gap: .4rem 1rem; font-size: .75rem; color: var(--ink-3); margin-bottom: .4rem; }
.si-ticks { display: flex; justify-content: space-between; }
.si-row { display: grid; grid-template-columns: 130px 1fr; gap: .4rem 1rem; align-items: center; padding: .55rem 0; border-top: 1px dashed var(--line); }
.si-row .si-label { font-size: .86rem; font-weight: 600; color: var(--green-900); }
.si-row .si-label small { display: block; font-weight: 500; color: var(--ink-3); font-size: .74rem; }
.si-bars { display: grid; gap: .35rem; }
.si-bar { height: 12px; background: var(--paper-2); border-radius: 999px; position: relative; overflow: hidden; }
.si-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; transition: width 1.1s var(--ease), background .5s; }
.si-bar.defense i { background: var(--green-700); }
.si-bar.opposing i { background: var(--gold-500); }
.si-bar.unknown i { background: repeating-linear-gradient(45deg, #d9d6cc 0 6px, #eceae3 6px 12px); }
.si-legend { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .8rem; color: var(--ink-2); margin-top: 1rem; }
.si-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .4rem; vertical-align: -1px; }
.si-legend .l-def::before { background: var(--green-700); } .si-legend .l-opp::before { background: var(--gold-500); } .si-legend .l-unk::before { background: repeating-linear-gradient(45deg, #d9d6cc 0 3px, #eceae3 3px 6px); }
.si-controls { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.1rem; }
.si-controls button { font: inherit; font-size: .8rem; font-weight: 600; padding: .45rem .8rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.si-controls button[aria-pressed="true"] { border-color: var(--green-800); color: var(--green-800); background: var(--green-50); }
.si-totals { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1rem; }
.si-total { background: var(--paper-2); border-radius: var(--radius); padding: .7rem .9rem; font-size: .82rem; color: var(--ink-2); }
.si-total b { display: block; font-size: 1.3rem; color: var(--green-900); letter-spacing: -.02em; }
.si-note { font-size: .78rem; color: var(--ink-3); margin: .9rem 0 0; }

/* Media / insights */
.insight-list { display: grid; gap: 1.2rem; }
@media (min-width: 800px) { .insight-list { grid-template-columns: repeat(2, 1fr); } .insight-list.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.insight { display: flex; flex-direction: column; gap: .5rem; }
.insight .meta { font-size: .78rem; color: var(--ink-3); display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.tag { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .25rem .5rem; border-radius: 999px; background: var(--green-50); color: var(--green-800); }
.tag.tag-media { background: var(--gold-100); color: var(--gold-700); }
.insight h3 a { text-decoration: none; color: var(--green-900); }
.insight h3 a:hover { text-decoration: underline; }
.insight .source { font-size: .85rem; color: var(--ink-3); }
.article { max-width: 760px; }
.article-body { font-size: 1.06rem; }
.article-body h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.article-body h3 { font-size: 1.15rem; margin-top: 1.8rem; }
.article-body ul li, .article-body ol li { margin-bottom: .4rem; }
.article-body blockquote { margin: 1.5rem 0; padding: .3rem 0 .3rem 1.3rem; border-left: 3px solid var(--gold-500); color: var(--ink-2); font-style: italic; }
.article-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; font-size: .88rem; color: var(--ink-3); margin: 1rem 0 2rem; }
.article-callout { background: var(--paper-2); border-radius: var(--radius-lg); padding: 1.2rem 1.4rem; margin: 2rem 0; font-size: .95rem; color: var(--ink-2); }
.article-callout strong { color: var(--green-900); }
.source-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; }
.pub-note { font-size: .88rem; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2rem; }

/* About */
.founder-intro { display: grid; gap: 1.6rem; align-items: end; margin-bottom: 2.6rem; }
@media (min-width: 900px) { .founder-intro { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem; } }
.founder-intro .lead { margin: 0; color: var(--ink-2); max-width: 34ch; }
.founder-intro--compact { grid-template-columns: 1fr; margin-bottom: 2rem; }
.founder-figure { margin: 0; }
.founder-figure picture, .founder-figure img { display: block; width: 100%; height: auto; }
.founder-figure img { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: 0 18px 44px rgba(11,61,46,.10); }
/* Founder portrait: slow light sweep, 24s seamless loop */
.founder-art { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: 0 18px 44px rgba(11,61,46,.10); isolation: isolate; }
.founder-art img { border: 0; border-radius: 0; box-shadow: none; }
.ff-rake { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ff-rake::before { content: ""; position: absolute; top: -20%; left: 0; width: 40%; height: 140%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.26), transparent); transform: translate3d(-150%,0,0) rotate(12deg); animation: ff-rake 24s ease-in-out infinite; }
@keyframes ff-rake { 0%, 8% { transform: translate3d(-150%,0,0) rotate(12deg); } 46%, 100% { transform: translate3d(320%,0,0) rotate(12deg); } }
.ff-lens { position: absolute; left: 0; top: 0; width: 19%; aspect-ratio: 1; opacity: 0; pointer-events: none; animation: ff-lens 24s linear infinite; }
.ff-glass { position: absolute; inset: 0; border-radius: 50%; border: 6px solid #04231A; box-shadow: inset 0 0 0 1px var(--gold-500), inset 8px 10px 24px rgba(255,255,255,.55), 0 18px 30px -12px rgba(4,35,26,.4); background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.45), rgba(255,255,255,.06) 55%, rgba(207,174,102,.08)); }
.ff-handle { position: absolute; left: 78%; top: 80%; width: 12%; height: 64%; border-radius: 6px; background: linear-gradient(90deg, #062A1F, #0B3D2E, #04231A); transform: rotate(-45deg); transform-origin: top center; }
@keyframes ff-lens { 0%, 28% { opacity: 0; transform: translate3d(-120%,30%,0); } 33% { opacity: 1; transform: translate3d(55%,30%,0); } 40% { opacity: 1; transform: translate3d(60%,34%,0); } 52% { opacity: 1; transform: translate3d(175%,210%,0); } 57% { opacity: 0; transform: translate3d(190%,290%,0); } 58%, 100% { opacity: 0; transform: translate3d(-120%,30%,0); } }
@media (prefers-reduced-motion: reduce) { .ff-rake, .ff-lens { display: none; } }
.founder-figure figcaption { margin-top: .7rem; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.bio-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .bio-grid { grid-template-columns: 320px 1fr; gap: 3.5rem; align-items: start; } }
.bio-card { background: var(--green-900); color: #fff; border-radius: var(--radius-lg); padding: 1.8rem; position: sticky; top: 100px; }
.bio-card h3 { color: #fff; margin-bottom: .2rem; }
.bio-card .role { color: var(--gold-400); font-size: .9rem; margin-bottom: 1.2rem; }
.bio-card dl { margin: 0; display: grid; gap: .8rem; font-size: .9rem; }
.bio-card dt { color: rgba(255,255,255,.6); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.bio-card dd { margin: 0; color: rgba(255,255,255,.9); }
.bio-card a { color: var(--gold-400); }
.logo-cloud { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0 1.4rem; }
.logo-cloud span { font-size: .82rem; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: #fff; }

/* Contact */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--green-900); }
.field label .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(18,80,60,.15); }
.field textarea { min-height: 150px; resize: vertical; }
.field .help { font-size: .8rem; color: var(--ink-3); margin: .35rem 0 0; }
.form-warning { background: var(--gold-50); border: 1px solid var(--gold-100); border-radius: var(--radius); padding: .9rem 1rem; font-size: .88rem; color: var(--ink-2); }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.consent input { margin-top: .3rem; width: 18px; height: 18px; flex-shrink: 0; }
.hp { position: absolute; left: -9999px; }
.contact-aside { background: var(--paper-2); border-radius: var(--radius-lg); padding: 1.8rem; }
.contact-aside h3 { font-size: 1.05rem; }
.contact-aside .big-link { font-size: 1.25rem; font-weight: 600; text-decoration: none; display: block; }
.contact-aside dl { margin: 0; display: grid; gap: 1rem; }
.contact-aside dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.contact-aside dd { margin: .2rem 0 0; }

/* CTA band */
.cta-band { background: var(--green-800); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(207,174,102,.08); }
.cta-band-inner { padding: clamp(3rem, 6vw, 4.5rem) 0; display: grid; gap: 1.6rem; align-items: center; position: relative; }
@media (min-width: 900px) { .cta-band-inner { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: rgba(255,255,255,.82); margin: 0; max-width: 60ch; }
.cta-band .actions { margin: 0; }

/* Footer */
.site-footer { background: var(--green-950); color: rgba(255,255,255,.78); padding: 3.5rem 0 2rem; font-size: .92rem; }
.footer-grid { display: grid; gap: 2.2rem; }
.footer-brand { align-self: start; }
.footer-logo { display: block; width: 220px; max-width: 100%; height: auto; background: #fff; border-radius: 14px; padding: 1rem 1.1rem; box-shadow: 0 0 0 1px rgba(207,174,102,.45), 0 18px 40px rgba(0,0,0,.35); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 220px 1fr 1.2fr 1.6fr; gap: 3rem; } }
.footer-heading { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 1rem; font-weight: 700; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-links a, .footer-contact a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-400); text-decoration: underline; }
.footer-contact { margin-bottom: .8rem; }
.site-footer .btn-outline-light { margin-top: .6rem; font-size: .85rem; padding: .7rem 1rem; }
.footer-boundaries p { font-size: .86rem; color: rgba(255,255,255,.7); }
.footer-boundaries a { color: var(--gold-400); }
.footer-bottom { border-top: 1px solid var(--line-dark); margin-top: 2.5rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .82rem; color: rgba(255,255,255,.55); }
.footer-tagline { font-family: var(--font-brand); letter-spacing: .04em; color: rgba(255,255,255,.6); }

/* Search overlay & page */
.search-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(4,35,26,.72); backdrop-filter: blur(6px); padding: 5vh 1rem; overflow: auto; }
.search-panel { background: #fff; border-radius: var(--radius-lg); max-width: 760px; margin: 0 auto; padding: 1.6rem; box-shadow: var(--shadow-lg); }
.search-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.search-head h2 { margin: 0; font-size: 1.15rem; }
.search-form { display: flex; gap: .6rem; }
.search-form input { flex: 1; font: inherit; font-size: 1.05rem; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius); }
.search-form input:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(18,80,60,.15); }
.search-hint { font-size: .8rem; color: var(--ink-3); margin: .6rem 0 0; }
.search-results { margin-top: 1rem; }
.search-result { padding: 1rem 0; border-top: 1px solid var(--line); }
.search-result h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.search-result h3 a { text-decoration: none; }
.search-result p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.search-result .crumb { font-size: .74rem; color: var(--gold-700); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.search-result mark { background: var(--gold-100); color: inherit; padding: 0 .1em; border-radius: 2px; }
.search-empty { color: var(--ink-3); padding: 1.2rem 0; }
.search-page .search-form { max-width: 680px; }
.search-page .search-results { max-width: 760px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .si-bar i { transition: none; } .btn, .card { transition: none; } }

/* Utility */
.grid-2 { display: grid; gap: 1.5rem; } @media (min-width: 800px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { font-size: .82rem; padding: .4rem .75rem; border-radius: 999px; background: var(--green-50); color: var(--green-800); border: 1px solid var(--green-100); }
.notice { background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius); padding: 1rem 1.2rem; font-size: .92rem; color: var(--ink-2); }
.table-wrap { overflow-x: auto; }
table.plain { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.plain th, table.plain td { text-align: left; padding: .8rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plain th { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.prose h2 { margin-top: 2.2rem; font-size: 1.4rem; }
.prose p { color: var(--ink-2); }
.error-page { padding: 6rem 0; text-align: center; }
.error-page h1 { font-size: clamp(2rem, 5vw, 3rem); }

/* Admin (editor) — lightweight, noindex */
.admin { max-width: 980px; }
.admin-bar { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.admin-list { display: grid; gap: .6rem; }
.admin-item { display: grid; grid-template-columns: 1fr auto; gap: .6rem 1rem; align-items: center; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.admin-item .t { font-weight: 600; color: var(--green-900); }
.admin-item .m { font-size: .8rem; color: var(--ink-3); }
.admin-item .a { display: flex; gap: .4rem; }
.admin-editor { display: grid; gap: 1rem; background: var(--paper-2); border-radius: var(--radius-lg); padding: 1.5rem; }
.admin-editor textarea { min-height: 320px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92rem; }
.admin-status { font-size: .9rem; padding: .7rem 1rem; border-radius: var(--radius); background: var(--green-50); color: var(--green-900); }
.admin-status.err { background: #fdeeee; color: #8a1f1f; }
.btn-danger { background: #fff; border-color: #c94b4b; color: #a12b2b; }
.btn-danger:hover { background: #fdf1f1; }
.toolbar { display: flex; flex-wrap: wrap; gap: .4rem; }
.toolbar button { font: inherit; font-size: .78rem; font-weight: 600; padding: .4rem .65rem; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); cursor: pointer; }
.toolbar button:hover { background: var(--green-50); }


/* Home hero: tile-field scene (src/templates/tile-field.mjs) */
.hero--tiles .hero-logo { display: none; }
.hero--tiles .hero-shade { background:
  linear-gradient(90deg, rgba(4,32,24,.9) 0%, rgba(4,32,24,.7) 36%, rgba(4,32,24,.12) 58%, rgba(4,32,24,0) 100%),
  linear-gradient(180deg, rgba(4,32,24,.1) 0%, rgba(4,32,24,0) 30%, rgba(4,32,24,0) 70%, rgba(4,32,24,.3) 100%); }
@media (min-width: 980px) { .hero--tiles .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.tf { display: block; }
.tf-scene { transform-origin: 66% 50%; animation: tf-drift 18s ease-in-out infinite; }
@keyframes tf-drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-1.4%, .7%) scale(1.04); } }
.tf-tile { animation: tf-breathe 18s ease-in-out infinite; animation-delay: calc(var(--d, 0s) * -1); }
@keyframes tf-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .94; } }
/* diagonal light beam: a slow pass every 9s, brightening the paper it crosses */
.tf-beam { animation: tf-beam 9s cubic-bezier(.4,.05,.6,.95) infinite; transform-origin: 0 0; }
@keyframes tf-beam { 0% { transform: translateX(-380px); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(760px); opacity: 0; } }
.tf-ambientlight { animation: tf-ambient 9s ease-in-out infinite; }
@keyframes tf-ambient { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
/* sequential highlights: main.js adds .is-lit one tile at a time, keeps them lit, then clears all */
.tf-glow { filter: url(#tf-blur); opacity: 0; transition: opacity .9s ease; }
.tf-lit { opacity: 0; transition: opacity .7s ease; }
.tf-outline { stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 7px rgba(231,207,143,.6)); transition: stroke-dashoffset 1.1s ease-in-out; }
.tf-hl.is-lit .tf-glow { opacity: .55; }
.tf-hl.is-lit .tf-lit { opacity: .62; }
.tf-hl.is-lit .tf-outline { stroke-dashoffset: 0; }
.tf-hl.is-current .tf-glow { opacity: .8; } .tf-hl.is-current .tf-lit { opacity: .78; }
.tf-label { opacity: 0; transition: opacity .6s ease .5s; }
.tf-leader { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .8s ease-out .4s; }
.tf-label.is-lit { opacity: 1; }
.tf-label-text { filter: drop-shadow(0 1px 2px rgba(2,25,15,.9)) drop-shadow(0 0 10px rgba(255,228,143,.8)); }
.tf-label.is-lit .tf-leader { stroke-dashoffset: 0; }
.tf-resetting .tf-glow, .tf-resetting .tf-lit, .tf-resetting .tf-label { transition-duration: 1.4s; transition-delay: 0s; }
.tf-resetting .tf-outline, .tf-resetting .tf-leader { transition-duration: 1.2s; transition-delay: 0s; }
/* pause control + caption (home hero) */
.tf-caption { position: absolute; right: clamp(1rem, 3vw, 2.5rem); bottom: 1.1rem; z-index: 2; display: flex; align-items: center; gap: .9rem; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.tf-pause { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: rgba(4,32,24,.35); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(4px); }
.tf-pause:hover { background: rgba(255,255,255,.12); }
.tf-pause svg { width: 12px; height: 12px; fill: currentColor; }
.tf-pause .ic-play { display: none; }
.tf-paused .tf-pause .ic-play { display: block; } .tf-paused .tf-pause .ic-pause { display: none; }
.tf-paused .tf-scene, .tf-paused .tf-tile, .tf-paused .tf-beam, .tf-paused .tf-ambientlight { animation-play-state: paused; }
@media (max-width: 979px) { .tf-caption span { display: none; } .hero--tiles .tf-labels, .tf-band .tf-labels { display: none; } }
/* band + panel variants */
.tf-band { position: relative; overflow: hidden; isolation: isolate; }
.tf-band > .tf-bg { position: absolute; inset: 0; z-index: -2; }
.tf-band > .tf-bg svg { width: 100%; height: 100%; }
.tf-band > .tf-bg-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4,32,24,.9) 0%, rgba(4,32,24,.72) 40%, rgba(4,32,24,.66) 60%, rgba(4,32,24,.84) 100%); }
@media (max-width: 979px) { .tf-band > .tf-bg-shade { background: linear-gradient(180deg, rgba(4,32,24,.86), rgba(4,32,24,.92)); } }
.tf-panel { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(4,32,24,.55), 0 0 0 1px rgba(207,174,102,.25); }
.tf-panel svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tf-panel .tf-caption { right: 1rem; bottom: .8rem; }
@media (prefers-reduced-motion: reduce) {
  .tf-scene, .tf-tile, .tf-beam, .tf-ambientlight { animation: none !important; }
  .tf-glow { opacity: .22 !important; } .tf-lit { opacity: .4 !important; } .tf-outline, .tf-leader { stroke-dashoffset: 0 !important; } .tf-label { opacity: 1 !important; } .tf-beam { opacity: .6; transform: translateX(260px); }
  .tf-caption .tf-pause { display: none; }
}
@media (max-width: 979px) { .hero--tiles .hero-shade { background: linear-gradient(180deg, rgba(4,32,24,.72), rgba(4,32,24,.86)); } }

/* Designer credit */
.footer-credit { font-size: .78rem; color: rgba(255,255,255,.5); }
.footer-credit a { color: rgba(255,255,255,.72); text-decoration: underline; text-underline-offset: 2px; }
.footer-credit a:hover, .footer-credit a:focus-visible { color: #fff; }
@media (max-width: 720px) { .footer-bottom { flex-direction: column; } }


/* Testimonials */
.testimonial-list { display: grid; gap: 1.2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .testimonial-list { grid-template-columns: repeat(2, 1fr); } }
.testimonial { margin: 0; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold-500); border-radius: var(--radius-lg); padding: 2.4rem 1.6rem 1.6rem; position: relative; display: flex; flex-direction: column; height: 100%; }
.testimonial::before { content: "\201C"; position: absolute; top: .4rem; left: 1.3rem; font-family: var(--font-brand); font-size: 3.4rem; line-height: 1; color: var(--gold-400); }
.testimonial blockquote { margin: 0 0 1.2rem; flex: 1; }
.testimonial blockquote p { color: var(--ink-2); font-size: .97rem; line-height: 1.7; margin: 0 0 .9em; }
.testimonial blockquote p:last-child { margin-bottom: 0; }
.testimonial blockquote strong { color: var(--green-900); }
.testimonial figcaption { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-800); padding-top: 1rem; border-top: 1px solid var(--line); }
.testimonial figcaption::before { content: "— "; color: var(--gold-600); }
@media (min-width: 860px) { .testimonial-list { align-items: stretch; } }
