/* ==========================================================================
   4 BROTHERS COAL — Design System
   Dark industrial editorial. Charcoal black, ember accent, restrained motion.
   ========================================================================== */

:root{
  --black-pure:      #050505;
  --black-charcoal:  #0a0a09;
  --grey-graphite:   #111110;
  --grey-deep:       #171614;
  --line:            #262421;
  --line-soft:       #1d1c19;

  --text-primary:    #f4f4f2;
  --text-secondary:  #a5a5a0;
  --text-muted:      #6f6e69;

  --ember:           #c46a3a;
  --ember-bright:    #d98249;
  --ember-dim:       #7a4326;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-gap: clamp(72px, 12vw, 160px);

  --ease-out: cubic-bezier(.16,.84,.44,1);
  --ease-soft: cubic-bezier(.25,.46,.45,.94);
}

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

*{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;  /* stop iOS/Android inflating text in landscape */
  overflow-x: hidden;
}

body{
  margin: 0;
  background: var(--black-pure);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;   /* nothing may cause sideways scroll on a phone */
  width: 100%;
}

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

/* Long unbroken strings (emails, URLs) must never widen the page */
p, li, td, th, h1, h2, h3, h4, a{ overflow-wrap: break-word; }

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

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 .4em;
  letter-spacing: -0.01em;
}

p{ margin: 0 0 1em; color: var(--text-secondary); max-width: 62ch; }

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

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ember);
  font-weight: 600;
  margin-bottom: 1.2em;
}
.eyebrow::before{
  content: "";
  width: 22px; height: 1px;
  background: var(--ember);
  display: inline-block;
}

.section{
  padding-block: var(--section-gap);
  position: relative;
}
.section--tight{ padding-block: clamp(48px, 8vw, 96px); }
.section--graphite{ background: var(--grey-graphite); }
.section--divide-top{ border-top: 1px solid var(--line-soft); }
.section--divide-bottom{ border-bottom: 1px solid var(--line-soft); }

/* Visible focus states everywhere */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible{
  outline: 2px solid var(--ember-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 1em 1.7em;
  border: 1px solid var(--text-primary);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: background .35s var(--ease-soft), color .35s var(--ease-soft), border-color .35s var(--ease-soft), transform .25s var(--ease-out);
  border-radius: 1px;
  white-space: nowrap;
}
.btn svg{ transition: transform .3s var(--ease-out); width: 14px; height: 14px; }
.btn:hover{ background: var(--text-primary); color: var(--black-pure); }
.btn:hover svg{ transform: translateX(3px); }
.btn:active{ transform: scale(.98); }

.btn--ember{ border-color: var(--ember); color: var(--ember-bright); }
.btn--ember:hover{ background: var(--ember); color: var(--black-pure); border-color: var(--ember); }

.btn--ghost{ border-color: var(--line); color: var(--text-secondary); }
.btn--ghost:hover{ background: var(--grey-graphite); color: var(--text-primary); border-color: var(--text-secondary); }

.btn--full{ width: 100%; justify-content: center; }
.btn[disabled]{ opacity: .4; cursor: not-allowed; }
.btn[disabled]:hover{ background: transparent; color: var(--text-primary); }

/* magnetic wrapper - restrained translate driven by JS custom props */
.magnetic{
  --mx: 0px; --my: 0px;
  transform: translate(var(--mx), var(--my));
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 22px 0;
  transition: padding .4s var(--ease-soft), background .4s var(--ease-soft), border-color .4s var(--ease-soft);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled{
  padding: 14px 0;
  background: rgba(5,5,5,.86);
  backdrop-filter: blur(10px);
  border-color: var(--line-soft);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark{
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .04em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.1;
}
.wordmark img{
  height: 42px;
  width: auto;
  flex-shrink: 0;
  transition: transform .4s var(--ease-out);
}
.wordmark:hover img{ transform: rotate(-4deg) scale(1.04); }
.wordmark .wordmark-text{ display: flex; flex-direction: column; white-space: nowrap; }
.wordmark small{
  font-family: var(--font-body);
  font-size: .58rem;
  letter-spacing: .22em;
  color: var(--ember);
  font-weight: 600;
  margin-top: 2px;
}

.nav-links{
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a{
  position: relative;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: color .3s;
}
.nav-links a::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--ember);
  transition: width .35s var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"]{ color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after{ width: 100%; }

.nav-actions{ display: flex; align-items: center; gap: 14px; }
.nav-actions .btn{ padding: .7em 1.2em; font-size: .68rem; }

.nav-toggle{
  display: none;
  background: none; border: none; color: var(--text-primary);
  width: 34px; height: 24px; position: relative; cursor: pointer;
  padding: 0;
}
.nav-toggle span{
  position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out), top .3s var(--ease-out);
}
.nav-toggle span:nth-child(1){ top: 4px; }
.nav-toggle span:nth-child(2){ top: 12px; }
.nav-toggle span:nth-child(3){ top: 20px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ top: 12px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ top: 12px; transform: rotate(-45deg); }

.mobile-panel{
  position: fixed; inset: 0;
  background: var(--black-pure);
  z-index: 480;
  display: flex; flex-direction: column;
  padding: 100px var(--gutter) 40px;
  transform: translateY(-100%);
  transition: transform .5s var(--ease-out);
}
.mobile-panel.is-open{ transform: translateY(0); }
.mobile-panel .nav-links{ flex-direction: column; align-items: flex-start; gap: 22px; }
.mobile-panel .nav-links a{ font-size: 1.4rem; font-family: var(--font-display); text-transform: none; letter-spacing: 0; }
.mobile-panel .nav-actions{ margin-top: auto; flex-direction: column; align-items: stretch; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero{
  position: relative;
  /* Never allow the hero to collapse below a usable height (which was
     causing the hero text to overlap the fixed nav in short viewports) —
     always at least 620px tall, and never taller than 1300px. */
  min-height: clamp(620px, 100svh, 1300px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 140px;
  padding-bottom: clamp(48px, 8vw, 96px);
  overflow: hidden;
  background: var(--black-pure);
}
.hero-media{
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-media img, .hero-media video{
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.9) contrast(1.08) brightness(.62);
  transform: scale(1.04);
}
.hero-media::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,.35) 0%, rgba(5,5,5,.25) 40%, rgba(5,5,5,.92) 100%);
}
.hero-content{ position: relative; z-index: 2; }
.hero h1{
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  max-width: 15ch;
  color: var(--text-primary);
}
.hero p{ font-size: 1.05rem; max-width: 46ch; }
.hero-ctas{ display: flex; gap: 16px; flex-wrap: wrap; margin-top: 1.6em; }

.scroll-cue{
  position: absolute; bottom: 28px; left: var(--gutter);
  z-index: 2;
  display: flex; align-items: center; gap: 10px;
  font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-cue .line{
  width: 1px; height: 34px; background: var(--line);
  position: relative; overflow: hidden;
}
.scroll-cue .line::after{
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--ember);
  animation: scrollcue 2.6s var(--ease-soft) infinite;
}
@keyframes scrollcue{
  0%{ top: -100%; } 50%{ top: 0; } 100%{ top: 100%; }
}

/* small page hero (interior pages) */
.page-hero{
  padding: clamp(140px, 22vw, 220px) 0 clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--line-soft);
}
.page-hero h1{ font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 20ch; }

/* --------------------------------------------------------------------------
   Grid + editorial layout helpers
   -------------------------------------------------------------------------- */
.grid{ display: grid; gap: var(--gutter); }
.grid-2{ grid-template-columns: 1fr 1fr; }
.grid-intro{ grid-template-columns: .9fr 1.1fr; align-items: center; }
.grid-5-7{ grid-template-columns: 5fr 7fr; }
.grid-7-5{ grid-template-columns: 7fr 5fr; }
.grid-4-8{ grid-template-columns: 4fr 8fr; }
.grid-8-4{ grid-template-columns: 8fr 4fr; }

@media (max-width: 900px){
  .grid-2, .grid-intro, .grid-5-7, .grid-7-5, .grid-4-8, .grid-8-4{
    grid-template-columns: 1fr;
  }
}

.frame{
  position: relative;
  overflow: hidden;
  background: var(--grey-graphite);
}
.frame img, .frame video{ width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-soft); }
.frame:hover img, .frame:hover video{ transform: scale(1.045); }
.frame--tall{ aspect-ratio: 3/4; }
.frame--wide{ aspect-ratio: 16/9; }
.frame--square{ aspect-ratio: 1/1; }

.narrow{ max-width: 46ch; }

/* reveal-on-scroll */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
.reveal-delay-1{ transition-delay: .1s; }
.reveal-delay-2{ transition-delay: .2s; }
.reveal-delay-3{ transition-delay: .3s; }

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */
.stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}
.stat-figure{
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.stat-label{
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ember); margin-top: .5em; font-weight: 600;
}
.stat-desc{ font-size: .85rem; margin-top: .4em; }
@media (max-width: 700px){ .stats{ grid-template-columns: 1fr; gap: 40px; } }

/* --------------------------------------------------------------------------
   Product cards (editorial, not SaaS cards)
   -------------------------------------------------------------------------- */
.product-row{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(48px, 8vw, 88px);
  border-bottom: 1px solid var(--line-soft);
}
.product-row:last-child{ border-bottom: none; }
.product-row.flip{ direction: rtl; }
.product-row.flip > *{ direction: ltr; }
.product-name{ font-size: clamp(1.8rem, 3vw, 2.6rem); }
.product-price{
  font-family: var(--font-display);
  color: var(--ember-bright);
  font-size: 1.3rem;
  margin: .3em 0 1em;
}
.badge{
  display: inline-block;
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--ember-dim); color: var(--ember-bright);
  padding: .35em .8em; border-radius: 999px;
  margin-bottom: 1em;
}
.badge--muted{ border-color: var(--line); color: var(--text-muted); }
@media (max-width: 800px){ .product-row{ grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Client logo strip
   -------------------------------------------------------------------------- */
.logo-strip{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.logo-strip .logo-cell{
  background: var(--black-pure);
  display: flex; align-items: center; justify-content: center;
  padding: 26px 18px;
}
.logo-strip img{
  max-height: 44px; width: auto;
  filter: grayscale(1) brightness(1.6) contrast(.9);
  opacity: .72;
  transition: opacity .35s, filter .35s;
}
.logo-strip .logo-cell:hover img{ opacity: 1; filter: grayscale(0) brightness(1); }

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */
.team-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
}
.team-grid--partial{
  grid-template-columns: repeat(2, minmax(0, 220px));
}
.team-card{ text-align: left; }
.team-card .frame{ margin-bottom: 1.1em; }
.team-name{ font-family: var(--font-display); font-size: 1.1rem; }
.team-role{ font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ember); }

.team-contact{
  list-style: none; margin: .9em 0 0; padding: 0;
  display: flex; flex-direction: column; gap: .35em;
  font-size: .8rem; color: var(--text-secondary);
}
.team-contact a{ border-bottom: 1px solid var(--line); transition: color .25s, border-color .25s; }
.team-contact a:hover{ color: var(--ember-bright); border-color: var(--ember-dim); }
.team-note{ color: var(--text-muted); font-size: .74rem; letter-spacing: .04em; }

/* Monogram stand-in for the two brothers we don't have a portrait of yet —
   reads as a deliberate design choice rather than a broken image. */
.team-monogram{
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(196,106,58,.14), transparent 65%),
    var(--grey-graphite);
  border: 1px solid var(--line-soft);
}
.team-monogram span{
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: .06em;
  color: var(--ember-dim);
}
@media (max-width: 900px){ .team-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .team-grid{ grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; } .team-grid--partial{ grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Gallery + lightbox
   -------------------------------------------------------------------------- */
.masonry{
  columns: 3 220px;
  column-gap: 14px;
}
.masonry figure{
  margin: 0 0 14px; break-inside: avoid;
  position: relative; overflow: hidden;
  cursor: zoom-in;
  background: var(--grey-graphite);
}
.masonry img, .masonry video{ width: 100%; display: block; transition: transform .8s var(--ease-soft), filter .4s; }
.masonry figure:hover img, .masonry figure:hover video{ transform: scale(1.05); }
.masonry figcaption{
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  font-size: .72rem; letter-spacing: .04em;
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
  color: var(--text-primary);
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s, transform .3s;
}
.masonry figure:hover figcaption, .masonry figure:focus-within figcaption{ opacity: 1; transform: translateY(0); }
.masonry figure:focus-within{ outline: 2px solid var(--ember-bright); outline-offset: 2px; }

.lightbox{
  position: fixed; inset: 0; z-index: 900;
  background: rgba(3,3,3,.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out);
}
.lightbox.is-open{ opacity: 1; pointer-events: auto; }
.lightbox-inner{ max-width: 88vw; max-height: 82vh; position: relative; text-align: center; }
.lightbox-inner img, .lightbox-inner video{ max-width: 88vw; max-height: 76vh; margin: 0 auto; }
.lightbox-caption{ margin-top: 14px; font-size: .8rem; color: var(--text-secondary); }
.lightbox-close, .lightbox-prev, .lightbox-next{
  position: absolute; background: none; border: 1px solid var(--line); color: var(--text-primary);
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, border-color .25s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover{ background: var(--grey-graphite); border-color: var(--text-secondary); }
.lightbox-close{ top: -56px; right: 0; }
.lightbox-prev{ left: -60px; top: 50%; transform: translateY(-50%); }
.lightbox-next{ right: -60px; top: 50%; transform: translateY(-50%); }
@media (max-width: 800px){
  .lightbox-prev{ left: 8px; } .lightbox-next{ right: 8px; } .lightbox-close{ top: 8px; right: 8px; }
}
@media (max-width: 720px){ .masonry{ columns: 2 160px; } }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-field{ margin-bottom: 1.4em; }
.form-field label{
  display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: .6em;
}
.form-field input, .form-field select, .form-field textarea{
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .7em .1em;
  transition: border-color .3s;
}
.form-field textarea{ resize: vertical; min-height: 100px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  outline: none; border-color: var(--ember);
}
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea{
  border-color: #b3402f;
}
.form-error{
  display: none; font-size: .74rem; color: #e08a6d; margin-top: .5em;
}
.form-field.has-error .form-error{ display: block; }
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px){ .form-row{ grid-template-columns: 1fr; } }

.stepper{
  counter-reset: qstep;
}
.stepper .step-dot{
  width: 8px; height: 8px; border-radius: 50%; background: var(--line);
  transition: background .3s;
}
.stepper .step-dot.is-active{ background: var(--ember); }

.qty-control{ display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty-control button{
  background: none; border: none; color: var(--text-primary);
  width: 36px; height: 36px; cursor: pointer; font-size: 1.1rem;
}
.qty-control button:hover{ background: var(--grey-graphite); }
.qty-control span{ width: 40px; text-align: center; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */
.toast-stack{
  position: fixed; bottom: 24px; right: 24px; z-index: 950;
  display: flex; flex-direction: column; gap: 10px;
  max-width: min(360px, calc(100vw - 32px));
}
.toast{
  background: var(--grey-deep);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ember);
  padding: 14px 18px;
  font-size: .84rem;
  color: var(--text-primary);
  transform: translateX(120%);
  transition: transform .45s var(--ease-out);
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.toast.is-visible{ transform: translateX(0); }
.toast.is-error{ border-left-color: #b3402f; }

/* --------------------------------------------------------------------------
   Status pill (delivery / auth states)
   -------------------------------------------------------------------------- */
.status-pill{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-secondary);
}
.status-pill .dot{ width: 7px; height: 7px; border-radius: 50%; background: var(--ember); }

/* --------------------------------------------------------------------------
   Skeleton loader (paper-placeholder feel)
   -------------------------------------------------------------------------- */
.skeleton{
  background: linear-gradient(100deg, var(--grey-graphite) 30%, var(--grey-deep) 50%, var(--grey-graphite) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer{
  0%{ background-position: 200% 0; } 100%{ background-position: -200% 0; }
}

/* --------------------------------------------------------------------------
   Divider / CTA band
   -------------------------------------------------------------------------- */
.divider{ height: 1px; background: var(--line-soft); border: none; margin: 0; }

.cta-band{
  text-align: center;
  padding-block: clamp(80px, 14vw, 160px);
  background: radial-gradient(ellipse at 50% 0%, rgba(196,106,58,.08), transparent 60%), var(--black-pure);
}
.cta-band h2{ font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 16ch; margin-inline: auto; }
.cta-band .btn-group{ display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 1.8em; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer{
  padding: clamp(56px, 8vw, 88px) 0 28px;
  border-top: 1px solid var(--line-soft);
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.footer-col h4{
  font-family: var(--font-body); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1.2em; font-weight: 600;
}
.footer-col ul{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8em; }
.footer-col a, .footer-col span{ color: var(--text-secondary); font-size: .9rem; transition: color .25s; }
.footer-col a:hover{ color: var(--text-primary); }
.copyable{ cursor: pointer; border-bottom: 1px dotted var(--line); }
.footer-bottom{
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--line-soft);
  font-size: .76rem; color: var(--text-muted);
}
@media (max-width: 800px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer-grid{ grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Back to top
   -------------------------------------------------------------------------- */
.back-to-top{
  position: fixed; right: 20px; bottom: 20px; z-index: 400;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(10,10,9,.8); backdrop-filter: blur(6px);
  color: var(--text-primary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .3s, transform .3s;
}
.back-to-top.is-visible{ opacity: 1; pointer-events: auto; transform: translateY(0); }

/* --------------------------------------------------------------------------
   Announcement marquee (real content — delivery policy, not decorative)
   -------------------------------------------------------------------------- */
.marquee-bar{
  position: fixed; top: 0; left: 0; right: 0; z-index: 510;
  background: var(--ember-dim);
  color: #1a0d05;
  overflow: hidden;
  height: 34px;
  display: flex;
  align-items: center;
}
.marquee-track{
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce){
  .marquee-track{ animation: none; }
}
.marquee-track span{
  display: inline-flex; align-items: center;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  padding: 0 2em;
  white-space: nowrap;
  color: #1a0d05;
}
.marquee-track span::after{ content: "◆"; margin-left: 2em; font-size: .6rem; opacity: .6; }
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
body{ padding-top: 34px; } /* offset for fixed marquee bar */
.site-header{ top: 34px; }
.mobile-panel{ padding-top: 134px; }

/* --------------------------------------------------------------------------
   Scroll progress (ember line — reflects reading progress, not decoration)
   -------------------------------------------------------------------------- */
.scroll-progress{
  position: fixed; top: 34px; left: 0; right: 0; height: 2px; z-index: 505;
  background: transparent;
}
.scroll-progress-fill{
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--ember-dim), var(--ember-bright));
  transition: width .1s linear;
}

/* --------------------------------------------------------------------------
   Cursor spotlight — desktop only, hero only, very subtle
   -------------------------------------------------------------------------- */
.hero::before{
  content: "";
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background: radial-gradient(320px circle at var(--spot-x, 50%) var(--spot-y, 30%), rgba(196,106,58,.10), transparent 60%);
  opacity: 0;
  transition: opacity .4s;
}
.hero.spotlight-active::before{ opacity: 1; }
@media (hover: none){ .hero::before{ display: none; } }

/* --------------------------------------------------------------------------
   Tilt-on-hover for product/media frames (JS-driven, restrained)
   -------------------------------------------------------------------------- */
.tilt{
  transform-style: preserve-3d;
  transition: transform .35s var(--ease-out);
  will-change: transform;
}

/* --------------------------------------------------------------------------
   Floating WhatsApp CTA
   -------------------------------------------------------------------------- */
.float-whatsapp{
  position: fixed; left: 20px; bottom: 20px; z-index: 400;
  display: flex; align-items: center; gap: 10px;
  background: var(--grey-deep);
  border: 1px solid var(--line);
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  font-size: .78rem; letter-spacing: .04em;
  color: var(--text-primary);
  transition: border-color .3s, transform .3s;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.float-whatsapp:hover{ border-color: var(--ember); transform: translateY(-2px); }
.float-whatsapp svg{ width: 18px; height: 18px; color: #3fbb63; flex-shrink: 0; }
@media (max-width: 700px){ .float-whatsapp{ display: none; } } /* mobile uses bottom nav instead */

/* --------------------------------------------------------------------------
   Mobile bottom navigation (real feature from the brief, not decorative)
   -------------------------------------------------------------------------- */
.mobile-bottom-nav{
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 460;
  background: rgba(8,8,7,.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-soft);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  justify-content: space-around;
  align-items: center;
}
.mobile-bottom-nav a{
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: .6rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 6px;
}
.mobile-bottom-nav a svg{ width: 20px; height: 20px; }
.mobile-bottom-nav a.is-active{ color: var(--ember-bright); }
@media (max-width: 700px){
  .mobile-bottom-nav{ display: flex; }
  .back-to-top{ bottom: 78px; }
}

/* --------------------------------------------------------------------------
   Social icon row (footer) — icons, not text names
   -------------------------------------------------------------------------- */
.social-icons{ display: flex; gap: 10px; flex-wrap: wrap; }
.social-icons a{
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: border-color .3s, color .3s, transform .3s;
}
.social-icons a:hover{ border-color: var(--ember); color: var(--ember-bright); transform: translateY(-2px); }
.social-icons a svg{ width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Video showcase (real behind-the-scenes footage)
   -------------------------------------------------------------------------- */
.video-showcase{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.video-showcase .frame{ cursor: pointer; position: relative; }
.video-showcase .frame video{ aspect-ratio: 3/4; object-fit: cover; }
.video-showcase .frame .play-badge{
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.video-showcase .frame .play-badge span{
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(0,0,0,.3);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s, background .3s;
}
.video-showcase .frame:hover .play-badge span{ transform: scale(1.1); background: rgba(196,106,58,.5); }
.video-showcase figcaption{
  font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted);
  margin-top: .6em;
}
@media (max-width: 800px){ .video-showcase{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .video-showcase{ grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Auth / portal
   -------------------------------------------------------------------------- */
.auth-shell{
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
}
.auth-card{
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}
.auth-switch{ margin-top: 1.6em; font-size: .88rem; color: var(--text-secondary); }
.auth-switch a{ color: var(--ember-bright); border-bottom: 1px solid var(--ember-dim); }

.dash-tabs{
  display: flex; gap: 28px; border-bottom: 1px solid var(--line-soft);
  margin-bottom: 40px; overflow-x: auto;
}
.dash-tab{
  padding: 14px 2px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted); background: none; border: none; cursor: pointer;
  border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color .25s, border-color .25s;
}
.dash-tab.is-active{ color: var(--text-primary); border-color: var(--ember); }
.dash-panel{ display: none; }
.dash-panel.is-active{ display: block; animation: fadein .5s var(--ease-out); }
@keyframes fadein{ from{ opacity: 0; transform: translateY(8px); } to{ opacity: 1; transform: translateY(0); } }

.empty-state{
  text-align: center; padding: 64px 20px; border: 1px dashed var(--line);
}
.empty-state p{ margin-inline: auto; }

table.simple-table{ width: 100%; border-collapse: collapse; }
table.simple-table th, table.simple-table td{
  text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line-soft);
  font-size: .88rem;
}
table.simple-table th{ color: var(--text-muted); font-weight: 500; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }

/* utility */
.text-center{ text-align: center; }
.mt-0{ margin-top: 0; }
.mx-auto{ margin-inline: auto; }
.visually-hidden{
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ==========================================================================
   RESPONSIVE LAYER
   Everything below fixes how the site behaves on tablets and phones.
   Ordered largest breakpoint → smallest.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1080px and under — switch the header over to the hamburger menu.
   THIS WAS THE MAIN BUG: .nav-toggle was display:none with nothing ever
   turning it back on, so phones got the full desktop nav wrapping onto
   three lines and the mobile panel could never be opened.
   -------------------------------------------------------------------------- */
@media (max-width: 1080px){
  .site-header nav[aria-label="Primary"],
  .site-header .nav-actions{ display: none; }

  .nav-toggle{
    display: block;
    /* 44px tap target without changing the visual size of the bars */
    width: 44px; height: 44px;
    margin-right: -10px;
  }
  .nav-toggle span{ left: 5px; right: 5px; }
  .nav-toggle span:nth-child(1){ top: 15px; }
  .nav-toggle span:nth-child(2){ top: 22px; }
  .nav-toggle span:nth-child(3){ top: 29px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1){ top: 22px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(3){ top: 22px; transform: rotate(-45deg); }

  .site-header .container{ gap: 12px; }

  /* The mobile panel must be scrollable — 7 links + 3 buttons does not fit
     on a short phone in landscape. */
  .mobile-panel{
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: 110px;
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
  }
  .mobile-panel .nav-actions{ margin-top: 40px; gap: 12px; }
}

/* --------------------------------------------------------------------------
   900px and under — tablet
   -------------------------------------------------------------------------- */
@media (max-width: 900px){
  .video-showcase{ gap: 12px; }
  .lightbox-inner{ max-width: 94vw; }
  .lightbox-inner img, .lightbox-inner video{ max-width: 94vw; max-height: 70vh; }
}

/* --------------------------------------------------------------------------
   760px and under — phones. The bulk of the clean-up.
   -------------------------------------------------------------------------- */
@media (max-width: 760px){

  /* Tighter rhythm so the page isn't 90% empty space on a small screen */
  :root{
    --gutter: 18px;
    --section-gap: clamp(56px, 13vw, 88px);
  }

  /* Leave room for the fixed bottom nav bar so it never covers the footer */
  body{ padding-bottom: calc(68px + env(safe-area-inset-bottom)); }

  /* Header sits closer in and the logo scales down */
  .site-header{ padding: 14px 0; }
  .site-header.is-scrolled{ padding: 10px 0; }
  .wordmark{ font-size: .9rem; gap: 9px; }
  .wordmark img{ height: 34px; }
  .wordmark small{ font-size: .5rem; letter-spacing: .16em; }

  /* Hero: shorter, and its text given room to breathe above the fold */
  .hero{
    min-height: clamp(520px, 88svh, 780px);
    padding-top: 118px;
    padding-bottom: 72px;
  }
  .hero h1{ font-size: clamp(2.1rem, 10vw, 3rem); max-width: 100%; }
  .hero p{ font-size: .96rem; max-width: 100%; }
  .hero-ctas{ gap: 10px; margin-top: 1.3em; }
  .hero-ctas .btn{ flex: 1 1 100%; justify-content: center; }
  .scroll-cue{ display: none; }   /* redundant on touch, and it crowded the CTAs */

  .page-hero{ padding: 120px 0 44px; }
  .page-hero h1{ font-size: clamp(1.9rem, 8vw, 2.4rem); max-width: 100%; }

  /* Buttons become comfortable tap targets */
  .btn{
    padding: .95em 1.4em;
    font-size: .74rem;
    min-height: 46px;
    white-space: normal;     /* let long labels wrap instead of overflowing */
    text-align: center;
  }
  .cta-band .btn-group .btn,
  .btn-group .btn{ flex: 1 1 100%; justify-content: center; }

  /* Type scale — headings were overshooting narrow screens */
  h2{ font-size: clamp(1.6rem, 6.6vw, 2.1rem); }
  h3{ font-size: 1.15rem; }
  .cta-band{ padding-block: 64px; }
  .cta-band h2{ font-size: clamp(1.7rem, 7.4vw, 2.2rem); max-width: 100%; }
  p{ max-width: 100%; }
  .narrow{ max-width: 100%; }
  .eyebrow{ font-size: .64rem; letter-spacing: .12em; margin-bottom: 1em; }
  .eyebrow::before{ width: 14px; }

  /* Team stays two-up on a phone — four full-width portraits made the
     section endlessly long and buried the last two brothers. */
  .team-grid,
  .team-grid--partial{
    grid-template-columns: 1fr 1fr;
    gap: 22px 16px;
    max-width: none;
    margin-inline: 0;
  }
  .team-card .frame{ margin-bottom: .8em; }
  .team-name{ font-size: .98rem; }
  .team-role{ font-size: .63rem; letter-spacing: .05em; line-height: 1.4; }
  .team-contact{ font-size: .72rem; margin-top: .7em; }
  .team-note{ font-size: .68rem; }

  /* Media frames: tall portraits are far too tall on a phone */
  .frame--tall{ aspect-ratio: 4/5; }
  .grid{ gap: 26px; }

  /* Products stack image-first with sensible spacing */
  .product-row{
    gap: 20px;
    padding-block: 36px;
  }
  .product-row.flip{ direction: ltr; }   /* no reversal once single-column */
  .product-name{ font-size: 1.55rem; }
  .product-price{ font-size: 1.15rem; }

  /* Stats read better as a tight 1-col list than as huge spaced blocks */
  .stats{ gap: 30px; }
  .stat-figure{ font-size: 2.5rem; }

  /* Client logos: 3 across instead of squashing 6 */
  .logo-strip{ grid-template-columns: repeat(3, 1fr); }
  .logo-strip .logo-cell{ padding: 18px 10px; }
  .logo-strip img{ max-height: 30px; }

  /* Gallery */
  .masonry{ columns: 2 140px; column-gap: 10px; }
  .masonry figure{ margin-bottom: 10px; }
  .masonry figcaption{ opacity: 1; transform: none; font-size: .66rem; padding: 10px 12px; }

  /* Lightbox controls clear of the notch and of the bottom nav */
  .lightbox-inner{ max-width: 100vw; padding: 0 10px; }
  .lightbox-inner img, .lightbox-inner video{ max-width: calc(100vw - 20px); max-height: 66vh; }
  .lightbox-close{ top: calc(10px + env(safe-area-inset-top)); right: 10px; }
  .lightbox-prev, .lightbox-next{ width: 46px; height: 46px; }

  /* Forms */
  .form-field input,
  .form-field select,
  .form-field textarea{
    font-size: 16px;   /* below 16px iOS Safari zooms the whole page on focus */
    padding: .8em .1em;
  }
  .form-row{ gap: 0; }

  /* Tables scroll inside their own box rather than stretching the page */
  .table-scroll{ overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.simple-table{ min-width: 460px; }
  table.simple-table th, table.simple-table td{ padding: 12px 8px; font-size: .82rem; }

  /* Floating UI must not collide with the bottom nav */
  .toast-stack{
    bottom: calc(80px + env(safe-area-inset-bottom));
    right: 12px; left: 12px;
    max-width: none;
  }
  .toast{ transform: translateY(140%); }
  .toast.is-visible{ transform: translateY(0); }
  .back-to-top{ right: 14px; bottom: calc(80px + env(safe-area-inset-bottom)); }

  /* Marquee slightly smaller so it reads as a strip, not a banner */
  .marquee-track span{ font-size: .64rem; padding: 0 1.4em; }

  /* Comfortable tap heights for text links in the menu and footer */
  .mobile-panel .nav-links a{ display: block; padding: 8px 0; }
  .footer-col ul{ gap: .2em; }
  .footer-col li a{ display: inline-block; padding: 9px 0; }

  /* Footer */
  .site-footer{ padding: 48px 0 24px; }
  .footer-grid{ gap: 30px; margin-bottom: 32px; }
  .footer-bottom{ font-size: .72rem; justify-content: flex-start; }

  /* Portal dashboard */
  .auth-shell{ padding: 110px 0 60px; min-height: auto; }
  .dash-tabs{ gap: 20px; margin-bottom: 28px; }
  .empty-state{ padding: 44px 16px; }
}

/* --------------------------------------------------------------------------
   480px and under — small phones
   -------------------------------------------------------------------------- */
@media (max-width: 480px){
  .hero h1{ font-size: clamp(1.95rem, 9.6vw, 2.5rem); }
  .logo-strip{ grid-template-columns: repeat(2, 1fr); }
  .masonry{ columns: 1; }
  .masonry figure{ margin-bottom: 12px; }
  .mobile-panel .nav-links{ gap: 16px; }
  .mobile-panel .nav-links a{ font-size: 1.25rem; }
  .stat-figure{ font-size: 2.2rem; }
  .mobile-bottom-nav a{ font-size: .55rem; }
}

/* --------------------------------------------------------------------------
   Touch devices — kill hover-only effects that get "stuck" after a tap
   -------------------------------------------------------------------------- */
@media (hover: none){
  .frame:hover img, .frame:hover video,
  .masonry figure:hover img, .masonry figure:hover video{ transform: none; }
  .tilt{ transform: none !important; }
  .logo-strip img{ opacity: 1; filter: grayscale(1) brightness(1.6) contrast(.9); }
  .btn:hover{ background: transparent; color: var(--text-primary); }
  .btn--ember:hover{ background: transparent; color: var(--ember-bright); }
  .wordmark:hover img{ transform: none; }
}

/* --------------------------------------------------------------------------
   Short landscape phones — don't let a 620px hero swallow the screen
   -------------------------------------------------------------------------- */
@media (max-height: 560px) and (orientation: landscape){
  .hero{ min-height: 460px; padding-top: 100px; padding-bottom: 44px; }
  .mobile-panel{ padding-top: 88px; }
}
