/* Vayden Foster — fog, navy & copper
   Arch-framed portraits · sticky chapter photos · Bodoni display */

:root {
  --fog: #e6eaee;
  --fog-2: #dce2e8;
  --mist: #f3f5f7;
  --navy: #13202d;
  --navy-2: #1d2f41;
  --slate: #5a6a7a;
  --slate-2: #8494a3;
  --line: #c6cfd8;
  --copper: #b0603a;
  --copper-2: #cf8a62;
  --cream: #f1ebe3;

  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --display: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--fog);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }

h1, h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
}
h1 em, h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--copper);
}

/* ── Top bar ──────────────────────────────────── */
.topbar {
  position: fixed;
  top: 1rem;
  left: var(--pad);
  right: var(--pad);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}
.monogram span {
  font-style: italic;
  color: var(--copper-2);
}

.pill-nav {
  display: flex;
  gap: 0.25rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--mist) 80%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  box-shadow: 0 10px 30px -18px rgba(19, 32, 45, 0.35);
}
.pill-nav a {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--slate);
  transition: background 0.2s, color 0.2s;
}
.pill-nav a:hover {
  background: var(--navy);
  color: var(--cream);
}

.menu-check {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.menu-btn { display: none; }

/* ── Hero ─────────────────────────────────────── */
.hero {
  min-height: min(100dvh, 62rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: 7rem var(--pad) 4rem;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--copper);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(3.75rem, 8.5vw, 8rem);
  line-height: 0.92;
  margin-bottom: 2rem;
}
.hero h1 em { display: block; padding-left: 0.6em; }

.hero-sign {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  color: var(--navy-2);
  max-width: 34ch;
  padding-left: 1.25rem;
  border-left: 2px solid var(--copper);
  margin-bottom: 2.5rem;
}

.id-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--mist);
  border-radius: 1.25rem;
  overflow: hidden;
  max-width: 34rem;
  box-shadow: 0 24px 50px -32px rgba(19, 32, 45, 0.45);
}
.id-card div {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--fog-2);
}
.id-card div:nth-child(odd) { border-right: 1px solid var(--fog-2); }
.id-card div:last-child {
  grid-column: 1 / -1;
  border-right: none;
  border-bottom: none;
  background: var(--navy);
  color: var(--cream);
}
.id-card dt {
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--slate-2);
  margin-bottom: 0.2rem;
}
.id-card dd {
  font-size: 0.95rem;
  font-weight: 500;
}
.id-card div:last-child dt { color: var(--copper-2); }

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 30rem);
}

.arch {
  border-radius: 999px 999px 1.25rem 1.25rem;
  overflow: hidden;
  background: var(--fog-2);
}
.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arch--hero {
  aspect-ratio: 4 / 5.4;
  outline: 1px solid var(--copper);
  outline-offset: 0.85rem;
}
.arch--hero img { object-position: center 18%; }

.hero-seal {
  position: absolute;
  left: -1.5rem;
  bottom: 2.5rem;
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem 1.2rem;
  border-radius: 1rem;
  background: var(--copper);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  box-shadow: 0 18px 36px -20px rgba(176, 96, 58, 0.8);
}

/* ── Chapters ─────────────────────────────────── */
.chapter {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(4rem, 9vw, 8rem) var(--pad);
  align-items: start;
}
.chapter--tint { background: var(--fog-2); }
.chapter--flip .chapter-media { order: 2; }

.chapter-media {
  position: sticky;
  top: 6rem;
}
.chapter-media .arch {
  height: min(78vh, 42rem);
}
.chapter-media img { object-position: center 20%; }

.chapter-intro {
  position: sticky;
  top: 7rem;
}
.chapter--text .chapter-body { padding-top: 2.1rem; }

.chapter-no {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--copper);
  margin-bottom: 1rem;
}

.chapter-body h2,
.chapter-intro h2 {
  font-size: clamp(2.3rem, 4.5vw, 4rem);
  line-height: 1.02;
  margin-bottom: 2rem;
  max-width: 16ch;
}

.chapter-body > p {
  color: var(--slate);
  max-width: 60ch;
  margin-bottom: 1rem;
}
.chapter-body > p.lead {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.45;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 2.25rem;
  max-width: 34rem;
}
.pillars li {
  position: relative;
  padding: 1rem 1rem 1rem 2.6rem;
  border-radius: 0.9rem;
  background: var(--mist);
  font-size: 0.9rem;
  font-weight: 500;
}
.pillars li::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 50%;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px 999px 0 0;
  background: var(--copper);
  transform: translateY(-50%);
}

/* Education */
.school {
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: var(--mist);
  margin-bottom: 1.25rem;
}
.school-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}
.school-years {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--copper);
}
.school-degree {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate-2);
  align-self: center;
}
.school h3 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}
.school p {
  color: var(--slate);
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}
.school p:last-child { margin-bottom: 0; }

/* Career */
.roles { border-top: 1px solid var(--line); }
.role {
  display: grid;
  grid-template-columns: 9rem 1fr;
  column-gap: 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.role-years {
  grid-row: 1 / 4;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--copper);
}
.role h3 {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.2;
}
.role-sub {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-2);
  margin: 0.35rem 0 0.7rem;
}
.role p:last-child {
  color: var(--slate);
  font-size: 0.95rem;
}
.role--now {
  margin-top: 1rem;
  padding: 1.6rem;
  border-radius: 1.25rem;
  border-bottom: none;
  background: var(--navy);
  color: var(--cream);
}
.role--now .role-years { color: var(--copper-2); }
.role--now .role-sub { color: var(--slate-2); }
.role--now p:last-child { color: color-mix(in srgb, var(--cream) 85%, transparent); }

/* Focus */
.constraints {
  margin-top: 2.25rem;
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: var(--navy);
  color: var(--cream);
}
.constraints-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--copper-2);
  margin-bottom: 1.25rem;
}
.constraints ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.6rem;
}
.constraints li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: 0.8rem;
  background: var(--navy-2);
  font-family: var(--display);
  font-size: 1.1rem;
}
.constraints li span {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--copper-2);
}

/* ── Philosophy ───────────────────────────────── */
.philosophy {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(4.5rem, 10vw, 9rem) var(--pad);
}
.chapter-no--light { color: var(--copper-2); }

.philosophy h2 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1;
  max-width: 14ch;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.philosophy h2 em { color: var(--copper-2); }

.philosophy-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.philosophy-text p {
  color: color-mix(in srgb, var(--cream) 80%, transparent);
  margin-bottom: 1.25rem;
  max-width: 54ch;
}
.philosophy-text p:first-child {
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.5;
  color: var(--cream);
}

.maxims li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid color-mix(in srgb, var(--cream) 18%, transparent);
}
.maxims li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--cream) 18%, transparent); }
.maxim-n {
  font-family: var(--display);
  font-style: italic;
  font-size: 3.25rem;
  line-height: 1;
  color: var(--copper-2);
}
.maxims p {
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  line-height: 1.35;
}
.maxims em {
  color: color-mix(in srgb, var(--cream) 70%, transparent);
}

/* ── Milestones ───────────────────────────────── */
.milestones {
  padding: clamp(4.5rem, 9vw, 8rem) var(--pad);
}
.milestones-head h2 {
  font-size: clamp(2.3rem, 4.5vw, 4rem);
  line-height: 1.05;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.steps li {
  position: relative;
  padding: 1.5rem 1.25rem 1.4rem;
  border-radius: 1.25rem 1.25rem 0.5rem 0.5rem;
  background: var(--mist);
  transition: transform 0.3s ease, background 0.3s ease;
}
.steps li:hover {
  transform: translateY(-4px);
  background: #fff;
}
.step-year {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 500;
  line-height: 1.1;
}
.step-age {
  display: inline-block;
  margin: 0.5rem 0 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--fog-2);
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--copper);
}
.steps p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--slate);
}
.steps .step--now {
  background: var(--copper);
  color: var(--cream);
}
.steps .step--now:hover { background: var(--copper); }
.step--now .step-age { background: rgba(255, 255, 255, 0.18); color: var(--cream); }
.step--now p { color: color-mix(in srgb, var(--cream) 90%, transparent); }

/* ── Footer ───────────────────────────────────── */
.footer {
  background: var(--navy);
  color: var(--cream);
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) var(--pad) 2.5rem;
}
.footer-name {
  font-family: var(--display);
  font-size: clamp(2.75rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.footer-name em { font-style: italic; color: var(--copper-2); }
.footer-sign {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: color-mix(in srgb, var(--cream) 80%, transparent);
  max-width: 40ch;
  margin: 0 auto 3rem;
}
.footer-meta {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--slate-2);
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--cream) 15%, transparent);
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .menu-btn {
    display: grid;
    place-content: center;
    gap: 6px;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--mist);
    border: 1px solid var(--line);
    cursor: pointer;
  }
  .menu-btn span {
    display: block;
    width: 1.1rem;
    height: 1.5px;
    background: var(--navy);
    transition: transform 0.25s ease;
  }
  .menu-check:checked + .menu-btn span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-check:checked + .menu-btn span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .menu-check:focus-visible + .menu-btn { outline: 2px solid var(--copper); outline-offset: 2px; }

  .pill-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    flex-direction: column;
    min-width: 13rem;
    padding: 0.5rem;
    border-radius: 1.25rem;
    background: var(--mist);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .menu-check:checked ~ .pill-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .pill-nav a { padding: 0.75rem 1rem; font-size: 0.95rem; }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 6rem;
  }
  .hero-visual { order: -1; width: min(100%, 24rem); }
  .hero-seal { left: -0.5rem; bottom: 1.5rem; }

  .chapter {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .chapter--flip .chapter-media { order: 0; }
  .chapter-media,
  .chapter-intro { position: static; }
  .chapter--text { gap: 0; }
  .chapter--text .chapter-body { padding-top: 0; }
  .chapter-media .arch {
    height: auto;
    aspect-ratio: 4 / 4.6;
    max-width: 26rem;
  }

  .philosophy-cols { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar { top: 0.75rem; }
  .monogram, .menu-btn { width: 2.75rem; height: 2.75rem; }

  .hero h1 { font-size: clamp(3.25rem, 16vw, 4.5rem); }
  .id-card { grid-template-columns: 1fr; }
  .id-card div:nth-child(odd) { border-right: none; }
  .arch--hero { outline-offset: 0.5rem; }

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

  .school { padding: 1.35rem; }

  .role { grid-template-columns: 1fr; }
  .role-years { grid-row: auto; margin-bottom: 0.25rem; }
  .role--now { padding: 1.35rem; }

  .maxims li { grid-template-columns: 2.75rem 1fr; }
  .maxim-n { font-size: 2.5rem; }

  .steps { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
  .steps li { padding: 1.15rem 1rem; }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .steps li { transition: none; }
}
