:root {
  --forest: #10271f;
  --forest-deep: #081711;
  --moss: #4e7b53;
  --lime: #d6f06d;
  --paper: #f4f2ea;
  --ink: #142019;
  --muted: #69736d;
  --line: rgba(20, 32, 25, 0.16);
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.viewer-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  padding: .75rem 1rem;
  background: var(--white);
  color: var(--ink);
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 4vw;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.brand img { display: block; width: 150px; height: auto; }
.header-link {
  color: var(--white);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .02em;
  border-bottom: 1px solid rgba(255,255,255,.65);
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 92vh;
  min-height: 700px;
  overflow: hidden;
  color: var(--white);
  background: var(--forest);
}
.hero-image {
  position: absolute;
  inset: 0;
  background: url("assets/thumbs/p16.jpg") center 48% / cover no-repeat;
  transform: scale(1.04);
  animation: hero-arrive 1.4s ease-out both;
}
@keyframes hero-arrive { from { opacity: 0; transform: scale(1.1); } to { opacity: 1; transform: scale(1.04); } }
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,12,8,.25) 5%, rgba(3,12,8,.08) 40%, rgba(3,12,8,.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(880px, 86vw);
  margin: 0 0 9vh 6vw;
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--lime);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow.dark { color: var(--moss); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.045em; line-height: .96; }
h1 { max-width: 760px; margin-bottom: 1.5rem; font-size: 5.8rem; font-size: clamp(3.4rem, 8.8vw, 8.1rem); font-weight: 500; }
.hero-copy { max-width: 630px; margin-bottom: 2rem; font-size: 1.25rem; color: rgba(255,255,255,.86); }
.primary-button {
  min-height: 54px;
  padding: .95rem 1.4rem;
  border: 0;
  border-radius: 3px;
  background: var(--lime);
  color: var(--forest-deep);
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.primary-button:hover { transform: translateY(-2px); background: #e6fa8f; }
.hero-hint {
  position: absolute;
  right: 4vw;
  bottom: 3.2rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .82rem;
  color: rgba(255,255,255,.75);
}
.mouse-mark { width: 24px; height: 36px; border: 1px solid rgba(255,255,255,.7); border-radius: 14px; position: relative; }
.mouse-mark::after { content: ""; position: absolute; width: 3px; height: 7px; left: 10px; top: 7px; border-radius: 2px; background: var(--white); animation: scroll-mark 1.8s infinite; }
@keyframes scroll-mark { 0% { opacity: 0; transform: translateY(0); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(9px); } }

.intro {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 8vw;
  padding: 8rem 6vw;
  border-bottom: 1px solid var(--line);
}
.intro-copy { max-width: 720px; }
.intro h2, .gallery-head h2, .how-it-works h2 { margin-bottom: 1.8rem; font-size: 3.2rem; font-size: clamp(2.5rem, 5vw, 4.8rem); font-weight: 500; }
.intro-copy > p:last-child { max-width: 620px; color: var(--muted); font-size: 1.12rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); align-self: end; margin: 0; }
.stats div { padding: 0 1.2rem; border-left: 1px solid var(--line); }
.stats dt { font-size: 2.7rem; letter-spacing: -.05em; }
.stats dd { margin: .2rem 0 0; color: var(--muted); font-size: .84rem; text-transform: uppercase; letter-spacing: .08em; }

.gallery-section { padding: 7rem 4vw 8rem; }
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.gallery-head h2 { margin-bottom: 0; }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; }
.filter {
  min-height: 44px;
  padding: .65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 50px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.filter span { margin-left: .4rem; color: var(--muted); font-size: .8rem; }
.filter.active { border-color: var(--forest); background: var(--forest); color: var(--white); }
.filter.active span { color: rgba(255,255,255,.65); }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.2rem; }
.gallery-card {
  position: relative;
  grid-column: span 4;
  min-height: 390px;
  overflow: hidden;
  border-radius: 4px;
  background: #d8ddd8;
  color: var(--white);
  cursor: pointer;
  isolation: isolate;
}
.gallery-card:nth-child(7n + 1), .gallery-card:nth-child(7n + 5) { grid-column: span 8; }
.gallery-card button { position: absolute; inset: 0; z-index: 4; width: 100%; border: 0; background: transparent; color: inherit; cursor: pointer; text-align: left; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.gallery-card:hover img, .gallery-card:focus-within img { transform: scale(1.045); }
.card-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 35%, rgba(4,14,9,.78) 100%); }
.card-content { position: absolute; z-index: 2; left: 1.5rem; right: 1.5rem; bottom: 1.35rem; pointer-events: none; }
.card-kicker { display: block; margin-bottom: .45rem; color: var(--lime); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; }
.card-content h3 { margin: 0; font-size: 1.35rem; font-weight: 500; }
.card-badge { position: absolute; z-index: 2; top: 1rem; right: 1rem; padding: .45rem .65rem; border: 1px solid rgba(255,255,255,.35); border-radius: 50px; background: rgba(9,23,17,.55); backdrop-filter: blur(6px); font-size: .75rem; }
.empty-state { padding: 5rem 1rem; border: 1px solid var(--line); text-align: center; color: var(--muted); }
.empty-state p { font-size: 1.35rem; }
.text-button { border: 0; border-bottom: 1px solid; padding: .2rem 0; background: transparent; color: var(--ink); cursor: pointer; font-weight: 700; }

.how-it-works { display: grid; grid-template-columns: .9fr 1.1fr; gap: 6vw; padding: 8rem 6vw; background: var(--forest); color: var(--white); }
.control-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.17); }
.control-list > div { padding: 2rem 1.5rem; background: var(--forest); }
.control-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 2.2rem; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: var(--lime); font-size: 1.2rem; }
.control-list h3 { margin-bottom: .5rem; font-size: 1.1rem; }
.control-list p { margin: 0; color: rgba(255,255,255,.6); font-size: .9rem; }

.site-footer { display: flex; align-items: center; gap: 2rem; padding: 3rem 6vw; background: var(--forest-deep); color: rgba(255,255,255,.65); }
.site-footer img { width: 130px; height: auto; }
.site-footer p { margin: 0; }
.site-footer a { margin-left: auto; color: var(--white); text-decoration-color: rgba(255,255,255,.4); }

.viewer { position: fixed; inset: 0; z-index: 100; background: #050a07; color: var(--white); }
.viewer[hidden] { display: none; }
.viewer-stage, .viewer-stage canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.viewer-stage { position: absolute; inset: 0; cursor: grab; }
.viewer-stage.dragging { cursor: grabbing; }
.viewer::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.48), transparent 22%, transparent 58%, rgba(0,0,0,.72)); }
.viewer-topbar { position: absolute; z-index: 4; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 1rem max(1rem, env(safe-area-inset-left)); }
.viewer-brand img { width: 120px; height: auto; }
.viewer-actions { display: flex; gap: .45rem; }
.round-button, .viewer-nav, .video-controls button { border: 1px solid rgba(255,255,255,.35); background: rgba(5,14,9,.52); color: var(--white); backdrop-filter: blur(8px); cursor: pointer; }
.round-button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.round-button.wide { width: auto; border-radius: 50px; padding: 0 .95rem; font-size: .78rem; }
.round-button.close { margin-left: .45rem; font-size: 1.45rem; }
.viewer-nav { position: absolute; z-index: 4; top: 50%; transform: translateY(-50%); padding: .75rem .9rem; border-radius: 50px; font-size: .78rem; }
.viewer-nav.previous { left: 1rem; }
.viewer-nav.next { right: 1rem; }
.viewer-bottom { position: absolute; z-index: 4; left: 4vw; right: 4vw; bottom: max(1.5rem, env(safe-area-inset-bottom)); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem; }
.viewer-meta { max-width: 640px; }
.viewer-type { display: block; margin-bottom: .55rem; color: var(--lime); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.viewer-meta h2 { margin-bottom: .55rem; font-size: 2rem; font-weight: 500; line-height: 1.05; }
.viewer-meta p { margin: 0; color: rgba(255,255,255,.7); }
.viewer-instruction { grid-column: 2; grid-row: 1; margin: 0; color: rgba(255,255,255,.55); font-size: .78rem; }
.viewer-loading { position: absolute; z-index: 5; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; background: var(--forest-deep); font-size: .85rem; letter-spacing: .04em; transition: opacity .3s ease; }
.viewer-loading.loaded { opacity: 0; pointer-events: none; }
.spinner { width: 42px; height: 42px; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--lime); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.video-controls { grid-column: 1 / -1; display: grid; grid-template-columns: auto auto minmax(120px, 1fr) auto auto; align-items: center; gap: .8rem; width: min(760px, 92vw); padding: .65rem; border: 1px solid rgba(255,255,255,.2); border-radius: 4px; background: rgba(5,14,9,.68); backdrop-filter: blur(10px); }
.video-controls[hidden] { display: none; }
.video-controls button { min-height: 36px; padding: .4rem .8rem; border-radius: 3px; }
.video-controls span { font-size: .78rem; color: rgba(255,255,255,.75); }
.video-controls input { width: 100%; accent-color: var(--lime); }

noscript { display: block; padding: 1rem; background: #ffe7a8; color: #2a2108; text-align: center; }

@media (max-width: 900px) {
  .hero { min-height: 680px; }
  .hero-content { margin-left: 5vw; }
  .intro, .how-it-works { grid-template-columns: 1fr; }
  .intro { gap: 4rem; }
  .gallery-head { align-items: flex-start; flex-direction: column; }
  .gallery-card, .gallery-card:nth-child(7n + 1), .gallery-card:nth-child(7n + 5) { grid-column: span 6; min-height: 330px; }
  .control-list { max-width: 760px; }
}

@media (max-width: 620px) {
  .site-header { padding: 1rem 1.1rem; }
  .brand img { width: 118px; }
  .header-link { font-size: .8rem; }
  .hero { min-height: 650px; }
  .hero-content { width: auto; margin: 0 1.1rem 6.5rem; }
  h1 { font-size: 3.35rem; }
  .hero-copy { font-size: 1.02rem; }
  .hero-hint { display: none; }
  .intro, .gallery-section, .how-it-works { padding: 5rem 1.1rem; }
  .intro h2, .gallery-head h2, .how-it-works h2 { font-size: 2.5rem; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats div { padding: 0 .55rem; }
  .stats dt { font-size: 1.85rem; }
  .stats dd { font-size: .65rem; }
  .gallery-grid { display: block; }
  .gallery-card { min-height: 300px; margin-bottom: .9rem; }
  .control-list { grid-template-columns: 1fr; }
  .control-icon { margin-bottom: 1rem; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 1rem; padding: 2.5rem 1.1rem; }
  .site-footer a { margin: .5rem 0 0; }
  .viewer-actions .round-button:first-child, .viewer-actions .round-button:nth-child(2) { display: none; }
  .round-button.wide { padding: 0 .7rem; }
  .viewer-brand img { width: 96px; }
  .viewer-nav { top: auto; bottom: 12.5rem; }
  .viewer-bottom { left: 1rem; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); display: block; }
  .viewer-meta h2 { font-size: 1.55rem; }
  .viewer-meta p { max-width: 85%; font-size: .85rem; }
  .viewer-instruction { margin-top: .7rem; }
  .video-controls { grid-template-columns: auto auto minmax(60px, 1fr) auto; gap: .45rem; width: 100%; margin-top: .8rem; }
  .video-controls #video-mute { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
