/* ==========================================================================
   Royal Powers Energy, Inc.
   Single-page site. Plain HTML + CSS, no build step required.

   Structure of this file:
     1.  Design tokens (colors, spacing): change brand colors HERE
     2.  Reset & base
     3.  Layout helpers
     4.  Typography
     5.  Buttons, links, icons
     6.  Header & navigation
     7.  Hero
     8.  Compute Heat Rate section
     9.  Services
     10. Who we work with
     11. Press
     12. Insights
     13. Founders
     14. Contact
     15. Media
     16. Footer
     17. Responsive breakpoints
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   Every color in the site is defined once, here. Change a value in this
   block and it updates everywhere it is used.
   ========================================================================== */
:root {
  /* Brand */
  --primary:          #0E5A54;   /* deep teal, primary brand color */
  --primary-dark:     #0A4540;   /* hover state for primary buttons */
  --teal-mint:        #4FBFB0;   /* light teal, gradient highlight */
  --ink:              #22272E;   /* near-black, headings and body */

  /* Neutrals */
  --background:       #FFFFFF;
  --card:             #F3F5F7;   /* light grey section background */
  --muted:            #667085;   /* body copy grey */
  --source-grey:      #667085;   /* accessible small print grey */
  --border:           #D6DBE2;

  /* Gradients */
  --gradient-teal:    linear-gradient(135deg, #287D73 0%, #0E5A54 100%);
  --gradient-hero:    linear-gradient(140deg, #22272E 0%, #0E5A54 100%);
  --gradient-dark:    linear-gradient(135deg, #0E5A54 0%, #22272E 100%);

  /* Typography: system fonts, per RPE brand standards. Nothing to download. */
  --font-body:        Arial, Helvetica, sans-serif;
  --font-display:     Verdana, Geneva, Tahoma, sans-serif;

  /* Layout */
  --container:        80rem;     /* 1280px max content width */
  --gutter:           1.5rem;
  --header-height:    68px;
}


/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--background);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

p { margin: 0; }

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* Visible keyboard focus everywhere. Required for accessibility. */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff;
}

/* Let keyboard users jump past the nav. Hidden until focused. */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.875rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Respect a visitor's "reduce motion" system setting. */
@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;
  }
}


/* ==========================================================================
   3. LAYOUT HELPERS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 6rem; }
.section--card { background: var(--card); }
.section--dark { background: var(--gradient-dark); padding-block: 5rem; }
.section--contact { padding-block: 7rem; }

.has-border-bottom { border-bottom: 1px solid var(--border); }
.has-border-top    { border-top: 1px solid var(--border); }


/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.h2--large { font-size: 2.25rem; }
.h2--on-dark { color: #fff; font-size: 1.875rem; margin-bottom: 1.5rem; }

/* Small uppercase-feeling label above a heading. */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  margin-bottom: 1.5rem;
}
.eyebrow--primary     { color: var(--primary); }
.eyebrow--light       { color: rgba(255,255,255,0.7); }
.eyebrow--on-dark     { color: #fff; }
.eyebrow--on-gradient { color: #fff; font-size: 0.6875rem; margin-bottom: 1rem; }
.eyebrow--muted       { color: var(--source-grey); font-size: 0.625rem; }

.body-text {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.body-text--sm   { font-size: 0.875rem; }
.body-text--last { margin-bottom: 2.5rem; }

.text-on-dark {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  line-height: 1.7;
}


/* ==========================================================================
   5. BUTTONS, LINKS, ICONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, opacity 0.2s;
}

.btn--sm  { padding: 0.625rem 1.25rem; font-weight: 500; }
.btn--lg  { padding: 1rem 2rem; }

.btn--primary        { background: var(--primary); color: #fff; }
.btn--primary:hover  { background: var(--primary-dark); }

.btn--gradient       { background: var(--gradient-teal); color: #fff; }
.btn--gradient:hover { filter: brightness(0.95); }

.btn--outline-light        { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn--outline-light:hover  { border-color: #fff; background: rgba(255,255,255,0.05); }

.btn--outline        { border-color: var(--border); color: var(--ink); font-weight: 500; }
.btn--outline:hover  { border-color: rgba(14,90,84,0.5); }

.link-strong {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  transition: opacity 0.2s;
}
.link-strong:hover      { text-decoration: underline; }
.link-strong--xs        { font-size: 0.75rem; letter-spacing: 0.025em; }

/* --- Icons ---------------------------------------------------------------
   Drawn with CSS masks so they inherit the surrounding text color.
   No icon font or SVG files needed.
   ------------------------------------------------------------------------- */
.icon-external,
.icon-arrow {
  display: inline-block;
  width: 0.875rem;
  height: 0.875rem;
  background-color: currentColor;
  flex-shrink: 0;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center;  mask-position: center;
  -webkit-mask-size: contain;     mask-size: contain;
}

.icon-external {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E");
}

.icon-arrow {
  width: 1rem; height: 1rem;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
}


/* ==========================================================================
   6. HEADER & NAVIGATION
   The header sits over the hero transparently, then turns white once the
   visitor scrolls past 80px. JS adds .is-scrolled; see js/main.js.
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled,
.site-header.is-menu-open,
.site-header--solid {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Thin teal strip across the very top: a brand signature. */
.header-strip {
  height: 4px;
  background: var(--primary);
}

.header-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Two logos are stacked; we cross-fade between them on scroll. */
.brand {
  position: relative;
  display: block;
  flex-shrink: 0;
  height: 1.75rem;
}
.brand-logo {
  height: 100%;
  width: auto;
  transition: opacity 0.3s;
}
.brand-logo--teal {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.site-header.is-scrolled .brand-logo--white,
.site-header.is-menu-open .brand-logo--white,
.site-header--solid .brand-logo--white { opacity: 0; }
.site-header.is-scrolled .brand-logo--teal,
.site-header.is-menu-open .brand-logo--teal,
.site-header--solid .brand-logo--teal  { opacity: 1; }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav-desktop > a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}
.nav-desktop > a:hover { color: #fff; }
.site-header.is-scrolled .nav-desktop > a,
.site-header--solid .nav-desktop > a { color: var(--ink); }
.site-header.is-scrolled .nav-desktop > a:hover,
.site-header--solid .nav-desktop > a:hover { color: var(--primary); }
/* The gradient CTA keeps its own colors in both states. */
.nav-desktop > a.btn--gradient,
.site-header.is-scrolled .nav-desktop > a.btn--gradient,
.site-header--solid .nav-desktop > a.btn--gradient { color: #fff; }

/* --- Hamburger ----------------------------------------------------------- */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  align-items: flex-end;
  margin-right: -0.5rem;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  transition: transform 0.25s, opacity 0.25s, background-color 0.3s;
}
.site-header.is-scrolled .nav-toggle-bar,
.site-header.is-menu-open .nav-toggle-bar,
.site-header--solid .nav-toggle-bar { background: var(--ink); }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobile menu panel --------------------------------------------------- */
.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  background: #fff;
  border-top: 1px solid var(--border);
}
.nav-mobile[hidden] { display: none; }
.site-header.is-enhanced .nav-mobile {
  max-height: calc(100vh - var(--header-height) - 4px);
  max-height: calc(100dvh - var(--header-height) - 4px);
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
.nav-mobile > a { flex-shrink: 0; }
.nav-mobile > a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}
.nav-mobile > a:hover { color: var(--primary); }
.nav-mobile > a.btn--gradient { color: #fff; padding: 0.875rem 1.25rem; }

/* Without working JavaScript, keep navigation visible and in document flow. */
.site-header:not(.is-enhanced) { position: relative; background: #fff; }
.site-header:not(.is-enhanced) .nav-toggle { display: none; }
.site-header:not(.is-enhanced) .brand-logo--white { opacity: 0; }
.site-header:not(.is-enhanced) .brand-logo--teal { opacity: 1; }
.site-header:not(.is-enhanced) .nav-desktop > a { color: var(--ink); }
.site-header:not(.is-enhanced) .nav-desktop > a.btn--gradient { color: #fff; }


/* ==========================================================================
   7. HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  background: var(--gradient-hero);
}

/* Faint infrastructure texture behind the headline. */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.07;
  mix-blend-mode: luminosity;
  pointer-events: none;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, transparent 60%, rgba(34,39,46,0.4) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding-top: 7.5rem;
  padding-bottom: 7rem;
  max-width: 72rem;
}

.hero-logo {
  width: auto;
  height: clamp(5.5rem, 12vw, 7.5rem);
  margin-bottom: 2.25rem;
}

.hero-title {
  font-size: 3rem;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  max-width: 56rem;
}

.hero-lede {
  color: rgba(255,255,255,0.75);
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 48rem;
  margin-bottom: 1.25rem;
}
.hero-lede--last { margin-bottom: 3rem; }

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Bouncing chevron hinting there is more below. */
.hero-chevron {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: -0.625rem;
  background-color: rgba(255,255,255,0.25);
  animation: chevron-bounce 1.6s infinite;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
@keyframes chevron-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-25%); }
}


/* ==========================================================================
   8. COMPUTE HEAT RATE
   ========================================================================== */
.grid-2 {
  display: grid;
  gap: 4rem;
  align-items: start;
}

.chr-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quote-card {
  padding: 2rem;
  color: #fff;
  background: var(--gradient-teal);
}
.quote-card-quote {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
}
.quote-card-body {
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.7;
}

/* 2x2 grid of decision questions. The 1px gap shows the border color through as hairlines. */
.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}
.fact {
  min-height: 8.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--background);
  padding: 1.5rem;
}
.fact dt {
  color: var(--primary);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.fact dd {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}


/* ==========================================================================
   9. SERVICES
   ========================================================================== */
.section-head {
  display: grid;
  gap: 2rem;
  align-items: end;
  margin-bottom: 4rem;
}
.section-head-note {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}
.section-head-note.section-head-note--accent {
  padding: 2rem 2.25rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  text-align: left;
  background: var(--gradient-teal);
  box-shadow: 0 1rem 2.5rem rgba(19, 91, 82, 0.14);
}

.card-row {
  display: grid;
  gap: 1px;
  background: var(--border);
}

.practice-card {
  background: var(--background);
  padding: 2rem;
  transition: background-color 0.2s;
}
.practice-card:hover { background: var(--card); }
.practice-card h3 {
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 1rem;
  color: var(--ink);
}
.practice-card p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}


/* ==========================================================================
   10. WHO WE WORK WITH
   ========================================================================== */
.grid-audience {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.audience-grid {
  display: grid;
  gap: 1px;
  background: rgba(255,255,255,0.1);
}
.audience-grid li {
  position: relative;
  background: rgba(255,255,255,0.05);
  padding: 1rem 1.5rem 1rem 2.75rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  transition: background-color 0.2s;
}
.audience-grid li:hover { background: rgba(255,255,255,0.1); }
/* Small mint dot marker. */
.audience-grid li::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 1.45rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-mint);
}


/* ==========================================================================
   11. PRESS
   ========================================================================== */
.press { padding-block: 3rem; }
.press-label { text-align: center; font-family: var(--font-body); line-height: 1.5; }

.press-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1.5rem;
  background: var(--border);
}
.press-list li {
  min-height: 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  text-align: center;
  background: #fff;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}
.press-list img {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
}
.press-list img.press-logo--wide { width: 5.5rem; }
.press-list img.press-logo--portrait { border-radius: 50%; }
/* ==========================================================================
   12. INSIGHTS
   ========================================================================== */
.grid-insights {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.insight-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.insight {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--background);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: border-color 0.2s;
}
a.insight:hover { border-color: rgba(14,90,84,0.4); }

.insight-topic {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
a.insight:hover .insight-topic { color: var(--primary); }

.insight-desc {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

.insight-arrow {
  color: var(--muted);
  margin-top: 0.125rem;
  transition: transform 0.2s, background-color 0.2s;
}
a.insight:hover .insight-arrow {
  color: var(--primary);
  transform: translateX(4px);
}

.insight--footer { align-items: center; }


/* ==========================================================================
   13. FOUNDERS
   ========================================================================== */
.founders-head { margin-bottom: 4rem; }

.founders-grid {
  display: grid;
  gap: 3rem;
}

.founder-photo {
  position: relative;
  overflow: hidden;
  background: var(--card);
  aspect-ratio: 4 / 5;
  max-width: 24rem;
  margin-bottom: 2rem;
}
.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.7s;
}
/* Both headshots are pre-cropped to the same 900x1180 framing, so they share
   one rule. object-position: top keeps the headroom and trims the slight
   overflow from the bottom. */

.founder:hover .founder-photo img { transform: scale(1.02); }

/* Soft dark fade at the bottom of each portrait. */
.founder-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(34,39,46,0.35), transparent 60%);
  pointer-events: none;
}

.founder .eyebrow { margin-bottom: 0.375rem; }

.founder-name {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

/* Short teal underline that grows on hover. */
.founder-rule {
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--primary);
  margin-bottom: 1.5rem;
  transition: width 0.3s;
}
.founder:hover .founder-rule { width: 4rem; }

.founder-bio {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.founder-bio:last-of-type { margin-bottom: 1.5rem; }

.founder-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}


/* ==========================================================================
   14. CONTACT
   ========================================================================== */
.contact-inner {
  max-width: 52rem;
  text-align: center;
}
.contact-lede {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 3rem;
}
.contact-form {
  position: relative;
  text-align: left;
  margin-bottom: 4rem;
}
.form-grid {
  display: grid;
  gap: 1.25rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
}
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--background);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  padding: 0.875rem 1rem;
}
.form-field textarea { resize: vertical; min-height: 10rem; }
.form-field input:hover,
.form-field textarea:hover { border-color: var(--source-grey); }
.form-field input:focus,
.form-field textarea:focus { border-color: var(--primary); }
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-turnstile { margin-top: 1.5rem; min-height: 65px; }
.form-submit-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.5rem;
}
.form-status {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}
.form-status.is-error { color: #8A2C22; }
.form-status.is-success { color: var(--primary); font-weight: 700; }
.contact-form.is-submitting button { opacity: 0.65; cursor: wait; }
.form-privacy {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
  margin-top: 1rem;
}
.form-privacy a { color: var(--primary); font-weight: 700; text-decoration: underline; }

/* ==========================================================================
   15. MEDIA
   ========================================================================== */
.media-head { margin-bottom: 3rem; }
.media-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
}
.media-card {
  background: var(--background);
  padding: 2rem;
}
.media-card .eyebrow { margin-bottom: 0.75rem; }
.media-card h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.media-card > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.media-card .media-date {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  margin-bottom: 0.75rem;
}

/* "Boulder, Colorado" with a hairline rule either side. */
.contact-location {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--source-grey);
  font-size: 0.75rem;
  letter-spacing: 0.025em;
}
.contact-location::before,
.contact-location::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}


/* ==========================================================================
   16. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--primary);
  padding-block: 3.5rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}
.footer-logo { height: 2.5rem; width: auto; margin-bottom: 0.75rem; }
.footer-meta {
  color: rgba(255,255,255,0.7);
  font-size: 0.625rem;
  letter-spacing: 0.025em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 2rem;
  row-gap: 0.75rem;
}
.footer-nav a {
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  transition: color 0.2s;
}
.footer-nav a:hover { color: #fff; }

.footer-copyright {
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  letter-spacing: 0.025em;
}


/* ==========================================================================
   17. RESPONSIVE
   Mobile styles are the default above; these widen the layout on
   larger screens. 640px = large phone, 768px = tablet, 1024px = laptop.
   ========================================================================== */

@media (min-width: 640px) {
  .brand { height: 2.25rem; }
  .hero-title { font-size: 3.75rem; }
  .hero-actions { flex-direction: row; }
  .press-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-field--full { grid-column: 1 / -1; }
  .form-submit-row { flex-direction: row; align-items: center; }
  .media-grid { grid-template-columns: 1fr 1fr; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .nav-toggle  { display: none; }
  .nav-mobile  { display: none !important; }
  .press-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }

}


/* ==========================================================================
   LEGAL AND POLICY PAGES
   ========================================================================== */
.legal-main { padding-top: var(--header-height); }
.legal-hero {
  padding-block: 5rem 3.5rem;
  color: #fff;
  background: var(--gradient-dark);
}
.legal-hero h1 {
  max-width: 52rem;
  color: #fff;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1;
}
.legal-hero .eyebrow { margin-bottom: 1.25rem; }
.legal-content {
  max-width: 52rem;
  padding-block: 4rem 5rem;
}
.legal-updated {
  color: var(--source-grey);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}
.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 {
  font-size: 1rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}
.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}
.legal-content p + p { margin-top: 1rem; }
.legal-content ul {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0 1.25rem;
  list-style: disc;
}
.legal-content a { color: var(--primary); font-weight: 700; text-decoration: underline; }
.legal-contact {
  padding: 1.5rem;
  margin-top: 1.5rem;
  background: var(--card);
  border-left: 3px solid var(--primary);
}

@media (min-width: 768px) {

  .grid-2 { grid-template-columns: 1fr 1fr; }
  .chr-aside { padding-top: 2.5rem; }

  .section-head { grid-template-columns: 1fr 1fr; }
  .section-head-note { text-align: right; }

  .card-row { grid-template-columns: repeat(3, 1fr); }

  .grid-audience { grid-template-columns: 2fr 3fr; }
  .grid-insights { grid-template-columns: 2fr 3fr; }

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

  .h2--large { font-size: 3rem; }

}

@media (min-width: 1024px) {
  .hero-title { font-size: 4.25rem; }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
  .footer-brand { display: flex; flex-direction: column; align-items: flex-start; }

  .grid-2--wide  { gap: 6rem; }
  .grid-audience { gap: 5rem; }
  .grid-insights { gap: 5rem; }
  .founders-grid { gap: 5rem; }
  .practice-card { padding: 2.5rem; }
}

/* Manual line breaks are a desktop nicety; let text wrap naturally on phones. */
@media (max-width: 639px) {
  .br-sm { display: none; }
}
@media (max-width: 767px) {
  .br-md { display: none; }
}

/* Keep decision cards within narrow mobile viewports. */
.grid-2 > * { min-width: 0; }
@media (max-width: 374px) { .fact-grid { grid-template-columns: 1fr; } }
