:root {
  --bg: #0a0a0a;
  --surface: rgba(17, 17, 17, 0.78);
  --surface-strong: rgba(17, 17, 17, 0.92);
  --accent: #c8a96e;
  --accent2: #e8dcc8;
  --text-primary: #f0ece4;
  --text-muted: #a59c8f;
  --line: rgba(200, 169, 110, 0.18);
  --glow: rgba(200, 169, 110, 0.12);
  --shell: min(100% - 2rem, 1280px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: "DM Sans", sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

body.is-loading {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  position: relative;
  z-index: 1;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: #000;
  transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.page-loader.is-complete {
  transform: translateY(-100%);
}

.page-loader__inner {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.page-loader__monogram {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--accent);
  line-height: 0.9;
}

.page-loader__counter {
  color: var(--accent2);
  letter-spacing: 0.32em;
  font-size: 0.9rem;
}

.ambient {
  position: fixed;
  inset: -15%;
  z-index: -3;
  pointer-events: none;
}

.ambient__blob {
  position: absolute;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.08;
  animation: blobDrift 20s ease-in-out infinite alternate;
}

.ambient__blob--gold {
  top: -2%;
  left: -3%;
  background: radial-gradient(circle, rgba(200, 169, 110, 0.82), transparent 68%);
}

.ambient__blob--cream {
  right: -5%;
  bottom: -4%;
  background: radial-gradient(circle, rgba(232, 220, 200, 0.5), transparent 68%);
  animation-duration: 24s;
}

.ambient__blob--ember {
  right: 12%;
  top: 24%;
  background: radial-gradient(circle, rgba(170, 86, 44, 0.45), transparent 68%);
  animation-duration: 18s;
}

.page-line {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 1rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(200, 169, 110, 0.55), transparent);
  animation: linePulse 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 4;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.8'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 60;
  transform: translate(-50%, -50%);
}

.cursor--dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.cursor--ring {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(200, 169, 110, 0.75);
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 0.5rem;
  letter-spacing: 0.24em;
  transition:
    width 220ms ease,
    height 220ms ease,
    background-color 220ms ease,
    color 220ms ease;
}

.cursor--ring span {
  transform: translateX(0.12em);
}

body.cursor-view .cursor--ring {
  width: 72px;
  height: 72px;
  background: rgba(200, 169, 110, 0.08);
  color: var(--accent2);
}

.section {
  position: relative;
  padding: 7rem 0;
}

.section__inner {
  width: var(--shell);
  margin: 0 auto;
}

.section-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
  max-width: 44rem;
}

.section-heading h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.98;
  font-weight: 500;
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero__content {
  display: grid;
  gap: 1.5rem;
  align-content: center;
  min-width: 0;
}

.hero__title {
  margin: 0;
  display: grid;
  gap: 0.35rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4.75rem, 11vw, 9rem);
  line-height: 0.9;
  font-weight: 500;
}

.hero__title span {
  display: block;
}

.hero__subtitle {
  position: relative;
  width: fit-content;
  padding: 0.7rem 0;
}

.hero__subtitle::before,
.hero__subtitle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.hero__subtitle::before {
  top: 0;
}

.hero__subtitle::after {
  bottom: 0;
}

.hero__subtitle-window {
  height: 2rem;
  overflow: hidden;
}

.hero__subtitle-track {
  display: grid;
  animation: subtitleRotate 7.5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.hero__subtitle-track span {
  display: flex;
  align-items: center;
  min-height: 2rem;
  color: var(--accent2);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1;
}

.hero__lede {
  margin: 0;
  max-width: 31rem;
  color: var(--text-muted);
  font-size: 1.04rem;
  line-height: 1.95;
}

.hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--accent);
}

.hero__meta span {
  width: 4rem;
  height: 1px;
  background: rgba(200, 169, 110, 0.6);
}

.hero__meta p {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.66rem;
}

.hero__visual {
  min-width: 0;
}

.hero__portrait {
  position: relative;
  min-height: min(82vh, 860px);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    var(--surface);
  overflow: hidden;
}

.hero__portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.5), transparent 28%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.05), rgba(10, 10, 10, 0.4));
  z-index: 1;
}

.hero__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.9) sepia(0.14) contrast(1.03) brightness(0.94);
  transform: scale(1.02);
}

.bio {
  padding-top: 3rem;
}

.bio__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
}

.bio-card {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    var(--surface);
}

.bio-card--feature {
  grid-row: span 2;
  align-content: start;
}

.bio-card__eyebrow {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.64rem;
}

.bio-card__metric {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(5rem, 10vw, 8rem);
  line-height: 0.82;
  color: var(--accent);
  animation: metricPulse 5.5s ease-in-out infinite;
}

.bio-card h3,
.bio-card p {
  margin: 0;
}

.bio-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4.5vw, 3.7rem);
  line-height: 1;
  font-weight: 500;
}

.bio-card p {
  color: var(--text-muted);
  line-height: 1.9;
}

.bio-card__keywords {
  display: grid;
  gap: 0.45rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 5.6vw, 4.8rem);
  line-height: 0.98;
}

.bio-card__keywords span:nth-child(1) {
  -webkit-text-stroke: 1px rgba(200, 169, 110, 0.5);
  color: transparent;
}

.bio-card__keywords span:nth-child(2) {
  color: var(--accent2);
}

.bio-card__keywords span:nth-child(3) {
  color: var(--accent);
}

.bio-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.bio-card__pills span {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(200, 169, 110, 0.24);
  border-radius: 999px;
  color: var(--accent2);
}

.marquee {
  margin-top: 2rem;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(17, 17, 17, 0.7);
}

.marquee__track {
  display: flex;
  width: max-content;
  min-width: max-content;
  gap: 2rem;
  padding: 1rem 0;
  animation: marqueeMove 24s linear infinite;
}

.marquee__track span {
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.74rem;
  white-space: nowrap;
}

.marquee__track span::after {
  content: "·";
  margin-left: 2rem;
  color: rgba(232, 220, 200, 0.25);
}

.timeline__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.timeline-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    var(--surface);
}

.timeline-card--accent {
  background:
    linear-gradient(180deg, rgba(200, 169, 110, 0.14), transparent),
    var(--surface-strong);
}

.timeline-card__year,
.timeline-card__role,
.timeline-card h3,
.timeline-card p {
  margin: 0;
}

.timeline-card__year {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.88;
  color: var(--accent);
  animation: yearPulse 5s ease-in-out infinite;
}

.timeline-card__role {
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.64rem;
}

.timeline-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1;
  font-weight: 500;
}

.timeline-card p:last-child {
  color: var(--text-muted);
  line-height: 1.85;
}

.expertise__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: start;
}

.expertise__intro {
  display: grid;
  gap: 1rem;
  max-width: 34rem;
}

.expertise__intro h2,
.contact__title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 0.98;
  font-weight: 500;
}

.expertise__intro p:last-child {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.9;
}

.expertise__list {
  display: grid;
}

.expertise__list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.expertise__list article:last-child {
  border-bottom: 1px solid var(--line);
}

.expertise__list span {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
}

.expertise__list h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 400;
}

.education {
  overflow: hidden;
}

.education__ghost {
  position: absolute;
  top: 4rem;
  left: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 17vw;
  line-height: 0.9;
  color: rgba(232, 220, 200, 0.03);
  white-space: nowrap;
  pointer-events: none;
  animation: ghostDrift 26s linear infinite;
}

.education__list {
  display: grid;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.education__item {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.education__item:last-child {
  border-bottom: 1px solid var(--line);
}

.education__range,
.education__content h3,
.education__content p {
  margin: 0;
}

.education__range {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.92;
  color: rgba(240, 236, 228, 0.45);
}

.education__content {
  display: grid;
  gap: 0.55rem;
}

.education__content h3 {
  font-size: 1.08rem;
  font-weight: 400;
}

.education__content p {
  color: var(--text-muted);
  line-height: 1.85;
}

.education__tag {
  display: inline-flex;
  width: fit-content;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 169, 110, 0.25);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
}

.contact {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-bottom: 0;
}

.contact__glow {
  position: absolute;
  inset: 16% 24% auto;
  height: 32rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 169, 110, 0.23), transparent 68%);
  filter: blur(60px);
  animation: contactBreath 10s ease-in-out infinite;
}

.contact__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
}

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

.contact__actions a {
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 169, 110, 0.38);
  background: rgba(10, 10, 10, 0.5);
  color: var(--accent2);
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    color 220ms ease;
  animation: pillGlow 4.5s ease-in-out infinite;
}

.contact__actions a:hover,
.contact__actions a:focus-visible {
  transform: translateY(-2px);
  background: var(--accent);
  color: var(--bg);
}

.marquee--footer {
  margin-top: 4rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 1, 0.2, 1);
}

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

@keyframes blobDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2vw, -2vw, 0) scale(1.08);
  }
}

@keyframes linePulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.6; }
}

@keyframes subtitleRotate {
  0%, 27% { transform: translateY(0); }
  33%, 60% { transform: translateY(-2rem); }
  66%, 93% { transform: translateY(-4rem); }
  100% { transform: translateY(0); }
}

@keyframes marqueeMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes metricPulse {
  0%, 100% { opacity: 0.88; }
  50% { opacity: 1; }
}

@keyframes yearPulse {
  0%, 100% { opacity: 0.92; }
  50% { opacity: 0.66; }
}

@keyframes ghostDrift {
  from { transform: translateX(0); }
  to { transform: translateX(-10%); }
}

@keyframes contactBreath {
  0%, 100% { transform: scale(0.96); opacity: 0.4; }
  50% { transform: scale(1.08); opacity: 0.78; }
}

@keyframes pillGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(200, 169, 110, 0); }
  50% { box-shadow: 0 0 24px rgba(200, 169, 110, 0.12); }
}

@media (max-width: 1024px) {
  body {
    cursor: auto;
  }

  .cursor,
  .page-line {
    display: none;
  }

  .hero__grid,
  .bio__grid,
  .timeline__grid,
  .expertise__grid,
  .education__item {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
  }

  .hero__portrait {
    min-height: min(72vh, 640px);
  }

  .bio-card--feature {
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 5rem 0;
  }

  .hero {
    min-height: auto;
    padding-top: 6rem;
  }

  .hero__title {
    font-size: clamp(4rem, 17vw, 6rem);
  }

  .hero__lede,
  .bio-card p,
  .timeline-card p:last-child,
  .education__content p {
    font-size: 0.96rem;
  }

  .contact__actions {
    width: 100%;
    flex-direction: column;
  }

  .contact__actions a {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  body {
    cursor: auto;
  }

  .cursor,
  .page-line {
    display: none;
  }
}
