:root {
  color-scheme: light;
  --bg: #fbf7f1;
  --bg-warm: #f6ecdf;
  --surface: #fffdfac2;
  --surface-strong: #fffefb;
  --text: #241b2e;
  --ink: #2c1f3d;
  --muted: #6b5f75;
  --border: #241b2e1c;
  --primary: #7c34c4;
  --primary-strong: #5b1f8f;
  --primary-soft: #f1e4fb;
  --accent: #e8590c;
  --accent-text: #b8430a;
  --accent-soft: #ffe4d1;
  --brand-blue: #0e77c0;
  --shadow: 0 28px 80px #5b1f8f24;
  --scroll-progress: 0;
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-right: env(safe-area-inset-right, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left: env(safe-area-inset-left, 0px);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, #efe4ff 0%, transparent 34rem),
    radial-gradient(circle at 88% 4%, #ffe4d1 0%, transparent 30rem),
    var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a { color: inherit; }

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

button { font: inherit; color: inherit; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 12px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  transition: top .15s ease;
}

.skip-link:focus {
  top: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--primary-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(var(--scroll-progress));
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 50;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: calc(16px + var(--safe-area-top)) calc(18px + var(--safe-area-right)) 0 calc(18px + var(--safe-area-left));
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.site-header--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: min(100%, 760px);
  padding: 6px;
  background: #fffefbcc;
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  overflow-x: auto;
  scrollbar-width: none;
}

.site-header__nav::-webkit-scrollbar { display: none; }

.site-header__nav a {
  flex: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  transition: background-color .18s, color .18s;
}

.site-header__nav a:first-child {
  font-family: "Fraunces", serif;
  font-weight: 600;
  color: var(--primary-strong);
  box-shadow: inset 0 -2px 0 var(--brand-blue);
}

.site-header__nav a:hover {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

/* ---------- Layout shell ---------- */
.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding-block: clamp(64px, 10vw, 128px);
}

.section-heading p {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 10px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  max-width: 24ch;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 48px;
  padding-top: calc(96px + var(--safe-area-top));
  padding-bottom: 48px;
}

.hero__content { max-width: 640px; }

.eyebrow {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary-strong);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.02;
  margin-bottom: 20px;
}

.hero__headline {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 16px;
}

.hero__subheadline {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 32px;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.button {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.button--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 16px 32px #4c1d9540;
}

.button--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px #4c1d9555; }

.button--ghost {
  background: var(--surface-strong);
  color: var(--ink);
  border: 1px solid var(--border);
}

.button--ghost:hover { background: var(--primary-soft); transform: translateY(-2px); }

.hero__portrait {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--primary-soft), var(--accent-soft));
  box-shadow: var(--shadow);
}

.hero__portrait img {
  position: absolute;
  top: -6%;
  left: 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: center 12%;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 48px;
  margin-block: 40px;
}

.about-photo {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: start;
}

.about-photo img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: var(--shadow);
  background: linear-gradient(160deg, var(--accent-soft), var(--primary-soft));
}

.about-photo__primary { aspect-ratio: 4 / 4.25; }
.about-photo__secondary { aspect-ratio: 4 / 3; }

.about-copy p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 18px;
  font-size: 1.02rem;
}

.about-copy strong { color: var(--ink); }

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
}

.tag-list li {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Experience / Chapters ---------- */
.experience-intro {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 20px 0 48px;
}

.chapters {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  border-left: 2px solid var(--border);
}

.chapter {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 20px;
  padding: 28px 0 28px 32px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.chapter--visible {
  opacity: 1;
  transform: translateY(0);
  border-left: 2px solid var(--primary);
}

.chapter__marker {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.chapter__num {
  font-family: "Fraunces", serif;
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--border);
  line-height: 1;
  transition: color .5s ease;
}

.chapter--visible .chapter__num { color: var(--accent); }

.chapter__logo {
  max-width: 85px;
  max-height: 47px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .6s ease .15s, transform .6s ease .15s;
}

.chapter--visible .chapter__logo {
  opacity: 1;
  transform: translateY(0);
}

.chapter__years {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary-strong);
  margin-bottom: 6px;
}

.chapter__body h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.chapter__role {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 8px;
  font-size: .95rem;
}

.chapter__body p:not(.chapter__years):not(.chapter__role) {
  color: var(--muted);
  line-height: 1.65;
  max-width: 68ch;
}

.chapter--milestone .chapter__body h3 { color: var(--primary-strong); }

/* ---------- Ventures ---------- */
.ventures-intro {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 20px 0 44px;
}

.venture-showcase {
  display: grid;
  gap: 28px;
}

.venture-card {
  display: grid;
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.venture-card--featured {
  grid-template-columns: 1.1fr .9fr;
}

.venture-card__body { padding: 40px; }

.brand-mark {
  width: 148px;
  height: auto;
  margin-bottom: 22px;
}

.venture-card__eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 10px;
}

.venture-card__title-row h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.venture-card__tagline {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.venture-card__body > p:not(.venture-card__tagline):not(.venture-card__eyebrow) {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.venture-card__visual {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--primary-soft), var(--accent-soft));
}

.venture-card__visual img {
  position: absolute;
  top: -6%;
  left: 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
}

.venture-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  color: var(--primary-strong);
  text-decoration: none;
}

.venture-link:hover { text-decoration: underline; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 8px 0 20px;
}

.stat strong {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  color: var(--primary-strong);
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: .85rem;
  margin-top: 4px;
}

/* ---------- Recognition ---------- */
.recognition-card {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 36px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 40px;
  margin-top: 32px;
}

.recognition-card__eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 10px;
}

.recognition-card__copy h3 { font-size: 1.5rem; margin-bottom: 14px; }

.recognition-card__copy p:not(.recognition-card__eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.recognition-card__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-self: start;
}

.recognition-card__gallery img {
  border-radius: 14px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 15%;
  cursor: zoom-in;
  transition: transform .3s ease;
}

.recognition-card__gallery img:hover { transform: scale(1.03); }

.lightbox-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}

.lightbox-trigger img { cursor: zoom-in; }

/* ---------- Beyond the Office ---------- */
.beyond-card {
  display: grid;
  grid-template-columns: .55fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 32px;
}

.beyond-card__visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  max-height: 520px;
  background: linear-gradient(160deg, var(--primary-soft), var(--accent-soft));
}

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

/* Default (and reduced-motion) state: first image shown, others hidden. */
.crossfade__img { position: absolute; inset: 0; opacity: 0; }
.crossfade__img:first-child { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .crossfade__img {
    animation: crossfade 12s infinite;
    animation-play-state: running;
  }
  .crossfade__img:nth-child(1) { animation-delay: 0s; }
  .crossfade__img:nth-child(2) { animation-delay: -4s; }
  .crossfade__img:nth-child(3) { animation-delay: -8s; }
  .beyond-card__visual.is-paused .crossfade__img { animation-play-state: paused; }
}

@keyframes crossfade {
  0%, 27% { opacity: 1; }
  33%, 93% { opacity: 0; }
  100% { opacity: 1; }
}

.crossfade__toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: #2c1f3dbd;
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.crossfade__toggle svg { width: 18px; height: 18px; }

.crossfade__toggle:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -5px;
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  .crossfade__toggle { display: none; }
}

.beyond-card__copy p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.beyond-card__copy em {
  font-style: italic;
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Contact ---------- */
.contact-intro {
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 20px 0 40px;
}

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

.contact-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.contact-link:not(.contact-link--static):hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.contact-link__label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.contact-link__value {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  color: var(--ink);
}

.site-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .9rem;
}

.site-footer a { color: var(--primary-strong); font-weight: 700; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2c1f3ddd;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .28s ease;
}

.lightbox[hidden] { display: none; }

.lightbox--open { opacity: 1; }

.lightbox__image {
  max-width: min(90vw, 900px);
  max-height: 86vh;
  border-radius: 16px;
  box-shadow: 0 40px 100px #00000055;
  transform: scale(.94);
  transition: transform .28s ease;
}

.lightbox--open .lightbox__image { transform: scale(1); }

.lightbox__close {
  position: absolute;
  top: calc(20px + var(--safe-area-top));
  right: calc(20px + var(--safe-area-right));
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: #fffefbde;
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: calc(120px + var(--safe-area-top)); }
  .hero__portrait { order: -1; max-width: 320px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; }
  .venture-card--featured { grid-template-columns: 1fr; }
  .venture-card__visual { min-height: 220px; }
  .recognition-card { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .chapter { grid-template-columns: 56px 1fr; gap: 18px; }
  .chapter__logo { max-width: 48px; max-height: 30px; }
  .beyond-card { grid-template-columns: 1fr; }
  .beyond-card__visual { max-height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  .chapter, .site-header, .lightbox, .lightbox__image, .button {
    transition: none !important;
  }

  [data-parallax] {
    transform: none !important;
  }
}
