/* Farm Fitness Project. Colors and type from his logo and pricing posts. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Big Shoulders Display";
  src: url("fonts/big-shoulders-display-latin.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --black: #0E0E0D;
  --panel: #161715;
  --tan: #A59277;
  --olive: #53654B;
  --chalk: #EFEBE3;
  --steel: #84857F;
  --line: #2A2B28;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Archivo", Helvetica, Arial, sans-serif;
  --gutter: 16px;
  --max: 1280px;
  --cut: 14px;
  --space: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* hidden means hidden, even on elements a layout rule gives display: grid or flex. */
[hidden] { display: none !important; }
body {
  margin: 0;
  color: var(--chalk);
  background-color: var(--black);
  /* The grain from his posts: a tiled SVG turbulence, very faint. */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.75 0 0 0 0 0.73 0 0 0 0 0.68 0 0 0 0.09 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--tan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* Keyboard users jump past the header; hidden until focused. */
.skip { position: absolute; left: 16px; top: -100px; z-index: 20; background: var(--chalk); color: var(--black); padding: 10px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 0.92; text-wrap: balance; }
h1 { font-weight: 900; font-size: clamp(60px, 9vw, 128px); text-transform: uppercase; letter-spacing: 0.01em; }
h2 { font-weight: 800; font-size: clamp(44px, 5.2vw, 76px); text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 16px; }
h3 { font-weight: 800; font-size: 28px; text-transform: uppercase; letter-spacing: 0.02em; }
p { margin: 0 0 1em; }
small { font-size: 0.6em; font-family: var(--body); font-weight: 500; color: var(--steel); text-transform: none; letter-spacing: 0; }
/* The one accent word per headline. */
.hl { color: var(--tan); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); margin: 0 0 14px; }

.placeholder { color: var(--steel); text-decoration: underline dashed var(--steel); text-underline-offset: 4px; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--chalk);
  background: var(--olive);
  border: 0;
  cursor: pointer;
  padding: 14px 24px 13px;
  line-height: 1;
  transition: background-color .15s;
}
.btn:hover { background: #475840; }
.btn-tan { background: var(--tan); color: var(--black); }
.btn-tan:hover { background: #B8A487; }
/* The diagonal cut from the monogram's F arms. */
.btn-cut { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.cut-corner { clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%); }
.link-arrow { font-weight: 600; color: var(--chalk); text-decoration: none; border-bottom: 2px solid var(--tan); padding-bottom: 2px; }
.link-arrow:hover { color: var(--tan); }
.actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* Header */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px;
  padding: 10px var(--gutter);
  background: var(--black);
  border-bottom: 1px solid var(--line);
}
.bar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--chalk); font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: 0.03em; text-transform: uppercase; }
.bar-brand img { width: 40px; height: 40px; }
.bar-brand span { display: none; }
/* Below 1000px: the mark, Get started and a menu button; the links open in a panel under the bar (app.js). */
.bar-cta { margin-left: auto; font-size: 18px; padding: 11px 18px 10px; white-space: nowrap; }
.bar-menu { display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; margin-right: -8px; padding: 0; background: none; border: 0; color: var(--chalk); cursor: pointer; }
.bar-menu span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.bar.open .bar-menu span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bar.open .bar-menu span:nth-child(2) { opacity: 0; }
.bar.open .bar-menu span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* The shadow dims the page under the open panel; the clip keeps it off the bar itself. */
.bar-panel { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100svh - 64px); overflow-y: auto; padding: 4px var(--gutter) 28px; background: var(--black); border-bottom: 1px solid var(--line); box-shadow: 0 0 0 100vmax rgba(14, 14, 13, .7); clip-path: inset(0 0 -100vmax 0); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility 0s .2s; }
.bar.open .bar-panel { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
/* Home: the header's Get started waits until the hero's own has scrolled away (app.js), so a phone shows one at a time. */
@media (max-width: 999.98px) {
  .bar-cta { transition: opacity .2s, transform .2s, visibility 0s; }
  .bar.cta-later .bar-cta { visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility 0s .2s; }
}
.bar-nav { display: flex; flex-direction: column; }
.bar-nav a { color: var(--chalk); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: 0.03em; text-transform: uppercase; padding: 12px 0 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.bar-nav a:hover, .bar-nav a[aria-current="page"] { color: var(--tan); }
.bar-login { display: inline-block; margin-top: 22px; font-size: 17px; font-weight: 500; white-space: nowrap; }
a.bar-login { color: var(--chalk); text-decoration: none; }
a.bar-login:hover { color: var(--tan); }

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space) var(--gutter); max-width: var(--max); margin: 0 auto; }
.section + .section { border-top: 1px solid var(--line); }
.lead { max-width: 56ch; font-size: 18px; margin-bottom: 32px; }
.section-foot { margin-top: 32px; }

/* Home hero: the drone footage (or its still) full width, copy over a dark scrim. */
/* Phones: the screen minus the header and the call bar, so the buttons clear the bar. */
.hero { position: relative; display: grid; align-items: end; min-height: min(calc(100svh - 140px), 920px); overflow: hidden; background: var(--black); }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,14,13,.94) 0%, rgba(14,14,13,.78) 50%, rgba(14,14,13,.25) 100%); }
.hero .eyebrow { color: #D6D1C6; }
.hero-copy { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 96px var(--gutter) 48px; }
.hero-copy h1 { margin-bottom: 20px; }
.hero-sub { font-size: 18px; max-width: 44ch; margin-bottom: 28px; }
.hero-welcome { color: var(--chalk); margin-bottom: 10px; }
.next { margin: 24px 0 0; display: inline-flex; gap: 10px; align-items: center; font-size: 15px; color: var(--chalk); }
.next::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tan); }
.next:empty { display: none; }

/* Interior page hero */
.page-hero { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) var(--space); display: grid; gap: 32px; align-items: end; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(56px, 8vw, 112px); margin-bottom: 18px; }
.page-hero .hero-sub { margin-bottom: 0; }
.page-hero .actions { margin-top: 24px; }
.page-hero figure { margin: 0; }
.page-hero figure img, .page-hero figure video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* "New to this? Start here." */
.start-bar { display: grid; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--olive); padding: 22px 22px; margin-bottom: 24px; }
.start-bar :is(h2, h3) { font-size: 26px; letter-spacing: 0.02em; margin-bottom: 0; }
.start-bar p { margin: 0; max-width: 60ch; color: #CFCBC2; }

/* Program cards */
.cards { display: grid; gap: 16px; }
.card { position: relative; display: block; color: var(--chalk); text-decoration: none; overflow: hidden; background: var(--panel); }
/* Wide 4:3 cards, one column on phones and two by two from 640px. */
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .2s; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,14,13,.94) 0%, rgba(14,14,13,.6) 34%, rgba(14,14,13,0) 62%); }
/* Phones: deeper behind the small tan label (4.5:1). */
@media (max-width: 639px) { .card::after { background: linear-gradient(to top, rgba(14,14,13,.94) 0%, rgba(14,14,13,.75) 38%, rgba(14,14,13,0) 66%); } }
.card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px; }
.card h3 { font-size: 40px; margin-bottom: 8px; }
.card-classes { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tan); margin-bottom: 8px; }
.card-more { font-weight: 600; border-bottom: 2px solid var(--tan); padding-bottom: 2px; }
.card:hover img { transform: scale(1.03); }
.card:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }

/* Captioned photo strip */
.strip { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.strip figure:first-child { grid-column: 1 / -1; }
.strip figure:first-child img { aspect-ratio: 4 / 3; }
.strip figure { margin: 0; }
.strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.strip figcaption { margin-top: 10px; font-size: 14px; font-weight: 500; color: #CFCBC2; }

/* This week on Home */
.days { display: grid; gap: 16px; }
.day { background: var(--panel); border: 1px solid var(--line); padding: 22px; }
.day h3 { margin-bottom: 14px; }
.day h3 span { color: var(--steel); }
.times { list-style: none; margin: 0; padding: 0; }
.times li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.times li span { color: var(--steel); font-variant-numeric: tabular-nums; }
.times li.is-next { color: var(--tan); }
.times li.is-next span { color: var(--tan); }
.times li.is-past { color: var(--steel); }
.times-rest { color: var(--steel); padding: 10px 0; border-top: 1px solid var(--line); }

/* Pricing at a glance */
.glance { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.glance > div { background: var(--black); padding: 22px; }
.glance-name { font-weight: 600; margin-bottom: 6px; }
.glance-price { font-family: var(--display); font-weight: 900; font-size: 64px; line-height: 1; color: var(--chalk); margin: 0; }
.glance-price small { font-size: 18px; }
.glance-terms { margin: 20px 0 0; color: #CFCBC2; max-width: 70ch; }
.glance-terms strong { color: var(--chalk); }

/* Three steps */
.steps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto 1fr; gap: 8px 16px; align-items: start; }
.steps li::before { content: counter(step); grid-row: span 2; font-family: var(--display); font-weight: 900; font-size: 64px; line-height: 0.85; color: var(--tan); }
.steps h3 { font-size: 26px; padding-top: 4px; }
.steps p { margin: 0; max-width: 40ch; }

/* Closing band */
.band { background: var(--olive); }
.band-in { max-width: var(--max); margin: 0 auto; padding: var(--space) var(--gutter); }
.band h2 { margin-bottom: 12px; }
.band .hl { color: var(--black); }
.band p { max-width: 52ch; font-size: 18px; margin-bottom: 28px; }
.band .steps { margin-top: 36px; }
.band .steps li::before { color: var(--black); }
.band a:not(.btn) { color: var(--chalk); }
.band .btn { background: var(--black); }
.band .btn:hover { background: #26271F; }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 0.8; color: var(--tan); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 20px; max-width: 64ch; color: #CFCBC2; }

/* Two columns that stack on mobile */
.split { display: grid; gap: 56px; }
.split h2 { margin-bottom: 28px; }
.expect { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.expect li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.expect strong { display: block; font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 4px; }
address { font-style: normal; margin-bottom: 1em; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1em; line-height: 2; }

/* Programs list (Programs page) */
.programs { width: 100%; border-collapse: collapse; }
.programs thead { display: none; }
.programs tr { display: block; padding: 18px 0; border-top: 1px solid var(--line); }
.programs th, .programs td { display: block; text-align: left; padding: 0; }
.programs th[scope="row"] { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; color: var(--tan); text-transform: uppercase; letter-spacing: 0.02em; }
.programs th a { color: inherit; }
.programs td:nth-child(2) { color: var(--steel); font-weight: 500; margin: 4px 0 6px; }
.programs td:nth-child(3) { max-width: 60ch; }
.programs td:nth-child(4) { color: var(--steel); margin-top: 4px; }
.programs td:nth-child(4)::before { content: "Days: "; }

/* Schedule: grid on wide screens, per-day list on narrow */
.grid { display: none; }
.daylist { margin: 0; display: grid; }
.daylist > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.daylist dt { font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--tan); text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.1; }
.daylist dd { margin: 0; line-height: 1.6; }
.slot { display: block; color: var(--chalk); text-decoration: none; }
.slot-line { padding: 6px 0; line-height: 1.4; }
.slot-line span { display: inline-block; min-width: 74px; color: var(--steel); }
.slot-line:hover { color: var(--tan); }
.daylist dd.is-empty::after { content: "No matching classes"; color: var(--steel); }
.schedule-note { color: var(--steel); font-size: 15px; margin-top: 16px; }


/* Coaches */
.coach-list { display: grid; gap: 48px; }
/* Phones: photo, then the bio full width. Side by side from 760px. */
.coach { display: grid; gap: 16px; align-items: start; }
.coach-photo { aspect-ratio: 3 / 4; width: 120px; }
.coach-role { color: var(--tan); font-weight: 600; margin: 6px 0 12px; }
.coach-creds { font-size: 15px; color: #CFCBC2; }
.coach p:not(.coach-role) { max-width: 64ch; }

/* Pricing ledger */
.ledger { border-top: 1px solid var(--line); }
.ledger-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ledger-name { font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1; }
.ledger-price { font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--tan); white-space: nowrap; line-height: 1; }
.ledger-sub { margin: 36px 0 12px; font-size: 24px; letter-spacing: 0.02em; }
.terms { display: grid; gap: 1px; background: var(--line); }
.terms > div { background: var(--olive); padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; }
.terms strong { font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1; }
.terms span { grid-column: 1; color: var(--chalk); }
.terms em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; }

/* Forms */
.req { display: grid; gap: 16px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: 15px; }
.optional { color: var(--steel); font-weight: 400; }
.field ::placeholder { color: var(--steel); opacity: 1; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="date"], .field select, .field textarea { font: inherit; color: var(--chalk); background: var(--panel); border: 1px solid var(--steel); border-radius: 0; padding: 12px 14px; width: 100%; }
.field input[type="text"]:focus, .field input[type="tel"]:focus, .field input[type="email"]:focus, .field input[type="date"]:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--tan); outline-offset: 0; border-color: var(--tan); }
.field-check { grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.field-check input { width: 24px; height: 24px; accent-color: var(--olive); margin: 0; }
.form-error { color: #D9A38C; margin: 0; }
.form-note { color: var(--steel); font-size: 15px; margin: 4px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-done { border: 1px solid var(--olive); background: var(--panel); padding: 28px; max-width: 560px; }
.form-done h3 { margin-bottom: 8px; }
.form-done p { margin: 0; }
.foot-cols .placeholder { display: block; padding: 4px 0; }

/* Chip radios, shared by the class finder and the price calculator */
.chips { border: 0; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chips legend { float: left; width: 100%; padding: 0; margin-bottom: 8px; font-weight: 500; font-size: 15px; color: #A3A49D; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips label { border: 1px solid var(--steel); padding: 8px 14px; cursor: pointer; font-weight: 500; font-size: 15px; line-height: 1.3; }
.chips label:hover { border-color: var(--tan); }
.chips input:checked + label { background: var(--tan); border-color: var(--tan); color: var(--black); }
.chips input:focus-visible + label { outline: 2px solid var(--tan); outline-offset: 2px; }

.finder { background: var(--panel); border: 1px solid var(--line); padding: 24px var(--gutter) 20px; margin: 0 calc(-1 * var(--gutter)) 28px; }
.finder :is(h2, h3) { font-size: 28px; letter-spacing: 0.02em; margin-bottom: 16px; }
.hits { margin: 4px 0 0; color: var(--tan); font-weight: 600; }

.calc { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 32px; display: grid; gap: 8px 48px; }
.calc :is(h2, h3) { font-size: 28px; letter-spacing: 0.02em; margin-bottom: 16px; }
.calc-big { font-family: var(--display); font-weight: 800; font-size: 72px; line-height: 1; color: var(--tan); margin: 0 0 10px; }
.calc-big small { font-size: 22px; }
.calc-total { font-size: 18px; margin-bottom: 20px; }
.calc-total strong { color: var(--tan); }
.calc .placeholder { font-size: 15px; margin-top: 16px; }

/* Footer */
.foot { border-top: 1px solid var(--line); }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 48px var(--gutter) 32px; display: grid; gap: 32px; }
.foot-brand img { width: 240px; height: auto; margin-bottom: 16px; }
.foot-brand p { color: #CFCBC2; max-width: 32ch; margin: 0; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; }
.foot-h { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); margin: 0 0 10px; }
.foot-cols a { display: block; color: var(--chalk); text-decoration: none; padding: 4px 0; }
.foot-cols a:hover { color: var(--tan); }
.foot-cols address { color: #CFCBC2; margin: 0; }
.foot-small { grid-column: 1 / -1; color: var(--steel); font-size: 14px; border-top: 1px solid var(--line); padding-top: 20px; margin: 0; }
/* 24px tap height without moving the line. */
.foot-small a { display: inline-block; padding: 5px 0; margin: -5px 0; }

@media (min-width: 640px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card h3 { font-size: 34px; }
  .strip { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .strip figure:first-child { grid-column: auto; }
  .strip figure:first-child img { aspect-ratio: 3 / 4; }
  .glance { grid-template-columns: repeat(2, 1fr); }
  .days { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 760px) {
  :root { --gutter: 32px; --space: 96px; }
  body { font-size: 17px; }
  .start-bar { grid-template-columns: 1fr auto; padding: 24px 28px; }
  .start-bar div { display: grid; gap: 6px; }
  .page-hero { grid-template-columns: 1.2fr 1fr; gap: 48px; padding-top: 72px; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .coach { grid-template-columns: 160px 1fr; gap: 28px; }
  .coach-photo { width: auto; }
  .terms { grid-template-columns: repeat(3, 1fr); }
  .terms > div { grid-template-columns: 1fr; }
  .terms em { grid-column: 1; grid-row: auto; margin-top: 10px; }
  .finder { margin-left: 0; margin-right: 0; padding: 28px 32px 24px; }
  .calc { grid-template-columns: 1.6fr 1fr; align-items: start; }
  .calc :is(h2, h3) { grid-column: 1 / -1; }
  .calc-big { font-size: 96px; }
  .foot-in { grid-template-columns: 1fr 2fr; }
  .foot-cols { grid-template-columns: repeat(4, 1fr); }

  .programs thead { display: table-header-group; }
  .programs tr { display: table-row; }
  .programs th, .programs td { display: table-cell; padding: 16px 20px 16px 0; border-top: 1px solid var(--line); vertical-align: top; }
  .programs thead th { font-family: var(--body); font-weight: 500; font-size: 15px; color: var(--steel); border-top: 0; padding-top: 0; }
  .programs th[scope="row"] { font-size: 28px; white-space: nowrap; }
  .programs td:nth-child(2), .programs td:nth-child(4) { margin: 0; white-space: nowrap; }
  .programs td:nth-child(4)::before { content: none; }
}

@media (min-width: 1000px) {
  :root { --gutter: 48px; }
  .bar { flex-wrap: nowrap; padding-top: 12px; padding-bottom: 12px; }
  .bar-menu { display: none; }
  .bar-panel { display: contents; visibility: visible; }
  .bar-nav { flex-direction: row; gap: 32px; margin-left: auto; }
  .bar-nav a { font-family: var(--body); font-weight: 500; font-size: 16px; letter-spacing: 0; text-transform: none; padding: 0; border: 0; }
  .bar-cta { margin-left: 16px; }
  .bar-login { margin: 0 0 0 32px; padding-left: 32px; border-left: 1px solid var(--line); font-size: 16px; }
  .bar-panel + .bar-cta { margin-left: 20px; }
  .bar-brand img { width: 44px; height: 44px; flex-shrink: 0; }
  .hero { min-height: min(calc(100vh - 69px), 940px); }
  /* The bottom band is darker so the headline's tan word stays readable over bright frames (gravel, the truck). */
  .hero::after { background: linear-gradient(to right, rgba(14,14,13,.88) 0%, rgba(14,14,13,.55) 45%, rgba(14,14,13,.05) 80%), linear-gradient(to top, rgba(14,14,13,.8) 0%, rgba(14,14,13,.75) 48%, transparent 72%); }
  .hero-copy { padding-bottom: 80px; }
  .grid { display: table; width: 100%; border-collapse: collapse; table-layout: fixed; }
  .grid th, .grid td { padding: 0; border: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 15px; }
  .grid thead th { padding: 12px 10px; font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--tan); border-top: 0; }
  .grid thead th:first-child { color: var(--steel); font-family: var(--body); font-weight: 500; font-size: 15px; text-transform: none; letter-spacing: 0; }
  .grid tbody th { padding: 12px 10px; font-family: var(--display); font-weight: 800; font-size: 22px; white-space: nowrap; width: 110px; }
  .grid td:not(:empty) { background: var(--olive); }
  .grid .slot { padding: 12px 10px; font-weight: 500; }
  .grid .slot:hover { background: var(--tan); color: var(--black); }
  .grid td.is-dim { background: transparent; }
  .grid td.is-dim .slot { color: var(--steel); font-weight: 400; }
  .daylist { display: none; }
}

/* The name beside the mark only fits once the nav and Member login have room. */
@media (min-width: 1300px) { .bar-brand span { display: inline; white-space: nowrap; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.notfound { min-height: 60vh; }

/* Call and text bar, pinned to the bottom on phones; the body makes room for it. */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(14, 14, 13, 0.96); border-top: 1px solid var(--line); }
.callbar .btn { text-align: center; padding-top: 12px; padding-bottom: 11px; }
body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
.hero-call { display: none; } /* the bar is the call button on phones */
@media (min-width: 760px) {
  .callbar { display: none; }
  .hero-call { display: inline-block; }
  body { padding-bottom: 0; }
}

.mt { margin-top: 32px; }
.page-hero.plain { grid-template-columns: 1fr; }
.prose > * { max-width: 68ch; }
.prose :is(h2, h3) { font-size: 28px; letter-spacing: 0.02em; margin: 36px 0 8px; }
.prose :is(h2, h3):first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; }
.link-arrow::after, .card-more::after { content: " \2192"; }
.band .eyebrow { color: #DCE0D3; }
.foot-cols a, .contact-list a { overflow-wrap: break-word; }

/* Bo's answers, Oct 2026 */
.btn-ghost { background: transparent; color: var(--chalk); box-shadow: inset 0 0 0 1px var(--steel); }
.btn-ghost:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--tan); color: var(--tan); }
a.next { text-decoration: none; }
a.next:hover { color: var(--tan); }
.quotes { display: grid; gap: 16px; }
.quotes blockquote { margin: 0; background: var(--panel); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.quotes p { margin: 0; font-size: 19px; line-height: 1.5; }
.quotes .stars { color: var(--tan); font-size: 20px; letter-spacing: 0.15em; line-height: 1; margin-bottom: -6px; }
.quotes .stars + p { flex-grow: 1; }
.quotes footer, .pull footer { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tan); }
/* Our Story: "A family project" text with Bo's sawmill photo beside it (below it on phones). */
.family figure { margin: 0; }
.family img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.story { display: grid; gap: 32px; }
.story-mark { width: 160px; height: auto; }
.story p { max-width: 64ch; }
.pull { margin: 32px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); }
.pull p { font-size: clamp(20px, 2vw, 24px); line-height: 1.45; font-weight: 500; margin-bottom: 14px; }

/* About: barn slideshow. Swipes and scrolls natively; app.js adds the buttons and the counter. */
.slides { position: relative; margin: 0; }
.slides-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; margin: 0; padding: 0; scrollbar-width: none; }
.slides-track::-webkit-scrollbar { display: none; }
.slides-track:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }
.slides-track li { flex: 0 0 100%; scroll-snap-align: start; }
.slides-track img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.slides-nav { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 4px; background: rgba(14, 14, 13, 0.82); padding: 4px; }
.slides-nav button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--chalk); font: inherit; font-size: 20px; cursor: pointer; }
.slides-nav button:hover { color: var(--tan); }
.slides-nav button:focus-visible { outline: 2px solid var(--tan); outline-offset: -2px; }
.slides-count { min-width: 4em; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
@media (min-width: 760px) {
  .quotes { grid-template-columns: 1fr 1fr; }
  /* The long review runs full width; the last short one fills its row when two columns leave it alone. */
  .quotes .quote-wide, .quotes blockquote:last-child:nth-child(even) { grid-column: 1 / -1; }
  .story { grid-template-columns: 240px 1fr; gap: 56px; }
  .story-mark { width: 240px; }
}
@media (min-width: 1000px) {
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .quotes blockquote:last-child:nth-child(even) { grid-column: auto; }
}

/* Instagram feed on Home (replaces the barn strip when posts load) */
.ig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ig-grid a { display: block; overflow: hidden; background: var(--panel); }
.ig-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .2s; }
.ig-grid a:hover img { transform: scale(1.03); }
.ig-grid a:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }
.ig-grid a:nth-child(n+5) { display: none; }
@media (min-width: 640px) { .ig-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } .ig-grid a:nth-child(n+5) { display: block; } }

/* Bo's photos, Oct 2026: 4-up strips, the About mosaic, and the gallery. Landscape shots span two columns. */
.strip-4 figure:first-child { grid-column: auto; }
.strip-4 figure:first-child img { aspect-ratio: 3 / 4; }
/* Our Story: the build, in date order. Square tiles so portrait and landscape photos line up. */
.build { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.build figure { margin: 0; }
.build img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
/* A last photo that would leave a gap on its row spans the rest of it instead, as a wide shot. */
@media (min-width: 640px) and (max-width: 999.98px) {
  .build { grid-template-columns: 1fr 1fr; gap: 16px; }
  .build li:last-child:nth-child(2n+1) { grid-column: 1 / -1; }
  .build li:last-child:nth-child(2n+1) img { aspect-ratio: 2; }
}
@media (min-width: 1000px) {
  .build { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .build li:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .build li:last-child:nth-child(3n+1) img { aspect-ratio: 3; }
  /* Two photos on the last row: the last one takes both remaining columns, at its neighbour's height. */
  .build li:last-child:nth-child(3n+2) { grid-column: span 2; }
  .build li:last-child:nth-child(3n+2) figure { height: 100%; }
  .build li:last-child:nth-child(3n+2) img { aspect-ratio: auto; height: 0; min-height: 100%; }
}

.mosaic, .gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; grid-auto-flow: dense; }
.mosaic figure { margin: 0; }
.mosaic img, .gallery img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.mosaic .wide, .gallery .wide { grid-column: span 2; }
.mosaic .wide img, .gallery .wide img { aspect-ratio: 8 / 5; }
.gallery a { display: block; overflow: hidden; background: var(--panel); }
.gallery a img { transition: transform .2s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery a:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }
@media (min-width: 640px) {
  .strip-4 { grid-template-columns: repeat(4, 1fr); }
  .mosaic, .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (min-width: 1000px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}

/* Video clips (Oct 2026): beside the barn feed on Home, rows on Programs and Gallery. */
.clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.clips figure, .clip { margin: 0; }
.clips video, .clip video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: var(--panel); }
.clips figcaption { margin-top: 8px; font-size: 13px; font-weight: 500; color: #CFCBC2; }
.clips-2 { grid-template-columns: 1fr 1fr; }
/* Gallery's six in a row: two across on phones, three on tablets, six from 1000px. */
.clips-6 { grid-template-columns: repeat(2, 1fr); }

/* Pause/play for autoplaying video (app.js adds it): a small dot in a corner, 24px to tap. */
.has-motion-toggle { position: relative; }
.motion-toggle { position: absolute; right: 8px; bottom: 8px; z-index: 2; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: rgba(14, 14, 13, 0.5); cursor: pointer; opacity: 0.7; transition: opacity 0.2s; }
.motion-toggle:hover, .motion-toggle:focus-visible { opacity: 1; }
.motion-toggle::before, .motion-toggle::after { content: ""; position: absolute; top: 8px; width: 2px; height: 8px; background: var(--chalk); }
.motion-toggle::before { left: 9px; }
.motion-toggle::after { right: 9px; }
.motion-toggle[aria-pressed="true"]::before { left: 9px; width: 0; height: 0; background: none; border-style: solid; border-width: 4px 0 4px 7px; border-color: transparent transparent transparent var(--chalk); }
.motion-toggle[aria-pressed="true"]::after { display: none; }
.hero > .motion-toggle { top: 12px; bottom: auto; right: 12px; }
.gallery + .gallery-h { margin-top: 40px; }
.gallery-h { margin: 28px 0 14px; }
.barn-grid { display: grid; gap: 12px; }
/* Phones: no clip and four Instagram posts, so the section is two rows instead of three screens. */
.barn-grid .clip { display: none; }
@media (min-width: 640px) {
  .clips { gap: 16px; }
  .clips figcaption { font-size: 14px; }
  .clips-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) { .clips-6 { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 760px) {
  .barn-grid { grid-template-columns: 1fr 3fr; gap: 16px; align-items: stretch; }
  /* The clip fills whatever height the photos (or the Instagram grid) set, instead of setting it. */
  .barn-grid .clip { display: block; position: relative; }
  .barn-grid .clip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
}

/* Get started: photos crossfade on their own, 5 s each. Reduced motion keeps the first one. */
.slideshow { display: grid; }
.slideshow img { grid-area: 1 / 1; opacity: 0; animation: slide 25s infinite; }
.slideshow img:nth-child(1) { animation-delay: -1s; }
.slideshow img:nth-child(2) { animation-delay: 4s; }
.slideshow img:nth-child(3) { animation-delay: 9s; }
.slideshow img:nth-child(4) { animation-delay: 14s; }
.slideshow img:nth-child(5) { animation-delay: 19s; }
@keyframes slide { 0% { opacity: 0; } 4%, 20% { opacity: 1; } 24%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .slideshow img { animation: none; }
  .slideshow img:first-child { opacity: 1; }
}

/* Waiver (/waiver/): one long form, Bo's text in the middle, signature pad at the end. */
.waiver { max-width: 640px; gap: 28px; }
.group { border: 0; margin: 0; padding: 0; display: grid; gap: 16px; min-width: 0; }
.group > legend { font-family: var(--display); font-weight: 800; font-size: 28px; text-transform: uppercase; letter-spacing: 0.02em; padding: 0; margin-bottom: 16px; }
.group .chips { margin: 0; }
.group .chips legend { color: var(--chalk); }
.field input[type="date"] { color-scheme: dark; }
.waiver-text { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0 8px; }
.waiver-text :is(h2, h3) { font-size: 22px; letter-spacing: 0.02em; margin: 0 0 8px; }
.waiver-text p, .waiver-text ul { color: #CFCBC2; margin: 0 0 16px; }
.waiver-text ul { padding-left: 20px; }
.sig-label { font-weight: 500; font-size: 15px; margin: 0; }
.sig { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; background: var(--chalk); touch-action: none; cursor: crosshair; }
.sig-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sig-row .form-note { margin: 0; }
.link-btn { font: inherit; font-weight: 600; color: var(--chalk); background: none; border: 0; border-bottom: 2px solid var(--tan); padding: 6px 0 2px; cursor: pointer; }
.link-btn:hover { color: var(--tan); }
