/* ============ SOLARTECH — Designed Energy ============ */

@import url("https://api.fontshare.com/v2/css?f[]=switzer@300,400,500,600,700&f[]=gambarino@400&display=swap");

:root {
  /* DARK — default (from brand sheet) */
  --bg: #0D0D12;          /* Charcoal */
  --surface: #151519;     /* Slightly raised */
  --surface-alt: #1A1D21; /* Slate */
  --surface-hi: #22252B;  /* Highest elevation */
  --border: #2A2D33;
  --border-strong: #3A3E46;
  --text: #F6F4F1;        /* Off-white */
  --text-muted: #B8B2A8;  /* Warm stone */
  --text-faint: #8C8678;
  --primary: #F6B15A;     /* Solar Gold */
  --primary-hover: #FFC77A;
  --primary-deep: #C8842F;
  --accent-warm: #DBD2C7; /* Warm stone */
  --success: #8FB670;
  --error: #D98877;

  --font-display: "Switzer", system-ui, -apple-system, sans-serif;
  --font-body: "Switzer", system-ui, -apple-system, sans-serif;
  --font-editorial: "Gambarino", Georgia, serif;

  --maxw: 1240px;
  --radius: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 0 1px rgba(246,177,90,0.18), 0 0 40px rgba(246,177,90,0.08);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 380ms;
}

[data-theme="light"] {
  --bg: #F6F4F1;
  --surface: #FBFAF7;
  --surface-alt: #F1EEE8;
  --surface-hi: #FFFFFF;
  --border: #E3DED4;
  --border-strong: #C9C3B7;
  --text: #18181C;
  --text-muted: #56544E;
  --text-faint: #9A9589;
  --primary: #B8811F;
  --primary-hover: #8F6517;
  --primary-deep: #6D4B0F;
  --accent-warm: #3A3530;
  --shadow-sm: 0 1px 2px rgba(24,24,28,0.04);
  --shadow-md: 0 8px 24px rgba(24,24,28,0.06);
  --shadow-glow: 0 0 0 1px rgba(184,129,31,0.14), 0 0 40px rgba(184,129,31,0.06);
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--primary-hover); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); font-weight: 500; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); font-weight: 500; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }
h4 { font-size: 1rem; font-weight: 500; }
p { margin: 0 0 1em; color: var(--text); }
.muted { color: var(--text-muted); }

::selection { background: var(--primary); color: #0D0D12; }

/* ============ Layout ============ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }
section { padding: clamp(72px, 10vw, 120px) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--primary);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px; height: 1px;
  background: var(--primary);
}
.section-head { max-width: 62ch; margin-bottom: 56px; }
.hair { height: 1px; background: var(--border); border: 0; margin: 0; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 2px;
  font-weight: 500;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: var(--font-body);
  transition: all var(--dur) var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #0D0D12; }
.btn-primary:hover { background: var(--primary-hover); color: #0D0D12; transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--primary); padding: 14px 0; border: none; border-bottom: 1px solid var(--primary); border-radius: 0; }
.btn-ghost:hover { color: var(--primary-hover); border-color: var(--primary-hover); }
.btn-arrow::after { content: "→"; transition: transform var(--dur) var(--ease); font-family: var(--font-body); }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ============ Brand mark ============ */
.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
}
.wordmark-tag {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.58rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--primary);
  margin-top: 4px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  transition: opacity var(--dur) var(--ease);
}
.brand:hover { opacity: 0.85; color: var(--text); }
.brand-text { display: flex; flex-direction: column; align-items: flex-start; }

/* Eclipse SVG mark — inherits currentColor for stroke */
.eclipse { width: 28px; height: 28px; color: var(--primary); }

/* ============ Navigation ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0 auto 0 12px;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 10px 10px;
  border-radius: 2px;
  transition: color var(--dur) var(--ease);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}
.nav-links a.active { color: var(--primary); }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 2px;
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  transition: all var(--dur) var(--ease);
  color: var(--text);
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle svg { width: 16px; height: 16px; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon, :root:not([data-theme="light"]) .icon-moon { display: none; }

.nav-toggle-btn { display: none; }

@media (max-width: 1100px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 28px 28px;
    gap: 4px;
    margin: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; font-size: 0.82rem; }
  .nav-actions .btn { display: none; }
  .nav-toggle-btn {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border: 1px solid var(--border-strong);
    border-radius: 2px;
    color: var(--text);
  }
  .nav-actions { margin-left: auto; }
}

/* ============ Hero ============ */
.hero {
  padding: clamp(80px, 12vw, 140px) 0 clamp(72px, 10vw, 120px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -20% auto auto;
  width: 720px; height: 720px;
  background: radial-gradient(circle at 60% 40%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 65%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  gap: 60px;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
}
@media (max-width: 980px) { .hero-inner { grid-template-columns: 1fr; gap: 40px; } }
.hero h1 { margin-bottom: 24px; }
.hero .lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 50ch;
  margin-bottom: 36px;
  line-height: 1.6;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  max-height: 580px;
  background: linear-gradient(145deg, var(--surface-alt) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 40%),
    repeating-linear-gradient(0deg, transparent 0, transparent 39px, color-mix(in srgb, var(--border) 60%, transparent) 39px, color-mix(in srgb, var(--border) 60%, transparent) 40px),
    repeating-linear-gradient(90deg, transparent 0, transparent 39px, color-mix(in srgb, var(--border) 60%, transparent) 39px, color-mix(in srgb, var(--border) 60%, transparent) 40px);
  opacity: 0.8;
}
.hero-eclipse {
  position: relative;
  z-index: 1;
  width: 72%;
  aspect-ratio: 1;
  color: var(--primary);
}

.hero-meta {
  position: absolute;
  bottom: 28px; left: 28px; right: 28px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-meta strong { color: var(--text); font-weight: 500; }

/* ============ Marquee / trust strip ============ */
.strip {
  border-block: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg);
}
.strip-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.strip-inner span strong { color: var(--text); font-weight: 500; margin-right: 8px; }
.strip-inner .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--primary); display: inline-block; margin: 0 12px; vertical-align: middle; }

/* ============ Principles ============ */
.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.principle {
  padding: 44px 32px;
  border-right: 1px solid var(--border);
  position: relative;
}
.principle:last-child { border-right: none; }
.principle-num {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
}
.principle h3 { font-size: 1.375rem; margin-bottom: 12px; letter-spacing: -0.015em; }
.principle p { color: var(--text-muted); margin: 0; font-size: 0.95rem; line-height: 1.6; }
@media (max-width: 980px) {
  .principles { grid-template-columns: 1fr 1fr; }
  .principle:nth-child(2) { border-right: none; }
  .principle:nth-child(1), .principle:nth-child(2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 600px) {
  .principles { grid-template-columns: 1fr; }
  .principle { border-right: none !important; border-bottom: 1px solid var(--border); }
  .principle:last-child { border-bottom: none; }
}

/* ============ Services grid ============ */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}
.service {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease);
  color: inherit;
  display: block;
  position: relative;
}
.service:hover { background: var(--surface-alt); color: inherit; }
.service:nth-child(3n) { border-right: none; }
.service:nth-last-child(-n+3) { border-bottom: none; }
.service-ico {
  width: 44px; height: 44px;
  color: var(--primary);
  margin-bottom: 24px;
}
.service h3 { margin-bottom: 10px; letter-spacing: -0.015em; }
.service p { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 20px; }
.service-link {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 500;
  display: inline-flex;
  gap: 8px;
}
.service:hover .service-link { color: var(--primary-hover); }

@media (max-width: 980px) {
  .services { grid-template-columns: 1fr 1fr; }
  .service:nth-child(3n) { border-right: 1px solid var(--border); }
  .service:nth-child(2n) { border-right: none; }
  .service:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .service:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 600px) {
  .services { grid-template-columns: 1fr; }
  .service { border-right: none !important; border-bottom: 1px solid var(--border) !important; }
  .service:last-child { border-bottom: none !important; }
}

/* ============ Steps / process ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  list-style: none;
  padding: 0; margin: 0;
  border-top: 1px solid var(--border);
}
.step {
  padding: 44px 28px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.step:last-child { border-right: none; }
.step-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.75rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 28px;
  letter-spacing: -0.04em;
}
.step h3 { font-size: 1.125rem; margin-bottom: 10px; }
.step p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2n) { border-right: none; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none !important; }
}

/* ============ Grid primitives ============ */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ============ Cards / fields ============ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.card:hover { border-color: var(--border-strong); }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}
.field input, .field select, .field textarea {
  font: inherit;
  padding: 14px 16px;
  border-radius: 2px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }

/* ============ Calculator ============ */
.calc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(32px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; gap: 32px; } }
.calc-out { border-left: 1px solid var(--border); padding-left: 40px; }
@media (max-width: 900px) { .calc-out { border-left: none; border-top: 1px solid var(--border); padding: 32px 0 0; } }
.calc-stat {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.calc-stat:last-of-type { border-bottom: none; }
.calc-stat .k {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
}
.calc-stat .v {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.calc-stat .v.primary { color: var(--primary); }

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.check-row input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ============ Projects / cases ============ */
.project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  display: block;
  color: inherit;
}
.project:hover { border-color: var(--primary); color: inherit; transform: translateY(-2px); }
.project-visual {
  aspect-ratio: 16/10;
  background:
    radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 55%),
    linear-gradient(135deg, var(--surface-alt), var(--surface));
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.project-visual::after {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 31px, color-mix(in srgb, var(--border) 80%, transparent) 31px, color-mix(in srgb, var(--border) 80%, transparent) 32px),
    repeating-linear-gradient(90deg, transparent 0, transparent 31px, color-mix(in srgb, var(--border) 80%, transparent) 31px, color-mix(in srgb, var(--border) 80%, transparent) 32px);
  opacity: 0.4;
  pointer-events: none;
}
.project-visual svg { width: 40%; color: var(--primary); opacity: 0.9; position: relative; z-index: 1; }
.project-label {
  position: absolute;
  top: 20px; left: 20px;
  z-index: 2;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
}
.project-body { padding: 28px; }
.project-body h3 { margin-bottom: 10px; letter-spacing: -0.015em; }
.project-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.project-meta span { font-size: 0.78rem; color: var(--text-muted); }
.project-meta span strong { display: block; color: var(--text); font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; margin-bottom: 2px; }

/* ============ Feature rows ============ */
.feat { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.feat:last-child { border-bottom: none; }
.feat-num {
  flex: 0 0 auto;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  padding-top: 4px;
  min-width: 40px;
}
.feat-body strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; margin-bottom: 6px; color: var(--text); }
.feat-body p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* ============ CTA band ============ */
.cta-band {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(56px, 7vw, 88px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 480px; height: 480px;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 16%, transparent), transparent 60%);
  pointer-events: none;
  filter: blur(20px);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { color: var(--text-muted); margin-bottom: 32px; max-width: 60ch; margin-inline: auto; }

/* ============ Page head ============ */
.page-head {
  padding: clamp(80px, 10vw, 120px) 0 clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--border);
}
.page-head h1 { max-width: 20ch; }
.page-head .lede { font-size: 1.125rem; color: var(--text-muted); max-width: 60ch; line-height: 1.6; margin-top: 24px; }

/* ============ Pricing table ============ */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.pricing-table th, .pricing-table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.pricing-table th {
  background: var(--surface-alt);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table td strong { color: var(--primary); }

/* ============ Footer ============ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
  margin-top: 80px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-faint);
  margin-bottom: 20px;
  font-weight: 500;
  font-family: var(--font-body);
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.footer ul a { color: var(--text-muted); font-size: 0.92rem; }
.footer ul a:hover { color: var(--primary); }
.footer-bottom {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}
.footer-brand { max-width: 36ch; }
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; margin-top: 24px; }
.footer-wordmark-row {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 14vw, 11rem);
  letter-spacing: 0.28em;
  color: var(--surface-alt);
  line-height: 1;
  user-select: none;
}
[data-theme="light"] .footer-wordmark { color: var(--border); }

/* ============ Blog ============ */
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px;
  display: block;
  color: inherit;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.post-card:hover { border-color: var(--primary); color: inherit; background: var(--surface-alt); }
.post-card .tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}
.post-card h3 { margin: 14px 0 12px; color: var(--text); letter-spacing: -0.015em; }
.post-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.post-card .date { display: block; color: var(--text-faint); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 20px; }

.article { max-width: 720px; margin: 0 auto; }
.article h2 { margin-top: 2em; font-size: 1.75rem; }
.article h3 { margin-top: 1.5em; }
.article p, .article li { font-size: 1.05rem; color: var(--text); }
.article blockquote {
  border-left: 2px solid var(--primary);
  padding: 8px 0 8px 24px;
  margin: 28px 0;
  color: var(--text-muted);
  font-family: var(--font-editorial);
  font-style: normal;
  font-size: 1.15rem;
  line-height: 1.5;
}
.article ul, .article ol { padding-left: 22px; color: var(--text); }
.article li { margin-bottom: 10px; }
.article a { border-bottom: 1px solid var(--primary); }

/* ============ Reveal (progressive enhancement) ============ */
.reveal { opacity: 1; transform: none; transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.js-anim .reveal { opacity: 0; transform: translateY(16px); }
.js-anim .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
