/* Everett Timberwolves Lacrosse: "The Clearing".
   TIMBER and WOLVES are two stands of tall letters with a clearing between them. The logo you choose
   stands in the clearing, and the timber resets to JACKSON | LACROSSE for the high school program.
   Motion is transform and opacity only; the one loop (drifting mist) stops when the hero is off screen. */

/* If Six Caps never arrives, the headings fall back to a condensed face the device already has, drawn at about
   half size so a word takes the room it would have taken in Six Caps. */
@font-face { font-family: 'Timber Fallback'; src: local('Impact'), local('HelveticaNeue-CondensedBlack'), local('Arial Narrow Bold'), local('Roboto Condensed Bold'), local('Roboto Condensed'); size-adjust: 54%; }

:root {
  --night: #050d0c; --pine9: #071614; --pine8: #0a2420; --pine7: #0e3832; --pine6: #12493f;
  --teal: #005850; --teal2: #0a7468; --aqua: #46d2bd; --silver: #b9c0c0;
  --mist: #e9efed; --fog: #f5f8f7; --line: #d2dcd8; --ink: #0b1514; --ink2: #44534f; --ink3: #6c7b77;
  --plate: #fff; --bad: #b3261e;
  --f-d: 'Six Caps', 'Timber Fallback', 'Arial Narrow', sans-serif;
  --f-h: 'Sofia Sans Extra Condensed', 'Arial Narrow', sans-serif;
  --f-b: 'Sofia Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(16px, 4.4vw, 72px);
  --top-h: 68px;
  --out: cubic-bezier(.16, .84, .24, 1);
  --in: cubic-bezier(.6, 0, .9, .4);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mist); color: var(--ink); font: 400 16px/1.5 var(--f-b); -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
img { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 200; background: #fff; color: var(--ink); padding: 12px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.defs { position: absolute; }

/* ───────── buttons ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--teal); color: #fff; font: 800 21px/1 var(--f-h); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background-color .2s, transform .2s var(--out); }
.btn svg { width: 20px; height: 20px; flex: none; transition: transform .25s var(--out); }
.btn:hover { background: var(--teal2); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn[disabled], .btn[aria-disabled="true"] { background: #b9c5c2; color: #fff; cursor: not-allowed; }
.btn-ink { background: var(--ink); }
.btn-ink:hover { background: #1c2a28; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn.is-busy { pointer-events: none; opacity: .7; }

/* ───────── header ───────── */
.top { position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--top-h); display: flex; align-items: center; gap: clamp(8px, 1.6vw, 26px); padding: 0 var(--pad); color: #e6f1ee; transition: background-color .25s; }
.top.is-solid { background: rgba(5, 13, 12, .97); }
.top-home { flex: none; display: grid; place-items: center; width: 52px; height: 52px; margin-left: -4px; }
.top-home img { width: 46px; height: 46px; object-fit: contain; display: block; }
.top-nav { display: flex; align-items: center; gap: clamp(0px, .6vw, 10px); margin: 0 auto; min-width: 0; }
.top-nav button { position: relative; min-height: 44px; padding: 0 12px; font: 700 18px/1 var(--f-h); letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; color: #d5e4e0; transition: color .2s; }
.top-nav button::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--aqua); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--out); }
.top-nav button:hover, .top-nav button[aria-expanded="true"], .top-nav button.is-here { color: #fff; }
.top-nav button:hover::after, .top-nav button[aria-expanded="true"]::after, .top-nav button.is-here::after { transform: scaleX(1); }
.top-end { display: flex; align-items: center; gap: 4px; flex: none; margin-left: auto; }
.top-nav + .top-end { margin-left: 0; }
.top-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #e6f1ee; }
.top-icon svg { width: 22px; height: 22px; }
.top-icon:hover { background: rgba(255, 255, 255, .1); }
.top-bag { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px 0 12px; border-radius: 999px; background: #fff; color: var(--ink); font: 800 19px/1 var(--f-h); }
.top-bag svg { width: 21px; height: 21px; }
.top-bag span { min-width: 12px; text-align: center; }
.top-bag.bump { animation: bump .5s var(--out); }
@keyframes bump { 30% { transform: scale(1.16); } }
.top-menu { display: none; }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: rgba(5, 13, 12, .985); color: #e6f1ee; padding: 22px var(--pad) 30px; border-top: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.mega-in { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); max-width: 1320px; margin: 0 auto; animation: mega-in .28s var(--out) both; }
.mega-in.is-list { grid-template-columns: minmax(0, 1fr); }
@keyframes mega-in { from { opacity: 0; transform: translateY(-8px); } }
.mega h3 { font: 700 14px/1 var(--f-h); letter-spacing: .16em; text-transform: uppercase; color: #8fb0a9; margin-bottom: 12px; }
.mega-links { display: flex; flex-direction: column; align-items: flex-start; }
.mega-links a { display: flex; align-items: center; min-height: 44px; font: 700 26px/1 var(--f-h); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: #fff; }
.mega-links a:hover { color: var(--aqua); }
.mega-links a.is-all { color: #9fc0b9; font-size: 20px; }
.mega-row { display: flex; flex-wrap: wrap; gap: 4px 34px; }
.mega-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 12px; }
.mega-logos a { display: block; text-decoration: none; color: #cfe0dc; font: 600 13px/1.2 var(--f-b); text-align: center; }
.mega-logos .plate-s { width: 100%; height: 76px; margin-bottom: 7px; transition: transform .25s var(--out); }
.mega-logos a:hover { color: #fff; }
.mega-logos a:hover .plate-s { transform: translateY(-3px); }
.mega .plate-s { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }

/* A logo on the plate it reads on. */
.plate-s { --pp: 9px; position: relative; display: block; border-radius: 12px; background: #fff; }
.plate-s.t-dark { background: #0c1a18; }
.plate-s.t-ink { background: #1c1c1c; }
.plate-s.t-light { background: #fff; }
.plate-s img { position: absolute; left: var(--pp); top: var(--pp); width: calc(100% - var(--pp) * 2); height: calc(100% - var(--pp) * 2); object-fit: contain; }

/* ───────── hero: the clearing ───────── */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: #fff; }
.scene, .scene-far, .scene-glow, .scene-near, .fogbank { position: absolute; inset: 0; pointer-events: none; }
.scene { z-index: -1; background: linear-gradient(180deg, #040908 0%, #06110f 34%, #0a2420 70%, #0f3a34 100%); }
.scene-glow { background: radial-gradient(46% 48% at 50% 44%, rgba(24, 132, 118, .5), rgba(10, 60, 54, .16) 58%, rgba(10, 60, 54, 0) 76%); }
.scene-far { inset: 0 -3%; will-change: transform; }
.scene-far i { position: absolute; top: 0; bottom: 0; background: linear-gradient(180deg, rgba(9, 42, 37, 0) 0%, #0b3029 26%, #114238 100%); }
.stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(18px, 3.4vw, 58px); height: clamp(520px, min(86svh, 62vw), 780px); padding: calc(var(--top-h) + 22px) var(--pad) 0; }
.stand { display: flex; align-items: stretch; gap: clamp(3px, .55vw, 9px); min-width: 0; height: 100%; will-change: transform; }
.trunk { position: relative; min-width: 0; overflow: hidden; }
.trunk svg { display: block; width: 100%; height: 100%; overflow: visible; transform: translateY(101%); }
.trunk text { font-family: var(--f-d); fill: #11574d; fill: url(#tg-a) #11574d; }
.trunk:nth-child(2n) text { fill: #0d443c; fill: url(#tg-b) #0d443c; }
.trunk:nth-child(3n) text { fill: #15665a; fill: url(#tg-c) #15665a; }
.stand.is-up .trunk svg { transform: none; transition: transform .8s var(--out) calc(var(--d) * 1ms); }
.stand.is-down .trunk svg { transform: translateY(101%); transition: transform .26s var(--in) calc(var(--d2) * 1ms); }
.no-intro .stand.is-up.is-first .trunk svg { transition: none; }

.clearing { position: relative; z-index: 2; align-self: start; width: clamp(280px, 31vw, 480px); height: calc(100% - 168px); will-change: transform; }
.lead { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: translateY(14px) scale(.9); transition: opacity .3s ease, transform .3s var(--in); }
.lead.is-on { opacity: 1; transform: none; transition: opacity .45s ease .12s, transform .7s var(--out) .12s; }
.intro .lead.is-on { animation: lead-in .9s var(--out) .35s both; }
@keyframes lead-in { from { opacity: 0; transform: translateY(22px) scale(.86); } }
/* Logos drawn for light garments get a bank of fog rolled in behind them. */
.clearing-fog { position: absolute; inset: -8% -34%; opacity: 0; transform: scale(.92); transition: opacity .45s ease, transform .7s var(--out); background:
  radial-gradient(38% 46% at 50% 50%, rgba(238, 244, 242, .98) 0%, rgba(238, 244, 242, .96) 62%, rgba(238, 244, 242, 0) 100%),
  radial-gradient(30% 34% at 30% 62%, rgba(238, 244, 242, .95) 0%, rgba(238, 244, 242, .8) 50%, rgba(238, 244, 242, 0) 100%),
  radial-gradient(30% 32% at 70% 40%, rgba(238, 244, 242, .95) 0%, rgba(238, 244, 242, .8) 50%, rgba(238, 244, 242, 0) 100%),
  radial-gradient(34% 26% at 62% 74%, rgba(238, 244, 242, .9) 0%, rgba(238, 244, 242, .7) 50%, rgba(238, 244, 242, 0) 100%),
  radial-gradient(34% 26% at 38% 28%, rgba(238, 244, 242, .9) 0%, rgba(238, 244, 242, .7) 50%, rgba(238, 244, 242, 0) 100%); }
.hero[data-tone="light"] .clearing-fog { opacity: 1; transform: none; }

/* Two bands of mist drift across the timber. Each band is two identical halves, so the loop has no seam,
   and every puff ends inside the band so its edge never shows. */
.scene-mist { position: absolute; left: 0; right: 0; bottom: 0; height: 64%; z-index: 1; overflow: hidden; pointer-events: none; }
.scene-mist i { position: absolute; top: 0; bottom: 0; left: 0; width: 200%; will-change: transform; animation: drift 90s linear infinite; background:
  radial-gradient(11% 30% at 8% 46%, rgba(200, 226, 219, .2), rgba(200, 226, 219, 0) 100%),
  radial-gradient(15% 34% at 30% 58%, rgba(200, 226, 219, .16), rgba(200, 226, 219, 0) 100%),
  radial-gradient(11% 30% at 58% 46%, rgba(200, 226, 219, .2), rgba(200, 226, 219, 0) 100%),
  radial-gradient(15% 34% at 80% 58%, rgba(200, 226, 219, .16), rgba(200, 226, 219, 0) 100%); }
.scene-mist i + i { animation-duration: 130s; animation-direction: reverse; opacity: .8; background:
  radial-gradient(14% 28% at 18% 62%, rgba(214, 234, 228, .18), rgba(214, 234, 228, 0) 100%),
  radial-gradient(10% 24% at 42% 40%, rgba(214, 234, 228, .14), rgba(214, 234, 228, 0) 100%),
  radial-gradient(14% 28% at 68% 62%, rgba(214, 234, 228, .18), rgba(214, 234, 228, 0) 100%),
  radial-gradient(10% 24% at 92% 40%, rgba(214, 234, 228, .14), rgba(214, 234, 228, 0) 100%); }
@keyframes drift { to { transform: translate3d(-50%, 0, 0); } }
.hero.is-still .scene-mist i, .rm .scene-mist i { animation-play-state: paused; }

.scene-near { z-index: 3; }
.scene-near i { position: absolute; top: 0; bottom: 0; left: -34px; width: clamp(34px, 3.6vw, 62px); background: linear-gradient(90deg, #020505, #050e0c 55%, #030807); will-change: transform; }
.scene-near i + i { left: auto; right: -40px; width: clamp(40px, 4.4vw, 76px); }
.fogbank { z-index: 4; top: auto; height: 250px; background:
  radial-gradient(34% 62% at 14% 100%, var(--mist) 0%, rgba(233, 239, 237, .82) 46%, rgba(233, 239, 237, 0) 100%),
  radial-gradient(30% 54% at 46% 100%, var(--mist) 0%, rgba(233, 239, 237, .8) 44%, rgba(233, 239, 237, 0) 100%),
  radial-gradient(36% 66% at 82% 100%, var(--mist) 0%, rgba(233, 239, 237, .82) 46%, rgba(233, 239, 237, 0) 100%),
  linear-gradient(180deg, rgba(233, 239, 237, 0) 0%, rgba(233, 239, 237, .5) 46%, var(--mist) 86%); }

.console { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(16px, 2.4vw, 36px); padding: 0 var(--pad) 26px; color: var(--ink); }
.intro .console { animation: rise-in .7s var(--out) .5s both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } }
.switch { display: flex; flex: none; padding: 5px; border-radius: 999px; background: var(--ink); }
.switch button, .switch a { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px; font: 800 22px/1 var(--f-h); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; color: #9db3ae; white-space: nowrap; transition: color .2s, background-color .25s; }
.switch button:hover, .switch a:hover { color: #fff; }
.switch button[aria-pressed="true"], .switch a[aria-current="true"] { background: #fff; color: var(--ink); }
.switch-night { background: rgba(255, 255, 255, .1); }
.switch-night a { min-height: 44px; padding: 0 20px; font-size: 20px; color: #b9d0cb; }
.pick { flex: 1 1 auto; min-width: 0; }
.pick-label { font: 700 14px/1 var(--f-h); letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); margin: 0 0 8px 2px; }
.pick-label b { font-weight: 800; color: var(--ink); margin-left: 6px; }
.rail { display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 4px 2px; margin: -4px -2px; scroll-snap-type: x proximity; }
.rail::-webkit-scrollbar { display: none; }
.chip { position: relative; flex: none; width: clamp(46px, 3.4vw, 54px); height: clamp(46px, 3.4vw, 54px); padding: 0; border-radius: 12px; scroll-snap-align: start; transform: scale(.9); transition: transform .35s var(--out); }
.chip .plate-s { --pp: 6px; width: 100%; height: 100%; border-radius: 12px; box-shadow: 0 0 0 1px rgba(11, 21, 20, .1); }
.chip:hover { transform: scale(.97); }
.chip[aria-pressed="true"] { transform: none; }
.chip[aria-pressed="true"]::after { content: ''; position: absolute; inset: -3px; border-radius: 15px; border: 2.5px solid var(--teal); }
.chip-all .plate-s { display: grid; place-items: center; background: var(--ink); color: #fff; font: 800 17px/1 var(--f-h); letter-spacing: .08em; text-transform: uppercase; box-shadow: none; }
.btn-go { flex: none; min-height: 60px; padding: 0 30px; font-size: 23px; }

/* ───────── timber headings (sections) ───────── */
.timber { display: block; max-width: 100%; overflow-x: clip; font: 400 clamp(92px, 11.5vw, 176px)/.9 var(--f-d); letter-spacing: .012em; text-transform: uppercase; color: var(--pine7); white-space: nowrap; }
.timber .t-w { display: inline-block; white-space: nowrap; }
.timber .t-w + .t-w { margin-left: .16em; }
.timber .t-l { display: inline-block; overflow: hidden; vertical-align: bottom; padding-top: .06em; }
.timber .t-l b { display: block; font-weight: 400; transform: translateY(104%); background: linear-gradient(180deg, var(--pine6) 0%, var(--pine7) 46%, #6f8f88 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
/* The letters wait for their face (class f-ok), so a heading never shows first in the wrong one. */
.f-ok .timber.is-in .t-l b { transform: none; transition: transform .8s var(--out) calc(var(--i) * 38ms); }
.f-ok .timber.is-set .t-l b, .f-ok.rm .timber .t-l b { transform: none; transition: none; }
.on-night .timber .t-l b { background-image: linear-gradient(180deg, #2aa392 0%, #17695d 48%, #0c332e 100%); }

/* ───────── home sections ───────── */
#shop { scroll-margin-top: var(--top-h); }
.den, .shelf, .index { scroll-margin-top: calc(var(--top-h) - 2px); }
.den { position: relative; }
.den + .den { border-top: 1px solid var(--line); }
.den-head { position: relative; padding: clamp(36px, 5vw, 72px) var(--pad) 0; }
.den-top { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.den-kicker { font: 700 15px/1 var(--f-h); letter-spacing: .2em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.link-all { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 800 20px/1 var(--f-h); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.link-all svg { width: 18px; height: 18px; transition: transform .25s var(--out); }
.link-all:hover svg { transform: translateX(4px); }
.bar .link-all { flex: none; color: var(--teal); }
.bar-note:empty { display: none; }
.den .bar-note { margin-left: auto; }
/* Each program keeps a clearing of its own: the logo you chose stands in it. */
.glade { position: relative; flex: none; display: block; isolation: isolate; overflow: hidden; width: clamp(250px, 27vw, 400px); height: clamp(150px, 15vw, 204px); margin-bottom: 14px; border-radius: 22px; background:
  linear-gradient(90deg, transparent 6%, rgba(17, 73, 63, .7) 6% 7.4%, transparent 7.4% 15%, rgba(14, 56, 50, .8) 15% 15.8%, transparent 15.8% 27%, rgba(17, 73, 63, .55) 27% 28.6%, transparent 28.6% 71%, rgba(14, 56, 50, .8) 71% 72%, transparent 72% 83%, rgba(17, 73, 63, .6) 83% 84.8%, transparent 84.8% 92%, rgba(14, 56, 50, .7) 92% 92.7%, transparent 92.7%),
  radial-gradient(56% 78% at 50% 46%, rgba(24, 132, 118, .6), rgba(10, 60, 54, 0) 78%),
  linear-gradient(180deg, #040908, #0a2420 70%, #0f3a34); transition: transform .4s var(--out); }
.glade:hover { transform: translateY(-3px); }
.glade img { position: absolute; left: 30px; top: 16px; width: calc(100% - 60px); height: calc(100% - 32px); object-fit: contain; animation: glade-in .7s var(--out) both; }
@keyframes glade-in { from { opacity: 0; transform: translateY(12px) scale(.88); } }
.glade-fog { position: absolute; inset: -6% -4%; opacity: 0; transition: opacity .4s ease; background:
  radial-gradient(44% 56% at 50% 50%, rgba(238, 244, 242, .98) 0%, rgba(238, 244, 242, .95) 66%, rgba(238, 244, 242, 0) 100%),
  radial-gradient(30% 36% at 26% 62%, rgba(238, 244, 242, .9) 0%, rgba(238, 244, 242, 0) 100%),
  radial-gradient(30% 36% at 74% 38%, rgba(238, 244, 242, .9) 0%, rgba(238, 244, 242, 0) 100%); }
.glade.is-light .glade-fog { opacity: 1; }

.logos { position: relative; align-items: flex-start; margin: clamp(14px, 2vw, 24px) calc(var(--pad) * -1) 0; padding: 6px var(--pad) 10px; display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-left: var(--pad); }
.logos::-webkit-scrollbar { display: none; }
.logo { display: flex; flex-direction: column; align-items: center; flex: none; width: 108px; scroll-snap-align: start; text-align: center; color: var(--ink2); transition: transform .35s var(--out), color .2s; }
.logo .plate-s { --pp: 10px; width: 108px; height: 86px; border-radius: 14px; box-shadow: 0 0 0 1px rgba(11, 21, 20, .08); transition: box-shadow .2s; }
.logo-name { display: block; margin-top: 8px; font: 600 13px/1.2 var(--f-b); }
.logo:hover { transform: translateY(-3px); color: var(--ink); }
.logo[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.logo[aria-pressed="true"] .logo-name { font-weight: 700; }
.logo[aria-pressed="true"] .plate-s { box-shadow: 0 0 0 3px var(--mist), 0 0 0 6px var(--teal); }
.logo[disabled] { opacity: .3; pointer-events: none; }
.logo-all .plate-s { display: grid; place-items: center; background: transparent; color: var(--ink); font: 800 22px/1 var(--f-h); letter-spacing: .08em; text-transform: uppercase; box-shadow: inset 0 0 0 1.5px var(--ink); }
.logo-all[aria-pressed="true"] .plate-s { background: var(--ink); color: #fff; box-shadow: 0 0 0 3px var(--mist), 0 0 0 6px var(--teal); }
.on-night .logo { color: #b9d0cb; }
.on-night .logo:hover, .on-night .logo[aria-pressed="true"] { color: #fff; }
.on-night .logo .plate-s { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.on-night .logo[aria-pressed="true"] .plate-s { box-shadow: 0 0 0 3px #071916, 0 0 0 6px var(--aqua); }
.on-night .logo-all .plate-s { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.on-night .logo-all[aria-pressed="true"] .plate-s { background: #fff; color: var(--ink); box-shadow: 0 0 0 3px #071916, 0 0 0 6px var(--aqua); }

.den-body { padding: clamp(14px, 1.8vw, 22px) var(--pad) clamp(46px, 6vw, 84px); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(16px, 2vw, 26px); min-width: 0; }
.tabs { display: flex; gap: 6px; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 3px; margin: -3px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; font: 700 19px/1 var(--f-h); letter-spacing: .07em; text-transform: uppercase; color: var(--ink2); white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; background: rgba(11, 21, 20, .055); transition: background-color .2s, color .2s; }
.tab:hover { background: rgba(11, 21, 20, .12); color: var(--ink); }
.tab[aria-selected="true"], .tab[aria-pressed="true"], .tab[aria-current="page"] { background: var(--ink); color: #fff; }
.bar-note { flex: none; font: 600 14px/1.2 var(--f-b); color: var(--ink2); white-space: nowrap; }
.bar-note button { text-decoration: underline; text-underline-offset: 3px; min-height: 44px; font-weight: 700; color: var(--teal); }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 26px) clamp(10px, 1.5vw, 22px); }
.den-foot { display: flex; justify-content: center; margin-top: clamp(22px, 3vw, 40px); }
.den-foot .btn { max-width: 100%; min-width: 0; padding-top: 8px; padding-bottom: 8px; white-space: normal; text-align: center; line-height: 1.1; }
.empty { grid-column: 1 / -1; padding: 44px 20px; border-radius: 16px; background: var(--fog); text-align: center; color: var(--ink2); }
.empty p { margin-bottom: 14px; }
.empty b { color: var(--ink); }

/* ───────── tile ───────── */
.tile { position: relative; min-width: 0; }
.tile-hit { display: block; text-decoration: none; color: inherit; border-radius: 16px; }
.tile-plate { position: relative; display: block; aspect-ratio: 1 / 1.06; border-radius: 16px; background: var(--plate); overflow: hidden; box-shadow: 0 1px 0 rgba(11, 21, 20, .05); }
.tile-plate img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; transition: transform .5s var(--out), opacity .2s; }
.tile-plate img.is-out { opacity: 0; }
.tile-hit:hover .tile-plate img { transform: scale(1.045); }
.tile-flag { position: absolute; left: 10px; top: 10px; z-index: 1; padding: 6px 9px 5px; border-radius: 7px; background: var(--ink); color: #fff; font: 700 13px/1 var(--f-h); letter-spacing: .1em; text-transform: uppercase; }
.tile-flag.is-teal { background: var(--teal); }
.tile-flag.is-out { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.tile.is-gone .tile-plate img { opacity: .45; }
.tile-info { padding: 11px 2px 0; }
.tile-kicker { font: 700 13px/1 var(--f-h); letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); margin-bottom: 4px; }
.tile h3 { font: 600 15.5px/1.25 var(--f-b); color: var(--ink); overflow-wrap: anywhere; }
.tile-price { margin-top: 3px; font: 800 20px/1.1 var(--f-h); letter-spacing: .03em; color: var(--ink); }
.tile-price s { margin-right: 6px; font-weight: 600; color: var(--ink3); }
.tile-price small { font: 600 12px/1 var(--f-b); letter-spacing: 0; color: var(--ink3); margin-right: 4px; text-transform: none; }
.tile-logos { display: flex; align-items: center; gap: 5px; margin-top: 8px; min-height: 30px; }
.dot { flex: none; width: 34px; height: 30px; border-radius: 8px; }
.dot .plate-s { --pp: 4px; width: 34px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(11, 21, 20, .1); }
.dot.t-photo .plate-s { --pp: 2px; }
.dot[aria-pressed="true"] .plate-s { box-shadow: 0 0 0 2px var(--teal); }
.tile-more { font: 700 12.5px/1 var(--f-b); color: var(--ink3); margin-left: 2px; white-space: nowrap; }
.tile.is-new .tile-plate, .tile.is-new .tile-info { opacity: 0; transform: translateY(16px); }
.tile.is-new.is-in .tile-plate, .tile.is-new.is-in .tile-info { opacity: 1; transform: none; transition: opacity .5s ease calc(var(--n) * 45ms), transform .7s var(--out) calc(var(--n) * 45ms); }
.rm .tile.is-new .tile-plate, .rm .tile.is-new .tile-info { opacity: 1; transform: none; }

/* ───────── shelves (headwear, accessories, gear, equipment) ───────── */
.shelf { padding: clamp(40px, 5.4vw, 80px) 0 clamp(26px, 3.4vw, 44px); border-top: 1px solid var(--line); }
.shelf:nth-of-type(even) { background: var(--fog); }
.shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 0 var(--pad); }
.shelf-head .link-all { color: var(--teal); margin-bottom: 10px; }
.shelf-title { display: flex; align-items: flex-end; gap: clamp(14px, 2.6vw, 40px); min-width: 0; }
.shelf .bar { padding: 0 var(--pad); margin-top: clamp(10px, 1.4vw, 18px); }
.shelf .tabs { padding: 3px var(--pad); margin: -3px calc(var(--pad) * -1); scroll-padding-left: var(--pad); }
.shelf-arrows { display: flex; gap: 8px; flex: none; }
.shelf-arrows button { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); transition: background-color .2s, color .2s, opacity .2s; }
.shelf-arrows button:hover { background: var(--ink); color: #fff; }
.shelf-arrows button[disabled] { opacity: .25; pointer-events: none; }
.shelf-arrows svg { width: 20px; height: 20px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - var(--pad) * 2 - 4 * clamp(10px, 1.5vw, 22px)) / 5); gap: clamp(10px, 1.5vw, 22px); overflow-x: auto; overflow-y: hidden; padding: 4px var(--pad) 8px; scroll-padding-left: var(--pad); scroll-snap-type: x proximity; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip .tile { scroll-snap-align: start; }

/* ───────── every collection ───────── */
.index { position: relative; isolation: isolate; background: var(--night); color: #dce9e6; padding: clamp(46px, 6vw, 90px) var(--pad) clamp(34px, 4vw, 56px); }
/* The far trees again, behind the list. */
.index::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .55; background:
  linear-gradient(90deg, transparent 3%, #0b2a25 3% 3.5%, transparent 3.5% 11%, #0a2420 11% 11.9%, transparent 11.9% 23%, #0b2a25 23% 23.3%, transparent 23.3% 38%, #0a2420 38% 38.7%, transparent 38.7% 52%, #0b2a25 52% 52.4%, transparent 52.4% 64%, #0a2420 64% 65%, transparent 65% 78%, #0b2a25 78% 78.4%, transparent 78.4% 90%, #0a2420 90% 90.8%, transparent 90.8%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 86%); mask-image: linear-gradient(180deg, #000, transparent 86%); }
.index-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 30px clamp(16px, 2vw, 34px); margin-top: clamp(20px, 3vw, 40px); }
.index h3 { font: 800 26px/1 var(--f-h); letter-spacing: .06em; text-transform: uppercase; color: #fff; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 2px solid var(--teal2); }
.index a { display: flex; align-items: center; min-height: 44px; font: 500 16px/1.2 var(--f-b); text-decoration: none; color: #b7ccc7; }
.index a:hover { color: #fff; }

/* ───────── collection page ───────── */
.coll-head { position: relative; overflow: hidden; background: linear-gradient(180deg, #040908, #081b18 60%, #0c2a26); color: #fff; padding: calc(var(--top-h) + clamp(18px, 3vw, 40px)) var(--pad) 0; }
.coll-head::before { content: ''; position: absolute; inset: 0; background: radial-gradient(40% 80% at 78% 10%, rgba(24, 132, 118, .28), rgba(24, 132, 118, 0) 70%); pointer-events: none; }
.coll-head > * { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font: 700 15px/1 var(--f-h); letter-spacing: .16em; text-transform: uppercase; color: #8fb0a9; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: #cfe6e1; }
.crumbs a:hover { color: #fff; }
.coll-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.coll-top .switch { margin-bottom: 12px; }
.coll-head .timber { font-size: clamp(84px, 10vw, 150px); margin-top: 2px; }
.coll-head .tabs { margin-top: 10px; padding-bottom: 22px; }
.coll-head .tab { background: rgba(255, 255, 255, .09); color: #cfe0dc; }
.coll-head .tab:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.coll-head .tab[aria-current="page"], .coll-head .tab[aria-pressed="true"] { background: #fff; color: var(--ink); }
.coll-head .logos { margin-top: 0; padding-top: 8px; }
.coll-body { padding: clamp(16px, 2vw, 26px) var(--pad) clamp(50px, 6vw, 90px); min-height: 50vh; }
.sort { display: inline-flex; align-items: center; gap: 8px; flex: none; font: 600 14px/1 var(--f-b); color: var(--ink2); }
.sort select { height: 44px; padding: 0 34px 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%230b1514' stroke-width='1.8'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 13px center / 11px; appearance: none; -webkit-appearance: none; font-weight: 700; color: var(--ink); }

/* ───────── footer ───────── */
.foot { position: relative; overflow: hidden; background: var(--night); color: #cfe0dc; border-top: 1px solid rgba(255, 255, 255, .08); }
.foot-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 46px var(--pad) 40px; text-align: center; }
.foot-mark { width: 84px; height: auto; }
.foot-name { font: 800 26px/1 var(--f-h); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.foot-pow { display: flex; align-items: center; gap: 12px; margin-top: 14px; font: 600 13px/1 var(--f-b); letter-spacing: .12em; text-transform: uppercase; color: #9fb5b0; }
.foot-pow a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-pow img { display: block; width: 150px; height: auto; }

/* ───────── layers: product sheet, bag, search, menu ───────── */
.veil { position: fixed; inset: 0; z-index: 80; background: rgba(3, 9, 8, .62); opacity: 0; transition: opacity .3s ease; }
.veil.is-on { opacity: 1; }
.layer { position: fixed; z-index: 90; background: var(--mist); color: var(--ink); display: flex; flex-direction: column; visibility: hidden; }
.layer.is-on { visibility: visible; }
.layer-x { position: absolute; right: 12px; top: 12px; z-index: 5; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; }
.layer-x svg { width: 20px; height: 20px; }
.layer-x:hover { background: var(--teal); }

/* product */
.sheet { left: 50%; top: 50%; width: min(1120px, calc(100vw - 48px)); height: min(820px, calc(100svh - 48px)); border-radius: 22px; overflow: hidden; opacity: 0; transform: translate(-50%, -47%) scale(.97); transition: opacity .25s ease, transform .3s var(--in), visibility 0s .3s; }
.sheet.is-on { opacity: 1; transform: translate(-50%, -50%); transition: opacity .3s ease, transform .55s var(--out), visibility 0s; }
.sheet-scroll { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); align-items: start; }
.gallery { position: sticky; top: 0; padding: 22px 0 22px 22px; min-width: 0; }
.gallery-main { position: relative; aspect-ratio: 1; border-radius: 16px; background: #fff; overflow: hidden; }
.gallery-main > img { position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: contain; animation: photo-in .28s ease both; }
@keyframes photo-in { from { opacity: 0; } }
.print { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; text-transform: uppercase; text-align: center; line-height: .96; white-space: nowrap; container-type: size; pointer-events: none; background-size: 100% 100%; background-repeat: no-repeat; }
.print span { position: relative; display: block; font-size: 44cqh; transform-origin: center; }
.print-cover { position: absolute; inset: 0; background-size: 100% 100%; background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent); mask-composite: intersect; }
.proof { position: relative; height: 160px; border-radius: 14px; background: #fff; overflow: hidden; container-type: inline-size; box-shadow: inset 0 0 0 1.5px var(--line); }
.proof-photo { position: absolute; aspect-ratio: 1; }
.proof-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 3px; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs button { flex: none; width: 62px; height: 62px; border-radius: 10px; background: #fff; overflow: hidden; }
.thumbs button img { width: 100%; height: 100%; object-fit: contain; display: block; }
.thumbs button[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--teal); }
.detail { padding: 30px clamp(20px, 3vw, 38px) 26px; min-width: 0; }
.detail-kicker { font: 700 15px/1 var(--f-h); letter-spacing: .18em; text-transform: uppercase; color: var(--teal); padding-right: 50px; }
.detail h2 { font: 800 clamp(34px, 3.4vw, 46px)/.98 var(--f-h); letter-spacing: .01em; text-transform: uppercase; margin-top: 8px; padding-right: 44px; overflow-wrap: anywhere; }
.detail-price { margin-top: 10px; font: 800 30px/1 var(--f-h); letter-spacing: .03em; }
.detail-price s { font-weight: 600; color: var(--ink3); margin-right: 8px; }
.field { margin-top: 22px; }
.field-label { display: flex; align-items: baseline; gap: 8px; font: 700 15px/1 var(--f-h); letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); margin-bottom: 9px; }
.field-label b { font: 700 14px/1 var(--f-b); letter-spacing: 0; text-transform: none; color: var(--ink); }
.field-label i { font: 500 13px/1 var(--f-b); font-style: normal; letter-spacing: 0; text-transform: none; color: var(--ink3); }
.field-label i.is-bad { color: var(--bad); font-weight: 700; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-width: 50px; min-height: 46px; padding: 0 15px; border-radius: 11px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font: 700 15px/1 var(--f-b); transition: box-shadow .15s, background-color .15s, color .15s; }
.opt:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.opt[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.opt.is-thin { color: var(--ink3); }
.opt[aria-pressed="true"].is-thin { color: #fff; }
.opt[disabled] { color: #a6b3b0; text-decoration: line-through; background: transparent; pointer-events: none; }
.marks { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.mark { text-align: center; font: 600 12.5px/1.2 var(--f-b); color: var(--ink2); min-width: 0; }
.mark .plate-s { --pp: 8px; width: 100%; height: 70px; margin-bottom: 6px; box-shadow: 0 0 0 1.5px var(--line); transition: transform .25s var(--out); }
.mark.t-photo .plate-s { --pp: 3px; }
.mark:hover .plate-s { transform: translateY(-2px); }
.mark[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.mark[aria-pressed="true"] .plate-s { box-shadow: 0 0 0 3px var(--teal); }
.input { display: block; width: 100%; height: 50px; padding: 0 14px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; font: 600 17px/1 var(--f-b); color: var(--ink); }
.input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 88, 80, .18); }
select.input { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%230b1514' stroke-width='1.8'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center / 11px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hint { margin-top: 7px; font: 500 13.5px/1.35 var(--f-b); color: var(--ink3); }
.error { margin-top: 16px; padding: 12px 14px; border-radius: 11px; background: #fbe9e7; color: var(--bad); font: 600 15px/1.35 var(--f-b); }
.buy { display: flex; gap: 10px; margin-top: 24px; }
.buy .btn { flex: 1 1 auto; min-height: 56px; min-width: 0; padding: 0 18px; }
.qty { display: inline-flex; align-items: center; flex: none; height: 56px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.qty button { width: 46px; height: 56px; font: 700 22px/1 var(--f-b); border-radius: 999px; }
.qty button:hover { color: var(--teal); }
.qty output { min-width: 24px; text-align: center; font: 800 20px/1 var(--f-h); }
.desc { margin-top: 26px; border-top: 1.5px solid var(--line); }
.desc summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; cursor: pointer; list-style: none; font: 700 15px/1 var(--f-h); letter-spacing: .16em; text-transform: uppercase; }
.desc summary::-webkit-details-marker { display: none; }
.desc summary::after { content: '+'; font: 500 24px/1 var(--f-b); }
.desc[open] summary::after { content: '\2013'; }
.desc-body { font-size: 14.5px; color: var(--ink2); padding-bottom: 14px; overflow-x: auto; overflow-y: hidden; }
.desc-body table { border-collapse: collapse; font-size: 13.5px; margin: 8px 0; }
.desc-body td, .desc-body th { padding: 6px 10px; border: 1px solid var(--line); text-align: left; }
.desc-body ul { padding-left: 18px; }
.desc-body img { height: auto; }
.skel { border-radius: 12px; background: linear-gradient(90deg, #dfe7e4, #eef3f1, #dfe7e4); }
.pack-items { display: grid; gap: 10px; }
.pack-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px; border-radius: 14px; background: #fff; }
.pack-item img { width: 72px; height: 72px; object-fit: contain; border-radius: 8px; }
.pack-item b { display: block; font: 700 15px/1.25 var(--f-b); margin-bottom: 6px; }

/* bag */
.bag { top: 0; right: 0; bottom: 0; width: min(460px, 100vw); transform: translateX(102%); transition: transform .3s var(--in), visibility 0s .3s; }
.bag.is-on { transform: none; transition: transform .5s var(--out), visibility 0s; }
.bag-head { flex: none; display: flex; align-items: center; min-height: 68px; padding: 0 70px 0 22px; background: var(--night); color: #fff; }
.bag-head h2 { font: 800 30px/1 var(--f-h); letter-spacing: .06em; text-transform: uppercase; }
.bag-head .layer-x { background: rgba(255, 255, 255, .12); }
.bag-lines { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.line { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: 16px; background: #fff; }
.line.is-flagged { box-shadow: 0 0 0 2px var(--bad); }
.line-img { width: 82px; height: 82px; object-fit: contain; border-radius: 10px; }
.line h3 { font: 700 15px/1.25 var(--f-b); overflow-wrap: anywhere; }
.line-meta { margin-top: 3px; font: 500 13px/1.35 var(--f-b); color: var(--ink2); overflow-wrap: anywhere; }
.line-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.line .qty { height: 44px; }
.line .qty button { width: 44px; height: 44px; font-size: 19px; }
.line-price { font: 800 20px/1 var(--f-h); }
.line-x { min-height: 44px; padding: 0 4px; font: 600 13px/1 var(--f-b); color: var(--ink3); text-decoration: underline; text-underline-offset: 3px; }
.line-x:hover { color: var(--bad); }
.bag-empty { margin: auto; text-align: center; padding: 30px 20px; }
.bag-empty img { width: 130px; height: auto; opacity: .9; }
.bag-empty p { margin: 12px 0 18px; font: 600 16px/1.3 var(--f-b); color: var(--ink2); }
.bag-foot { flex: none; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -1px 0 var(--line); }
.bag-sum { display: flex; align-items: baseline; justify-content: space-between; font: 800 26px/1 var(--f-h); letter-spacing: .05em; text-transform: uppercase; }
.bag-foot .hint { margin: 6px 0 12px; }
.bag-foot .btn { width: 100%; min-height: 58px; }
.bag-foot .error { margin: 0 0 12px; }

/* search */
.find { top: 0; left: 0; right: 0; max-height: 100svh; background: var(--night); color: #fff; transform: translateY(-102%); transition: transform .3s var(--in), visibility 0s .3s; }
.find.is-on { transform: none; transition: transform .5s var(--out), visibility 0s; }
.find-bar { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 68px 12px var(--pad); }
.find-bar svg { width: 24px; height: 24px; flex: none; color: #8fb0a9; }
.find-bar input { flex: 1 1 auto; min-width: 0; height: 52px; background: transparent; border: 0; border-bottom: 2px solid rgba(255, 255, 255, .25); font: 700 26px/1 var(--f-h); letter-spacing: .04em; color: #fff; border-radius: 0; }
.find-bar input::placeholder { color: #6f8f88; }
.find-bar input::-webkit-search-cancel-button { display: none; }
.find-bar input:focus { outline: none; border-color: var(--aqua); }
.find .layer-x { background: rgba(255, 255, 255, .12); top: 16px; }
.find-out { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 8px var(--pad) 28px; }
.find-note { font: 600 14px/1.3 var(--f-b); color: #9fb5b0; margin: 4px 0 14px; }
.find-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.find-quick .tab { background: rgba(255, 255, 255, .09); color: #dce9e6; }
.find-quick .tab:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.find .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.find .tile h3, .find .tile-price { color: #fff; }
.find .tile-kicker, .find .tile-more { color: #9fb5b0; }

/* menu (phones and tablets) */
.menu { top: 0; right: 0; bottom: 0; width: min(430px, 100vw); background: var(--night); color: #dce9e6; transform: translateX(102%); transition: transform .3s var(--in), visibility 0s .3s; }
.menu.is-on { transform: none; transition: transform .5s var(--out), visibility 0s; }
.menu .layer-x { background: rgba(255, 255, 255, .12); }
.menu-scroll { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 40px; }
.menu-find { display: flex; align-items: center; gap: 10px; width: calc(100% - 56px); height: 46px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #cfe0dc; font: 600 15px/1 var(--f-b); }
.menu-find svg { width: 20px; height: 20px; }
.menu h3 { margin-top: 22px; padding-bottom: 8px; border-bottom: 2px solid var(--teal2); font: 800 30px/1 var(--f-h); letter-spacing: .05em; text-transform: uppercase; color: #fff; }
.menu-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
.menu-links a { display: flex; align-items: center; min-height: 46px; font: 500 16.5px/1.2 var(--f-b); text-decoration: none; color: #c3d6d1; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 120; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 24px); padding: 8px 8px 8px 12px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 15px/1.2 var(--f-b); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .5); transform: translate(-50%, 0); animation: toast-in .5s var(--out) both; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 18px); } }
.toast img { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff; object-fit: contain; }
.toast span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast button { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--ink); font: 800 17px/1 var(--f-h); letter-spacing: .08em; text-transform: uppercase; }

/* The piece that drops into the bag on add. */
.flyer { position: fixed; left: 0; top: 0; z-index: 130; width: 84px; height: 84px; border-radius: 14px; background: #fff; object-fit: contain; padding: 6px; pointer-events: none; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .45); will-change: transform, opacity; }

/* ───────── widths ───────── */
/* Laptops: the logo row fits beside the switch and the button only if everything is a little tighter. */
@media (min-width: 1280px) and (max-width: 1399px) {
  .chip { width: 44px; height: 44px; }
  .chip .plate-s { --pp: 5px; }
  .rail { gap: 5px; }
  .switch button { padding: 0 18px; }
  .btn-go { padding: 0 22px; }
}
/* Narrower than that, the logo row gets a line of its own under the switch. */
@media (max-width: 1279px) {
  .console { flex-wrap: wrap; }
  .pick { order: 3; flex-basis: 100%; }
  .chip { width: 54px; height: 54px; }
  .stage { height: clamp(560px, min(88svh, 66vw), 800px); }
  .clearing { height: calc(100% - 236px); }
  .fogbank { height: 330px; }
}
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strip { grid-auto-columns: calc((100% - var(--pad) * 2 - 3 * clamp(10px, 1.5vw, 22px)) / 4); }
  .index-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .find .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .top-nav button { padding: 0 9px; font-size: 17px; letter-spacing: .07em; }
  .top-nav button::after { left: 9px; right: 9px; }
}
@media (max-width: 900px) {
  :root { --top-h: 60px; }
  .top-nav { margin: 0; gap: 0; flex: 0 1 auto; overflow: hidden; }
  .top-nav button:not([data-nav="tw"]):not([data-nav="jk"]) { display: none; }
  .top-nav button { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding: 0 8px; font-size: 17px; letter-spacing: .06em; }
  .top-nav button::after { left: 8px; right: 8px; }
  .top-menu { display: grid; }
  .top-end { margin-left: auto; }
  .top-nav + .top-end { margin-left: auto; }
  .mega { display: none; }
  .sheet { left: 0; top: auto; bottom: 0; width: 100vw; height: calc(100svh - 34px); border-radius: 20px 20px 0 0; transform: translateY(103%); opacity: 1; }
  .sheet.is-on { transform: none; }
  .sheet-scroll { display: block; }
  .gallery { position: static; padding: 14px 14px 0; }
  .gallery-main { aspect-ratio: 1 / .92; }
  .detail { padding: 18px 16px 0; }
  .buy { position: sticky; bottom: 0; z-index: 3; margin: 22px -16px 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--mist); box-shadow: 0 -1px 0 var(--line); }
  .desc { margin-top: 8px; }
  .find .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* The hero stacks: TIMBER, the clearing, WOLVES. */
  .stage { display: flex; flex-direction: column; align-items: stretch; height: auto; gap: 12px; padding: calc(var(--top-h) + 14px) var(--pad) 0; }
  .stand { height: clamp(104px, 30vw, 236px); gap: clamp(5px, 1.2vw, 10px); flex: none; }
  .clearing { align-self: center; width: min(66vw, 320px); height: min(60vw, 290px); flex: none; }
  .scene-near { display: none; }
  .scene-mist { height: 70%; }
  .fogbank { top: auto; bottom: 0; height: 320px; background:
    radial-gradient(60% 34% at 12% 22%, rgba(233, 239, 237, .82), rgba(233, 239, 237, 0) 100%),
    radial-gradient(60% 30% at 86% 18%, rgba(233, 239, 237, .8), rgba(233, 239, 237, 0) 100%),
    linear-gradient(180deg, rgba(233, 239, 237, 0) 0%, rgba(233, 239, 237, .72) 26%, var(--mist) 44%); }
  .console { position: relative; padding: 20px var(--pad) 26px; margin-top: -16px; }
  .rail { margin: -4px calc(var(--pad) * -1); padding: 4px var(--pad); scroll-padding-left: var(--pad); gap: 8px; }
  .chip { width: 58px; height: 58px; }
}
@media (max-width: 760px) {
  .console { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 14px; }
  .switch button { flex: 1 1 0; padding: 0 10px; }
  .pick { order: 0; }
  .btn-go { width: 100%; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip { grid-auto-columns: 44%; }
  .index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .find .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .den-top, .shelf-head, .coll-top { flex-direction: column; align-items: flex-start; gap: 0; }
  .shelf-title { align-self: stretch; }
  .glade { display: none; }
  .den .grid .tile:nth-child(n+7) { display: none; }
  .den .bar .link-all { display: none; }
  .den .bar-note { margin-left: 0; }
  .coll-top .switch { margin: 8px 0 4px; }
  .den-top .link-all, .shelf-head .link-all { margin-bottom: 0; }
  .shelf-arrows { display: none; }
  .logo { width: 100px; }
  .logo .plate-s { width: 100px; height: 80px; }
  .bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .tabs { margin: -3px calc(var(--pad) * -1); padding: 3px var(--pad); scroll-padding-left: var(--pad); }
  .bar-note { white-space: normal; }
  .sort { justify-content: space-between; }
  .tile h3 { font-size: 14.5px; }
  .dot, .dot .plate-s { width: 30px; height: 28px; }
  .toast { left: 12px; right: 12px; max-width: none; transform: none; animation-name: toast-in-m; }
  @keyframes toast-in-m { from { opacity: 0; transform: translateY(18px); } }
  .toast span { flex: 1 1 auto; }
  .find-bar input { font-size: 22px; }
}
@media (max-width: 400px) {
  .top { gap: 2px; }
  .top-home { width: 44px; margin-left: -6px; }
  .top-home img { width: 40px; height: 40px; }
  .top-nav button { padding: 0 6px; font-size: 16px; }
  .top-nav button::after { left: 6px; right: 6px; }
  .top-search { display: none; }
  .top-bag { padding: 0 11px 0 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  .scene-mist i { animation: none !important; }
}
