/* PEAQ Development — design system
   Architectural, confident, high-contrast. Espresso / charcoal / ivory / stone. No color accents. */

/* Self-hosted variable fonts (Google Fonts, SIL Open Font License) */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Espresso — primary brand. Sampled directly from peaq-hero-bg.png so the
     hero surface and every other dark section read as one continuous
     material rather than several different browns. */
  --espresso: #2a170d;
  --espresso-2: #1b0e07;

  /* Charcoal / near-black — deepest surfaces (footer) */
  --charcoal: #140b06;
  --charcoal-2: #0c0603;

  /* Warm white / ivory — hero */
  --ivory: #f7f3ea;
  --ivory-2: #fcfaf5;

  /* Warm stone / architectural gray */
  --stone-50: #efe9dc;
  --stone: #dad3c4;
  --stone-deep: #b9b0a0;

  --ink: #211711;
  --ink-soft: #6b5c4f;
  --ink-faint: #96897a;
  --cream: #f3eee2;
  --cream-soft: rgba(243, 238, 226, 0.72);
  --cream-soft-strong: rgba(243, 238, 226, 0.88);
  --cream-faint: rgba(243, 238, 226, 0.4);
  --border: rgba(33, 23, 17, 0.14);
  --border-on-dark: rgba(243, 238, 226, 0.16);
  /* Neutral accent used for underlines/rules — replaces any color accent */
  --accent: var(--espresso);
  --accent-on-dark: var(--cream);
  /* Very restrained warm tan/gold micro-accent — used only for the small
     rule preceding eyebrow labels. Never a section background. */
  --accent-gold: #a5875a;

  --font-display: 'Bricolage Grotesque', 'Space Grotesk', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --content-max: 1220px;
  --radius: 3px;
  --tap: 44px;
  --ease: cubic-bezier(0.16, 0.8, 0.24, 1);

  color-scheme: light;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
picture { display: contents; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
#services, #about, #request { scroll-margin-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }

.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 768px) {
  .container { padding-inline: 40px; }
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--espresso);
  color: var(--ivory);
  padding: 12px 18px;
  border-radius: var(--radius);
  z-index: 200;
  transition: top 0.15s ease;
  text-decoration: none;
  font-weight: 500;
}
.skip-link:focus { top: 12px; }

/* Focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--espresso);
  outline-offset: 3px;
  border-radius: 2px;
}
[data-surface="dark"] a:focus-visible,
[data-surface="dark"] button:focus-visible,
.hero a:focus-visible,
.hero button:focus-visible,
.services-cta a:focus-visible,
.services-cta button:focus-visible,
.final-cta-dark a:focus-visible,
.final-cta-dark button:focus-visible,
.request-hero-dark a:focus-visible,
.request-section-dark a:focus-visible,
.request-section-dark button:focus-visible,
.request-section-dark input:focus-visible,
.request-section-dark select:focus-visible,
.request-section-dark textarea:focus-visible {
  outline-color: var(--ivory);
}

/* Typography helpers */
/* Sitewide section-heading system: a short rule + eyebrow label, then a
   much larger heading beneath it. Consistent everywhere it appears. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  flex-shrink: 0;
  background: var(--accent-gold);
}
[data-surface="dark"] .eyebrow { color: rgba(243,238,226,0.65); }

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(2.8rem, 5.6vw + 1rem, 5.5rem);
  line-height: 1.04;
  overflow-wrap: break-word;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(2.1rem, 3.2vw + 1rem, 3.6rem);
  line-height: 1.05;
  overflow-wrap: break-word;
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(1.25rem, 1vw + 1rem, 1.5rem);
  line-height: 1.25;
}
.lede {
  font-size: clamp(1.05rem, 0.4vw + 1rem, 1.25rem);
  color: var(--ink-soft);
  max-width: 46ch;
  overflow-wrap: break-word;
}
[data-surface="dark"] .lede { color: rgba(243,238,226,0.78); }

/* Large graphic display headings — used for centered visual moments */
.display-heading {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(2.7rem, 6vw + 1rem, 5.6rem);
  line-height: 1.04;
  overflow-wrap: break-word;
}
@media (max-width: 480px) {
  .display-heading { font-size: clamp(2rem, 10vw, 2.8rem); }
}

/* Oversized graphic numerals / words used as compositional elements */
.type-huge {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}

/* Editorial italic accent line */
.editorial-line {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 0.8vw + 0.95rem, 1.4rem);
  color: var(--ink-soft);
}
[data-surface="dark"] .editorial-line { color: rgba(243,238,226,0.72); }

/* Editorial heading reveal — eyebrow + heading rise together from behind a
   hard mask as the section enters view. One of a handful of deliberate
   motion moments; everything else stays a simple fade. Reuses the same
   [data-reveal]/.is-visible plumbing below, so no extra JS is needed. */
.heading-reveal { display: block; overflow: hidden; }
/* display:block is unconditional so multi-line headings still stack
   correctly with no JS; only the hide-until-revealed state needs .js. */
.heading-reveal-inner { display: block; }
.js .heading-reveal-inner {
  transform: translateY(115%);
  opacity: 0;
  transition: transform 0.9s var(--ease), opacity 0.5s var(--ease);
}
.js [data-reveal].is-visible .heading-reveal-inner {
  transform: none;
  opacity: 1;
}

/* Scroll-reveal system (progressive enhancement — see main.js)
   Plain [data-reveal] fades the element itself.
   [data-reveal="group"] fades only its [data-reveal-child] descendants, staggered. */
.js [data-reveal]:not([data-reveal="group"]) {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js [data-reveal]:not([data-reveal="group"]).is-visible {
  opacity: 1;
  transform: none;
}
.js [data-reveal-child] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js [data-reveal].is-visible [data-reveal-child] { opacity: 1; transform: none; }
.js [data-reveal].is-visible [data-reveal-child]:nth-child(1) { transition-delay: 0.05s; }
.js [data-reveal].is-visible [data-reveal-child]:nth-child(2) { transition-delay: 0.16s; }
.js [data-reveal].is-visible [data-reveal-child]:nth-child(3) { transition-delay: 0.27s; }
.js [data-reveal].is-visible [data-reveal-child]:nth-child(4) { transition-delay: 0.38s; }
.js [data-reveal].is-visible [data-reveal-child]:nth-child(5) { transition-delay: 0.49s; }
.js [data-reveal].is-visible [data-reveal-child]:nth-child(6) { transition-delay: 0.6s; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--tap);
  padding: 15px 32px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-primary {
  background: var(--espresso);
  color: var(--ivory);
}
.btn-primary:hover { background: var(--espresso-2); transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(43,30,26,0.45); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn-arrow { display: inline-block; transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow, .btn:focus-visible .btn-arrow { transform: translate(3px, -3px); }
[data-surface="dark"] .btn-primary {
  background: var(--ivory);
  color: var(--espresso);
}
[data-surface="dark"] .btn-primary:hover { background: var(--ivory-2); box-shadow: 0 10px 24px -12px rgba(0,0,0,0.35); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--ink-soft); transform: translateY(-2px); }
[data-surface="dark"] .btn-ghost {
  color: var(--ivory);
  border-color: var(--border-on-dark);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease), gap 0.2s var(--ease);
}
.text-link:hover { border-color: currentColor; gap: 10px; }
.text-link.caps {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 13px;
  font-weight: 700;
  border-bottom: none;
  gap: 8px;
}
.text-link.caps:hover { gap: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 234, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px -14px rgba(21, 17, 14, 0.35);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  transition: min-height 0.35s var(--ease);
}
.site-header.is-scrolled .container { min-height: 72px; }
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: auto;
}
.brand img {
  height: 44px;
  width: auto;
  max-width: none;
  object-fit: contain;
  transition: height 0.35s var(--ease);
}
@media (min-width: 480px) {
  .brand img { height: 50px; }
}
.site-header.is-scrolled .brand img { height: 36px; }
@media (min-width: 480px) {
  .site-header.is-scrolled .brand img { height: 40px; }
}

.main-nav { display: none; }
@media (min-width: 960px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-right: 28px;
  }
  .main-nav .nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
  }
  .main-nav .nav-links a {
    position: relative;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.01em;
    color: var(--ink);
    padding: 8px 0;
  }
  .main-nav .nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
  }
  .main-nav .nav-links a:hover::after,
  .main-nav .nav-links a[aria-current="page"]::after {
    transform: scaleX(1);
  }
}

/* Header controls — language switch is always visible beside the menu
   control, at every breakpoint. Never hidden inside the mobile panel. */
.header-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* Language switcher — EN | ES, integrated into the header, no flags. */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 7px;
}
.lang-switch-sep { color: var(--border); font-size: 12px; }
.lang-btn {
  position: relative;
  background: none;
  border: none;
  padding: 6px 1px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  cursor: pointer;
}
.lang-btn::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.lang-btn.is-active { color: var(--ink); }
.lang-btn.is-active::after { transform: scaleX(1); }
.lang-btn:hover { color: var(--ink); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
@media (min-width: 960px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile panel drops in below the (still visible) header, rather than
   covering it — the logo and EN/ES stay reachable while it's open. */
.mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h, 84px);
  bottom: 0;
  z-index: 90;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  padding: 8px 24px 32px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), visibility 0.25s;
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
@media (min-width: 960px) { .mobile-nav { display: none; } }
.mobile-nav-links {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
}
.mobile-nav-links li { border-bottom: 1px solid var(--border); }
.mobile-nav-links a {
  display: flex;
  align-items: center;
  min-height: 64px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-decoration: none;
  color: var(--ink);
}
.mobile-nav-cta { margin-top: 32px; }
.mobile-nav-cta .btn { width: 100%; }
body.nav-open { overflow: hidden; }

/* Sections */
.section { padding-block: clamp(56px, 9vw, 108px); }
.section[data-surface="dark"] { background: var(--espresso); color: var(--ivory); }
.section[data-surface="sand"] { background: var(--stone-50); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ============ Hero — architectural brand moment ============ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--espresso);
  color: var(--cream);
  display: flex;
  align-items: center;
}

/* The embossed monogram lives inside peaq-hero-bg.jpg itself — no overlay,
   no CSS-recreated mark. This layer only carries the image + its own
   restrained parallax, offset a little slower than the foreground copy. */
.hero-bg {
  position: absolute;
  inset: -4% -4%;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
/* Real <img> (not a CSS background) so the preload scanner finds it early. */
.hero-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% center;
}
@media (max-width: 640px) {
  .hero-bg img { object-position: 38% center; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: clamp(56px, 11vh, 108px) clamp(64px, 12vh, 120px);
}
.hero-content { max-width: 620px; will-change: transform; }
.hero-eyebrow {
  margin-bottom: 22px;
  color: var(--cream);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  opacity: 0.92;
}
.hero-heading {
  color: var(--cream);
  text-transform: uppercase;
  font-size: clamp(3.2rem, 8vw + 1rem, 7.2rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin-bottom: 26px;
  overflow-wrap: break-word;
}
.hero-heading .heading-reveal:nth-of-type(2) .heading-reveal-inner {
  transition-delay: 0.14s;
}
@media (max-width: 480px) {
  .hero-heading { font-size: clamp(2.2rem, 12vw, 3rem); }
}
.hero .lede {
  max-width: 42ch;
  margin-bottom: 8px;
  font-size: clamp(1.1rem, 0.5vw + 1rem, 1.3rem);
  overflow-wrap: break-word;
  color: var(--cream-soft-strong);
}
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.hero .btn-primary { background: var(--cream); color: var(--espresso); }
.hero .btn-primary:hover { background: var(--ivory-2); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.4); }

/* ============ Services — warm-white, interactive editorial panel ============ */
.services {
  position: relative;
  overflow: hidden;
  background: var(--stone-50);
  color: var(--ink);
  padding-block: clamp(72px, 11vw, 128px);
}
.services-head { max-width: 640px; margin-bottom: clamp(48px, 7vw, 76px); }
.services-head .eyebrow { margin-bottom: 20px; }
.services-supporting {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 0.4vw + 1rem, 1.25rem);
  max-width: 46ch;
}

.services-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
}
@media (min-width: 900px) {
  .services-body { grid-template-columns: 0.95fr 1.2fr; gap: 64px; }
}

.services-list { display: flex; flex-direction: column; }
.service-row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: baseline;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  padding: clamp(24px, 3.4vw, 34px) 0;
  cursor: pointer;
  color: var(--ink);
}
.services-list .service-row:last-child { border-bottom: 1px solid var(--border); }
.service-row-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 2.8vw + 1rem, 3.2rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--stone-deep);
  transition: -webkit-text-stroke-color 0.4s var(--ease), color 0.4s var(--ease);
}
.service-row.is-active .service-row-index,
.service-row:hover .service-row-index,
.service-row:focus-visible .service-row-index {
  color: var(--ink);
  -webkit-text-stroke: 1px var(--ink);
}
.service-row-text { display: block; }
.service-row-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 2vw + 1rem, 2.5rem);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--ink-soft);
  transition: color 0.35s var(--ease), transform 0.35s var(--ease);
}
.service-row.is-active .service-row-title,
.service-row:hover .service-row-title,
.service-row:focus-visible .service-row-title {
  color: var(--ink);
  transform: translateX(8px);
}
.service-row-meta {
  display: block;
  font-size: 16px;
  color: var(--ink-faint);
  max-width: 46ch;
}
.service-row-image {
  display: none;
}

.services-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--stone);
}
.services-visual-frame { position: relative; width: 100%; height: 100%; }
.services-visual-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}
.services-visual-frame img.is-active {
  opacity: 1;
  transform: scale(1);
}
@media (max-width: 899px) {
  .services-visual { display: none; }
  .service-row { grid-template-columns: auto 1fr; }
  .service-row-image {
    display: block;
    grid-column: 1 / -1;
    margin-top: 16px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
  }
  .service-row-image img { width: 100%; height: 100%; object-fit: cover; }
}

/* ============ Services CTA — deliberate espresso bridge ============ */
.services-cta {
  position: relative;
  overflow: hidden;
  background: var(--espresso);
  color: var(--cream);
  padding-block: clamp(56px, 9vw, 96px);
}
.services-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.services-cta-text { flex: 1 1 360px; }
.services-cta-text .eyebrow { margin-bottom: 16px; color: var(--cream-soft); }
.services-cta-heading {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 2.4vw + 1rem, 2.6rem);
  color: var(--cream);
  margin-bottom: 12px;
}
.services-cta-copy { color: var(--cream-soft); max-width: 42ch; }
.services-cta .btn-primary { background: var(--cream); color: var(--espresso); flex-shrink: 0; }
.services-cta .btn-primary:hover { background: var(--ivory-2); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.4); }

/* ============ About PEAQ — editorial split, directly below the hero ============ */
.about-home {
  background: var(--ivory);
  padding-block: clamp(72px, 11vw, 120px);
}
.about-home-heading {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 3.4vw + 1rem, 3.6rem);
  line-height: 1.05;
}
.about-home-body {
  font-size: clamp(1.1rem, 0.5vw + 1rem, 1.3rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 26px;
}

/* ============ How PEAQ works — ivory, numbers as the sole graphic device ============ */
.how-it-works {
  position: relative;
  overflow: hidden;
  background: var(--ivory);
  padding-block: clamp(72px, 10vw, 116px);
}
.how-head { max-width: 640px; margin-bottom: clamp(48px, 7vw, 76px); }
.how-steps {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 52px;
}
@media (min-width: 860px) {
  .how-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 56px;
  }
}
.how-step {
  position: relative;
  z-index: 1;
  will-change: transform;
}
.how-step-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4.2rem, 6vw + 1rem, 6.4rem);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--stone-deep);
  line-height: 0.85;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.how-step h3 { color: var(--ink); margin-bottom: 10px; margin-top: 12px; font-size: clamp(1.25rem, 1vw + 1rem, 1.5rem); }
.how-step p { color: var(--ink-soft); max-width: 32ch; }
.js [data-reveal] .how-step {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js [data-reveal].is-visible .how-step { opacity: 1; transform: none; }
.js [data-reveal].is-visible .how-step:nth-child(2) { transition-delay: 0.15s; }
.js [data-reveal].is-visible .how-step:nth-child(3) { transition-delay: 0.3s; }

/* Two column layout */
.split {
  display: grid;
  gap: 40px;
  align-items: start;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 0.9fr 1.1fr; gap: 72px; }
}
.split p + p { margin-top: 16px; }
.split ul { margin-top: 20px; display: grid; gap: 12px; list-style: none; }
.split ul li { padding-left: 26px; position: relative; }
.split ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

/* Final CTA */
.final-cta { text-align: center; }
.final-cta h2 { margin-bottom: 28px; }

/* ============ Final CTA — dark espresso, the visual close of the page ============ */
.final-cta-dark {
  position: relative;
  overflow: hidden;
  background: var(--espresso);
  color: var(--cream);
  text-align: center;
  padding-block: clamp(88px, 14vw, 160px);
}
.final-cta-dark .eyebrow { justify-content: center; color: var(--cream-soft); margin-bottom: 24px; }
.final-cta-heading {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(2.8rem, 6vw + 1rem, 5.6rem);
  line-height: 1.02;
  color: var(--cream);
  margin-bottom: 26px;
}
.final-cta-body {
  color: var(--cream-soft-strong);
  font-size: clamp(1.05rem, 0.4vw + 1rem, 1.25rem);
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: 36px;
}
.final-cta-dark .btn-primary { background: var(--cream); color: var(--espresso); }
.final-cta-dark .btn-primary:hover { background: var(--ivory-2); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.4); }

/* ============ Follow PEAQ — minimal, folded into the footer ============ */
/* No placeholder tiles: until a real Instagram URL is configured, the
   handle stays plain (inert) text rather than a fake link or fake grid. */
/* ============ Follow PEAQ — minimal, no fabricated posts ============ */
.instagram-minimal {
  background: var(--ivory);
  padding-block: clamp(52px, 7vw, 80px);
  text-align: center;
}
.instagram-minimal .eyebrow { justify-content: center; margin-bottom: 20px; }
.instagram-handle-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(1.6rem, 2.4vw + 1rem, 2.4rem);
  color: var(--ink);
  text-decoration: none;
  cursor: default;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: gap 0.2s var(--ease), border-color 0.2s var(--ease);
}
a.instagram-handle-link[href] { cursor: pointer; border-bottom-color: var(--border); }
a.instagram-handle-link[href]:hover { gap: 14px; border-bottom-color: var(--ink); }
.ig-post-strip-wrap { position: relative; margin-top: 32px; }
.ig-post-strip-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 10px;
  width: 64px;
  background: linear-gradient(to right, transparent, var(--ivory));
  pointer-events: none;
}
.ig-post-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 10px;
  justify-content: safe center;
  scroll-snap-type: x mandatory;
}
.ig-post-card {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  text-decoration: none;
  scroll-snap-align: start;
}
.ig-post-card img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  transition: opacity 0.2s var(--ease);
}
.ig-post-card:hover img { opacity: 0.88; }
@media (max-width: 640px) {
  .ig-post-card img { width: 220px; height: 220px; }
}

.footer-instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--cream);
  font-weight: 600;
  border-bottom: 1px solid var(--border-on-dark);
  padding-bottom: 2px;
  transition: gap 0.2s var(--ease), border-color 0.2s var(--ease);
}
a.footer-instagram-link[href]:hover { gap: 12px; border-color: var(--cream); }

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: var(--cream);
  padding-block: clamp(64px, 9vw, 96px) 36px;
}
.footer-top {
  display: grid;
  gap: 44px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-on-dark);
}
@media (min-width: 760px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
}
.footer-brand img { height: 36px; width: auto; max-width: none; object-fit: contain; margin-bottom: 18px; }
.footer-brand p { color: var(--cream-soft); max-width: 34ch; }
.footer-heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-faint);
  margin-bottom: 16px;
}
.footer-links { list-style: none; display: grid; gap: 12px; }
.footer-links a { text-decoration: none; color: var(--cream); border-bottom: 1px solid transparent; }
.footer-links a:hover { border-bottom-color: var(--cream); }
.footer-note {
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  color: var(--cream-faint);
  font-size: 13.5px;
}
.footer-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-note a:hover { color: var(--cream); }
.footer-legal { max-width: 62ch; }

.callout {
  border: 1px solid var(--border);
  background: var(--stone-50);
  border-radius: 10px;
  padding: 26px 28px;
  margin-top: 32px;
}
.callout h3 { margin-bottom: 8px; }
.callout p { color: var(--ink-soft); }

/* Page hero (interior pages) */
.page-hero { padding-block: clamp(52px, 8vw, 92px) 8px; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { margin-bottom: 18px; }

/* Form */
.request-layout {
  display: grid;
  gap: 48px;
}
@media (min-width: 940px) {
  .request-layout { grid-template-columns: 1.4fr 1fr; }
}
.form-card {
  background: var(--ivory-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(24px, 4vw, 44px);
}
.field-row { display: grid; gap: 20px; margin-bottom: 20px; }
@media (min-width: 560px) {
  .field-row.cols-2 { grid-template-columns: 1fr 1fr; }
  .field-row.cols-3 { grid-template-columns: 1.2fr 1fr 0.8fr; }
}
.field label {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 8px;
}
.field .hint { display: block; font-weight: 400; color: var(--ink-soft); font-size: 13px; margin-top: 4px; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--ivory);
  font: inherit;
  color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline-offset: 1px; }

.radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-pill {
  position: relative;
}
.radio-pill input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
}
.radio-pill span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
}
.radio-pill input:checked + span {
  background: var(--espresso);
  color: var(--ivory);
  border-color: var(--espresso);
}
.radio-pill input:focus-visible + span { outline: 2px solid var(--espresso); outline-offset: 2px; }

.file-drop {
  position: relative;
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  padding: 28px 22px;
  text-align: center;
  background: var(--ivory);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.file-drop.is-dragover { border-color: var(--espresso); background: var(--stone-50); }
.file-drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-drop-icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 10px;
  color: var(--ink-faint);
}
.file-drop-label { font-weight: 600; font-size: 14.5px; }
.file-drop-hint { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-soft); }
.file-list { margin-top: 12px; font-size: 13.5px; color: var(--ink-soft); list-style: none; display: grid; gap: 4px; }

.form-submit { margin-top: 8px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status {
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 14.5px;
  margin-top: 20px;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.status-info { background: var(--stone-50); color: var(--ink); }
.form-status.status-success { background: #e4ebde; color: #3f4a34; }
.form-status.status-error { background: #f3e2df; color: #6b3229; }

.side-note {
  border-left: 3px solid var(--accent);
  padding-left: 22px;
  order: -1;
}
@media (min-width: 940px) {
  .side-note { order: 0; }
}
.side-note h3 { margin-bottom: 10px; }
.side-note p { color: var(--ink-soft); margin-bottom: 14px; }
.contact-alt { display: grid; gap: 6px; margin-top: 18px; }
.contact-alt a { text-decoration: none; font-weight: 600; }
.side-note-phone-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.side-note-phone-row .side-note-phone { font-weight: 700; font-size: 1.05em; }
.side-note-email { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.side-note-email a { color: inherit; }
.request-section-dark .side-note-email { color: var(--cream-faint); }

/* ============ Get It Handled — request page, same dark language as the
   homepage's final CTA. Fields sit directly on the espresso surface
   instead of inside a light card, so it reads as one integrated page. ============ */
.request-hero-dark {
  background: var(--espresso);
  color: var(--cream);
  padding-block: clamp(64px, 10vw, 108px) clamp(40px, 6vw, 64px);
  text-align: center;
}
.request-hero-dark .container { max-width: 760px; }
.request-hero-dark .eyebrow { justify-content: center; color: var(--cream-soft); margin-bottom: 22px; }
.request-hero-dark h1 {
  color: var(--cream);
  text-transform: uppercase;
  font-size: clamp(2.6rem, 5.2vw + 1rem, 4.8rem);
  letter-spacing: -0.02em;
  line-height: 1.03;
  margin-bottom: 20px;
}
.request-hero-dark .lede { color: var(--cream-soft-strong); max-width: 50ch; margin-inline: auto; }

.request-section-dark {
  background: var(--espresso);
  padding-block: 0 clamp(80px, 11vw, 128px);
}
.request-section-dark .request-layout { max-width: 900px; margin-inline: auto; }
.request-section-dark .form-card { background: transparent; border: none; border-radius: 0; padding: 0; }
.request-section-dark .field label { color: var(--cream); }
.request-section-dark .field .hint { color: var(--cream-faint); }
.request-section-dark .field input,
.request-section-dark .field select,
.request-section-dark .field textarea {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-on-dark);
  color: var(--cream);
}
.request-section-dark .field input::placeholder,
.request-section-dark .field textarea::placeholder { color: var(--cream-faint); }
.request-section-dark .radio-pill span { border-color: var(--border-on-dark); color: var(--cream); }
.request-section-dark .radio-pill input:checked + span { background: var(--cream); color: var(--espresso); border-color: var(--cream); }
.request-section-dark .file-drop { background: rgba(255, 255, 255, 0.03); border-color: var(--border-on-dark); }
.request-section-dark .file-drop.is-dragover { border-color: var(--cream); background: rgba(255, 255, 255, 0.07); }
.request-section-dark .file-drop-icon,
.request-section-dark .file-drop-hint { color: var(--cream-faint); }
.request-section-dark .file-list { color: var(--cream-soft); }
.request-section-dark .file-drop-label { color: var(--cream-soft); }
.request-section-dark .side-note { border-left-color: var(--accent-gold); }
.request-section-dark .side-note h3 { color: var(--cream); }
.request-section-dark .side-note p { color: var(--cream-soft); }
.request-section-dark .side-note a { color: var(--cream); }
.request-section-dark .btn-primary { background: var(--cream); color: var(--espresso); }
.request-section-dark .btn-primary:hover { background: var(--ivory-2); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.4); }
.request-section-dark .form-status.status-info { background: rgba(255, 255, 255, 0.07); color: var(--cream); }
.request-section-dark .form-status.status-success { background: rgba(178, 214, 150, 0.16); color: #cfe9b8; }
.request-section-dark .form-status.status-error { background: rgba(230, 130, 110, 0.16); color: #f2c2b4; }

/* What we handle detail page */
.category-block {
  padding-block: 40px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 24px;
}
@media (min-width: 780px) {
  .category-block { grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
}
.category-block:first-of-type { border-top: none; }
.category-block h2 { margin-bottom: 10px; }
.category-block .lede { max-width: none; }
.category-list { list-style: none; display: grid; gap: 10px; grid-template-columns: 1fr; margin-top: 4px; }
@media (min-width: 480px) {
  .category-list { grid-template-columns: 1fr 1fr; }
}
.category-list li {
  padding: 12px 16px;
  background: var(--ivory-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
}

/* Utility */
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============ Legal pages (privacy, terms) ============ */
.legal-updated { color: var(--ink-soft); font-size: 0.95rem; margin-top: 12px; }
.legal-copy { max-width: 72ch; }
.legal-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1vw + 1rem, 1.6rem);
  margin: 40px 0 12px;
}
.legal-copy h2:first-of-type { margin-top: 28px; }
.legal-copy p, .legal-copy li { color: var(--ink-soft); line-height: 1.65; }
.legal-copy p + p { margin-top: 12px; }
.legal-copy ul { padding-left: 1.2em; margin: 12px 0; list-style: disc; }
.legal-copy li + li { margin-top: 6px; }
