/* =============================================================
   Terraforce — Editorial Dossier
   Light paper canvas · Ink navy · Restrained signal red
   ============================================================= */

:root {
  --paper: #f6f2ea;
  --paper-deep: #efe9dc;
  --card: #ffffff;
  --ink: #0e1a2b;
  --ink-soft: #1b2738;
  --muted: #5b5f66;
  --muted-dim: #8a8a86;
  --red: #c8242f;
  --red-deep: #a31d27;
  --rule: rgba(14, 26, 43, 0.14);
  --rule-strong: rgba(14, 26, 43, 0.28);

  --serif: "Fraunces", "Iowan Old Style", "Georgia", serif;
  --mono: "JetBrains Mono", "SF Mono", "Menlo", monospace;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* Paper grain overlay */
.grain-defs { position: absolute; width: 0; height: 0; }
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

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

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

/* =============================================================
   Typography
   ============================================================= */

.display, .display-md, .display-lg {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.display {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.02;
}

.display-md {
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  line-height: 1.05;
  margin-bottom: 0.4em;
}

.display-lg {
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.display em, .display-md em, .display-lg em, .pullquote em {
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "opsz" 144, "wght" 500;
  color: var(--ink);
}

.lede {
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
  margin: 1.4em 0 0;
}

.mono-label, .mono-numeral {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
}

.mono-label.dim { color: var(--muted); }

.mono-numeral {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.1em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
  font-weight: 500;
}

.eyebrow-rule {
  display: inline-block;
  width: 42px;
  height: 1px;
  background: var(--ink);
  opacity: 0.45;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 28px;
}

.section-kicker .mono-numeral {
  color: var(--red);
}

/* =============================================================
   Rules
   ============================================================= */

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* =============================================================
   Buttons
   ============================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: transform 220ms var(--ease),
              background 220ms var(--ease),
              color 220ms var(--ease),
              border-color 220ms var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}

.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.btn-on-dark {
  background: var(--red);
  color: var(--paper);
}

.btn-on-dark:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.btn-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
  animation: pulse 2.4s var(--ease) infinite;
}

.btn-ghost .btn-dot { display: none; }

.btn-arrow {
  display: inline-block;
  transition: transform 220ms var(--ease);
}

.btn-ghost:hover .btn-arrow { transform: translateY(2px); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* =============================================================
   Nav
   ============================================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 234, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.monogram {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--ink);
  background: transparent;
}

.monogram-glyph {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 14;
  color: var(--ink);
  line-height: 1;
}

.monogram-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  font-variation-settings: "opsz" 36;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 28px;
  justify-content: center;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 240ms var(--ease);
}

.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { padding: 12px 18px; }

/* =============================================================
   Hero
   ============================================================= */

.hero {
  padding-top: clamp(60px, 9vw, 120px);
  padding-bottom: clamp(60px, 9vw, 120px);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: radial-gradient(ellipse at 20% 0%, rgba(14, 26, 43, 0.04), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.hero-copy { min-width: 0; }

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.pillars {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.pillars li {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 16px 22px 16px 0;
  flex: 1 1 auto;
  border-right: 1px solid var(--rule);
  position: relative;
}

.pillars li:last-child { border-right: 0; padding-right: 0; }

.pillars li::before {
  content: "·";
  color: var(--red);
  font-weight: 700;
  margin-right: 10px;
}

/* Dossier card */
.dossier {
  position: relative;
  display: block;
}

.dossier-frame {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule-strong);
  padding: 36px 32px 28px;
  box-shadow:
    0 1px 0 rgba(14, 26, 43, 0.04),
    0 30px 60px -30px rgba(14, 26, 43, 0.18),
    0 8px 24px -12px rgba(14, 26, 43, 0.08);
  transform: rotate(-1.2deg);
}

.bracket {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--ink);
  pointer-events: none;
}
.bracket-tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.bracket-tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.bracket-bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.bracket-br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.dossier-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

.dossier-stamp {
  color: var(--red);
  border: 1px solid var(--red);
  padding: 3px 8px;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

.dossier-title {
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--rule);
}

.dossier-title .mono-label { display: block; margin-bottom: 4px; }
.dossier-title .mono-label + p { margin: 0 0 16px; }
.dossier-title p:last-child { margin-bottom: 0; }

.dossier-name {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  font-variation-settings: "opsz" 36;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.dossier-class {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 24, "wght" 400;
}

.dossier-rows {
  list-style: none;
  padding: 18px 0 0;
  margin: 0;
}

.dossier-rows li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--rule);
}

.dossier-rows li:last-child { border-bottom: 0; }

.dossier-key {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.dossier-val {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--muted);
}

.dossier-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

/* =============================================================
   Clients
   ============================================================= */

.clients {
  padding: clamp(72px, 9vw, 120px) 0;
}

.clients-head {
  max-width: 880px;
  margin: 0 0 clamp(40px, 5vw, 64px);
}

.clients-head .display-md {
  margin-top: 0;
}

.client-cards {
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}

.client-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule-strong);
  padding: clamp(28px, 3vw, 40px);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 22px;
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease);
  box-shadow:
    0 1px 0 rgba(14, 26, 43, 0.04),
    0 18px 40px -28px rgba(14, 26, 43, 0.18);
}

.client-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(14, 26, 43, 0.04),
    0 24px 50px -28px rgba(14, 26, 43, 0.22);
}

.client-card .bracket { border-color: var(--ink); }

.client-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  letter-spacing: 0.14em;
}

.client-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 24px 12px;
  background:
    linear-gradient(var(--paper-deep), var(--paper-deep)),
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 11px,
      rgba(14, 26, 43, 0.04) 11px,
      rgba(14, 26, 43, 0.04) 12px
    );
  border: 1px solid var(--rule);
}

.client-logo {
  max-height: 56px;
  width: auto;
  max-width: 80%;
  object-fit: contain;
}

/* Logos whose source file ships with built-in canvas padding need to render
   larger so the artwork inside reaches the same optical weight. */
.client-logo-padded { max-height: 96px; }

.client-meta { display: flex; flex-direction: column; gap: 10px; }

.client-name {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.8vw, 1.6rem);
  font-weight: 500;
  font-variation-settings: "opsz" 36;
  letter-spacing: -0.005em;
  line-height: 1.15;
  margin: 0;
}

.client-tag {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  max-width: 42ch;
  line-height: 1.5;
}

.client-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.client-facts > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.client-facts dt {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

.client-facts dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.92rem;
  font-variation-settings: "opsz" 14;
  color: var(--ink);
  line-height: 1.3;
  word-break: break-word;
}

.client-facts a {
  color: var(--ink);
  border-bottom: 1px solid var(--red);
  padding-bottom: 1px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  transition: color 200ms var(--ease);
}

.client-facts a:hover { color: var(--red); }

/* Pending / unconfirmed clients */
.client-pending {
  border-top: 1px dashed var(--rule-strong);
  padding-top: 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
}

.pending-kicker {
  letter-spacing: 0.18em;
  padding-top: 4px;
}

.pending-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pending-list li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.pending-list li:last-child { border-bottom: 0; }

.pending-name {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 500;
  font-variation-settings: "opsz" 36;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.pending-flag {
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border: 1px dashed var(--rule-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.62rem;
}

/* =============================================================
   Process / 10-day model
   ============================================================= */

.process {
  padding: clamp(72px, 9vw, 120px) 0 clamp(40px, 5vw, 80px);
}

.process-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 56px);
  align-items: start;
}

.process-head {
  grid-column: 1 / 2;
}

.process-head .lede { margin-top: 1.2em; }

.capabilities {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  background: var(--card);
  border: 1px solid var(--rule-strong);
  padding: 28px 26px;
  position: relative;
}

.capabilities::before,
.capabilities::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--ink);
}

.capabilities::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.capabilities::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.capabilities-title { display: block; margin-bottom: 18px; }

.capability-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.capability-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: baseline;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 1.02rem;
  font-variation-settings: "opsz" 24;
  color: var(--ink);
}

.capability-list li:last-child { border-bottom: 0; padding-bottom: 0; }

/* Timeline */
.timeline {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  position: relative;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 32px;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--rule-strong) 0,
    var(--rule-strong) 6px,
    transparent 6px,
    transparent 12px
  );
}

.stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 6px;
}

.stage-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--red);
  background: var(--paper);
  padding: 4px 8px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  position: relative;
  z-index: 1;
}

.stage-name {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-variation-settings: "opsz" 14, "wght" 500;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

.stage-end .stage-num {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.timeline-badge {
  grid-column: 1 / 2;
  justify-self: end;
  margin-top: 24px;
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.timeline-badge .mono-label {
  color: var(--paper);
  font-size: 0.72rem;
}

/* Process photo */
.process-photo-wrap {
  margin-top: clamp(40px, 5vw, 72px);
}

.process-photo {
  margin: 0;
  position: relative;
  border: 1px solid var(--rule-strong);
  overflow: hidden;
}

.process-photo img {
  width: 100%;
  height: clamp(280px, 40vw, 460px);
  object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(0.85);
}

.process-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(14, 26, 43, 0.55), rgba(246, 242, 234, 0.15)),
    rgba(14, 26, 43, 0.25);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.process-photo figcaption {
  position: absolute;
  bottom: 18px;
  left: 22px;
  color: var(--paper);
  z-index: 1;
  letter-spacing: 0.16em;
}

/* =============================================================
   Services
   ============================================================= */

.services { padding: clamp(72px, 9vw, 120px) 0; }

.section-head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 720px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.service-card {
  position: relative;
  padding: 36px 30px 30px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background 240ms var(--ease);
}

.service-card:hover { background: var(--card); }

.service-card .bracket-tl,
.service-card .bracket-br {
  border-color: var(--rule-strong);
  opacity: 0;
  transition: opacity 240ms var(--ease), border-color 240ms var(--ease);
}

.service-card:hover .bracket-tl,
.service-card:hover .bracket-br {
  opacity: 1;
  border-color: var(--ink);
}

.service-card header { display: flex; flex-direction: column; gap: 12px; }

.service-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1.8vw, 1.65rem);
  font-weight: 500;
  font-variation-settings: "opsz" 36;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.service-card li {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--muted);
  padding-left: 14px;
  position: relative;
}

.service-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--rule-strong);
  font-family: var(--mono);
}

.card-underline {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 320ms var(--ease);
}

.service-card:hover .card-underline { transform: scaleX(1); }

/* =============================================================
   Difference (pull quote on raised white card)
   ============================================================= */

.difference {
  padding: clamp(48px, 7vw, 96px) 0;
}

.quote-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule-strong);
  padding: clamp(40px, 6vw, 80px) clamp(28px, 5vw, 72px);
  box-shadow:
    0 1px 0 rgba(14, 26, 43, 0.05),
    0 40px 80px -40px rgba(14, 26, 43, 0.18);
}

.pullquote {
  margin: 32px 0 56px;
}

.pullquote p {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-variation-settings: "opsz" 144, "wght" 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 22ch;
  position: relative;
}

.pullquote p::before {
  content: "“";
  position: absolute;
  left: -0.4em;
  top: -0.1em;
  font-size: 1.4em;
  color: var(--red);
  font-style: italic;
  font-weight: 400;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.diff-grid > div { display: flex; flex-direction: column; gap: 10px; }

.diff-grid h4 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  font-variation-settings: "opsz" 36;
  letter-spacing: -0.005em;
  margin: 6px 0 0;
}

.diff-grid p {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  max-width: 38ch;
  line-height: 1.55;
}

/* =============================================================
   Technology — copy + seal
   ============================================================= */

.tech { padding: clamp(72px, 9vw, 120px) 0; }

.tech-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.tech-list {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  border-top: 1px solid var(--rule);
}

.tech-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-variation-settings: "opsz" 24;
  color: var(--ink);
}

/* Seal */
.seal {
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
}

.seal-stage {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
}

.seal-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.seal-ring-outer,
.seal-ring-inner,
.seal-ring-core {
  fill: none;
  stroke: var(--ink);
}

.seal-ring-outer { stroke-width: 1; opacity: 0.55; }
.seal-ring-inner { stroke-width: 0.6; opacity: 0.35; stroke-dasharray: 2 3; }
.seal-ring-core  { stroke-width: 1.2; }

.seal-text {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  fill: var(--ink);
  text-transform: uppercase;
}

.seal-tick {
  stroke: var(--ink);
  stroke-width: 1;
  opacity: 0.6;
}

.seal-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 600;
  font-variation-settings: "opsz" 144, "wght" 600;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink);
}

/* Decorative red dot, positioned independently so it doesn't pull TF off-center.
   Sits just outside the bottom edge of the core circle (r=62 in a 320x320 viewBox
   that renders at max-width 380px ≈ ~74px radius on screen; offset accordingly). */
.seal-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.seal-cap {
  margin-top: 16px;
  letter-spacing: 0.18em;
}

/* Slow rotation on the seal — purely decorative */
.seal-svg { animation: sealSpin 80s linear infinite; transform-origin: center; }

@keyframes sealSpin {
  to { transform: rotate(360deg); }
}

/* =============================================================
   Industries
   ============================================================= */

.industries { padding: clamp(28px, 4vw, 48px) 0; }

.industries-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
}

.industries-kicker {
  margin: 0;
  flex-shrink: 0;
  letter-spacing: 0.18em;
}

.chip-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: baseline;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
  cursor: default;
}

.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* =============================================================
   Why Terraforce
   ============================================================= */

.why { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 9vw, 120px); }

.why-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.why-grid li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 36px 28px 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.why-grid li::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 320ms var(--ease);
}

.why-grid li:hover::before { transform: scaleX(0.3); }

.why-grid h4 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  font-variation-settings: "opsz" 36;
  margin: 6px 0 0;
  letter-spacing: -0.005em;
}

.why-grid p {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  max-width: 36ch;
}

/* =============================================================
   Closing / Contact (dark band)
   ============================================================= */

.closing {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 11vw, 160px) 0 clamp(60px, 8vw, 120px);
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(200, 36, 47, 0.12), transparent 50%),
    radial-gradient(ellipse at 10% 100%, rgba(244, 239, 230, 0.05), transparent 50%);
  pointer-events: none;
}

.closing > .container { position: relative; }

.closing-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
}

.closing-kicker { color: var(--paper); }
.closing-kicker .mono-numeral { color: var(--red); }

.closing-copy .display-lg { color: var(--paper); }
.closing-copy .display-lg em { color: var(--paper); }

.closing-lede {
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: rgba(244, 239, 230, 0.7);
  max-width: 52ch;
  margin: 32px 0 40px;
  line-height: 1.55;
}

.closing-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.closing-note {
  margin: 18px 0 0;
  color: rgba(244, 239, 230, 0.45);
}

.closing-meta {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-left: clamp(0px, 3vw, 40px);
  border-left: 1px solid rgba(244, 239, 230, 0.18);
}

.meta-row .mono-label.dim { color: rgba(244, 239, 230, 0.5); }

.meta-row p {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-variation-settings: "opsz" 36, "wght" 400;
  color: var(--paper);
  margin: 6px 0 0;
  line-height: 1.35;
}

.meta-row p.meta-address {
  font-size: 1rem;
  line-height: 1.5;
  max-width: 32ch;
}

.meta-row p.meta-mono {
  font-family: var(--mono);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =============================================================
   Footer
   ============================================================= */

.footer {
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid rgba(244, 239, 230, 0.1);
  padding: 32px 0 28px;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
}

.brand-footer .monogram { border-color: var(--paper); }
.brand-footer .monogram-glyph { color: var(--paper); }
.brand-footer .wordmark { color: var(--paper); }

.footer-tagline { color: rgba(244, 239, 230, 0.5); }

.footer-nav { display: flex; gap: 22px; }

.footer-nav a {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.7);
  transition: color 200ms var(--ease);
}

.footer-nav a:hover { color: var(--paper); }

.footer-copy { color: rgba(244, 239, 230, 0.4); }

/* =============================================================
   Reveal animations
   ============================================================= */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 720ms var(--ease), transform 720ms var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stage {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.reveal-stage.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================
   Responsive
   ============================================================= */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .dossier-frame { transform: rotate(0deg); }
  .dossier { max-width: 520px; }

  .process-grid { grid-template-columns: 1fr; }
  .capabilities { grid-column: 1 / 2; grid-row: auto; }
  .timeline { grid-column: 1 / 2; }

  .client-cards { grid-template-columns: 1fr; }
  .client-pending { grid-template-columns: 1fr; }

  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }

  .tech-grid { grid-template-columns: 1fr; }
  .seal { margin-top: 24px; }

  .closing-grid { grid-template-columns: 1fr; }
  .closing-meta { border-left: 0; border-top: 1px solid rgba(244, 239, 230, 0.18); padding-left: 0; padding-top: 28px; }

  .footer-inner { grid-template-columns: 1fr; text-align: left; gap: 16px; }
}

@media (max-width: 720px) {
  .nav-inner { grid-template-columns: auto auto; gap: 16px; }
  .nav-links { display: none; }

  .display { font-size: clamp(2.4rem, 9vw, 3.2rem); }
  .display-md { font-size: clamp(2rem, 7vw, 2.6rem); }
  .display-lg { font-size: clamp(2.6rem, 11vw, 4rem); }

  .pillars { flex-direction: column; }
  .pillars li { border-right: 0; border-bottom: 1px solid var(--rule); padding: 12px 0; }
  .pillars li:last-child { border-bottom: 0; }

  .client-facts { grid-template-columns: 1fr; gap: 16px; }
  .pending-list li { flex-direction: column; gap: 6px; align-items: flex-start; }

  .timeline {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .timeline::before {
    top: 0;
    bottom: 0;
    left: 14px;
    right: auto;
    width: 1px;
    height: auto;
    background: repeating-linear-gradient(
      to bottom,
      var(--rule-strong) 0,
      var(--rule-strong) 6px,
      transparent 6px,
      transparent 12px
    );
  }
  .stage {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    text-align: left;
  }
  .timeline-badge { justify-self: start; }

  .service-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }

  .quote-card { padding: 36px 24px; }
}

/* =============================================================
   Reduced motion
   ============================================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stage {
    opacity: 1;
    transform: none;
  }
  .btn-dot { animation: none; }
  .seal-svg { animation: none; }
}
