/* ==========================================================================
   Cotton Foundation — cottongives.org · v2
   Editorial, quiet, expensive. Fraunces for display, Hanken Grotesk for
   everything else. Warm paper, deep navy, one gold line.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL, variable) ---------- */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("/assets/fonts/playfair-display-latin-wght-normal.woff2") format("woff2-variations"), url("/assets/fonts/playfair-display-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("/assets/fonts/playfair-display-latin-wght-italic.woff2") format("woff2-variations"), url("/assets/fonts/playfair-display-latin-wght-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/jost-latin-wght-normal.woff2") format("woff2-variations"), url("/assets/fonts/jost-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/jost-latin-wght-italic.woff2") format("woff2-variations"), url("/assets/fonts/jost-latin-wght-italic.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --navy: #17345E;
  --navy-deep: #0E2140;
  --navy-ink: #0A162E;
  --navy-soft: #24437A;
  --gold: #C9A24B;
  --gold-bright: #E0A600;
  --gold-deep: #9F762B;
  --gold-text: #7A5A12;
  --paper: #F6F3EC;
  --paper-2: #EDE8DD;
  --paper-3: #E4DDCF;
  --white: #FFFFFF;
  --ink: #161B24;
  --ink-2: #4A5160;
  --ink-3: #7A8090;
  --line: rgba(22, 27, 36, 0.12);
  --line-strong: rgba(22, 27, 36, 0.24);
  --line-dark: rgba(255, 255, 255, 0.14);
  --error: #B4232E;

  --font-display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --font-sans: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;

  --size-hero: clamp(3rem, 1.8rem + 5.6vw, 7rem);
  --size-h1: clamp(2.75rem, 1.6rem + 4vw, 5.25rem);
  --size-h2: clamp(2.125rem, 1.4rem + 2.6vw, 3.75rem);
  --size-h3: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --size-h4: 1.375rem;
  --size-lede: clamp(1.125rem, 1rem + .5vw, 1.375rem);
  --size-body: 1.0625rem;
  --size-small: .9375rem;
  --size-label: .75rem;
  --size-numeral: clamp(4.5rem, 3rem + 6vw, 9rem);

  --wrap: 1320px;
  --wrap-narrow: 760px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(5rem, 10vw, 9rem);
  --section-sm: clamp(3.5rem, 7vw, 6rem);
  --gap: clamp(2rem, 5vw, 5rem);
  --header-h: 88px;
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-soft: 0 24px 60px -30px rgba(14, 33, 64, .35);
}
@media (max-width: 767px) { :root { --header-h: 72px; --radius: 18px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: var(--size-body); line-height: 1.62; font-weight: 400; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, .display { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; color: var(--navy); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: var(--size-h1); font-weight: 500; }
h2 { font-size: var(--size-h2); font-weight: 500; }
h3 { font-size: var(--size-h3); font-weight: 500; line-height: 1.15; }
h4 { font-size: var(--size-h4); font-weight: 600; line-height: 1.2; }
h1 em, h2 em, h3 em, .display em { font-style: italic; font-weight: 400; color: inherit; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--navy); text-decoration: none; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }
p > a:not(.btn), li > a:not(.btn):not(.nav__link):not(.menu__link):not(.footer__link):not(.card-link) { text-decoration: underline; text-decoration-color: rgba(23,52,94,.4); }
ul, ol { padding-left: 1.2em; margin: 0 0 1.1em; }
strong, b { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .dark :focus-visible { outline-color: var(--gold-bright); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--gold-bright); color: var(--ink); padding: 12px 20px; border-radius: 999px; font-weight: 600; }
.skip-link:focus { top: 16px; text-decoration: none; }

.lede { font-size: var(--size-lede); line-height: 1.5; color: var(--ink); font-weight: 400; letter-spacing: 0; }
.small { font-size: var(--size-small); }
.muted { color: var(--ink-2); }
.caption { font-size: .8125rem; color: var(--ink-2); letter-spacing: .01em; }
.measure { max-width: 64ch; }
.measure--narrow { max-width: 52ch; }
.center { text-align: center; }
.center .measure { margin-left: auto; margin-right: auto; }

/* Labels — the small tracked line above headings */
.label { display: inline-flex; align-items: center; gap: .75rem; font-family: var(--font-sans); font-size: var(--size-label); font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 1.25rem; line-height: 1.2; }
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .8; }
.label--plain::before { display: none; }
.label--num { color: var(--ink-2); }
.dark .label, .on-dark .label { color: var(--gold); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap--narrow { max-width: calc(var(--wrap-narrow) + var(--gutter) * 2); }
.section { position: relative; padding: var(--section) 0; }
.section--sm { padding: var(--section-sm) 0; }
.section--flush-top { padding-top: 0; }
.section--paper2 { background: var(--paper-2); }
.section--white { background: var(--white); }
.dark { background: var(--navy-deep); color: rgba(255,255,255,.88); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--white); }
.dark a { color: var(--white); }
.dark .lede { color: rgba(255,255,255,.92); }
.dark .muted, .dark .caption { color: rgba(255,255,255,.62); }
.dark hr { border-color: var(--line-dark); }
.rule { border-top: 1px solid var(--line); }
.dark .rule { border-color: var(--line-dark); }

/* Editorial two-column: a label column and a content column */
.editorial { display: grid; gap: 2rem var(--gap); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .editorial { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .editorial--even { grid-template-columns: 1fr 1fr; } .editorial--wide { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.editorial__aside { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 899px) { .editorial__aside { position: static; } }
.editorial__aside h2 { margin-bottom: .75rem; font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem); }
.section-head { padding-bottom: 2rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; }
.dark .section-head { border-color: var(--line-dark); }
.section-head h2 { margin: 0; max-width: 20ch; }
.section-head .lede { max-width: 44ch; margin: 0; }
.section-head--stack { display: block; }
.section-head--stack h2 { margin-bottom: 1rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; font-family: var(--font-sans); font-weight: 500; font-size: 1rem; letter-spacing: .02em; line-height: 1; text-decoration: none; padding: 1.05rem 1.7rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1em; height: 1em; flex: none; }
.btn--gold { background: var(--gold-bright); color: var(--ink); }
.btn--gold:hover { background: #F0B400; box-shadow: 0 10px 30px -12px rgba(224,166,0,.7); }
.dark .btn--gold, .hero .btn--gold, .cta .btn--gold, .site-footer .btn--gold, .aside-card--navy .btn--gold, .mission .btn--gold { color: var(--ink); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-deep); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: #000; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--navy); background: rgba(23,52,94,.04); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--paper); }
.btn--lg { padding: 1.2rem 2rem; font-size: 1rem; }
.btn--sm { padding: .8rem 1.25rem; font-size: .875rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.actions--center { justify-content: center; }
.arrow-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9375rem; color: var(--navy); }
.arrow-link::after { content: "→"; font-family: var(--font-sans); transition: transform .2s var(--ease); }
.arrow-link:hover { text-decoration: none; }
.arrow-link:hover::after { transform: translateX(4px); }
.dark .arrow-link { color: var(--white); }

/* ---------- Header (transparent → glass) ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h); color: var(--white); transition: background-color .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease), backdrop-filter .3s var(--ease); }
.site-header::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,22,46,.45), rgba(10,22,46,0)); pointer-events: none; transition: opacity .3s var(--ease); }
.site-header__inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 52px; width: auto; }
.brand__dark { display: none; }
@media (max-width: 767px) { .brand img { height: 40px; } }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: .4rem; padding: .7rem .95rem; border-radius: 999px; font-family: var(--font-sans); font-weight: 500; font-size: 1rem; letter-spacing: .02em; color: inherit; background: transparent; border: 0; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.nav__link:hover, .nav__link[aria-expanded="true"] { background: rgba(255,255,255,.12); text-decoration: none; }
.nav__link.is-active { position: relative; }
.nav__link.is-active::after { content: ""; position: absolute; left: .95rem; right: .95rem; bottom: .35rem; height: 1px; background: var(--gold); }
.nav__link svg { width: .75em; height: .75em; transition: transform .2s var(--ease); opacity: .8; }
.nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__actions { display: flex; align-items: center; gap: .5rem; margin-left: .75rem; }
.nav__actions .btn { padding: .85rem 1.35rem; font-size: .875rem; }

.dropdown { position: absolute; top: calc(100% + 12px); left: 0; min-width: 280px; background: var(--white); color: var(--ink); border-radius: 18px; box-shadow: 0 24px 60px -20px rgba(14,33,64,.35), 0 0 0 1px rgba(14,33,64,.06); padding: .5rem; margin: 0; list-style: none; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s; }
.dropdown.is-open { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.dropdown::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 14px; }
.dropdown__link { display: block; padding: .7rem .9rem; border-radius: 12px; color: var(--ink); }
.dropdown__link:hover, .dropdown__link:focus-visible { background: var(--paper); text-decoration: none; }
.dropdown__label { display: block; font-weight: 600; font-size: .95rem; color: var(--navy); }
.dropdown__note { display: block; font-size: .8125rem; color: var(--ink-2); margin-top: .1rem; }

.site-header.is-scrolled { background: rgba(246,243,236,.82); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); color: var(--ink); box-shadow: 0 1px 0 rgba(22,27,36,.08); }
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-scrolled .brand__light { display: none; }
.site-header.is-scrolled .brand__dark { display: block; }
.site-header.is-scrolled .nav__link:hover, .site-header.is-scrolled .nav__link[aria-expanded="true"] { background: rgba(22,27,36,.06); }
.site-header.is-scrolled .btn--gold { background: var(--navy); color: var(--white); }
.site-header.is-scrolled .btn--gold:hover { background: var(--navy-deep); box-shadow: none; }

.menu-toggle { display: none; align-items: center; gap: .6rem; background: transparent; border: 1px solid rgba(255,255,255,.3); color: inherit; font: inherit; font-weight: 600; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; padding: .6rem .9rem; border-radius: 999px; }
.site-header.is-scrolled .menu-toggle { border-color: var(--line-strong); }
.menu-toggle__bars { position: relative; width: 18px; height: 12px; display: block; }
.menu-toggle__bars span { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s, top .25s var(--ease); }
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 5px; }
.menu-toggle__bars span:nth-child(3) { top: 10px; }
.menu-open .menu-toggle__bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-open .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle__bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

@media (max-width: 1023px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--navy-deep); color: var(--white); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 1.5rem var(--gutter) 3rem; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line-dark); }
  .nav__link { width: 100%; justify-content: space-between; padding: 1.15rem .25rem; border-radius: 0; font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; letter-spacing: -.01em; color: var(--white); }
  .nav__link:hover, .nav__link[aria-expanded="true"] { background: transparent; color: var(--gold); }
  .nav__link.is-active::after { display: none; }
  .dropdown { position: static; min-width: 0; background: transparent; box-shadow: none; padding: 0 0 1rem .25rem; transform: none; display: none; }
  .dropdown.is-open { display: block; }
  .dropdown__link { padding: .55rem 0; }
  .dropdown__link:hover, .dropdown__link:focus-visible { background: transparent; }
  .dropdown__label { color: var(--white); font-weight: 500; font-size: 1.05rem; }
  .dropdown__note { color: rgba(255,255,255,.6); }
  .nav__actions { margin: 1.5rem 0 0; flex-direction: column; align-items: stretch; }
  .nav__actions .btn { width: 100%; padding: 1.1rem; font-size: 1rem; }
  .site-header.menu-open, .site-header.menu-open.is-scrolled { background: var(--navy-deep); color: var(--white); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header.menu-open .brand__dark { display: none; }
  .site-header.menu-open .brand__light { display: block; }
  .site-header.menu-open .menu-toggle { border-color: rgba(255,255,255,.3); }
  .site-header.menu-open.is-scrolled .btn--gold { background: var(--gold-bright); color: var(--ink); }
  body.menu-open { overflow: hidden; }
}

/* ---------- Heroes ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--navy-deep); color: var(--white); padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(120% 80% at 80% 0%, rgba(36,67,122,.75) 0%, rgba(14,33,64,0) 55%),
  radial-gradient(70% 60% at 10% 100%, rgba(201,162,75,.16) 0%, rgba(14,33,64,0) 60%),
  linear-gradient(180deg, #13294D 0%, #0E2140 100%); }
.hero__media { position: absolute; inset: 0; z-index: -3; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero--photo::before { background: linear-gradient(180deg, rgba(10,22,46,.55) 0%, rgba(10,22,46,.35) 40%, rgba(14,33,64,.9) 100%); }
.hero__watermark { position: absolute; z-index: -1; right: -8%; bottom: -18%; width: min(58vw, 760px); opacity: .06; pointer-events: none; }
.hero__grain { position: absolute; inset: 0; z-index: -1; opacity: .06; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero .label { color: var(--gold); margin-bottom: 1.5rem; }
.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero p { color: rgba(255,255,255,.86); }
.hero .lede { color: rgba(255,255,255,.88); max-width: 40rem; }
.hero .actions { margin-top: 2.25rem; }
.hero--home { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; text-align: center; padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero--home h1 { font-size: var(--size-hero); font-weight: 500; max-width: 14ch; margin-left: auto; margin-right: auto; line-height: 1.04; letter-spacing: -.015em; }
.hero--home .actions { justify-content: center; margin-top: 2.5rem; }
.hero--home .lede { font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); max-width: 36rem; }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: end; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .hero__grid > :last-child { padding-bottom: .5rem; } }
.hero__facts { list-style: none; padding: 0; margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.16); }
.hero__facts li { padding: 1.25rem 1.25rem 0 0; }
.hero__facts li + li { padding-left: 1.25rem; border-left: 1px solid rgba(255,255,255,.16); }
.hero__facts .k { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); line-height: 1; color: var(--white); margin-bottom: .35rem; letter-spacing: -.01em; }
.hero__facts .v { display: block; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.62); font-weight: 500; }
@media (max-width: 599px) { .hero__facts { grid-template-columns: 1fr; border-top: 0; } .hero__facts li { border-top: 1px solid rgba(255,255,255,.16); } .hero__facts li + li { padding-left: 0; border-left: 0; } }
.hero--page { min-height: 62vh; display: flex; align-items: flex-end; }
.hero--page h1 { max-width: 16ch; }
.hero--page .breadcrumb { margin-bottom: 1.75rem; }
.hero--short { min-height: 0; padding-bottom: clamp(3rem, 6vw, 4.5rem); }

.breadcrumb { font-size: .8125rem; color: rgba(255,255,255,.6); margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; letter-spacing: .04em; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb [aria-current] { color: var(--white); }

/* ---------- Photography ---------- */
.photo { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo--hover:hover img { transform: scale(1.03); }
.photo--16x9 { aspect-ratio: 16 / 9; }
.photo--3x2 { aspect-ratio: 3 / 2; }
.photo--4x3 { aspect-ratio: 4 / 3; }
.photo--4x5 { aspect-ratio: 4 / 5; }
.photo--1x1 { aspect-ratio: 1 / 1; }
.photo--5x4 { aspect-ratio: 5 / 4; }
.photo--framed { margin: 0; }
.photo--framed::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.45); border-radius: calc(var(--radius) - 12px); pointer-events: none; }
.frame-offset { position: relative; }
.frame-offset::before { content: ""; position: absolute; inset: 0; transform: translate(18px, 18px); border: 1px solid var(--gold); border-radius: var(--radius); pointer-events: none; z-index: 0; }
.frame-offset > * { position: relative; z-index: 1; }
.photo-slot { position: relative; display: flex; align-items: flex-end; border-radius: var(--radius); background: linear-gradient(160deg, var(--paper-2), var(--paper-3)); overflow: hidden; min-height: 200px; }
.photo-slot::before { content: ""; position: absolute; inset: 0; background: url("/assets/img/logo/cf-mark_navy.svg") center 44% / 20% no-repeat; opacity: .07; }
.photo-slot__caption { position: relative; padding: 1rem 1.25rem; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.dark .photo-slot { background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.03)); }
.dark .photo-slot::before { background-image: url("/assets/img/logo/cf-mark_white.svg"); opacity: .1; }
.dark .photo-slot__caption { color: rgba(255,255,255,.55); }
figure { margin: 0; }
figcaption { font-size: .8125rem; color: var(--ink-2); margin-top: .85rem; display: flex; gap: .6rem; align-items: center; }
figcaption::before { content: ""; width: 18px; height: 1px; background: var(--gold); flex: none; }
.dark figcaption { color: rgba(255,255,255,.62); }

/* ---------- Feature (image + overlapping card) ---------- */
.feature { position: relative; display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) {
  .feature { grid-template-columns: repeat(12, 1fr); }
  .feature__media { grid-column: 1 / 9; grid-row: 1; }
  .feature__card { grid-column: 7 / 13; grid-row: 1; z-index: 2; }
  .feature--flip .feature__media { grid-column: 5 / 13; }
  .feature--flip .feature__card { grid-column: 1 / 7; }
}
.feature__card { background: var(--white); border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 3.25rem); box-shadow: var(--shadow-soft); }
.feature__card h2 { margin-bottom: 1rem; }
.feature__card .actions { margin-top: 1.75rem; }
.dark .feature__card { background: var(--navy); color: rgba(255,255,255,.9); box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: var(--gap); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .split--media-right .split__media { order: 2; } .split--5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .split--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.split__copy h2 { margin-bottom: 1rem; }
.split__copy .actions { margin-top: 2rem; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .cards--2, .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card { position: relative; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: transparent; }
.dark .card { background: rgba(255,255,255,.04); border-color: var(--line-dark); color: rgba(255,255,255,.88); }
.dark .card:hover { background: rgba(255,255,255,.07); }
.card__media { aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__media .photo-slot { border-radius: 0; min-height: 0; height: 100%; }
.card__body { padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.card__body h3 { margin: 0; font-size: 1.6rem; }
.card__body p { margin: 0; color: var(--ink-2); }
.dark .card__body p { color: rgba(255,255,255,.72); }
.card__body .actions { margin-top: auto; padding-top: .75rem; }
.card__kicker { font-size: var(--size-label); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); }
.dark .card__kicker { color: var(--gold); }
.card__list { list-style: none; padding: 0; margin: .25rem 0 0; display: grid; gap: .5rem; color: var(--ink-2); }
.card__list li { display: flex; gap: .7rem; align-items: baseline; }
.card__list li::before { content: ""; width: 14px; height: 1px; background: var(--gold); flex: none; transform: translateY(-4px); }
.card--num { padding: clamp(1.5rem, 3vw, 2.25rem); }
.card--num .num { font-family: var(--font-display); font-weight: 400; font-size: 2.75rem; line-height: 1; color: var(--gold-text); margin-bottom: 1.25rem; }
/* Side-by-side card: square photograph beside the copy (keeps small photos sharp) */
.card--side { display: grid; grid-template-columns: 1fr; }
.card--side .card__media { aspect-ratio: 16 / 10; }
@media (min-width: 980px) {
  .card--side { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); }
  .card--side .card__media { aspect-ratio: auto; position: relative; min-height: 260px; }
  .card--side .card__media img { position: absolute; inset: 0; }
}

/* ---------- Numbers ---------- */
.numbers { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .numbers { grid-template-columns: repeat(3, 1fr); } .numbers > li + li { border-left: 1px solid var(--line); } }
.dark .numbers, .dark .numbers > li + li { border-color: var(--line-dark); }
.numbers { list-style: none; padding: 0; margin: 0; }
.numbers li { padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3rem) 0; }
.numbers li + li { padding-left: clamp(1.25rem, 3vw, 2.5rem); }
@media (max-width: 719px) { .numbers li + li { border-top: 1px solid var(--line); padding-left: 0; } .dark .numbers li + li { border-color: var(--line-dark); } }
.numbers .n { display: block; font-family: var(--font-display); font-weight: 400; font-size: var(--size-numeral); line-height: .9; letter-spacing: -.03em; color: var(--navy); margin-bottom: 1rem; }
.dark .numbers .n { color: var(--gold); }
.numbers .n small { font-size: .35em; letter-spacing: 0; font-weight: 400; vertical-align: baseline; margin-left: .15em; }
.numbers .t { display: block; font-size: .875rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); max-width: 22ch; }
.dark .numbers .t { color: rgba(255,255,255,.7); }
.numbers .d { display: block; margin-top: .5rem; color: var(--ink-2); font-size: .9375rem; max-width: 30ch; }
.dark .numbers .d { color: rgba(255,255,255,.62); }
/* Five-up numbers band */
.numbers--5 .n { font-size: clamp(2.1rem, 1.3rem + 2.4vw, 3.4rem); white-space: nowrap; }
.numbers--5 .t { font-size: .8125rem; max-width: 18ch; }
@media (max-width: 599px) { .numbers--5 .t { max-width: 32ch; } }
.numbers .n .plus { font-size: .62em; vertical-align: .18em; margin-left: .04em; color: var(--gold-text); }
@media (min-width: 600px) and (max-width: 1099px) {
  .numbers--5 { grid-template-columns: repeat(2, 1fr); }
  .numbers--5 > li { border-top: 1px solid var(--line); padding-left: 0; padding-right: clamp(1.25rem, 3vw, 2.5rem); }
  .numbers--5 > li:nth-child(-n+2) { border-top: 0; }
  .numbers--5 > li:nth-child(2n) { border-left: 1px solid var(--line); padding-left: clamp(1.25rem, 3vw, 2.5rem); }
  .numbers--5 > li:nth-child(2n+1) { border-left: 0; }
  .numbers--5 > li:last-child { grid-column: 1 / -1; border-left: 0; }
}
@media (min-width: 1100px) { .numbers--5 { grid-template-columns: repeat(5, 1fr); } }

/* Impact stats (inline list under a story) */
.impact-stats { list-style: none; padding: 0; margin: 1.75rem 0 2rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; border-top: 1px solid var(--line); }
.impact-stats li { padding-top: 1.1rem; }
.impact-stats .n { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); line-height: 1; letter-spacing: -.02em; color: var(--navy); margin-bottom: .5rem; }
.impact-stats .t { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 479px) { .impact-stats { grid-template-columns: 1fr 1fr; } .impact-stats li:last-child { grid-column: 1 / -1; } }

/* Signature under a quote: "— Pete" */
.quote__sig { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; text-transform: none; letter-spacing: 0; font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); }
.quote__sig img { height: 64px; width: auto; display: block; }
.dark .quote__sig { color: var(--white); }

/* ---------- Steps (editorial list) ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 1fr; gap: .5rem 2rem; padding: clamp(1.5rem, 3vw, 2.25rem) 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .steps li { grid-template-columns: 6rem minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; } }
.dark .steps li { border-color: var(--line-dark); }
.steps .step__num { font-family: var(--font-display); font-weight: 400; font-size: 2.25rem; line-height: 1; color: var(--gold-text); }
.steps .step__num::before { content: counter(step, decimal-leading-zero); }
.dark .steps .step__num { color: var(--gold); }
.steps h3 { margin: 0; font-size: 1.6rem; }
.steps p { margin: 0; color: var(--ink-2); }
.dark .steps p { color: rgba(255,255,255,.72); }

/* ---------- Quotes ---------- */
.quote { margin: 0; padding: 0; }
.quote p { font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1.22; color: var(--navy); letter-spacing: -.01em; text-wrap: pretty; }
.quote p::before { content: "“"; color: var(--gold); margin-left: -.4em; }
.quote p::after { content: "”"; color: var(--gold); }
.quote footer { margin-top: 1.25rem; font-size: .875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.quote cite { font-style: normal; color: var(--navy); }
.dark .quote p, .dark .quote cite { color: var(--white); }
.dark .quote footer { color: rgba(255,255,255,.65); }
.quote--lg p { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem); }
.mission { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: var(--white); border-radius: var(--radius); padding: clamp(2.5rem, 6vw, 5rem); }
.mission .label { color: var(--gold-bright); }
.mission .quote p { color: var(--white); }
.mission .label + .mission__vision, .mission__vision { display: block; max-width: 62ch; margin-top: .9rem; color: rgba(255,255,255,.86); font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; }
.mission .label[style] { display: block; }
.mission__wm { position: absolute; z-index: -1; right: -6%; top: -20%; width: min(48%, 460px); opacity: .07; pointer-events: none; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 1fr; gap: var(--gap); align-items: start; }
@media (min-width: 900px) { .founder { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.founder__media { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 899px) { .founder__media { position: static; max-width: 480px; } }
.founder__name { font-size: var(--size-h2); margin-bottom: .35rem; }
.founder__title { font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--gold-text); margin-bottom: 1.75rem; line-height: 1.6; max-width: 40ch; }
.founder__title span { display: block; }
.founder .founder__title { max-width: none; }
.founder__bio p { max-width: 62ch; color: var(--ink); }
.founder__quote { margin: 2.25rem 0; padding-left: 1.5rem; border-left: 1px solid var(--gold); }
.founder__signature { margin-top: 2.25rem; display: flex; flex-direction: column; gap: .5rem; }
.founder__signature img { height: 120px; width: auto; align-self: flex-start; margin-left: -.5rem; }
.founder__signature .caption { margin: 0; }
.founder--next { margin-top: clamp(3rem, 7vw, 5.5rem); padding-top: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--line); }
.founders-pair { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.founders-pair li { display: grid; gap: .25rem; }
.founders-pair .photo { margin-bottom: .6rem; }
.founders-pair strong { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; color: var(--navy); line-height: 1.2; }
.founders-pair span { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--gold-text); line-height: 1.5; }

/* ---------- Board grid (3 over 4) ---------- */
.board { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.board-row { list-style: none; padding: 0; margin: 0; display: contents; }
/* Odd number of people on a phone: centre the last card instead of leaving it alone on the left */
@media (max-width: 899px) { .board--odd > .board-row:last-child > .person:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - .75rem); } }
/* A row of two under a row of three, cards the same size as the row above */
@media (min-width: 900px) { .board .board-row--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); width: calc((100% - 3rem) * 2 / 3 + 1.5rem); margin-left: auto; margin-right: auto; } }
@media (min-width: 900px) { .board { display: block; } .board-row { display: grid; gap: 1.5rem; } .board-row + .board-row { margin-top: 1.5rem; } .board-row--3 { grid-template-columns: repeat(3, 1fr); width: 76%; margin-left: auto; margin-right: auto; } .board-row--4 { grid-template-columns: repeat(4, 1fr); } .board-row--2 { grid-template-columns: repeat(2, 1fr); width: 46%; margin-left: auto; margin-right: auto; } .board-row--5 { grid-template-columns: repeat(5, 1fr); } }
.person { position: relative; }
.person__photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; background: var(--paper-2); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.person:hover .person__photo img { transform: scale(1.04); }
.person__photo .photo-slot { border-radius: 0; min-height: 0; height: 100%; }
.person__plus { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--navy); border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px -8px rgba(14,33,64,.45); transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease); }
.person__plus svg { width: 18px; height: 18px; }
.person__plus:hover { background: var(--navy); color: var(--white); transform: scale(1.06); }
.person__name { margin: 1rem 0 .15rem; font-size: 1.45rem; }
.person__name button { all: unset; cursor: pointer; color: inherit; font: inherit; }
.person__name button:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.person__title { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); margin: 0; }
.person--staff .person__photo { aspect-ratio: 4 / 5; }

/* Modal (bio) */
.bio-modal { border: 0; padding: 0; background: transparent; max-width: min(92vw, 880px); width: 100%; margin: auto; }
.bio-modal::backdrop { background: rgba(10,22,46,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.bio-modal__inner { background: var(--white); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 1fr; position: relative; }
@media (min-width: 760px) { .bio-modal__inner { grid-template-columns: 300px minmax(0, 1fr); } }
.bio-modal__photo { background: var(--paper-2); aspect-ratio: 1 / 1; }
@media (min-width: 760px) { .bio-modal__photo { aspect-ratio: auto; min-height: 100%; } }
.bio-modal__photo img { width: 100%; height: 100%; object-fit: cover; }
.bio-modal__photo .photo-slot { border-radius: 0; height: 100%; min-height: 240px; }
.bio-modal__body { padding: clamp(1.75rem, 4vw, 3rem); max-height: 80vh; overflow: auto; }
.bio-modal__body h2 { font-size: 2.25rem; margin-bottom: .25rem; }
.bio-modal__body .person__title { margin-bottom: .25rem; }
.bio-modal__aff { color: var(--ink-2); margin-bottom: 1.5rem; font-size: .9375rem; }
.bio-modal__body p { color: var(--ink); }
.bio-modal__quote { margin: 1.5rem 0 0; padding-left: 1.25rem; border-left: 1px solid var(--gold); font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.35rem; line-height: 1.3; color: var(--navy); }
.bio-modal__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; z-index: 2; }
.bio-modal__close:hover { background: var(--paper-2); }
.bio-modal__close svg { width: 16px; height: 16px; }
.bio-modal[open] { animation: modal-in .25s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Taylor's Place mark ---------- */
.tp-mark { display: flex; flex-direction: column; align-items: center; width: min(100%, 760px); margin: 0 auto; color: var(--gold); text-align: center; }
.tp-mark .tp-mark__roof { width: 84%; max-width: 600px; height: auto; margin: 0 0 .05em; overflow: visible; }
.tp-mark .tp-mark__word { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, .4rem + 5.2vw, 4.9rem); line-height: 1; letter-spacing: .12em; text-transform: uppercase; color: currentColor; margin: 0; padding-left: .12em; max-width: none; white-space: nowrap; }
.tp-mark .tp-mark__tag { display: flex; align-items: center; gap: 1em; margin: .7em 0 0; font-family: var(--font-sans); font-weight: 600; font-size: clamp(.7rem, .5rem + .7vw, .95rem); letter-spacing: .38em; text-transform: uppercase; color: var(--white); padding-left: .38em; max-width: none; }
.tp-mark .tp-mark__tag::before, .tp-mark .tp-mark__tag::after { content: ""; height: 1px; width: clamp(28px, 7vw, 72px); background: currentColor; opacity: .7; }
.tp-mark .tp-mark__endorse { margin-top: 1.5em; width: clamp(130px, 32%, 180px); opacity: .95; }

/* ---------- Full-screen hero video (silent, looping) ---------- */
.hero--video::before { background: linear-gradient(180deg, rgba(10,22,46,.66) 0%, rgba(10,22,46,.5) 45%, rgba(14,33,64,.9) 100%); }
.hero--video .hero__grain { opacity: .08; }
.hero--video .hero__watermark { display: none; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__video:fullscreen, .hero__video:-webkit-full-screen { object-fit: contain; background: #000; }
.hero--video.is-paused .hero__video { filter: saturate(.85); }
.hero__controls { position: absolute; z-index: 3; right: var(--gutter); bottom: 1.25rem; display: flex; gap: .5rem; }
.hero__ctl { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .95rem .55rem .75rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(10,22,46,.45); color: var(--white); font: 600 .75rem/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background-color .2s, border-color .2s; }
.hero__ctl:hover { background: rgba(10,22,46,.7); border-color: rgba(255,255,255,.7); }
.hero__ctl:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.hero__ctl-icon { width: 18px; height: 18px; fill: currentColor; flex: none; }
.hero__ctl-icon .play, .hero__ctl-icon .wave { display: none; }
.is-paused .hero__ctl-icon .play { display: block; }
.is-paused .hero__ctl-icon .pause { display: none; }
.has-sound .hero__ctl-icon .wave { display: block; }
.has-sound .hero__ctl-icon .mute { display: none; }
@media (max-width: 599px) { .hero__ctl span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .hero__ctl { padding: .6rem; gap: 0; } }
/* ---------- Hero photo carousel (About) ---------- */
.hero--carousel { min-height: 78vh; }
.hero--carousel::before { background: linear-gradient(180deg, rgba(10,22,46,.62) 0%, rgba(10,22,46,.42) 45%, rgba(14,33,64,.9) 100%); }
.hero--carousel .hero__grain { opacity: .08; }
.hero--carousel .hero__watermark { display: none; }
.carousel__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1s var(--ease), transform 4.5s linear; }
.carousel__slide.is-active { opacity: 1; transform: scale(1); }
.carousel__dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 1.25rem; display: flex; justify-content: center; gap: .4rem; padding: 0 var(--gutter); }
.carousel__dot { width: 26px; height: 6px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.38); cursor: pointer; transition: background-color .3s var(--ease), width .3s var(--ease); }
.carousel__dot:hover { background: rgba(255,255,255,.7); }
.carousel__dot.is-active { width: 44px; background: var(--gold-bright); }
.carousel__dot:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
@media (max-width: 599px) { .carousel__dot { width: 18px; } .carousel__dot.is-active { width: 32px; } }
@media (prefers-reduced-motion: reduce) { .carousel__slide { transform: none; transition: opacity .4s; } }

/* CrawFest logo in the Events hero */
.crawfest-logo { display: block; width: clamp(180px, min(24vw, 34vh), 340px); height: auto; margin: 0 0 .75rem -.5rem; filter: drop-shadow(0 14px 32px rgba(0,0,0,.4)); }
.hero .hero__brand .label { margin-bottom: 1rem; }

/* Cinematic mode: a few seconds into the video, the mark/heading and buttons tuck into the bottom-left and the overlay lifts so the video can be watched */
.hero__brand { display: block; }
.hero--video [data-cine-brand], .hero--video [data-cine-brand] .tp-mark, .hero--video [data-cine-brand] .crawfest-logo, .hero--video [data-cine-actions] { transform-origin: 100% 100%; transition: transform 1.3s cubic-bezier(.55, 0, .15, 1); will-change: transform; }
.hero--video [data-cine-fade] { transition: opacity .7s var(--ease); }
.hero--video::before { transition: opacity 1.3s var(--ease); }
.hero--video::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.3s var(--ease); background: linear-gradient(0deg, rgba(10,22,46,.82) 0%, rgba(10,22,46,.35) 28%, rgba(10,22,46,0) 55%); }
.hero--video.is-cinematic::before { opacity: .38; }
.hero--video.is-cinematic::after { opacity: 1; }
.hero--video.is-cinematic .hero__grain { opacity: 0; }
.hero--video.is-cinematic [data-cine-fade] { opacity: 0; pointer-events: none; }
.hero--video.is-cinematic [data-cine-brand] .tp-mark__tag { opacity: .9; }
.hero--video::after { background: linear-gradient(0deg, rgba(10,22,46,.82) 0%, rgba(10,22,46,.35) 28%, rgba(10,22,46,0) 55%), linear-gradient(270deg, rgba(10,22,46,.45) 0%, rgba(10,22,46,0) 40%); }
.hero--tall { min-height: 100svh; }

/* ---------- Collage (legacy photos) ---------- */
.collage { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.collage .photo { width: 100%; aspect-ratio: 4 / 3; }
.collage > :nth-child(1) { grid-column: 1 / 3; aspect-ratio: 3 / 2; }
.collage > :nth-child(4) { grid-column: 1 / 3; aspect-ratio: 3 / 2; }
.collage > :nth-child(4) img { object-position: 50% 0%; }
@media (min-width: 720px) {
  .collage { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: auto auto auto; }
  .collage .photo { height: 100%; aspect-ratio: auto; min-height: 160px; }
  .collage > :nth-child(1) { grid-column: 1 / 5; grid-row: 1 / 3; }
  .collage > :nth-child(2) { grid-column: 5 / 7; grid-row: 1; aspect-ratio: 4 / 3; }
  .collage > :nth-child(3) { grid-column: 5 / 7; grid-row: 2; aspect-ratio: 4 / 3; }
  .collage > :nth-child(4) { grid-column: 1 / 7; grid-row: 3; aspect-ratio: 3 / 2; }
}

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(3, 1fr); } .gallery > :first-child { grid-column: span 2; grid-row: span 2; } }
.gallery .photo, .gallery .photo-slot { aspect-ratio: 4 / 3; height: 100%; min-height: 0; }
.gallery > :first-child .photo-slot, .gallery > :first-child .photo { aspect-ratio: auto; }

/* ---------- Mosaic (square tiles; sized so small source photos stay sharp) ---------- */
.mosaic { display: grid; gap: .75rem; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; }
.mosaic > li { min-width: 0; }
.mosaic .photo { aspect-ratio: 1 / 1; border-radius: var(--radius-sm); }
.mosaic--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mosaic--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } .mosaic--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mosaic--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .mosaic { grid-template-columns: repeat(6, minmax(0, 1fr)); } .mosaic--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mosaic__tile { display: flex; flex-direction: column; justify-content: flex-end; gap: .5rem; aspect-ratio: 1 / 1; padding: clamp(1rem, 2vw, 1.5rem); border-radius: var(--radius-sm); background: var(--navy); color: var(--white); position: relative; overflow: hidden; isolation: isolate; }
.mosaic__tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 70% at 100% 0%, rgba(201,162,75,.28), rgba(23,52,94,0) 60%); }
.mosaic__tile .label { color: var(--gold); margin: 0; font-size: .6875rem; }
.mosaic__tile p { margin: 0; font-family: var(--font-display); font-size: clamp(1.05rem, .9rem + .5vw, 1.35rem); line-height: 1.2; color: var(--white); }
.mosaic__tile .arrow-link { color: var(--white); font-size: .8125rem; gap: .35rem; }
.mosaic__caption { margin: 1rem 0 0; }
.mosaic__link { display: block; border-radius: var(--radius-sm); }
.mosaic__link:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.mosaic .photo { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.mosaic__link:hover .photo, .mosaic__link:focus-visible .photo { transform: translateY(-5px); box-shadow: 0 18px 34px -16px rgba(14,33,64,.55); }
.mosaic__link:hover .photo img { transform: scale(1.05); }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: transparent; color: var(--white); display: none; align-items: center; justify-content: center; }
.lightbox[open] { display: flex; }
.lightbox::backdrop { background: rgba(10,22,46,.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lightbox__figure { margin: 0; max-width: min(92vw, 720px); text-align: center; }
.lightbox__img { display: block; width: 100%; max-height: 78vh; object-fit: contain; border-radius: var(--radius-sm); box-shadow: 0 40px 90px -30px rgba(0,0,0,.8); }
.lightbox__caption { display: flex; justify-content: center; align-items: baseline; gap: 1rem; margin-top: 1rem; font-size: .875rem; color: rgba(255,255,255,.78); }
.lightbox__caption::before { display: none; }
.lightbox__count { flex: none; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.lightbox__close, .lightbox__nav { position: fixed; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(10,22,46,.55); color: var(--white); cursor: pointer; transition: background-color .2s, border-color .2s; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.7); }
.lightbox__close:focus-visible, .lightbox__nav:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.lightbox__close svg, .lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 1.25rem; }
.lightbox__nav--next { right: 1.25rem; }
@media (max-width: 799px) {
  .lightbox__figure { max-width: 92vw; padding-bottom: 4.5rem; }
  .lightbox__nav { top: auto; bottom: 1.25rem; transform: none; }
  .lightbox__nav--prev { left: calc(50% - 60px); }
  .lightbox__nav--next { right: calc(50% - 60px); }
}
/* 11 photos + a call-to-action tile: below six columns, the 11th photo goes wide to fill the row and the tile becomes a full-width bar */
@media (max-width: 999px) {
  .mosaic--12 > li:nth-child(11) { grid-column: span 2; }
  .mosaic--12 > li:nth-child(11) .photo { aspect-ratio: 2 / 1; }
  .mosaic--12 > li:last-child { grid-column: 1 / -1; }
  .mosaic--12 .mosaic__tile { aspect-ratio: auto; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding: 1.25rem 1.5rem; }
  .mosaic--12 .mosaic__tile p { flex: 1 1 14rem; }
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 1.75rem 2.25rem; border-left: 1px solid var(--line-strong); }
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .4rem; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 1px solid var(--navy); }
.timeline li.is-done::before { background: var(--gold-bright); border-color: var(--gold-bright); }
.timeline__when { display: block; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--gold-text); margin-bottom: .2rem; }
.timeline__what { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; color: var(--navy); line-height: 1.2; }
.timeline p { margin: .3rem 0 0; color: var(--ink-2); max-width: 46ch; }

/* ---------- Event feature ---------- */
.event { display: grid; grid-template-columns: 1fr; gap: var(--gap); align-items: center; }
@media (min-width: 900px) { .event { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }
.event__date { display: inline-flex; flex-direction: column; align-items: flex-start; padding: 1rem 1.25rem; border: 1px solid var(--line-strong); border-radius: 16px; margin-bottom: 1.5rem; }
.event__date .m { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--gold-text); }
.event__date .d { font-family: var(--font-display); font-weight: 500; font-size: 2.25rem; line-height: 1; color: var(--navy); }
.dark .event__date { border-color: var(--line-dark); }
.dark .event__date .d { color: var(--white); }
.dark .event__date .m { color: var(--gold); }

/* ---------- Forms ---------- */
.form { --field-bg: var(--white); }
.field { margin-bottom: 1.35rem; }
.field label, .field__legend { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: .45rem; color: var(--ink); }
.field .hint { display: block; font-size: .875rem; color: var(--ink-2); margin: -.15rem 0 .55rem; font-weight: 400; }
.req { color: var(--error); font-weight: 600; margin-left: .15rem; }
.optional { color: var(--ink-2); font-weight: 400; font-size: .8125rem; margin-left: .35rem; }
.input, .select, .textarea { width: 100%; font: inherit; color: var(--ink); background: var(--field-bg); border: 1px solid var(--line-strong); border-radius: 12px; padding: .85rem 1rem; min-height: 50px; transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path fill='none' stroke='%2317345E' stroke-width='1.6' d='M3 6l5 5 5-5'/></svg>"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.75rem; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(23,52,94,.12); }
.input::placeholder, .textarea::placeholder { color: #9aa0ab; }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--error); }
.field.is-invalid .error { display: block; }
.error { display: none; color: var(--error); font-size: .875rem; font-weight: 600; margin-top: .45rem; }
.field-row { display: grid; gap: 0 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row--2 { grid-template-columns: 1fr 1fr; } .field-row--3 { grid-template-columns: 1fr 1fr 1fr; } }
fieldset { border: 0; padding: 0; margin: 0 0 1.35rem; min-width: 0; }
.choices { display: grid; gap: .6rem; }
@media (min-width: 640px) { .choices--2 { grid-template-columns: 1fr 1fr; } }
.choice, .field label.choice { position: relative; display: flex; align-items: flex-start; gap: .8rem; margin-bottom: 0; padding: .9rem 1rem; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--white); cursor: pointer; font-weight: 400; font-size: 1rem; transition: border-color .15s, background-color .15s; }
.choice:hover { border-color: var(--navy); }
.choice input { width: 18px; height: 18px; margin: .15rem 0 0; accent-color: var(--navy); flex: none; }
.choice:has(input:checked) { border-color: var(--navy); background: rgba(23,52,94,.05); }
.choice:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }
.choice__label { font-weight: 600; display: block; }
.choice__note { display: block; font-size: .85rem; color: var(--ink-2); }
.form-note { background: var(--paper); border-radius: 14px; padding: 1.25rem 1.5rem; font-size: .9375rem; color: var(--ink-2); }
.form-note p { margin: 0; }
.form-error-summary { display: none; background: #FBEBED; border: 1px solid var(--error); color: #7A1520; border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; font-weight: 600; }
.form-error-summary.is-visible { display: block; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 3rem); }
.dark .form-card { background: var(--white); color: var(--ink); }

/* Multi-step application */
.apply { display: grid; gap: var(--gap); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .apply { grid-template-columns: minmax(0, 1fr) 340px; } .apply__aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.apply__aside { display: grid; gap: 1.25rem; }
.aside-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem); }
.aside-card h3 { font-size: 1.5rem; margin-bottom: .75rem; }
.aside-card ol { padding-left: 1.2rem; margin: 0; display: grid; gap: .6rem; color: var(--ink-2); }
.aside-card li::marker { color: var(--gold-text); font-weight: 600; }
.aside-card--navy { background: var(--navy); color: rgba(255,255,255,.88); border-color: transparent; }
.aside-card--navy h3 { color: var(--white); }
.aside-card--navy a { color: var(--gold); }
.aside-card--navy .label { color: var(--gold-bright); }
.progress { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; counter-reset: p; }
.progress li { counter-increment: p; position: relative; padding-top: .9rem; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.progress li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 2px; background: var(--paper-3); }
.progress li.is-done::before { background: var(--navy); }
.progress li.is-current::before { background: var(--gold-bright); }
.progress li.is-current, .progress li.is-done { color: var(--navy); }
.progress li span { display: block; }
.progress li small { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-2); }
@media (max-width: 600px) { .progress li small { display: none; } }
.form-step { display: none; }
.form-step.is-current { display: block; }
.no-js .form-step { display: block; }
.no-js .progress, .no-js .form-nav__prev, .no-js .form-nav__next { display: none; }
.form-step__head { margin-bottom: 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.form-step__head h2 { font-size: var(--size-h3); margin-bottom: .35rem; }
.form-step__head p { margin: 0; color: var(--ink-2); }
.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.form-nav__prev { margin-right: auto; }
.btn--text { background: transparent; color: var(--navy); padding-left: 0; padding-right: 0; border-color: transparent; }
.btn--text:hover { text-decoration: underline; transform: none; }
.review { display: grid; gap: 1.25rem; }
.review__group { border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.25rem; }
.review__group h3 { font-size: 1.35rem; margin-bottom: .6rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.review__group h3 button { font: inherit; font-family: var(--font-sans); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--navy); background: none; border: 0; cursor: pointer; padding: 0; }
.review__group h3 button:hover { text-decoration: underline; }
.review dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem; }
@media (min-width: 640px) { .review dl { grid-template-columns: 200px minmax(0, 1fr); gap: .45rem 1rem; } }
.review dt { font-size: .75rem; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; }
.review dd { margin: 0; white-space: pre-line; }
.review dd:empty::before { content: "—"; color: var(--ink-3); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: var(--gap); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.contact-details { display: grid; gap: 1.75rem; }
.contact-details h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.contact-details p { margin: 0; color: var(--ink-2); }
.contact-details a { color: var(--navy); }
.contact-details .label { margin-bottom: .5rem; }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; background: var(--paper-3); color: var(--ink); padding: clamp(4rem, 9vw, 7rem) 0; border-top: 1px solid rgba(201,162,75,.45); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(70% 90% at 100% 0%, rgba(201,162,75,.22), rgba(201,162,75,0) 60%), radial-gradient(50% 60% at 0% 100%, rgba(23,52,94,.08), rgba(23,52,94,0) 60%); }
.cta__wm { position: absolute; z-index: -1; left: -6%; bottom: -34%; width: min(40%, 420px); opacity: .07; pointer-events: none; }
.cta__inner { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .cta__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .cta__actions { justify-content: flex-end; } }
.cta .label { color: var(--gold-text); }
.cta h2 { color: var(--navy); margin-bottom: .75rem; max-width: 18ch; font-size: var(--size-h2); }
.cta p { color: var(--ink-2); max-width: 44ch; margin: 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-ink); color: rgba(255,255,255,.82); padding: clamp(4rem, 8vw, 6rem) 0 2rem; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--white); }
.site-footer__top { display: grid; gap: 2.5rem; grid-template-columns: 1fr; padding-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line-dark); }
@media (min-width: 700px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .site-footer__top { grid-template-columns: 1.6fr 1fr 1.2fr; gap: 3rem; } }
.site-footer__lockup { width: 210px; margin-bottom: 1.5rem; }
.site-footer__mission { max-width: 32ch; font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; line-height: 1.35; color: var(--white); }
.site-footer .label { color: var(--gold); margin-bottom: 1rem; }
.site-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .9375rem; }
.site-footer__contact { display: grid; gap: .9rem; font-size: .9375rem; }
.site-footer__contact div { display: flex; gap: .7rem; align-items: flex-start; }
.site-footer__contact svg { width: 18px; height: 18px; flex: none; margin-top: .2rem; color: var(--gold); }
.social { display: flex; gap: .6rem; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.social a { display: inline-flex; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); align-items: center; justify-content: center; color: var(--white); transition: background-color .2s, border-color .2s; }
.social a:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
.social svg { width: 18px; height: 18px; }
.site-footer__bottom { padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; font-size: .8125rem; color: rgba(255,255,255,.6); }
.site-footer__bottom ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.site-footer__tax { font-size: .8125rem; color: rgba(255,255,255,.5); margin: 1.25rem 0 0; max-width: 72ch; }

/* ---------- Prose ---------- */
.prose { max-width: var(--wrap-narrow); }
.prose h2 { font-size: var(--size-h3); margin-top: 2.5rem; }
.prose h3 { font-size: 1.4rem; margin-top: 1.75rem; }
.prose p, .prose li { color: var(--ink); }

/* ---------- Notice pages ---------- */
.notice { max-width: 640px; margin: 0 auto; text-align: center; }
.notice__mark { width: 84px; margin: 0 auto 1.5rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } html { scroll-behavior: auto; } }

/* ---------- Print ---------- */
@media print { .site-header, .site-footer, .cta, .menu-toggle, .skip-link { display: none !important; } .hero { color: var(--ink); background: none; padding-top: 0; } .hero h1, .hero p { color: var(--ink); } }
