/* Campbell H&W — Fey nocturnal terminal system. Tokens in fey-tokens.css. */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--graphite);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

a { color: var(--mist); text-decoration: none; }
a:focus-visible,
.pill:focus-visible {
  outline: 1px solid var(--pale);
  outline-offset: 4px;
  border-radius: 2px;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

/* ---------- Type ---------- */

.display {
  color: var(--white);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1.06;
  margin: 0 0 24px;
}

.display .ember, .band-line .ember { color: var(--ember); font-style: normal; }

.eyebrow {
  color: var(--ember);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.sub {
  color: var(--graphite);
  font-size: 16px;
  max-width: 560px;
  margin: 0 0 36px;
}

/* ---------- Pills ---------- */

.pill {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--smoke);
  border-radius: var(--r-pill);
  color: var(--white);
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  transition: box-shadow 0.6s ease, border-color 0.6s ease;
}
.pill:hover {
  box-shadow: var(--glow-white);
  border-color: var(--pale);
}

/* ---------- Header / nav ---------- */

.site-header { padding: 28px 0; }

.nav-row {
  display: flex;
  align-items: center;
  gap: 40px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.monogram { width: 38px; height: 38px; flex: none; }

.site-nav {
  position: relative;
  display: flex;
  gap: 8px;
  margin-right: auto;
}
.site-nav a {
  color: var(--mist);
  font-size: 15px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  transition: box-shadow 0.6s ease, color 0.4s ease;
}
.site-nav a:hover { color: var(--white); box-shadow: var(--glow-white); }
.site-nav a.active { color: var(--white); }
.nav-indicator {
  position: absolute;
  bottom: 0;
  height: 1px;
  background: var(--signal);
  opacity: 0;
  transition: left 0.45s cubic-bezier(0.22, 1, 0.36, 1), width 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.nav-indicator.on { opacity: 1; }

.nav-cta { flex: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  text-align: center;
  padding-top: 120px;
  padding-bottom: 150px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -80px -200px 0;
  background: radial-gradient(ellipse 46% 55% at 50% 40%, rgba(201, 162, 75, 0.07), transparent 70%);
  pointer-events: none;
}
.hero-copy { position: relative; max-width: 880px; margin: 0 auto; }
.hero .sub {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
/* ---------- Section rhythm ---------- */

.section { padding-top: 96px; padding-bottom: 96px; }

.hairline {
  border: none;
  border-top: 1px solid var(--smoke);
  opacity: 0.35;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ---------- Thesis ---------- */

.thesis { padding-top: 112px; padding-bottom: 112px; }
.thesis-line {
  color: var(--white);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: -0.053em;
  line-height: 1.4;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

/* ---------- Sectors ---------- */

.sector-table { margin-top: 48px; border-top: 1px solid rgba(82, 82, 82, 0.45); }

.sector-row {
  display: grid;
  grid-template-columns: 48px 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 26px 8px;
  border-bottom: 1px solid rgba(82, 82, 82, 0.45);
  transition: background-color 0.5s ease, transform 0.5s ease;
}
.sector-row:hover {
  background: rgba(255, 255, 255, 0.02);
  transform: translateY(-2px);
}
.sector-icon g { transition: stroke 0.5s ease; }
.sector-row:hover .sector-icon g { stroke: var(--ember); }
.sector-range { transition: text-shadow 0.5s ease; }
.sector-row:hover .sector-range { text-shadow: 0 0 18px rgba(255, 255, 255, 0.45); }
.idx {
  color: var(--smoke);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.sector-icon svg { width: 44px; height: 44px; display: block; }
.sector-name {
  color: var(--white);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.sector-name small {
  display: block;
  color: var(--graphite);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 4px;
}
.sector-range {
  color: var(--white);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: right;
  white-space: nowrap;
}

.table-note { font-size: 13px; color: var(--graphite); margin-top: 20px; }

/* ---------- Architecture ---------- */

.arch-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: center;
  margin-top: 24px;
}

.layers {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.layers::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: var(--smoke);
  opacity: 0.6;
}
.layers-progress {
  position: absolute;
  left: 11px;
  top: 28px;
  width: 1px;
  height: 0;
  background: var(--ember);
  z-index: 1;
}
.layers li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 0 18px 44px;
  color: var(--graphite);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: color 0.5s ease;
}
.layers li::before {
  content: "";
  position: absolute;
  left: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--canvas);
  border: 1px solid var(--graphite);
  z-index: 2;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
.layers li.lit { color: var(--white); }
.layers li.lit::before {
  border-color: var(--ember);
  box-shadow: 0 0 8px rgba(201, 162, 75, 0.35);
}
.layers .idx { min-width: 28px; }

.arch-visual img { width: 100%; }

/* ---------- Proof cards ---------- */

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.proof-card {
  display: block;
  background: var(--card);
  border: 1px solid #2a2a2a;
  border-radius: var(--r-card);
  padding: var(--card-pad);
  box-shadow: var(--halo);
  color: var(--graphite);
  transition: transform 0.5s ease, box-shadow 0.6s ease, border-color 0.6s ease;
}
.proof-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--halo), var(--glow-white);
  border-color: var(--smoke);
}
.file-tag {
  color: var(--ember);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.proof-stat {
  color: var(--white);
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  margin: 0 0 6px;
  font-variant-numeric: tabular-nums;
}
.stat-unit {
  font-size: 0.45em;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-left: 8px;
  color: var(--mist);
}
.proof-label {
  color: var(--mist);
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 16px;
}
.proof-line { font-size: 14px; margin: 0 0 18px; }
.proof-metrics {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  border-top: 1px solid rgba(82, 82, 82, 0.45);
}
.proof-metrics li {
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(82, 82, 82, 0.3);
}
.proof-cta {
  color: var(--mist);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.4s ease;
}
.proof-cta::after { content: " →"; }
.proof-card:hover .proof-cta { color: var(--white); }

/* ---------- Case study page ---------- */

.work-intro { padding-top: 72px; padding-bottom: 88px; }
.work-intro .sub { max-width: 620px; }

.study { padding-top: 96px; padding-bottom: 96px; }
.study .display { font-size: clamp(30px, 4vw, 44px); max-width: 820px; }

.study-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 40px 0 48px;
  border-top: 1px solid rgba(82, 82, 82, 0.45);
  border-bottom: 1px solid rgba(82, 82, 82, 0.45);
  padding: 28px 0;
}
.study-stats b {
  display: block;
  color: var(--white);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.study-stats span { font-size: 13px; color: var(--graphite); }

.study-body { max-width: 720px; }
.study-body h3 {
  color: var(--white);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 40px 0 12px;
}
.study-body h3:first-child { margin-top: 0; }
.study-body p, .study-body li { color: var(--graphite); font-size: 15.5px; }
.study-body ul { padding-left: 20px; }
.study-body li { margin-bottom: 8px; }

.ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}
.ba-panel {
  background: var(--elevated);
  border: 1px solid rgba(82, 82, 82, 0.45);
  border-radius: var(--r-small);
  padding: 20px;
}
.ba-panel p { margin: 0; font-size: 14.5px; }
.ba-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--smoke);
  margin: 0 0 10px !important;
}
.ba-after { border-color: var(--ember); }
.ba-after .ba-tag { color: var(--ember); }
.ba-after p:last-child { color: var(--mist); }

.study-pull {
  color: var(--white) !important;
  font-size: clamp(19px, 2vw, 23px) !important;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.4;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(82, 82, 82, 0.45);
}

/* ---------- Reach ---------- */

.reach-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 48px;
  border-top: 1px solid rgba(82, 82, 82, 0.45);
  padding-top: 40px;
}
.reach-grid h3 {
  color: var(--graphite);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.cities { list-style: none; margin: 0; padding: 0; max-width: 200px; }
.cities li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
}
.cities span {
  color: var(--white);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.cities time {
  color: var(--graphite);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* ---------- Section break band ---------- */

.band {
  position: relative;
  margin-top: 96px;
  padding: 160px 24px;
  background: #0b0b0b url("01-render-backdrop.svg") center / cover no-repeat;
  text-align: center;
  overflow: hidden;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 30% 55% at 44% 48%, rgba(201, 162, 75, 0.14), transparent 70%);
  animation: breathe 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breathe {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
.band-line { position: relative; z-index: 1; }
.band-line {
  color: var(--white);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.053em;
  margin: 0 auto;
  max-width: 720px;
  text-shadow: 0 0 32px rgba(0, 0, 0, 0.9);
}

/* ---------- Engagement ---------- */

.engage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.card {
  background: var(--card);
  border-radius: var(--r-card);
  padding: var(--card-pad);
  box-shadow: var(--halo);
}
.card h3 {
  color: var(--white);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.card p { margin: 0; font-size: 15px; }

/* ---------- Closing ---------- */

.closing { text-align: center; padding-top: 128px; padding-bottom: 128px; }
.closing .display { max-width: 880px; margin-left: auto; margin-right: auto; }
.closing .sub { max-width: 620px; margin: 0 auto 40px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(82, 82, 82, 0.45);
  padding: 56px 0 40px;
}
.foot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
}
.foot-links a:hover { color: var(--white); }
.foot-bottom {
  margin-top: 40px;
  font-size: 13px;
  color: var(--smoke);
}
.foot-bottom a { color: var(--smoke); }
.foot-bottom a:hover { color: var(--mist); }

/* ---------- Legal pages ---------- */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}
.legal h1 {
  color: var(--white);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1.06;
  margin: 0 0 10px;
}
.legal .eff { color: var(--smoke); font-size: 13px; margin-bottom: 40px; }
.legal h2 {
  color: var(--white);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 40px 0 12px;
}
.legal p, .legal li { color: var(--graphite); font-size: 15px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--mist); font-weight: 500; }
.legal a { color: var(--mist); border-bottom: 1px solid var(--smoke); }
.legal a:hover { color: var(--white); border-bottom-color: var(--mist); }

/* ---------- 404 ---------- */

.notfound {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.notfound .monogram { width: 56px; height: 56px; margin-bottom: 28px; }
.notfound .sub { max-width: none; }

/* ---------- Reveal motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--d, 0) * 140ms);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pill, .site-nav a, .sector-row, .sector-icon g, .sector-range, .nav-indicator, .layers li, .layers li::before { transition: none; }
  .band::after { animation: none; }
  .sector-row:hover { transform: none; }
  .layers li, .layers li.lit { color: var(--white); }
  .layers-progress { display: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .arch-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 64px; padding-bottom: 96px; }
  .reach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engage-grid, .proof-grid { grid-template-columns: 1fr; }
  .study-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding-top: 72px; padding-bottom: 72px; }
}

@media (max-width: 620px) {
  .ba { grid-template-columns: 1fr; }
}


@media (max-width: 720px) {
  .nav-row { flex-wrap: wrap; gap: 16px; }
  .site-nav { order: 3; width: 100%; margin-right: 0; }
  .site-nav a { padding: 8px 12px; }
  .sector-row { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .sector-icon { display: none; }
  .band { padding: 112px 24px; }
  .reach-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
