/* ==========================================================================
   HM Pyrotechnics — site styles
   Dark, cinematic, gold-on-black (matches the HM logo). Mobile-first.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Surfaces */
  --bg: #0c0a08;
  --bg-2: #120e0a;
  --surface: #18130e;
  --surface-2: #211a12;
  --line: rgba(240, 205, 140, 0.12);
  --line-2: rgba(240, 205, 140, 0.26);

  /* Text */
  --text: #f5efe6;
  --text-2: #c9bba6;
  --text-3: #9a8d7c;

  /* Brand */
  --gold: #e2b65c;
  --gold-hi: #f6d991;
  --gold-lo: #a97a2c;
  --ember: #ff6b1a;
  --grad-gold: linear-gradient(100deg, #b8862f 0%, #f6d991 42%, #e2b65c 62%, #b8862f 100%);

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 8px;
  --radius-lg: 16px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
sub { font-size: 0.62em; vertical-align: baseline; position: relative; top: 0.25em; line-height: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--gold); color: #140e05; }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--gold);
  color: #140e05;
  font-weight: 700;
  border-radius: var(--radius);
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin: 0 0 1.1rem;
  font: 600 0.78rem/1.2 var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.06em;
  letter-spacing: 0;
  text-transform: none;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

.h-xl { font-size: clamp(3rem, 9vw, 7.5rem); }
.h-lg { font-size: clamp(2.5rem, 6vw, 4.75rem); }
.h-md { font-size: clamp(2rem, 4.2vw, 3.25rem); }

.lead {
  max-width: 58ch;
  font-size: clamp(1.08rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-2);
}
.muted { color: var(--text-2); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0 1.6em;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 700 0.95rem/1 var(--font-body);
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-position 0.5s var(--ease),
    border-color 0.25s, box-shadow 0.25s, color 0.25s;
}
.btn .icon { transition: transform 0.25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.btn-primary {
  background: var(--grad-gold);
  background-size: 220% 100%;
  color: #1a1206;
  box-shadow: 0 10px 30px -12px rgba(226, 182, 92, 0.6);
}
.btn-primary:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px rgba(226, 182, 92, 0.75);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }

.btn-sm { min-height: 42px; padding: 0 1.2em; font-size: 0.88rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold);
  transition: color 0.2s, gap 0.25s var(--ease);
}
.link-arrow:hover { color: var(--gold-hi); gap: 0.8em; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.site-header.is-solid,
.nav-open .site-header {
  background: rgba(12, 10, 8, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: block; flex: none; }
.brand img { height: 44px; width: auto; }

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav ul a {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav ul a:hover,
.nav ul a[aria-current="page"] { color: var(--text); }
.nav ul a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-gold);
}
.nav-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: color 0.2s;
}
.header-phone .icon { color: var(--gold); width: 1.1em; height: 1.1em; }
.header-phone:hover { color: var(--gold-hi); }

.menu-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.nav-open .menu-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1079px) {
  .header-phone { display: none; }
}

@media (max-width: 959px) {
  .menu-toggle { display: inline-block; }
  .header-quote { display: none; }

  /* backdrop-filter would become the containing block of the fixed menu */
  .nav-open .site-header {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px var(--gutter) 40px;
    background: var(--bg);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .nav-open .nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s;
  }
  .nav-open body { overflow: hidden; }

  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav ul a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font: 800 clamp(2rem, 9vw, 2.75rem)/1 var(--font-display);
    text-transform: uppercase;
    color: var(--text);
  }
  .nav ul a[aria-current="page"] { color: var(--gold); }
  .nav ul a[aria-current="page"]::after { display: none; }

  .nav-extra {
    display: grid;
    gap: 14px;
    margin-top: 40px;
  }
  .nav-extra .nav-phone {
    text-align: center;
    font-weight: 700;
    color: var(--text-2);
  }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(100svh, 960px);
  padding: calc(var(--header-h) + 80px) 0 48px;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -3; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  animation: hero-zoom 16s var(--ease) both;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(12, 10, 8, 0.75) 0%, rgba(12, 10, 8, 0.2) 30%, rgba(12, 10, 8, 0.55) 62%, var(--bg) 100%),
    radial-gradient(70% 70% at 10% 90%, rgba(12, 10, 8, 0.9), transparent 70%);
}

.hero h1 { max-width: none; }
.h1-kicker {
  display: block;
  margin-bottom: 1.25rem;
  font: 600 0.8rem/1.5 var(--font-body);
  letter-spacing: 0.2em;
  color: var(--gold);
}
.h1-main {
  display: block;
  max-width: 7.4em;
  font-size: clamp(3.2rem, 10vw, 8.25rem);
  line-height: 0.88;
  text-wrap: wrap;
}

.hero-sub {
  max-width: 54ch;
  margin: 1.6rem 0 2rem;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: var(--text-2);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 24px;
  margin: 64px 0 0;
  border-top: 1px solid var(--line-2);
}
.hero-meta > div { padding-top: 18px; }
.hero-meta dt {
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-meta dd { margin: 0; font-weight: 600; font-size: 0.97rem; }

@media (max-width: 767px) {
  .hero { min-height: 92svh; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(12, 10, 8, 0.8) 0%, rgba(12, 10, 8, 0.55) 30%, rgba(12, 10, 8, 0.8) 60%, var(--bg) 100%);
  }
  .hero-meta { grid-template-columns: 1fr; margin-top: 40px; }
  .hero-meta > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .hero-actions .btn { flex: 1 1 100%; }
}

@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

/* Rising embers (decorative; spans injected by JS) */
.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ember {
  position: absolute;
  bottom: -12px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffd38a;
  box-shadow: 0 0 6px 2px rgba(255, 140, 40, 0.65);
  opacity: 0;
  animation: ember-rise var(--d, 9s) linear var(--delay, 0s) infinite;
  will-change: transform, opacity;
}
@keyframes ember-rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  12% { opacity: 0.95; }
  70% { opacity: 0.6; }
  100% { transform: translate3d(var(--x, 0px), -85vh, 0); opacity: 0; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header-h) + clamp(64px, 10vw, 140px)) 0 clamp(56px, 7vw, 100px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 10, 8, 0.6), rgba(12, 10, 8, 0.4) 40%, var(--bg)),
    radial-gradient(60% 80% at 0% 100%, rgba(12, 10, 8, 0.9), transparent 70%);
}
.page-hero h1 { font-size: clamp(2.8rem, 8vw, 6.5rem); max-width: 16ch; }
.page-hero .lead { margin-top: 1.5rem; }

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin: 0 0 1.75rem;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-3);
}
.breadcrumb li + li::before { content: "/"; margin-right: 0.5em; color: var(--line-2); }
.breadcrumb a:hover { color: var(--gold-hi); }
.breadcrumb [aria-current] { color: var(--text-2); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 22px 0;
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-group {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
  font: 800 clamp(1.6rem, 3vw, 2.5rem)/1 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 205, 140, 0.5);
  white-space: nowrap;
}
.marquee-group .sep {
  width: 0.5em;
  height: 0.5em;
  color: var(--gold);
  -webkit-text-stroke: 0;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 136px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-tight { padding-top: 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 56px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head > div { max-width: 640px; }
.section-head .lead { margin: 0; max-width: 40ch; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center .lead { max-width: 60ch; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } }

.frame {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(12, 10, 8, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
}
.frame-gold { box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px -40px rgba(255, 107, 26, 0.35); }

.quote {
  margin: 2rem 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--gold);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.3;
  color: var(--text);
}
.quote p { margin: 0; }

.stack > * + * { margin-top: 1rem; }

/* ---------- Pillars (home) ---------- */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pillar {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(420px, 48vw, 600px);
  padding: clamp(24px, 3.5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s;
}
.pillar img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.pillar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12, 10, 8, 0.1) 20%, rgba(12, 10, 8, 0.75) 60%, rgba(12, 10, 8, 0.96));
}
.pillar:hover { border-color: var(--line-2); }
.pillar:hover img { transform: scale(1.05); }
.pillar-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font: 800 4.5rem/1 var(--font-display);
  color: transparent;
  -webkit-text-stroke: 1px rgba(246, 217, 145, 0.55);
}
.pillar h3 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin-bottom: 0.75rem; max-width: 14ch; }
.pillar p { color: var(--text-2); max-width: 44ch; }
.pillar .link-arrow { margin-top: 1.25rem; }
@media (max-width: 767px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Effect cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(28px, 3vw, 40px);
  background: var(--bg);
  transition: background-color 0.3s;
}
.section-alt .card { background: var(--bg-2); }
.card:hover { background: var(--surface); }
.card h3 { font-size: 1.75rem; letter-spacing: 0.01em; }
.card p { margin: 0; color: var(--text-2); font-size: 0.98rem; }
.card .link-arrow { margin-top: auto; padding-top: 10px; }

.card-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--gold);
  background: radial-gradient(circle at 50% 30%, rgba(226, 182, 92, 0.14), transparent 70%);
  transition: transform 0.35s var(--ease), border-color 0.3s;
}
.card-icon .icon { width: 24px; height: 24px; }
.card:hover .card-icon { transform: translateY(-3px); border-color: var(--gold); }

@media (max-width: 959px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Statement band ---------- */
.statement {
  padding: clamp(88px, 13vw, 180px) 0;
  text-align: center;
  background:
    radial-gradient(55% 70% at 50% 110%, rgba(255, 107, 26, 0.16), transparent 70%),
    var(--bg);
  border-block: 1px solid var(--line);
}
.statement h2 { font-size: clamp(2.8rem, 8.5vw, 7.5rem); line-height: 0.92; }
.statement h2 span.line { display: block; }
.statement .muted { margin-top: 1.75rem; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 26px;
  border-top: 1px solid var(--line-2);
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 18px;
  font: 800 1.05rem/1 var(--font-display);
  letter-spacing: 0.12em;
  color: var(--gold);
}
.step::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px 2px rgba(255, 140, 40, 0.6);
}
.step h3 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.step p { margin: 0; color: var(--text-2); font-size: 0.97rem; }
@media (max-width: 959px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; } }
@media (max-width: 539px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Occasions ---------- */
.occasions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.occasion {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), transparent);
  transition: border-color 0.3s, transform 0.35s var(--ease);
}
.occasion:hover { border-color: var(--line-2); transform: translateY(-3px); }
.occasion .card-icon { width: 48px; height: 48px; }
.occasion .card-icon .icon { width: 22px; height: 22px; }
.occasion h3 { font-size: 1.4rem; margin: 4px 0 6px; }
.occasion p { margin: 0; font-size: 0.95rem; color: var(--text-2); }
@media (max-width: 959px) { .occasions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .occasions { grid-template-columns: 1fr; } }

/* ---------- Values ---------- */
.values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.value {
  padding: clamp(24px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.section-alt .value { background: var(--bg); }
.value-num {
  display: block;
  margin-bottom: 36px;
  font: 800 3rem/1 var(--font-display);
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
}
.value h3 { font-size: 1.55rem; margin-bottom: 0.6rem; }
.value p { margin: 0; color: var(--text-2); font-size: 0.97rem; }
@media (max-width: 959px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 539px) { .values { grid-template-columns: 1fr; } }

/* ---------- Gallery teaser ---------- */
.gallery-teaser {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.9fr;
  gap: 16px;
}
.gallery-teaser .frame { aspect-ratio: 4 / 3.4; }
.insta-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(255, 107, 26, 0.22), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(226, 182, 92, 0.16), transparent 60%),
    var(--surface);
  transition: border-color 0.3s, transform 0.35s var(--ease);
}
.insta-tile:hover { border-color: var(--gold); transform: translateY(-3px); }
.insta-tile .icon { width: 40px; height: 40px; color: var(--gold); }
.insta-tile strong { display: block; font: 800 2rem/1 var(--font-display); text-transform: uppercase; }
.insta-tile span { color: var(--text-2); font-size: 0.95rem; }
@media (max-width: 899px) {
  .gallery-teaser { grid-template-columns: 1fr 1fr; }
  .insta-tile { grid-column: 1 / -1; }
}
@media (max-width: 539px) { .gallery-teaser { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq-wrap .section-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  list-style: none;
  cursor: pointer;
  font: 700 clamp(1.25rem, 2vw, 1.5rem)/1.15 var(--font-display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-hi); }
.faq summary::after {
  content: "";
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background:
    linear-gradient(var(--gold), var(--gold)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 1.5px 12px no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 26px; color: var(--text-2); max-width: 66ch; }
@media (max-width: 899px) {
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-wrap .section-intro { position: static; }
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(48px, 8vw, 110px) clamp(24px, 6vw, 80px);
  text-align: center;
  border: 1px solid var(--line-2);
  border-radius: calc(var(--radius-lg) + 8px);
  background:
    radial-gradient(60% 90% at 50% 120%, rgba(255, 107, 26, 0.28), transparent 70%),
    radial-gradient(40% 60% at 50% 0%, rgba(226, 182, 92, 0.12), transparent 70%),
    var(--surface);
}
.cta-band h2 { font-size: clamp(2.6rem, 7vw, 5.5rem); }
.cta-band .lead { margin: 1.25rem auto 2.25rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Services page ---------- */
.jump {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: rgba(12, 10, 8, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.jump ul {
  list-style: none;
  margin: 0;
  padding: 12px 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.jump ul::-webkit-scrollbar { display: none; }
.jump a {
  display: block;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.jump a:hover { color: var(--text); border-color: var(--gold); }
.jump a.is-active { color: #1a1206; background: var(--gold); border-color: var(--gold); }

.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding-block: clamp(56px, 7vw, 100px);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 64px);
}
.service:first-of-type { border-top: 0; }
.service:nth-of-type(even) .service-media { order: 2; }
.service-media { aspect-ratio: 4 / 3; }
.service-media.is-tall { aspect-ratio: 4 / 4.6; }
.service h2 { font-size: clamp(2.4rem, 4.8vw, 3.75rem); margin-bottom: 1.25rem; }
.service-body p { color: var(--text-2); }
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1.5rem 0 2rem;
  padding: 0;
}
.chips li {
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-2);
}
.chips-label {
  display: block;
  margin-top: 1.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.chips-label + .chips { margin-top: 0.75rem; }
@media (max-width: 899px) {
  .service { grid-template-columns: 1fr; }
  .service:nth-of-type(even) .service-media { order: 0; }
  .service-media.is-tall { aspect-ratio: 4 / 3.6; }
}

.machine-cta {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-top: 20px;
  padding: clamp(28px, 4.5vw, 56px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 100% at 100% 50%, rgba(255, 107, 26, 0.16), transparent 70%),
    var(--surface);
}
.machine-cta h3 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.75rem; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.checklist .icon { color: var(--gold); margin-top: 3px; width: 1.15em; height: 1.15em; }
@media (max-width: 899px) { .machine-cta { grid-template-columns: 1fr; } }

/* ---------- Gallery page ---------- */
.masonry { columns: 3 280px; column-gap: 16px; }
.masonry figure {
  break-inside: avoid;
  margin: 0 0 16px;
}
.masonry a {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.masonry img { width: 100%; transition: transform 0.8s var(--ease), opacity 0.3s; }
.masonry a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(12, 10, 8, 0.75));
  opacity: 0;
  transition: opacity 0.3s;
}
.masonry a:hover img { transform: scale(1.04); }
.masonry a:hover::after { opacity: 1; }
.masonry figcaption { padding: 12px 4px 0; font-size: 0.9rem; color: var(--text-2); }

.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  background: rgba(8, 6, 4, 0.94);
  color: var(--text);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; display: grid; gap: 14px; justify-items: center; }
.lightbox img { max-width: min(1400px, 92vw); max-height: 80dvh; width: auto; border-radius: var(--radius); }
.lightbox-caption { color: var(--text-2); font-size: 0.95rem; text-align: center; max-width: 60ch; }
.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 959px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 12px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  transition: border-color 0.25s;
}
a.contact-item:hover { border-color: var(--gold); }
.contact-item .card-icon { width: 46px; height: 46px; }
.contact-item .card-icon .icon { width: 20px; height: 20px; }
.contact-item small {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-item strong, .contact-item address {
  display: block;
  font-style: normal;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.contact-item address { font-weight: 500; color: var(--text-2); line-height: 1.55; }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.form h2 { grid-column: 1 / -1; font-size: clamp(2rem, 3.6vw, 2.75rem); }
.form .form-intro { grid-column: 1 / -1; margin: -6px 0 6px; color: var(--text-2); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--text-2); }
.field .req { color: var(--gold); }
.input {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: var(--text-3); }
.input:hover { border-color: rgba(240, 205, 140, 0.4); }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(226, 182, 92, 0.2); }
.input:user-invalid { border-color: #ff8a65; }
textarea.input { min-height: 150px; resize: vertical; }
select.input {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23e2b65c' stroke-width='2' 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;
}
.form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
}
.form-note { margin: 0; font-size: 0.85rem; color: var(--text-3); max-width: 38ch; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 599px) {
  .form { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
}

.map {
  aspect-ratio: 21 / 8;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(0.9) hue-rotate(180deg) saturate(0.55) brightness(0.95) contrast(0.95);
}
@media (max-width: 767px) { .map { aspect-ratio: 4 / 3.4; } }

/* ---------- Simple pages (404 / thank you) ---------- */
.simple-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 48px) 0 80px;
  text-align: center;
  background: radial-gradient(50% 60% at 50% 100%, rgba(255, 107, 26, 0.18), transparent 70%), var(--bg);
}
.simple-page h1 { font-size: clamp(3rem, 10vw, 7rem); }
.simple-page .lead { margin: 1.25rem auto 2.25rem; }

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(64px, 8vw, 96px) 0 28px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
}
.footer-brand img { height: 58px; width: auto; }
.footer-tag {
  margin: 22px 0 10px;
  font: 800 1.9rem/1 var(--font-display);
  text-transform: uppercase;
}
.footer-brand p { color: var(--text-2); font-size: 0.95rem; max-width: 34ch; }
.footer-title {
  margin: 0 0 18px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer li a, .footer-contact a { color: var(--text-2); transition: color 0.2s; }
.site-footer li a:hover, .footer-contact a:hover { color: var(--gold-hi); }
.footer-contact { display: grid; gap: 14px; font-size: 0.95rem; }
.footer-contact > * { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { color: var(--gold); margin-top: 3px; width: 1.1em; height: 1.1em; }
.footer-contact address { font-style: normal; color: var(--text-2); line-height: 1.55; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--text-3);
}
.footer-bottom p { margin: 0; }
.footer-bottom a:hover { color: var(--gold-hi); }
@media (max-width: 959px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 539px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile action bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 767px) {
  .mobile-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: rgba(20, 16, 10, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transform: translateY(140%);
    transition: transform 0.35s var(--ease);
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar .btn { min-height: 46px; padding: 0 1em; }
  .nav-open .mobile-bar { transform: translateY(140%); }
  .site-footer { padding-bottom: 104px; }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .embers { display: none; }
  .marquee-track { animation: none; }
}
