/* ============================================================
   MURPHY INSULATION LLC — Premium Industrial Contractor
   Design system: deep navy/charcoal, industrial gray, safety
   accent. Archivo (display) + Barlow (body). Blueprint texture.
   ============================================================ */

:root {
  /* dark base — navy family */
  --navy-900: #0a1018;
  --navy-800: #0d1521;
  --navy-700: #111d2e;
  --navy-600: #16243a;
  --steel-700: #1b2636;
  --steel-600: #25313f;
  --hairline: rgba(255, 255, 255, 0.09);
  --hairline-strong: rgba(255, 255, 255, 0.16);

  /* light surfaces — cool neutral */
  --paper: #eef1f4;
  --paper-2: #e4e8ec;
  --white: #ffffff;
  --card-line: #d7dde3;

  /* text */
  --on-dark: #ffffff;
  --on-dark-soft: #b7c2cf;
  --on-dark-mute: #7d8a99;
  --on-light: #0d1521;
  --on-light-soft: #46535f;
  --on-light-mute: #76828d;

  /* accent (safety orange default — overridable by tweaks) */
  --accent: #f2591d;
  --accent-600: #d8480f;
  --accent-ink: #ffffff;
  --accent-soft: rgba(242, 89, 29, 0.14);

  /* type */
  --display: "Archivo", system-ui, sans-serif;
  --body: "Barlow", system-ui, sans-serif;

  /* layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --radius-lg: 6px;

  /* tone-driven dark section bg (tweakable) */
  --dark-section: var(--navy-800);
  --dark-section-2: var(--navy-900);
}

/* accent variants */
[data-accent="red"] {
  --accent: #e23217;
  --accent-600: #c0270f;
  --accent-soft: rgba(226, 50, 23, 0.14);
}
[data-accent="copper"] {
  --accent: #c47a3d;
  --accent-600: #a8632b;
  --accent-soft: rgba(196, 122, 61, 0.16);
}
[data-accent="amber"] {
  --accent: #f0a431;
  --accent-600: #d4861a;
  --accent-ink: #1b1206;
  --accent-soft: rgba(240, 164, 49, 0.16);
}

/* display font variants */
[data-display="oswald"] { --display: "Oswald", system-ui, sans-serif; }
[data-display="oswald"] h1, [data-display="oswald"] h2, [data-display="oswald"] h3 { letter-spacing: 0; }
[data-display="oswald"] .hero h1 { letter-spacing: -0.01em; }

/* hero style variants */
[data-hero="blueprint"] .hero-slide { display: none; }
[data-hero="blueprint"] .hero-play { display: none; }
[data-hero="blueprint"] .hero { background: var(--navy-900); }
[data-hero="blueprint"] .hero-bg::after { background: radial-gradient(120% 120% at 80% 20%, rgba(242,89,29,0.08), transparent 55%); }
[data-hero="blueprint"] .hero-grid-overlay { opacity: 1; }

/* tone variants */
[data-tone="navy"] { --dark-section: var(--navy-800); --dark-section-2: var(--navy-900); }
[data-tone="charcoal"] {
  --navy-900: #0c0d0f;
  --navy-800: #141619;
  --navy-700: #191c20;
  --navy-600: #20242a;
  --steel-700: #20242a;
  --steel-600: #2a2f36;
  --dark-section: #141619;
  --dark-section-2: #0c0d0f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--body);
  background: var(--navy-900);
  color: var(--on-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

/* ---- type helpers ---- */
.eyebrow {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.center::before { display: none; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.04; letter-spacing: -0.015em; }
.display { font-weight: 900; letter-spacing: -0.025em; text-transform: none; }

/* ============================================================
   BLUEPRINT / STEEL TEXTURES
   ============================================================ */
.blueprint {
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 44px 44px;
}
.blueprint-fine {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 16px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 24px -10px rgba(0,0,0,0.6);
}
.btn-accent:hover { background: var(--accent-600); }
.btn-ghost-dark {
  background: transparent;
  color: var(--on-dark);
  border-color: var(--hairline-strong);
}
.btn-ghost-dark:hover { border-color: var(--accent); color: var(--on-dark); }
.btn-ghost-light {
  background: transparent;
  color: var(--on-light);
  border-color: var(--card-line);
}
.btn-ghost-light:hover { border-color: var(--accent); }
.btn svg { width: 18px; height: 18px; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 16, 24, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
  transition: background .2s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--on-dark); }
.brand-logo { height: 42px; width: auto; display: block; }
.footer .brand-logo { height: 46px; }
.brand-logo-navy { display: none; }
@media (max-width: 560px) { .brand-logo { height: 34px; } }

/* white header variant (tweakable) */
.header.scrolled { background: rgba(10, 16, 24, 0.95); }
[data-header="white"] .header { background: rgba(255, 255, 255, 0.92); border-bottom-color: var(--card-line); }
[data-header="white"] .header.scrolled { background: #fff; }
[data-header="white"] .header .nav a { color: var(--on-light-soft); }
[data-header="white"] .header .nav a:hover { color: var(--on-light); }
[data-header="white"] .header .header-phone { color: var(--on-light); }
[data-header="white"] .header .header-phone small { color: var(--on-light-mute); }
[data-header="white"] .header .brand-logo-white { display: none; }
[data-header="white"] .header .brand-logo-navy { display: block; }
[data-header="white"] .hamburger { border-color: var(--card-line); }
[data-header="white"] .hamburger span,
[data-header="white"] .hamburger span::before,
[data-header="white"] .hamburger span::after { background: var(--on-light); }
.brand-mark {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  position: relative;
  flex: none;
  background: #fff;
  padding: 2px;
  box-shadow: 0 2px 12px -4px rgba(0,0,0,0.55);
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: 0.01em; }
.brand-text small { font-size: 0.66rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--on-dark-soft); margin-top: 4px; }
[data-header="white"] .header .brand-text b { color: var(--on-light); }
[data-header="white"] .header .brand-text small { color: var(--on-light-mute); }

.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  color: var(--on-dark-soft);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 10px;
  border-radius: 3px;
  white-space: nowrap;
  transition: color .15s ease;
}
.nav a:hover { color: var(--on-dark); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15;
  color: var(--on-dark);
  border: 1.5px solid var(--hairline-strong); border-radius: var(--radius);
  padding: 9px 16px; transition: border-color .15s ease;
}
.header-phone:hover { border-color: var(--accent); }
.header-phone small { font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-mute); }
.header-phone b { font-family: var(--display); font-weight: 800; font-size: 1.02rem; white-space: nowrap; }
[data-header="white"] .header .header-phone { border-color: var(--card-line); }
.header .btn { padding: 12px 18px; font-size: 0.86rem; }

.hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: 3px;
  width: 44px; height: 44px;
  margin-left: auto;
  position: relative;
}
.hamburger span, .hamburger span::before, .hamburger span::after {
  content: ""; position: absolute; left: 11px; width: 22px; height: 2px; background: var(--on-dark);
  transition: transform .2s ease, opacity .2s ease;
}
.hamburger span { top: 21px; }
.hamburger span::before { top: -7px; }
.hamburger span::after { top: 7px; }
body.menu-open .hamburger span { background: transparent; }
body.menu-open .hamburger span::before { transform: translateY(7px) rotate(45deg); }
body.menu-open .hamburger span::after { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu drawer */
.mobile-nav {
  position: fixed;
  inset: 76px 0 auto 0;
  background: var(--navy-900);
  border-bottom: 1px solid var(--hairline);
  z-index: 55;
  transform: translateY(-110%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  padding: 14px var(--gutter) 26px;
}
body.menu-open .mobile-nav { transform: translateY(0); }
.mobile-nav a {
  display: block; color: var(--on-dark-soft); font-family: var(--display); font-weight: 700;
  font-size: 1.25rem; padding: 14px 0; border-bottom: 1px solid var(--hairline);
}
.mobile-nav .btn { width: 100%; margin-top: 18px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--navy-900);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 50%; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease;
  will-change: opacity, transform;
}
.hero-slide.active { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero-slide.active { animation: heroKen 9.5s ease-out forwards; }
}
@keyframes heroKen { from { transform: scale(1.085); } to { transform: scale(1); } }
.hero-play {
  position: absolute; right: clamp(16px, 4vw, 40px); bottom: 22px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(10,16,24,0.5); border: 1px solid var(--hairline-strong);
  color: #fff; display: grid; place-items: center; backdrop-filter: blur(4px);
  transition: background .15s ease, border-color .15s ease;
}
.hero-play:hover { background: rgba(10,16,24,0.85); border-color: var(--accent); }
.hero-play svg { width: 17px; height: 17px; }
.hero-play .ic-play { display: none; }
.hero-play.paused .ic-pause { display: none; }
.hero-play.paused .ic-play { display: block; }
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, var(--navy-900) 0%, rgba(10,16,24,0.92) 42%, rgba(10,16,24,0.55) 78%, rgba(10,16,24,0.35) 100%);
  z-index: 1;
}
.hero-grid-overlay { position: absolute; inset: 0; z-index: -1; opacity: 0.5; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
  padding-block: clamp(64px, 10vw, 128px);
  min-height: min(86vh, 760px);
}
.hero-copy { max-width: 720px; }
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.1rem);
  margin: 22px 0 0;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  color: var(--on-dark-soft);
  margin-top: 26px;
  max-width: 620px;
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* hero side stat panel */
.hero-panel {
  background: rgba(13, 21, 33, 0.72);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  padding: 28px;
}
.hero-panel h4 {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--on-dark-mute); font-weight: 600; font-family: var(--body);
}
.hero-stat { padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.hero-stat:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-stat b { display: block; font-family: var(--display); font-weight: 900; font-size: 1.7rem; }
.hero-stat span { color: var(--on-dark-soft); font-size: 0.95rem; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trustbar { background: var(--accent); color: var(--accent-ink); }
.trustbar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  display: flex; align-items: center; gap: 14px;
  padding: 24px var(--gutter);
  border-right: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}
.trust-item:last-child { border-right: 0; }
.trust-item svg { width: 26px; height: 26px; flex: none; opacity: 0.95; }
.trust-item b { font-family: var(--display); font-weight: 800; font-size: 1.0rem; line-height: 1.15; }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
section { position: relative; }
.section-pad { padding-block: clamp(64px, 9vw, 116px); }
.section-light { background: var(--paper); color: var(--on-light); }
.section-white { background: var(--white); color: var(--on-light); }
.section-dark { background: var(--dark-section); color: var(--on-dark); }
.section-dark2 { background: var(--dark-section-2); color: var(--on-dark); }

.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-top: 16px; text-wrap: balance; }
.section-head p { margin-top: 18px; font-size: 1.12rem; line-height: 1.6; }
.section-light .section-head p, .section-white .section-head p { color: var(--on-light-soft); }
.section-dark .section-head p, .section-dark2 .section-head p { color: var(--on-dark-soft); }
.section-dark .eyebrow, .section-dark2 .eyebrow { color: var(--on-dark); }
.section-light .eyebrow, .section-white .eyebrow { color: var(--accent-600); }

/* ============================================================
   SERVICE CARDS — What We Insulate
   ============================================================ */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: transparent; border-top: 1px solid var(--card-line); border-left: 1px solid var(--card-line); }
.svc-card {
  background: var(--white);
  padding: 34px 30px 32px;
  display: flex; flex-direction: column;
  position: relative;
  border-right: 1px solid var(--card-line);
  border-bottom: 1px solid var(--card-line);
  transition: background .2s ease, transform .2s ease;
}
.svc-card:hover { background: #fbfcfd; }
.svc-num {
  font-family: var(--display); font-weight: 900; font-size: 0.95rem;
  color: var(--accent); letter-spacing: 0.05em;
}
.svc-icon {
  width: 52px; height: 52px; margin: 18px 0 20px;
  display: grid; place-items: center;
  border: 2px solid var(--on-light); border-radius: 4px;
  color: var(--on-light);
}
.svc-icon svg { width: 28px; height: 28px; }
.svc-card h3 { font-size: 1.4rem; }
.svc-card p { margin-top: 12px; color: var(--on-light-soft); font-size: 1.0rem; line-height: 1.55; }
.svc-card .svc-bar { height: 3px; width: 0; background: var(--accent); margin-top: 22px; transition: width .3s ease; }
.svc-card:hover .svc-bar { width: 48px; }

/* ============================================================
   PROCESS
   ============================================================ */
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.process-media { position: relative; }
.process-media img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; border-radius: var(--radius-lg); display: block; }
.process-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px -45px rgba(0,0,0,0.8); }
.process-media .tag {
  position: absolute; left: 18px; bottom: 18px; z-index: 3;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--display); font-weight: 800; font-size: 0.8rem;
  letter-spacing: 0.04em; padding: 9px 14px; border-radius: 3px;
}
.steps { list-style: none; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 54px 1fr; gap: 20px;
  padding: 22px 0; border-bottom: 1px solid var(--hairline);
  counter-increment: step;
}
.step:last-child { border-bottom: 0; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--display); font-weight: 900; font-size: 1.3rem;
  color: var(--accent);
  border: 2px solid var(--hairline-strong); border-radius: 4px;
  width: 54px; height: 54px; display: grid; place-items: center;
}
.step h4 { font-size: 1.2rem; }
.step p { color: var(--on-dark-soft); margin-top: 5px; font-size: 0.98rem; }

/* ============================================================
   INDUSTRIES
   ============================================================ */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ind-card {
  background: var(--white); border: 1px solid var(--card-line); border-radius: var(--radius);
  padding: 26px 22px; min-height: 168px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.ind-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 16px 30px -22px rgba(13,21,33,0.5); }
.ind-card .ico { width: 34px; height: 34px; color: var(--accent); }
.ind-card .ico svg { width: 100%; height: 100%; }
.ind-card b { font-family: var(--display); font-weight: 800; font-size: 1.12rem; line-height: 1.15; }

/* ============================================================
   WHY MURPHY
   ============================================================ */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.why-list { display: grid; gap: 2px; }
.why-item {
  background: var(--steel-700);
  border-left: 3px solid transparent;
  padding: 24px 26px;
  transition: border-color .2s ease, background .2s ease;
}
.why-item:hover { border-left-color: var(--accent); background: var(--steel-600); }
.why-item h4 { font-size: 1.22rem; }
.why-item p { color: var(--on-dark-soft); margin-top: 8px; font-size: 1.0rem; line-height: 1.55; }
.why-side { position: sticky; top: 100px; }
.why-side h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-top: 16px; }
.why-side p { color: var(--on-dark-soft); margin-top: 18px; font-size: 1.1rem; line-height: 1.6; }
.why-side .btn { margin-top: 28px; }

/* ============================================================
   PROJECTS
   ============================================================ */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.proj-card {
  background: var(--white); border: 1px solid var(--card-line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
}
.proj-photo { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); }
.proj-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.proj-card:hover .proj-photo img { transform: scale(1.04); }
.proj-photo { overflow: hidden; }
.proj-photo .badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  background: rgba(10,16,24,0.85); color: #fff;
  font-family: var(--body); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 11px; border-radius: 3px;
}
.proj-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.proj-body h3 { font-size: 1.28rem; }
.proj-meta { margin-top: 14px; display: grid; gap: 7px; }
.proj-meta div { display: flex; gap: 8px; font-size: 0.92rem; }
.proj-meta dt { color: var(--on-light-mute); font-weight: 600; min-width: 76px; }
.proj-meta dd { color: var(--on-light); font-weight: 500; }
.proj-result { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--card-line); color: var(--on-light-soft); font-size: 0.96rem; line-height: 1.5; }

/* ============================================================
   CONTACT / ESTIMATE
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: clamp(32px, 5vw, 60px); align-items: start; }
.form-card {
  background: var(--white); color: var(--on-light);
  border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px);
  box-shadow: 0 30px 60px -40px rgba(0,0,0,0.6);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.86rem; color: var(--on-light-soft); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--on-light);
  background: var(--paper); border: 1.5px solid var(--card-line); border-radius: var(--radius);
  padding: 13px 14px; width: 100%; transition: border-color .15s ease, background .15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #d8480f; background: #fdf1ec; }
.field .err { color: #c0270f; font-size: 0.78rem; font-weight: 600; display: none; }
.field.invalid .err { display: block; }

.filedrop {
  grid-column: 1 / -1;
  border: 1.5px dashed var(--card-line); border-radius: var(--radius);
  padding: 20px; text-align: center; color: var(--on-light-mute);
  background: var(--paper); transition: border-color .15s ease, background .15s ease;
  cursor: pointer; font-size: 0.92rem;
}
.filedrop:hover { border-color: var(--accent); }
.filedrop.has-files { color: var(--on-light); border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.filedrop input { display: none; }

.form-submit { margin-top: 22px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-submit .btn { padding: 17px 30px; }
.form-note { font-size: 0.84rem; color: var(--on-light-mute); }

.form-success {
  display: none;
  text-align: center; padding: 40px 20px;
}
.form-success.show { display: block; }
.form-success .check {
  width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); display: grid; place-items: center;
}
.form-success .check svg { width: 38px; height: 38px; }
.form-success h3 { font-size: 1.7rem; }
.form-success p { margin-top: 12px; color: var(--on-light-soft); max-width: 420px; margin-inline: auto; }

/* contact info sidebar */
.contact-info { color: var(--on-dark); }
.contact-info h3 { font-size: 1.5rem; }
.contact-info .lead { color: var(--on-dark-soft); margin-top: 14px; font-size: 1.05rem; line-height: 1.6; }
.info-list { margin-top: 30px; display: grid; gap: 2px; }
.info-row {
  display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start;
  background: var(--steel-700); padding: 20px 22px;
}
.info-row .ico { width: 26px; height: 26px; color: var(--accent); margin-top: 2px; }
.info-row small { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-mute); }
.info-row b { font-family: var(--display); font-weight: 800; font-size: 1.12rem; display: block; margin-top: 3px; }
.info-row span { color: var(--on-dark-soft); font-size: 0.96rem; }
.info-row a:hover b { color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-900); color: var(--on-dark-soft); border-top: 1px solid var(--hairline); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-block: 64px; }
.footer .brand { margin-bottom: 18px; }
.footer-about p { font-size: 0.98rem; line-height: 1.6; max-width: 340px; }
.footer-col h5 { font-family: var(--display); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; padding: 6px 0; font-size: 0.95rem; color: var(--on-dark-soft); transition: color .15s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--hairline); padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  font-size: 0.84rem; color: var(--on-dark-mute);
}
.footer-bottom .links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ============================================================
   SCROLL REVEAL (robust: hidden only when JS active; initial
   in-view elements snap visible, later ones animate in)
   ============================================================ */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js.reveal-loading .reveal { transition: none !important; }
html.js .reveal.d1 { transition-delay: .07s; }
html.js .reveal.d2 { transition-delay: .14s; }
html.js .reveal.d3 { transition-delay: .21s; }
html.js .reveal.d4 { transition-delay: .28s; }
html.js .reveal.d5 { transition-delay: .35s; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .nav { display: none; }
  .header-cta { display: none; }
  .hamburger { display: block; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-panel { max-width: 520px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
.process-media img { min-height: 300px; }

/* ============================================================
   CTA BAND (full-bleed photo)
   ============================================================ */
.cta-band { position: relative; isolation: isolate; color: var(--on-dark); overflow: hidden; }
.cta-band img.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; z-index: -2; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,16,24,0.94) 0%, rgba(10,16,24,0.82) 45%, rgba(10,16,24,0.5) 100%); }
.cta-band .wrap { padding-block: clamp(60px, 8vw, 104px); }
.cta-inner { max-width: 680px; }
.cta-inner h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-top: 14px; text-wrap: balance; }
.cta-inner p { color: var(--on-dark-soft); margin-top: 16px; font-size: 1.12rem; line-height: 1.6; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ============================================================
   TRANSFORMATION — Drawing -> 3D -> Real
   ============================================================ */
.tf-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.tf-copy h2 { font-size: clamp(2rem, 3.8vw, 3rem); margin-top: 16px; text-wrap: balance; }
.tf-copy > p { color: var(--on-dark-soft); margin-top: 16px; font-size: 1.1rem; line-height: 1.6; max-width: 46ch; }
.tf-steps { list-style: none; margin-top: 30px; display: grid; gap: 10px; }
.tf-step { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: center; padding: 13px 16px; border: 1px solid var(--hairline); border-radius: 7px; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.tf-step:hover { border-color: var(--hairline-strong); transform: translateX(2px); }
.tf-step.active { border-color: var(--accent); background: var(--accent-soft); }
.tf-n { font-family: var(--display); font-weight: 900; font-size: 1.05rem; color: var(--on-dark-mute); width: 46px; height: 46px; border: 2px solid var(--hairline-strong); border-radius: 7px; display: grid; place-items: center; transition: color .2s ease, border-color .2s ease; }
.tf-step.active .tf-n { color: var(--accent); border-color: var(--accent); }
.tf-step.done .tf-n { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.tf-l { display: flex; flex-direction: column; line-height: 1.2; }
.tf-l b { font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.tf-l i { font-style: normal; color: var(--on-dark-soft); font-size: .9rem; margin-top: 3px; }

.tf-viewer { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--hairline); background: var(--navy-700); box-shadow: 0 34px 64px -42px rgba(0,0,0,0.9); }
.tf-stage { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); display: grid; place-items: center; }
.tf-stage.on { opacity: 1; transform: none; }
.tf-svg { width: 100%; height: 100%; }
.tf-real img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.tf-blueprint { background: linear-gradient(160deg, #0c1a30, #0a1422); }
.bp-line { fill: none; stroke: #cfe0f5; stroke-width: 2; }
.bp-thin { stroke-width: 1.3; opacity: .65; }
.bp-band line { stroke: #5f86bf; stroke-width: 1.2; opacity: .85; }
.bp-center { stroke: #3f5f8f; stroke-width: 1; stroke-dasharray: 8 6; }
.bp-dim line { stroke: #7fa8df; stroke-width: 1; }
.bp-dim path { fill: #7fa8df; }
.bp-dim text { fill: #9fc0ea; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 11px; letter-spacing: 1px; }
.bp-lead { stroke: var(--accent); stroke-width: 1.4; }
.bp-lead-dot { fill: var(--accent); }
.bp-label { fill: #cfe0f5; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 11px; letter-spacing: 1px; }

.tf-render { background: radial-gradient(120% 90% at 50% 22%, #2b3a4b, #121b27); }
.rn-band line { stroke: rgba(38,52,67,0.55); stroke-width: 2; }
.rn-shadow { fill: rgba(0,0,0,0.45); }
.rn-spec { stroke: rgba(255,255,255,0.5); stroke-width: 2; }

.tf-tag { position: absolute; left: 14px; top: 14px; background: rgba(10,16,24,0.82); color: #fff; font-family: var(--display); font-weight: 800; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; padding: 7px 12px; border-radius: 4px; z-index: 4; opacity: 0; transition: opacity .5s ease; }
.tf-stage.current .tf-tag { opacity: 1; }
.tf-scrub { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 7px; z-index: 4; }
.tf-scrub i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.32); transition: background .3s ease, width .3s ease; }
.tf-scrub i.active { background: var(--accent); width: 22px; border-radius: 5px; }

@media (max-width: 880px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .ind-grid { grid-template-columns: 1fr 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-media { order: -1; }
  .process-media image-slot { min-height: 300px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-side { position: static; }
  .tf-grid { grid-template-columns: 1fr; }
  .tf-viewer { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .trustbar-inner { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(1), .trust-item:nth-child(2) { border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
}
@media (max-width: 560px) {
  .cards-grid { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
}

/* ============================================================
   MULTI-PAGE: page hero + shared page sections
   ============================================================ */
.nav a.active { color: var(--on-dark); }
.nav a.active::after { content: ""; display: block; height: 2px; background: var(--accent); margin-top: 4px; }
[data-header="white"] .header .nav a.active { color: var(--on-light); }

.page-hero {
  position: relative; background: var(--navy-800); color: var(--on-dark);
  padding-block: clamp(72px, 11vw, 132px); overflow: hidden; isolation: isolate;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(110% 120% at 88% 0%, rgba(242,89,29,0.10), transparent 52%);
}
.page-hero .wrap { max-width: 900px; }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin-top: 18px; text-wrap: balance; }
.page-hero p { margin-top: 20px; font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--on-dark-soft); max-width: 64ch; line-height: 1.55; }
.page-hero .crumbs { font-size: .82rem; color: var(--on-dark-mute); letter-spacing: .04em; }
.page-hero .crumbs a:hover { color: var(--accent); }

/* expanded service detail blocks */
.svc-detail { display: grid; gap: 1px; background: var(--card-line); border: 1px solid var(--card-line); border-radius: var(--radius-lg); overflow: hidden; }
.svc-row { background: var(--white); display: grid; grid-template-columns: 64px 1fr auto; gap: 24px; padding: 32px 30px; align-items: start; }
.svc-row .svc-icon { margin: 0; }
.svc-row .sd-body h3 { font-size: 1.45rem; }
.svc-row .sd-body p { color: var(--on-light-soft); margin-top: 10px; font-size: 1.02rem; line-height: 1.6; max-width: 64ch; }
.svc-row .sd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.svc-row .sd-tags span { font-size: .82rem; font-weight: 600; color: var(--on-light-soft); background: var(--paper); border: 1px solid var(--card-line); padding: 6px 11px; border-radius: 999px; }
.svc-row .svc-num { color: var(--accent); }

/* areas served */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.area-card { background: var(--white); border: 1px solid var(--card-line); border-radius: var(--radius); padding: 26px 24px; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.area-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 16px 30px -22px rgba(13,21,33,0.5); }
.area-card .ac-ico { width: 30px; height: 30px; color: var(--accent); }
.area-card h3 { font-size: 1.25rem; margin-top: 14px; }
.area-card p { color: var(--on-light-soft); margin-top: 8px; font-size: .96rem; line-height: 1.5; }
.area-note { margin-top: 34px; padding: 26px 28px; background: var(--steel-700); color: var(--on-dark); border-radius: var(--radius-lg); border-left: 3px solid var(--accent); }
.area-note b { font-family: var(--display); }

/* about */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(36px, 5vw, 64px); align-items: center; }
.about-grid .ab-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 30px 60px -42px rgba(0,0,0,0.7); }
.about-grid .ab-media img { width: 100%; height: 100%; object-fit: cover; }
.about-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-top: 14px; }
.about-copy p { color: var(--on-light-soft); margin-top: 16px; font-size: 1.08rem; line-height: 1.65; }
.section-dark .about-copy p, .section-dark2 .about-copy p { color: var(--on-dark-soft); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--radius-lg); overflow: hidden; margin-top: 36px; }
.stat-row .stat { background: var(--dark-section); padding: 26px 22px; }
.stat-row .stat b { font-family: var(--display); font-weight: 900; font-size: 2rem; color: var(--accent); display: block; }
.stat-row .stat span { color: var(--on-dark-soft); font-size: .95rem; }

@media (max-width: 880px) {
  .areas-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .ab-media { order: -1; aspect-ratio: 16/10; }
  .svc-row { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 560px) {
  .areas-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
}

/* ============================================================
   PROCESS build-up viewer (steps 01–06 drive the visual)
   ============================================================ */
#procSteps .step { cursor: pointer; border-radius: 6px; transition: opacity .25s ease, background .2s ease; padding-inline: 12px; margin-inline: -12px; opacity: .6; outline: none; }
#procSteps .step.active { opacity: 1; }
#procSteps .step:hover { opacity: .9; }
#procSteps .step.active::before { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
#procSteps .step:focus-visible { box-shadow: 0 0 0 2px var(--accent); }

.pf-viewer { position: relative; aspect-ratio: 4 / 3; min-height: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--hairline); background: var(--navy-700); box-shadow: 0 34px 64px -42px rgba(0,0,0,0.9); }
.pf-stage { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; display: grid; place-items: center; }
.pf-stage.on { opacity: 1; }
.pf-svg { width: 100%; height: 100%; }
.pf-real img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-bp { background: linear-gradient(160deg, #0c1a30, #0a1422); }
.pf-fit { background: radial-gradient(120% 90% at 50% 26%, #3b3a40, #16151b); }
.pf-metal { background: radial-gradient(120% 90% at 50% 22%, #2b3a4b, #121b27); }
.pf-cut line { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 6 5; }
.pf-seg text { fill: #9fc0ea; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 13px; text-anchor: middle; dominant-baseline: middle; }
.pf-checks circle { fill: var(--accent); }
.pf-checks path { stroke: #fff; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pf-tag { position: absolute; left: 14px; bottom: 14px; background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-weight: 800; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; padding: 8px 13px; border-radius: 4px; z-index: 3; }
.pf-progress { position: absolute; right: 14px; top: 14px; display: flex; gap: 6px; z-index: 3; }
.pf-progress i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.32); transition: background .3s ease, width .3s ease; }
.pf-progress i.active { background: var(--accent); width: 18px; border-radius: 4px; }
