/* ═══════════════════════════════════════════════════════════════
   The Square Table — shared styles (v7)
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --bg:            #0A0907;
  --bg-elev:       #14120F;
  --ink:           #E8E2D4;
  --ink-muted:     #A8A194;
  --hairline:      #2A2521;
  --accent:        #D4973F;
  --accent-hover:  #E6A84A;
  --accent-40:     rgba(212, 151, 63, 0.4);

  --gutter:        64px;
  --col:           680px;
  --col-prose:     620px;

  --text-xs:       0.75rem;
  --text-sm:       0.875rem;
  --text-base:     1.0625rem;
  --text-md:       1.1875rem;
  --text-lg:       1.5rem;
  --text-xl:       2rem;
  --text-2xl:      2.75rem;
  --text-3xl:      4rem;

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.6;
  letter-spacing: -0.005em;
  opacity: 0;
  transition: opacity 0.4s ease-out;
  overflow-x: hidden;
}
body.ready { opacity: 1; }

::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; }

/* ─── HEADER ─── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 64px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-bottom-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.header.scrolled {
  background: rgba(10, 9, 7, 0.82);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border-bottom-color: var(--hairline);
}
.header-inner {
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.wordmark {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
}
.wordmark img {
  height: 22px;
  width: auto;
  display: block;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-link {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-muted);
  position: relative;
  padding: 2px 0;
  transition: color 0.3s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease-in-out;
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-link.current {
  color: var(--ink);
}
.nav-link.current::after {
  transform: scaleX(1);
  background: var(--accent);
}

/* ─── SHELL ─── */
.shell { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }

/* ─── SCROLL PROGRESS ─── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  z-index: 60;
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
  transition: transform 0.1s linear;
}

/* ─── REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s var(--ease), transform 0.95s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.96) translateY(12px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  will-change: opacity, transform;
}
.reveal-scale.in { opacity: 1; transform: scale(1) translateY(0); }

/* Stagger child reveals when parent has data-stagger */
[data-stagger] > .reveal:nth-of-type(1) { transition-delay: 0s; }
[data-stagger] > .reveal:nth-of-type(2) { transition-delay: 0.06s; }
[data-stagger] > .reveal:nth-of-type(3) { transition-delay: 0.12s; }
[data-stagger] > .reveal:nth-of-type(4) { transition-delay: 0.18s; }
[data-stagger] > .reveal:nth-of-type(5) { transition-delay: 0.24s; }
[data-stagger] > .reveal:nth-of-type(6) { transition-delay: 0.30s; }
[data-stagger] > .reveal:nth-of-type(7) { transition-delay: 0.36s; }
[data-stagger] > .reveal:nth-of-type(8) { transition-delay: 0.42s; }
[data-stagger] > .reveal:nth-of-type(9) { transition-delay: 0.48s; }
[data-stagger] > .reveal:nth-of-type(10) { transition-delay: 0.54s; }

/* Arrow translation on tail-link / contact-link / nav-cta */
.tail-link .arrow,
.contact-link .arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease);
  margin-left: 2px;
}
.tail-link:hover .arrow,
.contact-link:hover .arrow {
  transform: translateX(4px);
}

/* ─── HERO (full-bleed video) ─── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  background: var(--bg);
  margin: 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg);
}
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2500ms ease-in-out;
  filter: brightness(0.82) saturate(0.88) contrast(1.04);
}
.hero-media video.active { opacity: 1; }

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(10, 9, 7, 0.96) 0%, rgba(10, 9, 7, 0.86) 20%, rgba(10, 9, 7, 0.55) 42%, rgba(10, 9, 7, 0.18) 65%, rgba(10, 9, 7, 0) 100%),
    linear-gradient(to right, rgba(10, 9, 7, 0.78) 0%, rgba(10, 9, 7, 0.45) 22%, rgba(10, 9, 7, 0.18) 45%, rgba(10, 9, 7, 0) 70%);
  pointer-events: none;
}

.hero-scrim {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 65%;
  height: 70%;
  z-index: 1;
  pointer-events: none;
  backdrop-filter: blur(8px) saturate(0.85);
  -webkit-backdrop-filter: blur(8px) saturate(0.85);
  mask-image: radial-gradient(ellipse 70% 80% at 18% 78%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0) 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 18% 78%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0) 78%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter) 96px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
}
.hero-content-inner {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mark {
  display: grid;
  grid-template-columns: 7px 7px;
  grid-template-rows: 7px 7px;
  gap: 2px;
  width: 16px;
  height: 16px;
  margin: 0 auto 40px;
}
.mark span { background: var(--accent); display: block; }

.headline {
  font-family: 'Source Serif 4', 'Iowan Old Style', 'Charter', Georgia, serif;
  font-weight: 400;
  font-variation-settings: "opsz" 60;
  font-size: 60px;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #F5F1E6;
  max-width: 22ch;
  margin: 0;
  text-align: left;
  text-shadow: 0 2px 24px rgba(10, 9, 7, 0.4);
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.descriptor {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: #EDE7D8;
  margin: 28px 0 0;
  max-width: 540px;
  opacity: 1;
  text-align: left;
  letter-spacing: 0;
  text-shadow: 0 1px 16px rgba(10, 9, 7, 0.35);
}
.hero-rule {
  width: 56px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
  margin: 36px 0 28px;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--bg);
  background: var(--ink);
  padding: 14px 24px;
  border-radius: 2px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-muted);
  padding: 6px 0;
  transition: color 0.25s var(--ease), gap 0.3s var(--ease);
}
.btn-secondary .arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}
.btn-secondary:hover { color: var(--ink); }
.btn-secondary:hover .arrow { transform: translateX(4px); }

/* ─── LOGO WALL ─── */
.logo-wall {
  padding-top: 160px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.logo-wall-intro {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: var(--text-sm);
  color: var(--ink-muted);
  margin-bottom: 40px;
  letter-spacing: 0.01em;
  text-align: center;
}
.logo-wall-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 40px;
}
.logo-wall-item {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.logo-wall-item:hover { color: var(--ink); }

/* ─── PARTNERS TICKER ─── */
.partners {
  padding-top: 160px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  overflow: hidden;
}
.partners-intro {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--ink-muted);
  margin-bottom: 40px;
}
.partners-marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.partners-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: partners-scroll 80s linear infinite;
  will-change: transform;
}
.partners-track.reverse {
  animation: partners-scroll-reverse 80s linear infinite;
}
.partner-logo {
  width: 160px;
  height: 56px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(0.9);
  opacity: 0.72;
  transition: opacity 0.35s var(--ease);
  flex-shrink: 0;
}
.partner-logo:hover {
  opacity: 1;
}
@keyframes partners-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 28px)); }
}
@keyframes partners-scroll-reverse {
  from { transform: translateX(calc(-50% - 28px)); }
  to   { transform: translateX(0); }
}

@media (max-width: 768px) {
  .partners { padding-top: 96px; }
  .partners-marquee { gap: 20px; }
  .partners-track { gap: 40px; animation-duration: 60s; }
  .partner-logo { width: 120px; height: 44px; }
  @keyframes partners-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-50% - 20px)); }
  }
  @keyframes partners-scroll-reverse {
    from { transform: translateX(calc(-50% - 20px)); }
    to   { transform: translateX(0); }
  }
}

/* ─── SECTIONS ─── */
.section {
  padding-top: 160px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.section.tight { padding-top: 120px; }
.section.wide { max-width: 1040px; }
.section > * + * { margin-top: 0; }

/* ─── STATS ROW ─── */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin: 120px auto 0;
  padding: 56px 0;
  max-width: 720px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
}
.stat-num {
  font-family: 'Source Serif 4', 'Iowan Old Style', 'Charter', Georgia, serif;
  font-weight: 500;
  font-variation-settings: "opsz" 60;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat-num em {
  font-style: italic;
  color: var(--accent);
  margin: 0 6px;
}
.stat-label {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-top: 12px;
}

/* ─── PILLARS (How we work) ─── */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px 48px;
  margin-top: 32px;
}
.pillar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.pillar-label {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.pillar-desc {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.pillars-close {
  margin: 48px auto 0;
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  max-width: 580px;
  text-align: center;
}
.pillars-close em { font-style: italic; }

/* ─── WORK GRID ─── */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 48px;
  margin-top: 48px;
}
.work-grid .case {
  max-width: 100%;
  padding-left: 0;
  margin-top: 0 !important;
}
.work-grid .case + .case {
  margin-top: 0 !important;
}
.work-grid .case .case-body {
  max-width: 100%;
}

.subhead {
  font-family: 'Source Serif 4', 'Iowan Old Style', 'Charter', Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  font-variation-settings: "opsz" 32;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 32px;
  margin-top: 96px;
}
.subhead:first-child { margin-top: 0; }

.prose p {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  max-width: var(--col);
}
.prose p + p { margin-top: 1.5em; }
.prose em { font-style: italic; }

.intro {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-style: italic;
  font-size: var(--text-md);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: var(--col-prose);
  margin-top: 24px;
  margin-bottom: 48px;
}

.page-title {
  font-family: 'Source Serif 4', 'Iowan Old Style', 'Charter', Georgia, serif;
  font-weight: 500;
  font-variation-settings: "opsz" 60;
  font-size: var(--text-xl);
  letter-spacing: -0.015em;
  color: var(--ink);
  padding-top: 120px;
}
.page-intro {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-style: italic;
  font-size: var(--text-md);
  color: var(--ink-muted);
  max-width: var(--col);
  margin-top: 32px;
  margin-bottom: 80px;
}

/* ─── PULL QUOTE (side hairlines) ─── */
.pull-quote-section {
  max-width: 1100px;
}
.pull-quote-row {
  display: flex;
  align-items: center;
  gap: 32px;
}
.pq-rule {
  flex: 1;
  height: 1px;
  background: var(--accent-40);
}
.pull-quote-text {
  font-family: 'Source Serif 4', 'Iowan Old Style', 'Charter', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 32;
  font-size: 32px;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 680px;
  margin: 0;
  text-align: center;
  flex-shrink: 1;
}

/* ─── CASES ─── */
.case {
  max-width: var(--col);
  padding-left: 0;
  position: relative;
  transition: padding-left 0.5s var(--ease);
}
.case + .case {
  margin-top: 72px;
}
.case::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: 0 0;
  transition: transform 0.5s var(--ease);
}
.case:hover { padding-left: 16px; }
.case:hover::before { transform: scaleY(1); }
.case:hover .case-title { color: var(--accent); }
.case-tag {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: var(--text-sm);
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.case-tag .sep { display: inline-block; padding: 0 8px; color: var(--hairline); }
.case-title {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: var(--text-md);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 16px;
  transition: color 0.4s var(--ease);
}
.case-body {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  max-width: var(--col-prose);
}
.case-body p + p { margin-top: 1.2em; }

.section-tail { margin-top: 32px; }
.tail-link {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: var(--text-base);
  color: var(--ink-muted);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
  transition: color 0.25s var(--ease), border-bottom-color 0.25s var(--ease), padding 0.3s var(--ease);
  display: inline-block;
  position: relative;
}
.tail-link:hover { color: var(--ink); border-bottom-color: var(--accent); }
.tail-link:hover { padding-right: 8px; }

/* ─── WRITING ─── */
.essay-card + .essay-card { margin-top: 64px; }
.essay-card {
  padding-left: 0;
  position: relative;
  transition: padding-left 0.45s var(--ease);
}
.essay-card::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: 0 0;
  transition: transform 0.5s var(--ease);
}
.essay-card:hover { padding-left: 16px; }
.essay-card:hover::before { transform: scaleY(1); }
.essay-title {
  font-family: 'Source Serif 4', 'Iowan Old Style', 'Charter', Georgia, serif;
  font-size: var(--text-lg);
  font-weight: 500;
  font-variation-settings: "opsz" 32;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s var(--ease), gap 0.35s var(--ease);
  position: relative;
  padding-bottom: 2px;
  background-image: linear-gradient(to right, transparent, transparent);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
}
.essay-title::after {
  content: '→';
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
  color: var(--accent);
}
.essay-card:hover .essay-title {
  color: var(--accent);
  gap: 14px;
  background-image: linear-gradient(to right, var(--accent), var(--accent));
}
.essay-card:hover .essay-title::after { opacity: 1; transform: translateX(0); }
.essay-subtitle {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: var(--col-prose);
  margin-bottom: 16px;
}
.essay-meta {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}
.writing-tail { margin-top: 48px; }

/* ─── ESSAY PAGE ─── */
.essay-page {
  max-width: var(--col-prose);
  margin: 0 auto;
}
.essay-head { padding-top: 120px; }
.essay-head h1 {
  font-family: 'Source Serif 4', 'Iowan Old Style', 'Charter', Georgia, serif;
  font-weight: 500;
  font-variation-settings: "opsz" 60;
  font-size: var(--text-xl);
  letter-spacing: -0.015em;
  color: var(--ink);
}
.essay-head .subtitle {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-style: italic;
  font-size: var(--text-md);
  color: var(--ink-muted);
  margin-top: 16px;
  line-height: 1.5;
}
.essay-head .meta {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: var(--text-sm);
  color: var(--ink-muted);
  margin-top: 32px;
}
.essay-body {
  margin-top: 64px;
}
.essay-body p {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 1.8em;
}
.essay-body em { font-style: italic; }
.essay-rule {
  width: 4px;
  height: 4px;
  background: var(--accent);
  margin: 64px auto;
}
.essay-signature {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-style: italic;
  font-size: var(--text-md);
  color: var(--ink-muted);
  margin-top: 48px;
}
.essay-back {
  border-top: 1px solid var(--hairline);
  margin-top: 80px;
  padding-top: 32px;
}
.essay-stub {
  margin-top: 64px;
  padding: 40px;
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-style: italic;
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: var(--col-prose);
}
.essay-stub strong { color: var(--ink); font-style: normal; font-weight: 400; }

/* ─── ABOUT PAGE ─── */
.about-page { padding-top: 40px; }
.about-section { margin-top: 96px; max-width: var(--col); }
.about-section:first-of-type { margin-top: 64px; }
.about-section h2 {
  font-family: 'Source Serif 4', 'Iowan Old Style', 'Charter', Georgia, serif;
  font-size: var(--text-lg);
  font-weight: 500;
  font-variation-settings: "opsz" 32;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 24px;
}
.about-section p {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  max-width: var(--col);
}
.about-section p + p { margin-top: 1.5em; }

/* ─── CONTACT PAGE ─── */
.contact-page { padding-top: 120px; max-width: 620px; }
.contact-page h1 {
  font-family: 'Source Serif 4', 'Iowan Old Style', 'Charter', Georgia, serif;
  font-weight: 500;
  font-variation-settings: "opsz" 60;
  font-size: var(--text-xl);
  letter-spacing: -0.015em;
  color: var(--ink);
}
.contact-page .intro {
  font-style: normal;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 48px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}
.field input,
.field textarea {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.3s var(--ease);
  resize: vertical;
}
.field input:focus,
.field textarea:focus { border-color: var(--accent); }
.field input { height: 48px; }
.field textarea { min-height: 160px; line-height: 1.55; }

.form-submit {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: var(--text-base);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--hairline);
  padding: 12px 24px;
  align-self: flex-start;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
  margin-top: 16px;
}
.form-submit:hover { border-color: var(--accent); color: var(--accent); }

.form-alt {
  margin-top: 64px;
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: var(--text-base);
  color: var(--ink-muted);
}
.form-alt a {
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-bottom-color 0.2s var(--ease);
}
.form-alt a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.form-confirmation {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--ink);
  padding: 48px 0;
}

/* ─── ABOUT / PRACTICE (homepage) ─── */
.about-home p {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: var(--text-md);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  max-width: var(--col-prose);
  margin-bottom: 32px;
}

/* ─── CONTACT (homepage) ─── */
.contact-copy {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--ink);
  max-width: var(--col-prose);
  margin-top: 24px;
  margin-bottom: 48px;
}
.contact-link {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  transition: color 0.25s var(--ease), gap 0.35s var(--ease), letter-spacing 0.35s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.contact-link:hover { color: var(--accent); gap: 16px; letter-spacing: 0.005em; }

/* ─── FOOTER ─── */
.footer {
  margin-top: 160px;
  padding: 32px 0;
  border-top: 1px solid var(--hairline);
}
.footer-row,
.footer-row-bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer-row-bottom {
  margin-top: 24px;
  justify-content: flex-end;
}
.footer-brand { font-family: 'Geist', 'Inter', system-ui, sans-serif; font-size: 14px; color: var(--ink-muted); }
.footer-nav { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }
.footer-nav a {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: 13px;
  color: var(--ink-muted);
  transition: color 0.2s var(--ease);
}
.footer-nav a:hover { color: var(--ink); }
.footer-nav a[href^="mailto:"]:hover { color: var(--accent); }
.footer-copy { font-family: 'Geist', 'Inter', system-ui, sans-serif; font-size: 12px; color: var(--ink-muted); }
.footer-email a {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: var(--ink-muted);
  transition: color 0.2s var(--ease);
}
.footer-email a:hover { color: var(--accent); }
.footer-legal {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: 12px;
  color: var(--ink-muted);
}
.footer-legal a {
  color: var(--ink-muted);
  margin-left: 16px;
  transition: color 0.2s var(--ease);
}
.footer-legal a:first-child { margin-left: 0; }
.footer-legal a:hover { color: var(--ink); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero { height: 88vh; min-height: 600px; }
  .headline { font-size: clamp(2.25rem, 5vw, 3rem); }
}
@media (max-width: 768px) {
  :root { --gutter: 24px; }
  .header { height: 56px; }
  .header-inner { gap: 16px; padding: 0 20px; }
  .nav-links { gap: 18px; }
  .nav-link { font-size: 13px; }
  .wordmark img { height: 20px; max-width: 88px; }
  .hero { height: 100svh; min-height: 600px; }
  .hero-content { padding: 0 24px 56px; justify-content: flex-end; }
  .hero-content-inner { max-width: 100%; min-width: 0; width: 100%; }
  .headline { font-size: 32px !important; line-height: 1.12 !important; max-width: 100% !important; letter-spacing: -0.015em !important; min-width: 0; }
  .headline br { display: none; }
  .descriptor { font-size: 16px !important; line-height: 1.55 !important; max-width: 100% !important; margin-top: 20px !important; }
  .hero-rule { margin: 28px 0 22px !important; }
  .hero-cta { gap: 14px; flex-direction: row; }
  .btn-primary { padding: 13px 22px; font-size: 14px; }
  .hero-scrim {
    width: 100%;
    height: 60%;
    backdrop-filter: blur(4px) saturate(0.85);
    -webkit-backdrop-filter: blur(4px) saturate(0.85);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.95) 30%, rgba(0, 0, 0, 0.5) 65%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.95) 30%, rgba(0, 0, 0, 0.5) 65%, rgba(0, 0, 0, 0) 100%);
  }
  .hero-gradient {
    background:
      linear-gradient(to top, rgba(10, 9, 7, 0.96) 0%, rgba(10, 9, 7, 0.84) 28%, rgba(10, 9, 7, 0.55) 50%, rgba(10, 9, 7, 0.18) 72%, rgba(10, 9, 7, 0) 100%);
  }
  .subhead { font-size: 22px !important; }
  .prose p, .case-body p, .case-body, .about-section p { font-size: 16px !important; line-height: 1.65 !important; }
  .logo-wall { padding-top: 96px; }
  .logo-wall-row { justify-content: flex-start; gap: 24px 28px; }
  .logo-wall-item { font-size: 15px; }
  .section { padding-top: 80px; }
  .section.tight { padding-top: 80px; }
  .pull-quote { margin-top: 80px; padding: 56px 0; }
  .pull-quote p { font-size: 22px; line-height: 1.4; }
  .case + .case { margin-top: 40px; }
  .pillars { grid-template-columns: 1fr; gap: 36px; }
  .work-grid { grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
  .work-grid .case + .case { margin-top: 40px !important; }
  .stats { grid-template-columns: 1fr; gap: 28px; padding: 36px 0; margin-top: 80px; }
  .stat-num { font-size: 36px; }
  .page-title { padding-top: 96px; }
  .essay-head { padding-top: 96px; }
  .about-section { margin-top: 72px; }
  .footer { margin-top: 120px; }
  .footer-row,
  .footer-row-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-legal a { margin-left: 0; margin-right: 16px; }
  .footer-legal a:last-child { margin-right: 0; }
}
@media (max-width: 480px) {
  .header-inner { gap: 12px; padding: 0 16px; }
  .nav-links { gap: 14px; }
  .nav-link { font-size: 12px; }
  .wordmark img { height: 18px; max-width: 76px; }
  .footer-brand img { height: 18px; }
  .logo-wall-item { font-size: 18px; gap: 40px; }
  .logo-wall-track { gap: 40px; }
  .pull-quote p { font-size: var(--text-md); }
  .headline { font-size: 32px !important; line-height: 1.1 !important; }
  .descriptor { font-size: 15px !important; }
  .hero-content { padding: 0 20px 48px; }
  .btn-primary { padding: 12px 18px; font-size: 13px; }
}

/* Tablet — between mobile and desktop */
@media (min-width: 769px) and (max-width: 1024px) {
  :root { --gutter: 40px; --col: 620px; }
  .headline { font-size: 52px !important; line-height: 1.1 !important; }
  .descriptor { font-size: 19px !important; }
  .subhead { font-size: 24px !important; }
  .logo-wall-item { font-size: 15px; }
  .page-title { padding-top: 104px; }
  .pillars { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .work-grid { grid-template-columns: 1fr 1fr; gap: 48px 40px; }
  .stats { padding: 44px 0; }
  .stat-num { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  body { transition: none; }
  .reveal, .reveal-scale { transition: opacity 0.2s ease-out; transform: none; }
  .reveal.in, .reveal-scale.in { transform: none; }
  .logo-wall-track { animation: none; }
  .case, .essay-card { transition: none; }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
