/* Counsel Sports — site styles
   Palette: field green, cream. One family: Barlow (Condensed for wordmark and headings). */

:root {
  --green: #0B3B25;
  --green-deep: #083725;
  --cream: #F5F1E6;
  --cream-2: #EDE8DA;
  --ink: #16241C;
  --muted: #5C6660;
  --line: rgba(11, 59, 37, 0.18);
  --line-strong: rgba(11, 59, 37, 0.35);
  --font: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  --header-h: 96px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
h1, h2, h3 { font-family: var(--font-cond); font-weight: 600; letter-spacing: 0.02em; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.2vw, 60px); text-transform: uppercase; }
h2 { font-size: clamp(26px, 3vw, 34px); text-transform: uppercase; }
h3 { font-size: 20px; font-family: var(--font); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 68ch; }
.eyebrow { font-family: var(--font-cond); font-weight: 500; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-cond); font-weight: 600; font-size: 17px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 13px 26px 12px; border: 1.5px solid var(--green); color: var(--green); background: transparent; border-radius: 2px;
  transition: background .18s ease, color .18s ease; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--green); color: var(--cream); text-decoration: none; }
.btn.solid { background: var(--green); color: var(--cream); }
.btn.solid:hover { background: var(--green-deep); }
.btn.on-green { border-color: var(--cream); color: var(--cream); }
.btn.on-green:hover { background: var(--cream); color: var(--green); }

/* ---------- Field texture (header + green cards) ---------- */
.field-bg { position: relative; background: var(--green-deep); color: var(--cream); overflow: hidden; }
.field-bg > .field-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.field-lines .yard { stroke: var(--cream); stroke-opacity: .14; stroke-width: 1.2; }
.field-lines .hash { stroke: var(--cream); stroke-opacity: .14; stroke-width: 1.2; }
.field-lines .num { fill: var(--cream); fill-opacity: .12; font: 600 22px/1 var(--font-cond); letter-spacing: .06em; }

/* ---------- Header (field green, cream lockup and nav) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--green-deep); color: var(--cream);
  border-bottom: 1px solid rgba(245, 241, 230, 0.12);
  overflow: visible; /* the mobile menu drops below the bar */
}
.site-header > .field-lines { height: var(--header-h); top: 0; }
.site-header .field-lines .num { font-size: 15px; fill-opacity: .16; }
.site-header .field-lines .hash { stroke-opacity: .22; }
.site-header .field-lines .yard { stroke-opacity: .16; }
.site-header .wrap { max-width: none; padding: 0 28px 0 22px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; z-index: 1; }
.lockup { display: inline-flex; align-items: center; gap: 14px; color: var(--cream); text-decoration: none; }
.lockup:hover { text-decoration: none; }
.lockup img { height: 62px; width: auto; }
.lockup .wordmark { white-space: nowrap; font-family: var(--font-cond); font-weight: 600; font-size: 54px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; padding-top: 4px; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  color: var(--cream); font-family: var(--font-cond); font-weight: 600; font-size: 21px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 0; border-bottom: 2px solid transparent; text-decoration: none; opacity: .92;
}
.nav a:hover { opacity: 1; text-decoration: none; }
.nav a[aria-current="page"] { border-bottom-color: var(--cream); opacity: 1; }
.nav-toggle { display: none; background: none; border: 1.5px solid rgba(245,241,230,.6); color: var(--cream); border-radius: 2px; padding: 8px 12px; font-family: var(--font-cond); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
@media (max-width: 1240px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; align-items: stretch; gap: 0; background: var(--green-deep); border-top: 1px solid rgba(245,241,230,.12); display: none; padding: 8px 0 14px; z-index: 2; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 24px; border-bottom: 0; }
  .nav a[aria-current="page"] { background: rgba(245,241,230,.08); }
}
@media (max-width: 860px) {
  .lockup .wordmark { font-size: 25px; }
  .lockup img { height: 32px; }
  .lockup { gap: 9px; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 28px; }
.section-head p { margin-top: 10px; color: var(--muted); }

/* Hero (landing) */
.hero { padding: 150px 0 96px; }
.hero h1 { font-family: var(--font-cond); font-weight: 500; text-transform: none; letter-spacing: 0.01em; word-spacing: 0.04em; font-size: clamp(34px, 4.3vw, 60px); line-height: 1.2; max-width: none; white-space: nowrap; text-wrap: balance; }
.hero .cta { margin-top: 44px; }
.hero-center { text-align: center; }
.hero-center h1 { margin: 0 auto; }
.hero-tag { display: none; }
.flip-count { display: block; margin: 22px auto 0; text-align: center; font-family: var(--font-cond); font-size: 13px; letter-spacing: .12em; color: var(--muted); }
@media (max-width: 640px) { .hero { padding: 72px 0 56px; } .hero h1 { max-width: 20ch; white-space: normal; } }

/* Hero annotations: a circle or underline draws itself on hover */
.mark-word { position: relative; display: inline-block; white-space: nowrap; }
.mark-word svg { position: absolute; pointer-events: none; overflow: visible; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; }
.mark-word svg path { stroke-dasharray: 1 1.5; stroke-dashoffset: 1; transition: stroke-dashoffset .55s cubic-bezier(.3,.7,.2,1); }
.mark-word.circle svg { left: -8%; top: -18%; width: 116%; height: 138%; }
.mark-word.under svg { left: -1%; bottom: -14%; width: 102%; height: 30%; }
.hero h1:hover .mark-word svg path, .mark-word:hover svg path { stroke-dashoffset: 0; }
.hero h1 .mark-word svg path { stroke-dashoffset: 0; transition: none; }
@media (hover: none) { .mark-word svg path { stroke-dashoffset: 0; } }

.nav .mark-word.circle svg { stroke: var(--cream); stroke-width: 1.8; left: -10%; top: -22%; width: 120%; height: 144%; }
.nav a:hover .mark-word svg path { stroke-dashoffset: 0; }
@media (min-width: 1241px) and (max-width: 1340px) { .nav { gap: 22px; } .lockup .wordmark { font-size: 46px; } }
@media (max-width: 1240px) { .nav .mark-word svg { display: none; } }
.footer-ethos .mark-word.circle svg { stroke: var(--cream); stroke-width: 2; left: -8%; top: -20%; width: 116%; height: 140%; }
.footer-ethos:hover .mark-word svg path { stroke-dashoffset: 0; }

/* Rolling strip under the main quote */
.strip { overflow: hidden; position: relative; z-index: 2; padding: 26px 0 34px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.strip-track { display: flex; gap: 18px; width: max-content; animation: strip-roll 46s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
@keyframes strip-roll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.strip-item { flex: 0 0 auto; width: 380px; padding: 22px 24px 20px; border: 5px solid #C9CDD2; border-radius: 6px; background: linear-gradient(160deg, #FFFFFF 0%, #F7F9FA 55%, #EEF1F3 100%); box-shadow: inset 0 0 0 1px #AEB4BB, inset 0 18px 30px rgba(255,255,255,.9), 0 6px 16px rgba(0,0,0,.08); position: relative; }
.strip-item::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -12px; height: 7px; background: #B8BEC5; border-radius: 0 0 3px 3px; box-shadow: 0 2px 4px rgba(0,0,0,.15); }
.strip-item h3 { font-family: var(--font-cond); font-weight: 600; font-size: 25px; letter-spacing: .04em; text-transform: uppercase; color: #111; margin-bottom: 6px; line-height: 1.1; text-align: center; }
.strip-item p { margin: 0; font-family: var(--font); font-size: 18.5px; line-height: 1.45; font-weight: 400; color: #1A1A1A; opacity: 0; clip-path: inset(0 100% 0 0); transition: opacity .2s ease, clip-path .9s cubic-bezier(.3,.7,.2,1); }
.strip-item:hover p { opacity: 1; clip-path: inset(0 0 0 0); }
.strip-item { min-height: 0; aspect-ratio: 3 / 2; box-sizing: border-box; text-align: center; }
.strip-item h3 { position: absolute; left: 44px; right: 44px; top: 50%; transform: translateY(-50%); margin: 0; transition: opacity .25s ease; }
.strip-item:hover h3 { opacity: 0; }
.strip-item .board-body { position: absolute; left: 44px; right: 44px; top: 47%; transform: translateY(-50%); }
.strip-item p { text-align: center; transition-delay: .15s; }
@media (hover: none) { .strip-item { aspect-ratio: auto; min-height: 200px; display: flex; flex-direction: column; justify-content: center; } .strip-item h3 { position: static; transform: none; margin-bottom: 10px; } .strip-item .board-body { position: static; transform: none; } }
.strip-item .mk { display: block; width: 100%; height: auto; aspect-ratio: 300 / 50; margin: 3px auto 0; fill: none; stroke: #4A6A57; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .4s; }
.strip-item .mk path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .3s ease; }
.strip-item:hover .mk { opacity: .26; }
.strip-item:hover .mk path { stroke-dashoffset: 0; transition: stroke-dashoffset .5s cubic-bezier(.3,.7,.2,1); }
.strip-item:hover .mk .line { transition-duration: 1.3s; transition-delay: .25s; }
.strip-item:hover .mk .head { transition-duration: .3s; transition-delay: 1.5s; }
@media (hover: none) { .strip-item .mk { display: none; } }
@media (hover: none) { .strip-item p { opacity: 1; clip-path: none; } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; flex-wrap: wrap; width: auto; } .strip-item.dup { display: none; } .strip { mask-image: none; -webkit-mask-image: none; } }
@media (max-width: 640px) { .strip-item { width: 300px; } }

/* Four items */
.pillars { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.pillar { padding: 30px 30px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillar h3 { font-family: var(--font-cond); font-size: 24px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; color: var(--green); }
.pillar p { margin: 0; font-size: 16.5px; max-width: 46ch; }
@media (max-width: 720px) { .pillars { grid-template-columns: 1fr; } }

/* Green field card */
.field-card { display: block; border-radius: 4px; text-decoration: none; min-height: 300px; display: flex; align-items: flex-end; padding: 36px; }
.field-card:hover { text-decoration: none; }
.field-card .card-mark { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); width: min(38%, 320px); opacity: .95; transition: transform .5s ease; }
.field-card:hover .card-mark { transform: translate(-50%, -50%) scale(1.03); }
.field-card:hover .field-lines .yard, .field-card:hover .field-lines .hash { stroke-opacity: .24; transition: stroke-opacity .5s; }
.field-card .caption { position: relative; z-index: 1; font-family: var(--font-cond); font-weight: 600; font-size: 24px; letter-spacing: .06em; text-transform: uppercase; color: var(--cream); }
/* Enshrine your legacy: dark photo wall above the footer */
.legacy-wall { background: linear-gradient(180deg, var(--cream) 0, #7E9385 40px, #3F6D53 90px, #2F6148 150px, #1C5039 45%, #10432E 75%, var(--green-deep) 100%); padding: 230px 0 0; margin: -118px 0 -72px; overflow: hidden; position: relative; }
.wall { max-width: 1440px; margin: 0 auto; padding: 0 0 20px; }
.wall .row:last-child { margin-bottom: 0; }
.wall .row { display: grid; grid-template-columns: repeat(4, 19%); justify-content: space-between; gap: 0 8%; padding: 0 0.5%; margin-bottom: 4.6%; }
.wall .row.offset { grid-template-columns: repeat(3, 19%); justify-content: center; gap: 0 8%; }
.wall figure { margin: 0; position: relative; }
.wall img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; filter: brightness(.6) saturate(.85); transition: filter .5s ease; }
.wall figure:hover img { filter: none; }
.wall-label-m { display: none; }
.wall-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; font-family: var(--font-cond); font-weight: 600; font-size: 18px; letter-spacing: .17em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.78); padding: 10px 15px; pointer-events: none; }
.legacy-wall + .site-footer { margin-top: 0; }
@media (max-width: 860px) {
  .legacy-wall { background: linear-gradient(180deg, var(--cream) 0, #7E9385 30px, #3F6D53 70px, #2F6148 120px, #1C5039 45%, #10432E 75%, var(--green-deep) 100%); padding: 200px 0 0; margin: -130px 0 -72px; }
  .wall { padding: 0 16px 12px; }
  .wall .row, .wall .row.offset { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 12px; padding: 0; }
  .wall .row.offset { grid-template-columns: repeat(2, 1fr); }
  .wall img { filter: brightness(.75); }
  .wall-label { font-size: 15px; padding: 8px 12px; }
}
.field-card .caption span { display: block; font-family: var(--font); font-weight: 400; font-size: 15px; letter-spacing: 0; text-transform: none; opacity: .8; margin-top: 4px; }

/* Founder */
.chapters { margin-top: 8px; }
.chapter-tabs { display: flex; flex-wrap: wrap; gap: 10px 48px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.chapter-tab { background: none; border: 0; padding: 0 0 18px; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 8px; font-family: var(--font-cond); font-weight: 600; font-size: 30px; line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); transition: color .2s ease; }
.chapter-tab .num { font-size: 13px; font-weight: 500; letter-spacing: .2em; }
.chapter-tab:hover, .chapter-tab[aria-selected="true"] { color: var(--green); }
.chapter-tab:focus-visible { outline: 2px solid var(--green); outline-offset: 6px; border-radius: 2px; }
.chapter-tab .mark-word.under svg { bottom: -34%; height: 32%; }
.chapter-tab[aria-selected="true"] .mark-word svg path { stroke-dashoffset: 0; }
@media (hover: none) { .chapter-tab[aria-selected="false"] .mark-word svg path { stroke-dashoffset: 1; } }
.chapter-panel { columns: 2; column-gap: 64px; column-rule: 1px solid var(--line); font-size: 18px; line-height: 1.65; padding-top: 6px; animation: chapter-in .45s ease; }
.chapter-panel p { margin: 0 0 18px; break-inside: avoid; }
.chapter-panel p:last-child { margin-bottom: 0; }
a.mark-link { color: var(--green); font-weight: 500; }
a.mark-link::after { content: " \2197"; font-size: .8em; }
a.mark-link:hover { text-decoration: none; opacity: .8; }
a.mark-link svg path { animation: draw-mark .7s cubic-bezier(.3,.7,.2,1) .6s forwards; }
.chapter-panel .mark-word svg path { animation: draw-mark .7s cubic-bezier(.3,.7,.2,1) .6s forwards; }
@keyframes draw-mark { to { stroke-dashoffset: 0; } }
.chapter-panel[hidden] { display: none; }
@keyframes chapter-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .chapter-panel { animation: none; } .chapter-panel .mark-word svg path { animation: none; stroke-dashoffset: 0; } }
@media (max-width: 640px) { .chapter-tabs { gap: 6px 28px; } .chapter-tab { font-size: 24px; padding-bottom: 14px; } .chapter-panel { font-size: 17px; } }
@media (max-width: 860px) { .chapter-panel { columns: 1; } }
.flipbook-wrap { margin-top: 24px; }
.flipbook { width: 100%; max-width: 760px; margin: 0 auto; }
.flipbook .page { margin: 0; background: var(--cream-2); overflow: hidden; container-type: inline-size; }
.flipbook .page img { width: 100%; height: 100%; object-fit: cover; }
.flipbook .page figcaption { position: absolute; left: 0; top: 0; max-width: 100%; box-sizing: border-box; padding: 7px 12px; font-family: var(--font-cond); font-size: clamp(10.5px, 3.6cqw, 14px); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(245,241,230,.92); color: var(--ink); border-bottom-right-radius: 2px; }
.flipbook .stf__wrapper.--landscape .stf__item.--right figcaption { display: none; }
.flipbook-wrap { position: relative; }
.flipbook-controls { position: static; z-index: 5; display: flex; justify-content: center; gap: 12px; margin: 0 0 16px; pointer-events: none; }
.flipbook-controls[hidden] { display: none; }
.flipbook-controls button { pointer-events: auto; touch-action: manipulation; -webkit-tap-highlight-color: transparent; width: 150px; font-family: var(--font-cond); letter-spacing: .1em; text-transform: uppercase; font-size: 17px; border: 1px solid var(--green); background: var(--green); color: var(--cream); padding: 12px 0; border-radius: 2px; cursor: pointer; transition: background .2s ease, color .2s ease; }
.flipbook-controls button:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--cream); }
.gallery-fallback { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.gallery-fallback[hidden] { display: none; }
.gallery-fallback figure { margin: 0; }
.gallery-fallback img { aspect-ratio: 4/5; object-fit: cover; }
.gallery-fallback figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Network */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.person { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.person .photo { aspect-ratio: 4/5; overflow: hidden; background: var(--cream-2); position: relative; }
.person .photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease; }
.person .photo img.alt { position: absolute; inset: 0; opacity: 0; }
.person[aria-expanded="true"] .photo img.main { opacity: 0; }
.person[aria-expanded="true"] .photo img.alt { opacity: 1; }
@media (hover: hover) { .person:hover .photo img.alt, .person:focus-visible .photo img.alt { opacity: 1; } }
.person .name { margin-top: 10px; font-family: var(--font-cond); font-weight: 600; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; }
.person[aria-expanded="true"] .name { color: var(--green); }
.person .hint { font-size: 13px; color: var(--muted); }
.person-panel { display: none; position: fixed; inset: 0; z-index: 120; background: rgba(8,55,37,.62); padding: 24px; overflow: auto; }
.person-panel.open { display: grid; place-items: center; }
.person-card { position: relative; width: min(980px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow: auto; display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; padding: 36px 40px; background: var(--cream); border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: card-in .3s ease; }
@keyframes card-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.person-card h2 { font-size: 30px; color: var(--green); margin: 0 0 12px; padding-right: 90px; }
.person-card p { font-size: 16.5px; }
.person-card .links { margin-top: 10px; }
.person-card .photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 2px; }
.person-card .close { position: absolute; top: 18px; right: 18px; font-family: var(--font-cond); letter-spacing: .1em; text-transform: uppercase; font-size: 14px; background: var(--green); border: 1px solid var(--green); color: var(--cream); padding: 6px 12px; border-radius: 2px; cursor: pointer; transition: background .2s ease; }
.person-card .close:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--cream); }
body.no-scroll { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .person-card { animation: none; } }
@media (max-width: 960px) { .people { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .people { grid-template-columns: repeat(2, 1fr); gap: 14px; } .person-panel { padding: 12px; } .person-card { grid-template-columns: 1fr; gap: 18px; padding: 24px 20px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); } .person-card .photo { order: -1; } .person-card .photo img { aspect-ratio: auto; height: auto; } .person-card .close { position: fixed; top: 20px; right: 20px; z-index: 3; box-shadow: 0 2px 10px rgba(0,0,0,.3); } }

/* Services */
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; margin-top: 36px; padding-top: 26px; border-top: 2px solid var(--green); background-image: repeating-linear-gradient(90deg, var(--green) 0 2px, transparent 2px 10%); background-size: 100% 10px; background-repeat: no-repeat; background-position: 0 0; }
.stage-head { min-height: 132px; margin-bottom: 8px; }
.stage-head .down { display: block; font-family: var(--font-cond); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.stage-head h2 { font-size: 30px; color: var(--green); margin: 0 0 8px; }
.stage-head p { margin: 0; color: var(--muted); font-size: 15.5px; }
.play { padding: 16px 0 18px; border-top: 1px solid var(--line); }
.play h3 { margin: 0 0 4px; font-size: 19px; }
.play p { margin: 0; font-size: 15.5px; color: var(--ink); }
.stage-note { margin: 30px 0 0; text-align: left; font-size: 13.5px; color: var(--muted); }
.stage-note-justify { text-align: justify; }
@media (max-width: 900px) { .stages { grid-template-columns: 1fr; gap: 40px; background-image: none; } .stage-head { min-height: 0; } }

/* Calendar */
.cal-intro { max-width: 68ch; }
.cal-phase { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 34px 0; border-top: 1px solid var(--line); }
.cal-phase .when { font-family: var(--font-cond); font-weight: 600; font-size: 24px; letter-spacing: .04em; text-transform: uppercase; color: var(--green); }
.cal-phase .when small { display: block; font-family: var(--font); font-weight: 400; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--muted); margin-top: 6px; max-width: 26ch; }
.event { padding: 14px 0; border-top: 1px solid var(--line); }
.event:first-child { border-top: 0; padding-top: 0; }
.event .date { font-family: var(--font-cond); font-weight: 600; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.event h3 { margin: 2px 0 4px; }
.event p { margin: 0 0 6px; font-size: 16px; }
.event .counsel { font-size: 15px; padding: 10px 14px; border-left: 3px solid var(--green); background: rgba(11,59,37,.05); margin-top: 8px; max-width: 62ch; }
.event .counsel b { color: var(--green); font-family: var(--font-cond); letter-spacing: .08em; text-transform: uppercase; font-size: 14px; margin-right: 6px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px; }
.fact { border-top: 2px solid var(--green); padding-top: 12px; }
.fact .big { font-family: var(--font-cond); font-weight: 600; font-size: 30px; letter-spacing: .02em; color: var(--green); line-height: 1.1; }
.fact p { font-size: 15px; margin: 6px 0 0; }
@media (max-width: 760px) { .cal-phase { grid-template-columns: 1fr; gap: 10px; } .facts { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; }
.form label { display: block; font-family: var(--font-cond); font-weight: 600; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin: 18px 0 6px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 2px; padding: 12px 14px;
}
.form textarea { min-height: 150px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form .btn { margin-top: 22px; }
.form .note { font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.confirm { display: none; border-left: 3px solid var(--green); padding: 14px 18px; background: rgba(11,59,37,.05); font-size: 16px; }
.confirm.show { display: block; }
.contact-side .eyebrow { margin-bottom: 8px; }
.contact-side a.email { font-family: var(--font-cond); font-weight: 600; font-size: 22px; letter-spacing: .03em; display: inline-block; margin-bottom: 22px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Ethos / text pages */
.prose { max-width: 68ch; }
.legal { display: grid; grid-template-columns: 200px minmax(0, 68ch); gap: 64px; align-items: start; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 28px); }
.legal-nav nav { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; border-left: 1px solid var(--line-strong); padding-left: 14px; }
.legal-nav a { font-size: 14.5px; color: var(--muted); text-decoration: none; line-height: 1.3; }
.legal-nav a:hover { color: var(--green); }
.legal-block { margin: 18px 0; padding: 16px 22px 16px; background: rgba(11,59,37,.05); border-left: 3px solid var(--green); border-radius: 2px; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose .legal-block h2 { margin: 0; }
.legal-block summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal-block summary::-webkit-details-marker { display: none; }
.legal-block summary::after { content: "+"; flex: 0 0 auto; font-family: var(--font-cond); font-weight: 500; font-size: 26px; line-height: 1; color: var(--green); transition: transform .25s ease; }
.legal-block[open] summary::after { transform: rotate(45deg); }
.legal-block summary:hover h2 { color: var(--green); }
.legal-block .legal-body { padding-top: 10px; }
.legal-block p:last-child { margin-bottom: 0; }
.legal-block .warn { border-left: 3px solid var(--green); padding: 10px 14px; background: rgba(11,59,37,.06); font-size: 15px; }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; gap: 24px; } .legal-nav { position: static; } .legal-nav nav { flex-direction: row; flex-wrap: wrap; gap: 4px 6px; border-left: 0; padding-left: 0; } .legal-nav a { display: inline-block; padding: 10px 10px; margin: 0 -4px; font-size: 15px; } }
.prose h2 { font-size: 24px; margin: 34px 0 8px; color: var(--green); }
.prose h1 + p { font-size: 20px; color: var(--muted); }
.prose ul { padding-left: 20px; }
.h1-sm { font-size: clamp(28px, 3.6vw, 42px); }
.h1-md { font-size: clamp(32px, 4.2vw, 50px); }
.ethos-book { display: grid; grid-template-columns: 430px minmax(0, 1fr); gap: 40px 80px; margin-top: 44px; border-top: 1px solid var(--line-strong); padding-top: 32px; }
.ethos-book .chapter-tabs { flex-direction: column; gap: 18px; border: 0; margin: 0; align-self: start; position: sticky; top: calc(var(--header-h) + 28px); }
.ethos-book .chapter-tab { flex-direction: row; padding: 0; font-size: 23px; font-weight: 500; letter-spacing: .02em; color: var(--muted); width: 100%; }
.ethos-book .chapter-tab::before { content: ""; flex: 0 0 auto; width: 10px; height: 10px; margin: 0 14px 3px 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .7; transition: transform .2s ease; align-self: center; }
.ethos-book .chapter-tab[aria-selected="true"]::before { transform: rotate(-135deg); margin-bottom: -3px; opacity: 1; }
.ethos-book .chapter-tab { align-items: center; }
.ethos-book .chapter-tab:hover { color: var(--ink); }
.ethos-book .chapter-tab[aria-selected="true"] { color: var(--green); font-weight: 600; }
.ethos-book .chapter-tab .mark-word { white-space: normal; }
.ethos-book .chapter-tab .mark-word.under svg { bottom: -20%; height: 30%; }
.ethos-book .chapter-panel { columns: auto; column-rule: none; padding: 2px 0 0 0; max-width: 60ch; font-size: 21px; line-height: 1.6; }
.ethos-book .chapter-panel h2 { font-size: 38px; color: var(--green); margin: 0 0 14px; }
.ethos-book .chapter-panel p { margin: 0; }
@media (max-width: 1100px) { .ethos-book { grid-template-columns: 350px minmax(0, 1fr); } .ethos-book .chapter-tab { font-size: 19px; } .ethos-book .chapter-panel { font-size: 19px; } }
@media (max-width: 860px) { .ethos-book { grid-template-columns: 1fr; gap: 28px; } .ethos-book .chapter-tabs { position: static; gap: 12px; } .ethos-book .chapter-tab { font-size: 18px; } .ethos-book .chapter-panel { font-size: 18px; } .ethos-book .chapter-panel h2 { font-size: 30px; } }
.optional { font-family: var(--font-cond); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }
.fine-links .mark-link { font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: var(--cream); margin-top: 72px; }
.site-footer a { color: var(--cream); }
.site-footer .wrap { max-width: none; padding: 0 40px; }
.footer-top { display: grid; grid-template-columns: 1fr auto 1fr; gap: 48px; align-items: start; padding: 64px 0 44px; border-bottom: 1px solid rgba(245,241,230,.15); position: relative; z-index: 1; font-size: 17.5px; }
.footer-top > div:first-child { align-self: center; }
.footer-top > div:nth-child(3) { justify-self: end; text-align: right; }
.footer-top > div:nth-child(3) .social { justify-content: flex-end; }
.footer-mark { justify-self: center; align-self: center; display: block; }
.footer-mark img { display: block; width: 220px; opacity: .95; transition: transform .5s ease; }
.footer-mark:hover img { transform: scale(1.03); }
.footer-top h4 { font-family: var(--font-cond); font-weight: 600; font-size: 19px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; opacity: .8; }
.footer-top ul { list-style: none; padding: 0; margin: 0; }
.footer-top li { margin-bottom: 10px; }
.footer-ethos { font-family: var(--font-cond); font-weight: 600; font-size: 28px; letter-spacing: .06em; text-transform: uppercase; }
.email-btns { display: flex; flex-direction: column; align-items: stretch; width: fit-content; gap: 10px; margin-top: 0; }
.email-btns .btn { text-align: center; white-space: nowrap; }
@media (min-width: 761px) and (max-width: 1040px) { .email-btns .btn { font-size: 14.5px; letter-spacing: .08em; padding: 11px 16px 10px; } .footer-mark img { width: 180px; } .footer-top { gap: 32px; } }
.social { display: flex; gap: 16px; margin-top: 6px; }
.social a { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border: 1px solid rgba(245,241,230,.35); border-radius: 50%; }
.social a:hover { background: var(--cream); color: var(--green); text-decoration: none; }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.footer-top > div:nth-child(3) ul { font-size: 20px; }
.footer-top > div:nth-child(3) li { margin-bottom: 12px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 22px 0 30px; font-size: 15.5px; opacity: .85; position: relative; z-index: 1; }
.footer-bottom .links { display: flex; gap: 18px; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 28px; justify-items: center; text-align: center; } .footer-top > div:nth-child(3) { justify-self: center; text-align: center; } .footer-top > div:nth-child(3) .social { justify-content: center; } .footer-mark { justify-self: center; } .footer-mark img { width: 160px; } .email-btns { margin: 0 auto; } .footer-ethos .mark-word.circle svg { display: none; } .footer-bottom { justify-content: center; text-align: center; } .footer-bottom .links { width: 100%; justify-content: center; } .site-footer .wrap { padding: 0 24px; } }

/* Phone: no whiteboards and no photo wall; the hero runs straight into the footer */
@media (max-width: 640px) {
  .strip { display: none; }
  .legacy-wall { display: none; }
  .hero { padding-bottom: 64px; }
  .site-footer { margin-top: 0; }
  a.mark-link { color: var(--green); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
  a.mark-link::after { content: none; }
  a.mark-link svg { display: none; }
  .hero-tag { display: block; margin: 44px 0 0; font-family: var(--font-cond); font-weight: 500; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); opacity: .8; }
}

/* Phone: the family photos as a swipeable carousel, one centred photo at a time */
@media (max-width: 640px) {
  .flipbook-wrap { margin-top: 30px; }
  .gallery-fallback { display: flex; gap: 0; overflow-x: auto; touch-action: pan-x pan-y; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .gallery-fallback::-webkit-scrollbar { display: none; }
  .flipbook-controls { position: absolute; margin: 0; top: 0; bottom: 0; left: 0; right: 0; justify-content: space-between; align-items: center; padding: 0 10px; gap: 0; }
  .flipbook-controls button { width: 42px; height: 42px; padding: 0; border-radius: 50%; font-size: 0; line-height: 0; background: rgba(11,59,37,.82); border-color: transparent; box-shadow: 0 2px 8px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; }
  .flipbook-controls button::before { content: ""; display: block; width: 11px; height: 11px; border-top: 2px solid var(--cream); border-right: 2px solid var(--cream); }
  #flip-prev::before { transform: translateX(2px) rotate(-135deg); }
  #flip-next::before { transform: translateX(-2px) rotate(45deg); }
  .flip-count { display: block; margin: 10px 0 0; text-align: center; font-family: var(--font-cond); font-size: 13px; letter-spacing: .12em; color: var(--muted); }
  .gallery-fallback figure { flex: 0 0 100%; scroll-snap-align: center; margin: 0; position: relative; }
  .gallery-fallback img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
  .gallery-fallback figcaption { position: absolute; left: 0; top: 0; margin: 0; max-width: 100%; box-sizing: border-box; padding: 7px 12px; font-family: var(--font-cond); font-size: 13px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(245,241,230,.92); color: var(--ink); border-bottom-right-radius: 2px; }
}
