:root {
  --paper: #eee8df;
  --paper-deep: #ddd3c7;
  --ink: #171714;
  --muted: #5f5a53;
  --cream: #f5f0e8;
  --silver: #c7c9ca;
  --line-light: rgba(255,255,255,.48);
  --line-dark: rgba(23,23,20,.28);
  --edge: clamp(14px, 1.8vw, 26px);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: white;
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
}

a {
  color: inherit;
}

::selection {
  background: rgba(238, 232, 223, .86);
  color: var(--ink);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--edge) + 12px) calc(var(--edge) + 18px);
  mix-blend-mode: difference;
  color: #fff;
  pointer-events: none;
}

.brand,
.section-nav {
  pointer-events: auto;
}

.brand {
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .34em;
}

.section-nav {
  display: flex;
  gap: 9px;
}

.section-nav a {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  text-decoration: none;
  font-size: 9px;
  letter-spacing: .06em;
  opacity: .48;
  transition: opacity .35s ease, background-color .35s ease, transform .35s ease;
}

.section-nav a:hover,
.section-nav a.is-active {
  opacity: 1;
  background: rgba(255,255,255,.12);
  transform: scale(1.06);
}

.scene {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  /* Follow the visible viewport as mobile browser toolbars expand/collapse. */
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}

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

.hero-media {
  background: #171714 url("/src/public/videos/00_hero.jpg?v=20260926-hq") center / cover no-repeat;
}

.scene-media {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.scene-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media .scene-video,
.scene-media .scene-video {
  opacity: 0;
}

.hero-media .scene-video.has-frame,
.scene-media .scene-video.has-frame {
  opacity: 1;
}

.scene-media--work {
  background-image: url("/src/public/videos/01_work_and_play.jpg?v=20260926-hq");
}

.scene-media--design {
  background-image: url("/src/public/videos/02_design.jpg?v=20260926-hq");
}

.scene-media--intelligence {
  background-image: url("/src/public/videos/03_intelligence.jpg?v=20260926-hq");
}

.scene-shade {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(12,12,11,.13), rgba(12,12,11,.15) 44%, rgba(12,12,11,.46)),
    linear-gradient(90deg, rgba(12,12,11,.28), transparent 52%);
}

.scene-shade--hero {
  background:
    linear-gradient(180deg, rgba(10,10,9,.34), rgba(10,10,9,.38)),
    radial-gradient(circle at 50% 45%, transparent 10%, rgba(10,10,9,.16) 100%);
}

.scene-shade--warm {
  background:
    linear-gradient(180deg, rgba(45,34,24,.12), rgba(26,22,18,.43)),
    linear-gradient(90deg, rgba(31,24,18,.28), transparent 58%);
}

.scene-shade--quiet {
  background:
    linear-gradient(180deg, rgba(17,18,16,.08), rgba(17,18,16,.42)),
    linear-gradient(90deg, rgba(17,18,16,.26), transparent 58%);
}

.architectural-frame {
  --frame-color: var(--line-light);
  position: absolute;
  z-index: 5;
  inset: var(--edge);
  pointer-events: none;
  border: 1px solid var(--frame-color);
}

.architectural-frame::before,
.architectural-frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.architectural-frame::before {
  inset: 6px;
  border: 1px solid color-mix(in srgb, var(--frame-color) 36%, transparent);
}

.architectural-frame::after {
  top: 50%;
  left: -7px;
  right: -7px;
  height: 1px;
  background:
    linear-gradient(90deg,
      var(--frame-color) 0 18px,
      transparent 18px calc(100% - 18px),
      var(--frame-color) calc(100% - 18px));
  opacity: .72;
}

.architectural-frame--soft {
  --frame-color: rgba(255,255,255,.38);
}

.architectural-frame--ink {
  --frame-color: var(--silver);
}

.scene--summary .architectural-frame::before {
  border-color: var(--silver);
}

.scene--summary .architectural-frame::after {
  opacity: 1;
}

.frame-corner {
  position: absolute;
  width: 20px;
  height: 20px;
}

.frame-corner::before,
.frame-corner::after {
  content: "";
  position: absolute;
  background: var(--frame-color);
}

.frame-corner::before {
  width: 32px;
  height: 1px;
  top: 0;
}

.frame-corner::after {
  width: 1px;
  height: 32px;
  left: 0;
}

.frame-corner--tl {
  top: -7px;
  left: -7px;
}

.frame-corner--tr {
  top: -7px;
  right: -7px;
  transform: rotate(90deg);
}

.frame-corner--br {
  right: -7px;
  bottom: -7px;
  transform: rotate(180deg);
}

.frame-corner--bl {
  left: -7px;
  bottom: -7px;
  transform: rotate(270deg);
}

.hero-copy,
.outcome,
.summary {
  position: relative;
  z-index: 6;
}

.hero-copy {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 10vw;
  text-align: center;
}

.hero-copy h1 {
  margin: 0;
  max-width: 1100px;
  font-family: var(--serif);
  font-size: clamp(4.2rem, 9vw, 10.5rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .86;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(0,0,0,.16);
}

.scroll-cue {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: calc(var(--edge) + 22px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
  text-decoration: none;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.scroll-cue__line {
  width: 46px;
  height: 1px;
  background: rgba(255,255,255,.68);
  position: relative;
  overflow: hidden;
}

.scroll-cue__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: white;
  transform: translateX(-100%);
  animation: sweep 2.8s ease-in-out infinite;
}

.outcome {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding:
    clamp(110px, 15vh, 180px)
    clamp(42px, 9vw, 150px)
    clamp(74px, 12vh, 140px);
}

.eyebrow {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.eyebrow span {
  opacity: .62;
}

.outcome h2,
.summary h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.outcome h2 {
  max-width: 980px;
  font-size: clamp(4rem, 8vw, 9.5rem);
  line-height: .88;
}

.scene--summary {
  background: #000;
  color: var(--silver);
}

body:has(.scene--summary.is-current) .site-header {
  mix-blend-mode: normal;
  color: var(--silver);
}

body:has(.scene--summary.is-current) .section-nav a {
  border-color: var(--silver);
  opacity: 1;
}

body:has(.scene--summary.is-current) .section-nav a:hover,
body:has(.scene--summary.is-current) .section-nav a.is-active {
  background: rgba(199, 201, 202, .12);
}

.summary {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: clamp(120px, 16vh, 210px) clamp(42px, 9vw, 150px) clamp(90px, 11vh, 130px);
  text-align: center;
}

.summary-logo-frame {
  width: min(34vw, 360px);
  aspect-ratio: 1.52;
  margin-bottom: clamp(22px, 3vh, 32px);
  overflow: hidden;
  background: #000;
}

.summary-logo-video {
  object-position: center;
  background: #000;
  mask-image: radial-gradient(ellipse 75% 78% at center, #000 58%, transparent 100%);
}

.summary-copy {
  max-width: 780px;
  margin: 0;
  color: var(--silver);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  font-weight: 400;
  line-height: 1.2;
}

.summary-links {
  width: min(640px, 100%);
  margin-top: clamp(30px, 5vh, 48px);
  border-top: 1px solid var(--silver);
}

.summary-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 14px 0;
  border-bottom: 1px solid var(--silver);
  color: var(--silver);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.summary-links a span:last-child {
  transition: transform .3s ease;
}

.summary-links a:hover span:last-child {
  transform: translate(4px,-4px);
}

.email-link {
  width: fit-content;
  margin-top: 30px;
  color: var(--silver);
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.3vw, 2.3rem);
}

.footer {
  position: absolute;
  z-index: 7;
  right: calc(var(--edge) + 18px);
  bottom: calc(var(--edge) + 15px);
  left: calc(var(--edge) + 18px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--silver);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .18em;
}

.scene .outcome > *,
.scene .summary > * {
  opacity: 0;
  transform: translateY(20px);
}

.scene.is-current .outcome > *,
.scene.is-current .summary > * {
  animation: reveal .8s cubic-bezier(.2,.7,.2,1) forwards;
}

.scene.is-current .outcome > *:nth-child(2),
.scene.is-current .summary > *:nth-child(2) {
  animation-delay: .07s;
}

.scene.is-current .outcome > *:nth-child(3),
.scene.is-current .summary > *:nth-child(3) {
  animation-delay: .14s;
}

.scene.is-current .summary > *:nth-child(4) { animation-delay: .2s; }

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


@keyframes sweep {
  0%, 15% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}

@media (max-width: 700px) {
  .site-header {
    padding: calc(var(--edge) + 10px) calc(var(--edge) + 13px);
  }

  .section-nav {
    gap: 6px;
  }

  .section-nav a {
    width: 28px;
    height: 28px;
    font-size: 8px;
  }

  .brand {
    font-size: 9px;
    letter-spacing: .28em;
  }

  .hero-copy h1 {
    font-size: clamp(4.2rem, 19vw, 7rem);
  }

  .outcome {
    padding:
      115px
      calc(var(--edge) + 24px)
      calc(var(--edge) + 62px);
  }

  .outcome h2 {
    font-size: clamp(3.8rem, 17vw, 6.6rem);
  }

  .summary {
    padding: 115px calc(var(--edge) + 24px) 130px;
  }

  .summary-logo-frame {
    width: min(72vw, 320px);
    margin-bottom: 22px;
  }

  .summary-copy {
    max-width: 100%;
  }

  .footer {
    flex-wrap: wrap;
    line-height: 1.7;
  }

  .scene-media--work {
    background-position: 61% center;
  }

  .scene-media--design {
    background-position: 57% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .scene .outcome > *,
  .scene .summary > * {
    opacity: 1;
    transform: none;
  }
}
