/* CocoForge — website
   Design system carried over from the coming-soon page (css/style.css): same palette sampled
   from the wordmark (#c4a058) and packaging (#cda746), Outfit, the shimmering gold headline,
   gold-ring icons, ember glow, film grain and the 3D forge hero (js/hero-scene.js). */
:root {
  --bg: #0a0a08;
  --bg-raise: #14120e;
  --bg-field: #0f0e0b;
  --gold: #cda746;
  --gold-hi: #f3d78f;
  --gold-deep: #94722b;
  --ember: #ff6a1a;
  --ember-hot: #ffb04a;
  --text: #f5f0e6;
  --muted: #b9ad98;
  --faint: #8a8070;
  --line: rgba(205, 167, 70, 0.32);
  --rule: rgba(245, 240, 230, 0.08);

  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 4.2vw, 64px);
  --maxw: 1240px;
  --header-h: 76px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 20px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
strong { font-weight: 500; color: var(--text); }
::selection { background: rgba(205, 167, 70, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 4px;
  background: var(--gold);
  color: var(--bg);
  font-weight: 500;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.85;
}
.eyebrow svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.eyebrow .num { color: var(--text); font-variant-numeric: tabular-nums; }

h1, h2, h3 { font-weight: 600; color: var(--text); text-wrap: balance; }
h1 .line, h2 .line { display: block; }
.display {
  font-size: clamp(2.5rem, 12.4vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.display-2 {
  font-size: clamp(2.5rem, 6.4vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
h2, .h2 {
  font-size: clamp(2.1rem, 4.6vw, 4.1rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.eyebrow + h1, .eyebrow + h2 { margin-top: 22px; }

/* The shimmering gold line from the coming-soon headline. */
.gold {
  padding-bottom: 0.08em; /* keeps descenders inside the clipped gradient */
  background: linear-gradient(100deg, var(--gold-deep) 0%, var(--gold) 22%, var(--gold-hi) 42%, var(--gold) 58%, #b48633 80%, var(--gold-deep) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  color: transparent;
  animation: shimmer 7s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.lead-lg {
  margin-top: 26px;
  max-width: 54ch;
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
  line-height: 1.65;
  color: var(--muted);
}
.copy > p { color: var(--muted); max-width: 58ch; }
.copy > p + p { margin-top: 1em; }
.copy > h2 + p, .copy > h3 + p { margin-top: 24px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.4s ease, transform 0.4s var(--ease-out);
}
.btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease-out);
}
.btn-gold { background: var(--gold); color: #0a0a08; }
.btn-gold:hover {
  background: var(--gold-hi);
  box-shadow: 0 10px 34px -10px rgba(255, 140, 40, 0.65);
  transform: translateY(-1px);
}
.btn:hover svg.go { transform: translateX(3px); }
.btn:hover svg.out { transform: translate(2px, -2px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.7rem; gap: 10px; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.link-arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease-out);
}
.link-arrow:hover { border-color: var(--gold); color: var(--gold-hi); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Ember-dot pill (the "badge" from the coming-soon page) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 18, 14, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.ember-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember-hot);
  box-shadow: 0 0 12px 2px rgba(255, 106, 26, 0.75);
  animation: ember-pulse 2.2s ease-in-out infinite;
}
@keyframes ember-pulse {
  0%, 100% { transform: scale(0.85); background: #ff7a22; }
  50% { transform: scale(1.15); background: #ffc266; }
}

/* Gold-ring icon (feature icons from the coming-soon page) */
.ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: radial-gradient(circle at 50% 65%, rgba(255, 120, 30, 0.14), transparent 70%);
  color: var(--gold);
  transition: box-shadow 0.4s ease, transform 0.4s var(--ease-out);
}
.ico svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}
.site-header.scrolled,
.site-header.menu-open {
  background: rgba(10, 10, 8, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--rule);
}
.header-inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand { display: block; width: clamp(128px, 14vw, 190px); }
.brand img { width: 100%; height: auto; filter: drop-shadow(0 2px 18px rgba(205, 167, 70, 0.18)); }

.nav ul { display: flex; gap: clamp(24px, 3vw, 44px); }
.nav a {
  position: relative;
  display: block;
  padding: 10px 0;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--muted);
  transition: color 0.25s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--gold); }

.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.menu-btn {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  color: var(--text);
}
.menu-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

.mobile-menu {
  border-top: 1px solid var(--rule);
  background: rgba(10, 10, 8, 0.97);
  padding: 8px 0 28px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.mobile-menu a[aria-current="page"] { color: var(--gold); }
.mobile-menu a svg { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 759px) {
  :root { --header-h: 66px; }
  .header-inner { grid-template-columns: 1fr auto; gap: 12px; }
  .nav { display: none; }
  .menu-btn { display: grid; }
  .header-cta { min-height: 38px; padding: 0 14px; letter-spacing: 0.14em; }
  .header-cta svg { display: none; }
}
@media (min-width: 760px) {
  .mobile-menu { display: none !important; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background: var(--bg);
}
.forge {
  position: absolute;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.8s ease;
  touch-action: pan-y;
}
.forge.ready { opacity: 1; }
.forge-fallback {
  position: absolute;
  inset: 0;
  z-index: -4;
  display: none;
  background:
    radial-gradient(ellipse 40% 45% at 72% 55%, rgba(255, 106, 26, 0.28), transparent 70%),
    url("/assets/fallback-fire.jpg") no-repeat 80% 52% / min(42vw, 640px) auto,
    var(--bg);
}
.no-webgl .forge-fallback { display: block; }
.no-webgl .forge, .no-webgl .hint { display: none; }

/* Darkens the side the copy sits on so text stays readable over the fire. */
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 72%, rgba(10, 10, 8, 0.85) 100%),
    linear-gradient(90deg, rgba(10, 10, 8, 0.92) 0%, rgba(10, 10, 8, 0.72) 30%, rgba(10, 10, 8, 0) 58%),
    radial-gradient(ellipse 120% 90% at 65% 50%, transparent 45%, rgba(0, 0, 0, 0.6) 100%);
}
.grain {
  position: absolute;
  inset: -50%;
  z-index: -2;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

.hero-inner {
  align-self: center;
  padding: calc(var(--header-h) + clamp(28px, 5vh, 64px)) 0 clamp(28px, 5vh, 56px);
}
.hero-copy { max-width: min(620px, 48vw); }
.hero .eyebrow + h1 { margin-top: clamp(18px, 2.6vh, 26px); }
.tagline {
  margin-top: clamp(20px, 3vh, 30px);
  font-size: clamp(1.2rem, 1.9vw, 1.6rem);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--text);
}
.hero .lead {
  margin-top: 10px;
  max-width: 46ch;
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-top: clamp(28px, 4.4vh, 42px);
}

.hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: clamp(18px, 3vw, 30px);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hint.show { opacity: 1; }
.hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 10px var(--ember);
  animation: ember-pulse 1.6s ease-in-out infinite;
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  transition: color 0.25s ease;
}
.scroll-cue:hover { color: var(--gold); }
.scroll-cue svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: nudge 2.4s ease-in-out infinite;
}
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Stacked hero: fire above the copy. Keep in sync with STACKED_QUERY in js/hero-scene.js. */
@media (max-width: 899px), (max-aspect-ratio: 23/20) {
  .hero-shade {
    background: linear-gradient(180deg, rgba(10, 10, 8, 0.3) 0%, rgba(10, 10, 8, 0) 12%, rgba(10, 10, 8, 0) 40%, rgba(10, 10, 8, 0.86) 56%, rgba(10, 10, 8, 0.96) 100%);
  }
  .forge-fallback {
    background:
      radial-gradient(ellipse 60% 30% at 50% 22%, rgba(255, 106, 26, 0.28), transparent 70%),
      url("/assets/fallback-fire.jpg") no-repeat 50% calc(var(--header-h) + 8px) / min(78vw, 440px) auto,
      var(--bg);
  }
  .hero-inner {
    align-self: start;
    padding-top: calc(var(--header-h) + clamp(220px, 40svh, 440px));
    text-align: center;
  }
  .hero-copy { max-width: 640px; margin-inline: auto; }
  .hero .eyebrow { justify-content: center; }
  .hero .eyebrow::after { content: ""; flex: none; width: 32px; height: 1px; background: currentColor; opacity: 0.85; }
  .hero .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; flex-direction: column; }
  .hero-foot { flex-direction: column; justify-content: center; text-align: center; gap: 12px; padding-top: 12px; }
  .hint { order: -1; }
}
@media (max-width: 560px) {
  .hero .eyebrow { letter-spacing: 0.16em; }
  .hero .eyebrow::before, .hero .eyebrow::after { display: none; }
}

/* Short landscape screens (e.g. 1280x720 laptops): keep the hero foot above the fold. */
@media (min-width: 900px) and (max-height: 760px) {
  .display { font-size: clamp(3rem, 11.5vh, 5.6rem); }
  .tagline { margin-top: 14px; }
  .hero-actions { margin-top: 22px; }
}

/* ---------- Feature strip ---------- */
.features-strip {
  background: var(--bg-raise);
  border-block: 1px solid var(--rule);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule); /* the gaps draw the dividers */
}
.feature-grid li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 30px clamp(14px, 1.6vw, 24px) 28px;
  background: var(--bg-raise);
}
.feature-grid li:hover .ico {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(255, 140, 40, 0.35);
}
.feature-grid .ico { width: 40px; height: 40px; }
.feature-grid .ico svg { width: 21px; height: 21px; }
.feature-grid strong { display: block; font-size: 0.95rem; line-height: 1.3; }
.feature-grid small {
  display: block;
  margin-top: 3px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
}
@media (max-width: 1180px) {
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid li { gap: 12px; padding: 24px 14px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(84px, 12vw, 160px); }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.split.wide-first { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.split.wide-copy { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
@media (max-width: 899px) {
  .split, .split.wide-first, .split.wide-copy { grid-template-columns: minmax(0, 1fr); }
  .split > .first-on-mobile { order: -1; }
}

/* Two packs */
.packs-visual { position: relative; }
.packs-visual::before {
  content: "";
  position: absolute;
  inset: 12% 0 -4%;
  z-index: -1;
  background: radial-gradient(ellipse 58% 46% at 50% 68%, rgba(255, 106, 26, 0.2), transparent 70%);
}
.packs-visual img { width: 100%; }

/* 3D box viewer (js/packs-scene.js); the static image stays until WebGL is ready */
.pack-viewer { position: relative; aspect-ratio: 10 / 9; }
.pack-fallback {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: contain;
}
.pack-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease;
  touch-action: pan-y;
  cursor: grab;
}
.pack-viewer.ready .pack-canvas { opacity: 1; }
.pack-viewer.ready .pack-fallback { visibility: hidden; }
.pack-viewer.swapping .pack-canvas { opacity: 0; transition-duration: 0.25s; }
.pack-viewer.dragging .pack-canvas { cursor: grabbing; }

.pack-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 8px;
}
.pack-controls[hidden] { display: none; }
.seg {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg-raise);
}
.seg button {
  min-width: 72px;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--gold); color: #0a0a08; }
.pack-replay {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--bg-raise);
  color: var(--gold);
  transition: border-color 0.25s ease;
}
.pack-replay:hover { border-color: var(--line); }
.pack-replay svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pack-hint {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
@media (hover: hover) { .h-touch { display: none; } }
@media (hover: none) { .h-mouse { display: none; } }
.pack-list > div { transition: opacity 0.3s ease, border-color 0.3s ease; }
.pack-list > div.current { border-top-color: var(--gold); }
.pack-list:has(.current) > div:not(.current) { opacity: 0.55; }
.pack-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 44px;
}
.pack-list > div { padding-top: 22px; border-top: 1px solid var(--line); }
.pack-list dt {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.pack-list dt small {
  margin-left: 6px;
  font-size: 0.34em;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  vertical-align: 0.5em;
}
.pack-list dd { margin-top: 12px; font-size: 0.95rem; line-height: 1.55; color: var(--muted); }
@media (max-width: 420px) {
  .pack-list { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

/* Six reasons: the side panel of the real box */
.panel-card {
  position: relative;
  padding: clamp(14px, 2.4vw, 30px);
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #0a0a0a; /* the box print's own black */
}
.panel-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: 6px;
  --c: var(--gold);
  background:
    linear-gradient(var(--c), var(--c)) top left / 20px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1px 20px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 20px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1px 20px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 20px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1px 20px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 20px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1px 20px no-repeat;
}
.panel-card img { width: 100%; }
.panel-card figcaption,
.figure-note {
  margin-top: 16px;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--faint);
}

/* Story band */
.story-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse 46% 62% at 50% 108%, rgba(255, 106, 26, 0.18), transparent 70%),
    var(--bg-raise);
  border-block: 1px solid var(--rule);
}
.band-flame {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: min(380px, 70vw);
  transform: translate(-50%, -50%);
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  opacity: 0.13;
}
.narrow { max-width: 760px; }
.story-band .eyebrow { justify-content: center; }
.story-band .eyebrow::after { content: ""; flex: none; width: 32px; height: 1px; background: currentColor; opacity: 0.85; }
.story-band p:not(.eyebrow) { margin: 26px auto 0; max-width: 52ch; color: var(--muted); font-size: 1.08rem; }
.story-band .link-arrow { margin-top: 40px; }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(64px, 9vw, 120px);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 88% 18%, rgba(255, 106, 26, 0.1), transparent 70%);
}

/* Our story */
.story-hero::before { display: none; } /* the artwork brings its own glow */
.story-hero h1 { font-size: clamp(2.5rem, 5.3vw, 4.8rem); }
.story-visual { position: relative; max-width: 480px; justify-self: center; width: 100%; }
.story-visual img {
  width: 100%;
  /* feather the edges so the artwork's backdrop melts into the page */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent);
  mask-composite: intersect;
}
.forged { border-top: 1px solid var(--rule); background: var(--bg-raise); }
.signoff {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}
.prisms { width: 100%; height: auto; overflow: visible; }
.prisms .side { fill: #1b1813; stroke: var(--gold); stroke-width: 1.3; stroke-linejoin: round; }
.prisms .side.top { fill: #24201a; }
.prisms .cap { fill: #0d0c0a; stroke: var(--gold); stroke-width: 1.6; stroke-linejoin: round; }
.prisms .hole { fill: url(#hole-glow); stroke: var(--gold); stroke-width: 1.3; }
.prisms .dim line { stroke: var(--faint); stroke-width: 1; }
.prisms .dim-label {
  fill: var(--gold);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  text-anchor: middle;
}
.prisms .tag {
  fill: var(--muted);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 2.2px;
  text-anchor: middle;
}
.prisms .floor { stroke: var(--rule); stroke-width: 1; }

/* Burn time (products page, "Forged for the BBQ") */
.burn { margin-top: 34px; border-top: 1px solid var(--rule); }
.burn > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.burn dt { color: var(--text); font-weight: 500; }
.burn dt small { display: block; margin-top: 2px; font-size: 0.82rem; font-weight: 300; color: var(--faint); }
.burn dd { font-size: 1.05rem; font-weight: 500; color: var(--gold); text-align: right; }
.burn-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.burn-title svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.burn-title + .burn { margin-top: 14px; }
/* value still to be confirmed by CocoForge: shown quietly, easy to find (class="tbc") */
.tbc { color: var(--faint) !important; font-weight: 400 !important; font-style: italic; }

/* ---------- Products ---------- */
.product { padding-block: clamp(72px, 10vw, 128px); border-top: 1px solid var(--rule); scroll-margin-top: var(--header-h); }
.product.alt { background: var(--bg-raise); }
.product-visual { position: relative; display: grid; place-items: center; min-height: 100%; }
.product-visual::before {
  content: "";
  position: absolute;
  inset: 6% 2% -2%;
  z-index: 0;
  background: radial-gradient(ellipse 56% 44% at 50% 66%, rgba(255, 106, 26, 0.2), transparent 70%);
}
.product-visual img { position: relative; width: 100%; max-width: 520px; }
.product-visual.block img { max-width: 560px; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.6)); }
.product h2 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.02em; }
.product h2 small {
  margin-left: 8px;
  font-size: 0.3em;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  vertical-align: 0.6em;
}
.product .new {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ember);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #0a0a08;
  vertical-align: 0.15em;
}
.spec {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin-top: 34px;
  max-width: 560px;
}
.spec > div { padding: 16px 0; border-top: 1px solid var(--rule); }
.spec dt { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.spec dd { margin-top: 6px; color: var(--text); line-height: 1.45; }
.spec .burn-row dd { color: var(--gold); font-weight: 500; }
@media (max-width: 420px) {
  .spec { grid-template-columns: minmax(0, 1fr); }
}
.product .btn { margin-top: 34px; }

/* Home: the product range teaser */
.range-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.range-head .copy { max-width: 860px; }
.range-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 899px) {
  .range-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
.range-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg-raise);
  transition: border-color 0.3s ease, transform 0.5s var(--ease-out);
}
.range-card:hover { border-color: var(--line); transform: translateY(-4px); }
.range-card .pic {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  margin-bottom: 22px;
  background: radial-gradient(ellipse 60% 46% at 50% 70%, rgba(255, 106, 26, 0.16), transparent 72%);
}
.range-card .pic img { position: absolute; inset: 4% 6%; width: 88%; height: 92%; object-fit: contain; }
.range-card .num { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.range-card h3 { margin-top: 10px; font-size: clamp(1.5rem, 2.2vw, 1.9rem); letter-spacing: -0.01em; }
.range-card p { margin-top: 10px; font-size: 0.95rem; line-height: 1.55; color: var(--muted); }
.range-card .more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.range-card .more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease-out); }
.range-card:hover .more svg { transform: translateX(4px); }

/* ---------- CTA band ---------- */
.cta-band {
  padding-block: clamp(72px, 10vw, 128px);
  background:
    radial-gradient(ellipse 50% 90% at 92% 110%, rgba(255, 106, 26, 0.16), transparent 70%),
    var(--bg-raise);
  border-top: 1px solid var(--rule);
}
.cta-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px 64px;
  flex-wrap: wrap;
}
.cta-inner .copy { max-width: 640px; }

/* ---------- How to use ---------- */
.step-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}
.step-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px 0 8px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.step-nav a span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
}
.step-nav a:hover { border-color: var(--line); color: var(--text); }

.safety {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255, 106, 26, 0.38);
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 106, 26, 0.09), rgba(255, 106, 26, 0.02));
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}
.safety svg {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  fill: none;
  stroke: var(--ember-hot);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.safety b {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember-hot);
}

.step { padding-block: clamp(72px, 10vw, 128px); }
.step + .step { border-top: 1px solid var(--rule); }
.step-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  column-gap: clamp(40px, 6vw, 96px);
  row-gap: 48px;
  align-items: start;
}
.step-visual { position: sticky; top: calc(var(--header-h) + 32px); }
@media (min-width: 900px) {
  /* step one: the electric-starter callout stays under the steps, the diagram spans both rows */
  .step-grid > .callout { grid-column: 1; margin-top: 0; }
  .step-grid > .step-visual { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 899px) {
  .step-grid { grid-template-columns: minmax(0, 1fr); }
  .step-visual { position: static; max-width: 520px; width: 100%; margin-inline: auto; }
}
.step h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
.step .copy > p:first-of-type { margin-top: 24px; }

.instructions { counter-reset: s; margin-top: 34px; }
.instructions li {
  counter-increment: s;
  position: relative;
  padding: 20px 0 20px 64px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}
.instructions li:last-child { border-bottom: 1px solid var(--rule); }
.instructions li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 17px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: radial-gradient(circle at 50% 65%, rgba(255, 120, 30, 0.14), transparent 70%);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.instructions strong { color: var(--text); }

.callout {
  margin-top: 48px;
  padding: clamp(24px, 3.4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-raise);
}
.callout h3 { margin-top: 16px; }
.callout p { margin-top: 12px; color: var(--muted); }
.aside-note {
  margin-top: 28px;
  padding-left: 20px;
  border-left: 2px solid var(--gold);
  color: var(--muted);
  max-width: 58ch;
}

.chimney-fig { padding: clamp(10px, 2vw, 20px) 0 0; }
.chimney { width: 100%; height: auto; }
.ch-line { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.ch-faint { fill: none; stroke: var(--gold); stroke-opacity: 0.45; stroke-width: 1.2; }
.ch-grate { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-dasharray: 2 5; }
.ch-brq { fill: #15130f; stroke: var(--gold); stroke-width: 1.3; stroke-linejoin: round; }
.ch-facet { fill: none; stroke: var(--gold); stroke-opacity: 0.5; stroke-width: 1; }
.ch-glow { fill: url(#ch-heat); animation: glow 3.2s ease-in-out infinite; }
.ch-hole { fill: var(--ember); }
.ch-flow {
  fill: none;
  stroke: var(--ember-hot);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 3 8;
  animation: flow 1.6s linear infinite;
}
/* loose pile of 5 cm pieces (generated, depth-sorted faces) */
.pc-cap, .pc-side, .pc-side-mid, .pc-side-hi { stroke: var(--gold); stroke-width: 1.1; stroke-linejoin: round; }
.pc-cap { fill: #0d0c0a; }
.pc-side { fill: #121009; }
.pc-side-mid { fill: #1a1712; }
.pc-side-hi { fill: #24201a; }
.ch-pile .ch-glow polygon { fill: url(#ch-heat); }
.ch-paper { fill: #1d1a14; stroke: var(--muted); stroke-width: 1.2; stroke-linejoin: round; }
.ch-crease { fill: none; stroke: var(--muted); stroke-opacity: 0.5; stroke-width: 1; }
.ch-flame path { fill: rgba(255, 138, 42, 0.18); stroke: #ff8a2a; stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ch-flame-back { opacity: 0.55; }
.ch-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 1.8s ease-in-out infinite; }
.ch-wave {
  fill: none;
  stroke: var(--gold);
  stroke-opacity: 0.6;
  stroke-width: 1.4;
  stroke-linecap: round;
  animation: rise 3s ease-in-out infinite;
  animation-delay: calc(var(--i) * -1s);
}
.ch-air { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ch-leader { fill: none; stroke: var(--faint); stroke-width: 1; }
.ch-label { fill: var(--muted); font-family: var(--font); font-size: 13px; font-weight: 500; letter-spacing: 1.6px; }
@keyframes flow { to { stroke-dashoffset: 22; } }
@keyframes glow { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
@keyframes flicker { 0%, 100% { transform: scale(1, 1); } 30% { transform: scale(0.96, 1.06); } 60% { transform: scale(1.03, 0.95); } }
@keyframes rise { 0%, 100% { transform: translateY(0); opacity: 0.35; } 50% { transform: translateY(-6px); opacity: 1; } }

/* Air dial (step two) */
.dial {
  padding: clamp(24px, 3.4vw, 36px);
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--bg-raise);
}
.dial-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.dial-bar {
  position: relative;
  height: 10px;
  margin: 26px 0 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3a2a1a 0%, #7a3a12 35%, var(--ember) 72%, var(--ember-hot) 100%);
  box-shadow: 0 0 24px -4px rgba(255, 106, 26, 0.55);
}
.dial-bar::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 74%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--bg-raise);
  background: var(--gold-hi);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px var(--gold), 0 0 14px rgba(255, 176, 74, 0.8);
  animation: dial 6s ease-in-out infinite;
}
@keyframes dial { 0%, 100% { left: 74%; } 50% { left: 30%; } }
.dial-ends { display: flex; justify-content: space-between; gap: 16px; }
.dial-ends span { display: block; font-size: 0.95rem; font-weight: 500; color: var(--text); }
.dial-ends small { display: block; font-size: 0.82rem; color: var(--muted); }
.dial-ends > div:last-child { text-align: right; }

.step-photo { position: relative; }
.step-photo img { width: 100%; border: 1px solid var(--rule); border-radius: 6px; }

.remember { border-top: 1px solid var(--rule); background: var(--bg-raise); }
.remember-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 44px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  background: var(--rule);
}
.remember-grid li {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--bg);
  color: var(--muted);
}
@media (max-width: 899px) {
  .remember-grid { grid-template-columns: minmax(0, 1fr); }
  .remember-grid li { flex-direction: row; align-items: flex-start; }
}

/* ---------- Enquire ---------- */
.enquire-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
@media (max-width: 999px) {
  .enquire-grid { grid-template-columns: minmax(0, 1fr); }
}
.pack-mini { display: grid; gap: 14px; margin-top: 44px; max-width: 480px; }
.pack-mini li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px 18px 14px 10px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: rgba(20, 18, 14, 0.6);
}
.pack-mini strong { display: block; font-size: 1.05rem; }
.pack-mini span { display: block; font-size: 0.88rem; line-height: 1.45; color: var(--muted); }

.pack-mini li img { width: 92px; height: 72px; object-fit: contain; }

.form-card {
  position: relative;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg-raise);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
}
.form-card::before {        /* gold hairline across the top of the card */
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 2px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-hi) 50%, var(--gold) 80%, transparent);
  opacity: 0.8;
}
.form-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
.form-head h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.form-head p { font-size: 0.82rem; color: var(--faint); }
.req { color: var(--gold); font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.form-grid > .full { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}
.field { display: grid; gap: 10px; margin-bottom: 22px; align-content: start; }
.field label, .field legend { font-size: 0.92rem; font-weight: 500; color: var(--text); }
.field .optional { font-weight: 300; color: var(--faint); }
fieldset.field { border: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px 0 14px;
  border: 1px solid rgba(245, 240, 230, 0.14);
  border-radius: 999px;
  background: var(--bg-field);
  font-size: 0.92rem;
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.chip span::before {          /* tick box */
  content: "";
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--faint);
  border-radius: 4px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.chip:hover span { border-color: rgba(245, 240, 230, 0.26); color: var(--text); }
.chip input:checked + span { border-color: var(--gold); color: var(--text); background: rgba(205, 167, 70, 0.1); }
.chip input:checked + span::before {
  border-color: var(--gold);
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a08' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 8px; }
.form-foot .btn { margin-top: 0; }
.form-foot small { font-size: 0.82rem; color: var(--faint); max-width: 30ch; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(245, 240, 230, 0.14);
  border-radius: 4px;
  background: var(--bg-field);
  font-size: 1rem; /* 16px: no zoom-on-focus on iOS */
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cda746' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  cursor: pointer;
}
.field select:invalid { color: var(--faint); }
.field option { background: var(--bg-raise); color: var(--text); }
.field ::placeholder { color: var(--faint); opacity: 1; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(245, 240, 230, 0.24); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(205, 167, 70, 0.2);
}
.field [aria-invalid="true"] { border-color: #ff7a45; }
.field-error { font-size: 0.86rem; color: #ffa37a; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquiry .btn { margin-top: 6px; }
.enquiry .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-status { margin-top: 16px; font-size: 0.92rem; color: #ffa37a; }
.form-status:empty { display: none; }
.form-done { text-align: center; padding: clamp(20px, 4vw, 40px) 0; }
.form-done:focus { outline: none; }
.form-done .ico { width: 64px; height: 64px; margin: 0 auto 26px; }
.form-done .ico svg { width: 30px; height: 30px; }
.form-done h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.form-done p { margin-top: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: clamp(52px, 7vw, 76px) 0 28px; }
.footer-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rule);
}
.footer-tag {
  margin-top: 16px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.footer-nav a { font-size: 0.92rem; color: var(--muted); transition: color 0.25s ease; }
.footer-nav a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 0.76rem;
  color: var(--faint);
}
.footer-bottom .domains { letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Reveal on scroll ----------
   Hidden only when JS is on (html.js). If site.js never runs, a failsafe shows everything. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: reveal-failsafe 0s linear 3s forwards;
}
.js.reveal-on .reveal {
  animation: none;
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js.reveal-on .reveal.in { opacity: 1; transform: none; }
@keyframes reveal-failsafe { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js.reveal-on .reveal { opacity: 1; transform: none; transition: none; animation: none; }
  .grain, .gold, .ember-dot, .hint-dot, .scroll-cue svg,
  .ch-glow, .ch-flow, .ch-flame, .ch-wave, .dial-bar::after { animation: none; }
  .forge { transition: none; }
}
