:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #62615c;
  --paper: #f7f2e8;
  --paper-deep: #e9dfce;
  --line: rgba(23, 23, 23, 0.14);
  --green: #296b58;
  --blue: #275e8f;
  --red: #c24735;
  --gold: #b98222;
  --shadow: 0 24px 70px rgba(35, 28, 18, 0.15);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(23, 23, 23, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 36px 36px;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 16%, rgba(194, 71, 53, 0.13), transparent 24%),
    radial-gradient(circle at 85% 24%, rgba(39, 94, 143, 0.12), transparent 27%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(233, 223, 206, 0.35));
  content: "";
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.signal-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.45;
  pointer-events: none;
}

.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  height: 4px;
  background: rgba(23, 23, 23, 0.08);
}

.scroll-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--green), var(--blue));
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  padding: 10px;
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: var(--radius);
  background: rgba(247, 242, 232, 0.78);
  box-shadow: 0 16px 44px rgba(35, 28, 18, 0.12);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(23, 23, 23, 0.08);
  color: var(--ink);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-panel {
  min-height: 100vh;
  padding: 128px 0 72px;
  scroll-margin-top: 110px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.55fr);
  gap: clamp(32px, 7vw, 84px);
  align-items: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  line-height: 0.98;
}

h1 {
  max-width: 940px;
  margin-bottom: 26px;
  font-size: clamp(4rem, 9vw, 8.8rem);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 6vw, 6rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.15;
}

.hero-lede,
.field-copy p,
.constellation-copy p,
.youtube-copy p,
.life-grid p {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  box-shadow: 7px 7px 0 rgba(23, 23, 23, 0.14);
  transform: translate(-3px, -3px);
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button.ghost {
  background: rgba(247, 242, 232, 0.7);
}

.hero-card {
  position: relative;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 252, 246, 0.68);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.photo-slot {
  position: relative;
  display: grid;
  min-height: 420px;
  place-items: end start;
  margin: 0;
  border-radius: 6px;
  color: var(--paper);
  overflow: hidden;
}

.photo-slot::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 38%, rgba(23, 23, 23, 0.58)),
    linear-gradient(135deg, rgba(39, 94, 143, 0.06), rgba(41, 107, 88, 0.3));
  content: "";
}

.photo-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 30%;
}

.photo-slot figcaption {
  position: relative;
  z-index: 1;
  padding: 24px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(3rem, 8vw, 5.3rem);
  line-height: 0.88;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.snapshot-grid span {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(247, 242, 232, 0.88);
  color: var(--muted);
  font-size: 0.92rem;
}

.snapshot-grid strong {
  display: block;
  color: var(--ink);
  font-size: 1.15rem;
}

.field-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.field-copy {
  position: sticky;
  top: 132px;
}

.note-stack {
  display: grid;
  gap: 18px;
  padding-top: 18vh;
}

.note-card {
  min-height: 220px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 252, 246, 0.78);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.note-card:nth-child(2) {
  transform: translateX(6%);
}

.note-card:nth-child(3) {
  transform: translateX(-4%);
}

.note-card:hover {
  box-shadow: 8px 8px 0 rgba(23, 23, 23, 0.12);
  transform: translateY(-4px);
}

.note-card:nth-child(2):hover,
.note-card:nth-child(3):hover {
  transform: translateY(-4px);
}

.note-card span {
  display: block;
  margin-bottom: 58px;
  color: var(--red);
  font-weight: 800;
}

.note-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.constellation-section {
  min-height: 115vh;
}

.constellation-copy {
  max-width: 860px;
}

.constellation {
  position: relative;
  min-height: 620px;
  margin-top: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(23, 23, 23, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.05) 1px, transparent 1px),
    rgba(255, 252, 246, 0.48);
  background-size: 54px 54px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.constellation::before {
  position: absolute;
  inset: 9% 8%;
  border: 1px dashed rgba(23, 23, 23, 0.18);
  border-radius: 50%;
  content: "";
}

.constellation::after {
  position: absolute;
  top: 19%;
  left: 10%;
  width: 78%;
  height: 58%;
  background:
    linear-gradient(28deg, transparent 49.8%, rgba(39, 94, 143, 0.22) 50%, transparent 50.2%),
    linear-gradient(152deg, transparent 49.8%, rgba(194, 71, 53, 0.18) 50%, transparent 50.2%),
    linear-gradient(92deg, transparent 49.8%, rgba(41, 107, 88, 0.2) 50%, transparent 50.2%);
  content: "";
  pointer-events: none;
}

.company-node {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 170px;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid rgba(23, 23, 23, 0.28);
  border-radius: 999px;
  background: rgba(247, 242, 232, 0.9);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.company-node:hover,
.company-node:focus-visible,
.company-node.is-active {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 6px 6px 0 rgba(23, 23, 23, 0.16);
  outline: none;
  transform: translate(-2px, -4px);
}

.node-nike { top: 11%; left: 18%; }
.node-pge { top: 24%; left: 42%; }
.node-newbalance { top: 14%; right: 12%; }
.node-adidas { top: 43%; left: 12%; }
.node-wai { top: 52%; left: 35%; }
.node-options { top: 39%; right: 25%; }
.node-cynergy { bottom: 18%; left: 19%; }
.node-adobe { bottom: 26%; right: 35%; }
.node-apple { bottom: 13%; right: 16%; }
.node-playmakers { bottom: 8%; left: 42%; }
.node-trials { top: 66%; right: 7%; }

.constellation-detail {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  width: min(360px, calc(100% - 44px));
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 242, 232, 0.92);
  box-shadow: 0 14px 38px rgba(35, 28, 18, 0.14);
}

.constellation-detail strong,
.constellation-detail span {
  display: block;
}

.constellation-detail strong {
  margin-bottom: 6px;
}

.constellation-detail span {
  color: var(--muted);
}

.youtube-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1fr);
  gap: clamp(28px, 7vw, 76px);
  align-items: center;
}

.video-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(23, 23, 23, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(194, 71, 53, 0.88), rgba(39, 94, 143, 0.92)),
    var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.video-frame::before {
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(247, 242, 232, 0.34);
  border-radius: 6px;
  content: "";
}

.play-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 44px solid transparent;
  border-bottom: 44px solid transparent;
  border-left: 70px solid rgba(247, 242, 232, 0.88);
  transform: translate(-38%, -50%);
}

.video-lines {
  position: absolute;
  right: 30px;
  bottom: 32px;
  left: 30px;
  display: grid;
  gap: 10px;
}

.video-lines span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(247, 242, 232, 0.75);
}

.video-lines span:nth-child(2) {
  width: 72%;
}

.video-lines span:nth-child(3) {
  width: 46%;
}

.youtube-copy {
  max-width: 680px;
}

.life-section {
  min-height: 82vh;
}

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

.life-grid article {
  min-height: 380px;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 252, 246, 0.74);
  box-shadow: var(--shadow);
}

.life-grid article:nth-child(2) {
  margin-top: 86px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 52px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

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

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

@media (max-width: 880px) {
  .site-header {
    top: 10px;
    width: min(100% - 20px, 680px);
  }

  .site-nav {
    gap: 0;
  }

  .site-nav a {
    padding: 10px 8px;
    font-size: 0.78rem;
  }

  main {
    width: min(100% - 24px, 720px);
  }

  .section-panel {
    min-height: auto;
    padding: 104px 0 56px;
  }

  .hero,
  .field-layout,
  .youtube-section,
  .life-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3.35rem, 18vw, 5.5rem);
  }

  h2 {
    font-size: clamp(2.5rem, 14vw, 4.3rem);
  }

  .hero-card {
    transform: none;
  }

  .photo-slot {
    min-height: 330px;
  }

  .field-copy {
    position: static;
  }

  .note-stack {
    padding-top: 0;
  }

  .note-card,
  .note-card:nth-child(2),
  .note-card:nth-child(3) {
    min-height: 190px;
    transform: none;
  }

  .constellation {
    display: grid;
    min-height: auto;
    gap: 10px;
    padding: 18px;
  }

  .constellation::before,
  .constellation::after {
    display: none;
  }

  .company-node,
  .constellation-detail {
    position: static;
    width: 100%;
    max-width: none;
  }

  .constellation-detail {
    order: -1;
  }

  .video-frame {
    aspect-ratio: 16 / 11;
  }

  .life-grid article,
  .life-grid article:nth-child(2) {
    min-height: auto;
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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

  .constellation-copy p,
  .field-copy p,
  .hero-lede,
  .youtube-copy p,
  .life-grid p {
    font-size: 1rem;
  }
}

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

  .signal-canvas {
    display: none;
  }
}
