:root {
  color-scheme: dark;
  --black: #080706;
  --black-soft: #11100d;
  --ivory: #f4eee1;
  --ivory-muted: #c9bea8;
  --smoke: #8b8374;
  --line: rgba(244, 238, 225, 0.18);
  --line-strong: rgba(244, 238, 225, 0.34);
  --brass: #b99a5f;
  --panel: rgba(17, 16, 13, 0.78);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(244, 238, 225, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(244, 238, 225, 0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent 72%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: radial-gradient(
    640px circle at var(--cursor-x, 50%) var(--cursor-y, 18%),
    rgba(185, 154, 95, 0.16),
    transparent 42%
  );
  opacity: 0.8;
  transition: opacity 240ms ease;
}

a {
  color: inherit;
}

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

button {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: linear-gradient(to bottom, rgba(8, 7, 6, 0.82), transparent);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  color: var(--ivory);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(244, 238, 225, 0.08);
}

.nav-links {
  gap: 8px;
}

.nav-links a {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--ivory-muted);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.nav-links a:hover {
  border-color: var(--line);
  color: var(--ivory);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 120px clamp(20px, 5vw, 72px) 78px;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(244, 238, 225, 0.12) 34%, transparent 48%),
    linear-gradient(76deg, transparent 0 62%, rgba(185, 154, 95, 0.1) 72%, transparent 84%);
  mix-blend-mode: screen;
  opacity: 0.42;
  animation: light-sweep 12s ease-in-out infinite alternate;
}

.collage-stage {
  position: relative;
  z-index: 1;
  width: min(1360px, 100%);
  min-height: min(880px, calc(100svh - 156px));
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  grid-template-rows: minmax(260px, 1fr) minmax(260px, 1fr);
  gap: 1px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(244, 238, 225, 0.08);
  background: rgba(244, 238, 225, 0.08);
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.46);
}

.collage-panel {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--black-soft);
}

.collage-image-button {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.collage-image-button:focus-visible,
.collage-arrow:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 4px;
}

.collage-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  pointer-events: none;
  transform: scale(1.03);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.collage-panel-b img,
.collage-panel-d img {
  animation-delay: -8s;
}

.collage-panel::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(to top, rgba(8, 7, 6, 0.68), transparent 58%),
    linear-gradient(90deg, rgba(8, 7, 6, 0.22), transparent);
}

.collage-panel-a {
  grid-column: 1;
  grid-row: 1;
}

.collage-panel-b {
  grid-column: 2;
  grid-row: 1;
}

.collage-panel-c {
  grid-column: 1;
  grid-row: 2;
}

.collage-panel-d {
  grid-column: 2;
  grid-row: 2;
}

.collage-panel figcaption {
  position: absolute;
  left: clamp(20px, 4vw, 48px);
  bottom: clamp(106px, 8vw, 126px);
  z-index: 2;
  width: min(320px, calc(100% - 40px));
  display: grid;
  gap: 12px;
}

.collage-panel figcaption span {
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 400;
  line-height: 1;
}

.collage-panel figcaption p {
  color: rgba(244, 238, 225, 0.78);
  font-size: 14px;
  line-height: 1.5;
}

.hero-title-wrap {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  display: grid;
  place-items: start center;
  padding-top: clamp(58px, 8vw, 92px);
}

.hero-title-wrap h1 {
  text-shadow: 0 14px 60px rgba(0, 0, 0, 0.42);
}

.collage-arrow {
  position: absolute;
  right: clamp(18px, 3vw, 44px);
  bottom: clamp(18px, 3vw, 38px);
  z-index: 6;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 238, 225, 0.72);
  border-radius: 999px;
  background: rgba(8, 7, 6, 0.36);
  color: var(--ivory);
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
  text-decoration: none;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.collage-arrow:hover {
  background: rgba(244, 238, 225, 0.14);
  transform: translateY(3px);
}

.hero-actions {
  position: absolute;
  left: clamp(20px, 4vw, 48px);
  right: clamp(20px, 4vw, 48px);
  bottom: clamp(20px, 4vw, 42px);
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  pointer-events: none;
}

.hero-actions .button {
  pointer-events: auto;
}

.hero-title-wrap h1,
.collage-panel figcaption,
.hero-actions {
  animation: rise-in 820ms ease both;
}

.collage-panel figcaption {
  animation-delay: 160ms;
}

.hero-actions {
  animation-delay: 270ms;
}

.eyebrow {
  color: var(--brass);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

h1 {
  color: var(--ivory);
  font-family: "Bodoni 72", Didot, "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-size: clamp(96px, 16vw, 220px);
  font-style: italic;
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: 0;
}

h2 {
  color: var(--ivory);
  font-family: "Bodoni 72", Didot, "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 84px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  color: var(--ivory);
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: 0;
}

p {
  color: var(--ivory-muted);
  font-size: 17px;
  line-height: 1.72;
}

.hero-copy {
  max-width: 620px;
  color: var(--ivory);
  font-size: clamp(20px, 2.6vw, 32px);
  line-height: 1.36;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button-primary {
  border: 1px solid var(--ivory);
  background: var(--ivory);
  color: var(--black);
}

.button-primary:hover {
  box-shadow: 0 18px 48px rgba(244, 238, 225, 0.18);
  transform: translateY(-2px);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(8, 7, 6, 0.38);
  color: var(--ivory);
}

.button-secondary:hover {
  border-color: var(--ivory);
  background: rgba(244, 238, 225, 0.08);
  transform: translateY(-2px);
}

.section-band {
  padding: clamp(72px, 9vw, 132px) clamp(20px, 5vw, 72px);
}

.section-heading {
  width: min(980px, 100%);
  display: grid;
  gap: 18px;
  margin-bottom: 36px;
}

.intro {
  background: var(--black);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.intro-grid article {
  min-height: 260px;
  display: grid;
  align-content: space-between;
  gap: 28px;
  background: var(--black-soft);
  padding: 28px;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.intro-grid article:hover {
  background: #171511;
  transform: translateY(-2px);
}

.intro-grid span,
.notion-card span {
  color: var(--brass);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: #0d0c0a;
}

.feature-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
}

.feature-image img,
.route-panel img {
  transition: transform 700ms ease;
}

.feature-image:hover img,
.route-panel:hover img {
  transform: scale(1.035);
}

.feature-image img,
.route-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-copy {
  display: grid;
  gap: 24px;
}

.notion {
  background: var(--black);
}

.notion-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.notion-card {
  min-height: 300px;
  display: grid;
  align-content: start;
  gap: 18px;
  background: #11100d;
  padding: 24px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition:
    background 180ms ease,
    transform 180ms ease,
    border-color 180ms ease;
}

.notion-card.is-pending {
  background:
    linear-gradient(135deg, rgba(185, 154, 95, 0.08), transparent 42%),
    #11100d;
}

.notion-card.is-pending p {
  color: rgba(201, 190, 168, 0.72);
}

.notion-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: radial-gradient(
    220px circle at var(--card-x, 50%) var(--card-y, 50%),
    rgba(244, 238, 225, 0.11),
    transparent 58%
  );
  opacity: 0;
  transition: opacity 180ms ease;
}

.notion-card:hover {
  background: #181610;
  transform: translateY(-2px);
}

.notion-card:hover::before {
  opacity: 1;
}

.notion-card > * {
  position: relative;
  z-index: 1;
}

.notion-card strong {
  color: var(--ivory);
  font-family: "Bodoni 72", Didot, "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.04;
}

.notion-status {
  width: fit-content;
  border: 1px solid rgba(185, 154, 95, 0.48);
  border-radius: 999px;
  margin-top: 6px;
  padding: 5px 10px;
  color: var(--brass);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0;
}

.routes {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.72fr);
  gap: 1px;
  background: var(--line);
}

.route-panel {
  min-height: 420px;
  overflow: hidden;
  background: var(--black-soft);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

.route-panel-large {
  grid-row: span 2;
}

.route-copy {
  display: grid;
  align-content: center;
  gap: 22px;
  padding: clamp(28px, 5vw, 56px);
}

.site-footer {
  min-height: 92px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 24px clamp(20px, 5vw, 72px);
  color: var(--smoke);
}

.site-footer a {
  color: var(--ivory);
  text-decoration: none;
}

.hero-transition {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  pointer-events: none;
}

.hero-transition[hidden] {
  display: none;
}

.hero-transition::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(900px circle at var(--transition-center-x, 50%) var(--transition-center-y, 50%), rgba(185, 154, 95, 0.16), transparent 48%),
    rgba(5, 5, 4, 0.9);
  opacity: 0;
  transition: opacity 520ms ease;
}

.hero-transition.is-expanding::before {
  opacity: 1;
}

.hero-transition.is-fading {
  opacity: 0;
  transition: opacity 360ms ease;
}

.hero-transition-image {
  position: fixed;
  left: var(--transition-x, 0);
  top: var(--transition-y, 0);
  z-index: 1;
  width: var(--transition-w, 100px);
  height: var(--transition-h, 100px);
  border: 1px solid rgba(244, 238, 225, 0.18);
  object-fit: cover;
  background: rgba(8, 7, 6, 0.72);
  opacity: 0.96;
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.7);
  transform: translate3d(0, 0, 0);
  transition:
    left 760ms cubic-bezier(0.18, 0.9, 0.2, 1),
    top 760ms cubic-bezier(0.18, 0.9, 0.2, 1),
    width 760ms cubic-bezier(0.18, 0.9, 0.2, 1),
    height 760ms cubic-bezier(0.18, 0.9, 0.2, 1),
    border-color 760ms ease,
    opacity 240ms ease;
}

.hero-transition.is-expanding .hero-transition-image {
  left: 0;
  top: 0;
  width: 100vw;
  height: 100svh;
  border-color: transparent;
  opacity: 1;
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.1) translate3d(-1.2%, -0.8%, 0);
  }
}

@keyframes light-sweep {
  from {
    transform: translateX(-3%);
    opacity: 0.22;
  }

  to {
    transform: translateX(4%);
    opacity: 0.46;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .intro-grid,
  .feature,
  .routes {
    grid-template-columns: 1fr;
  }

  .notion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collage-stage {
    min-height: 780px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 0.9fr 1fr;
  }

  .route-panel-large {
    grid-row: auto;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: absolute;
    min-height: 68px;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    padding: 8px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    padding-top: 88px;
  }

  .intro-grid,
  .notion-grid {
    grid-template-columns: 1fr;
  }

  .collage-stage {
    min-height: 720px;
    grid-template-columns: 1fr;
    grid-template-rows: 180px 180px 1fr 180px;
  }

  .collage-panel-a,
  .collage-panel-b,
  .collage-panel-c,
  .collage-panel-d {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-title-wrap {
    place-items: start center;
    padding-top: 106px;
  }

  .collage-panel figcaption {
    bottom: 86px;
  }

  .hero-actions {
    left: 20px;
    right: 20px;
  }

  .intro-grid article,
  .notion-card {
    min-height: 220px;
  }

}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
