:root {
  --navy: #0d1b2a;
  --cream: #f8f5f0;
  --paper: #fffdf8;
  --gold: #c6a15b;
  --blue: #0057ff;
  --green: #7ed957;
  --ink: #111111;
  --muted: #706b63;
  --line: rgba(13, 27, 42, 0.14);
  --navy-line: rgba(248, 245, 240, 0.16);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}

body.is-transitioning {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 480ms var(--ease), transform 480ms var(--ease);
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--cream);
  transition: opacity 700ms var(--ease), visibility 700ms var(--ease);
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-mark {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.loader-mark span {
  font-family: var(--serif);
  font-size: clamp(44px, 8vw, 92px);
  font-style: italic;
}

.loader-line {
  width: 148px;
  height: 1px;
  overflow: hidden;
  background: rgba(248, 245, 240, 0.18);
}

.loader-line::before {
  content: "";
  display: block;
  width: 42%;
  height: 100%;
  background: var(--gold);
  animation: loadLine 1.2s var(--ease) infinite;
}

@keyframes loadLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(260%); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(248, 245, 240, 0.12);
  background: rgba(13, 27, 42, 0.88);
  color: var(--cream);
  backdrop-filter: blur(22px);
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(1500px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
}

.brand {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: -8px;
  color: rgba(248, 245, 240, 0.62);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 30px);
}

.nav-links a,
.footer-links a {
  position: relative;
  color: rgba(248, 245, 240, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 280ms ease;
}

.nav-links a::after,
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 380ms var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active,
.footer-links a:hover {
  color: var(--cream);
}

.nav-links a:hover::after,
.nav-links a.is-active::after,
.footer-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  border: 1px solid rgba(198, 161, 91, 0.52);
  padding: 11px 18px;
  color: var(--cream);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 300ms ease, color 300ms ease, border-color 300ms ease;
}

.nav-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--navy-line);
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 300ms var(--ease), opacity 300ms var(--ease);
}

.menu-toggle.is-open span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--cream);
  background: var(--navy);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.06);
  transform: scale(1.04);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 27, 42, 0.92) 0%, rgba(13, 27, 42, 0.62) 42%, rgba(13, 27, 42, 0.18) 100%),
    linear-gradient(0deg, rgba(13, 27, 42, 0.78) 0%, rgba(13, 27, 42, 0.05) 54%);
}

.hero-content {
  position: relative;
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0 76px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0;
}

h1 {
  max-width: 1060px;
  margin-top: 24px;
  font-size: clamp(72px, 13vw, 190px);
}

h1 em,
h2 em,
.pull-quote em {
  font-style: italic;
  color: var(--gold);
}

.hero-lede {
  max-width: 720px;
  margin: 30px 0 0;
  color: rgba(248, 245, 240, 0.82);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--navy);
  padding: 13px 22px;
  background: var(--navy);
  color: var(--cream);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 280ms var(--ease), background 280ms ease, color 280ms ease, border-color 280ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: transparent;
  color: var(--navy);
}

.hero .button {
  border-color: rgba(248, 245, 240, 0.7);
  background: var(--cream);
  color: var(--navy);
}

.hero .button:hover {
  background: transparent;
  color: var(--cream);
}

.button.secondary {
  background: transparent;
  color: var(--navy);
}

.hero .button.secondary {
  color: var(--cream);
}

.section {
  padding: clamp(76px, 11vw, 156px) 0;
}

.section.navy {
  background: var(--navy);
  color: var(--cream);
}

.section.paper {
  background: var(--paper);
}

.container {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}

.wide-container {
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
}

.chapter {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.chapter-number {
  position: sticky;
  top: 112px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 40px;
  font-style: italic;
}

.section-kicker {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-title {
  max-width: 970px;
  margin-top: 18px;
  font-size: clamp(48px, 8vw, 118px);
}

.section-intro {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
}

.navy .section-intro,
.navy .text-muted {
  color: rgba(248, 245, 240, 0.72);
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

.image-frame {
  position: relative;
  overflow: hidden;
  background: #ddd5c9;
}

.image-frame::before,
.image-frame::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  z-index: 2;
  border-color: rgba(198, 161, 91, 0.78);
  border-style: solid;
}

.image-frame::before {
  top: 18px;
  left: 18px;
  border-width: 1px 0 0 1px;
}

.image-frame::after {
  right: 18px;
  bottom: 18px;
  border-width: 0 1px 1px 0;
}

.image-frame img,
.image-frame video {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transition: transform 900ms var(--ease), filter 900ms var(--ease);
}

.image-frame:hover img {
  transform: scale(1.045);
  filter: saturate(0.9);
}

.caption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.pull-quote {
  margin: 0;
  padding-left: 34px;
  border-left: 1px solid var(--gold);
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 70px);
  line-height: 1.05;
}

.text-column {
  max-width: 690px;
}

.text-column p {
  color: var(--muted);
}

.rule {
  height: 1px;
  margin: clamp(42px, 7vw, 84px) 0;
  background: var(--line);
}

.navy .rule {
  background: var(--navy-line);
}

.metric-grid,
.card-grid,
.media-grid,
.network-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 54px;
  background: var(--line);
}

.metric,
.card,
.media-card,
.network-card {
  min-height: 270px;
  padding: clamp(26px, 4vw, 44px);
  background: var(--cream);
  transition: transform 360ms var(--ease), background 360ms ease, color 360ms ease;
}

.navy .metric,
.navy .card,
.navy .media-card,
.navy .network-card {
  background: #13263a;
}

.metric:hover,
.card:hover,
.media-card:hover,
.network-card:hover {
  transform: translateY(-6px);
}

.metric strong {
  display: block;
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(58px, 7vw, 98px);
  font-weight: 500;
  line-height: 0.92;
}

.metric span,
.card span,
.media-card span,
.network-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card h3,
.media-card h3,
.network-card h3 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.03;
}

.card p,
.metric p,
.media-card p,
.network-card p {
  margin: 22px 0 0;
  color: var(--muted);
}

.navy .card p,
.navy .metric p,
.navy .media-card p,
.navy .network-card p {
  color: rgba(248, 245, 240, 0.7);
}

.project-list {
  display: grid;
  gap: 1px;
  margin-top: 56px;
  background: var(--line);
}

.project-row {
  display: grid;
  grid-template-columns: 0.72fr 1.1fr 0.52fr;
  gap: clamp(24px, 4vw, 62px);
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  background: var(--paper);
}

.project-row img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  filter: saturate(0.74);
  transition: transform 700ms var(--ease), filter 700ms var(--ease);
}

.project-row:hover img {
  transform: scale(1.025);
  filter: saturate(0.96);
}

.project-row h3 {
  font-size: clamp(38px, 5vw, 72px);
}

.project-meta {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-row p {
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 120px;
  gap: 18px;
  margin-top: 58px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #dad2c7;
}

.gallery-item:nth-child(1) { grid-column: span 7; grid-row: span 4; }
.gallery-item:nth-child(2) { grid-column: span 5; grid-row: span 3; }
.gallery-item:nth-child(3) { grid-column: span 4; grid-row: span 3; }
.gallery-item:nth-child(4) { grid-column: span 4; grid-row: span 4; }
.gallery-item:nth-child(5) { grid-column: span 4; grid-row: span 3; }
.gallery-item:nth-child(6) { grid-column: span 8; grid-row: span 3; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.02);
  transition: transform 900ms var(--ease), filter 900ms var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(0.95) contrast(1.04);
}

.gallery-item figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  color: var(--cream);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.48);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 30px;
  background: rgba(13, 27, 42, 0.92);
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-height: 86vh;
  object-fit: contain;
}

.lightbox button {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(248, 245, 240, 0.34);
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}

.page-hero {
  padding: clamp(86px, 12vw, 170px) 0 clamp(58px, 8vw, 100px);
  background: var(--navy);
  color: var(--cream);
}

.page-hero .section-title {
  max-width: 1160px;
}

.split-list {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 7vw, 92px);
  margin-top: 62px;
}

.timeline {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  padding: 28px 0;
  background: var(--cream);
}

.timeline-item time {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.timeline-item h3 {
  font-size: clamp(26px, 3vw, 38px);
}

.timeline-item p {
  margin: 10px 0 0;
  color: var(--muted);
}

.cv-list,
.publication-list,
.certificate-list,
.experience-list {
  display: grid;
  gap: 1px;
  margin-top: 42px;
  background: var(--line);
}

.cv-item,
.publication-item,
.certificate-item,
.experience-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: clamp(22px, 4vw, 52px);
  padding: clamp(24px, 4vw, 38px);
  background: var(--paper);
}

.navy .cv-item,
.navy .publication-item,
.navy .certificate-item,
.navy .experience-item {
  background: #13263a;
}

.cv-item time,
.publication-item span,
.certificate-item span,
.experience-item span,
.skill-tag {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cv-item h3,
.publication-item h3,
.certificate-item h3,
.experience-item h3,
.skill-columns h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.04;
}

.cv-item p,
.publication-item p,
.certificate-item p,
.experience-item p,
.skill-columns p,
.link-list p,
.contact-details p {
  margin: 12px 0 0;
  color: var(--muted);
}

.navy .cv-item p,
.navy .publication-item p,
.navy .certificate-item p,
.navy .experience-item p {
  color: rgba(248, 245, 240, 0.7);
}

.experience-item ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: rgba(248, 245, 240, 0.74);
}

.experience-item li + li {
  margin-top: 8px;
}

.skill-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  background: var(--line);
}

.skill-columns > div {
  min-height: 220px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--paper);
}

.link-list,
.contact-details {
  margin-top: 34px;
}

.link-list a,
.contact-details a,
.contact-panel a,
.certificate-item a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: rgba(198, 161, 91, 0.7);
  text-underline-offset: 4px;
}

.contact-panel {
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  background: var(--cream);
}

.contact-panel h3 {
  margin-top: 18px;
  font-size: clamp(34px, 5vw, 62px);
}

.contact-panel p {
  margin: 16px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.skill-tag {
  border: 1px solid rgba(198, 161, 91, 0.34);
  padding: 8px 11px;
  background: rgba(198, 161, 91, 0.06);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(34px, 7vw, 92px);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(13, 27, 42, 0.18);
  border-radius: 0;
  background: transparent;
  padding: 16px 0;
  color: var(--ink);
  outline: none;
  transition: border-color 220ms ease, padding-left 220ms ease;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
  padding-left: 12px;
}

.site-footer {
  background: var(--navy);
  color: var(--cream);
  padding: 72px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.8fr;
  gap: 44px;
  align-items: start;
}

.footer-brand {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.92;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 18px 34px;
}

.footer-note {
  color: rgba(248, 245, 240, 0.62);
  font-size: 13px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 58px;
  padding-top: 24px;
  border-top: 1px solid var(--navy-line);
  color: rgba(248, 245, 240, 0.48);
  font-size: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

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

@media (max-width: 1080px) {
  .nav-shell {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-links.is-open {
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    display: grid;
    gap: 0;
    padding: 22px 24px 30px;
    background: rgba(13, 27, 42, 0.98);
    border-top: 1px solid var(--navy-line);
  }

  .nav-links.is-open a {
    padding: 16px 0;
    border-bottom: 1px solid var(--navy-line);
  }

  .editorial-grid,
  .split-list,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .card-grid,
  .media-grid,
  .network-grid,
  .skill-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-shell,
  .hero-content,
  .container,
  .wide-container {
    width: min(100% - 32px, 1500px);
  }

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

  .chapter-number {
    position: static;
  }

  .metric-grid,
  .card-grid,
  .media-grid,
  .network-grid,
  .skill-columns,
  .timeline-item,
  .cv-item,
  .publication-item,
  .certificate-item,
  .experience-item {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    display: grid;
    grid-auto-rows: 220px;
  }

  .gallery-item,
  .gallery-item:nth-child(n) {
    grid-column: 1 / -1;
    grid-row: span 1;
  }

  .hero-actions,
  .button-row,
  .footer-bottom {
    flex-direction: column;
  }

  .footer-links {
    grid-template-columns: repeat(2, max-content);
  }

  h1 {
    font-size: clamp(62px, 21vw, 112px);
  }
}
