/* ============================================================
   Imperia Technologies — Site Styles
   Self-hosted fonts + foundational tokens + layout primitives
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Italic-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Brand */
  --brand-mint: #93E9BE;
  --brand-mint-500: #6FDCA6;
  --brand-mint-600: #4BCB8D;
  --brand-mint-700: #2FA872;
  --brand-mint-100: #E0F9EC;
  --brand-mint-50:  #F2FCF7;

  /* Ink */
  --ink: #333333;
  --ink-900: #1A1A1A;
  --ink-800: #262626;
  --ink-700: #333333;
  --ink-500: #6B6B6B;
  --ink-400: #8F8F8F;
  --ink-200: #D6D6D6;
  --ink-100: #EAEAEA;
  --ink-50:  #F6F6F6;
  --paper: #FFFFFF;

  --fg-1: var(--ink-700);
  --fg-2: var(--ink-500);
  --bg-1: var(--paper);
  --bg-2: var(--ink-50);
  --bg-inverse: var(--ink-900);

  /* Type */
  --font-sans: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;

  --tracking-wide: 0.08em;
  --tracking-wider: 0.18em;
  --tracking-widest: 0.32em;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Radii / shadows */
  --radius-sm: 4px;
  --radius-lg: 10px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 6px rgba(26,26,26,.06);
  --shadow-md: 0 8px 24px rgba(26,26,26,.08);
  --shadow-mint: 0 10px 30px rgba(75,203,141,.28);

  /* Layout */
  --max-w: 1280px;
  --gutter: 80px;
}

/* ---------- Reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--fg-1);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 300; line-height: 1.15; letter-spacing: var(--tracking-wide); color: var(--ink-900); }
h1 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: clamp(2.5rem, 4.5vw + 1rem, 4.25rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-transform: none;
}
h2 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: clamp(1.875rem, 2.2vw + 1rem, 3.125rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.008em;
  text-transform: none;
}
h3 { font-size: clamp(1.25rem, 1vw + 1rem, 2rem); font-weight: 400; }
h4 { font-size: 1.125rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--brand-mint-700);
  margin: 0 0 1rem;
}
.lead {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--fg-2);
  max-width: 60ch;
}

a { color: var(--brand-mint-700); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 120ms var(--ease-out); }
a:hover { border-bottom-color: var(--brand-mint); }

/* ---------- Layout primitives ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--hero { padding: 120px 0 96px; }
.section--dark { background: var(--ink-900); color: var(--paper); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--paper); }
.section--mint { background: var(--brand-mint-50); }
.section--ink { background: var(--ink-50); }

.grid { display: grid; gap: 48px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.divider { height: 1px; background: var(--ink-100); margin: 0; border: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 120ms var(--ease-out), color 120ms var(--ease-out), border-color 120ms var(--ease-out);
}
.btn--primary { background: var(--brand-mint); color: var(--ink-900); box-shadow: var(--shadow-mint); }
.btn--primary:hover { background: var(--brand-mint-500); border-bottom-color: transparent; }
.btn--ghost { background: transparent; color: var(--ink-900); border-color: var(--ink-200); }
.btn--ghost:hover { background: var(--ink-50); border-color: var(--ink-200); border-bottom-color: var(--ink-200); }
.btn--inverse { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.3); }
.btn--inverse:hover { background: rgba(255,255,255,.08); }

/* ---------- Header / nav ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--ink-100);
}
/* Frosted-glass background lives on a pseudo-element so the .header itself
   does NOT create a containing block for position:fixed descendants (per CSS
   spec, backdrop-filter does). Without this, the .mobile-nav inside .header
   would be confined to the header's bounding box. */
.header::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
  max-width: var(--max-w); margin: 0 auto; padding: 16px var(--gutter);
}
.header__brand { display: flex; align-items: center; gap: 12px; border-bottom: 0; flex-shrink: 0; }
.header__brand:hover { border-bottom: 0; }
.header__brand img { height: 38px; width: auto; }
.header__nav { display: flex; align-items: center; gap: 24px; flex-wrap: nowrap; }
.header__nav a {
  color: var(--ink-700);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  white-space: nowrap;
}
.header__nav a:hover, .header__nav a[aria-current="page"] { border-bottom-color: var(--brand-mint); color: var(--ink-900); }

.header__dropdown { position: relative; }
.header__dropdown-btn {
  color: var(--ink-700); font: inherit;
  font-size: 0.8125rem; font-weight: 500; letter-spacing: var(--tracking-wide); text-transform: uppercase;
  padding: 0 0 2px 0; border-bottom: 1px solid transparent;
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.header__dropdown-btn:hover { border-bottom-color: var(--brand-mint); color: var(--ink-900); }
.header__dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  min-width: 240px;
  background: var(--paper); border: 1px solid var(--ink-100); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); padding: 8px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 140ms var(--ease-out), transform 140ms var(--ease-out);
}
/* Show menu when keyboard focus is inside the dropdown OR when JS adds .is-open
   (set by mouseenter/click handlers in site.js — see initDesktopDropdown). */
.header__dropdown:focus-within .header__dropdown-menu,
.header__dropdown.is-open .header__dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(-4px);
}
.header__dropdown-menu a {
  display: block; padding: 10px 14px;
  font-size: 0.8125rem; color: var(--ink-700);
  text-transform: none; letter-spacing: 0; font-weight: 500;
  border-radius: var(--radius-sm); border-bottom: 0;
}
.header__dropdown-menu a:hover { background: var(--brand-mint-50); color: var(--ink-900); border-bottom: 0; }

.header__cta { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header__phone {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: var(--tracking-wide);
  color: var(--ink-900); border-bottom: 0;
  white-space: nowrap;
}
.header__phone:hover { color: var(--brand-mint-700); border-bottom: 0; }

.header__menu-btn { display: none; }

/* Medium-desktop: hide phone from header before things collide.
   Get Started button still serves as the CTA, phone is still in
   the mobile menu and on every page below the fold. */
@media (max-width: 1320px) {
  .header__phone { display: none; }
}

@media (max-width: 960px) {
  :root { --gutter: 24px; }
  .header__nav, .header__cta .btn, .header__phone { display: none; }
  .header__menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-sm); color: var(--ink-900); }
  .header__menu-btn:hover { background: var(--ink-50); }

  body.nav-open { overflow: hidden; }
  .mobile-nav {
    position: fixed; inset: 0; background: var(--paper); z-index: 60;
    padding: 24px; overflow-y: auto;
    display: none; flex-direction: column;
  }
  body.nav-open .mobile-nav { display: flex; }
  .mobile-nav__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
  .mobile-nav a {
    display: block; padding: 14px 0; font-size: 1rem; font-weight: 500;
    letter-spacing: var(--tracking-wide); text-transform: uppercase;
    color: var(--ink-900); border-bottom: 1px solid var(--ink-100);
  }
  .mobile-nav a:hover { color: var(--brand-mint-700); }
  .mobile-nav__group-label { font-size: 0.75rem; letter-spacing: var(--tracking-widest); color: var(--ink-500); margin: 24px 0 8px; text-transform: uppercase; font-weight: 600; }
  .mobile-nav__cta { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
}
.mobile-nav { display: none; }

/* ---------- Hero — full-bleed cinematic ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(600px, 80vh, 840px);
  background: var(--ink-900);
  color: var(--paper);
  padding: 0;
}
.hero__background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0, 0, 0, 0.70) 0%,
    rgba(0, 0, 0, 0.50) 35%,
    rgba(0, 0, 0, 0.25) 70%,
    rgba(0, 0, 0, 0.15) 100%
  );
  z-index: 1;
}
.hero__container {
  position: relative;
  z-index: 2;
  min-height: clamp(600px, 80vh, 840px);
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}
.hero__content { max-width: 640px; }
.hero__eyebrow { color: var(--brand-mint); margin-bottom: 24px; }
.hero__brand { display: block; margin-bottom: 40px; }
.hero__brand-mark {
  display: block;
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: clamp(2.75rem, 5vw + 1rem, 5.5rem);
  letter-spacing: 0.14em;
  color: var(--brand-mint);
  line-height: 1;
  text-transform: none;
}
.hero__brand-sub {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(0.75rem, 0.5vw + 0.55rem, 0.95rem);
  letter-spacing: 0.42em;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 12px;
  text-transform: uppercase;
}
.hero__headline {
  color: var(--paper);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 3vw + 1rem, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin: 0 0 28px;
  text-transform: none;
}
.hero__sub {
  color: rgba(255, 255, 255, 0.88);
  max-width: 52ch;
  margin: 0 0 36px;
  font-weight: 300;
}
.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0;
}

@media (max-width: 900px) {
  .hero { min-height: clamp(540px, 78vh, 720px); }
  .hero__container { min-height: clamp(540px, 78vh, 720px); padding-top: 56px; padding-bottom: 56px; }
  .hero__brand { margin-bottom: 28px; }
  .hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.30) 0%,
      rgba(0, 0, 0, 0.55) 50%,
      rgba(0, 0, 0, 0.75) 100%
    );
  }
}
@media (max-width: 600px) {
  .hero__brand-mark { font-size: clamp(2.25rem, 10vw, 3.5rem); letter-spacing: 0.12em; }
  .hero__brand-sub { font-size: 0.7rem; letter-spacing: 0.35em; }
}

/* ---------- Service cards ---------- */
.service-card {
  display: block;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  color: var(--ink-900);
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out), transform 160ms var(--ease-out);
  border-bottom: 1px solid var(--ink-100);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service-card:hover {
  border-color: var(--brand-mint);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.service-card__title {
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-900);
  margin: 0 0 12px;
}
.service-card__desc { color: var(--fg-2); font-size: 0.9375rem; margin: 0; }
.service-card__arrow { margin-top: 24px; display: inline-flex; align-items: center; gap: 8px; color: var(--brand-mint-700); font-size: 0.8125rem; font-weight: 600; letter-spacing: var(--tracking-wider); text-transform: uppercase; }

/* ---------- Why Imperia cards ---------- */
.why-card { padding: 0; }
.why-card__icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-mint-100);
  color: var(--brand-mint-700);
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.why-card__icon svg { width: 22px; height: 22px; }
.why-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: var(--tracking-wide);
  margin-bottom: 8px;
}
.why-card p { color: var(--fg-2); font-size: 0.9375rem; margin: 0; line-height: 1.65; }

/* ---------- Process / steps ---------- */
.steps { counter-reset: step; }
.step__num {
  font-size: 0.75rem; font-weight: 600; letter-spacing: var(--tracking-widest); color: var(--brand-mint-700); text-transform: uppercase;
  display: block; margin-bottom: 12px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--fg-2); font-size: 0.9375rem; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial {
  padding: 40px;
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}
.testimonial__stars {
  display: inline-flex;
  gap: 2px;
  color: var(--brand-mint-700);
}
.testimonial__quote {
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-800);
  margin: 0;
}
.testimonial__cite {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  font-size: initial;
  font-weight: initial;
  letter-spacing: initial;
  color: initial;
  text-transform: none;
}
.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--brand-mint-100);
  color: var(--brand-mint-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.testimonial__person { display: inline-flex; flex-direction: column; gap: 2px; }
.testimonial__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: 0;
  text-transform: none;
}
.testimonial__source {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink-500);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

/* ---------- Logo band ---------- */
.logo-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 48px;
  align-items: center;
}
.logo-band img { height: 40px; width: auto; opacity: 0.65; filter: grayscale(1); transition: opacity 160ms var(--ease-out), filter 160ms var(--ease-out); margin: 0 auto; }
.logo-band img:hover { opacity: 1; filter: grayscale(0); }

/* ---------- Quote band ---------- */
.quote-band { padding: 96px 0; background: var(--ink-900); color: var(--paper); text-align: center; }
.quote-band blockquote {
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.5rem);
  font-weight: 200;
  line-height: 1.35;
  margin: 0 auto;
  max-width: 28ch;
  letter-spacing: var(--tracking-wide);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-900);
  color: var(--paper);
  padding: 80px 0 32px;
}
.footer a { color: rgba(255,255,255,.72); }
.footer a:hover { color: var(--brand-mint); border-bottom-color: var(--brand-mint); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.footer__brand p { color: rgba(255,255,255,.6); max-width: 36ch; font-size: 0.9375rem; }
.footer__brand img { height: 44px; margin-bottom: 20px; filter: brightness(1.05); }
.footer h5 {
  font-size: 0.75rem; font-weight: 600; letter-spacing: var(--tracking-widest); text-transform: uppercase;
  color: var(--paper); margin: 0 0 20px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 0.9375rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.footer__bottom {
  margin-top: 64px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 0.8125rem; color: rgba(255,255,255,.5);
}
/* ---------- Footer newsletter ---------- */
.footer__newsletter {
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.footer__newsletter-content .eyebrow { color: var(--brand-mint); margin-bottom: 6px; }
.footer__newsletter-content h4 {
  color: var(--paper);
  font-size: 1.25rem;
  font-weight: 500;
  font-family: var(--font-serif);
  letter-spacing: -0.005em;
  margin: 0 0 6px;
}
.footer__newsletter-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  margin: 0;
  max-width: 42ch;
}

/* ---------- Newsletter form (works on both dark and light backgrounds) ---------- */
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--paper);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
}
.newsletter-form input[type="email"]:focus {
  outline: 0;
  border-color: var(--brand-mint);
  background: rgba(255, 255, 255, 0.12);
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.5); }
.newsletter-form .btn { white-space: nowrap; }
@media (max-width: 700px) {
  .footer__newsletter { grid-template-columns: 1fr; gap: 20px; }
  .newsletter-form { flex-direction: column; }
}

/* Light-background variant (used in the homepage inline section) */
.newsletter-form--light { max-width: 520px; margin: 0 auto; }
.newsletter-form--light input[type="email"] {
  background: var(--paper);
  border-color: var(--ink-200);
  color: var(--ink-900);
}
.newsletter-form--light input[type="email"]:focus {
  background: var(--paper);
  border-color: var(--brand-mint);
  box-shadow: 0 0 0 3px var(--brand-mint-100);
}
.newsletter-form--light input[type="email"]::placeholder { color: var(--ink-500); }

.footer__affiliations { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.footer__affiliations span { font-size: 0.75rem; letter-spacing: var(--tracking-wide); color: rgba(255,255,255,.6); }

.footer__social { display: flex; gap: 12px; margin-top: 20px; align-items: center; }
.footer__social a {
  width: 36px; height: 36px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 140ms var(--ease-out), color 140ms var(--ease-out);
  border-bottom: 0;
}
.footer__social a:hover { background: var(--brand-mint); color: var(--ink-900); border-bottom: 0; }
.footer__social a svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.max-w-prose { max-width: 64ch; margin-left: auto; margin-right: auto; }
.mint-rule { width: 48px; height: 2px; background: var(--brand-mint); border: 0; margin: 24px 0; }
.text-center .mint-rule { margin-left: auto; margin-right: auto; }

/* Generic placeholder tile (for imagery slots) */
.placeholder {
  background: linear-gradient(135deg, var(--ink-100), var(--ink-50));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-400);
  font-size: 0.8125rem;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  font-weight: 500;
}

/* ---------- Feature list ---------- */
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  position: relative;
  padding: 12px 0 12px 32px;
  border-bottom: 1px solid var(--ink-100);
  font-size: 0.9375rem;
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before {
  content: "";
  position: absolute; left: 0; top: 20px;
  width: 16px; height: 1px;
  background: var(--brand-mint);
}

/* Image grid */
.img-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.img-grid .placeholder { aspect-ratio: 1/1; }

/* Projects feature video */
.projects__feature-video {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: block;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  background: var(--ink-900);
  object-fit: cover;
}

/* Form */
.form { display: grid; gap: 20px; max-width: 640px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.form label { font-size: 0.75rem; font-weight: 600; letter-spacing: var(--tracking-widest); text-transform: uppercase; color: var(--ink-700); display: block; margin-bottom: 8px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 14px 16px; font-family: inherit; font-size: 1rem;
  border: 1px solid var(--ink-200); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink-900);
  transition: border-color 120ms var(--ease-out), box-shadow 120ms var(--ease-out);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 0; border-color: var(--brand-mint); box-shadow: 0 0 0 3px var(--brand-mint-100);
}
.form textarea { min-height: 140px; resize: vertical; }

/* Hero variant for interior pages */
.page-hero { padding: 96px 0 64px; background: var(--ink-50); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: 24px; }

/* Two-up */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .two-up { grid-template-columns: 1fr; gap: 40px; } }

/* Scroll reveal — active only when JS is enabled */
.js-reveals main > section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.js-reveals main > section:first-child,
.js-reveals main > section.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js-reveals main > section {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Cookie consent banner ---------- */
#cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--ink-900);
  color: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 22px 26px;
  z-index: 1000;
  font-family: var(--font-sans);
}
#cookie-banner[hidden] { display: none !important; }
.cookie-banner__content { display: grid; gap: 16px; }
.cookie-banner__content p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}
.cookie-banner__content p a {
  color: var(--brand-mint);
  border-bottom: 1px solid rgba(147, 233, 190, 0.4);
}
.cookie-banner__content p a:hover {
  border-bottom-color: var(--brand-mint);
}
.cookie-banner__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-banner__actions .btn {
  font-size: 0.75rem;
  padding: 11px 22px;
  letter-spacing: var(--tracking-wider);
}
.cookie-banner__actions .btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.3);
}
.cookie-banner__actions .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}
@media (max-width: 600px) {
  #cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 18px 20px; }
  .cookie-banner__actions .btn { flex: 1; min-width: 0; }
}

/* Breadcrumb */
.breadcrumb { font-size: 0.75rem; letter-spacing: var(--tracking-widest); text-transform: uppercase; color: var(--ink-500); margin-bottom: 24px; }
.breadcrumb a { color: var(--ink-500); border-bottom: 0; }
.breadcrumb a:hover { color: var(--brand-mint-700); }

/* ---------- FAQ accordion ---------- */
.faq-list { display: grid; gap: 12px; max-width: 880px; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}
.faq-item[open] { border-color: var(--brand-mint); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 28px;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-900);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  transition: background 120ms var(--ease-out);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.75rem;
  font-weight: 200;
  line-height: 1;
  color: var(--brand-mint-700);
  transition: transform 200ms var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: var(--brand-mint-50); }
.faq-item .faq-answer {
  padding: 0 28px 24px;
  color: var(--fg-2);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.faq-item .faq-answer p { margin: 0 0 0.85em; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .faq-item summary { padding: 20px 22px; font-size: 1rem; gap: 16px; }
  .faq-item .faq-answer { padding: 0 22px 20px; }
}
