/* ============================================
   Entiat River Concrete — Design System
   Industrial-editorial, craftsmanship-forward
   ============================================ */

/* Design Tokens ---------------------------------------------------- */
:root {
  /* Colors — light mode (default)
     Palette: steel blue + cool concrete gray */
  --ink: #0f1a26;              /* deep navy-charcoal */
  --ink-soft: #2a3644;         /* softer navy for body */
  --paper: #f4f6f8;            /* cool off-white */
  --paper-2: #e6ebf0;          /* light concrete gray */
  --paper-3: #c8d1db;           /* mid concrete gray */
  --line: #b9c3cf;             /* divider lines */
  --muted: #5a6774;            /* muted blue-gray text */
  --accent: #1f4e79;           /* steel blue — primary brand */
  --accent-2: #2c6ea8;         /* mid blue — hover/lighter */
  --accent-soft: #dce7f2;      /* blue tint for backgrounds */

  /* Typography */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: clamp(2rem, 3.5vw, 2.75rem);
  --text-3xl: clamp(2.5rem, 5vw, 4rem);
  --text-hero: clamp(3rem, 8vw, 6.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Container */
  --container: 1240px;
  --container-narrow: 880px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 180ms;
  --dur-mid: 360ms;
  --dur-slow: 720ms;

  /* Radii */
  --radius-sm: 2px;
  --radius: 4px;
}

[data-theme='dark'] {
  --ink: #eaf0f6;
  --ink-soft: #c3cdd9;
  --paper: #0b121b;
  --paper-2: #131c28;
  --paper-3: #1c2736;
  --line: #283344;
  --muted: #8894a3;
  --accent: #4a8bc7;
  --accent-2: #7cafd9;
  --accent-soft: #162333;
}

/* Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--dur-mid) var(--ease), color var(--dur-mid) var(--ease);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.05;
  font-variation-settings: "SOFT" 30, "WONK" 0;
}

::selection { background: var(--accent); color: #fff; }

/* Layout primitives ------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* Eyebrow (section labels) */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.btn .arrow {
  width: 16px;
  height: 10px;
  transition: transform var(--dur-fast) var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

/* Header / Nav ---------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-4) 0;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-mid) var(--ease), padding var(--dur-mid) var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  padding: var(--space-3) 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.logo svg { flex-shrink: 0; }
.logo-image { padding: var(--space-1) 0; }
.logo-image img {
  display: block;
  height: 72px;
  width: auto;
}
.logo-image--footer img { height: 84px; }
.footer-brand .logo-image img,
:root[data-theme="dark"] .site-header .logo-image img {
  filter: brightness(0) invert(1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-header .logo-image img {
    filter: brightness(0) invert(1);
  }
}
@media (max-width: 640px) {
  .logo-image img { height: 52px; }
  .logo-image--footer img { height: 64px; }
}
.logo-text { line-height: 1; }
.logo-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.nav-links {
  display: none;
  gap: var(--space-6);
  list-style: none;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}
.nav-links a {
  position: relative;
  padding: var(--space-2) 0;
  transition: color var(--dur-fast) var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: all var(--dur-fast) var(--ease);
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .sun { display: none; }
[data-theme='dark'] .theme-toggle .sun { display: block; }
[data-theme='dark'] .theme-toggle .moon { display: none; }

.mobile-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.mobile-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}
.mobile-toggle span::before,
.mobile-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-fast) var(--ease);
}
.mobile-toggle span::before { top: -6px; }
.mobile-toggle span::after { top: 6px; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .mobile-toggle { display: none; }
}

/* Mobile nav panel */
.mobile-panel {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 99;
  transform: translateY(-100%);
  transition: transform var(--dur-mid) var(--ease);
  padding: 5rem var(--space-5) var(--space-7);
  display: flex;
  flex-direction: column;
}
.mobile-panel.open { transform: translateY(0); }
.mobile-panel ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}
.mobile-panel a {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--ink);
}

/* Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 6rem;
  padding-bottom: var(--space-8);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--paper-2);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-patio.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(24,21,18,0.35) 0%,
    rgba(24,21,18,0.55) 55%,
    rgba(24,21,18,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: #eaf0f6;
  width: 100%;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(234, 240, 246, 0.75);
}
.hero-meta span { display: inline-flex; align-items: center; gap: var(--space-3); }
.hero-meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.hero h1 {
  font-size: var(--text-hero);
  color: #eaf0f6;
  font-weight: 300;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-bottom: var(--space-5);
}
.hero h1 em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--accent);
}
.hero-sub {
  font-size: var(--text-md);
  max-width: 52ch;
  color: rgba(234, 240, 246, 0.85);
  margin-bottom: var(--space-6);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.hero .btn-ghost {
  border-color: rgba(234, 240, 246, 0.4);
  color: #eaf0f6;
}
.hero .btn-ghost:hover {
  background: #eaf0f6;
  color: var(--ink);
  border-color: #eaf0f6;
}
.hero .btn-primary {
  background: var(--accent);
  color: #fff;
}
.hero .btn-primary:hover { background: var(--accent-2); }

/* Stats bar under hero */
.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(234, 240, 246, 0.15);
  border-top: 1px solid rgba(234, 240, 246, 0.15);
  margin-top: var(--space-7);
}
.hero-stat {
  padding: var(--space-5) var(--space-4);
  background: transparent;
  color: #eaf0f6;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  display: block;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.hero-stat .label {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(234, 240, 246, 0.65);
}
@media (min-width: 700px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
}

/* Section base ---------------------------------------------------- */
section { padding: var(--space-9) 0; }
.section-head {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  max-width: 60rem;
}
.section-head h2 {
  font-size: var(--text-3xl);
  font-weight: 300;
}
.section-head h2 em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--accent);
}
.section-head .lede {
  font-size: var(--text-md);
  color: var(--muted);
  max-width: 52ch;
}

/* Intro band ------------------------------------------------------- */
.intro {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.intro-grid {
  display: grid;
  gap: var(--space-7);
  align-items: start;
}
.intro-quote {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.2;
}
.intro-quote em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--accent);
}
.intro-body p + p { margin-top: var(--space-4); }
.intro-body p { font-size: var(--text-md); color: var(--ink-soft); }
@media (min-width: 800px) {
  .intro-grid { grid-template-columns: 1.2fr 1fr; gap: var(--space-9); }
}

/* Services -------------------------------------------------------- */
.services {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.services-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(24, 21, 18, 0.2);
}
.service-card .img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
.service-card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.service-card:hover .img img { transform: scale(1.05); }
.service-card .num {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: #eaf0f6;
  background: rgba(24, 21, 18, 0.6);
  padding: 4px 10px;
  letter-spacing: 0.1em;
}
.service-card .body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.service-card h3 {
  font-size: var(--text-xl);
  font-weight: 400;
}
.service-card p {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}
.service-card ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}
.service-card li {
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.service-card li::before { content: '— '; color: var(--accent); }

/* Process --------------------------------------------------------- */
.process {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.process-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .process-grid { grid-template-columns: repeat(4, 1fr); }
}
.process-step {
  border-top: 1px solid var(--ink);
  padding-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.process-step .step-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--accent);
}
.process-step h3 {
  font-size: var(--text-lg);
  font-weight: 500;
}
.process-step p {
  font-size: var(--text-sm);
  color: var(--muted);
}

/* Licensing / Trust ----------------------------------------------- */
.licensing {
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-9) 0;
}
.licensing h2 { color: var(--paper); }
.licensing .eyebrow { color: var(--accent-2); }
.licensing .lede { color: rgba(234, 240, 246, 0.7); }
.licensing-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .licensing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .licensing-grid { grid-template-columns: repeat(4, 1fr); }
}
.lic-card {
  padding: var(--space-5);
  border: 1px solid rgba(234, 240, 246, 0.15);
  background: rgba(234, 240, 246, 0.03);
}
.lic-card .icon {
  width: 28px;
  height: 28px;
  color: var(--accent-2);
  margin-bottom: var(--space-4);
}
.lic-card h3 {
  font-size: var(--text-md);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-2);
}
.lic-card .val {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--paper);
  margin-bottom: var(--space-2);
}
.lic-card p {
  font-size: var(--text-sm);
  color: rgba(234, 240, 246, 0.65);
}

.lic-badge-row {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(234, 240, 246, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  align-items: center;
  justify-content: space-between;
}
.lic-badge-row p {
  font-size: var(--text-sm);
  color: rgba(234, 240, 246, 0.75);
  max-width: 52ch;
}

/* Gallery --------------------------------------------------------- */
.gallery {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.gallery-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 180px;
  }
  .gallery-item:nth-child(1) { grid-column: span 4; grid-row: span 2; }
  .gallery-item:nth-child(2) { grid-column: span 2; grid-row: span 1; }
  .gallery-item:nth-child(3) { grid-column: span 2; grid-row: span 1; }
  .gallery-item:nth-child(4) { grid-column: span 3; grid-row: span 2; }
  .gallery-item:nth-child(5) { grid-column: span 3; grid-row: span 2; }
}
.gallery-item {
  overflow: hidden;
  position: relative;
  background: var(--paper-3);
  aspect-ratio: 4/3;
}
@media (min-width: 700px) {
  .gallery-item { aspect-ratio: auto; }
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .caption {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #eaf0f6;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(6px);
  transition: all var(--dur-mid) var(--ease);
}
.gallery-item:hover .caption { opacity: 1; transform: translateY(0); }

/* About / service area -------------------------------------------- */
.about {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.about-grid {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}
.about-img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about h2 { margin-bottom: var(--space-5); }
.about p { font-size: var(--text-md); color: var(--ink-soft); margin-bottom: var(--space-4); }
.service-areas {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.service-areas h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-3);
}
.service-areas ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
}
.service-areas li { font-size: var(--text-sm); }
.service-areas li + li { position: relative; padding-left: var(--space-4); }
.service-areas li + li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1.2fr; gap: var(--space-9); }
}

/* Contact --------------------------------------------------------- */
.contact {
  background: var(--paper-2);
}
.contact-grid {
  display: grid;
  gap: var(--space-7);
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.3fr; gap: var(--space-9); }
}
.contact-info p { color: var(--muted); margin-bottom: var(--space-5); font-size: var(--text-md); }
.contact-info .info-item {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: center;
}
.contact-info .info-item:last-child { border-bottom: 1px solid var(--line); }
.contact-info .info-item .lbl {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 80px;
}
.contact-info .info-item .val {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--ink);
}
.contact-info .info-item .val a:hover { color: var(--accent); }

/* Form */
.form { display: grid; gap: var(--space-4); }
.field { display: grid; gap: var(--space-2); }
.field label {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: var(--space-4);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: var(--text-base);
  transition: border-color var(--dur-fast) var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: var(--text-xs); color: var(--muted); }
.form .btn-primary { justify-self: start; background: var(--accent); }
.form .btn-primary:hover { background: var(--accent-2); }
.honeypot { position: absolute; left: -9999px; opacity: 0; }

.form-success {
  display: none;
  padding: var(--space-5);
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: var(--text-sm);
}
.form-success.show { display: block; }

/* Footer ---------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-8) 0 var(--space-5);
}
.footer-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(234, 240, 246, 0.15);
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-brand .logo { color: var(--paper); }
.footer-brand .logo-text small { color: rgba(234, 240, 246, 0.5); }
.footer-brand p {
  margin-top: var(--space-4);
  max-width: 32ch;
  font-size: var(--text-sm);
  color: rgba(234, 240, 246, 0.6);
}
.footer-col h5 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(234, 240, 246, 0.5);
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; display: grid; gap: var(--space-3); }
.footer-col a {
  font-size: var(--text-sm);
  color: rgba(234, 240, 246, 0.85);
  transition: color var(--dur-fast) var(--ease);
}
.footer-col a:hover { color: var(--accent-2); }
.footer-meta {
  padding-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: rgba(234, 240, 246, 0.5);
  letter-spacing: 0.04em;
}

/* Scroll reveal --------------------------------------------------- */
/* Only enable reveal animation when JS marks the document ready. This
   guarantees content is visible for no-JS and for screenshot/print. */
html.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
html.js-ready .reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
