@font-face {
  font-family: "Buksio Sans";
  src: url("assets/fonts/montserrat-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Buksio Sans";
  src: url("assets/fonts/montserrat-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #000;
  --white: #f3f4ef;
  --green: #93cd42;
  --muted: #a1a79c;
  --line: #22271f;
  background: var(--black);
  color: var(--white);
  font-family: "Buksio Sans", Arial, sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

* { box-sizing: border-box; }
body { margin: 0; }
::selection { color: #000; background: var(--green); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 7px; border-radius: 2px; }
main:focus { outline: none; }
svg { display: block; max-width: 100%; }
p, h1, h2 { margin: 0; }
h1, h2 { font-weight: 500; letter-spacing: -.065em; text-wrap: balance; }
h1 { font-size: clamp(3.5rem, 8.1vw, 8.4rem); line-height: 1.04; }
h2 { font-size: clamp(3.25rem, 7.25vw, 7.5rem); line-height: 1.08; }
.frame { width: min(100% - 112px, 1440px); margin-inline: auto; }
.green { color: var(--green); }
.muted { color: var(--muted); }
.eyebrow { color: var(--muted); font-size: .68rem; font-weight: 500; line-height: 1.6; letter-spacing: .18em; text-transform: uppercase; }
.quiet-copy { color: var(--muted); font-size: clamp(.9rem, 1.2vw, 1.05rem); line-height: 1.9; letter-spacing: -.01em; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 10; padding: 14px 20px; background: var(--green); color: #000; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.site-header { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; z-index: 2; }
.brand { display: inline-flex; align-items: center; min-height: 48px; }
.brand svg { width: 175px; height: auto; }
.event-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: .72rem; font-weight: 500; letter-spacing: .04em; }
.status-dot { display: inline-block; flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.small-arrow { margin-left: 10px; font-size: 1.1rem; color: var(--muted); }
.opening { isolation: isolate; position: relative; min-height: max(680px, calc(100svh - 112px)); display: flex; flex-direction: column; justify-content: center; padding-block: 90px 120px; }
.opening-copy { position: relative; z-index: 1; }
.opening-copy .eyebrow { margin-bottom: 30px; }
.scattered-field { position: absolute; z-index: -1; right: -42px; top: 1%; width: min(82vw, 1040px); height: 92%; opacity: .85; }
.field-labels { font-family: "Buksio Sans", Arial, sans-serif; }
.opening-bottom { position: absolute; inset: auto 0 36px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.opening-bottom p { font-size: .72rem; line-height: 1.85; color: var(--muted); }
.story-link { display: inline-flex; align-items: center; gap: 28px; min-height: 44px; font-size: .68rem; letter-spacing: .04em; }
.story-link span { color: var(--green); font-size: 1.25rem; }
.absence { position: relative; min-height: 980px; min-height: max(850px, 110svh); display: flex; flex-direction: column; justify-content: center; padding-block: 160px; }
.absence-copy { padding-left: 14%; }
.absence-copy .quiet-copy { margin-top: 40px; }
.absence-note { align-self: flex-end; margin-top: 100px; padding-right: 9%; color: var(--muted); font-size: clamp(.9rem, 1.3vw, 1.15rem); line-height: 1.6; }
.broken-thread { position: absolute; top: 16%; bottom: 16%; left: 3%; width: 1px; display: flex; flex-direction: column; gap: 74px; }
.broken-thread i { display: block; flex: 1; width: 1px; background: linear-gradient(#36452b, #151a12); }
.broken-thread i:nth-child(3) { opacity: .4; }
.broken-thread i:last-child { opacity: .15; }
.together { padding-block: 150px 160px; text-align: center; }
.together .eyebrow { margin-bottom: 30px; }
.together .quiet-copy { margin-top: 30px; }
.connection-field { position: relative; width: min(100%, 1000px); margin: 35px auto 0; aspect-ratio: 1000 / 620; }
.connections { width: 100%; height: 100%; }
.connection-field .unicorn-stars > * { opacity: .6; }
@media (prefers-reduced-motion: no-preference) {
  .connection-field .unicorn-stars > * { animation: unicorn-starlight 4.8s ease-in-out -1.2s infinite; }
  .connection-field .unicorn-stars > :nth-child(2) { animation-duration: 6.3s; animation-delay: -3.7s; }
  .connection-field .unicorn-stars > :nth-child(3) { animation-duration: 7.4s; animation-delay: -2.4s; }
  .connection-field .unicorn-stars > :nth-child(4) { animation-duration: 5.7s; animation-delay: -4.6s; }
  .connection-field .unicorn-stars > :nth-child(5) { animation-duration: 8.1s; animation-delay: -.8s; }
  .connection-field .unicorn-stars > :nth-child(6) { animation-duration: 6.9s; animation-delay: -5.1s; }
  .connection-field .unicorn-stars > :nth-child(7) { animation-duration: 9.2s; animation-delay: -6.3s; }
  @keyframes unicorn-starlight {
    0%, 100% { opacity: .25; }
    50% { opacity: .85; }
  }
}
.connection-caption { color: #b7c1ad; font-size: .75rem; line-height: 1.8; letter-spacing: .035em; }
.invitation { padding-block: 180px 120px; }
.invitation .eyebrow { margin-bottom: 32px; }
.invitation h2 { font-size: clamp(3.1rem, 7.2vw, 7.2rem); }
.meet-line { display: flex; align-items: center; gap: 18px; max-width: 680px; margin-top: 100px; padding-block: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.meet-line p { font-size: clamp(.8rem, 1.25vw, 1rem); line-height: 1.7; color: var(--muted); }
.meet-line strong { font-weight: 500; color: var(--white); }
.meet-arrow { margin-left: auto; font-size: 1.65rem; color: var(--green); }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 32px; border-top: 1px solid var(--line); font-size: .65rem; line-height: 1.8; color: var(--muted); }
.site-footer p span { color: #c9cfc2; }
.site-footer a { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; }
.site-footer a span { color: var(--green); font-size: 1rem; }

/* Content stays visible without JavaScript or when reduced motion is requested. */
@media (prefers-reduced-motion: no-preference) {
  .has-motion .reveal { opacity: 0; transform: translateY(16px); transition: opacity 850ms ease, transform 850ms cubic-bezier(.2, .6, .3, 1); }
  .has-motion .reveal.is-visible { opacity: 1; transform: none; }
}

@media (min-width: 1600px) {
  .opening { min-height: 850px; }
}

@media (max-width: 900px) {
  .frame { width: calc(100% - 64px); }
  .site-header { min-height: 96px; }
  .opening { min-height: max(680px, calc(100svh - 96px)); padding-block: 110px 180px; }
  .scattered-field { top: 18%; right: -12px; width: 100%; height: 82%; opacity: .65; }
  .opening-bottom { bottom: 28px; }
  .absence { min-height: 900px; }
  .absence-copy { padding-left: 12%; }
  .together { padding-block: 120px; }
  .invitation { padding-block: 130px 100px; }
}

@media (max-width: 600px) {
  .frame { width: calc(100% - 40px); }
  .site-header { min-height: 88px; gap: 16px; }
  .brand svg { width: 133px; }
  .event-link { gap: 8px; font-size: .65rem; }
  .small-arrow { margin-left: 2px; }
  h1 { font-size: clamp(2.7rem, 10.2vw, 3.8rem); line-height: 1.09; }
  h2 { font-size: clamp(2.9rem, 11.6vw, 4.5rem); }
  .eyebrow { font-size: .6rem; letter-spacing: .14em; }
  .opening { min-height: 0; padding-block: 28px 24px; justify-content: flex-start; }
  .opening-copy .eyebrow { margin-bottom: 20px; }
  .scattered-field { position: relative; inset: auto; align-self: center; flex: 0 0 auto; width: 100%; height: auto; aspect-ratio: 1000 / 780; margin-block: -12px 4px; opacity: .8; }
  .opening-bottom { position: static; inset: auto; width: 100%; gap: 12px; }
  .opening-bottom p { font-size: .62rem; }
  .story-link { gap: 14px; font-size: .62rem; }
  .absence { min-height: 0; padding-block: 64px 48px; }
  .absence-copy { padding-left: 30px; }
  .absence-copy .quiet-copy { margin-top: 24px; font-size: .83rem; }
  .broken-thread { left: 0; top: 14%; bottom: 14%; gap: 32px; }
  .absence-note { margin-top: 44px; padding-right: 0; font-size: .82rem; }
  .together { padding-block: 48px 36px; }
  .together h2 { font-size: clamp(2.6rem, 10vw, 3.8rem); }
  .together .eyebrow { margin-bottom: 20px; }
  .together .quiet-copy { font-size: .8rem; margin-top: 20px; }
  .connection-field { width: calc(100% + 32px); max-width: calc(100vw - 8px); aspect-ratio: 1000 / 620; margin: 12px -16px; }
  .connection-caption { font-size: .66rem; letter-spacing: 0; }
  .invitation { padding-block: 56px; }
  .invitation h2 { font-size: clamp(2.5rem, 9.8vw, 3.75rem); }
  .invitation .eyebrow { margin-bottom: 22px; }
  .meet-line { margin-top: 36px; gap: 12px; padding-block: 22px; }
  .meet-line p { font-size: .74rem; }
  .meet-arrow { font-size: 1.3rem; }
  .site-footer { align-items: flex-start; font-size: .6rem; gap: 16px; padding-block: 24px; }
  .site-footer p { padding-top: 13px; }
  .site-footer a { gap: 10px; white-space: nowrap; }

  /* Mobile contrast only: retain the established layout and motion. */
  .eyebrow, .quiet-copy, .opening-bottom p, .absence-note,
  .connection-caption, .meet-line p, .site-footer { color: #c5ccbf; }
  .scattered-field { opacity: 1; }
  .scattered-field .field-labels { fill: #d4deca; font-size: 32px; font-weight: 500; }
  .scattered-field > g[stroke-opacity] { stroke-opacity: .45; stroke-width: 3; }
  .scattered-field > g[stroke-width] { stroke-width: 3; }
  #field-glow > stop:first-child { stop-opacity: .18; }
  #fading-thread > stop { stop-opacity: .4; }
  #fading-thread > stop:nth-child(2) { stop-opacity: .9; }

  .connections > g[stroke-opacity] { stroke-opacity: .4; stroke-width: 3; }
  .connections > g[stroke-width],
  .connections > path[stroke="url(#unicorn-thread)"] { stroke-width: 3; }
  #connected-thread > stop { stop-opacity: .3; }
  #connected-thread > stop:nth-child(2) { stop-opacity: .95; }
  #unicorn-thread > stop:first-child { stop-opacity: .55; }
  #unicorn-thread > stop:last-child { stop-opacity: .7; }
  .connection-field .unicorn-stars { filter: brightness(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}

@media (forced-colors: active) {
  .status-dot { background: CanvasText; }
  .green, .muted, .eyebrow, .quiet-copy { color: CanvasText; }
  .scattered-field, .connection-field, .broken-thread { display: none; }
}
