/* ============================================
   ROOFERS AI EMPLOYEE — DESIGN SYSTEM v2
   Modern professional SaaS
   Geist (display) + Inter (body) + Geist Mono (accent)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
  --ink: #0e0e0c;
  --ink-2: #1a1a17;
  --ink-3: #2a2a26;
  --paper: #f4efe5;
  --paper-2: #ebe4d4;
  --paper-3: #ddd4bf;
  --cream: #faf6ec;
  --copper: #c4571f;
  --copper-bright: #e8651f;
  --copper-deep: #8b3d12;
  --steel: #5a5a52;
  --steel-light: #8a8a80;
  --rule: rgba(14, 14, 12, 0.12);
  --rule-strong: rgba(14, 14, 12, 0.25);
  --success: #2d5016;

  --display: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --container: 1280px;
  --container-narrow: 880px;
  --gutter: clamp(20px, 4vw, 56px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--copper); color: var(--cream); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; }

/* Typography */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}

.eyebrow.muted { color: var(--steel); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
}

h1 {
  font-size: clamp(44px, 6.5vw, 84px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

h1 em, h2 em {
  font-style: normal;
  color: var(--copper);
  font-weight: inherit;
}

h2 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h4 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 400;
  letter-spacing: -0.005em;
}

.dim { color: var(--steel); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 6px;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary { background: var(--copper); color: var(--cream); }
.btn-primary:hover {
  background: var(--copper-bright);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(196, 87, 31, 0.55);
}

.btn-primary .arrow { transition: transform 0.2s var(--ease-out); display: inline-block; }
.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--cream); }

.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--copper); }

.btn-ghost { color: var(--ink); padding: 12px 0; font-weight: 500; }
.btn-ghost:hover { color: var(--copper); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 239, 229, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  gap: 40px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.nav-brand-mark {
  width: 28px;
  height: 28px;
  background: var(--ink);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.nav-brand-mark::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 7px solid var(--copper);
  top: 7px;
}

.nav-brand-mark::after {
  content: '';
  position: absolute;
  width: 13px;
  height: 7px;
  background: var(--cream);
  bottom: 6px;
  border-radius: 1px;
}

.nav-brand-text { color: var(--ink); }
.nav-brand-text em { font-style: normal; color: var(--copper); font-weight: 700; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.15s ease;
  letter-spacing: -0.005em;
}

.nav-links a:hover { color: var(--copper); }

.nav-links .has-dropdown::after {
  /* Deprecated — kept hidden for backward compatibility */
  display: none;
}

.nav-cta { padding: 9px 18px; font-size: 14px; }

/* ============================================
   MEGA MENU DROPDOWNS
   ============================================ */
.nav-item {
  position: relative;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 540px;
  background: var(--cream);
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  box-shadow:
    0 1px 2px rgba(14,14,12,0.04),
    0 12px 32px -8px rgba(14,14,12,0.12),
    0 24px 48px -12px rgba(14,14,12,0.08);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s var(--ease-out), transform 0.2s var(--ease-out), visibility 0s 0.2s;
  z-index: 101;
}

/* Invisible bridge so mouse can traverse the gap */
.mega-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu,
.mega-menu:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.18s var(--ease-out), transform 0.2s var(--ease-out), visibility 0s;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.mega-menu-grid.single-col {
  grid-template-columns: 1fr;
}

.mega-menu-link {
  display: block;
  padding: 12px 14px;
  border-radius: 6px;
  transition: background 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.mega-menu-link:hover {
  background: var(--paper-2);
}

.mega-menu-link-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}

.mega-menu-link-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--copper);
  border-radius: 5px;
  flex-shrink: 0;
}

.mega-menu-link-icon svg {
  width: 14px;
  height: 14px;
}

.mega-menu-link-desc {
  font-size: 12.5px;
  color: var(--steel);
  line-height: 1.45;
  padding-left: 38px;
}

.mega-menu-footer {
  border-top: 1px solid var(--rule);
  margin-top: 14px;
  padding: 12px 14px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mega-menu-footer-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 500;
}

.mega-menu-footer-link {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  color: var(--copper);
  transition: opacity 0.15s ease;
}

.mega-menu-footer-link:hover { opacity: 0.7; }

/* Caret rotation on hover */
.nav-item .caret {
  display: inline-block;
  margin-left: 5px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  margin-top: 2px;
  transition: transform 0.2s var(--ease-out);
}

.nav-item:hover .caret {
  transform: rotate(180deg);
  margin-top: -2px;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.nav-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-mobile-toggle span {
  transition: transform 0.25s var(--ease-out), opacity 0.15s ease;
}

.nav-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 85vw);
  background: var(--cream);
  border-left: 1px solid var(--rule);
  box-shadow: -20px 0 60px -20px rgba(0,0,0,0.2);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease-out);
  z-index: 200;
  overflow-y: auto;
  padding: 80px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile-drawer[data-open="true"] {
  transform: translateX(0);
}

.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14,14,12,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
  z-index: 150;
  backdrop-filter: blur(4px);
}

.nav-mobile-overlay[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s;
}

.nav-mobile-section-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 500;
  padding: 18px 12px 8px;
}

.nav-mobile-link {
  display: block;
  padding: 11px 12px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.nav-mobile-link:hover {
  background: var(--paper-2);
}

.nav-mobile-sublink {
  display: block;
  padding: 8px 12px 8px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 6px;
  transition: background 0.15s ease;
}

.nav-mobile-sublink:hover {
  background: var(--paper-2);
  color: var(--copper);
}

.nav-mobile-cta {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.nav-mobile-cta .btn {
  width: 100%;
  justify-content: center;
}

/* When drawer is open, prevent body scroll */
body.nav-open {
  overflow: hidden;
}

@media (min-width: 921px) {
  .nav-mobile-drawer,
  .nav-mobile-overlay {
    display: none;
  }
}

.nav-mobile-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
}

@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-cta { display: none; }
}

/* Hero */
.hero {
  padding: clamp(60px, 10vh, 120px) 0 clamp(80px, 12vh, 140px);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black, transparent);
}

/* Employee badge */
.employee-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 10px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.employee-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  position: relative;
}

.employee-badge-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.4);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

/* Employee profile card */
.employee-card {
  background: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--ink);
}

.employee-card-header {
  background: var(--ink);
  color: var(--cream);
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.employee-card-header .id { color: var(--copper); }

.employee-card-body { padding: 28px; }

.employee-card-name {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.employee-card-role {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 22px;
  font-weight: 500;
}

.employee-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  margin-top: 18px;
  padding-top: 18px;
}

.employee-card-stat { border-right: 1px solid var(--rule); padding-right: 14px; }
.employee-card-stat:last-child { border-right: none; }

.employee-card-stat-value {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.employee-card-stat-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  font-weight: 500;
}

/* Phone mockup */
.phone-mockup {
  width: 280px;
  background: var(--ink);
  border-radius: 36px;
  padding: 8px;
  box-shadow:
    0 0 0 1px var(--ink-3),
    0 30px 60px -20px rgba(0,0,0,0.5),
    0 18px 36px -18px rgba(0,0,0,0.3);
  position: relative;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: var(--ink);
  border-radius: 100px;
  z-index: 2;
}

.phone-screen {
  background: var(--cream);
  border-radius: 28px;
  padding: 50px 20px 24px;
  min-height: 540px;
  position: relative;
  overflow: hidden;
}

.phone-status-bar {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 28px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}

.phone-call-indicator { text-align: center; margin-bottom: 18px; }

.phone-call-indicator .label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 6px;
  font-weight: 500;
}

.phone-call-indicator .number {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.phone-call-duration {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--copper);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.phone-transcript { display: flex; flex-direction: column; gap: 12px; }

.phone-msg {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  max-width: 85%;
  animation: msgIn 0.4s var(--ease-out) backwards;
}

.phone-msg.ai {
  background: var(--ink);
  color: var(--cream);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.phone-msg.user {
  background: var(--paper-2);
  color: var(--ink);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.phone-msg .who {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 3px;
  font-weight: 500;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.phone-msg:nth-child(1) { animation-delay: 0.3s; }
.phone-msg:nth-child(2) { animation-delay: 0.7s; }
.phone-msg:nth-child(3) { animation-delay: 1.1s; }
.phone-msg:nth-child(4) { animation-delay: 1.5s; }
.phone-msg:nth-child(5) { animation-delay: 1.9s; }

/* Stats */
.stat-block { padding: 28px 0; border-top: 1px solid var(--rule); }

.stat-value {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.stat-value em {
  font-style: normal;
  color: var(--copper);
  font-weight: 800;
}

.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 10px;
  max-width: 220px;
  line-height: 1.4;
  font-weight: 500;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}

.feature-card { background: var(--paper); padding: 32px 28px; transition: background 0.2s ease; }
.feature-card:hover { background: var(--paper-2); }

.feature-card-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--copper);
  margin-bottom: 20px;
  border-radius: 6px;
}

.feature-card h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: -0.02em; }
.feature-card p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

/* Timeline */
.timeline { position: relative; }

.timeline-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}

.timeline-step:last-child { border-bottom: 1px solid var(--rule); }

.timeline-num {
  font-family: var(--display);
  font-size: 52px;
  font-weight: 800;
  color: var(--copper);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.timeline-content h3 { font-size: 24px; margin-bottom: 8px; letter-spacing: -0.025em; }
.timeline-content p { font-size: 16px; color: var(--ink-2); line-height: 1.6; }

.timeline-time {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 6px;
  display: block;
  font-weight: 500;
}

/* Compare */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
}

.compare-col { padding: 32px; }
.compare-col + .compare-col { border-left: 1.5px solid var(--ink); }
.compare-col.them { background: var(--paper-2); }
.compare-col.us { background: var(--ink); color: var(--cream); }
.compare-col.us h3 { color: var(--cream); }
.compare-col.us .compare-item { color: var(--cream); }

.compare-header {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 500;
}

.compare-col.them .compare-header { color: var(--steel); }
.compare-col.us .compare-header { color: var(--copper); }

.compare-col h3 { margin-bottom: 22px; font-size: 24px; letter-spacing: -0.025em; }

.compare-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.compare-item {
  display: flex;
  gap: 12px;
  align-items: start;
  font-size: 15px;
  line-height: 1.5;
}

.compare-item-mark {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
}

.compare-col.them .compare-item-mark { color: var(--steel); }
.compare-col.us .compare-item-mark { color: var(--copper); }

@media (max-width: 768px) {
  .compare { grid-template-columns: 1fr; }
  .compare-col + .compare-col { border-left: none; border-top: 1.5px solid var(--ink); }
}

/* CTA */
.cta-block {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(60px, 10vh, 100px) 0;
  position: relative;
  overflow: hidden;
}

.cta-block-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

.cta-block h2 { color: var(--cream); margin-bottom: 18px; }
.cta-block h2 em { color: var(--copper); }
.cta-block .lead { color: var(--paper-3); margin-bottom: 32px; }
.cta-block .btn-primary { background: var(--copper); color: var(--cream); }

.cta-block-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(45deg, transparent 0, transparent 20px, var(--cream) 20px, var(--cream) 21px);
  pointer-events: none;
}

/* Footer */
footer {
  background: var(--ink);
  color: var(--paper-3);
  padding: 60px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 44px;
}

.footer-brand {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}

.footer-brand em { color: var(--copper); font-style: normal; font-weight: 700; }

.footer-tagline {
  font-size: 14px;
  color: var(--paper-3);
  max-width: 280px;
  line-height: 1.55;
  margin-bottom: 22px;
}

.footer-section-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 16px;
  font-weight: 500;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }

.footer-links a {
  font-size: 13.5px;
  color: var(--paper-3);
  transition: color 0.15s ease;
}

.footer-links a:hover { color: var(--copper); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--steel-light);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 500;
}

@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Page intro */
.page-intro {
  padding: clamp(60px, 10vh, 100px) 0 clamp(40px, 6vh, 60px);
  border-bottom: 1px solid var(--rule);
}

.page-intro .breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 18px;
  font-weight: 500;
}

.page-intro .breadcrumb a { color: var(--copper); transition: opacity 0.15s ease; }
.page-intro .breadcrumb a:hover { opacity: 0.7; }

.page-intro h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  margin-bottom: 20px;
  max-width: 900px;
  letter-spacing: -0.035em;
}

.page-intro .lead { max-width: 720px; font-size: clamp(16px, 1.4vw, 19px); }

/* Prose */
.prose { max-width: 720px; margin: 0 auto; }

.prose h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  margin: 52px 0 14px;
  letter-spacing: -0.025em;
}

.prose h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  margin: 36px 0 12px;
  letter-spacing: -0.02em;
}

.prose p {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 16px;
}

.prose ul, .prose ol {
  margin: 16px 0 22px 22px;
  font-size: 16.5px;
  color: var(--ink-2);
}

.prose li { margin-bottom: 7px; line-height: 1.6; }
.prose strong { color: var(--ink); font-weight: 600; }

.prose blockquote {
  border-left: 3px solid var(--copper);
  padding: 6px 0 6px 22px;
  margin: 26px 0;
  font-family: var(--display);
  font-size: 20px;
  font-style: normal;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

/* Forms */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 14px;
  background: var(--cream);
  border: 1.5px solid var(--ink-3);
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
  border-radius: 6px;
  transition: border-color 0.15s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--copper);
}

.form-textarea { min-height: 120px; resize: vertical; }

/* Utils */
.divider { height: 1px; background: var(--rule); margin: 0; border: none; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mt-8 { margin-top: 64px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.mb-6 { margin-bottom: 48px; }
.mb-8 { margin-bottom: 64px; }
.py-large { padding: clamp(80px, 12vh, 140px) 0; }
.py-medium { padding: clamp(60px, 8vh, 100px) 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }

.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 880px) { .three-col { grid-template-columns: 1fr; } }

@keyframes revealUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal { animation: revealUp 0.8s var(--ease-out) backwards; }
.reveal-1 { animation-delay: 0.1s; }
.reveal-2 { animation-delay: 0.2s; }
.reveal-3 { animation-delay: 0.3s; }
.reveal-4 { animation-delay: 0.4s; }
.reveal-5 { animation-delay: 0.5s; }
