:root {
  --bg: #090d11;
  --bg-elev: #111821;
  --bg-soft: #1b2532;
  --text: #f4f8ff;
  --muted: #b4c2d4;
  --line: #304055;
  --accent: #e0b000;
  --accent-soft: #ffd24a;
  --max: 1180px;
  --section-space: clamp(2.2rem, 5vw, 4.2rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

body {
  background:
    radial-gradient(1000px 700px at 12% -10%, #28425f 0%, transparent 68%),
    radial-gradient(800px 600px at 88% 4%, #4b3124 0%, transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.6;
  position: relative;
  isolation: isolate;
}

a {
  color: inherit;
}

body::before {
  content: "";
  position: fixed;
  inset: -20% -10%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(52% 46% at 16% 22%, rgba(255, 210, 74, 0.08) 0%, rgba(255, 210, 74, 0) 72%),
    radial-gradient(42% 40% at 82% 18%, rgba(85, 138, 196, 0.09) 0%, rgba(85, 138, 196, 0) 74%),
    radial-gradient(46% 44% at 58% 78%, rgba(224, 176, 0, 0.07) 0%, rgba(224, 176, 0, 0) 76%);
  filter: blur(14px);
  opacity: 0.9;
  animation: ambientDrift 10s ease-in-out infinite;
  will-change: transform;
}

body > * {
  position: relative;
  z-index: 1;
}

@keyframes ambientDrift {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.78;
  }
  50% {
    transform: translate(48px, 62px) scale(1.1);
    opacity: 0.98;
  }
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.78;
  }
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  backdrop-filter: blur(9px);
  background: rgba(9, 13, 17, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand {
  font-family: "Bebas Neue", "Impact", sans-serif;
  letter-spacing: 0.06em;
  font-size: clamp(1.3rem, 1.7vw, 1.6rem);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.1rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  border: 0;
  background: none;
  padding: 0;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
  margin: 5px 0;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: end start;
  padding: clamp(5rem, 8vw, 8rem) clamp(1rem, 3vw, 2rem) clamp(2rem, 5vw, 4rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/editorial/hero-main.webp");
  background-size: cover;
  background-position: 72% 22%;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 13, 18, 0.34), rgba(8, 13, 18, 0.9) 72%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent-soft);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.96;
}

h1 {
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: clamp(3.3rem, 13vw, 9rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h1 span {
  color: #ffe083;
}

.kinetic-type {
  will-change: transform;
}

.hero h1.kinetic-type {
  transform: translate3d(0, calc(var(--type-drift, 0px) * 0.6), 0);
}

.section-heading h2.kinetic-type {
  transform: translate3d(0, calc(var(--type-drift, 0px) * 0.35), 0);
}

.hero-intro {
  color: var(--muted);
  max-width: 65ch;
  margin: 1.2rem 0 1.8rem;
}

.button {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.8rem;
  color: var(--bg);
  background: linear-gradient(140deg, var(--accent), #ffe083);
  padding: 0.95rem 1.2rem;
}

.section {
  width: min(var(--max), 100% - 2rem);
  margin: 0 auto;
  padding: var(--section-space) 0 0;
}

.section-heading {
  margin-bottom: clamp(1rem, 2.2vw, 1.6rem);
}

.section-heading h2 {
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: clamp(2rem, 7vw, 4.3rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: stretch;
}

.about-photo {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-copy {
  color: #d6e0ea;
  font-size: 1.02rem;
}

.about-copy p {
  margin: 0 0 1rem;
}

blockquote {
  margin: 1.4rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.03);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
}

blockquote cite {
  display: block;
  font-style: normal;
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  color: var(--muted);
}

.parallax-break {
  width: min(var(--max), 100% - 2rem);
  margin: var(--section-space) auto 0;
}

.parallax-media {
  overflow: hidden;
  height: clamp(250px, 48vw, 580px);
}

.parallax-media img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: var(--focus-x, 50%) var(--focus-y, 50%);
  transform: translateY(-8%);
  will-change: transform;
}

.media-list {
  display: grid;
  gap: 0.65rem;
}

.records-list {
  display: grid;
  gap: 0.65rem;
}

.record-item {
  text-decoration: none;
  display: grid;
  grid-template-columns: 210px 1fr auto;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.9rem 0.2rem;
  transform: translate3d(0, 0, 0);
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 220ms ease,
    color 220ms ease;
}

.record-region {
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: clamp(1.2rem, 2.1vw, 1.65rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.record-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: #dbe5f0;
}

.record-item time {
  color: var(--muted);
  white-space: nowrap;
  font-size: 0.9rem;
}

.record-item:hover,
.record-item:focus-visible {
  transform: translate3d(0, -3px, 0);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.media-list a {
  text-decoration: none;
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.9rem 0.2rem;
  transform: translate3d(0, 0, 0);
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 220ms ease;
}

.media-list a:hover,
.media-list a:focus-visible {
  transform: translate3d(0, -3px, 0);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.media-list span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
}

.media-publication {
  display: flex;
  justify-content: center;
  align-items: center;
}

.media-publication img {
  max-width: 120px;
  max-height: 34px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: grayscale(1) brightness(0) invert(1) contrast(1.45);
}

.media-list time {
  color: var(--muted);
  white-space: nowrap;
  font-size: 0.9rem;
}

.travel {
  padding-top: var(--section-space);
}

.travel-flags {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 0.4rem;
  align-items: center;
}

.travel-flag {
  display: inline-block;
  font-size: clamp(1.4rem, 2.1vw, 2.1rem);
  line-height: 1;
  flex: 0 1 auto;
}

.projects {
  position: relative;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.project-card {
  background: linear-gradient(180deg, rgba(31, 42, 56, 0.72), rgba(17, 24, 33, 0.9));
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  flex: 0 0 260px;
}

.project-card div {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card h3 {
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.project-card p {
  margin: 0 0 0.7rem;
  color: #d5dfeb;
}

.gallery-stage {
  position: relative;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.gallery-feature {
  margin: 0;
}

.gallery-feature-media {
  position: relative;
  width: 100%;
  height: min(72vh, 760px);
}

.gallery-feature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity 420ms ease;
}

.gallery-feature-media img.is-visible {
  opacity: 1;
}

.gallery-feature figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0.9rem;
  background: rgba(9, 13, 17, 0.84);
  color: var(--muted);
  font-size: 0.82rem;
}

#gallery-feature-caption {
  display: none;
}

.gallery-autoplay-toggle {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}

.gallery-autoplay-toggle:hover,
.gallery-autoplay-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.gallery-progress {
  height: 2px;
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
}

#gallery-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  transform-origin: left center;
  transform: scaleX(0);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(9, 13, 17, 0.65);
  color: var(--text);
  width: 42px;
  height: 42px;
  cursor: pointer;
  z-index: 2;
}

.gallery-nav.prev {
  left: 0.8rem;
}

.gallery-nav.next {
  right: 0.8rem;
}

.gallery-nav:hover,
.gallery-nav:focus-visible {
  border-color: var(--accent-soft);
}

.gallery-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(120px, 1fr);
  gap: 0.7rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}

.gallery-item {
  margin: 0;
  border: 2px solid transparent;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  opacity: 0.68;
  transition: opacity 180ms ease, border-color 180ms ease, transform 180ms ease;
  scroll-snap-align: start;
}

.gallery-item.is-active {
  opacity: 1;
  border-color: var(--accent-soft);
  transform: translateY(-2px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.timeline-list {
  --timeline-dot-size: 11px;
  --timeline-indent: 1.2rem;
  --timeline-progress: 0%;
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  border-left: 2px solid var(--line);
}

.timeline-list::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  width: 2px;
  height: var(--timeline-progress);
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  pointer-events: none;
}

.timeline-list li {
  margin: 0 0 0 var(--timeline-indent);
  padding: 0 0 1.25rem 1.2rem;
  position: relative;
}

.timeline-list li::before {
  content: "";
  position: absolute;
  left: calc((var(--timeline-indent) * -1) - (var(--timeline-dot-size) / 2));
  top: 0.35rem;
  width: var(--timeline-dot-size);
  height: var(--timeline-dot-size);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 210, 74, 0.28);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.timeline-list span {
  display: block;
  font-family: "Bebas Neue", "Impact", sans-serif;
  letter-spacing: 0.04em;
  font-size: 1.8rem;
}

.timeline-list p {
  margin: 0;
  color: #d5dfeb;
}

.timeline-list li.is-active::before {
  transform: scale(1.18);
  box-shadow: 0 0 0 6px rgba(255, 210, 74, 0.18);
}

.timeline-list li.is-active span {
  color: var(--accent-soft);
}

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

.team-card {
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
}

.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.team-card h3 {
  margin: 0.8rem 0 0.3rem;
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: 2rem;
}

.team-links {
  display: flex;
  gap: 0.8rem;
  font-size: 1.2rem;
}

.team-links a {
  color: var(--muted);
}

.team-links a:hover,
.team-links a:focus-visible {
  color: var(--text);
}

.contact-wrap {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.contact-wrap a {
  text-decoration: none;
  border: 0;
  padding: 0.65rem 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex: 1 1 0;
  text-align: center;
  white-space: nowrap;
}

.contact-wrap a:hover,
.contact-wrap a:focus-visible {
  color: var(--accent-soft);
}

.contact-image {
  margin: 0;
}

.contact-image img {
  width: 100%;
  object-fit: cover;
  object-position: 72% center;
  display: block;
}

/* Cinematic image reveal (feature 2) */
.cinematic-target {
  opacity: 1;
  transform: none;
  clip-path: none;
}

.cinematic-target.cinematic-prep {
  opacity: 1;
  transform: scale(1.02);
  clip-path: inset(0 0 0 0);
  filter: saturate(0.94) contrast(0.94);
  transition:
    transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 700ms ease;
}

.cinematic-target.is-cinematic-visible {
  opacity: 1;
  transform: scale(1);
  clip-path: inset(0 0 0 0);
  filter: none;
}

.site-footer {
  width: min(var(--max), 100% - 2rem);
  margin: 0 auto;
  padding: 1.2rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-size: 0.82rem;
}

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

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

@media (max-width: 960px) {
  .about-grid,
  .project-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: fixed;
    inset: 57px 0 auto 0;
    background: rgba(9, 13, 17, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    flex-direction: column;
    padding: 0.9rem 1rem 1rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-block;
  }
}

@media (max-width: 760px) {
  .hero-bg {
    background-position: 82% 22%;
  }

  .contact-image img {
    object-position: 82% center;
  }

  .records-list {
    gap: 0.45rem;
  }

  .record-item {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .contact-wrap {
    flex-wrap: wrap;
  }

  .contact-wrap a {
    flex: 1 1 calc(50% - 0.8rem);
  }

  .media-list a {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .media-publication img {
    max-width: 140px;
  }

  .travel-flags {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
  }

  .gallery-feature-media {
    height: min(60vh, 480px);
  }

  .gallery-feature figcaption {
    flex-direction: column;
    gap: 0.2rem;
    align-items: flex-start;
  }

  .gallery-autoplay-toggle {
    margin-top: 0.2rem;
  }

  .gallery-nav {
    width: 36px;
    height: 36px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .parallax-media img,
  .hero-bg,
  .cinematic-target {
    transition: none;
    transform: none !important;
    clip-path: none !important;
    opacity: 1 !important;
  }

  .kinetic-type {
    transform: none !important;
  }

  .record-item,
  .media-list a {
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
  }

  body::before {
    animation: none !important;
  }

  .gallery-feature-media img {
    transition: none !important;
  }
}
