/* ============================================================
   Twin Brothers Hunting Channel — "Carta de campo" design system
   Ground: cypress swamp black-green. Accent: brand red from the
   logo. Blaze orange is reserved for legal/safety data only.
   ============================================================ */

:root {
  /* ground */
  --ink:      #070C09;
  --ink-1:    #0B1210;
  --ink-2:    #101A15;
  --ink-3:    #16231C;
  --line:     #1E2C23;
  --line-2:   #2B3E31;

  /* text */
  --bone:     #EEE8D9;
  --bone-2:   #C3C9B8;
  --muted:    #7F8D79;
  --faint:    #56635220;

  /* accents */
  --brand:    #C8102E;   /* the logo red — brand only */
  --brand-hi: #E8452F;
  --blaze:    #FF6A13;   /* legal / safety data only */
  --gold:     #DDB65E;   /* measured values: sun, moon, time */
  --moss:     #8FB25E;   /* favourable conditions */
  --water:    #5EA5B2;   /* rain, tide, humidity */

  /* type */
  --display: 'Anybody', 'Arial Narrow', system-ui, sans-serif;
  --body:    'Archivo', system-ui, -apple-system, sans-serif;
  --data:    'Martian Mono', ui-monospace, 'SF Mono', monospace;

  /* rhythm */
  --shell: 1360px;
  --pad:   clamp(16px, 4vw, 44px);
  --gap:   clamp(28px, 5vw, 72px);
  --plate: clamp(48px, 7vw, 104px);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  color-scheme: dark;                 /* native scrollbars, selects and inputs */
  scroll-behavior: smooth;
  scroll-padding-top: 120px;          /* sticky header must not cover the target */
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  font-synthesis-weight: none;
  overflow-x: clip;
  touch-action: manipulation;         /* no 300 ms double-tap delay */
  -webkit-tap-highlight-color: rgba(200, 16, 46, .25);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
img, svg { max-width: 100%; display: block; }
/* width/height attributes reserve space against layout shift; the box itself
   is sized by CSS, so the intrinsic height must never win. */
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--brand); color: #fff; }

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  transform: translateY(-160%);
  background: var(--brand); color: #fff; padding: 12px 18px;
  font-family: var(--data); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

:where(a, button, select, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}

/* the survey ground: faint contour lines behind everything */
body::before {
  content: '';
  position: fixed;
  inset: -10%;
  background: url('../img/contour.svg') repeat;
  background-size: 900px 900px;
  opacity: .05;
  pointer-events: none;
  z-index: 0;
  animation: drift 120s linear infinite;
}
@keyframes drift { to { transform: translate3d(-900px, -900px, 0); } }

/* ---------- type ---------- */
.d1, .d2, .d3 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: -.012em;
  text-wrap: balance;
}
.d1 { font-size: clamp(30px, 7.2vw, 84px); overflow-wrap: break-word; }
.d2 { font-size: clamp(26px, 5vw, 58px); overflow-wrap: break-word; }
.d3 { font-size: clamp(19px, 2.4vw, 28px); line-height: .98; overflow-wrap: break-word; }

.tag {
  font-family: var(--data);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.lede { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.62; color: var(--bone-2); max-width: 62ch; text-wrap: pretty; }
.small { font-size: 14px; line-height: 1.55; color: var(--muted); }
.num { font-family: var(--data); font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }

/* ---------- shell + plates ---------- */
.shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }
.plate { padding-block: var(--plate); position: relative; z-index: 1; }
.plate--rule { border-top: 1px solid var(--line); }
.plate--sunk { background: var(--ink-1); }

/* the structural device: a survey label, not a decorative 01/02/03 */
.plate-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.plate-label { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.plate-label::before { content: ''; width: 7px; height: 7px; background: var(--brand); flex: none; }
.plate-label span { font-family: var(--data); font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.link-more {
  font-family: var(--data); font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--bone-2);
  border-bottom: 1px solid var(--brand); padding-bottom: 6px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.link-more:hover { color: var(--bone); border-color: var(--gold); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  font-family: var(--data); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--fill { background: var(--brand); color: #fff; }
.btn--fill:hover { background: var(--brand-hi); }
.btn--line { border-color: var(--line-2); color: var(--bone); background: transparent; }
.btn--line:hover { border-color: var(--gold); color: var(--bone); }
.btn--ghost { border-color: var(--line); color: var(--bone-2); background: var(--ink-2); }
.btn--ghost:hover { border-color: var(--line-2); color: var(--bone); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 11px; }

/* ============================================================
   HEADER + the persistent field rail
   ============================================================ */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.hdr-in { display: flex; align-items: center; gap: 16px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.brand b { font-family: var(--display); font-weight: 900; font-stretch: 118%; font-size: 18px; letter-spacing: .01em; display: block; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.brand i { font-family: var(--data); font-style: normal; font-size: 8.5px; letter-spacing: .14em; color: var(--muted); display: block; margin-top: 4px; white-space: nowrap; }

.nav { display: flex; gap: 2px; flex-wrap: wrap; min-width: 0; justify-content: flex-end; }
.nav a {
  font-family: var(--data); font-size: 10.5px; font-weight: 500; letter-spacing: .05em;
  text-transform: uppercase; color: var(--bone-2);
  padding: 9px 7px; position: relative; white-space: nowrap;
  transition: color .18s var(--ease);
}
.nav a[aria-current='page']::after { left: 7px; right: 7px; }
.nav a:hover { color: var(--bone); }
.nav a[aria-current='page'] { color: var(--bone); }
.nav a[aria-current='page']::after {
  content: ''; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; background: var(--brand);
}
.burger { display: none; width: 46px; height: 44px; background: transparent; border: 1px solid var(--line-2); cursor: pointer; padding: 0; place-content: center; gap: 5px; }
.burger span { display: block; width: 20px; height: 1.5px; background: var(--bone); transition: transform .25s var(--ease), opacity .2s; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* live conditions rail — the instrument thread that ties the site together */
.rail {
  border-bottom: 1px solid var(--line);
  background: var(--ink-1);
  position: sticky; top: 66px; z-index: 55;
}
.rail-in {
  display: flex; align-items: center; gap: 0;
  overflow-x: auto; scrollbar-width: none;
  min-height: 38px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent);
}
@media (min-width: 1180px) { .rail-in { -webkit-mask-image: none; mask-image: none; } }
.rail-in::-webkit-scrollbar { display: none; }
.rail-item {
  display: flex; align-items: baseline; gap: 8px;
  padding: 9px 18px 9px 0; margin-right: 18px;
  border-right: 1px solid var(--line);
  white-space: nowrap; flex: none;
}
.rail-item:last-child { border-right: 0; }
.rail-item dt { font-family: var(--data); font-size: 9px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.rail-item dd { margin: 0; font-family: var(--data); font-size: 12px; font-weight: 600; color: var(--bone); font-variant-numeric: tabular-nums; }
.rail-item dd.is-legal { color: var(--blaze); }
.rail-item dd.is-astro { color: var(--gold); }
.rail-item dd.is-wind  { color: var(--water); }
.rail-link { margin-left: auto; padding-left: 18px; }

/* ============================================================
   HERO — the signature: a field photo read like an instrument
   ============================================================ */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%;
  filter: saturate(.62) brightness(.42) contrast(1.08) hue-rotate(-6deg);
  transform: scale(1.06);
  animation: heroDrift 34s ease-in-out infinite alternate;
}
@keyframes heroDrift { to { transform: scale(1.14) translate3d(-1.5%, -2%, 0); } }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(7,12,9,.94) 0%, rgba(7,12,9,.78) 34%, rgba(7,12,9,.3) 62%, rgba(7,12,9,.55) 100%),
    linear-gradient(180deg, rgba(7,12,9,.6) 0%, transparent 30%, var(--ink) 98%);
}
/* the reticle overlay draws itself on load */
.hero-reticle { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55; }
.hero-reticle [data-draw] { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); animation: draw 2.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-in {
  display: grid; gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  align-items: center;
  padding-block: clamp(44px, 6vw, 76px) clamp(40px, 5vw, 64px);
  min-height: min(760px, calc(100svh - 108px));
}
.hero h1.d1 { font-size: clamp(32px, 4.4vw, 62px); }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  border: 1px solid var(--line-2); padding: 7px 13px; margin-bottom: 22px;
  font-family: var(--data); font-size: 10px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--bone-2);
  background: rgba(7,12,9,.5);
}
.live-dot { position: relative; width: 7px; height: 7px; background: var(--brand); flex: none; }
.live-dot::after { content: ''; position: absolute; inset: 0; background: var(--brand); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 70%,100% { transform: scale(3); opacity: 0; } }

.hero h1 .accent { color: var(--brand-hi); }
.hero-sub { display: flex; align-items: center; gap: 14px; margin: 18px 0 20px; }
.hero-sub span:first-child { height: 1px; width: 40px; background: var(--line-2); flex: none; }
.hero-sub span:last-child { font-family: var(--data); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* the live field card — previews exactly what the tools page does */
.fieldcard {
  border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--ink-1) 88%, transparent);
  backdrop-filter: blur(8px);
  padding: 20px;
}
.fieldcard-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 14px; }
.fieldcard-top b { font-family: var(--data); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; flex: none; }

/* The area picker.
   A native <select> holding 158 options is miserable to scroll, and its popup
   would not open at all inside the hero — the card sits in a clipped, blurred
   stacking context. This one is plain DOM, so nothing can swallow it, and it
   can filter as you type. */
.picker { position: relative; flex: 1 1 auto; min-width: 0; max-width: 66%; }
.picker-btn {
  display: flex; align-items: center; justify-content: flex-end; gap: 9px;
  width: 100%; min-height: 38px; padding: 8px 11px;
  background: var(--ink); border: 1px solid var(--line-2); color: var(--bone-2);
  font-family: var(--data); font-size: 10px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; text-align: right;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.picker-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-btn svg { flex: none; transition: transform .2s var(--ease); }
.picker-btn:hover { border-color: var(--gold); color: var(--bone); }
.picker-btn[aria-expanded='true'] { border-color: var(--gold); color: var(--bone); }
.picker-btn[aria-expanded='true'] svg { transform: rotate(180deg); }

.picker-pop {
  position: absolute; z-index: 70; right: 0; top: calc(100% + 6px);
  width: min(320px, 78vw);
  background: var(--ink-1); border: 1px solid var(--line-2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
  display: grid; grid-template-rows: auto minmax(0, 1fr);
  max-height: min(300px, 46vh);
}
.picker-pop[data-flip='up'] { top: auto; bottom: calc(100% + 6px); }
.picker-search {
  width: 100%; padding: 11px 12px; min-height: 44px;
  background: var(--ink); border: 0; border-bottom: 1px solid var(--line);
  color: var(--bone); font-family: var(--body); font-size: 15px; border-radius: 0;
}
.picker-search::placeholder { color: #4E5A4B; }
.picker-list { overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 4px 0; }
.picker-opt {
  padding: 9px 12px; cursor: pointer; font-size: 14px; color: var(--bone-2);
  display: flex; align-items: baseline; gap: 8px;
}
.picker-opt small { font-family: var(--data); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-left: auto; flex: none; }
.picker-opt:hover, .picker-opt.is-active { background: var(--ink-3); color: var(--bone); }
.picker-opt[aria-selected='true'] { color: var(--gold); }
.picker-empty { padding: 14px 12px; font-size: 13.5px; color: var(--muted); }
.fieldcard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.fieldcard-grid > div { background: var(--ink-1); padding: 13px 14px; }
.fieldcard-grid dt { font-family: var(--data); font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.fieldcard-grid dd { margin: 0; font-family: var(--data); font-size: clamp(15px, 1.25vw, 17px); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.15; }
.fieldcard-grid dd small { display: block; font-family: var(--body); font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 4px; text-transform: none; }
.fieldcard-foot { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: clamp(20px, 3vw, 40px); flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 32px; }
.hero-stats b { font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(28px, 3.4vw, 42px); line-height: 1; display: block; }
.hero-stats span { font-family: var(--data); font-size: 9px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 6px; }

/* ============================================================
   CARDS + GRIDS
   ============================================================ */
.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
/* the tool wall never goes past two columns — the panels need the width */
.tool-wall { grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); }
@media (min-width: 1180px) { .tool-wall { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--ink-1); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: border-color .22s var(--ease), transform .22s var(--ease), background .22s var(--ease);
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); background: var(--ink-2); }
.card-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--ink-3); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7,12,9,.9)); }
.card-badge {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: flex; align-items: center; gap: 9px;
  font-family: var(--data); font-size: 10px; font-weight: 600; letter-spacing: .1em;
}
.card-badge i { width: 30px; height: 22px; background: var(--brand); display: grid; place-content: center; font-style: normal; font-size: 9px; color: #fff; }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title {
  font-family: var(--display); font-weight: 700; font-stretch: 106%;
  font-size: 17px; line-height: 1.1; text-transform: uppercase;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere;
}
.card-meta { font-family: var(--data); font-size: 9px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: auto; }

/* ---------- gear cards: a drawing of the product beside the words ---------- */
.gear-card { flex-direction: row; align-items: stretch; }
.thumb {
  flex: none; width: 92px;
  display: grid; place-items: center;
  background: var(--ink-2);
  border-right: 1px solid var(--line);
  color: var(--gold);
  transition: color .22s var(--ease), background .22s var(--ease);
}
.thumb svg { width: 52px; height: 52px; stroke-width: 1.8; }
.gear-card:hover .thumb { color: var(--brand-hi); background: var(--ink-3); }
.gear-body { padding: 15px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }

/* ---------- shop: a mock-up of the garment, in its real colour ---------- */
.mock {
  position: relative; aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  /* a neutral studio backdrop, so a black tee and a bone tee both read */
  background: radial-gradient(90% 75% at 50% 38%, #35403A, #1A241E 78%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.mock-art { position: absolute; inset: 0; display: grid; place-items: center; }
.mock-art svg { width: 84%; height: 84%; }
/* CSS beats the fill="none" presentation attribute, so the same drawing
   works as line art in the gear list and as a filled garment here. */
.mock-art svg path, .mock-art svg rect, .mock-art svg circle {
  fill: var(--cloth);
  stroke: color-mix(in srgb, var(--ink) 42%, transparent);
  stroke-width: 1.1;
}
.mock-mark {
  position: relative; z-index: 1;
  font-family: var(--display); font-weight: 900; font-stretch: 118%;
  font-size: clamp(20px, 3.4vw, 30px); letter-spacing: .02em;
  color: var(--ink);
  transform: translateY(-4%);
  transition: transform .35s var(--ease);
}
.card:hover .mock-mark { transform: translateY(-4%) scale(1.07); }
/* the cap's badge sits on the crown, not the middle of the picture */
.mock:has(svg path[d^="M11 27"]) .mock-mark { transform: translateY(-12%); }

/* a portal tile — big image, label at the base */
.portal { position: relative; display: block; min-height: 260px; overflow: hidden; border: 1px solid var(--line); }
.portal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.44) saturate(.55); transition: transform .6s var(--ease), filter .4s var(--ease); }
.portal:hover img { transform: scale(1.06); filter: brightness(.56) saturate(.72); }
.portal:hover { border-color: var(--gold); }
.portal-body { position: relative; z-index: 1; min-height: 260px; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }

/* ---------- gallery: snap scroller, keyboard driven ---------- */
.scroller { position: relative; }
.track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 6px; scroll-behavior: smooth;
}
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; flex: none; }
.shot { width: min(78vw, 360px); aspect-ratio: 4 / 3; position: relative; border: 1px solid var(--line); cursor: zoom-in; background: var(--ink-1); padding: 0; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 12px 10px; font-family: var(--data); font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-2); background: linear-gradient(transparent, rgba(7,12,9,.92)); text-align: left; }
.scroll-btns { display: flex; gap: 8px; }
.scroll-btns button { width: 42px; height: 42px; background: var(--ink-2); border: 1px solid var(--line-2); color: var(--bone); cursor: pointer; font-size: 18px; line-height: 1; display: grid; place-content: center; transition: background .2s, border-color .2s; }
.scroll-btns button:hover { background: var(--brand); border-color: var(--brand); }
.scroll-btns button[disabled] { opacity: .35; cursor: default; }
.scroll-btns button[disabled]:hover { background: var(--ink-2); border-color: var(--line-2); }

/* ============================================================
   TOOLS — instrument panels
   ============================================================ */
.tool {
  border: 1px solid var(--line); background: var(--ink-1);
  display: flex; flex-direction: column;
  scroll-margin-top: 120px;
}
.tool-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.tool-head h3 { font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: 22px; line-height: .95; text-transform: uppercase; margin-top: 8px; }
.tool-body { padding: 18px; display: grid; gap: 16px; flex: 1; align-content: start; }
.tool-note { padding: 12px 18px 16px; font-size: 13.5px; line-height: 1.5; color: var(--muted); border-top: 1px solid var(--line); }
.tool-note b { color: var(--bone-2); font-weight: 600; }

/* Collapsing-border grid: works with any number of cells, and a short last
   row never leaves a bright empty block behind. */
.readout { display: flex; flex-wrap: wrap; background: var(--ink-2); }
.readout > div {
  flex: 1 1 150px; min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--line);
  margin: -1px 0 0 -1px;
}
.readout dt { font-family: var(--data); font-size: 9px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.readout dd { margin: 5px 0 0; font-family: var(--data); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; overflow-wrap: anywhere; }
.readout dd small { display: block; font-family: var(--body); font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 5px; line-height: 1.35; overflow-wrap: normal; }
/* four values sit better as a square than as three plus a stretched one */
.readout--2 > div { flex: 1 1 44%; }
.v-gold { color: var(--gold); } .v-blaze { color: var(--blaze); } .v-water { color: var(--water); }
.v-moss { color: var(--moss); } .v-brand { color: var(--brand-hi); }

/* hourly strip */
.hours { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(58px, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.hours > div { background: var(--ink-2); padding: 10px 6px; text-align: center; font-family: var(--data); font-variant-numeric: tabular-nums; }
.hours .h-t { font-size: 9px; letter-spacing: .06em; color: var(--muted); }
.hours .h-v { font-size: 15px; font-weight: 600; margin: 5px 0 3px; }
.hours .h-s { font-size: 9px; color: var(--bone-2); letter-spacing: .04em; }
.hours .is-now { background: var(--ink-3); box-shadow: inset 0 2px 0 var(--brand); }

/* bar chart (rain) */
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; align-items: end; height: 156px; }
.bars > div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; height: 100%; }
.bars .bar { width: 100%; background: linear-gradient(180deg, var(--water), color-mix(in srgb, var(--water) 35%, var(--ink-2))); min-height: 2px; transition: height .5s var(--ease); }
.bars .bar-l { font-family: var(--data); font-size: 8.5px; color: var(--muted); letter-spacing: -.02em; }
.bars .bar-v { font-family: var(--data); font-size: 9px; color: var(--bone-2); font-variant-numeric: tabular-nums; opacity: .95; }
.bars .bar-v[data-low] { opacity: .4; }

/* compass */
.compass { display: grid; place-items: center; padding: 4px 0; }
.compass svg { width: min(100%, 250px); height: auto; }
.compass .c-ring { fill: none; stroke: var(--line-2); }
.compass .c-tick { stroke: var(--line-2); }
.compass .c-card { font-family: var(--data); font-size: 9px; font-weight: 600; fill: var(--muted); text-anchor: middle; }
.compass .c-cone { fill: var(--brand); opacity: .2; }
.compass .c-cone-edge { fill: none; stroke: var(--brand-hi); stroke-width: 1; stroke-dasharray: 3 3; }
.compass .c-arrow { fill: var(--brand-hi); }
.compass .c-stand { fill: var(--gold); }
.compass .c-label { font-family: var(--data); font-size: 8.5px; font-weight: 600; fill: var(--bone-2); text-anchor: middle; }

/* daylight bar */
.daybar { position: relative; height: 12px; background: var(--ink-3); border: 1px solid var(--line); overflow: hidden; }
.daybar i { position: absolute; top: 0; bottom: 0; display: block; }
.daybar .dl-legal { background: color-mix(in srgb, var(--blaze) 32%, transparent); }
.daybar .dl-sun   { background: color-mix(in srgb, var(--gold) 52%, transparent); }
.daybar .dl-now   { width: 2px; background: var(--bone); box-shadow: 0 0 0 1px rgba(7,12,9,.6); }
.daybar-key { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--data); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.daybar-key i { width: 12px; height: 8px; display: inline-block; margin-right: 6px; }

/* rut timeline */
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.phases > div { background: var(--ink-3); border-top: 2px solid var(--line-2); padding: 9px 8px; }
.phases > div.is-on { border-top-color: var(--brand); background: var(--ink-2); }
/* "Pre-brama (pre-rut)" needs two lines; reserve them on every chip so the
   four phases stay level with each other. */
.phases b {
  display: block; font-family: var(--data); font-size: 9px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  line-height: 1.25; min-height: 2.5em;
}
.phases > div.is-on b { color: var(--brand-hi); }
.phases span { font-size: 11.5px; color: var(--muted); display: block; margin-top: 3px; line-height: 1.3; }

/* moon */
.moonwrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.moon { width: 78px; height: 78px; flex: none; }

/* activity meter */
.meter { height: 8px; background: var(--ink-3); border: 1px solid var(--line); position: relative; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--line-2), var(--moss)); transition: width .6s var(--ease); }

/* controls bar */
.controls {
  position: sticky; top: 104px; z-index: 40;
  background: color-mix(in srgb, var(--ink-1) 97%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line); padding: 14px;
  display: grid; gap: 12px; margin-bottom: 22px;
}
.controls-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.field { display: grid; gap: 6px; flex: 1 1 240px; min-width: 0; }
.field > span { font-family: var(--data); font-size: 9px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.field select, .field input {
  background: var(--ink); border: 1px solid var(--line-2); color: var(--bone);
  padding: 12px 13px; min-height: 48px; font-size: 15px; width: 100%; min-width: 0;
  font-family: var(--body); border-radius: 0;
}
.field select:hover, .field input:hover { border-color: var(--muted); }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.day {
  background: var(--ink); border: 1px solid var(--line); color: var(--bone-2);
  padding: 8px 13px; min-height: 44px; cursor: pointer;
  font-family: var(--data); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  transition: border-color .2s, color .2s, background .2s;
}
.day:hover { border-color: var(--line-2); color: var(--bone); }
.day[aria-pressed='true'] { border-color: var(--brand); color: var(--bone); background: var(--ink-3); }
.status { font-size: 13px; color: var(--muted); min-height: 19px; }
.status.is-err { color: var(--brand-hi); }
.status.is-ok { color: var(--moss); }

/* alerts from the National Weather Service */
.nws { border: 1px solid var(--blaze); background: color-mix(in srgb, var(--blaze) 9%, var(--ink-1)); padding: 14px 16px; display: grid; gap: 6px; }
.nws b { font-family: var(--data); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--blaze); }

/* skeleton shimmer while data loads */
.skel { color: transparent !important; position: relative; }
.skel::after { content: ''; position: absolute; inset: 2px 0; background: linear-gradient(90deg, var(--ink-3), var(--line), var(--ink-3)); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }

/* ============================================================
   FORMS
   ============================================================ */
.form { background: var(--ink-1); border: 1px solid var(--line); padding: clamp(20px, 3vw, 30px); display: grid; gap: 16px; }
.form label { display: grid; gap: 7px; }
.form label > span { font-family: var(--data); font-size: 9px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea {
  background: var(--ink); border: 1px solid var(--line-2); color: var(--bone);
  padding: 13px; font-size: 16px; font-family: var(--body); width: 100%; border-radius: 0;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input::placeholder, .form textarea::placeholder { color: #4E5A4B; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 16px; }
.form-msg { font-size: 14px; min-height: 20px; color: var(--moss); }
.form-msg.is-err { color: var(--brand-hi); }

/* ============================================================
   FOOTER
   ============================================================ */
.ftr { border-top: 1px solid var(--line); background: var(--ink-1); position: relative; z-index: 1; }

/* The brothers' sign-off. It closes every page, so it gets real size — and the
   second half lands in the brand red, the way they say it. */
.ftr-motto { border-bottom: 1px solid var(--line); overflow: hidden; }
/* The size below is the second line's. The first is set from it, so the two
   keep their proportion at every screen width. */
.ftr-motto p {
  font-family: var(--display); font-weight: 800; font-stretch: 112%;
  font-size: clamp(22px, 4.3vw, 50px); line-height: .92;
  text-transform: uppercase; letter-spacing: -.012em;
  padding-block: clamp(30px, 4.5vw, 54px);
  text-align: center;
}
.ftr-motto b { display: block; font-weight: inherit; font-size: .8em; }
.ftr-motto em { display: block; font-style: normal; color: var(--brand-hi); }
.ftr-motto span { color: var(--line-2); }
.ftr-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 34px; padding-block: clamp(38px, 5vw, 58px); }
.ftr h4 { font-family: var(--data); font-size: 9px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.ftr nav { display: grid; gap: 9px; }
.ftr nav a { font-size: 14.5px; color: var(--bone-2); transition: color .18s; }
.ftr nav a:hover { color: var(--brand-hi); }
.ftr-base { border-top: 1px solid var(--line); padding-block: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-family: var(--data); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(4,7,5,.97);
  display: grid; place-items: center;
  padding: max(clamp(16px, 4vw, 56px), env(safe-area-inset-top)) clamp(16px, 4vw, 56px);
  overscroll-behavior: contain; overflow: auto;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 84vh; object-fit: contain; border: 1px solid var(--line-2); }
.lightbox figcaption { margin-top: 14px; font-family: var(--data); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; }
.lightbox-x { position: fixed; top: 16px; right: 16px; width: 52px; height: 52px; background: var(--brand); color: #fff; border: 0; font-size: 26px; cursor: pointer; display: grid; place-content: center; }
.lightbox-x:hover { background: var(--brand-hi); }

/* ============================================================
   MOTION + REVEAL
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

.route[hidden] { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1240px) { .hdr-cta { display: none; } }
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; align-items: start; }
  .fieldcard { max-width: 560px; }
}
@media (max-width: 1080px) {
  .burger { display: grid; order: 3; }
  .nav {
    order: 4; flex-basis: 100%; flex-direction: column; gap: 0;
    display: none; border-top: 1px solid var(--line); padding: 6px 0 12px; margin-top: 6px;
  }
  .nav.is-open { display: flex; }
  .nav a { font-size: 14px; padding: 12px 2px; letter-spacing: .12em; }
  .nav { justify-content: flex-start; }
  .nav a[aria-current='page']::after { left: 2px; right: auto; width: 20px; bottom: 6px; }
  .hdr-in { flex-wrap: wrap; padding-block: 10px; min-height: 0; }
  .hdr-cta { display: inline-flex; order: 2; }
  .rail { top: 0; position: static; }
  .controls { top: 8px; }
  .phases { grid-template-columns: repeat(2, 1fr); }
  /* stacked media panels: image on top, text below */
  #hall-list article, #blog-list article { grid-template-columns: 1fr !important; }
  #hall-list img, #blog-list img { max-height: 240px; }
}
/* On a phone the card pushes the whole hero below the fold, and the tools
   page does the same job with more room. */
@media (max-width: 700px) {
  .fieldcard { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  /* the motto just fits on one line once the tracking loosens a little less */
  .hero-sub span:last-child { letter-spacing: .1em; font-size: 10px; }
  .hero-sub span:first-child { width: 24px; }
  .fieldcard-grid { grid-template-columns: 1fr; }
  .hdr-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-reticle [data-draw] { stroke-dashoffset: 0; }
}

@media print {
  body::before, .hero-bg, .hdr, .ftr { display: none; }
  body { background: #fff; color: #000; }
}

/* ============================================================
   ARTICLE — one blog post, read end to end
   ============================================================ */
.art { max-width: 68ch; }
.art .plate-label { margin-bottom: 12px; }
.art-hero {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border: 1px solid var(--line); margin: 24px 0;
}
.art .lede { font-size: clamp(17px, 1.7vw, 20px); color: var(--bone); }
.art-body { margin-top: 8px; }
.art-body p { margin: 18px 0; font-size: 17px; line-height: 1.7; color: var(--bone-2); text-wrap: pretty; }
.art-h {
  font-family: var(--display); font-weight: 800; font-stretch: 110%;
  font-size: clamp(20px, 2.2vw, 26px); line-height: 1.05; text-transform: uppercase;
  margin: 34px 0 4px; color: var(--bone);
}
.art-list { margin: 16px 0; display: grid; gap: 10px; }
.art-list li {
  display: flex; gap: 12px; font-size: 17px; line-height: 1.6; color: var(--bone-2);
}
.art-list li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: 11px; background: var(--brand); }
.art-body strong { color: var(--bone); font-weight: 600; }
.art-body a, .art-foot a { border-bottom: 1px solid var(--line-2); }
.art-body a:hover { border-color: var(--gold); color: var(--bone); }
.art-foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ============================================================
   OFFICIAL LINKS — the paperwork block on the home page.
   Rows, not cards: this is a list of documents, and it should
   read like the index of a manual rather than a shop shelf.
   ============================================================ */
.lk-wrap {
  display: grid; gap: clamp(24px, 3vw, 38px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.lk-h {
  font-family: var(--data); font-size: 10px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
  padding-bottom: 10px; margin-bottom: 2px; border-bottom: 1px solid var(--line);
}
.lk {
  display: block; padding: 14px 34px 14px 0; position: relative;
  border-bottom: 1px solid var(--line);
  transition: padding-left .18s var(--ease), background .18s var(--ease);
}
.lk b {
  display: block; font-size: 15.5px; font-weight: 600; line-height: 1.3;
  color: var(--bone); margin-bottom: 4px;
}
.lk span { display: block; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.lk i {
  display: block; font-family: var(--data); font-style: normal;
  font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  color: #4E5A4B; margin-top: 7px;
}
/* the arrow doubles as the "this leaves the site" mark */
.lk::after {
  content: '↗'; position: absolute; right: 6px; top: 15px;
  font-size: 14px; color: var(--muted);
  transition: transform .18s var(--ease), color .18s var(--ease);
}
.lk:hover { background: var(--ink-1); padding-left: 12px; }
.lk:hover b { color: #fff; }
.lk:hover::after { color: var(--gold); transform: translate(2px, -2px); }
/* the two the owner told us people need most */
.lk--key { border-left: 2px solid var(--brand); padding-left: 12px; }
.lk--key:hover { padding-left: 20px; }
.lk--key i { color: var(--brand-hi); }
.lk-note {
  margin-top: clamp(26px, 3vw, 38px); padding-top: 16px;
  border-top: 1px solid var(--line); max-width: 74ch;
}

/* ============================================================
   GLOSARIO — seven hundred entries, so density is the whole job.
   Hairline grid, mono for the English because that is the value
   the hunter is actually looking up.
   ============================================================ */
.gl-bar {
  position: sticky; top: 66px; z-index: 40;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 30px 0 18px; padding: 12px 0;
  background: color-mix(in srgb, var(--ink) 94%, transparent);
  backdrop-filter: blur(12px);
}
.gl-search {
  flex: 1 1 300px; min-width: 0; position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 0 12px; background: var(--ink-2); border: 1px solid var(--line-2);
}
.gl-search:focus-within { border-color: var(--gold); }
.gl-search svg { flex: none; color: var(--muted); }
.gl-search input {
  flex: 1 1 auto; min-width: 0; min-height: 48px;
  background: none; border: 0; outline: 0; font-size: 16px;   /* 16px stops iOS zooming on focus */
}
.gl-search input::placeholder { color: #4E5A4B; }
.gl-search input::-webkit-search-cancel-button { display: none; }
.gl-x {
  flex: none; width: 28px; height: 28px; border: 0; background: none;
  color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer;
}
.gl-x:hover { color: var(--bone); }
.gl-count {
  font-family: var(--data); font-size: 10px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); flex: none;
}

.gl-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: clamp(26px, 3vw, 40px); }
.gl-chip {
  border: 1px solid var(--line); background: var(--ink-1); color: var(--bone-2);
  font-family: var(--data); font-size: 10px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 8px 12px; min-height: 36px; cursor: pointer;
  transition: border-color .16s var(--ease), color .16s var(--ease), background .16s var(--ease);
}
.gl-chip:hover { border-color: var(--line-2); color: var(--bone); }
.gl-chip[aria-pressed='true'] { background: var(--brand); border-color: var(--brand); color: #fff; }

.gl-set { margin-bottom: clamp(34px, 4vw, 56px); }
.gl-set-h {
  font-family: var(--display); font-weight: 800; font-stretch: 110%;
  font-size: clamp(19px, 2.2vw, 26px); line-height: 1; text-transform: uppercase;
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line-2);
}
.gl-set-h span {
  font-family: var(--data); font-size: 10px; font-weight: 600;
  letter-spacing: .1em; color: var(--muted); margin-left: auto; flex: none;
}
.gl-set-p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 12px 0 18px; max-width: 72ch; }

/* Each cell draws its own right and bottom rule, and the box draws the top
   and left. A gap over a coloured ground would be simpler, but the last row
   is rarely full and the leftover space would show as a phantom cell. */
.gl-list {
  display: grid;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
}
.gl-t {
  background: var(--ink-1); padding: 15px 16px 16px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.gl-t:hover { background: var(--ink-2); }
.gl-t h3 { font-size: 16px; font-weight: 600; line-height: 1.25; color: var(--bone); }
.gl-en {
  font-family: var(--data); font-size: 11px; font-weight: 600;
  letter-spacing: .05em; color: var(--gold); margin: 5px 0 9px;
  overflow-wrap: break-word;
}
.gl-d { font-size: 14.5px; line-height: 1.55; color: var(--bone-2); text-wrap: pretty; }
.gl-alt {
  font-family: var(--data); font-size: 9.5px; letter-spacing: .07em;
  color: var(--muted); margin-top: 9px; padding-top: 8px;
  border-top: 1px solid var(--line);
}
.gl-none { padding: 40px 0; color: var(--muted); font-size: 15px; }
.gl-foot { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 74ch; }
.gl-foot a { color: var(--bone-2); border-bottom: 1px solid var(--line-2); }
.gl-foot a:hover { color: var(--bone); border-color: var(--gold); }

/* the header loses its CTA row below 1080px and sits about 61px tall */
@media (max-width: 1080px) { .gl-bar { top: 61px; } }
@media (max-width: 700px) {
  .gl-count { width: 100%; }
  /* Twenty topics wrap to ten rows on a phone and push the words themselves
     off the screen. One swipeable strip, bleeding to both edges so it is
     obvious there is more of it. */
  .gl-chips {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none; padding-bottom: 4px;
    margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad);
  }
  .gl-chips::-webkit-scrollbar { display: none; }
  .gl-chip { flex: none; }
}
