
:root {
  --canvas: #0e0c0a;
  --surface: #161310;
  --paper: #e7dccb;
  --paper-ink: #1b1612;
  --paper-soft: #6d6256;
  --ink: #f3eee6;
  --ink-soft: #b4a594;
  --accent: #cbb48a;
  --line: rgba(243, 238, 230, 0.14);
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --text: "Outfit", "Avenir Next", system-ui, sans-serif;
  --gutter: clamp(1.1rem, 3.6vw, 3.25rem);
}

html {
  background: var(--canvas);
  color: var(--ink);
}

body {
  font-family: var(--text);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  background: var(--canvas);
  color: var(--ink);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 50;
}

.progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
}

.site-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.05rem var(--gutter);
  color: #f3eee6;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-weight: 480;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  justify-self: start;
  color: inherit;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.site-nav a,
.inquire {
  color: inherit;
  text-decoration: none;
}

.inquire {
  justify-self: end;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 400;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.12rem;
}

.cinematic {
  position: relative;
  height: 420vh;
}

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #070605;
}

.poster,
.still,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.still {
  opacity: 0;
  transition: opacity 0.25s linear;
  z-index: 0;
}

.still:first-of-type {
  opacity: 1;
}

.hero-video {
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.hero-video.is-ready {
  opacity: 1;
}

.scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 6, 5, 0.72) 0%, rgba(8, 6, 5, 0.28) 38%, rgba(8, 6, 5, 0.08) 62%, rgba(8, 6, 5, 0.2) 100%),
    linear-gradient(180deg, rgba(8, 6, 5, 0.28) 0%, transparent 22%, transparent 72%, rgba(8, 6, 5, 0.55) 100%);
  pointer-events: none;
}

.stage-copy {
  position: absolute;
  inset: 0;
  padding: 7rem var(--gutter) 5.5rem;
  max-width: min(44rem, 92vw);
  z-index: 2;
}

.kicker {
  position: absolute;
  top: 6.2rem;
  left: var(--gutter);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  font-weight: 400;
}

.scene {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: auto;
  bottom: 4.4rem;
  max-width: min(14.5em, 68vw);
  transform: translate3d(0, 18px, 0);
  opacity: 0;
  will-change: opacity, transform;
  pointer-events: none;
}

.scene:first-of-type,
.scene.is-on {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.scene h1,
.scene h2 {
  font-family: var(--display);
  font-weight: 320;
  font-size: clamp(1.85rem, 3.6vw, 3.15rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  text-wrap: balance;
  text-shadow: 0 12px 40px rgba(8, 6, 5, 0.35);
}

.scene p {
  margin-top: 0.85rem;
  max-width: 32ch;
  color: var(--ink-soft);
  font-size: clamp(0.92rem, 1.2vw, 1.08rem);
  font-weight: 300;
}

.tide {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 1.35rem;
  height: 1px;
  background: var(--line);
  z-index: 3;
}

.tide b {
  position: absolute;
  left: 0;
  top: -1px;
  height: 2px;
  width: 0%;
  background: var(--accent);
}

.tide span {
  position: absolute;
  right: 0;
  bottom: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.wrap {
  width: min(1120px, calc(100% - var(--gutter) * 2));
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}

.display {
  font-family: var(--display);
  font-weight: 320;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
}

.manifesto {
  background: var(--paper);
  color: var(--paper-ink);
  padding: clamp(4.5rem, 12vh, 8.5rem) 0 clamp(3.5rem, 9vh, 6.5rem);
}

.manifesto .eyebrow {
  color: var(--paper-soft);
}

.manifesto .display {
  font-size: clamp(1.85rem, 3.8vw, 3.15rem);
  max-width: 22ch;
  margin-bottom: 3.25rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 4rem;
  max-width: 48rem;
}

.split p {
  color: var(--paper-soft);
  font-size: 1.02rem;
  line-height: 1.65;
}

.method {
  background: var(--paper);
  color: var(--paper-ink);
  padding: 0 0 clamp(5rem, 12vh, 8rem);
  border-top: 1px solid rgba(27, 22, 18, 0.1);
}

.method-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem 2.8rem;
  padding-top: 2.4rem;
  margin: 0;
}

.method-list h3 {
  font-family: var(--display);
  font-weight: 480;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
}

.method-list p {
  color: var(--paper-soft);
  max-width: 28ch;
  line-height: 1.6;
}

.atlas {
  background: var(--canvas);
  padding: clamp(4.5rem, 12vh, 8rem) 0;
}

.atlas .display {
  font-size: clamp(2rem, 4vw, 3.3rem);
  max-width: 16ch;
}

.atlas-head {
  margin-bottom: 3rem;
}

.atlas-list {
  list-style: none;
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 0;
}

.atlas-list li {
  display: grid;
  grid-template-columns: minmax(10rem, 0.9fr) minmax(12rem, 0.9fr) 1.4fr;
  gap: 1rem 2rem;
  align-items: baseline;
  padding: 1.55rem 0;
  border-bottom: 1px solid var(--line);
}

.atlas-place {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 320;
  letter-spacing: -0.02em;
}

.atlas-meta {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.atlas-list p {
  color: var(--ink-soft);
  max-width: 36ch;
}

.close {
  background: var(--surface);
  padding: clamp(5rem, 16vh, 10rem) 0 4.5rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.close .display {
  font-size: clamp(2.1rem, 4.6vw, 3.8rem);
  max-width: 16ch;
  margin-bottom: 1.6rem;
}

.close-body {
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 2.4rem;
}

.write {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 320;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.15rem;
  color: inherit;
  text-decoration: none;
}

.fine {
  margin-top: 3.5rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

@media (max-width: 860px) {
  .site-bar {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .cinematic {
    height: 320vh;
  }

  .stage-copy {
    padding: 0 var(--gutter) 4.6rem;
  }

  .kicker {
    display: none;
  }

  .scene {
    top: auto;
    bottom: 4.6rem;
    max-width: 16ch;
  }

  .scene h1,
  .scene h2 {
    font-size: clamp(1.85rem, 9.4vw, 2.6rem);
    line-height: 1.02;
  }

  .scrim {
    background: linear-gradient(
      180deg,
      rgba(8, 6, 5, 0.28) 0%,
      rgba(8, 6, 5, 0.08) 32%,
      rgba(8, 6, 5, 0.2) 55%,
      rgba(8, 6, 5, 0.78) 100%
    );
  }

  .hero-video,
  .poster {
    object-position: 58% center;
  }

  .split,
  .method-list,
  .atlas-list li {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .manifesto .display,
  .atlas .display,
  .close .display {
    max-width: 14ch;
  }

  .close {
    min-height: auto;
    padding-bottom: 5rem;
  }
}

@media (max-height: 780px) {
  .kicker {
    top: 5.4rem;
  }

  .scene {
    bottom: 3.5rem;
    max-width: min(16em, 72vw);
  }

  .scene h1,
  .scene h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
  }

  .scene p {
    margin-top: 0.55rem;
    font-size: 0.92rem;
  }
}

.atlas-place a,
.method-list a,
.write {
  color: inherit;
  text-decoration: none;
}

.method-list a:hover,
.atlas-place a:hover {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .cinematic {
    height: auto;
  }

  .stage {
    position: relative;
    height: 100vh;
  }

  .scene {
    position: relative;
    opacity: 1;
    transform: none;
    left: 0;
    right: 0;
    top: auto;
    margin-bottom: 1.8rem;
  }

  .stage-copy {
    position: relative;
    background: linear-gradient(180deg, transparent, var(--canvas));
    padding-top: 40vh;
  }
}


@media (min-width: 700px) {
  .site-nav { display: flex !important; }
}
@media print {
  .cinematic { height: auto !important; }
  .stage { position: relative !important; height: 80vh !important; }
  .grain, .progress { display: none; }
}
