/* ==========================================================================
   Zuber & Co. Fire Forensics Experts
   Brand stylesheet — custom build (no template dependencies)
   --------------------------------------------------------------------------
   01. Tokens
   02. Reset & base
   03. Typography helpers
   04. Buttons & links
   05. Header / navigation
   06. Hero
   07. Marquee
   08. Sections & shared layout
   09. Intro / pillars
   10. Services
   11. Method (NFPA 921)
   12. Evidence bento
   13. Why us / industries
   14. Videos
   15. Consultation
   16. Footer
   17. Motion & responsive
   ========================================================================== */

/* 01. Tokens --------------------------------------------------------------- */
:root {
  --ink: #0b0908;
  --ink-2: #131010;
  --ink-3: #1b1614;
  --paper: #f4efe9;
  --paper-2: #e9e1d7;
  --flame: #ff4c0d;
  --flame-deep: #b2150a;
  --ember: #fc9502;
  --yellow: #fce202;
  --text: #ece6e1;
  --text-dim: #b6aaa2;
  --text-mute: #8e8179;
  --ink-text: #17110e;
  --ink-dim: #5f5550;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --line-dark: rgba(23, 17, 14, 0.16);
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --max: 1280px;
  --gut: clamp(20px, 5vw, 56px);
  --header-h: 84px;
  --radius: 3px;
  --ease: cubic-bezier(0.22, 0.68, 0.16, 1);
}

/* 02. Reset & base --------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(15.5px, 0.62vw + 13.4px, 17px);
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

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

img { height: auto; }

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

button { font: inherit; color: inherit; }

h1, h2, h3, h4, p, figure, ul, ol, blockquote { margin: 0; }

ul, ol { padding: 0; list-style: none; }

::selection { background: var(--flame); color: #fff; }

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

section[id] { scroll-margin-top: 72px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--flame);
  color: #fff;
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.skip:focus { left: 12px; top: 12px; }

/* 03. Typography helpers --------------------------------------------------- */
.container {
  width: min(100% - (var(--gut) * 2), var(--max));
  margin-inline: auto;
}

.display,
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.033em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.6vw, 5.9rem); line-height: 0.94; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 3.4rem); line-height: 1.02; }
h3 { font-size: clamp(1.15rem, 1.2vw + 0.8rem, 1.45rem); line-height: 1.15; letter-spacing: -0.02em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--flame);
  flex: none;
}

.section--paper .eyebrow { color: var(--ink-dim); }

.lede {
  color: var(--text-dim);
  font-size: clamp(1rem, 0.5vw + 0.92rem, 1.13rem);
  line-height: 1.68;
  max-width: 58ch;
}

.section--paper .lede { color: var(--ink-dim); }

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.accent { color: var(--flame); }

/* 04. Buttons & links ------------------------------------------------------ */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: rgba(255, 255, 255, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--btn-bd);
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.28s var(--ease), color 0.28s var(--ease),
    border-color 0.28s var(--ease), transform 0.28s var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn svg { flex: none; transition: transform 0.28s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--solid {
  --btn-bg: var(--flame);
  --btn-fg: #fff;
  --btn-bd: var(--flame);
}
.btn--solid:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }

.btn--ghost:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }

.btn--dark {
  --btn-bd: var(--ink-text);
  --btn-fg: var(--ink-text);
}
.btn--dark:hover { --btn-bg: var(--ink-text); --btn-fg: var(--paper); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s, border-color 0.25s, gap 0.25s;
}
.link-arrow:hover { color: var(--flame); border-color: var(--flame); gap: 15px; }
.link-arrow svg { flex: none; }

/* 05. Header --------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(11, 9, 8, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 34px; width: auto; }
.brand:hover img { opacity: 0.85; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }

.nav a {
  position: relative;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(236, 230, 225, 0.8);
  padding-block: 6px;
  transition: color 0.25s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--flame);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s var(--ease);
}

.nav a:hover { color: #fff; }
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 18px; flex: none; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(236, 230, 225, 0.82);
  transition: color 0.25s;
}
.header-phone:hover { color: var(--flame); }
.header-phone svg { color: var(--flame); }

.header-actions .btn { min-height: 44px; padding-inline: 18px; font-size: 10.5px; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-direction: column;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 2px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(var(--header-h) + 28px) var(--gut) 32px;
  background: var(--ink);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  overflow-y: auto;
}

.drawer.is-open { visibility: visible; opacity: 1; transform: none; }

.drawer__list { display: flex; flex-direction: column; }

.drawer__list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.drawer__list a span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--text-mute);
}

.drawer__foot { display: grid; gap: 16px; }
.drawer__foot .btn { width: 100%; }
.drawer__contact {
  display: grid;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.drawer__contact a:hover { color: var(--flame); }

/* 06. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 48px);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: #14100e;
  background-image: url("../media/hero-desktop-poster.jpg");
  background-size: cover;
  background-position: center 42%;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}

.hero__video.is-ready { opacity: 1; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 9, 8, 0.74) 0%, rgba(11, 9, 8, 0.16) 30%, rgba(11, 9, 8, 0.52) 66%, rgba(11, 9, 8, 0.97) 100%),
    linear-gradient(94deg, rgba(11, 9, 8, 0.78) 0%, rgba(11, 9, 8, 0.18) 52%, rgba(11, 9, 8, 0.35) 100%);
}

.hero__inner {
  position: relative;
  padding-bottom: clamp(26px, 5vh, 54px);
}

.hero__eyebrow { color: rgba(255, 255, 255, 0.72); margin-bottom: clamp(20px, 2.6vw, 32px); }

.hero h1 {
  max-width: 17ch;
  color: #fff;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}

.hero h1 em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(96deg, var(--flame) 8%, var(--ember) 92%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero__sub {
  margin-top: clamp(20px, 2.6vw, 30px);
  max-width: 52ch;
  color: rgba(236, 230, 225, 0.82);
  font-size: clamp(0.98rem, 0.4vw + 0.9rem, 1.12rem);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 3.4vw, 38px);
}

.hero__foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-block: 16px;
}

.hero__scopes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(236, 230, 225, 0.66);
}

.hero__scopes li { display: inline-flex; align-items: center; gap: 10px; }
.hero__scopes li::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--flame);
  flex: none;
}

.hero__cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(236, 230, 225, 0.7);
}
.hero__cue svg { animation: nudge 2.6s var(--ease) infinite; }
.hero__cue:hover { color: #fff; }

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* 07. Marquee -------------------------------------------------------------- */
.marquee {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  border-bottom: 1px solid var(--line-soft);
  background: var(--ink);
  padding-block: 20px;
  overflow: hidden;
}

.marquee__label {
  flex: none;
  padding-left: var(--gut);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.marquee__viewport {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee__track {
  --mq-gap: clamp(26px, 3.4vw, 48px);
  display: flex;
  align-items: center;
  gap: var(--mq-gap);
  width: max-content;
  animation: marquee 52s linear infinite;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: var(--mq-gap);
  flex: none;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: clamp(26px, 3.4vw, 48px);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(236, 230, 225, 0.62);
}

.marquee__track span::after {
  content: "";
  width: 5px;
  height: 5px;
  border: 1px solid rgba(255, 76, 13, 0.7);
  transform: rotate(45deg);
}

@keyframes marquee {
  to { transform: translateX(calc(-50% - (var(--mq-gap) / 2))); }
}

/* 08. Sections & shared ---------------------------------------------------- */
.section { padding-block: clamp(68px, 8.4vw, 128px); }
.section--tight { padding-block: clamp(48px, 5vw, 76px); }

.section--paper {
  background: var(--paper);
  color: var(--ink-text);
}

.section--paper h1,
.section--paper h2,
.section--paper h3 { color: var(--ink-text); }

.section--ink-2 { background: var(--ink-2); }

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(34px, 4.6vw, 60px);
}

.sec-head__title { display: grid; gap: 18px; }
.sec-head h2 { max-width: 20ch; }
.sec-head__aside { display: grid; gap: 20px; justify-items: start; }
.sec-head__aside p { color: var(--text-dim); max-width: 46ch; }
.section--paper .sec-head__aside p { color: var(--ink-dim); }

.rule-top { border-top: 1px solid var(--line); }

/* 09. Intro ---------------------------------------------------------------- */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 84px);
  align-items: start;
}

.intro__title { display: grid; gap: clamp(20px, 2.4vw, 30px); }
.intro__col { display: grid; gap: clamp(20px, 2.4vw, 30px); align-content: start; }

.intro__figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
}

.intro__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.02);
}

.intro__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: linear-gradient(180deg, transparent, rgba(11, 9, 8, 0.82));
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro__copy { display: grid; gap: 20px; align-content: start; }

.intro__copy p { color: var(--ink-dim); max-width: 56ch; }
.intro__copy p strong { color: var(--ink-text); font-weight: 600; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
  margin-top: clamp(40px, 5.4vw, 72px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line-dark);
}

.pillar { display: grid; gap: 12px; align-content: start; }

.pillar__no {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--flame-deep);
}

.pillar h3 { font-size: clamp(1.05rem, 1vw + 0.75rem, 1.22rem); }
.pillar p { color: var(--ink-dim); font-size: 0.94rem; line-height: 1.62; max-width: 34ch; }

/* 10. Services ------------------------------------------------------------- */
.services .sec-head { grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr); }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}

.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), transform 0.45s var(--ease),
    background 0.35s var(--ease);
}

.svc:hover {
  border-color: rgba(255, 76, 13, 0.44);
  background: #171313;
  transform: translateY(-4px);
}

.svc__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-3);
}

.svc__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.03);
  transform: scale(1.01);
  transition: transform 0.9s var(--ease), filter 0.5s;
}

.svc:hover .svc__media img { transform: scale(1.06); filter: saturate(1) contrast(1.03); }

.svc__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 9, 8, 0.06), rgba(19, 16, 16, 0.72));
}

.svc__no {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 8px;
  background: rgba(11, 9, 8, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.svc__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: clamp(20px, 2.2vw, 28px);
}

.svc h3 { color: #fff; }

.svc p {
  color: var(--text-dim);
  font-size: 0.93rem;
  line-height: 1.6;
}

.svc__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 16px;
}

.svc__tags span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(236, 230, 225, 0.62);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  padding: 4px 7px;
}

/* 11. Method --------------------------------------------------------------- */
.method {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(30px, 4.4vw, 72px);
  align-items: start;
}

.method__figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-3);
}

.method__figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(0.92);
}

.method__badge {
  position: absolute;
  left: 16px;
  top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: rgba(11, 9, 8, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.method__badge i {
  width: 5px;
  height: 5px;
  background: var(--flame);
  border-radius: 50%;
}

.method__content { display: grid; gap: clamp(22px, 2.6vw, 32px); }
.method__content > p { color: var(--ink-dim); max-width: 54ch; }

.steps { border-top: 1px solid var(--line-dark); }

.step { border-bottom: 1px solid var(--line-dark); }

.step__btn {
  display: grid;
  grid-template-columns: 46px 1fr 24px;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 19px 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.step__no {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--flame-deep);
  transition: color 0.25s;
}

.step__title {
  font-size: clamp(1.02rem, 1.1vw + 0.8rem, 1.28rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.step__sign { position: relative; width: 14px; height: 14px; justify-self: end; }
.step__sign::before,
.step__sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: var(--ink-text);
  transform: translateY(-50%);
  transition: transform 0.3s var(--ease), background 0.25s;
}
.step__sign::after { transform: translateY(-50%) rotate(90deg); }
.step.is-open .step__sign::after { transform: translateY(-50%) rotate(0deg); }
.step.is-open .step__sign::before,
.step.is-open .step__sign::after { background: var(--flame-deep); }

.step__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.step.is-open .step__panel { grid-template-rows: 1fr; }

.step__panel > div { overflow: hidden; }

.step__panel p {
  padding: 0 34px 22px 60px;
  color: var(--ink-dim);
  font-size: 0.94rem;
  max-width: 56ch;
}

.step.is-open .step__title { color: var(--flame-deep); }

.method__note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.method__note svg { flex: none; margin-top: 2px; color: var(--flame-deep); }

/* 12. Evidence bento ------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 15vw, 210px);
  gap: clamp(10px, 1.1vw, 14px);
}

.tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-3);
  isolation: isolate;
}

.tile:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.tile:nth-child(2) { grid-column: span 2; }
.tile:nth-child(3) { grid-column: span 2; }
.tile:nth-child(4) { grid-column: span 3; }
.tile:nth-child(5) { grid-column: span 3; }

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 1s var(--ease), filter 0.5s;
}

.tile:hover img { transform: scale(1.035); filter: saturate(1); }

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 9, 8, 0.03) 34%, rgba(11, 9, 8, 0.88) 100%);
  opacity: 0.94;
  transition: opacity 0.4s;
}

.tile figcaption {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: clamp(14px, 1.6vw, 20px);
  color: #fff;
}

.tile figcaption h3 {
  font-size: clamp(0.95rem, 1vw + 0.6rem, 1.16rem);
  font-weight: 600;
  color: #fff;
}
.tile figcaption span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
}

.tile__tag {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 2px;
  background: rgba(11, 9, 8, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}

/* 13. Why us --------------------------------------------------------------- */
.why {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.why__figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
}

.why__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.95);
}

.why__figure figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.why__body { display: grid; gap: clamp(22px, 2.6vw, 32px); }
.why__body > p { color: var(--ink-dim); max-width: 50ch; }

.why__list { display: grid; border-top: 1px solid var(--line-dark); }
.why__item {
  display: grid;
  grid-template-columns: 34px minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-dark);
  align-items: baseline;
}

.why__item span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--flame-deep);
}

.why__item h3 { font-size: clamp(1rem, 0.6vw + 0.85rem, 1.12rem); }
.why__item p { color: var(--ink-dim); font-size: 0.92rem; line-height: 1.58; }

.industries {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: clamp(34px, 4vw, 52px);
  padding-top: clamp(24px, 2.6vw, 32px);
  border-top: 1px solid var(--line-dark);
}

.industries__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-right: 8px;
}

.industries li {
  font-size: 0.86rem;
  padding: 7px 13px;
  border: 1px solid var(--line-dark);
  border-radius: 40px;
  color: var(--ink-text);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.industries li:hover { background: var(--ink-text); color: var(--paper); border-color: var(--ink-text); }

/* 14. Videos --------------------------------------------------------------- */
.videos-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.videos {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: clamp(18px, 2.6vw, 36px);
  align-items: stretch;
}

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: opacity 0.4s, transform 0.7s var(--ease);
}

.player__btn {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(16px, 2.2vw, 26px);
  background: linear-gradient(180deg, rgba(11, 9, 8, 0.12) 30%, rgba(11, 9, 8, 0.86) 100%);
  border: 0;
  text-align: left;
  cursor: pointer;
}

.player__btn:hover .player__poster { transform: scale(1.02); opacity: 0.95; }

.player__play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--flame);
  color: #fff;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.player__play svg { flex: none; }

.player__meta { display: grid; gap: 8px; max-width: 46ch; }
.player__meta .player__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.02rem, 1.2vw + 0.6rem, 1.4rem);
  letter-spacing: -0.02em;
  line-height: 1.24;
  text-transform: none;
  color: #fff;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.4);
}
.player__meta span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}

.player__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  padding: clamp(20px, 3vw, 40px);
  background:
    radial-gradient(120% 120% at 10% 100%, rgba(255, 76, 13, 0.22), transparent 60%),
    linear-gradient(140deg, #1a1614, #0b0908);
}

.player__fallback h3 { max-width: 24ch; color: #fff; }
.player__fallback .mono { color: var(--text-mute); }

.vlist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 100%;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
.vlist::-webkit-scrollbar { width: 4px; }
.vlist::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.22); border-radius: 4px; }

.vitem {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  width: 100%;
  padding: 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  text-align: left;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}

.vitem:hover { background: rgba(255, 255, 255, 0.035); }

.vitem.is-active {
  background: rgba(255, 76, 13, 0.07);
  border-color: rgba(255, 76, 13, 0.42);
}

.vitem__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2px;
  background: var(--ink-3);
}

.vitem__thumb img { width: 100%; height: 100%; object-fit: cover; }

.vitem__text { display: grid; gap: 6px; min-width: 0; }

.vitem__title {
  display: -webkit-box;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -0.01em;
  color: rgba(236, 230, 225, 0.92);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vitem time {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.videos__status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.videos__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flame);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.videos__side {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}

.videos__error {
  display: none;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 2px;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.videos.is-error .videos__error { display: block; }
.videos.is-error .videos__status { display: none; }

/* 15. Consultation --------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: #1a0b08;
  background-image:
    linear-gradient(102deg, rgba(11, 9, 8, 0.97) 0%, rgba(90, 15, 8, 0.94) 46%, rgba(178, 21, 10, 0.62) 100%),
    url("../images/zuber/scene-aerial-shed.webp");
  background-size: cover;
  background-position: center;
  padding-block: clamp(64px, 8vw, 116px);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.cta::before {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -55%;
  width: 60%;
  aspect-ratio: 1;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 76, 13, 0.34), transparent 66%);
}

.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}

.cta__copy { display: grid; gap: clamp(18px, 2.2vw, 26px); justify-items: start; }
.cta .eyebrow { color: rgba(255, 255, 255, 0.62); }
.cta .eyebrow::before { background: var(--ember); }
.cta h2 { color: #fff; max-width: 20ch; font-size: clamp(2rem, 4vw, 3.7rem); }
.cta h2 em { font-style: normal; color: var(--ember); }
.cta__copy p { color: rgba(255, 255, 255, 0.8); max-width: 46ch; }

.cta__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.cta .btn--ghost { --btn-bd: rgba(255, 255, 255, 0.45); }

.contact-card {
  background: rgba(11, 9, 8, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 32px);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: grid;
  gap: 20px;
}

.contact-card__row { display: grid; gap: 5px; }
.contact-card__label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}
.contact-card__value {
  font-size: 0.98rem;
  line-height: 1.5;
  color: #fff;
}
.contact-card a.contact-card__value { transition: color 0.25s; }
.contact-card a.contact-card__value:hover { color: var(--ember); }

.contact-card__note {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* 16. Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line-soft);
  padding-top: clamp(48px, 6vw, 76px);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 0.8fr)) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(36px, 4vw, 56px);
}

.footer__brand { display: grid; gap: 18px; align-content: start; justify-items: start; }
.footer__brand img { height: 34px; width: auto; }
.footer__brand p { color: var(--text-mute); font-size: 0.9rem; max-width: 34ch; }

.footer__col { display: grid; gap: 12px; align-content: start; }
.footer__col h3 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(236, 230, 225, 0.45);
  margin-bottom: 4px;
}
.footer__col a,
.footer__col address {
  font-style: normal;
  font-size: 0.92rem;
  color: rgba(236, 230, 225, 0.78);
  line-height: 1.6;
  transition: color 0.25s;
}
.footer__col a:hover { color: var(--flame); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 22px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(236, 230, 225, 0.42);
}

.footer__bottom a:hover { color: var(--ember); }

/* 17. Motion & responsive -------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0ms);
}

[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 1120px) {
  .nav { gap: 20px; }
  .header-phone { display: none; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.9fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 940px) {
  :root { --header-h: 74px; }
  .nav,
  .header-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }

  .sec-head,
  .services .sec-head,
  .intro,
  .method,
  .why,
  .videos,
  .cta__grid { grid-template-columns: minmax(0, 1fr); }

  .sec-head { align-items: start; }
  .sec-head__aside { justify-items: start; }

  .method__figure img { aspect-ratio: 16 / 10; }
  .why__figure img { aspect-ratio: 16 / 10; }
  .method__figure { order: 2; }

  .videos { gap: 20px; }
  .videos__side { gap: 16px; }
  .player__fallback h3 { font-size: 1.1rem; }
  .vlist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }
  .vitem { grid-template-columns: 92px minmax(0, 1fr); }
  .vitem__title { font-size: 0.8rem; }

  .tile:nth-child(1) { grid-column: span 6; grid-row: span 1; }
  .tile:nth-child(2),
  .tile:nth-child(3) { grid-column: span 3; }
  .tile:nth-child(4),
  .tile:nth-child(5) { grid-column: span 3; }
  .bento { grid-auto-rows: clamp(150px, 26vw, 230px); }
}

@media (max-width: 720px) {
  .hero { min-height: 94svh; padding-top: calc(var(--header-h) + 24px); }
  .hero__media { background-image: url("../media/hero-mobile-poster.jpg"); background-position: center 38%; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(11, 9, 8, 0.68) 0%, rgba(11, 9, 8, 0.1) 24%, rgba(11, 9, 8, 0.62) 56%, rgba(11, 9, 8, 0.98) 100%);
  }
  .hero h1 { font-size: clamp(2.35rem, 10.2vw, 3.5rem); max-width: 14ch; }
  .hero__sub { max-width: 40ch; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 12px; padding-block: 14px; }
  .hero__scopes { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 2px; scrollbar-width: none; }
  .hero__scopes::-webkit-scrollbar { display: none; }
  .hero__cue { display: none; }

  .marquee { padding-block: 16px; gap: 16px; }
  .marquee__label { font-size: 9px; letter-spacing: 0.14em; }

  .pillars { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .pillars .pillar + .pillar { padding-top: 22px; border-top: 1px solid var(--line-dark); }

  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .svc__media { aspect-ratio: 16 / 9; }

  .bento { display: flex; flex-direction: column; gap: 10px; }
  .tile { aspect-ratio: 4 / 3; }
  .tile:nth-child(1) { aspect-ratio: 4 / 3.4; }

  .why__item { grid-template-columns: 28px minmax(0, 1fr); gap: 10px 14px; }
  .why__item p { grid-column: 2; }

  .vlist { grid-template-columns: minmax(0, 1fr); }
  .vitem { grid-template-columns: 104px minmax(0, 1fr); }

  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__bottom { justify-content: flex-start; }

  .contact-card { padding: 20px; }
}

@media (max-width: 480px) {
  .btn { width: 100%; }
  .hero__actions { flex-direction: column; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .step__btn { grid-template-columns: 34px 1fr 20px; gap: 10px; }
  .step__panel p { padding-left: 44px; padding-right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__media video { display: none; }
}
