:root {
  --ink: #171210;
  --muted: #5e524d;
  --paper: #f6efe5;
  --paper-deep: #ead9c4;
  --charcoal: #201817;
  --charcoal-soft: #312624;
  --red: #bb3326;
  --red-dark: #7f2019;
  --cream: #fff9ef;
  --line: rgba(32, 24, 23, 0.16);
  --shadow: 0 28px 80px rgba(25, 17, 12, 0.18);
  --sans: "DM Sans", system-ui, sans-serif;
  --serif: "Libre Baskerville", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

main,
.site-header,
.site-footer {
  margin-inline: auto;
  max-width: 1680px;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(246, 239, 229, 0.88);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  left: 0;
  padding: 18px clamp(20px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 20;
}

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

.brand-mark {
  align-items: center;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand-mark img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.brand-text strong,
.brand-text small {
  display: block;
  line-height: 1.05;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  margin-top: 3px;
  text-transform: uppercase;
}

.brand-beta {
  align-self: center;
  background: var(--paper-deep);
  border-radius: 999px;
  color: var(--red-dark);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-left: 6px;
  padding: 4px 10px;
  text-transform: uppercase;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  justify-content: center;
}

nav a,
.nav-cta {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover,
.nav-cta:hover,
nav a:focus-visible,
.nav-cta:focus-visible {
  color: var(--red-dark);
}

.nav-cta {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  padding: 10px 16px;
}

.hero {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  min-height: min(880px, calc(100vh - 80px));
  padding: clamp(48px, 8vw, 112px) clamp(20px, 5vw, 72px);
}

.hero-copy {
  align-self: center;
  max-width: 640px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--red-dark);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.2rem);
}

h2 {
  font-size: clamp(2rem, 4.2vw, 4.2rem);
}

.split h2 {
  font-size: clamp(1.85rem, 3.4vw, 3.3rem);
}

.lede {
  color: var(--charcoal-soft);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.55;
  margin: 28px 0 0;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--red);
  color: var(--cream);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--red-dark);
}

.button.ghost {
  border: 1px solid var(--line);
}

.hero-image {
  align-self: stretch;
  border-radius: 38px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  grid-template-columns: 1.15fr 0.85fr;
  max-height: 760px;
  min-height: 520px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

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

.hero-image img:first-child {
  grid-row: span 2;
}

.section {
  padding: clamp(48px, 6.5vw, 88px) clamp(20px, 5vw, 72px);
}

.split {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: clamp(24px, 4.5vw, 64px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.body-large {
  color: var(--charcoal-soft);
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
  line-height: 1.34;
  margin: 0;
}

.section-heading {
  margin-bottom: 34px;
  max-width: 820px;
}

.path-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.path-grid > * {
  flex: 0 1 calc(33.333% - 11px);
  min-width: 260px;
}

.path-card {
  background: rgba(255, 249, 239, 0.58);
  border: 1px solid var(--line);
  border-radius: 30px;
  min-height: 260px;
  padding: 28px;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.path-card:hover,
.path-card:focus-visible {
  background: var(--cream);
  border-color: var(--red);
  box-shadow: 0 0 0 2px var(--red), 0 18px 40px rgba(187, 51, 38, 0.18);
  transform: translateY(-4px);
}

.path-card span {
  color: var(--muted);
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.path-card strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.path-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 18px 0 0;
}

.section.feature-band {
  align-items: center;
  background: var(--charcoal);
  border-radius: 30px;
  color: var(--cream);
  display: flex;
  gap: 36px;
  justify-content: space-between;
  margin-inline: clamp(20px, 5vw, 72px);
  margin-bottom: clamp(20px, 3.5vw, 44px);
  padding: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 56px);
}

.feature-band .eyebrow {
  color: #f2a79f;
}

.feature-band h2 {
  max-width: 720px;
}

.feature-band p {
  max-width: 620px;
}

.subpage-hero {
  background: linear-gradient(135deg, var(--charcoal), #3c211c);
  color: var(--cream);
  padding: clamp(64px, 10vw, 128px) clamp(20px, 5vw, 72px);
}

.subpage-hero.compact {
  padding-block: clamp(56px, 7vw, 92px);
}

.subpage-hero h1 {
  max-width: 960px;
}

.subpage-hero p:not(.eyebrow) {
  color: rgba(255, 249, 239, 0.92);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.5;
  max-width: 760px;
}

.subpage-hero .eyebrow {
  color: #f2a79f;
}

.subpage-hero p.team-role {
  color: var(--cream);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.subpage-hero p.beta-caveat {
  color: var(--charcoal-soft);
}

.note-panel,
.source-list {
  background: rgba(255, 249, 239, 0.58);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
}

.note-panel ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.note-panel p,
.note-panel li,
.source-list li {
  color: var(--muted);
  line-height: 1.55;
}

.info-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  background: rgba(255, 249, 239, 0.58);
  border: 1px solid var(--line);
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 28px;
}

.info-card span {
  color: var(--red-dark);
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.info-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

.info-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 18px 0 0;
}

.info-card a {
  color: var(--red-dark);
  font-weight: 800;
  margin-top: auto;
  padding-top: 24px;
}

.team-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-card {
  background: rgba(255, 249, 239, 0.58);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: block;
  overflow: hidden;
  padding: 14px 14px 22px;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

a.team-card {
  cursor: pointer;
}

a.team-card:hover,
a.team-card:focus-visible {
  background: var(--cream);
  border-color: var(--red);
  box-shadow: 0 0 0 2px var(--red), 0 18px 40px rgba(187, 51, 38, 0.18);
  transform: translateY(-4px);
}

.team-photo {
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  display: block;
  overflow: hidden;
}

.team-photo img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.team-photo.is-placeholder img {
  filter: saturate(0.65);
  opacity: 0.85;
}

.team-card strong {
  color: var(--ink);
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: 16px;
}

.team-card .team-role {
  color: var(--red-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  margin: 6px 0 0;
  text-transform: uppercase;
}

.team-card .team-bio {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 10px 0 0;
}

.work-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-card {
  background: rgba(255, 249, 239, 0.58);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px;
}

.work-card .work-network {
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-card h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 12px 0 0;
}

.work-card .work-role {
  color: var(--muted);
  line-height: 1.55;
  margin: 14px 0 0;
}

.work-card .work-awards {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.5;
  margin: 12px 0 0;
}

.work-card a {
  color: var(--red-dark);
  font-weight: 800;
  margin-top: auto;
  padding-top: 20px;
}

.site-footer {
  align-items: center;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  justify-content: space-between;
  padding: 32px clamp(20px, 5vw, 72px);
}

.site-footer p {
  color: rgba(255, 249, 239, 0.68);
  margin: 6px 0 0;
}

.site-footer a,
.footer-actions a {
  color: var(--cream);
  font-weight: 800;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

.cookie-banner {
  background: rgba(246, 239, 229, 0.97);
  border-top: 1px solid var(--line);
  bottom: 0;
  box-shadow: 0 -12px 40px rgba(25, 17, 12, 0.12);
  left: 0;
  padding: 16px clamp(18px, 4vw, 48px);
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  position: fixed;
  right: 0;
  z-index: 120;
}

.cookie-banner-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
}

.cookie-banner p {
  color: var(--muted);
  flex: 1 1 240px;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.cookie-banner a {
  color: var(--red-dark);
  font-weight: 700;
}

.cookie-banner-actions {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

.cookie-banner .button.ghost {
  border-color: var(--line);
  color: var(--ink);
}

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

.reveal {
  animation: fade-up 620ms ease both;
}

@keyframes fade-up {
  from {
    opacity: 0.72;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    display: block;
  }

  .hero-image {
    margin-top: 40px;
    min-height: 420px;
  }

  .path-grid > * {
    flex-basis: calc(50% - 8px);
  }

  .info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  nav {
    justify-content: flex-start;
  }

  .path-grid > * {
    flex-basis: 100%;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    border-radius: 24px;
    grid-template-columns: 1fr;
  }

  .hero-image img:first-child {
    grid-row: auto;
  }
}

/* Beta caveat pill — per-page draft warning above hero CTA */
.beta-caveat {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--charcoal-soft);
  display: inline-block;
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.5;
  margin: 0 0 18px;
  max-width: 640px;
  padding: 10px 16px;
}

/* Matterport room link list — used inside .note-panel */
.matterport-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.matterport-list li {
  border-left: 3px solid var(--red);
  padding-left: 14px;
}

.matterport-list a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(187, 51, 38, 0.4);
  text-underline-offset: 4px;
}

.matterport-list a:hover {
  text-decoration-color: var(--red);
}

/* Legal pages (privacy policy, terms of use) */
.legal-prose {
  border-top: 1px solid var(--line);
}

.legal-prose-inner {
  max-width: 760px;
}

.legal-prose h2 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  margin: 40px 0 12px;
}

.legal-prose-inner > h2:first-child {
  margin-top: 0;
}

.legal-prose p {
  color: var(--charcoal-soft);
  line-height: 1.6;
  margin: 0 0 14px;
}

.legal-prose ul {
  color: var(--charcoal-soft);
  line-height: 1.6;
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal-prose li {
  margin: 0 0 8px;
}

.legal-prose a {
  text-decoration: underline;
  text-decoration-color: rgba(187, 51, 38, 0.4);
  text-underline-offset: 3px;
}

.legal-prose a:hover {
  text-decoration-color: var(--red);
}

/* Footer legal links row */
.site-footer {
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal {
  border-top: 1px solid rgba(255, 249, 239, 0.16);
  display: flex;
  flex-basis: 100%;
  gap: 18px;
  padding-top: 16px;
}

.footer-legal a {
  color: rgba(255, 249, 239, 0.68);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal a:hover {
  color: var(--cream);
}
