/* Forge Ember — DOGS locked web style.
   Full-screen Y-scroll-snap panels (100svh), one idea per screen.
   Motion: transform/opacity only, 60fps, never blocks input.
   Honours prefers-reduced-motion. Phone-first at 390px. */
:root {
  --bg: #0d0906;
  --ink: #f6f1e7;
  --muted: #b7a78c;
  --ember: #ff6b1a;
  --ember-soft: #ffa14d;
  --display: "Anton", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --header-h: 60px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-snap-type: y mandatory; scrollbar-width: thin; scrollbar-color: var(--ember) var(--bg); }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  background: linear-gradient(to bottom, rgba(13, 9, 6, 0.85), rgba(13, 9, 6, 0));
}
.wordmark {
  text-decoration: none;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.wordmark .mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--ember);
  color: var(--bg);
  font-style: normal;
  font-size: 18px;
}
.nav-cta {
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(246, 241, 231, 0.35);
  border-radius: 9999px;
  padding: 10px 18px;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-cta:hover, .nav-cta:focus-visible { border-color: var(--ember); color: var(--ember); }
.nav-cta:active { transform: scale(0.97); }

.progress {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  height: 2px;
  z-index: 50;
  background: rgba(246, 241, 231, 0.08);
}
.progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- panels ---------- */
.panels { position: relative; }
.panel {
  position: relative;
  height: 100svh;
  min-height: 560px;
  scroll-snap-align: start;
  overflow: hidden;
  display: flex;
}
.bg { position: absolute; inset: 0; overflow: hidden; }
.bg img {
  width: 100%;
  height: 124%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}
.bg-low img { object-position: center 80%; }
.bg-top img { object-position: center 20%; }
.bg-dark img { filter: brightness(0.55) saturate(1.1); }

@media (prefers-reduced-motion: no-preference) {
  .bg img {
    animation: drift linear both;
    animation-timeline: view();
  }
}
@keyframes drift {
  from { transform: translateY(-9%); }
  to { transform: translateY(9%); }
}

.scrim { position: absolute; inset: 0; pointer-events: none; }
.scrim-bottom { background: linear-gradient(to top, rgba(13,9,6,0.92) 0%, rgba(13,9,6,0.45) 38%, rgba(13,9,6,0.05) 70%); }
.scrim-top { background: linear-gradient(to bottom, rgba(13,9,6,0.92) 0%, rgba(13,9,6,0.45) 38%, rgba(13,9,6,0.05) 70%); }
.scrim-right { background: linear-gradient(to left, rgba(13,9,6,0.92) 0%, rgba(13,9,6,0.5) 40%, rgba(13,9,6,0.05) 75%); }
.scrim-left { background: linear-gradient(to right, rgba(13,9,6,0.92) 0%, rgba(13,9,6,0.5) 42%, rgba(13,9,6,0.05) 75%); }

/* copy placement — varied, never forced to vertical center */
.copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: var(--pad);
  padding-top: calc(var(--header-h) + 16px);
  max-width: 900px;
}
.pos-bl .copy { justify-content: flex-end; align-items: flex-start; padding-bottom: max(var(--pad), env(safe-area-inset-bottom)); }
.pos-tr .copy { justify-content: flex-start; align-items: flex-end; text-align: right; }
.pos-tl .copy { justify-content: flex-start; align-items: flex-start; }
.pos-r .copy { justify-content: center; align-items: flex-end; text-align: right; margin-left: auto; }
.pos-l .copy { justify-content: center; align-items: flex-start; }
.pos-br .copy { justify-content: flex-end; align-items: flex-end; text-align: right; padding-bottom: max(var(--pad), env(safe-area-inset-bottom)); }

.word {
  font-family: var(--display);
  font-size: clamp(70px, 16.5vw, 220px);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
  max-width: 100%;
  white-space: nowrap;
}
h1.word { font-size: clamp(96px, 23vw, 300px); }
/* long display words get a smaller scale so they never clip */
.word-sm { font-size: clamp(54px, 13vw, 180px); }
.line {
  margin: 0;
  font-size: clamp(19px, 4.6vw, 26px);
  font-weight: 500;
  line-height: 1.32;
  max-width: 22ch;
}
.line.dim { color: var(--muted); font-weight: 300; }
.pos-tr .line, .pos-r .line, .pos-br .line { margin-left: auto; }
.kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember-soft);
}
.note {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 34ch;
  border-left: 2px solid var(--ember);
  padding-left: 12px;
}
.pos-tr .note { border-left: 0; border-right: 2px solid var(--ember); padding-left: 0; padding-right: 12px; margin-left: auto; }
.fine {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 30px;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn-primary { background: var(--ember); color: var(--bg); border: 1px solid var(--ember); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--ember-soft); border-color: var(--ember-soft); }
.btn-primary:active { transform: scale(0.97); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid rgba(246,241,231,0.4); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--ember); color: var(--ember); }
.btn-ghost:active { transform: scale(0.97); }

/* badge */
.badge { display: inline-block; margin-top: 18px; line-height: 0; }
.badge img { width: clamp(180px, 46vw, 300px); height: auto; }

/* ---------- reveals: staggered clip ---------- */
.rise {
  opacity: 0;
  transform: translateY(28px);
  clip-path: inset(0 0 100% 0);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease),
    clip-path 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.panel.in .rise {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0% 0);
}

@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; clip-path: none; transition: none; }
  .bg img { animation: none; }
  html { scroll-snap-type: none; }
}

/* ---------- wider screens ---------- */
@media (min-width: 900px) {
  .copy { max-width: 1000px; }
  .word { font-size: clamp(110px, 12vw, 220px); }
  h1.word { font-size: clamp(150px, 17vw, 320px); }
}

@media (max-height: 620px) {
  .word { font-size: clamp(64px, 14vh, 120px); }
  h1.word { font-size: clamp(80px, 17vh, 150px); }
  .line { font-size: 17px; }
}
