/* ============================================================
   INV Development LLC - Site Styles
   Institutional real estate aesthetic
   ============================================================ */

:root {
  /* Color palette - warm, restrained, near-black on warm white */
  --color-bg: #F8F6F1;
  --color-bg-elevated: #FBFAF6;
  --color-surface-dark: #1A1A1A;
  --color-surface-darker: #0E0E0E;
  --color-text-primary: #1A1A1A;
  --color-text-secondary: #5A5852;
  --color-text-muted: #8A877F;
  --color-text-on-dark: #F8F6F1;
  --color-text-on-dark-muted: #A5A29A;
  --color-divider: #E5E3DD;
  --color-divider-dark: #2A2A2A;
  --color-accent: #34503D;

  /* Typography */
  --font-serif: 'Fraunces', 'Bodoni Moda', 'Cardo', 'Times New Roman', Georgia, serif;
  --font-sans: 'Inter Tight', 'Söhne', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;
  --space-9: 12rem;

  /* Layout */
  --max-width: 1280px;
  --max-width-text: 720px;
  --max-width-narrow: 600px;
  --gutter: 2rem;
}

/* ============================================================
   Reset & base
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg);
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1, 'ss01' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 350;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
  font-family: var(--font-sans);
  letter-spacing: -0.005em;
}

p {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text-primary);
  margin-bottom: 1.25rem;
  max-width: 65ch;
}

p.lede {
  font-size: 1.375rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
  font-weight: 350;
  max-width: 38ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 500;
}

.eyebrow-line {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow-line::before {
  display: none;
}

.serif-display {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
}

/* ============================================================
   Layout primitives
   ============================================================ */

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

.container-text {
  max-width: var(--max-width-text);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.section-loose {
  padding: 6rem 0;
}

.section-dark {
  background: var(--color-surface-dark);
  color: var(--color-text-on-dark);
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--color-text-on-dark);
}

.section-dark p {
  color: var(--color-text-on-dark);
}

.section-dark .eyebrow {
  color: var(--color-text-on-dark-muted);
}

.section-dark .eyebrow-line::before {
  background: var(--color-text-on-dark-muted);
}

.divider-line {
  height: 1px;
  background: var(--color-divider);
  margin: var(--space-5) 0;
}

.section-dark .divider-line {
  background: var(--color-divider-dark);
}

/* ============================================================
   Header / Navigation
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 246, 241, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--color-divider);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.brand::before {
  content: '';
  width: 30px;
  height: 30px;
  align-self: center;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><rect x='9' y='9' width='82' height='82' fill='none' stroke='%2334503D' stroke-width='4'/><rect x='15' y='15' width='70' height='70' fill='none' stroke='%2334503D' stroke-width='1.2'/><text x='50' y='63' text-anchor='middle' font-family='Georgia,serif' font-size='32' fill='%2334503D'>INV</text></svg>") no-repeat center / contain;
}

.brand-mark {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-left: 0.5rem;
  position: relative;
  top: -0.15rem;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 450;
  letter-spacing: 0.005em;
  color: var(--color-text-secondary);
  position: relative;
  padding: 0.25rem 0;
}

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

.nav-links a.active {
  color: var(--color-text-primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-text-primary);
}

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  position: absolute;
  left: 4px;
  right: 4px;
  height: 1px;
  background: var(--color-text-primary);
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.nav-toggle span:nth-child(1) { top: 11px; }
.nav-toggle span:nth-child(2) { top: 16px; }
.nav-toggle span:nth-child(3) { top: 21px; }

.nav-toggle.open span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

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

.hero {
  min-height: 80vh;
  padding-top: 6rem;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}

.hero-page {
  min-height: 60vh;
  padding-top: 8rem;
  padding-bottom: 4rem;
  display: flex;
  align-items: flex-end;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(26, 26, 26, 0.25) 0%,
    rgba(26, 26, 26, 0.55) 60%,
    rgba(26, 26, 26, 0.85) 100%);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-6) var(--gutter);
  width: 100%;
  color: var(--color-text-on-dark);
}

.hero-content .eyebrow {
  color: rgba(248, 246, 241, 0.7);
  margin-bottom: 1.5rem;
  display: block;
}

.hero-content h1 {
  color: var(--color-text-on-dark);
  max-width: 18ch;
  margin-bottom: 1.5rem;
}

.hero-content .lede {
  color: rgba(248, 246, 241, 0.85);
  max-width: 42ch;
}

.hero-meta {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(248, 246, 241, 0.2);
  max-width: 720px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(248, 246, 241, 0.7);
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-meta-label {
  color: rgba(248, 246, 241, 0.5);
}

.hero-meta-value {
  color: var(--color-text-on-dark);
  font-size: 0.875rem;
}

/* Hero placeholder (when no image yet) - generative gradient with depth */
.hero-placeholder {
  background:
    radial-gradient(ellipse at 20% 80%, #3A4540 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, #2A2620 0%, transparent 60%),
    linear-gradient(135deg, #1A1A1A 0%, #2A2A28 50%, #1A1814 100%);
}

.hero-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg,
      transparent 0,
      transparent 80px,
      rgba(255,255,255,0.015) 80px,
      rgba(255,255,255,0.015) 81px);
  pointer-events: none;
}

.hero-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 60%, rgba(150,170,150,0.06) 0%, transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(200,180,140,0.04) 0%, transparent 40%);
  pointer-events: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: 0;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(248, 246, 241, 0.4);
  color: var(--color-text-on-dark);
}

.btn-ghost:hover {
  background: var(--color-text-on-dark);
  border-color: var(--color-text-on-dark);
  color: var(--color-text-primary);
}

.btn-primary {
  background: var(--color-text-primary);
  color: var(--color-text-on-dark);
  border-color: var(--color-text-primary);
}

.btn-primary:hover {
  background: transparent;
  color: var(--color-text-primary);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-text-primary);
  color: var(--color-text-primary);
}

.btn-outline:hover {
  background: var(--color-text-primary);
  color: var(--color-text-on-dark);
}

.btn .arrow {
  transition: transform 0.25s ease;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-primary);
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  transition: gap 0.25s ease;
}

.link-arrow:hover {
  gap: 0.85rem;
}

/* ============================================================
   Page header (for inner pages)
   ============================================================ */

.page-header {
  padding: 6rem 0 3rem;
  border-bottom: 1px solid var(--color-divider);
}

.page-header .eyebrow {
  margin-bottom: 1.5rem;
  display: block;
}

.page-header h1 {
  margin-bottom: 1.5rem;
  max-width: 18ch;
}

.page-header .lede {
  max-width: 44ch;
}

/* ============================================================
   Two-column layout
   ============================================================ */

.two-col {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
}

.two-col-narrow {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.col-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
  padding-top: 0.5rem;
}

/* ============================================================
   Pillars grid (3-column for homepage)
   ============================================================ */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--color-divider);
}

.pillar {
  position: relative;
}

.pillar-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  display: block;
}

.pillar h3 {
  margin-bottom: 1rem;
}

/* ============================================================
   Featured work cards
   ============================================================ */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 4rem;
}

.work-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

.work-card:hover {
  transform: translateY(-4px);
}

.work-card-image {
  aspect-ratio: 4/3;
  background: #2A2A28;
  margin-bottom: 1.75rem;
  overflow: hidden;
  position: relative;
}

.work-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.work-card-image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, transparent 0, transparent 40px, rgba(255,255,255,0.02) 40px, rgba(255,255,255,0.02) 41px),
    repeating-linear-gradient(0deg, transparent 0, transparent 40px, rgba(255,255,255,0.02) 40px, rgba(255,255,255,0.02) 41px);
}

.work-card-image .placeholder-1 {
  background:
    radial-gradient(ellipse at 30% 70%, #4A5048 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, #6B6855 0%, transparent 50%),
    linear-gradient(135deg, #3A3A36 0%, #5A5650 100%);
  width: 100%;
  height: 100%;
}

.work-card-image .placeholder-2 {
  background:
    radial-gradient(ellipse at 60% 40%, #5A6058 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, #404844 0%, transparent 60%),
    linear-gradient(160deg, #2E322F 0%, #4A4E4B 100%);
  width: 100%;
  height: 100%;
}

.work-card-image .placeholder-3 {
  background:
    radial-gradient(ellipse at 50% 50%, #6A6258 0%, transparent 50%),
    linear-gradient(135deg, #463E36 0%, #6B6055 100%);
  width: 100%;
  height: 100%;
}

.work-card-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.section-dark .work-card-meta {
  color: var(--color-text-on-dark-muted);
}

.work-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.work-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.section-dark .work-card p {
  color: var(--color-text-on-dark-muted);
}

/* ============================================================
   Track record detail
   ============================================================ */

.deal {
  padding: 5rem 0;
  border-bottom: 1px solid var(--color-divider);
}

.deal:last-of-type {
  border-bottom: none;
}

.deal-header {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: end;
}

.deal-header h2 {
  margin-bottom: 0;
}

.deal-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: right;
}

.deal-status .status-active {
  color: var(--color-accent);
}

.deal-image {
  aspect-ratio: 16/8;
  background: #2A2A28;
  margin-bottom: 3rem;
  overflow: hidden;
  position: relative;
}

.deal-image-placeholder {
  width: 100%;
  height: 100%;
}

.deal-image-placeholder.placeholder-1 {
  background:
    radial-gradient(ellipse at 30% 70%, #4A5048 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, #6B6855 0%, transparent 50%),
    linear-gradient(135deg, #3A3A36 0%, #5A5650 100%);
}

.deal-image-placeholder.placeholder-2 {
  background:
    radial-gradient(ellipse at 60% 40%, #5A6058 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, #404844 0%, transparent 60%),
    linear-gradient(160deg, #2E322F 0%, #4A4E4B 100%);
}

.deal-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.deal-meta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.deal-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-divider);
}

.deal-meta-item:last-child {
  border-bottom: none;
}

.deal-meta-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.deal-meta-value {
  font-size: 0.95rem;
  color: var(--color-text-primary);
}

/* ============================================================
   Focus areas (Investment Focus page)
   ============================================================ */

.focus-area {
  padding: 5rem 0;
  border-bottom: 1px solid var(--color-divider);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.focus-area:last-of-type {
  border-bottom: none;
}

.focus-area-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.focus-area h2 {
  font-size: 2rem;
  margin-bottom: 0;
}

.focus-typical {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-divider);
}

.focus-typical-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.focus-typical-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.focus-typical-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  font-size: 0.95rem;
}

.focus-typical-list .label {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* ============================================================
   Principles grid
   ============================================================ */

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 4rem;
  border-top: 1px solid var(--color-divider);
  border-left: 1px solid var(--color-divider);
}

.principle {
  padding: 3rem 2.5rem;
  border-right: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.principle h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.principle p {
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* ============================================================
   Team
   ============================================================ */

.team-member {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 4rem;
  padding: 4rem 0;
  border-bottom: 1px solid var(--color-divider);
  align-items: start;
}

.team-photo {
  aspect-ratio: 4/5;
  background-image:
    url("isaac.jpg"),
    radial-gradient(ellipse at 50% 30%, #5A5650 0%, transparent 60%),
    linear-gradient(180deg, #3A3632 0%, #2A2622 100%);
  background-size: cover, auto, auto;
  background-position: center top, center, center;
  background-repeat: no-repeat;
  position: relative;
}

.team-info .eyebrow {
  margin-bottom: 1.5rem;
  display: block;
}

.team-info h2 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.team-info .role {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  display: block;
}

.team-contact {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-divider);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--color-text-secondary);
}

/* ============================================================
   Contact form
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  margin-top: 3rem;
}

.contact-info h3 {
  margin-bottom: 2rem;
}

.contact-info-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-divider);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.contact-info-value {
  font-size: 1.0625rem;
  color: var(--color-text-primary);
}

.contact-info-value a:hover {
  opacity: 0.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-divider);
  padding: 0.75rem 0;
  color: var(--color-text-primary);
  transition: border-color 0.2s ease;
  border-radius: 0;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--color-text-primary);
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231A1A1A' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 2rem;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
  border: 1px solid var(--color-divider);
  padding: 1rem;
}

.form-field textarea:focus {
  border-color: var(--color-text-primary);
}

.form-submit {
  align-self: flex-start;
  margin-top: 0.75rem;
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
  max-width: 50ch;
  font-style: italic;
  font-family: var(--font-serif);
}

.form-success {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-divider);
  padding: 2rem;
  font-size: 1rem;
  color: var(--color-text-primary);
  display: none;
}

.form-success.show {
  display: block;
}

/* Hidden honeypot field - invisible to people, removed from the tab order. */
.form-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Inline error shown when a submission fails. */
.form-error {
  display: none;
  padding: 0.85rem 1.1rem;
  border: 1px solid #8C3A2E;
  background: rgba(140, 58, 46, 0.06);
  color: #8C3A2E;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.form-error.show {
  display: block;
}

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

.site-footer {
  background: var(--color-surface-darker);
  color: var(--color-text-on-dark);
  padding: var(--space-7) 0 var(--space-4);
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text-on-dark);
  margin-bottom: 1.5rem;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-text-on-dark-muted);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 30ch;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-on-dark-muted);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  font-size: 0.95rem;
  color: var(--color-text-on-dark);
  opacity: 0.85;
}

.footer-col a:hover {
  opacity: 1;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem var(--gutter) 0;
  border-top: 1px solid rgba(248, 246, 241, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--color-text-on-dark-muted);
}

.footer-bottom a {
  opacity: 0.7;
}

.footer-bottom a:hover {
  opacity: 1;
}

/* ============================================================
   CTA section (closing CTA on most pages)
   ============================================================ */

.cta-section {
  background: var(--color-bg);
  padding: var(--space-8) 0;
  text-align: center;
  border-top: 1px solid var(--color-divider);
}

.cta-section .eyebrow {
  margin-bottom: 1.5rem;
  display: block;
}

.cta-section h2 {
  max-width: 18ch;
  margin: 0 auto 1.5rem;
}

.cta-section .lede {
  margin: 0 auto 2.5rem;
  max-width: 44ch;
  text-align: center;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

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

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.2, 0, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

@media (max-width: 980px) {
  .pillars { grid-template-columns: 1fr; gap: 3rem; }
  .work-grid { grid-template-columns: 1fr; gap: 3rem; }
  .two-col, .two-col-narrow { grid-template-columns: 1fr; gap: 2rem; }
  .deal-header { grid-template-columns: 1fr; gap: 1rem; }
  .deal-status { text-align: left; }
  .deal-grid { grid-template-columns: 1fr; gap: 2rem; }
  .focus-area { grid-template-columns: 1fr; gap: 2rem; }
  .team-member { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .principles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }

  .nav-links {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid var(--color-divider);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.2s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
    border-top: 1px solid var(--color-divider);
  }

  .nav-links a {
    display: block;
    padding: 1.25rem var(--gutter);
    width: 100%;
  }

  .nav-toggle {
    display: block;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .section { padding: var(--space-6) 0; }
  .section-loose { padding: var(--space-7) 0; }
  .page-header { padding: 7rem 0 3rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .deal { padding: 3rem 0; }
  .focus-area { padding: 3rem 0; }
  .team-member { padding: 3rem 0; }
}

/* ============================================================
   Texture overlay (grain, very subtle)
   ============================================