/* City of Woods — site styles (design tokens from the designer handoff) */
:root {
  --forest: #172b22;
  --forest-2: #20372b;
  --pine: #31533b;
  --pine-dark: #26432f;
  --sage: #82927a;
  --parchment: #f7f3ea;
  --linen: #eee7d9;
  --paper: #fffcf6;
  --ink: #20241e;
  --muted: #5b6458;
  --bark: #886b4d;
  --gold: #c89a4d;
  --line: #d9d3c6;
  --danger: #9b2c22;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(23, 43, 34, .06), 0 8px 24px rgba(23, 43, 34, .07);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--pine); }
a:hover { color: var(--pine-dark); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .4em; color: var(--ink); }
h1 { font-size: clamp(36px, 5vw, 62px); letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 3.6vw, 42px); }
h3 { font-size: 25px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--forest); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 820px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 52px; width: auto; max-width: 260px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 8px; letter-spacing: .01em;
}
.main-nav a:hover { background: var(--linen); color: var(--forest); }
.main-nav a[aria-current="page"] { color: var(--pine); box-shadow: inset 0 -2px 0 var(--pine); border-radius: 0; }
.main-nav a.nav-cta { background: var(--pine); color: #fff; margin-left: 8px; border-radius: 8px; box-shadow: none; }
.main-nav a.nav-cta:hover { background: var(--pine-dark); }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 12px; font: 600 15px var(--sans); color: var(--ink); cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: 700 16px/1.2 var(--sans); letter-spacing: .01em; min-height: 48px;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-dark); color: #fff; }
.btn-light { background: #f4e9d4; color: var(--forest); }
.btn-light:hover { background: #fff; color: var(--forest); }
.btn-outline { border-color: var(--pine); color: var(--pine); background: transparent; }
.btn-outline:hover { background: var(--pine); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-small { padding: 9px 14px; font-size: 14px; min-height: 40px; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; }
.arrow::after { content: "→"; font-size: 1.1em; letter-spacing: 0; }
.text-link { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }

/* ---------- Eyebrows & section heads ---------- */
.eyebrow { font: 700 13px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--bark); margin-bottom: 14px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--linen); }
.section-dark { background: var(--forest); color: #eef0e8; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); font-size: 18px; }
.rule-title { display: flex; align-items: center; gap: 22px; justify-content: center; }
.rule-title::before, .rule-title::after { content: ""; height: 1px; width: 64px; background: currentColor; opacity: .35; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--forest); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 45%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(16, 32, 25, .92) 0%, rgba(16, 32, 25, .78) 42%, rgba(16, 32, 25, .25) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 104px 0 96px; max-width: 700px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero p.lead { font-size: 19px; color: #e7eadf; max-width: 600px; }
.hero .eyebrow { color: #e3d3ad; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.page-hero { background: var(--forest); color: #fff; padding: 68px 0 60px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%;
  border: 1px solid rgba(227, 211, 173, .18); box-shadow: 0 0 0 60px rgba(227, 211, 173, .03), 0 0 0 120px rgba(227, 211, 173, .025);
}
.page-hero h1 { color: #fff; font-size: clamp(36px, 4.6vw, 56px); }
.page-hero p { color: #dfe4d8; font-size: 18px; max-width: 640px; margin: 0; }
.page-hero .eyebrow { color: #e3d3ad; }

/* ---------- Info strip ---------- */
.strip { background: var(--linen); border-bottom: 1px solid var(--line); }
.strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.strip h2 { font-size: 26px; margin: 0; letter-spacing: .04em; }
.strip p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

.skill { padding: 30px 26px; }
.skill .num { font: 600 13px var(--sans); letter-spacing: .18em; color: var(--sage); }
.skill h3 { margin: 18px 0 8px; }
.skill p { color: var(--muted); font-size: 15px; margin: 0; }

/* Class cards (overview) */
.class-card { display: flex; flex-direction: column; position: relative; }
.class-card .media { position: relative; aspect-ratio: 4 / 3; background: var(--linen); }
.class-card .media img { width: 100%; height: 100%; object-fit: cover; }
.class-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.class-card h3 { font-size: 23px; margin: 0; }
.class-card .meta { color: var(--muted); font-size: 14px; display: grid; gap: 2px; }
.class-card .card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.badge {
  display: inline-block; font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 999px; background: var(--forest); color: #fff;
}
.media .badge { position: absolute; left: 14px; top: 14px; }
.badge-soon { background: var(--bark); }
.badge-full { background: #6b6b6b; }
.badge-past { background: #8a8a82; }
.price { font: 600 22px var(--serif); color: var(--forest); }
.price small { font: 500 13px var(--sans); color: var(--muted); }

/* Class rows (classes page) */
.class-row { display: grid; grid-template-columns: 300px 1fr; margin-bottom: 26px; scroll-margin-top: 100px; }
.class-row .media { position: relative; }
.class-row .media img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.class-row .body { padding: 28px 32px; display: flex; flex-direction: column; }
.class-row h3 { font-size: 30px; }
.class-row .desc { color: #3c443a; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 14px 0; margin: 4px 0 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.facts strong { color: var(--ink); font-weight: 600; }
.row-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: auto; }
.row-foot .price { margin-right: auto; }
.dates { display: flex; flex-wrap: wrap; gap: 6px; }
.date-chip { border: 1px solid var(--pine); color: var(--pine); border-radius: 6px; padding: 4px 8px; font: 700 12px/1.1 var(--sans); text-align: center; }
.date-chip small { display: block; font-weight: 500; font-size: 10px; letter-spacing: .08em; }
.date-chip.passed { opacity: .45; border-color: var(--muted); color: var(--muted); }
.past-classes .class-row { opacity: .8; }
.past-classes .class-row .media img { filter: grayscale(.4); }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.product-grid.wide { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.product-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(23,43,34,.08), 0 14px 30px rgba(23,43,34,.12); color: inherit; }
.product-card .media { aspect-ratio: 1 / 1; background: var(--linen); overflow: hidden; }
.product-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .media img { transform: scale(1.04); }
.product-card .body { padding: 14px 14px 18px; text-align: center; }
.product-card h3 { font-size: 19px; margin: 0 0 4px; }
.product-card .price { font-size: 18px; color: var(--bark); }
.product-card .cat { font: 700 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sage); margin-bottom: 6px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.chip { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 8px 16px; font: 600 14px var(--sans); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--forest); color: #fff; border-color: var(--forest); }

/* Pre-order cards — large product art left (45%), copy right (55%) */
.preorder-card { display: grid; grid-template-columns: 45% 55%; }
.preorder-media { position: relative; background: #203c2c; min-height: 380px; }
.preorder-media picture, .preorder-media img { display: block; width: 100%; height: 100%; }
.preorder-media img { object-fit: cover; aspect-ratio: 4 / 3; }
.concept-tag { position: absolute; left: 12px; bottom: 12px; background: rgba(23, 43, 34, .82); color: #f1e8d2; font: 600 12px var(--sans); letter-spacing: .04em; padding: 5px 9px; border-radius: 6px; }
.preorder-art { height: 100%; min-height: 230px; display: grid; place-items: center; color: #e9dcbc; background: radial-gradient(circle at 30% 20%, #3c5f45 0, var(--forest) 70%); }
.preorder-art .label { font: 700 12px var(--sans); letter-spacing: .24em; text-transform: uppercase; }
.preorder-card .body { padding: 42px 42px 44px; display: flex; flex-direction: column; }
.preorder-card h3 { font-size: clamp(30px, 3vw, 40px); margin: 4px 0 10px; }
.preorder-card .tagline { font: italic 500 21px var(--serif); color: var(--bark); margin-bottom: 12px; }
.preorder-card .body p { color: #4f584d; font-size: 16.5px; }
.preorder-card .btn { align-self: flex-start; }
.highlights { list-style: none; padding: 0; margin: 4px 0 24px; display: grid; gap: 8px; font-size: 16px; }
.highlights li::before { content: "✓"; color: var(--pine); font-weight: 800; margin-right: 12px; }
.preorder-card .fine { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.preorder-stack { display: grid; gap: 28px; }

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.gallery-main { aspect-ratio: 1 / 1; background: var(--linen); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; margin-top: 12px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; aspect-ratio: 1 / 1; }
.thumbs button[aria-current="true"] { border-color: var(--pine); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info .price { font-size: 32px; color: var(--bark); margin: 4px 0 18px; display: block; }
.product-info .desc p { color: #3c443a; }
.buy-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 18px 0 26px; }
.buy-box .btn { width: 100%; }
.buy-box .fine { font-size: 13px; color: var(--muted); margin: 10px 0 0; text-align: center; }
.sold-out { background: #efe9dd; color: var(--muted); border-radius: var(--radius-sm); padding: 12px 14px; text-align: center; font-weight: 700; }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.breadcrumbs a { color: var(--muted); }

/* Teachers */
.teacher { display: grid; grid-template-columns: 200px 1fr; gap: 26px; padding: 18px; align-items: start; }
.teacher img { width: 200px; height: 240px; object-fit: cover; border-radius: 10px; }
.teacher h3 { font-size: 34px; margin: 6px 0 4px; }
.teacher .role { font: 700 11px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--bark); margin-bottom: 12px; }
.teacher p { color: #3c443a; font-size: 15.5px; }
.teacher.full { grid-template-columns: 280px 1fr; padding: 26px; }
.teacher.full img { width: 280px; height: 330px; }

/* ---------- Forms ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .field .label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.field .hint { font-weight: 400; color: var(--muted); }
.input, .field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .field select, .field textarea {
  width: 100%; font: 16px var(--sans); color: var(--ink); background: #fff;
  border: 1px solid #c9c2b3; border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(49, 83, 59, .18); }
.field input:user-invalid, .field select:user-invalid { border-color: var(--danger); }
.child-row { display: flex; gap: 8px; margin-bottom: 8px; }
.child-row input { flex: 1; }
.icon-btn { background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 14px; cursor: pointer; color: var(--muted); font: 600 14px var(--sans); }
.icon-btn:hover { border-color: var(--danger); color: var(--danger); }
.add-btn { background: none; border: 1px dashed var(--sage); color: var(--pine); border-radius: var(--radius-sm); padding: 10px 14px; font: 600 14px var(--sans); cursor: pointer; }
.add-btn:hover { background: #f1efe6; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--pine); flex-shrink: 0; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-status { font-size: 15px; }
.form-status.error { color: var(--danger); }
.notice { border-radius: var(--radius); padding: 18px 20px; background: #e8efe4; border: 1px solid #c4d3bd; color: #23402c; }
.notice.warn { background: #f7eddb; border-color: #e3cfa8; color: #5b4521; }
.success-panel { text-align: center; padding: 44px 30px; }
.success-panel .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--pine); color: #fff; display: grid; place-items: center; font-size: 30px; margin: 0 auto 18px; }
.selected-class { display: flex; gap: 14px; align-items: center; background: var(--linen); border-radius: var(--radius-sm); padding: 10px; }
.selected-class img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.selected-class .t { font-weight: 700; }
.selected-class .s { font-size: 14px; color: var(--muted); }
.side-panel h3 { font-size: 24px; }
.side-panel ul { padding-left: 18px; color: var(--muted); font-size: 15px; }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px; align-items: start; }

/* Prose (waiver/about) */
.prose { font-size: 18px; }
.prose p { color: #343b33; }
.prose h2 { margin-top: 1.2em; }

/* CTA band */
.cta-band { background: var(--forest-2); color: #fff; text-align: center; padding: 76px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d7ddd0; font-size: 18px; max-width: 620px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: #dfe3d8; padding: 60px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand .name { font: 600 28px var(--serif); letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.footer-brand .tag { font: 700 11px var(--sans); letter-spacing: .26em; text-transform: uppercase; color: #b9c2b0; margin-top: 6px; }
.footer-brand p { color: #b9c2b0; margin-top: 16px; max-width: 320px; }
.site-footer h4 { font: 700 12px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #e3d3ad; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #dfe3d8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #9fab98; font-size: 13px; }

/* Utilities */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.loading { color: var(--muted); text-align: center; padding: 40px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid.wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 18px 18px; gap: 0;
    box-shadow: 0 12px 20px rgba(0,0,0,.06);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 6px; border-bottom: 1px solid #efebe2; border-radius: 0; }
  .main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--pine); padding-left: 12px; }
  .main-nav a.nav-cta { margin: 14px 0 0; text-align: center; border-bottom: 0; }
  .teacher, .teacher.full { grid-template-columns: 1fr; }
  .teacher img, .teacher.full img { width: 100%; height: auto; max-width: 340px; aspect-ratio: 1 / 1; }
  .grid-2, .layout-2 { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .class-row { grid-template-columns: 220px 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .preorder-card { grid-template-columns: 1fr; }
  .preorder-media { min-height: 0; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .header-inner { min-height: 68px; }
  .brand img { height: 40px; max-width: 210px; }
  .section { padding: 60px 0; }
  .hero-content { padding: 72px 0 64px; }
  .hero p.lead { font-size: 17px; }
  .hero::after { background: linear-gradient(180deg, rgba(16,32,25,.78), rgba(16,32,25,.9)); }
  .hero-actions .btn { flex: 1 1 100%; }
  .strip-inner { flex-direction: column; align-items: flex-start; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .product-grid, .product-grid.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card h3 { font-size: 16px; }
  .class-row { grid-template-columns: 1fr; }
  .class-row .media img { aspect-ratio: 4 / 3; }
  .class-row .body { padding: 20px; }
  .class-row h3 { font-size: 26px; }
  .preorder-card .body { padding: 24px 22px 28px; }
  .preorder-card .btn { align-self: stretch; }
  .form-card { padding: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .rule-title::before, .rule-title::after { width: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Private class page */
.update { padding: 18px 0; border-top: 1px solid var(--line); }
.update:first-of-type { border-top: 0; padding-top: 6px; }
.update h3 { font-size: 24px; margin: 4px 0 8px; }
.update p { color: #3c443a; margin-bottom: .6em; }
.update-meta { font-size: 13px; color: var(--muted); }
.thread { display: grid; gap: 12px; margin: 6px 0 4px; }
.bubble { max-width: 85%; padding: 12px 16px; border-radius: 14px; font-size: 15.5px; }
.bubble p { margin: 0 0 .4em; } .bubble p:last-child { margin: 0; }
.bubble .who { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.bubble.me { justify-self: end; background: #e3ebdf; border-bottom-right-radius: 4px; }
.bubble.staff { justify-self: start; background: var(--linen); border-bottom-left-radius: 4px; }

/* Events */
.event-card { display: grid; grid-template-columns: 150px 1fr; }
.event-date { background: var(--forest); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px 12px; text-align: center; }
.event-date .m { font: 700 13px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: #e3d3ad; }
.event-date .d { font: 600 64px/1 var(--serif); margin: 4px 0; }
.event-date .w { font: 600 13px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #c8d1c1; }
.event-card .body { padding: 26px 30px; }
.event-card h3 { font-size: 30px; margin: 0 0 6px; }
.event-meta { font-weight: 600; color: var(--pine); margin-bottom: 10px; }
.event-role { font: italic 500 19px var(--serif); color: var(--bark); margin-bottom: 8px; }
.event-card .body > p { color: #3c443a; }
.events-list { display: grid; gap: 22px; }
@media (max-width: 680px) {
  .event-card { grid-template-columns: 1fr; }
  .event-date { flex-direction: row; gap: 12px; padding: 14px; }
  .event-date .d { font-size: 34px; margin: 0; }
  .event-card .body { padding: 20px; }
  .event-card h3 { font-size: 25px; }
}

/* Checkout */
.order-summary { position: sticky; top: 100px; }
.order-summary img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.order-summary .pad { padding: 22px 24px 24px; }
.order-summary h3 { font-size: 26px; margin-bottom: 14px; }
.order-summary .line { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.order-summary .line.total { font-weight: 700; font-size: 18px; border-top: 2px solid var(--ink); }
.card-field { min-height: 90px; }
@media (max-width: 960px) { .order-summary { position: static; order: -1; } }

/* =====================================================================
   v3 — homepage matched to the design reference
   ===================================================================== */

/* Warm, moody grading so our photos sit in the reference palette */
.warm { filter: sepia(.28) saturate(1.18) contrast(1.06) brightness(.92) hue-rotate(-6deg); }
.warm-soft { filter: sepia(.14) saturate(1.08) contrast(1.04) brightness(.97); }
.warm-dark { filter: sepia(.45) saturate(1.1) contrast(1.1) brightness(.55) hue-rotate(-10deg); }

/* Paper texture for alternating bands */
.paper {
  background-color: #efe8da;
  background-image:
    radial-gradient(rgba(136, 107, 77, .07) 1px, transparent 1px),
    radial-gradient(rgba(136, 107, 77, .05) 1px, transparent 1px);
  background-size: 22px 22px, 13px 13px;
  background-position: 0 0, 7px 9px;
}

/* Header */
.site-header { background: #fffcf6; }
.header-inner { min-height: 82px; gap: 20px; }
.brand-rule { width: 1px; height: 40px; background: var(--line); margin-right: auto; }
.main-nav a { font-size: 15.5px; font-weight: 600; color: var(--forest); }
.main-nav .nav-icon { display: inline-flex; align-items: center; padding: 8px; }
.main-nav a.nav-cta { text-transform: uppercase; letter-spacing: .1em; font-size: 13px; padding: 11px 16px; }

/* Buttons — uppercase, tracked, like the reference */
.btn { text-transform: uppercase; letter-spacing: .12em; font-size: 14px; padding: 14px 22px; border-radius: 6px; }
.btn-small { font-size: 12.5px; padding: 11px 16px; letter-spacing: .1em; }
.btn-forest { background: #2f5034; color: #fff; border: 1px solid #8fa486; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.btn-forest:hover { background: #26432c; color: #fff; }
.btn-cream { background: #efe2c6; color: var(--forest); border: 1px solid #d7c6a1; }
.btn-cream:hover { background: #f7ecd6; color: var(--forest); }
.arrow::after { content: "→"; font-size: 1.15em; letter-spacing: 0; margin-left: 2px; }
.text-link { letter-spacing: .12em; font-size: 12.5px; color: var(--forest); }

/* Section heading with rules either side */
.rule-heading {
  display: flex; align-items: center; justify-content: center; gap: 28px; text-align: center;
  font: 600 clamp(22px, 2.5vw, 30px)/1.2 var(--serif); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 34px;
}
.rule-heading::before, .rule-heading::after { content: ""; flex: 0 0 70px; height: 1.5px; background: currentColor; opacity: .55; }
.rule-heading.light { color: #f4ecdc; }
.home-section { padding: 64px 0; }

/* Hero */
.hero-v3 .hero-bg { background-position: center 62%; }
.hero-v3::after { background: linear-gradient(90deg, rgba(14, 24, 16, .9) 0%, rgba(14, 24, 16, .72) 38%, rgba(14, 24, 16, .2) 72%, rgba(14, 24, 16, .05) 100%), linear-gradient(0deg, rgba(14, 24, 16, .35), transparent 40%); }
.hero-v3 .hero-content { padding: 76px 0 82px; max-width: 640px; }
.hero-v3 h1 { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.04; font-weight: 600; margin-bottom: 22px; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero-v3 .lead { font-size: 18.5px; line-height: 1.55; color: #ece7da; max-width: 560px; }
.eyebrow-rule { display: inline-flex; align-items: center; gap: 14px; color: #e9dfc8 !important; letter-spacing: .3em; font-size: 12.5px; }
.eyebrow-rule::after { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .7; }
.hero-v3 .hero-actions { gap: 18px; margin-top: 34px; }

/* Find a class strip */
.finder { position: relative; background: #f1ebde; border-bottom: 1px solid #e0d7c5; overflow: hidden; }
.finder-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 26px; padding-bottom: 26px; position: relative; z-index: 1; }
.finder-title { display: flex; align-items: center; gap: 18px; color: var(--forest); padding-right: 28px; border-right: 1px solid #d5cab4; }
.finder-title h2 { font: 600 22px var(--serif); letter-spacing: .12em; text-transform: uppercase; margin: 0; }
.finder-title p { font-size: 14px; color: #4f584d; margin: 2px 0 0; }
.finder-form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.finder-form select { font: 14px var(--sans); color: var(--ink); background: #fffcf6; border: 1px solid #cfc5b0; border-radius: 6px; padding: 10px 34px 10px 12px; min-width: 170px; min-height: 44px; }
.select-icon { position: relative; display: flex; align-items: center; }
.select-icon svg { position: absolute; left: 11px; color: var(--muted); pointer-events: none; }
.select-icon select { padding-left: 34px; }
.treeline { position: absolute; bottom: -2px; width: 190px; height: 78px; color: #b9b29f; opacity: .55; z-index: 0; }
.treeline.left { left: -10px; }
.treeline.right { right: -10px; transform: scaleX(-1); }

/* Event band on home */
.home-event { padding: 44px 0 0; }

/* Skill cards (image + overlay text) */
.skill-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.skill-card { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 1.22 / 1; color: #fff; text-decoration: none; box-shadow: 0 6px 18px rgba(23, 43, 34, .18); }
.skill-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.skill-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 18, 12, 0) 25%, rgba(10, 18, 12, .55) 55%, rgba(10, 18, 12, .92) 100%); }
.skill-card:hover img { transform: scale(1.05); }
.skill-card .sc-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 22px 18px; z-index: 1; }
.skill-card svg { color: #fff; margin-bottom: 4px; }
.skill-card h3 { color: #fff; font-size: 27px; margin: 0 0 4px; }
.skill-card p { font-size: 14px; color: #e6e2d6; margin: 0 0 10px; line-height: 1.4; }
.sc-link { font: 700 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.sc-link::after { content: " →"; }
.skill-card:hover, .skill-card:focus-visible { color: #fff; }

/* Product tiles row */
.product-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.product-tile { display: block; background: #fbf6ec; border: 1px solid #dfd4c0; border-radius: 6px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 3px 10px rgba(23, 43, 34, .1); transition: transform .18s, box-shadow .18s; }
.product-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(23, 43, 34, .16); color: var(--ink); }
.pt-media { aspect-ratio: 1.8 / 1; overflow: hidden; background: var(--linen); }
.pt-media img { width: 100%; height: 100%; object-fit: cover; }
.pt-body { text-align: center; padding: 10px 10px 14px; }
.pt-body h3 { font: 700 17px var(--serif); margin: 0 0 2px; }
.pt-price { font-size: 15px; color: #3c443a; }

/* Pre-order duo on home (image on top) */
.preorder-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.preorder-duo .preorder-card { grid-template-columns: 1fr; }
.preorder-duo .preorder-media { min-height: 0; }
.preorder-duo .preorder-card .body { padding: 26px 28px 30px; }
.preorder-duo .preorder-card h3 { font-size: 30px; }
.preorder-duo .preorder-card p { margin-bottom: 14px; }
.preorder-duo .highlights { display: none; }

/* Teachers */
.teacher-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.teacher-v3 { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; }
.teacher-v3 img { width: 200px; height: 156px; object-fit: cover; border-radius: 6px; box-shadow: 0 6px 16px rgba(23, 43, 34, .2); }
.teacher-v3 h3 { font-size: 32px; margin: 0 0 4px; }
.teacher-v3 .role { font: 700 11.5px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #4f584d; margin-bottom: 10px; }
.teacher-v3 p { font-size: 15px; color: #3c443a; margin-bottom: 14px; }

/* Community band */
.community { position: relative; color: #f4ecdc; padding: 64px 0 60px; overflow: hidden; background: #1d2a20; }
.community-bg { position: absolute; inset: 0; background-size: cover; background-position: center 40%; }
.community::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20, 30, 22, .55), rgba(20, 30, 22, .82)); }
.community .container { position: relative; z-index: 2; }
.facts-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 8px 0 34px; text-align: center; }
.fact .big { font: italic 600 40px/1.1 var(--serif); color: #fff; margin-bottom: 8px; }
.fact p { color: #ddd6c6; font-size: 16px; max-width: 300px; margin: 0 auto; }

/* Footer, matched to reference */
.site-footer { background: #1a2a20; padding: 42px 0 22px; }
.footer-row { display: grid; grid-template-columns: 1.3fr auto auto; gap: 48px; align-items: center; }
.footer-brand .name { font: 600 34px/1 var(--serif); letter-spacing: .16em; text-transform: uppercase; color: #f1e8d4; }
.footer-brand .name span { font-size: .72em; }
.footer-brand .tag { font: 600 11px var(--sans); letter-spacing: .3em; text-transform: uppercase; color: #a9b3a1; margin-top: 12px; }
.footer-links { display: grid; grid-template-columns: auto auto; gap: 0 56px; padding: 0 48px; border-left: 1px solid rgba(255,255,255,.18); border-right: 1px solid rgba(255,255,255,.18); }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-contact { display: grid; gap: 10px; font-size: 14.5px; }
.footer-contact a, .footer-contact span { display: flex; align-items: center; gap: 12px; color: #e3e6dc; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 18px; }

@media (max-width: 1100px) {
  .finder-inner { flex-direction: column; align-items: stretch; }
  .finder-title { border-right: 0; padding-right: 0; }
  .skill-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-row { grid-template-columns: 1fr 1fr; }
  .footer-links { border: 0; padding: 0; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .brand-rule { display: none; }
  .brand { margin-right: auto; }
  .teacher-duo, .preorder-duo { grid-template-columns: 1fr; }
  .main-nav .nav-icon { padding: 14px 6px; }
}
@media (max-width: 680px) {
  .hero-v3 .hero-content { padding: 56px 0 60px; }
  .hero-v3::after { background: linear-gradient(180deg, rgba(14,24,16,.72), rgba(14,24,16,.88)); }
  .finder-form { flex-direction: column; align-items: stretch; }
  .finder-form select, .select-icon { width: 100%; }
  .treeline { width: 120px; height: 50px; }
  .skill-cards { grid-template-columns: 1fr; }
  .product-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .teacher-v3 { grid-template-columns: 120px 1fr; gap: 16px; }
  .teacher-v3 img { width: 120px; height: 140px; }
  .facts-row { grid-template-columns: 1fr; gap: 22px; }
  .rule-heading { gap: 14px; font-size: 21px; }
  .rule-heading::before, .rule-heading::after { flex-basis: 24px; }
  .footer-row { grid-template-columns: 1fr; gap: 26px; }
  .footer-links { gap: 0 40px; }
}
/* v3 tuning */
.warm-hero { filter: sepia(.22) saturate(1.25) contrast(1.08) brightness(1.12) hue-rotate(-6deg); }
.hero-v3 .hero-bg { background-position: center 88%; background-size: cover; left: 30%; }
.hero-v3::after { background: linear-gradient(90deg, rgba(14, 24, 16, .96) 0%, rgba(14, 24, 16, .9) 30%, rgba(14, 24, 16, .45) 52%, rgba(14, 24, 16, .05) 78%, rgba(14, 24, 16, 0) 100%); }
.hero-v3 .hero-content { padding: 64px 0 68px; }
.finder-form { flex-wrap: nowrap; }
.finder-form select { min-width: 150px; }
.finder-title { flex: 1 1 auto; max-width: 520px; }
@media (max-width: 680px) { .hero-v3 .hero-bg { left: 0; } }
.btn { white-space: nowrap; }
.community .rule-heading { font-size: clamp(20px, 2vw, 25px); }
@media (max-width: 680px) { .btn { white-space: normal; } }
.footer-logo img { height: 74px; width: auto; display: block; }
.footer-brand .tag { margin-top: 10px; }
@media (max-width: 680px) { .footer-logo img { height: 60px; } }
/* pre-order: image fallback, price, feature icons */
.preorder-media > .preorder-art { display: none; }
.preorder-media.no-img > picture, .preorder-media.no-img > .concept-tag { display: none; }
.preorder-media.no-img > .preorder-art { display: grid; position: absolute; inset: 0; text-align: center; padding: 30px; }
.preorder-media.no-img { min-height: 320px; }
.pa-title { font: 600 34px/1.1 var(--serif); color: #f1e8d2; margin-bottom: 12px; }
.preorder-price { font: 600 28px var(--serif); color: var(--forest); margin: -6px 0 16px; }
.pf-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.pf { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--forest); padding: 0 8px; }
.pf + .pf { border-left: 1px solid var(--line); }
.pf span { font: 700 12px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.preorder-duo { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.preorder-duo .pf-row { display: none; }
@media (max-width: 1100px) { .preorder-duo { grid-template-columns: 1fr 1fr; } }
.order-lines .line { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.order-lines .line.total { font-weight: 700; font-size: 17px; border-top: 2px solid var(--ink); margin-bottom: 14px; }

/* =====================================================================
   V3 polish — wilderness accents, framed product art, refined details
   ===================================================================== */
:root { --focus: #b48b45; --radius: 18px; }
:focus-visible { outline-color: var(--focus); }
::selection { background: #d9e4d3; color: var(--forest); }
body { text-rendering: optimizeLegibility; }

/* Dark page heroes: topographic corner replaces the plain rings */
.page-hero::before { display: none; }
.page-hero .topo { position: absolute; right: -6%; top: -30%; width: min(720px, 70%); opacity: .3; pointer-events: none; user-select: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero { padding: 76px 0 70px; }

/* Framed product art (contain, never cropped) */
.preorder-card { border-radius: var(--radius); }
.preorder-media { background: #ebe8df; display: flex; align-items: center; justify-content: center; }
.preorder-media picture { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.preorder-media img { object-fit: contain; width: 100%; height: 100%; aspect-ratio: auto; }
.preorder-card .body { align-self: center; padding: clamp(28px, 4vw, 52px); }
.preorder-card .tagline { font-size: 23px; }
.preorder-price { display: flex; align-items: baseline; gap: 12px; font: 600 32px var(--serif); color: var(--forest); margin: 0 0 18px; }
.preorder-price small { font: 600 13px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--bark); }
.concept-tag { background: rgba(255, 252, 246, .9); color: var(--bark); border: 1px solid var(--line); }
.preorder-duo .preorder-media { aspect-ratio: 4 / 3; }
.preorder-duo .preorder-card .body { align-self: stretch; }
.preorder-duo .preorder-price { font-size: 26px; margin-bottom: 14px; }

/* Ornaments */
.ornament { display: block; margin: -18px auto 30px; width: min(420px, 70%); height: auto; opacity: .95; }
.botanical { position: absolute; width: clamp(150px, 18vw, 250px); height: auto; mix-blend-mode: multiply; pointer-events: none; user-select: none; z-index: 0; opacity: .95; }
.botanical.tr { top: 6px; right: 6px; }
.botanical.tl { top: 6px; left: 6px; transform: scaleX(-1); }
.has-ornament { position: relative; overflow: hidden; }
.has-ornament > .container { position: relative; z-index: 1; }
.compass { display: block; width: 84px; height: 84px; margin: 0 auto 18px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }

/* Pine ridge transition into the footer */
.pine-divider { background: var(--parchment); line-height: 0; overflow: hidden; }
.pine-divider img { display: block; width: 100%; max-width: 1800px; height: clamp(70px, 9vw, 140px); object-fit: cover; object-position: center bottom; margin: 0 auto; mix-blend-mode: multiply; }
.paper + .pine-divider, .section-alt + .pine-divider { background: #efe8da; }

/* Reservation form: selected-item summary */
.reserve-summary { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; background: var(--linen); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px 10px 10px; margin: 6px 0 22px; }
.reserve-summary img { width: 96px; height: 72px; object-fit: contain; background: #ebe8df; border-radius: 8px; }
.reserve-summary .t { font: 600 20px var(--serif); line-height: 1.2; }
.reserve-summary .s { font-size: 13px; color: var(--muted); }
.reserve-summary .p { font: 600 22px var(--serif); color: var(--forest); white-space: nowrap; }
.form-card { border-radius: var(--radius); }

/* Cards & tiles: softer elevation */
.card { border-radius: var(--radius); box-shadow: 0 1px 2px rgba(23,43,34,.05), 0 10px 26px rgba(23,43,34,.06); }
.product-tile, .skill-card { border-radius: 12px; }

@media (max-width: 760px) {
  .page-hero .topo { width: 90%; right: -30%; top: -12%; opacity: .22; }
  .reserve-summary { grid-template-columns: 72px 1fr; }
  .reserve-summary img { width: 72px; height: 56px; }
  .reserve-summary .p { grid-column: 2; }
  .botanical { width: 120px; opacity: .6; }
}

/* pine ridge cropped to the treeline */
.pine-divider { padding-top: 24px; }
.pine-divider img { height: auto; max-height: 120px; object-fit: contain; object-position: center bottom; }
@media (max-width: 680px) { .pine-divider img { max-height: 64px; } }
@media (max-width: 680px) { .eyebrow-rule { letter-spacing: .2em; font-size: 11.5px; } .eyebrow-rule::after { display: none; } }

/* checkout & pre-order form refinements */
.card-field { background: #fff; border-radius: var(--radius-sm); }
#pay-form h2, #pay-fields h3 { margin-bottom: 14px; }
#pay-form .form-actions .btn, #preorder-form .form-actions .btn { min-width: 220px; }
#pay-form .form-actions .btn { width: 100%; justify-content: center; font-size: 15px; padding: 16px 22px; }
.field input::placeholder { color: #9a9a90; }

/* Fill frames edge to edge (no empty bands) */
.preorder-media { display: block; position: relative; }
.preorder-media picture { position: absolute; inset: 0; display: block; }
.preorder-media img { width: 100%; height: 100%; object-fit: cover; }
.preorder-duo .preorder-media { aspect-ratio: 4 / 3; }
@media (max-width: 760px) { .preorder-media { aspect-ratio: 1 / 1; } }
.gallery-main { aspect-ratio: 4 / 5; background: var(--linen); }
.gallery-main img { object-fit: cover; background: none; }
.product-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* Seamless pine ridge: transparent, overlaps the section above, flush on the footer, full width */
.pine-divider, .paper + .pine-divider, .section-alt + .pine-divider { background: transparent; }
.pine-divider { position: relative; z-index: 2; margin-top: -96px; padding: 0; pointer-events: none; line-height: 0; }
.pine-divider img { width: 100%; max-width: none; height: 96px; max-height: none; object-fit: cover; object-position: center bottom; mix-blend-mode: normal; }
.site-footer { margin-top: -1px; }
@media (max-width: 680px) { .pine-divider { margin-top: -56px; } .pine-divider img { height: 56px; max-height: none; } }

/* Carving guide (digital download) */
.guide-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 52px; align-items: start; }
.guide-cover img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 24px 50px rgba(23,43,34,.28); transform: rotate(-1.2deg); }
.guide-info .price-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.guide-info .price { font-size: 34px; color: var(--forest); }
.guide-previews { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 900px; margin: 0 auto; }
.guide-previews img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 14px 34px rgba(23,43,34,.18); background: #fff; }
.guide-feature { background: var(--forest); color: #eef0e8; padding: 56px 0; position: relative; overflow: hidden; }
.guide-feature-inner { display: grid; grid-template-columns: 220px 1fr; gap: 44px; align-items: center; }
.guide-feature img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.45); transform: rotate(-2deg); }
.guide-feature h2 { color: #fff; font-size: clamp(30px, 3.4vw, 42px); }
.guide-feature p { color: #d7ddd0; font-size: 18px; max-width: 560px; }
.download-row { display: grid; grid-template-columns: 170px 1fr; gap: 28px; align-items: start; }
.dl-cover { width: 100%; border-radius: 6px; box-shadow: 0 12px 28px rgba(23,43,34,.25); }
@media (max-width: 860px) {
  .guide-grid { grid-template-columns: 1fr; gap: 30px; }
  .guide-cover { max-width: 360px; margin: 0 auto; }
  .guide-feature-inner { grid-template-columns: 130px 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .guide-previews { grid-template-columns: 1fr; }
  .guide-feature-inner { grid-template-columns: 1fr; text-align: center; }
  .guide-feature img { max-width: 180px; margin: 0 auto; }
  .guide-feature p { margin-left: auto; margin-right: auto; }
  .download-row { grid-template-columns: 1fr; }
  .dl-cover { max-width: 160px; }
}

/* Pine ridge v3: never cropped. The strip keeps the artwork's proportions (1760×224);
   on very wide screens it repeats sideways instead of stretching or cutting off tree tops. */
:root { --ridge-h: clamp(64px, 12.7vw, 150px); }
.pine-divider {
  position: relative; z-index: 2; pointer-events: none;
  height: var(--ridge-h); margin-top: calc(-1 * var(--ridge-h)); padding: 0;
  background: url("decor/pine-ridge.webp") center bottom / auto 100% repeat-x;
}
.pine-divider img { display: none; }
/* room for the trees so they never overlap content in the last section */
main > section:last-of-type { padding-bottom: calc(var(--ridge-h) + 48px); }
@media (max-width: 680px) { .pine-divider { height: var(--ridge-h); margin-top: calc(-1 * var(--ridge-h)); } }
.pine-divider { margin-bottom: -4px; }
/* fill under the wavy ground line so it flows straight into the footer */
.pine-divider {
  margin-bottom: -2px;
  background:
    url("decor/pine-ridge.webp") center bottom / auto 100% repeat-x,
    linear-gradient(to top, #1a2a20 0, #1a2a20 9%, transparent 9%);
}
/* tiny campfire gathering in the clearing at the center of the treeline */
.pine-divider::after {
  content: ""; position: absolute; left: 50%; bottom: calc(var(--ridge-h) * .085);
  width: calc(var(--ridge-h) * .62); aspect-ratio: 160 / 52; transform: translateX(-50%);
  background: url("decor/campfire-scene.svg") center bottom / contain no-repeat;
}

/* Header logo: emblem standing on the header's bottom edge + larger wordmark */
.header-inner { min-height: 88px; }
.brand { align-self: stretch; display: flex; align-items: center; gap: 12px; }
.brand img { max-width: none; }
.brand .emblem { align-self: flex-end; height: 82px; width: auto; margin-bottom: -1px; position: relative; z-index: 1; }
.brand .wordmark { height: 34px; width: auto; }
@media (max-width: 960px) { .brand .emblem { height: 70px; } .brand .wordmark { height: 28px; } }
@media (max-width: 680px) { .header-inner { min-height: 70px; } .brand .emblem { height: 62px; } .brand .wordmark { height: 23px; } .brand { gap: 9px; } }

/* Homepage hero: smooth fade from forest green into the photo (no hard edge) */
.hero-v3 .hero-bg {
  left: 22%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 18%, #000 52%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 18%, #000 52%);
}
.hero-v3::after { background: linear-gradient(90deg, rgba(14,24,16,.92) 0%, rgba(14,24,16,.78) 34%, rgba(14,24,16,.38) 58%, rgba(14,24,16,.08) 85%, rgba(14,24,16,0) 100%); }
.hero-v3 { background: #10201a; }
@media (max-width: 680px) { .hero-v3 .hero-bg { left: 0; -webkit-mask-image: none; mask-image: none; } }
.class-row .media { display: block; overflow: hidden; }
.class-row .media img { transition: transform .4s; }
.class-row .media:hover img, .class-card .media:hover img { transform: scale(1.04); }
.class-card .media { overflow: hidden; display: block; }
.class-card .media img { transition: transform .4s; }
/* class extras: included + sample day */
.includes { font-size: 15px; color: #3c443a; margin: -4px 0 12px; }
.includes strong { color: var(--forest); }
.itinerary { background: var(--parchment); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; }
.itinerary summary { cursor: pointer; font: 600 19px var(--serif); color: var(--forest); }
.itinerary ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.itinerary li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; font-size: 15px; }
.itinerary .t { font-weight: 700; color: var(--bark); font-variant-numeric: tabular-nums; }

/* Campsite v2 (tent + friends) and a faint skyline behind the treeline */
.pine-divider {
  background:
    url("decor/pine-ridge.webp") center bottom / auto 100% repeat-x,
    url("decor/skyline-faint.svg") 63% bottom / auto 96% no-repeat,
    linear-gradient(to top, #1a2a20 0, #1a2a20 9%, transparent 9%);
}
.pine-divider::after { width: calc(var(--ridge-h) * .82); aspect-ratio: 200 / 56; bottom: calc(var(--ridge-h) * .08); }

/* a little breathing room above the header emblem */
.brand .emblem { height: 74px; }
@media (max-width: 960px) { .brand .emblem { height: 64px; } }
@media (max-width: 680px) { .brand .emblem { height: 56px; } }

/* gentle river flowing across the top of the footer, in front of the treeline */
.site-footer { position: relative; padding-top: 74px; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 34px;
  background: url("decor/river.svg") 0 0 / 480px 34px repeat-x;
  opacity: .9; pointer-events: none;
}
@media (max-width: 680px) { .site-footer { padding-top: 58px; } .site-footer::before { top: 4px; height: 24px; background-size: 340px 24px; } }
/* header emblem: centered with space above and below (no longer touching the bottom edge) */
.brand .emblem { align-self: center; margin-bottom: 0; height: 66px; }
@media (max-width: 960px) { .brand .emblem { height: 58px; } }
@media (max-width: 680px) { .brand .emblem { height: 50px; } }
/* subtle stream with a small waterfall (single illustration, not tiled) */
.site-footer::before { top: -2px; height: 64px; background: url("decor/river.svg") center top / cover no-repeat; opacity: .85; }
@media (max-width: 680px) { .site-footer::before { top: -2px; height: 40px; background-size: cover; } }

/* ---- responsive fixes (must stay last) ---- */
@media (max-width: 1100px) { .preorder-duo { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .preorder-duo { grid-template-columns: 1fr; gap: 20px; }
  .preorder-duo .preorder-media { aspect-ratio: 4 / 3; }
  .preorder-card .body { padding: 22px 20px 24px; }
  .preorder-card h3 { font-size: 28px; }
  .preorder-card .btn, .preorder-duo .preorder-card .btn { align-self: stretch; justify-content: center; }
  .pf-row { margin-top: 20px; }
  .pf span { font-size: 10.5px; letter-spacing: .12em; }
}
@media (max-width: 680px) {
  .product-row .product-tile:nth-child(n+5) { display: none; }
  .community .rule-heading { font-size: 19px; letter-spacing: .08em; }
  .community .rule-heading::before, .community .rule-heading::after { display: none; }
  .rule-heading { letter-spacing: .08em; }
  .guide-feature .btn, .cta-band .btn, .community .btn { width: 100%; justify-content: center; }
  .event-card .btn { width: 100%; justify-content: center; }
}
@media (max-width: 960px) { .product-detail { grid-template-columns: 1fr; gap: 28px; } .gallery-main { aspect-ratio: 1 / 1; } }

/* ===== Footer scene (inline SVG): skyline → treeline → campsite → river → wolf ===== */
:root { --scene-h: clamp(120px, 15vw, 240px); }
.footer-scene { position: relative; z-index: 2; height: var(--scene-h); margin-top: calc(-.8 * var(--scene-h)); line-height: 0; pointer-events: none; }
.footer-scene svg { display: block; width: 100%; height: 100%; }
main > section:last-of-type { padding-bottom: calc(var(--scene-h) * .8 + 44px); }
.site-footer { padding-top: 36px; margin-top: 0; }
.site-footer::before { content: none; display: none; }
