/* =====================================================
   toneWorks Design System
   Aesthetic: Refined Industrial — precision meets craft
   Font pairing: DM Serif Display + IBM Plex Mono + DM Sans
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=IBM+Plex+Mono:wght@400;500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ─── CSS Variables ────────────────────────────────── */
:root {
  --ink:        #0e0e0d;
  --ink-light:  #2c2b28;
  --mist:       #f4f1eb;
  --paper:      #faf8f3;
  --line:       #ddd9cf;
  --accent:     #c8522a;       /* ember orange */
  --accent-dim: #a3401f;
  --accent-pale:#f5e0d6;
  --steel:      #4a5568;
  --tone3d:     #2d4a6e;      /* deep navy */
  --tonesec:    #1a3a2a;      /* deep forest */
  --toneed:     #4a2d6e;      /* deep violet */

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-w: 1160px;
  --rad:   4px;
  --shadow: 0 2px 16px rgba(14,14,13,0.08);
  --shadow-lg: 0 8px 48px rgba(14,14,13,0.12);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ─── Typography ───────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}

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

/* ─── Layout Utilities ─────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }
.section--flush { padding-top: 0; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ─── Navigation ───────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,248,243,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}

.nav.scrolled {
  box-shadow: 0 2px 24px rgba(14,14,13,0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
}

.nav__logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav__logo .dot { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  transition: color 0.2s;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}

.nav__link:hover, .nav__link.active {
  color: var(--ink);
}

.nav__link:hover::after, .nav__link.active::after {
  width: 100%;
}

.nav__cta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--rad);
  transition: background 0.2s, transform 0.2s;
}

.nav__cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

/* Mobile menu */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 20px 32px 28px;
  border-top: 1px solid var(--line);
  gap: 20px;
}

.nav__mobile.open { display: flex; }

.nav__mobile .nav__link {
  font-size: 0.9rem;
}

/* ─── Hero ─────────────────────────────────────────── */
.hero {
  padding-top: 160px;
  padding-bottom: 96px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -120px;
  width: 580px; height: 580px;
  background: radial-gradient(ellipse, rgba(200,82,42,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--accent);
}

.hero__title {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  max-width: 700px;
  margin-bottom: 24px;
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__body {
  font-size: 1.15rem;
  color: var(--steel);
  max-width: 520px;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero__phone {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--steel);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.hero__phone:hover { color: var(--accent); }

/* ─── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: var(--rad);
  transition: all 0.22s var(--ease);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
}

.btn--primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,82,42,0.25);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn--outline:hover {
  border-color: var(--ink);
  background: var(--mist);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  padding-left: 0;
  padding-right: 0;
}

.btn--ghost:hover { color: var(--accent-dim); }

.btn--ghost .arrow {
  transition: transform 0.2s var(--ease);
}

.btn--ghost:hover .arrow { transform: translateX(4px); }

/* ─── Service Cards ────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.service-card {
  background: var(--paper);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.service-card:hover { background: var(--mist); }
.service-card:hover::after { transform: scaleX(1); }

.service-card__tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.service-card__title {
  font-size: 1.5rem;
  font-family: var(--font-display);
}

.service-card__body {
  font-size: 0.95rem;
  color: var(--steel);
  font-weight: 300;
  flex: 1;
}

/* ─── Section Header ───────────────────────────────── */
.section-head {
  margin-bottom: 56px;
}

.section-head__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 12px;
  max-width: 560px;
}

.section-head--center {
  text-align: center;
}

.section-head--center .section-head__title { margin: 12px auto 0; }

/* ─── About Panel ──────────────────────────────────── */
.about-panel {
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
}

.about-panel__accent {
  background: var(--accent);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 400px;
  position: relative;
}

.about-panel__accent::before {
  display: none;
}

.about-panel__name {
  font-family: var(--font-display);
  font-size: 2rem;
  color: white;
  position: relative;
}

.about-panel__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.about-panel__content {
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.about-panel__text {
  font-size: 1.0rem;
  color: rgba(244,241,235,0.85);
  font-weight: 300;
  line-height: 1.75;
}

.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.cert {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border: 1px solid rgba(244,241,235,0.2);
  border-radius: 2px;
  color: rgba(244,241,235,0.7);
}

/* ─── Contact Section ──────────────────────────────── */
.contact-block {
  background: var(--mist);
  border-radius: 12px;
  padding: 56px 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info__label {
  margin-bottom: 24px;
}

.contact-info__body {
  font-size: 0.95rem;
  color: var(--steel);
  margin-bottom: 32px;
  font-weight: 300;
  line-height: 1.7;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink);
  margin-bottom: 12px;
  transition: color 0.2s;
}

.contact-detail:hover { color: var(--accent); }

.contact-detail__icon {
  width: 32px; height: 32px;
  background: var(--line);
  border-radius: var(--rad);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

/* ─── Form ─────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 16px; }

.form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

.form__input,
.form__textarea,
.form__select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  background: white;
  border: 1.5px solid var(--line);
  border-radius: var(--rad);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  width: 100%;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,82,42,0.1);
}

.form__textarea { min-height: 120px; resize: vertical; }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__note {
  font-size: 0.78rem;
  color: var(--steel);
  opacity: 0.7;
}

/* ─── Footer ───────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: rgba(244,241,235,0.6);
  padding: 64px 0 40px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer__brand .nav__logo { color: var(--paper); margin-bottom: 16px; }

.footer__tagline {
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 240px;
}

.footer__heading {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244,241,235,0.4);
  margin-bottom: 16px;
}

.footer__link {
  display: block;
  font-size: 0.9rem;
  color: rgba(244,241,235,0.6);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer__link:hover { color: var(--accent); }

.footer__bottom {
  border-top: 1px solid rgba(244,241,235,0.1);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244,241,235,0.4);
  transition: color 0.2s;
}

.footer__social-link:hover { color: var(--paper); }

/* ─── Page Hero Variants ───────────────────────────── */
.page-hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero--3d {
  background: linear-gradient(135deg, #0d1b2e 0%, #162840 60%, #1e3a56 100%);
  color: white;
}

.page-hero--sec {
  background: linear-gradient(135deg, #071410 0%, #0f2218 60%, #183025 100%);
  color: white;
}

.page-hero__title {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
}

.page-hero__title .word {
  display: inline-block;
  overflow: hidden;
}

.page-hero__sub {
  font-size: 1.15rem;
  opacity: 0.7;
  max-width: 480px;
  margin-top: 20px;
  font-weight: 300;
}

.page-hero__geo {
  position: absolute;
  top: 50%; right: 8%;
  transform: translateY(-50%);
  opacity: 0.08;
  font-family: var(--font-display);
  font-size: 22vw;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  color: white;
}

/* ─── Feature List ─────────────────────────────────── */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.feature-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}

.feature-item:last-child { border-bottom: none; }
.feature-item:hover { background: var(--mist); }

.feature-item__num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  padding: 24px 0 24px 20px;
  display: flex;
  align-items: flex-start;
  padding-top: 26px;
}

.feature-item__content {
  padding: 22px 28px 22px 0;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.feature-item__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.feature-item__body {
  font-size: 0.88rem;
  color: var(--steel);
  font-weight: 300;
}

/* ─── Store Locations ──────────────────────────────── */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.location-card {
  background: var(--paper);
  padding: 28px 32px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: background 0.2s;
}

.location-card:hover { background: var(--mist); }

.location-card__pin {
  width: 36px; height: 36px;
  background: var(--accent-pale);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.location-card__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.location-card__sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--steel);
  margin-bottom: 6px;
}

.location-card__link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.location-card:hover .location-card__link { gap: 8px; }

/* ─── Quote / Callout ──────────────────────────────── */
.callout {
  background: var(--accent);
  color: white;
  border-radius: 8px;
  padding: 48px 52px;
  position: relative;
  overflow: hidden;
}

.callout::before {
  content: '—';
  position: absolute;
  top: 16px; right: 36px;
  font-family: var(--font-display);
  font-size: 7rem;
  color: rgba(255,255,255,0.1);
  line-height: 1;
}

.callout__text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  line-height: 1.4;
  max-width: 620px;
  position: relative;
}

/* ─── Page-specific: toneSec services ─────────────── */
.sec-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 48px;
}

.sec-service {
  background: var(--paper);
  padding: 28px 32px;
  transition: background 0.2s;
}

.sec-service:hover { background: var(--mist); }

.sec-service__tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.sec-service__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.sec-service__body {
  font-size: 0.88rem;
  color: var(--steel);
  font-weight: 300;
}

/* ─── Partner Banner ───────────────────────────────── */
.partner-banner {
  background: var(--tonesec);
  color: white;
  border-radius: 8px;
  padding: 36px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.partner-banner__text h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.partner-banner__text p {
  font-size: 0.9rem;
  opacity: 0.7;
  font-weight: 300;
}

.partner-banner .btn--primary {
  background: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── Divider ──────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 0;
}

/* ─── Scroll Reveal Animations ─────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── Grain Overlay ────────────────────────────────── */
.noise-bg {
  position: relative;
}

.noise-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

/* ─── Responsive ───────────────────────────────────── */
@media (max-width: 960px) {
  .grid-2, .grid-3, .services-grid {
    grid-template-columns: 1fr;
  }

  .about-panel {
    grid-template-columns: 1fr;
  }

  .about-panel__accent {
    min-height: 360px;
    padding: 0;
  }

  .about-panel__content {
    padding: 40px 36px;
  }

  .contact-block {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 32px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .sec-services {
    grid-template-columns: 1fr;
  }

  .locations-grid {
    grid-template-columns: 1fr;
  }

  .partner-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-hero__geo { display: none; }
}

@media (max-width: 680px) {
  .container { padding: 0 20px; }

  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  .hero { padding-top: 120px; padding-bottom: 64px; }
  .hero--bg { padding-top: 140px; padding-bottom: 80px; }
  .section { padding: 64px 0; }
  .section--sm { padding: 48px 0; }

  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__title { font-size: 2.4rem; }

  /* About panel portrait — give it a fixed height on mobile */
  .about-panel__accent { min-height: 300px; }
  .about-panel__accent img { min-height: 300px; }

  /* Service cards */
  .service-card { padding: 28px 24px; }
  .service-card__img { height: 140px; }

  /* Feature list */
  .feature-item { grid-template-columns: 40px 1fr; }
  .feature-item__content { padding: 18px 16px 18px 16px; }

  /* Contact block */
  .contact-block { padding: 32px 24px; }

  /* callout-bg */
  .callout-bg__content { padding: 36px 24px; }
  .callout { padding: 36px 28px; }
  .callout::before { display: none; }
  .callout__text { font-size: 1.1rem; }

  /* Page hero */
  .page-hero { padding: 110px 0 56px; }
  .page-hero__title { font-size: 3.5rem; }
  .page-hero__sub { font-size: 1rem; }

  /* Stat row on toneEd */
  .stat-card { padding: 28px 20px; }
  .stat-card__num { font-size: 2.2rem; }

  /* Cognoscient block on toneEd */
  .cognoscient-block { padding: 36px 24px; }

  /* Footer */
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer__social { justify-content: center; }

  /* Forms */
  .form__row { grid-template-columns: 1fr; }
  .form__input, .form__textarea, .form__select { font-size: 1rem; }

  /* Etsy banner on tone3D */
  .etsy-cta-banner { flex-direction: column; align-items: flex-start !important; }

  /* Inline grids used with style= attributes — force stack */
  [style*="grid-template-columns:1fr 1.2fr"],
  [style*="grid-template-columns: 1fr 1.2fr"],
  [style*="grid-template-columns:1fr 1.6fr"],
  [style*="grid-template-columns: 1fr 1.6fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2rem; }
  .page-hero__title { font-size: 2.8rem; }
  .section-head__title { font-size: 1.7rem; }
  .btn { padding: 11px 20px; font-size: 0.72rem; }
  .cert { font-size: 0.62rem; padding: 3px 8px; }
  .cognoscient-block__title { font-size: 1.6rem; }
  .stat-card__num { font-size: 1.8rem; }
}

/* ─── Utilities ────────────────────────────────────── */
.text-accent { color: var(--accent); }
.text-steel  { color: var(--steel); }
.mt-8  { margin-top: 8px;  }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px;  }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.page-body { padding-top: 64px; } /* offset for fixed nav */

/* ─── Image Helpers ─────────────────────────────────── */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-frame {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.service-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 4px;
}

.hero-banner-img {
  width: 100%;
  border-radius: 8px;
  max-height: 420px;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin-top: 48px;
  box-shadow: var(--shadow-lg);
}

.split-img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.page-hero-img-strip {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0.25;
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: 0;
}

.bg-image-section {
  position: relative;
}

.bg-image-section > * {
  position: relative;
  z-index: 1;
}

/* ─── Hero Background Image ─────────────────────────── */
.hero--bg {
  position: relative;
  padding-top: 180px;
  padding-bottom: 120px;
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Dark gradient overlay so text stays readable */
.hero__bg-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(8, 6, 20, 0.82) 0%,
    rgba(8, 6, 20, 0.65) 50%,
    rgba(8, 6, 20, 0.45) 100%
  );
}

.hero--bg .container {
  position: relative;
  z-index: 2;
}

/* Adjust text colors for dark hero */
.hero--bg .label { color: rgba(255,255,255,0.55); }
.hero--bg .hero__eyebrow::before { background: #c8522a; }
.hero--bg .hero__title { color: #fff; }
.hero--bg .hero__body { color: rgba(255,255,255,0.72); }
.hero--bg .hero__phone { color: rgba(255,255,255,0.55); }
.hero--bg .hero__phone:hover { color: #c8522a; }

/* Keep the Get Started button bright */
.hero--bg .btn--primary {
  background: var(--accent);
  color: white;
}
.hero--bg .btn--primary:hover {
  background: var(--accent-dim);
}

@media (max-width: 680px) {
  .hero--bg {
    padding-top: 140px;
    padding-bottom: 80px;
  }
}

/* ─── Cognoscient home section responsive ──────────── */
@media (max-width: 860px) {
  .cognoscient-home-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .cognoscient-home-grid > div:first-child {
    align-items: center;
    text-align: center;
  }
  .cognoscient-home-grid > div:first-child div {
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .cognoscient-home-section {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }
  .cognoscient-home-grid img[alt="Cognoscient"] {
    width: 130px !important;
  }
}
