:root {
  --ink: #07111f;
  --ink-soft: #122237;
  --paper: #f3f1eb;
  --white: #fff;
  --gold: #c8a96b;
  --gold-light: #e7d5ac;
  --muted: #66707d;
  --line: rgba(7, 17, 31, .14);
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: -5rem;
  padding: .7rem 1rem;
  background: var(--white);
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 clamp(1.2rem, 4vw, 4rem);
  color: var(--white);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: rgba(7, 17, 31, .94);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  font-size: .93rem;
  font-weight: 650;
  letter-spacing: .03em;
}
.brand-mark {
  display: grid;
  width: 38px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .35);
  color: var(--gold-light);
  font-size: .77rem;
}
.site-nav { display: flex; gap: 2rem; }
.site-nav a {
  position: relative;
  text-decoration: none;
  font-size: .84rem;
  letter-spacing: .05em;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.4rem;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .2s;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}
.menu-button {
  display: none;
  border: 0;
  padding: .5rem;
  background: transparent;
}
.menu-button span {
  display: block;
  width: 26px;
  height: 1px;
  margin: 7px 0;
  background: white;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, .68fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6.5rem);
  overflow: hidden;
  padding: 9rem max(6vw, calc((100vw - var(--content)) / 2)) 5rem;
  background:
    radial-gradient(circle at 78% 20%, rgba(200, 169, 107, .18), transparent 27rem),
    linear-gradient(130deg, var(--ink) 0%, #0b1a2c 62%, #112944 100%);
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to right, black, transparent 80%);
}
.hero-copy,
.portrait { position: relative; z-index: 1; }
.eyebrow {
  margin: 0 0 1.15rem;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1,
h2,
h3 { margin-top: 0; line-height: 1.05; }
h1 {
  max-width: 850px;
  margin-bottom: 1.6rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.25rem, 7vw, 6.9rem);
  font-weight: 400;
  letter-spacing: -.05em;
}
h1 em { color: var(--gold-light); font-weight: 400; }
.lead {
  max-width: 670px;
  margin: 0 0 2.3rem;
  color: #c8d0da;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, .28);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .03em;
  transition: transform .2s, background .2s, border-color .2s;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}
.button-secondary:hover { border-color: var(--gold); }

.portrait {
  margin: 0;
  border: 1px solid rgba(231, 213, 172, .32);
  background: #101d2d;
  box-shadow: 35px 35px 0 rgba(0, 0, 0, .12);
}
.portrait::before,
.portrait::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-color: var(--gold);
  opacity: .8;
}
.portrait::before {
  left: -1px;
  top: -1px;
  border-left: 2px solid;
  border-top: 2px solid;
}
.portrait::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}
.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  filter: saturate(.84) contrast(1.03);
}
.portrait figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.8rem 1.1rem 1rem;
  background: linear-gradient(transparent, rgba(7, 17, 31, .88));
  color: #dfe5eb;
  font-size: .71rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-index {
  position: absolute;
  right: 2.4rem;
  bottom: 1rem;
  margin: 0;
  color: rgba(255, 255, 255, .08);
  font: 12rem/1 Georgia, serif;
}

.section {
  padding: clamp(5.5rem, 10vw, 9rem) max(6vw, calc((100vw - var(--content)) / 2));
}
.section-light { background: var(--paper); }
.section-dark { background: var(--ink); color: white; }
.section-heading {
  max-width: 800px;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}
.section-heading h2,
.contact h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5.2vw, 5rem);
  font-weight: 400;
  letter-spacing: -.04em;
}
.profile-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(3rem, 8vw, 8rem);
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}
.large-copy {
  max-width: 690px;
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 3.1vw, 3rem);
  line-height: 1.3;
}
.profile-copy { color: var(--muted); }
.profile-copy p:first-child { margin-top: 0; }
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 2rem;
}
.profile-tags span {
  padding: .45rem .75rem;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .76rem;
  letter-spacing: .04em;
}

.education-section { overflow: hidden; }
.education-layout {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1fr);
  align-items: stretch;
}
.education-photo {
  position: relative;
  min-height: 560px;
  margin: 0;
  overflow: hidden;
}
.education-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 62%, rgba(7, 17, 31, .35));
  pointer-events: none;
}
.education-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}
.education-card {
  position: relative;
  display: grid;
  grid-template-columns: .36fr 1fr;
  gap: 2rem;
  align-items: center;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid rgba(255, 255, 255, .13);
  background: linear-gradient(120deg, rgba(255, 255, 255, .055), rgba(200, 169, 107, .07));
}
.education-year {
  align-self: start;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
}
.card-label {
  margin: 0 0 1.2rem;
  color: var(--gold-light);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.education-card h3 {
  margin-bottom: 1rem;
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 400;
}
.education-card p:last-child {
  max-width: 530px;
  margin: 0;
  color: #acb5c0;
  font-size: 1.05rem;
}
.card-number {
  position: absolute;
  right: 2rem;
  bottom: -2rem;
  color: rgba(255, 255, 255, .035);
  font: 10rem/1 Georgia, serif;
}

.heading-row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
}
.heading-row > p {
  max-width: 390px;
  margin: 0 0 .7rem;
  color: var(--muted);
}
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}
.focus-card {
  min-height: 350px;
  padding: 2rem;
  background: var(--paper);
}
.focus-card-accent { background: var(--ink-soft); color: white; }
.focus-number {
  display: block;
  margin-bottom: 7rem;
  color: var(--gold);
  font-size: .78rem;
  letter-spacing: .14em;
}
.focus-card h3 {
  margin-bottom: 1rem;
  font-family: Georgia, serif;
  font-size: 2.1rem;
  font-weight: 400;
}
.focus-card p { color: var(--muted); }
.focus-card-accent p { color: #afbac6; }

.perspective {
  position: relative;
  min-height: min(84vh, 860px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
  color: white;
}
.perspective::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, .82), rgba(7, 17, 31, .18) 65%),
    linear-gradient(0deg, rgba(7, 17, 31, .35), transparent 50%);
}
.perspective > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 43%;
}
.perspective-copy {
  position: relative;
  z-index: 1;
  width: min(100% - 12vw, var(--content));
}
.perspective blockquote {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 1.14;
  letter-spacing: -.035em;
}

.contact {
  position: relative;
  overflow: hidden;
  padding: clamp(5.5rem, 10vw, 9rem) max(6vw, calc((100vw - var(--content)) / 2));
  background: var(--gold-light);
}
.contact h2 { max-width: 900px; }
.contact > p:not(.eyebrow) {
  max-width: 670px;
  margin: 2rem 0 2.8rem;
  font-size: 1.15rem;
}
.contact-form {
  max-width: 940px;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(7, 17, 31, .26);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}
.contact-form label > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .55rem;
  font-size: .82rem;
  font-weight: 720;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-form label b { color: #9b3428; }
.contact-form label small {
  color: #766b58;
  font-size: .66rem;
  font-weight: 550;
  letter-spacing: .08em;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(7, 17, 31, .28);
  border-radius: 0;
  padding: .95rem 1rem;
  background: rgba(255, 255, 255, .44);
  color: var(--ink);
  font: inherit;
  outline: 0;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.contact-form input { min-height: 54px; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--ink);
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 0 0 3px rgba(7, 17, 31, .08);
}
.form-message { grid-column: 1 / -1; }
.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}
.form-consent {
  display: grid !important;
  grid-template-columns: auto 1fr;
  gap: .7rem;
  align-items: start;
  margin-top: 1.4rem;
  cursor: pointer;
}
.form-consent input {
  width: 18px;
  min-height: 18px;
  margin: .15rem 0 0;
  accent-color: var(--ink);
}
.form-consent span {
  display: block !important;
  margin: 0 !important;
  font-size: .82rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1.45;
  text-transform: none !important;
}
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2rem;
}
.form-submit {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  border: 1px solid var(--ink);
  padding: .8rem 1.15rem;
  background: var(--ink);
  color: white;
  font: inherit;
  font-size: .79rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s, background .2s;
}
.form-submit:hover { transform: translateY(-2px); background: var(--ink-soft); }
.form-submit:disabled { cursor: wait; opacity: .65; transform: none; }
.form-privacy {
  margin: 1.3rem 0 0 !important;
  color: #625846;
  font-size: .78rem !important;
}
.form-status {
  min-height: 1.7rem;
  margin: .8rem 0 0 !important;
  font-size: .88rem !important;
  font-weight: 650;
}
.form-status.success { color: #285c3a; }
.form-status.error { color: #8b2f27; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.7rem max(6vw, calc((100vw - var(--content)) / 2));
  background: var(--ink);
  color: #9ca7b4;
  font-size: .82rem;
}
footer a { color: var(--gold-light); text-decoration: none; }

@media (max-width: 900px) {
  .site-header { min-height: 68px; }
  .menu-button { position: relative; z-index: 2; display: block; }
  .site-nav {
    position: fixed;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 1.5rem;
    background: rgba(7, 17, 31, .985);
    opacity: 0;
    visibility: hidden;
    transition: .2s;
  }
  .site-nav.open { opacity: 1; visibility: visible; }
  .site-nav a { font: 2.1rem/1.2 Georgia, serif; }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 8.5rem;
  }
  .portrait {
    width: min(100%, 560px);
    justify-self: center;
    box-shadow: 16px 16px 0 rgba(0, 0, 0, .12);
  }
  .profile-grid,
  .education-layout,
  .education-card { grid-template-columns: 1fr; }
  .education-photo { min-height: 600px; }
  .education-year { margin-bottom: 1rem; }
  .heading-row { display: block; }
  .heading-row > p { margin-top: 1.5rem; }
  .focus-grid { grid-template-columns: 1fr; }
  .focus-card { min-height: 260px; }
  .focus-number { margin-bottom: 4rem; }
}

@media (max-width: 620px) {
  h1 { font-size: 3.15rem; }
  .brand > span:last-child { display: none; }
  .hero-actions .button { width: 100%; }
  .section { padding-top: 5rem; padding-bottom: 5rem; }
  .education-photo { min-height: 470px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-message { grid-column: auto; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .form-submit { width: 100%; }
  .perspective { min-height: 640px; }
  .perspective::after { background: rgba(7, 17, 31, .55); }
  footer { flex-direction: column; gap: .45rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition-duration: .01ms !important; }
}

/* --- Motion & interaction layer ------------------------------------------------ */
.site-loading { overflow: hidden; }
.scroll-progress {
  position: fixed;
  z-index: 80;
  inset: 0 0 auto;
  height: 2px;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}
.page-intro {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--gold-light);
  transition: transform .95s cubic-bezier(.76, 0, .24, 1), visibility .95s;
}
.page-intro span {
  display: grid;
  width: 74px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(231, 213, 172, .45);
  font-family: Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: .08em;
  animation: introPulse 1.05s ease-in-out infinite alternate;
}
body.is-ready .page-intro { transform: translateY(-100%); visibility: hidden; }
@keyframes introPulse { to { transform: scale(1.08); border-color: var(--gold); } }

.hero-copy { isolation: isolate; }
.hero-copy::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  left: -16rem;
  top: -12rem;
  border: 1px solid rgba(200, 169, 107, .08);
  border-radius: 50%;
}
.hero-animate {
  opacity: 0;
  transform: translateY(26px);
}
body.is-ready .hero-animate {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
body.is-ready .hero-animate:nth-child(1) { transition-delay: .22s; }
body.is-ready .hero-animate:nth-child(2) { transition-delay: .31s; }
body.is-ready .hero-animate:nth-child(3) { transition-delay: .42s; }
body.is-ready .hero-animate:nth-child(4) { transition-delay: .53s; }
.hero-portrait {
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(.97);
  transition: opacity 1s .42s ease, transform 1.1s .42s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
body.is-ready .hero-portrait { opacity: 1; }
.hero-portrait img { transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s; }
.hero-portrait:hover img { transform: scale(1.025); filter: saturate(.96) contrast(1.05); }

.scroll-hint {
  position: absolute;
  z-index: 2;
  left: max(6vw, calc((100vw - var(--content)) / 2));
  bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  color: rgba(255,255,255,.52);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.scroll-hint span { width: 34px; height: 1px; background: var(--gold); transform-origin: left; animation: scrollLine 1.8s ease-in-out infinite; }
@keyframes scrollLine { 50% { transform: scaleX(.35); opacity: .5; } }

.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(200, 169, 107, .16);
  border-bottom: 1px solid rgba(200, 169, 107, .16);
  background: var(--ink);
  color: rgba(255,255,255,.54);
}
.marquee-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 1.7rem;
  padding: .92rem 0;
  animation: marquee 28s linear infinite;
  text-transform: uppercase;
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .16em;
}
.marquee-track i { color: var(--gold); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

[data-reveal] .section-heading,
[data-reveal] .profile-grid,
[data-reveal] .education-layout,
[data-reveal] .focus-grid,
[data-reveal] .perspective-copy,
[data-reveal] > .eyebrow,
[data-reveal] > h2,
[data-reveal] > p,
[data-reveal] > form {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s ease, transform 1s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].is-visible .section-heading,
[data-reveal].is-visible .profile-grid,
[data-reveal].is-visible .education-layout,
[data-reveal].is-visible .focus-grid,
[data-reveal].is-visible .perspective-copy,
[data-reveal].is-visible > .eyebrow,
[data-reveal].is-visible > h2,
[data-reveal].is-visible > p,
[data-reveal].is-visible > form { opacity: 1; transform: none; }
[data-reveal].is-visible .profile-grid,
[data-reveal].is-visible .education-layout,
[data-reveal].is-visible .focus-grid,
[data-reveal].is-visible > form { transition-delay: .12s; }

.focus-card {
  position: relative;
  overflow: hidden;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s, background .35s;
  transform-style: preserve-3d;
}
.focus-card::after {
  content: "↗";
  position: absolute;
  right: 1.6rem;
  top: 1.4rem;
  color: var(--gold);
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: .3s ease;
}
.focus-card:hover { z-index: 2; box-shadow: 0 24px 60px rgba(7,17,31,.13); }
.focus-card:hover::after { opacity: 1; transform: none; }
.focus-card h3, .focus-card p, .focus-number { transform: translateZ(22px); }

.profile-tags span { transition: border-color .25s, background .25s, transform .25s; }
.profile-tags span:hover { transform: translateY(-2px); border-color: rgba(200,169,107,.75); background: rgba(200,169,107,.08); }

.perspective > img {
  transform: scale(1.06) translate3d(0, var(--perspective-y, 0px), 0);
  will-change: transform;
}
.perspective-copy { text-shadow: 0 5px 35px rgba(0,0,0,.3); }

.button, .form-submit { position: relative; overflow: hidden; }
.button::before, .form-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.14);
  transform: translateX(-105%) skewX(-18deg);
  transition: transform .48s ease;
}
.button:hover::before, .form-submit:hover::before { transform: translateX(105%) skewX(-18deg); }
.button > *, .form-submit > * { position: relative; z-index: 1; }

@media (max-width: 900px) {
  .scroll-hint { display: none; }
  .marquee-track { animation-duration: 22s; }
}

@media (prefers-reduced-motion: reduce) {
  .page-intro { display: none; }
  .hero-animate, .hero-portrait, [data-reveal] .section-heading,
  [data-reveal] .profile-grid, [data-reveal] .education-layout,
  [data-reveal] .focus-grid, [data-reveal] .perspective-copy,
  [data-reveal] > .eyebrow, [data-reveal] > h2,
  [data-reveal] > p, [data-reveal] > form { opacity: 1 !important; transform: none !important; }
  .marquee-track, .scroll-hint span { animation: none !important; }
}

/* --- V6: story, timeline & project layer ------------------------------------ */
.journey-section {
  position: relative;
  overflow: hidden;
}
.journey-section::before {
  content: "DŘ";
  position: absolute;
  right: -1.5rem;
  top: 4rem;
  color: rgba(255,255,255,.025);
  font: 21rem/1 Georgia, serif;
  pointer-events: none;
}
.journey-section .heading-row > p { color: #9da8b5; }
.journey-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: clamp(2.2rem, 6vw, 6.5rem);
  align-items: start;
}
.journey-photo {
  position: sticky;
  top: 7rem;
  margin: 0;
  border: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
}
.journey-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7,17,31,.8), transparent 38%);
  pointer-events: none;
}
.journey-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 38%;
  filter: saturate(.8) contrast(1.04);
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s ease;
}
.journey-photo:hover img { transform: scale(1.025); filter: saturate(.95) contrast(1.04); }
.journey-photo figcaption {
  position: absolute;
  z-index: 2;
  left: 1rem;
  bottom: 1rem;
  color: #d9e0e7;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.timeline { border-top: 1px solid rgba(255,255,255,.14); }
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: clamp(1.4rem, 3vw, 3rem);
  padding: 2.2rem 0 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width .65s cubic-bezier(.2,.7,.2,1);
}
.timeline-item:hover::before { width: 100%; }
.timeline-year,
.timeline-mark {
  color: var(--gold);
  font: 2.35rem/1 Georgia, serif;
}
.timeline-item h3 {
  margin-bottom: .8rem;
  font-family: Georgia, serif;
  font-size: clamp(1.55rem, 2.8vw, 2.55rem);
  font-weight: 400;
}
.timeline-item p:last-child {
  max-width: 690px;
  margin-bottom: 0;
  color: #aab5c1;
}
.timeline-item-featured {
  margin-top: 1.2rem;
  padding: 2.2rem;
  border: 1px solid rgba(200,169,107,.36);
  background: linear-gradient(120deg, rgba(200,169,107,.08), rgba(255,255,255,.02));
}
.timeline-item-featured::before { display: none; }
.timeline-item-featured .timeline-mark { font-size: 1.4rem; }

.focus-grid-four { grid-template-columns: repeat(4, 1fr); }
.focus-grid-four .focus-card { min-height: 380px; }
.focus-card-tech { background: #e8e4da; }
.focus-grid-four .focus-number { margin-bottom: 8.5rem; }

.project-section {
  background: #e7e2d7;
}
.project-list { border-top: 1px solid rgba(7,17,31,.22); }
.project-row {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: clamp(1.2rem, 3vw, 3rem);
  align-items: center;
  padding: 2rem .4rem;
  border-bottom: 1px solid rgba(7,17,31,.22);
  transition: padding .35s cubic-bezier(.2,.7,.2,1), background .35s ease;
}
.project-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.project-row > * { position: relative; z-index: 1; }
.project-row:hover { padding-left: 1.2rem; padding-right: 1.2rem; color: white; }
.project-row:hover::before { transform: scaleY(1); }
.project-row:hover p { color: #aeb8c4; }
.project-row:hover .project-index,
.project-row:hover .project-tag { color: var(--gold-light); }
.project-index {
  align-self: start;
  color: #7d7568;
  font-size: .72rem;
  letter-spacing: .12em;
}
.project-row h3 {
  margin-bottom: .5rem;
  font-family: Georgia, serif;
  font-size: clamp(1.55rem, 2.7vw, 2.5rem);
  font-weight: 400;
}
.project-row p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  transition: color .35s ease;
}
.project-tag {
  justify-self: end;
  color: #6d665b;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* More deliberate reveal timing for the new sections. */
[data-reveal] .journey-grid,
[data-reveal] .project-list {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s ease .12s, transform 1s cubic-bezier(.2,.7,.2,1) .12s;
}
[data-reveal].is-visible .journey-grid,
[data-reveal].is-visible .project-list { opacity: 1; transform: none; }
.timeline-item,
.project-row { --stagger: 0ms; }
[data-reveal].is-visible .timeline-item,
[data-reveal].is-visible .project-row { animation: riseIn .7s both; animation-delay: var(--stagger); }
.timeline-item:nth-child(2), .project-row:nth-child(2) { --stagger: 90ms; }
.timeline-item:nth-child(3), .project-row:nth-child(3) { --stagger: 180ms; }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .focus-grid-four { grid-template-columns: repeat(2, 1fr); }
  .focus-grid-four .focus-card { min-height: 310px; }
  .focus-grid-four .focus-number { margin-bottom: 5.5rem; }
}

@media (max-width: 900px) {
  .journey-grid { grid-template-columns: 1fr; }
  .journey-photo { position: relative; top: auto; width: min(100%, 560px); }
  .timeline-item { grid-template-columns: 85px 1fr; }
}

@media (max-width: 620px) {
  .timeline-item { grid-template-columns: 1fr; gap: 1rem; }
  .timeline-year { font-size: 1.85rem; }
  .timeline-item-featured { padding: 1.4rem; }
  .focus-grid-four { grid-template-columns: 1fr; }
  .project-row { grid-template-columns: 42px 1fr; }
  .project-tag { grid-column: 2; justify-self: start; }
  .project-row:hover { padding-left: .4rem; padding-right: .4rem; color: var(--ink); }
  .project-row:hover::before { transform: scaleY(0); }
  .project-row:hover p { color: var(--muted); }
  .project-row:hover .project-index,
  .project-row:hover .project-tag { color: inherit; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] .journey-grid,
  [data-reveal] .project-list { opacity: 1 !important; transform: none !important; }
  [data-reveal].is-visible .timeline-item,
  [data-reveal].is-visible .project-row { animation: none !important; }
}

/* --- V7: richer hero, milestone strip & thinking layer ---------------------- */
.hero { isolation: isolate; }
.hero-copy,
.hero-portrait,
.scroll-hint,
.hero-index { z-index: 2; }
.hero-spotlight {
  position: absolute;
  z-index: 0;
  width: min(48rem, 70vw);
  aspect-ratio: 1;
  left: var(--spotlight-x, 68%);
  top: var(--spotlight-y, 32%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(231,213,172,.13) 0%, rgba(200,169,107,.055) 30%, transparent 70%);
  transform: translate(-50%, -50%);
  filter: blur(2px);
  pointer-events: none;
  transition: left .55s cubic-bezier(.2,.7,.2,1), top .55s cubic-bezier(.2,.7,.2,1);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.2rem;
  margin-top: 2.1rem;
  color: rgba(255,255,255,.5);
  font-size: .69rem;
  font-weight: 650;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.hero-meta span:not(:last-child)::after {
  content: "";
  width: 3px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold);
}
.site-nav a.active { color: var(--gold-light); }
.site-nav a.active::after { transform: scaleX(1); transform-origin: left; }

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: #091522;
  color: white;
}
.stat-item {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
  padding: 1.8rem max(1.4rem, 3vw);
  border-right: 1px solid rgba(255,255,255,.1);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1), background .3s ease;
}
.stats-strip.is-visible .stat-item { opacity: 1; transform: none; }
.stats-strip.is-visible .stat-item:nth-child(2) { transition-delay: 70ms; }
.stats-strip.is-visible .stat-item:nth-child(3) { transition-delay: 140ms; }
.stats-strip.is-visible .stat-item:nth-child(4) { transition-delay: 210ms; }
.stat-item:last-child { border-right: 0; }
.stat-item:hover { background: rgba(255,255,255,.025); }
.stat-item strong {
  display: block;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.035em;
}
.stat-item > span {
  color: #8f9aa8;
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.stat-item-text strong { font-size: clamp(1.7rem, 3vw, 3.1rem); }

.thinking-section {
  position: relative;
  overflow: hidden;
  background: #0b1828;
  color: white;
}
.thinking-section::before {
  content: "THINK / BUILD / REFINE";
  position: absolute;
  right: -1rem;
  bottom: -1.8rem;
  color: rgba(255,255,255,.025);
  font-family: Georgia, serif;
  font-size: clamp(4rem, 11vw, 10rem);
  line-height: .8;
  white-space: nowrap;
  pointer-events: none;
}
.thinking-section .heading-row > p { color: #9ca7b5; }
.principles-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.15);
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.principle-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4rem;
  padding: 2rem;
  border-right: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,0);
  transition: background .35s ease, transform .45s cubic-bezier(.2,.7,.2,1);
}
.principle-card:last-child { border-right: 0; }
.principle-card:hover {
  background: rgba(200,169,107,.075);
  transform: translateY(-5px);
}
.principle-number {
  color: var(--gold);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .16em;
}
.principle-card h3 {
  max-width: 320px;
  margin-bottom: 1rem;
  font-family: Georgia, serif;
  font-size: clamp(1.7rem, 2.6vw, 2.7rem);
  font-weight: 400;
}
.principle-card p {
  max-width: 390px;
  margin: 0;
  color: #aab4c0;
}
[data-reveal] .principles-grid {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s ease .12s, transform 1s cubic-bezier(.2,.7,.2,1) .12s;
}
[data-reveal].is-visible .principles-grid { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: 0; }
  .stat-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .principles-grid { grid-template-columns: 1fr; }
  .principle-card { min-height: 260px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .principle-card:last-child { border-bottom: 0; }
  .hero-meta span::after { display: none; }
}

@media (max-width: 620px) {
  .stats-strip { grid-template-columns: 1fr; }
  .stat-item { min-height: 145px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat-item:last-child { border-bottom: 0; }
  .hero-meta { gap: .45rem .9rem; }
  .hero-meta span { width: 100%; }
  .principle-card { min-height: 240px; padding: 1.5rem 0; }
  .thinking-section::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-spotlight { display: none; }
  .stat-item,
  [data-reveal] .principles-grid { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* --- V8: cinematic Apple/Tesla-inspired scroll language ------------------- */
:root {
  --ease-cinematic: cubic-bezier(.16, 1, .3, 1);
}
.site-header {
  min-height: 72px;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7,17,31,.78);
  border-color: rgba(255,255,255,.08);
  box-shadow: none;
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}
.hero {
  min-height: 100svh;
  padding-top: max(8rem, 12vh);
  overflow: clip;
}
.hero-copy {
  position: relative;
  will-change: transform, opacity;
}
.hero h1 {
  font-size: clamp(4rem, 7.8vw, 8rem);
  line-height: .91;
  letter-spacing: -.055em;
}
.hero h1 em {
  color: var(--gold-light);
  font-style: normal;
}
.hero-watermark {
  position: absolute;
  z-index: -1;
  left: -0.065em;
  top: 36%;
  color: rgba(255,255,255,.018);
  font-family: Georgia, serif;
  font-size: clamp(13rem, 34vw, 34rem);
  line-height: .65;
  letter-spacing: -.1em;
  pointer-events: none;
  user-select: none;
}
.portrait {
  will-change: transform, opacity, filter;
  transition: filter .6s ease;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 22vh;
  background: linear-gradient(to bottom, transparent, rgba(7,17,31,.94));
  pointer-events: none;
}
.scroll-hint { z-index: 3; }

/* Focus section: sticky product-story rhythm instead of a card grid. */
.focus-showcase {
  position: relative;
  background: #050b13;
  color: white;
  padding: clamp(7rem, 11vw, 11rem) max(1.25rem, calc((100vw - var(--content)) / 2));
}
.focus-showcase-head {
  max-width: var(--content);
  margin: 0 auto clamp(5rem, 9vw, 9rem);
}
.focus-showcase-head h2 {
  max-width: 920px;
  margin: .55rem 0 1.8rem;
  font-family: Georgia, serif;
  font-size: clamp(3.2rem, 7.2vw, 7.4rem);
  font-weight: 400;
  line-height: .93;
  letter-spacing: -.05em;
}
.focus-showcase-head h2 em {
  color: var(--gold-light);
  font-style: normal;
}
.focus-showcase-head > p:last-child {
  max-width: 620px;
  margin-left: auto;
  color: #9ba7b5;
  font-size: clamp(1rem, 1.55vw, 1.25rem);
}
.focus-story {
  max-width: var(--content);
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(0, 1.18fr);
  gap: clamp(4rem, 8vw, 9rem);
  margin: 0 auto;
}
.focus-stage-wrap { position: relative; }
.focus-stage {
  position: sticky;
  top: 16vh;
  min-height: min(68vh, 670px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(1.8rem, 3vw, 3rem);
  border: 1px solid rgba(255,255,255,.1);
  background:
    radial-gradient(circle at 66% 34%, rgba(200,169,107,.16), transparent 34%),
    linear-gradient(145deg, #0d1b2c 0%, #07111f 56%, #050a11 100%);
  isolation: isolate;
}
.focus-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 55%, rgba(255,255,255,.035));
}
.focus-stage-kicker {
  color: #7f8c9c;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.focus-stage-number {
  position: absolute;
  right: -.02em;
  top: .04em;
  color: rgba(231,213,172,.11);
  font-family: Georgia, serif;
  font-size: clamp(8rem, 17vw, 15rem);
  font-weight: 400;
  line-height: .75;
  letter-spacing: -.08em;
  transition: opacity .35s ease, transform .55s var(--ease-cinematic);
}
.focus-stage-copy {
  position: relative;
  z-index: 2;
  margin-top: auto;
}
.focus-stage-copy span {
  display: block;
  font-family: Georgia, serif;
  font-size: clamp(2.7rem, 5.2vw, 5.2rem);
  line-height: .95;
  letter-spacing: -.045em;
  transition: opacity .28s ease, transform .45s var(--ease-cinematic);
}
.focus-stage-copy small {
  display: block;
  margin-top: 1rem;
  color: var(--gold-light);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.focus-stage-progress {
  height: 1px;
  margin-top: 2.2rem;
  background: rgba(255,255,255,.14);
}
.focus-stage-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform: scaleX(.25);
  transform-origin: left;
  transition: transform .5s var(--ease-cinematic);
}
.focus-orbit,
.focus-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.focus-orbit {
  width: 72%;
  aspect-ratio: 1;
  left: 46%;
  top: 42%;
  border: 1px solid rgba(231,213,172,.11);
  transform: translate(-50%, -50%);
}
.focus-orbit-b {
  width: 48%;
  border-color: rgba(231,213,172,.07);
}
.focus-glow {
  width: 48%;
  aspect-ratio: 1;
  left: 48%;
  top: 42%;
  background: rgba(200,169,107,.1);
  filter: blur(46px);
  transform: translate(-50%, -50%);
}
.focus-steps { padding-bottom: 18vh; }
.focus-step {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: .28;
  transform: translateY(22px);
  transition: opacity .5s ease, transform .7s var(--ease-cinematic);
}
.focus-step.is-active { opacity: 1; transform: none; }
.focus-step > span {
  margin-bottom: 1.2rem;
  color: var(--gold);
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.focus-step h3 {
  max-width: 760px;
  margin: 0 0 1.35rem;
  font-family: Georgia, serif;
  font-size: clamp(2.4rem, 4.8vw, 5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.04em;
}
.focus-step p {
  max-width: 650px;
  margin: 0;
  color: #98a5b3;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

/* Full-screen statement creates a quiet cinematic pause. */
.cinematic-statement {
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 8rem max(1.25rem, calc((100vw - var(--content)) / 2));
  background: var(--paper);
  color: var(--ink);
}
.cinematic-statement-inner {
  width: min(100%, 1180px);
  transform: translateY(var(--cinematic-y, 0px));
  opacity: var(--cinematic-opacity, 1);
  will-change: transform, opacity;
}
.cinematic-line {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(3.7rem, 8.5vw, 9rem);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.055em;
}
.cinematic-line-accent { color: #aa8950; }
.cinematic-caption {
  display: block;
  margin-top: 2.8rem;
  color: #7a746a;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* More cinematic image treatment. */
.perspective {
  min-height: 100svh;
}
.perspective img {
  transform: translate3d(0, var(--perspective-y, 0), 0) scale(1.08);
  will-change: transform;
}
.perspective::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,11,19,.82), rgba(5,11,19,.12) 58%, rgba(5,11,19,.22));
  pointer-events: none;
}
.perspective-copy { z-index: 2; }
.perspective blockquote {
  max-width: 850px;
  font-size: clamp(2.7rem, 5.6vw, 6rem);
  line-height: 1;
  letter-spacing: -.045em;
}

@media (max-width: 900px) {
  .hero h1 { font-size: clamp(3.5rem, 12vw, 6rem); }
  .focus-story { grid-template-columns: 1fr; gap: 2rem; }
  .focus-stage-wrap { height: auto; }
  .focus-stage {
    top: 86px;
    min-height: 310px;
    margin-bottom: 2rem;
  }
  .focus-steps { padding-bottom: 5rem; }
  .focus-step { min-height: 55vh; }
  .focus-stage-number { font-size: clamp(7rem, 26vw, 12rem); }
  .focus-showcase-head > p:last-child { margin-left: 0; }
}
@media (max-width: 620px) {
  .focus-showcase { padding-left: 1.15rem; padding-right: 1.15rem; }
  .focus-showcase-head { margin-bottom: 4rem; }
  .focus-showcase-head h2 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .focus-stage { min-height: 265px; padding: 1.35rem; }
  .focus-stage-copy span { font-size: 2.7rem; }
  .focus-step { min-height: 52vh; }
  .focus-step h3 { font-size: clamp(2.3rem, 11vw, 3.5rem); }
  .cinematic-statement { min-height: 82svh; }
  .cinematic-line { font-size: clamp(3.1rem, 15vw, 5.5rem); }
  .hero-watermark { opacity: .55; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .portrait,
  .cinematic-statement-inner { transform: none !important; opacity: 1 !important; }
  .focus-step { opacity: 1; transform: none; }
  .focus-stage-copy span,
  .focus-stage-number { transition: none; }
}

/* --- V9: immersive Apple/Tesla-inspired image storytelling ---------------- */
.page-intro-v9 {
  background: #050b13;
}
.page-intro-v9 .intro-lockup {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: #fff;
}
.page-intro-v9 .intro-mark {
  font-family: Georgia, serif;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  letter-spacing: -.06em;
  color: var(--gold-light);
}
.page-intro-v9 .intro-line {
  width: clamp(28px, 6vw, 90px);
  height: 1px;
  background: rgba(255,255,255,.35);
  transform: scaleX(0);
  transform-origin: left;
  animation: intro-line-v9 .75s .08s var(--ease-cinematic) forwards;
}
.page-intro-v9 .intro-name {
  overflow: hidden;
  font-size: clamp(.78rem, 1.25vw, 1rem);
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-12px);
  animation: intro-name-v9 .65s .32s var(--ease-cinematic) forwards;
}
@keyframes intro-line-v9 { to { transform: scaleX(1); } }
@keyframes intro-name-v9 { to { opacity: 1; transform: none; } }

/* Header adapts to the surface currently behind it. */
.site-header.header-on-light:not(.scrolled) { color: var(--ink); }
.site-header.header-on-light:not(.scrolled) .brand-mark { border-color: rgba(7,17,31,.25); color: #9c7a42; }
.site-header.header-on-light:not(.scrolled) .menu-button span { background: var(--ink); }
.site-header.header-on-light:not(.scrolled) .site-nav a::after { background: #9c7a42; }
.site-header.scrolled.header-on-light {
  color: var(--ink);
  background: rgba(243,241,235,.88);
  box-shadow: 0 8px 30px rgba(7,17,31,.08);
  border-bottom: 1px solid rgba(7,17,31,.08);
}
.site-header.scrolled.header-on-light .brand-mark { border-color: rgba(7,17,31,.22); color: #9c7a42; }
.site-header.scrolled.header-on-light .menu-button span { background: var(--ink); }

.visual-story {
  position: relative;
  min-height: 300svh;
  background: #03070d;
  color: #fff;
  isolation: isolate;
}
.visual-stage {
  position: sticky;
  z-index: 0;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: #03070d;
}
.visual-frame {
  position: absolute;
  inset: -3%;
  margin: 0;
  opacity: 0;
  transform: scale(1.055);
  transition: opacity .8s ease, transform 1.6s var(--ease-cinematic);
  will-change: opacity, transform;
}
.visual-frame.is-active {
  opacity: 1;
  transform: scale(1.015);
}
.visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 37%;
  filter: saturate(.78) contrast(1.03);
}
.visual-frame:nth-child(2) img { object-position: center 42%; }
.visual-frame:nth-child(3) img { object-position: center 30%; }
.visual-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2,6,11,.82) 0%, rgba(2,6,11,.48) 43%, rgba(2,6,11,.08) 78%),
    linear-gradient(0deg, rgba(2,6,11,.7) 0%, transparent 35%, rgba(2,6,11,.2) 100%);
  pointer-events: none;
}
.visual-stage-ui {
  position: absolute;
  z-index: 3;
  inset: 6.8rem clamp(1.25rem, 4vw, 4rem) auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,.68);
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.visual-count b { color: var(--gold-light); font-weight: 750; }
.visual-progress {
  position: absolute;
  z-index: 3;
  left: clamp(1.25rem, 4vw, 4rem);
  right: clamp(1.25rem, 4vw, 4rem);
  bottom: 2rem;
  height: 1px;
  background: rgba(255,255,255,.18);
}
.visual-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold-light);
  transform: scaleX(.3333);
  transform-origin: left;
  transition: transform .7s var(--ease-cinematic);
}
.visual-copy-rail {
  position: relative;
  z-index: 2;
  margin-top: -100svh;
}
.visual-chapter {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 8rem max(1.25rem, calc((100vw - var(--content)) / 2));
  opacity: .3;
  transition: opacity .55s ease;
}
.visual-chapter.is-active { opacity: 1; }
.visual-chapter .eyebrow { color: var(--gold-light); }
.visual-chapter h2 {
  max-width: 890px;
  margin: .65rem 0 1.6rem;
  font-family: Georgia, serif;
  font-size: clamp(3.2rem, 7.5vw, 8rem);
  font-weight: 400;
  line-height: .94;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.visual-chapter > p:last-child {
  max-width: 620px;
  margin: 0;
  color: rgba(255,255,255,.74);
  font-size: clamp(1rem, 1.45vw, 1.23rem);
}

/* A slightly more restrained, premium hero after V8. */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,.18));
  pointer-events: none;
}
.hero h1 { text-wrap: balance; }
.hero .lead { max-width: 660px; }

@media (max-width: 900px) {
  .visual-frame { inset: 0; }
  .visual-shade {
    background: linear-gradient(0deg, rgba(2,6,11,.86) 0%, rgba(2,6,11,.32) 62%, rgba(2,6,11,.28) 100%);
  }
  .visual-chapter { justify-content: flex-end; padding-bottom: 7rem; }
  .visual-chapter h2 { max-width: 760px; font-size: clamp(3.1rem, 11vw, 6rem); }
  .visual-chapter > p:last-child { max-width: 560px; }
}
@media (max-width: 620px) {
  .page-intro-v9 .intro-lockup { gap: .7rem; }
  .page-intro-v9 .intro-line { width: 32px; }
  .page-intro-v9 .intro-name { font-size: .63rem; letter-spacing: .1em; }
  .visual-stage-ui { top: 5.7rem; }
  .visual-frame:nth-child(1) img { object-position: center 30%; }
  .visual-frame:nth-child(2) img { object-position: 38% center; }
  .visual-frame:nth-child(3) img { object-position: center 28%; }
  .visual-chapter { padding-left: 1.2rem; padding-right: 1.2rem; padding-bottom: 6.2rem; }
  .visual-chapter h2 { font-size: clamp(2.8rem, 14vw, 4.6rem); }
  .visual-progress { bottom: 1.25rem; }
}

/* Keep faces and the main subject correctly framed on narrow screens. */
@media (max-width: 620px) {
  .portrait img { object-position: 50% 20%; }
  .journey-photo img {
    height: min(calc((100vw - 3rem) * 1.15), 644px);
    aspect-ratio: auto;
    object-position: 50% 65%;
  }
  .perspective img { object-position: 40% center; }
}
@media (prefers-reduced-motion: reduce) {
  .page-intro-v9 .intro-line,
  .page-intro-v9 .intro-name { animation: none; opacity: 1; transform: none; }
  .visual-frame { transition: none; transform: none !important; }
  .visual-chapter { opacity: 1; }
}

/* Education portrait and fitness story refinements. */
.journey-photo img {
  height: clamp(560px, 62vh, 760px);
  aspect-ratio: auto;
  object-position: 50% 58%;
}
.timeline-year { white-space: nowrap; }
.perspective-fitness > img { object-position: 50% 10%; }
.perspective-note {
  max-width: 650px;
  margin: 1.8rem 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.7;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin-left: .45rem;
  padding-left: .8rem;
  border-left: 1px solid currentColor;
}
.language-switch a {
  padding: .32rem .42rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.language-switch a[aria-current="page"] {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: .3rem;
}
@media (max-width: 900px) {
  .language-switch {
    justify-content: center;
    margin: .65rem 0 0;
    padding: .8rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, .22);
    border-left: 0;
  }
  .language-switch a {
    font-family: inherit;
    font-size: .78rem;
    line-height: 1.2;
  }
}
@media (max-width: 620px) {
  .journey-photo img {
    height: min(calc((100vw - 3rem) * 1.15), 644px);
    object-position: 50% 65%;
  }
  .perspective-fitness {
    min-height: 760px;
    place-items: end center;
  }
  .perspective-fitness > img { object-position: 50% center; }
  .perspective-fitness::after {
    background:
      linear-gradient(0deg, rgba(5, 11, 19, .94) 0%, rgba(5, 11, 19, .72) 47%, rgba(5, 11, 19, .12) 84%),
      linear-gradient(90deg, rgba(5, 11, 19, .35), rgba(5, 11, 19, .05));
  }
  .perspective-fitness .perspective-copy {
    width: calc(100% - 3rem);
    padding-bottom: 2.8rem;
  }
  .perspective-fitness blockquote {
    font-size: clamp(2.15rem, 10.5vw, 2.65rem);
    line-height: 1.04;
  }
  .perspective-note {
    margin-top: 1.15rem;
    color: rgba(255, 255, 255, .9);
    font-size: .98rem;
    line-height: 1.5;
  }
}
