/* scvrescue.org — Santa Clarita Valley Search & Rescue
   Colors shared with the Team Portal: forest green #0b3a22, signal gold #f6c026, alert red #d13b3b. */
:root {
  --forest: #0b3a22; --ridge: #145c37; --night: #0a2416; --ink: #16201a; --slate: #4c5650; --slate-2: #33403a;
  --gold: #f6c026; --gold-ink: #1d1a08; --gold-edge: #c79a12; --red: #d13b3b;
  --paper: #f2f1ec; --white: #ffffff; --line: #d9dcd3; --field: #c9cec4; --mint: #e3efe7;
  --on-dark: #d3dbd5; --on-dark-2: #c2d3c8; --on-dark-3: #9fb7a8;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 20px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--ridge); }
a:hover { color: var(--forest); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 18px; } }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--gold-ink); padding: 10px 14px; border-radius: 6px; font-weight: 700; }
.skip:focus { left: 8px; }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.kicker { font: 500 13px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ridge); }
.on-dark .kicker, .kicker.gold { color: var(--gold); }
.display { font: 700 clamp(52px, 7vw, 96px)/.92 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.display-xl { font: 700 clamp(56px, 8vw, 112px)/.9 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.h2 { font: 700 clamp(40px, 4.6vw, 60px)/.98 var(--display); text-transform: uppercase; }
.h2-sm { font: 700 clamp(36px, 4vw, 48px)/1 var(--display); text-transform: uppercase; }
.h3 { font: 700 26px/1.05 var(--display); text-transform: uppercase; }
.lede { font-size: 19px; line-height: 1.6; max-width: 620px; }
.body-lg { font-size: 17px; line-height: 1.65; color: var(--slate); }
.on-dark .body-lg { color: var(--on-dark); }
.muted { color: var(--slate); }
.gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 10px; border: 0; font: 700 17px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: #ffcd3a; color: var(--gold-ink); }
.btn-forest { background: var(--forest); color: #fff; }
.btn-forest:hover { background: var(--ridge); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid #c2d3c8; }
.btn-ghost:hover { color: #fff; border-color: #fff; }
.btn-outline { background: transparent; color: var(--gold-ink); border: 2px solid var(--gold-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow { font-weight: 700; font-size: 16px; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* ---------- Alert bar + header ---------- */
.alertbar { background: var(--red); color: #fff; font-size: 14px; font-weight: 600; padding: 9px 18px; text-align: center; }
.site-head { position: relative; z-index: 20; background: var(--forest); border-bottom: 3px solid var(--gold); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.patch { width: 96px; height: auto; display: block; margin: -4px 0 -40px; position: relative; z-index: 21; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.b1 { font: 700 24px/1 var(--display); letter-spacing: .04em; color: #fff; text-transform: uppercase; }
.b2 { font: 600 15px/1.3 var(--display); letter-spacing: .22em; color: var(--gold); text-transform: uppercase; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
.site-nav a:not(.btn) { color: #e8ece6; text-decoration: none; font: 600 15px/1 var(--body); padding: 12px 4px; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"]:not(.btn) { color: var(--gold); }
.nav-donate { min-height: 44px; padding: 0 20px; font-size: 15px; border-radius: 8px; }
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid #4f7a62; border-radius: 8px; background: transparent; color: #fff; font: 600 15px var(--body); cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
@media (max-width: 1020px) {
  .patch { width: 72px; margin: -2px 0 -26px; }
  .b1 { font-size: 20px; } .b2 { font-size: 13px; }
  .menu-btn { display: inline-flex; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 0 6px; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-top: 1px solid #1f4a33; font-size: 17px; }
  .nav-donate { margin-top: 12px; }
  .menu-btn[aria-expanded="true"] .bars { background: transparent; }
  .menu-btn[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
}
@media (max-width: 420px) { .brand-text { display: none; } }

/* ---------- Sections ---------- */
.sec { padding: 104px 0; }
.sec-sm { padding: 80px 0; }
.sec-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-forest { background: var(--forest); color: #fff; }
.sec-ink { background: var(--ink); color: #fff; }
.sec-gold { background: var(--gold); color: var(--gold-ink); }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split-top { align-items: flex-start; }
.head-split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
@media (max-width: 720px) { .sec { padding: 72px 0; } .sec-sm { padding: 56px 0; } .split { gap: 36px; } }

/* Photo frames */
.frame { position: relative; overflow: hidden; border-radius: 4px; background: #cfd6cb; }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.r-43 { aspect-ratio: 4/3; } .r-32 { aspect-ratio: 3/2; } .r-45 { aspect-ratio: 4/5; } .r-1 { aspect-ratio: 1; } .r-169 { aspect-ratio: 16/9; }

/* ---------- Heroes ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); color: #fff; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,22,13,.93) 0%, rgba(6,22,13,.72) 55%, rgba(6,22,13,.32) 100%); }
.hero-shade-up { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,22,13,.94) 0%, rgba(6,22,13,.6) 45%, rgba(6,22,13,.15) 100%); }
.hero-inner { position: relative; padding-top: 128px; padding-bottom: 96px; }
.hero .lede { margin-top: 28px; color: #e1e8e3; }
.hero .btn-row { margin-top: 34px; }
.topo { position: absolute; inset: -4%; width: 108%; height: 108%; opacity: .2; pointer-events: none; }
@media (max-width: 720px) { .hero-inner { padding-top: 96px; padding-bottom: 64px; } }

/* Home hero slideshow */
.home-hero { min-height: min(820px, 92vh); display: flex; align-items: flex-end; }
.slides { position: absolute; inset: 0; overflow: hidden; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 1.6s ease; }
.slide.on { opacity: 1; animation: kbs 9s ease-out forwards; }
.slides.paused .slide.on { animation-play-state: paused; }
.home-hero .hero-inner { width: 100%; padding-top: 200px; padding-bottom: 64px; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; margin-top: 28px; }
.hero-foot > :first-child { flex: 1 1 520px; min-width: 0; }
.hero-foot .lede { margin-top: 0; }
.slide-info { display: flex; align-items: center; gap: 16px; }
.loc { text-align: right; min-width: 0; }
.loc-coords { display: flex; align-items: center; justify-content: flex-end; gap: 8px; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; color: var(--gold); min-height: 17px; }
.loc-coords:empty { display: none; }
.loc-place { margin-top: 4px; font: 600 14px/1.3 var(--body); color: #e1e8e3; }
.loc.swap .loc-coords, .loc.swap .loc-place { animation: locin .6s var(--ease); }
.dots { display: flex; justify-content: flex-end; gap: 2px; margin-top: 8px; }
.dots button { width: 28px; height: 24px; border: 0; background: transparent; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.dots span { display: block; height: 4px; width: 8px; border-radius: 2px; background: rgba(255,255,255,.5); transition: all .3s; }
.dots button[aria-current="true"] span { width: 22px; background: var(--gold); }
.round-btn { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid #c2d3c8; background: rgba(10,36,22,.6); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.round-btn .i-play { display: none; }
.round-btn[aria-pressed="true"] .i-play { display: block; }
.round-btn[aria-pressed="true"] .i-pause { display: none; }
@media (max-width: 720px) { .home-hero { min-height: 640px; } .home-hero .hero-inner { padding-top: 140px; } .slide-info { width: 100%; justify-content: space-between; } .loc { text-align: left; } .loc-coords, .dots { justify-content: flex-start; } }

/* ---------- Stats band ---------- */
.stats { background: var(--gold); color: var(--gold-ink); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stat { padding: 30px 20px; border-right: 1px solid var(--gold-edge); }
.stat:first-child { padding-left: 0; } .stat:last-child { border-right: 0; }
.stat-n { font: 700 48px/1 var(--display); }
.stat-l { margin-top: 6px; font-size: 15px; font-weight: 600; }
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat, .stat:first-child { padding: 20px 12px 20px 0; border-right: 0; border-bottom: 1px solid var(--gold-edge); }
  .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--gold-edge); }
  .stat:last-child { grid-column: 1 / -1; border-bottom: 0; padding-left: 0; border-left: 0; }
  .stat-n { font-size: 40px; }
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.g-260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g-220 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.g-300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 28px; transition: border-color .25s, transform .25s var(--ease); }
.card:hover { border-color: var(--ridge); }
.card .ic { width: 34px; height: 34px; color: var(--ridge); }
.card h3 { margin: 18px 0 8px; }
.card p { color: var(--slate); }
.rule-top { border-top: 3px solid var(--gold); padding-top: 18px; }
.rule-top p { margin-top: 8px; color: var(--slate); }
.on-dark .rule-top p { color: var(--on-dark-2); }
.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mosaic .frame:nth-child(2) { margin-top: 40px; } .mosaic .frame:nth-child(3) { margin-top: -40px; }

/* Mission log */
.log { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.log li { display: grid; grid-template-columns: minmax(110px, 150px) 1fr auto; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.log-date { font: 500 14px/1.4 var(--mono); color: var(--slate); }
.log-type { display: block; font: 700 22px/1.1 var(--display); text-transform: uppercase; }
.pill { font: 600 12px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; background: var(--mint); color: var(--forest); padding: 7px 10px; border-radius: 999px; white-space: nowrap; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--red); margin-right: 8px; }

/* Events */
.ev-list { display: flex; flex-direction: column; gap: 18px; }
.ev { display: flex; flex-wrap: wrap; background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.ev:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(10,36,22,.14); }
.ev-date { flex: 0 0 140px; background: var(--forest); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 12px; text-align: center; }
.ev-date .m { font: 600 15px/1 var(--mono); color: var(--gold); }
.ev-date .d { font: 700 60px/1 var(--display); }
.ev-body { flex: 1 1 360px; min-width: 0; padding: 26px 30px; }
.ev-type { font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ridge); }
.ev-body h3 { margin-top: 10px; font: 700 30px/1.05 var(--display); text-transform: uppercase; }
.ev-body p { margin-top: 10px; color: var(--slate); white-space: pre-line; }
.ev-meta { margin-top: 10px; font: 500 14px/1.5 var(--mono); color: var(--slate-2); }
.ev-photo { flex: 0 0 260px; min-height: 180px; position: relative; }
.ev-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-feature { background: var(--ink); color: #fff; border: 0; }
.ev-feature .ev-photo { flex: 1 1 420px; min-height: 320px; }
.ev-feature .ev-body { flex: 1 1 420px; padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; }
.ev-feature h3 { font-size: clamp(40px, 4vw, 56px); line-height: .95; margin-top: 16px; }
.ev-feature p { color: var(--on-dark); font-size: 17px; }
.ev-feature .ev-meta { color: var(--gold); }
.tag { display: inline-block; font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; background: var(--gold); color: var(--gold-ink); padding: 6px 10px; border-radius: 999px; }
.mini-ev { display: flex; gap: 20px; border: 1px solid var(--line); border-radius: 6px; padding: 24px; background: var(--white); }
.mini-ev .md { flex: none; width: 76px; text-align: center; border-right: 1px solid var(--line); padding-right: 18px; }
.mini-ev .md .m { font: 600 14px/1 var(--mono); color: var(--ridge); }
.mini-ev .md .d { font: 700 44px/1.05 var(--display); }
.mini-ev h3 { font: 700 24px/1.1 var(--display); text-transform: uppercase; }
.mini-ev p { margin-top: 8px; font-size: 15px; color: var(--slate); }
.empty-note { padding: 28px; border: 1px dashed var(--field); border-radius: 8px; color: var(--slate); background: var(--white); }
@media (max-width: 720px) { .ev-date { flex-basis: 100%; flex-direction: row; gap: 12px; padding: 14px; } .ev-date .d { font-size: 36px; } .ev-photo { flex-basis: 100%; } .ev-body { padding: 22px; } .ev-feature .ev-body { padding: 26px 22px; } }

/* Numbered steps / timelines */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px 20px; }
.steps li { border-top: 2px solid var(--gold); padding-top: 18px; }
.steps .n { font: 500 14px/1 var(--mono); color: var(--gold); }
.steps .t { margin-top: 10px; font: 700 24px/1.05 var(--display); text-transform: uppercase; }
.steps p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--on-dark-2); }
.timeline { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 3px solid var(--forest); }
.timeline li { position: relative; padding: 26px 24px 8px 0; }
.timeline li::before { content: ""; position: absolute; top: -9px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--gold); border: 3px solid var(--forest); }
.timeline .y { font: 700 44px/1 var(--display); color: var(--forest); }
.timeline p { margin-top: 10px; color: var(--slate); }

/* ---------- Forms ---------- */
.form { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.form .full { grid-column: 1 / -1; }
.lbl { display: block; margin-bottom: 6px; font: 600 14px/1.3 var(--body); color: var(--slate-2); }
.fld { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--field); border-radius: 8px; background: #fff; font: 400 16px/1.4 var(--body); color: var(--ink); }
textarea.fld { min-height: 120px; resize: vertical; }
.fld:focus { outline: 2px solid var(--ridge); outline-offset: 1px; border-color: var(--ridge); }
.choice { display: flex; flex-wrap: wrap; gap: 12px; }
.choice label { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border: 1px solid var(--field); border-radius: 8px; cursor: pointer; }
.choice input { accent-color: var(--forest); width: 18px; height: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 16px 18px; border-radius: 8px; margin-bottom: 20px; font-weight: 600; }
.notice-ok { background: var(--mint); color: var(--forest); border: 1px solid #b9d6c3; }
.notice-err { background: #fbe6e6; color: #8f1f1f; border: 1px solid #efbcbc; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
@media (max-width: 720px) { .form { padding: 22px; } }

/* ---------- Footer ---------- */
.site-foot { background: var(--night); color: var(--on-dark-2); padding: 64px 0 32px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.foot-about img { width: 120px; height: auto; display: block; margin-bottom: 18px; }
.foot-name { font: 700 26px/1 var(--display); text-transform: uppercase; color: #fff; }
.foot-about p { margin-top: 14px; max-width: 420px; line-height: 1.6; }
.foot-about .mono { font-size: 13px; color: var(--on-dark-3); }
.site-foot nav { display: flex; flex-direction: column; gap: 12px; }
.site-foot h2 { font: 600 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.site-foot nav a { color: #e8ece6; text-decoration: none; }
.site-foot nav a:hover { color: var(--gold); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid #1f4a33; font-size: 13px; color: var(--on-dark-3); }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }

/* ---------- Trail safety: Ten Essentials ---------- */
.ess-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-top: 40px; }
.ess { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 20px; border-radius: 8px; cursor: pointer; background: var(--paper); border: 1.5px solid var(--line); transition: background .25s, border-color .25s, transform .25s var(--ease); }
.ess:hover { transform: translateY(-2px); }
.ess:has(input:checked) { background: var(--mint); border-color: var(--ridge); }
.ess input { position: absolute; top: 16px; right: 16px; width: 22px; height: 22px; margin: 0; accent-color: var(--forest); }
.ess-ic { display: flex; width: 52px; height: 52px; border-radius: 50%; align-items: center; justify-content: center; background: var(--forest); color: var(--gold); margin-bottom: 8px; }
.ess-ic svg { width: 30px; height: 30px; }
.ess-n { font: 500 12px/1 var(--mono); color: var(--slate); letter-spacing: .08em; }
.ess-t { font: 700 24px/1.05 var(--display); text-transform: uppercase; }
.ess-d { font-size: 14px; line-height: 1.5; color: var(--slate); }
.progress { height: 8px; background: #e3e6df; border-radius: 999px; overflow: hidden; margin-top: 10px; }
.progress > div { height: 100%; width: 0; background: var(--gold); transition: width .3s; }
.big-steps { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.big-steps li { display: flex; gap: 18px; font-size: 17px; line-height: 1.6; color: var(--on-dark); }
.big-steps .n { flex: none; font: 700 40px/1 var(--display); color: var(--gold); }
.big-steps strong { color: #fff; }

/* ---------- Donate ---------- */
.give { background: #fff; color: var(--ink); border-radius: 10px; padding: 34px; border-top: 6px solid var(--gold); }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 22px; background: #eceee9; padding: 5px; border-radius: 10px; }
.seg button { min-height: 44px; border: 0; border-radius: 7px; font: 600 15px var(--body); cursor: pointer; background: transparent; color: var(--slate); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--forest); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.amts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.amts button { min-height: 54px; border-radius: 8px; font: 700 18px var(--body); cursor: pointer; background: #fff; color: var(--ink); border: 1px solid var(--field); }
.amts button[aria-pressed="true"] { background: var(--forest); color: #fff; border: 2px solid var(--forest); }
.money { display: flex; align-items: center; margin-top: 6px; border: 1px solid var(--field); border-radius: 8px; padding: 0 14px; min-height: 50px; }
.money input { flex: 1; border: 0; outline: none; min-height: 48px; padding: 0 8px; font: 400 17px var(--body); background: transparent; }
.checks { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; color: #e8ece6; }
.checks li { display: flex; gap: 12px; align-items: center; }
.where { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.where li { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 12px; }
.where strong { flex: 0 0 190px; font: 700 22px/1.1 var(--display); text-transform: uppercase; }
.where span { color: var(--slate); }

/* ---------- Gallery ---------- */
.g-albums { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.g-albums .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 14px; padding-bottom: 14px; scrollbar-width: none; }
.g-albums a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--field); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.g-albums a span { font-weight: 500; opacity: .7; }
.g-albums a:hover { border-color: var(--forest); }
.g-albums a[aria-current] { background: var(--forest); border-color: var(--forest); color: #fff; }
.g-grid { --row: 240px; display: flex; flex-wrap: wrap; gap: 10px; }
.g-tile { position: relative; display: block; overflow: hidden; border-radius: 6px; cursor: zoom-in; flex: var(--r) 1 calc(var(--r) * var(--row)); aspect-ratio: var(--r); background: var(--c, #cfd6cb); transition: transform .35s var(--ease), box-shadow .35s; }
.g-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.g-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(10,36,22,.22); }
.g-tile:hover img { transform: scale(1.04); }
.g-fill { flex: 10 1 0; height: 0; }
@media (max-width: 720px) { .g-grid { --row: 120px; gap: 6px; } }
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5,14,9,.98); color: #e8ece6; overflow: hidden; }
.lb[open] { display: flex; flex-direction: column; animation: fadein .25s ease both; }
.lb::backdrop { background: rgba(5,14,9,.6); }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; }
.lb-count { font: 500 14px var(--mono); }
.lb-actions { display: flex; gap: 8px; }
.lb-btn { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid #4f7a62; background: rgba(255,255,255,.06); color: #fff; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 12px; touch-action: pan-y pinch-zoom; }
.lb-fig { margin: 0; flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; user-select: none; -webkit-user-drag: none; transition: opacity .2s ease; }
.lb-img.is-loading { opacity: .4; }
.lb-cap { padding: 14px 20px 22px; text-align: center; min-height: 72px; }
.lb-cap strong { display: block; font: 700 24px/1.15 var(--display); text-transform: uppercase; }
.lb-cap span { display: block; margin-top: 4px; font: 500 13px/1.4 var(--mono); color: var(--on-dark-3); }
@media (max-width: 720px) { .lb-prev, .lb-next { display: none; } .lb-stage { padding: 0; } }
::view-transition-group(lb-photo) { animation-duration: .35s; animation-timing-function: var(--ease); }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes kbs { from { transform: scale(1.04); } to { transform: scale(1.15) translate(-1.5%, -1%); } }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
@keyframes drift { from { transform: translate(0, 0) rotate(0); } to { transform: translate(-2%, 1.5%) rotate(2deg); } }
@keyframes locin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .9s var(--ease) both; }
.d1 { animation-delay: .15s; } .d2 { animation-delay: .3s; } .d3 { animation-delay: .45s; }
.kenburns { animation: kb 22s ease-in-out infinite alternate; }
.topo { animation: drift 30s ease-in-out infinite alternate; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .slide.on { transform: none; }
}
