/* ==========================================================================
   Bone & Timber — site styles
   Design tokens follow the brand specification (Section 1).
   ========================================================================== */

:root {
  --bg-charcoal: #161817;
  --bg-card: #1E2320;
  --green-dark: #1B3024;
  --green-border: #2C4738;
  --green-accent: #7FD19E;
  --text-bone: #F2EFE9;
  --text-muted: #A3A8A4;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --container: 72rem;      /* max-w-6xl */
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  background: var(--bg-charcoal);
  color: var(--text-bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--green-accent); color: var(--bg-charcoal); }

img, svg, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--green-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--green-accent); color: var(--bg-charcoal);
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Type helpers ---------- */

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.eyebrow { font-size: 12px; color: var(--green-accent); margin: 0 0 16px; }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: filter .2s, transform .2s var(--ease), border-color .2s, color .2s, background-color .2s;
}
.btn--sm { font-size: 14px; padding: 10px 16px; }
.btn--primary { background: var(--green-accent); color: var(--bg-charcoal); }
.btn--primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn--ghost { border-color: var(--green-border); color: var(--text-bone); font-weight: 500; }
.btn--ghost:hover { border-color: var(--green-accent); color: var(--green-accent); }
.btn[aria-disabled="true"] {
  background: transparent; color: var(--text-muted);
  border: 1px dashed var(--green-border); cursor: default; filter: none; transform: none;
}
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 24, 23, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(44, 71, 56, .6);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); }

.site-header .container {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 28px; height: 28px; transition: transform .25s var(--ease); }
.brand:hover svg { transform: scale(1.06) rotate(-3deg); }
.brand span {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  letter-spacing: -.02em; color: var(--text-bone);
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  position: relative;
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--green-accent); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--green-accent); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px; padding: 0;
  background: transparent; border: 1px solid var(--green-border); border-radius: var(--radius-sm);
  color: var(--text-bone); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 16px; height: 1.5px; background: currentColor; position: relative;
  transition: transform .25s var(--ease), background-color .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(22, 24, 23, .98);
    border-bottom: 1px solid var(--green-border);
    padding: 8px 24px 16px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid rgba(44, 71, 56, .5); }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  padding: 96px 0;
  border-bottom: 1px solid rgba(44, 71, 56, .4);
  text-align: center;
}
@media (min-width: 768px) { .hero { padding: 128px 0; } }

.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 30%, var(--green-dark) 0%, var(--bg-charcoal) 70%);
  opacity: .8;
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(44, 71, 56, .25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 71, 56, .25) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 65%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 65%);
}

/* Floating joinery blocks — decorative only */
.hero__blocks { position: absolute; inset: 0; pointer-events: none; }
.block {
  position: absolute;
  width: var(--s, 24px); height: var(--s, 24px);
  border: 1px solid rgba(242, 239, 233, .22);
  animation: drift var(--d, 14s) ease-in-out infinite alternate;
}
.block--solid { background: rgba(242, 239, 233, .08); border-color: rgba(242, 239, 233, .12); }
.block--mint { border-color: rgba(127, 209, 158, .55); }
.block--notch {
  border: 0;
  background: rgba(242, 239, 233, .1);
  clip-path: polygon(0 0, 100% 0, 100% 31%, 72% 31%, 72% 69%, 100% 69%, 100% 100%, 0 100%);
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to   { transform: translate3d(var(--x, 10px), var(--y, -18px), 0) rotate(var(--r, 8deg)); }
}

.hero__inner { position: relative; max-width: 56rem; margin: 0 auto; padding: 0 24px; }
.hero h1 { font-size: clamp(40px, 7vw, 60px); margin: 0 0 24px; text-wrap: balance; }
.hero h1 .accent { color: var(--green-accent); }
.hero__sub {
  font-size: 18px; color: var(--text-muted);
  max-width: 36rem; margin: 0 auto 32px; line-height: 1.65;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }


/* ---------- Sections ---------- */

.section { padding: 80px 0; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-bottom: 32px;
}
.section-head h2 { font-size: 24px; margin: 0; }
.section-head h3 { font-size: 20px; margin: 0; }
.section-head .counter { font-size: 12px; color: var(--green-accent); white-space: nowrap; }

/* ---------- Featured spotlight ---------- */

.spotlight {
  display: grid; grid-template-columns: 1fr;
  background: var(--bg-card);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .5);
  transition: border-color .3s;
}
.spotlight:hover { border-color: rgba(127, 209, 158, .5); }
@media (min-width: 768px) { .spotlight { grid-template-columns: repeat(12, 1fr); } }

.spotlight__media {
  position: relative; aspect-ratio: 16 / 9;
  background: rgba(27, 48, 36, .6);
  border-bottom: 1px solid var(--green-border);
  overflow: hidden;
}
@media (min-width: 768px) {
  .spotlight__media { grid-column: span 7; border-bottom: 0; border-right: 1px solid var(--green-border); aspect-ratio: auto; min-height: 320px; }
}
.spotlight__media > svg, .spotlight__media > video, .spotlight__media > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.spotlight:hover .spotlight__media > * { transform: scale(1.03); }

.spotlight__body {
  padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
@media (min-width: 768px) { .spotlight__body { grid-column: span 5; } }
.spotlight__body h3 { font-size: 24px; margin: 0 0 12px; }
.spotlight__body p { margin: 0; color: var(--text-muted); font-size: 15px; }

.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 16px; }
.badge {
  font-family: var(--font-mono); font-weight: 500; font-size: 11px;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 3px 10px; border-radius: 4px;
  background: rgba(127, 209, 158, .15); color: var(--green-accent);
  border: 1px solid rgba(127, 209, 158, .3);
}
.meta { font-family: var(--font-mono); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Catalog grid ---------- */

.catalog { margin-top: 64px; }

.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid:not(.grid--two) { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.card:hover {
  border-color: var(--green-accent);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(127, 209, 158, .25);
}
.card__thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: rgba(27, 48, 36, .5);
  border: 1px solid rgba(44, 71, 56, .6);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.card__thumb { display: block; }
.card__thumb svg, .card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__thumb svg, .card:hover .card__thumb img { transform: scale(1.05); }
.card__links { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.card .more.more--quiet { color: var(--text-muted); }
.card .tag { font-family: var(--font-mono); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--green-accent); }
.card h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; font-size: 18px; margin: 4px 0 8px; }
.card p { color: var(--text-muted); font-size: 14px; margin: 0 0 16px; }
.card .more {
  font-family: var(--font-mono); font-weight: 500; font-size: 12px; text-transform: uppercase;
  letter-spacing: .08em; color: var(--green-accent);
  display: inline-flex; gap: 6px; align-self: flex-start;
}
.card .more:hover { text-decoration: underline; text-underline-offset: 4px; }
.card .more .arrow { transition: transform .2s var(--ease); }
.card:hover .more .arrow { transform: translateX(3px); }

.card--empty { border-style: dashed; background: transparent; }
.card--empty:hover { box-shadow: none; }

/* ---------- Studio strip ---------- */

.studio {
  background: var(--green-dark);
  border-top: 1px solid var(--green-border);
  border-bottom: 1px solid var(--green-border);
  padding: 72px 0;
}
.studio__statement { max-width: 48rem; margin: 0 auto; text-align: center; }
.studio__statement p.lead { font-size: 18px; color: rgba(242, 239, 233, .9); margin: 0; }
@media (min-width: 768px) { .studio__statement p.lead { font-size: 20px; } }
.studio__story { color: var(--text-muted); font-size: 16px; margin: 20px 0 0; text-wrap: balance; }
.studio__story code {
  font-family: var(--font-mono); font-size: .88em; color: var(--green-accent);
  background: rgba(44, 71, 56, .35); padding: 1px 6px; border-radius: 4px; white-space: nowrap;
}

.pillars { margin-top: 56px; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.pillar {
  background: rgba(22, 24, 23, .45);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color .3s, background-color .3s;
}
.pillar:hover { border-color: rgba(127, 209, 158, .6); background: rgba(22, 24, 23, .65); }
.pillar__icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: rgba(127, 209, 158, .1); border: 1px solid rgba(127, 209, 158, .3);
  margin-bottom: 16px;
}
.pillar__icon svg { width: 20px; height: 20px; }
.pillar .num { font-size: 11px; color: var(--text-muted); float: right; }
.pillar h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; font-size: 18px; margin: 0 0 6px; }
.pillar p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* ---------- Contact CTA band ---------- */

.cta {
  position: relative; overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center;
}
/* Small phones: tighter card padding so the email address button fits on one line */
@media (max-width: 479px) {
  .cta { padding: 40px 20px; }
  .cta .actions .btn { max-width: 100%; font-size: 14px; padding: 12px 16px; }
}
@media (min-width: 768px) { .cta { grid-template-columns: 1.4fr 1fr; padding: 56px; } }
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(127, 209, 158, .14) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
  mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 8px; }
.cta p { margin: 0; color: var(--text-muted); }
.cta .actions { justify-content: flex-start; }
@media (min-width: 768px) { .cta .actions { justify-content: flex-end; } }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid rgba(44, 71, 56, .4); }
.site-footer .container {
  padding-top: 40px; padding-bottom: 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 12px; color: var(--text-muted);
}
@media (min-width: 640px) { .site-footer .container { flex-direction: row; } }
.site-footer .legal { display: flex; align-items: center; gap: 10px; }
.site-footer .legal .sq { width: 14px; height: 14px; background: var(--text-bone); display: inline-block; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer nav a { transition: color .2s; }
.site-footer nav a:hover { color: var(--green-accent); }

/* ---------- Back to top ---------- */

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: var(--bg-card); color: var(--green-accent);
  border: 1px solid var(--green-border);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s, transform .25s var(--ease), visibility .25s, border-color .2s;
  cursor: pointer;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--green-accent); }

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Legal / privacy page ---------- */

.legal-page { max-width: 48rem; margin: 0 auto; padding: 64px 24px; }
.legal-page .back {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 32px;
  font-family: var(--font-mono); font-weight: 500; font-size: 12px;
  text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted);
  transition: color .2s;
}
.legal-page .back:hover { color: var(--green-accent); }
.legal-page h1 { font-size: clamp(34px, 6vw, 44px); margin: 0 0 16px; }
.legal-page .dates { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 32px; font-size: 12px; color: var(--text-muted); }
.legal-page .dates strong { color: var(--text-bone); font-weight: 500; }

.toc {
  background: var(--bg-card); border: 1px solid var(--green-border); border-radius: var(--radius-md);
  padding: 20px 24px; margin: 0 0 48px;
}
.toc p { margin: 0 0 10px; font-size: 11px; color: var(--green-accent); }
.toc ol { margin: 0; padding-left: 20px; columns: 1; color: var(--text-muted); font-size: 14px; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { padding: 3px 0; break-inside: avoid; }
.toc a { color: var(--text-muted); transition: color .2s; }
.toc a:hover { color: var(--green-accent); }

.prose { color: var(--text-muted); font-size: 16px; }
.prose h2 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em;
  color: var(--text-bone); font-size: 22px; line-height: 1.3;
  margin: 48px 0 16px; padding-top: 32px; border-top: 1px solid rgba(44, 71, 56, .6);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-family: var(--font-display); font-weight: 600; color: var(--text-bone); font-size: 17px; margin: 28px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 0 0 8px; }
.prose li::marker { color: var(--green-accent); }
.prose strong { color: var(--text-bone); font-weight: 600; }
.prose a { color: var(--green-accent); text-decoration: underline; text-decoration-color: rgba(127, 209, 158, .4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--green-accent); }
.prose code {
  font-family: var(--font-mono); font-size: .88em; color: var(--text-bone);
  background: rgba(44, 71, 56, .35); padding: 1px 6px; border-radius: 4px;
}
.prose address { font-style: normal; }

/* ---------- Pixel pines ---------- */

/* Treelines are SVG masks, so one shape file can be tinted per context. */
.treeline {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: var(--tree-h, 150px);
  pointer-events: none;
}
.treeline__layer {
  position: absolute; left: 0; right: 0; bottom: 0; height: 100%;
  -webkit-mask: var(--tree-img) repeat-x left bottom / auto 100%;
  mask: var(--tree-img) repeat-x left bottom / auto 100%;
  will-change: transform;
}
.treeline__layer--back {
  --tree-img: url(../img/pines/treeline-back.svg);
  height: 82%;
  background: var(--tree-back, rgba(44, 71, 56, .55));
  -webkit-mask-position: 140px bottom; mask-position: 140px bottom;
}
.treeline__layer--front {
  --tree-img: url(../img/pines/treeline-front.svg);
  background: var(--tree-front, var(--green-dark));
}
/* Hero gets a third, distant row of pines for the parallax effect */
.treeline__layer--far {
  --tree-img: url(../img/pines/treeline-back.svg);
  height: 64%; bottom: 22%;
  background: rgba(44, 71, 56, .3);
  -webkit-mask-position: 420px bottom; mask-position: 420px bottom;
}

.hero { --tree-h: 120px; padding-bottom: 168px; }
@media (min-width: 768px) { .hero { --tree-h: 170px; padding-bottom: 220px; } }

.studio {
  position: relative; border-bottom: 0;
  padding-bottom: 150px; --tree-h: 110px;
  --tree-front: var(--bg-charcoal); --tree-back: rgba(22, 24, 23, .4);
}
@media (min-width: 768px) { .studio { padding-bottom: 190px; --tree-h: 140px; } }
.studio > .container { position: relative; z-index: 1; }

/* Fireflies: mint pixels that blink above the treeline */
.hero__fireflies { position: absolute; inset: 0; pointer-events: none; }
.spotlight__media { display: block; }
.firefly {
  position: absolute; width: 4px; height: 4px; background: var(--green-accent);
  box-shadow: 0 0 10px 2px rgba(127, 209, 158, .45);
  opacity: 0; animation: blink var(--d, 5s) ease-in-out var(--t, 0s) infinite;
}
@keyframes blink {
  0%, 100% { opacity: 0; transform: translate(0, 0); }
  40%, 60% { opacity: .9; }
  50% { transform: translate(var(--x, 6px), var(--y, -10px)); }
}

/* Pine glyph used as a bullet / inline mark */
.pine-mark {
  display: inline-block; width: 14px; height: 14px; flex: none;
  background: currentColor;
  -webkit-mask: url(../img/pines/pine-glyph.svg) center / contain no-repeat;
  mask: url(../img/pines/pine-glyph.svg) center / contain no-repeat;
}
.eyebrow .pine-mark { width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; }
.pine-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pine-list li { display: flex; gap: 14px; align-items: flex-start; }
.pine-list .pine-mark { color: var(--green-accent); margin-top: 5px; }
.pine-list strong { color: var(--text-bone); font-weight: 600; }

/* ---------- Section fade-in ---------- */

.js .fade-section {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js .fade-section.is-in { opacity: 1; transform: none; }

/* ---------- Game detail page ---------- */

.game-hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid rgba(44, 71, 56, .4);
  --tree-h: 90px;
}
.game-hero .hero__glow { background: radial-gradient(circle at 75% 35%, var(--green-dark) 0%, var(--bg-charcoal) 65%); }
.game-hero__inner {
  position: relative; z-index: 1;
  display: grid; gap: 32px; align-items: center;
  padding-top: 32px; padding-bottom: 110px;
}
@media (min-width: 960px) {
  .game-hero__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px;
    min-height: calc(100svh - var(--nav-h));
    padding-top: 40px; padding-bottom: 120px;
  }
}

.crumbs { display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--text-muted); margin: 0 0 20px; }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--green-accent); }
.crumbs span[aria-hidden] { color: var(--green-border); }

.game-title { font-size: clamp(40px, 6vw, 64px); margin: 0 0 16px; }
.game-lede { color: var(--text-muted); font-size: 17px; margin: 0 0 28px; max-width: 34rem; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 190px; padding: 10px 18px 10px 14px;
  border-radius: 10px; border: 1px solid var(--green-border);
  background: var(--bg-card); color: var(--text-bone);
  transition: border-color .2s, transform .2s var(--ease), filter .2s;
}
.store-btn:hover { border-color: var(--green-accent); transform: translateY(-2px); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn small { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); line-height: 1.3; }
.store-btn strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; line-height: 1.2; }
.store-btn--primary { background: var(--green-accent); border-color: var(--green-accent); color: var(--bg-charcoal); }
.store-btn--primary small { color: rgba(22, 24, 23, .7); }
.store-btn--primary:hover { filter: brightness(1.08); }
.launch-note { font-size: 13px; color: var(--text-muted); margin: -8px 0 24px; }
/* "Coming soon" store button: not a link yet, so no hover lift */
.store-btn--soon, .btn--soon { cursor: default; }
.store-btn--soon:hover, .btn--soon:hover { transform: none; filter: none; }

.quick-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.quick-facts li { font-size: 11px; color: var(--text-muted); }
.quick-facts b { color: var(--text-bone); font-weight: 500; margin-left: 6px; }

/* ---------- Carousel ---------- */

.carousel { position: relative; min-width: 0; }
.carousel__frame {
  position: relative;
  border: 1px solid var(--green-border); border-radius: var(--radius-lg);
  background: var(--bg-card); overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.carousel__track {
  display: flex; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: -3px; }
.carousel__slide {
  flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always;
  aspect-ratio: 16 / 9; margin: 0;
}
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
/* Portrait screenshots: add .carousel--portrait to show phone-shaped slides */
.carousel--portrait .carousel__slide { flex-basis: 50%; aspect-ratio: 6 / 13; }
@media (min-width: 640px) { .carousel--portrait .carousel__slide { flex-basis: 33.333%; } }
.carousel--portrait .carousel__frame { background: #1a1410; }
.carousel--portrait .carousel__slide + .carousel__slide { border-left: 1px solid rgba(0, 0, 0, .35); }
.carousel--portrait .carousel__thumb { width: 30px; aspect-ratio: 6 / 13; }
.carousel__thumb.is-visible { opacity: .85; }

.carousel__nav {
  position: absolute; top: 50%; z-index: 2;
  width: 42px; height: 42px; margin-top: -21px;
  display: grid; place-items: center;
  background: rgba(22, 24, 23, .78); color: var(--text-bone);
  border: 1px solid var(--green-border); border-radius: var(--radius-sm);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  cursor: pointer; transition: border-color .2s, color .2s, opacity .2s;
}
.carousel__nav:hover { border-color: var(--green-accent); color: var(--green-accent); }
.carousel__nav[disabled] { opacity: 0; pointer-events: none; }
.carousel__nav--prev { left: 12px; }
.carousel__nav--next { right: 12px; }

.carousel__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.carousel__thumbs { position: relative; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.carousel__thumbs::-webkit-scrollbar { display: none; }
.carousel__thumb {
  flex: none; width: 72px; aspect-ratio: 16 / 9; padding: 0;
  border: 1px solid var(--green-border); border-radius: 6px; overflow: hidden;
  background: var(--bg-card); cursor: pointer; opacity: .55;
  transition: opacity .2s, border-color .2s;
}
.carousel__thumb img { width: 100%; height: 100%; object-fit: cover; }
.carousel__thumb:hover { opacity: .85; }
.carousel__thumb[aria-current="true"] { opacity: 1; border-color: var(--green-accent); }
.carousel__count { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.carousel__count b { color: var(--green-accent); font-weight: 500; }
@media (max-width: 479px) { .carousel__thumb { width: 52px; } }

/* ---------- Game page body ---------- */

.game-body { display: grid; gap: 48px; }
@media (min-width: 960px) { .game-body { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } }
.game-body h2 { font-size: 24px; margin: 0 0 20px; }
.game-body .lead { color: var(--text-muted); margin: 0 0 24px; }

.facts {
  background: var(--bg-card); border: 1px solid var(--green-border); border-radius: var(--radius-md);
  padding: 8px 24px; margin: 0;
}
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(44, 71, 56, .6); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-family: var(--font-mono); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); padding-top: 3px; }
.facts dd { margin: 0; text-align: right; color: var(--text-bone); font-size: 14px; }
.facts dd a { color: var(--green-accent); }
.facts dd a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .fade-section { opacity: 1; transform: none; }
  .firefly { display: none; }
}

/* Keep the floating back-to-top button clear of the footer links */
@media (max-width: 1279px) { .site-footer .container { padding-right: 84px; } }
@media (max-width: 639px)  { .site-footer .container { padding-right: 24px; padding-bottom: 88px; } }
