/* ==========================================================================
   Kelomins — marketing site
   Tokens and values taken from docs/design_handoff_kelomins_site/README.md.
   Where README and prototype disagreed, the prototype markup won.
   ========================================================================== */

:root {
  /* Colour */
  --cream:        #F4EEE0;
  --cream-bright: #FFF6E6;
  --navy:         #17122E;
  --navy-deep:    #120E24;
  --navy-purple:  #2A2050;
  --purple:       #4B2A62;
  --purple-dim:   #3A2A5E;
  --ink:          #3A3157;
  --red:          #7C2F4B;
  --red-hot:      #C1452F;
  --orange:       #F0803A;
  --orange-light: #F0A03A;
  --orange-hover: #FFC072;
  --green:        #6AB14A;
  --green-deep:   #3A7F4E;
  --green-pale:   #DCEFD2;
  --green-mist:   #E7F2D9;
  --cyan:         #8FD8E8;
  --cyan-pale:    #B7E7EC;

  /* VortexToon palette — mirrors Assets/Scripts/GuiLayer/VortexToon.shader */
  --vx-bg:     #393D7A;
  --vx-blue:   #3E4F93;
  --vx-purple: #7948A3;
  --vx-coral:  #E64C33;
  --vx-cream:  #EDE5D1;

  /* Type */
  --display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --body:    Nunito, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:    ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Shadow — a hard offset "sticker lift" plus a soft ambient shadow */
  --lift-hero:    0 16px 0 rgba(23,18,46,.18), 0 34px 60px rgba(23,18,46,.28);
  --lift-trailer: 0 14px 0 rgba(42,32,80,.16), 0 26px 50px rgba(42,32,80,.2);
  --lift-feature: 0 12px 0 rgba(42,32,80,.16), 0 22px 44px rgba(42,32,80,.22);
  --lift-card:    0 12px 0 rgba(42,32,80,.16), 0 22px 40px rgba(42,32,80,.2);
  --lift-tile:    0 10px 0 rgba(42,32,80,.16);
  --lift-cta:     0 8px 0 rgba(23,18,46,.32);
  --lift-cta-hi:  0 12px 0 rgba(23,18,46,.34);

  --header-h: 70px;
}

/* ------------------------------------------------------------------ base */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--navy);
  font-family: var(--body);
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }

a { color: var(--orange-light); text-decoration: none; }
a:hover { color: var(--orange-hover); }

h1, h2, h3, p { margin: 0; }

/* One explicit ring. The browser default vanishes against several fills. */
:where(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Anchor targets must clear the fixed header. */
section[id], main[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* Striped placeholder fill. Every asset slot carries one until real art lands. */
.stripe {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg,
    rgba(244,238,224,.12) 0 10px, rgba(244,238,224,.02) 10px 22px);
}
.stripe--dark {
  background: repeating-linear-gradient(135deg,
    rgba(23,18,46,.1) 0 10px, rgba(23,18,46,.02) 10px 22px);
}
.slot-label {
  position: relative;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  line-height: 1.8;
  text-align: center;
  color: rgba(244,238,224,.9);
  padding: 0 16px;
}
.slot-label--dark { color: rgba(23,18,46,.75); }

/* ---------------------------------------------------------------- display */

.h2, .h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
}
.h2 {
  letter-spacing: .03em;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-purple);
}
.h2--dark { color: var(--cream); }

/* Right-pointing CSS triangle. Marks section headings and the current nav item. */
.marker {
  flex: none;
  width: 0; height: 0;
  border-left: 13px solid var(--orange-light);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 48ch;
  text-wrap: pretty;
}

/* ------------------------------------------------------------------- CTAs */

/* The parallelogram: skew the box, un-skew the label. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: skewX(-9deg);
  transition: transform .16s ease, box-shadow .16s ease;
  text-decoration: none;
}
.btn > span {
  display: block;
  transform: skewX(9deg);
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.btn--primary {
  min-height: 60px;
  padding: 0 40px;
  background: var(--orange);
  border: 5px solid var(--cream);
  border-radius: 8px;
  box-shadow: var(--lift-cta);
}
.btn--primary > span { font-size: 27px; color: var(--cream-bright); }
.btn--primary:hover {
  transform: skewX(-9deg) rotate(-2deg) translateY(-3px);
  box-shadow: var(--lift-cta-hi);
}

.btn--secondary {
  min-height: 52px;
  padding: 0 26px;
  background: rgba(23,18,46,.08);
  border: 4px solid var(--navy);
  border-radius: 8px;
}
.btn--secondary > span { font-size: 20px; font-weight: 700; color: var(--navy); }
.btn--secondary:hover { transform: skewX(-9deg) rotate(2deg); }

.btn--submit {
  min-height: 54px;
  padding: 0 28px;
  background: var(--orange);
  border: 4px solid var(--cream);
  border-radius: 10px;
}
.btn--submit > span { font-size: 21px; color: var(--cream-bright); }
.btn--submit:hover { transform: skewX(-9deg) rotate(-2deg); }
.btn--submit[disabled] { opacity: .6; cursor: progress; }

/* ----------------------------------------------------------------- header */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 28px;
  background: rgba(23,18,46,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(244,238,224,.16);
}

/* The supplied logo is a square mark. No frame — a cream outline round a
   cream mark on the dark header just draws a box nobody needs. */
.logo {
  display: grid;
  place-items: center;
  line-height: 0;
  width: 44px;
  height: 44px;
  flex: none;
  transition: transform .16s ease;
}
.logo:hover { transform: rotate(-4deg) scale(1.05); }
.logo img { width: 40px; height: 40px; object-fit: contain; }

.nav { display: flex; align-items: center; gap: 26px; }

.nav a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 19px;
  color: var(--cream);
}
.nav a:hover { color: var(--cyan); }
/* The current section takes the same orange triangle as its heading. */
.nav a.is-current::before {
  content: '';
  width: 0; height: 0;
  border-left: 9px solid var(--orange-light);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.nav a.is-current { color: var(--cream); }

.nav a.nav--soon { color: rgba(244,238,224,.62); }
.nav a.nav--soon:hover { color: var(--cream); }

.badge {
  font-family: var(--body);
  font-style: normal;
  font-weight: 800;
  font-size: 9px;
  letter-spacing: .12em;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(244,238,224,.16);
  color: var(--cream);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  background: transparent;
  border: 2px solid rgba(244,238,224,.35);
  border-radius: 10px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 20px; height: 3px;
  background: var(--cream);
  border-radius: 2px;
}

/* Mobile overlay */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 55;
  background: var(--navy);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 40px;
  color: var(--cream);
  padding: 10px 0;
}
.mobile-nav a.nav--soon { color: rgba(244,238,224,.62); }

@media (max-width: 899px) {
  .nav--full > a { display: none; }
  .burger { display: flex; }
  .header { padding: 12px 18px; }
}
@media (min-width: 900px) {
  .mobile-nav { display: none; }
}

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 92vh;
  padding: 132px 24px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 44px;
  background: linear-gradient(178deg, var(--cyan) 0%, var(--cyan-pale) 44%, var(--green-pale) 100%);
  overflow: hidden;
}
.hero__weave {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(118deg,
    rgba(23,18,46,.055) 0 14px, rgba(23,18,46,0) 14px 30px);
}

/* Painted swirls. CSS stand-in for real painted PNG artwork — see README. */
.swirl { position: absolute; filter: url(#paint); pointer-events: none; }
.swirl--hero-green {
  left: -12%; bottom: -18%;
  width: 62vw; height: 62vw;
  border-radius: 48% 52% 40% 60%;
  background: radial-gradient(circle at 40% 40%, rgba(106,177,74,.55), rgba(106,177,74,0) 68%);
  opacity: .75;
}
.swirl--hero-orange {
  right: -14%; top: -16%;
  width: 54vw; height: 54vw;
  border-radius: 58% 42% 55% 45%;
  background: radial-gradient(circle at 55% 55%, rgba(240,160,58,.42), rgba(240,160,58,0) 70%);
  opacity: .8;
}
.swirl--devlog-red {
  left: -18%; top: 4%;
  width: 66vw; height: 66vw;
  border-radius: 46% 54% 60% 40%;
  background: radial-gradient(circle at 45% 45%, rgba(124,47,75,.62), rgba(124,47,75,0) 66%);
}
.swirl--devlog-purple {
  right: -20%; top: 30%;
  width: 58vw; height: 58vw;
  border-radius: 58% 42% 44% 56%;
  background: radial-gradient(circle at 50% 50%, rgba(75,42,98,.85), rgba(75,42,98,0) 68%);
}

.keyart {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 1120px;
  aspect-ratio: 16 / 7;
  border: 8px solid var(--cream);
  border-radius: 22px;
  box-shadow: var(--lift-hero);
  background: linear-gradient(160deg, var(--navy-purple), var(--purple) 60%, var(--red));
  overflow: hidden;
  display: grid;
  place-items: center;
}
.keyart figcaption {
  position: relative;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  line-height: 1.9;
  text-align: center;
  color: rgba(244,238,224,.9);
  padding: 0 20px;
}
.keyart img { width: 100%; height: 100%; object-fit: cover; }

.hero__ctas {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

/* ---------------------------------------------------------------- trailer */

.trailer {
  position: relative;
  padding: 84px 24px 96px;
  background: linear-gradient(180deg, var(--green-pale), var(--cream));
}
.trailer__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
}
.trailer .h2 { font-size: 44px; }
.trailer__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 8px solid var(--cream);
  border-radius: 20px;
  box-shadow: var(--lift-trailer);
  background: var(--navy);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.trailer__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.play {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 0 30px;
  background: var(--orange);
  border: 5px solid var(--cream);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .16s ease;
}
.play:hover { transform: scale(1.04); }
.play__tri {
  width: 0; height: 0;
  border-left: 18px solid var(--cream-bright);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}
.play span:last-child {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 22px;
  color: var(--cream-bright);
}
.trailer__note {
  position: absolute;
  bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: rgba(244,238,224,.6);
  text-align: center;
  padding: 0 16px;
}

/* --------------------------------------------------------------- features */

.features {
  position: relative;
  padding: 30px 24px 110px;
  background: var(--cream);
  overflow: hidden;
}
.features__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 86px;
}
.feature {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 46px;
  align-items: center;
}
.feature__text { display: flex; flex-direction: column; gap: 16px; }
.feature__text .h3 {
  letter-spacing: .02em;
  font-size: 46px;
  line-height: .96;
  color: var(--navy-purple);
}
.feature__text p {
  font-size: 18px;
  line-height: 1.62;
  color: var(--ink);
  text-wrap: pretty;
  max-width: 46ch;
}
.feature__media {
  border: 8px solid var(--cream);
  border-radius: 20px;
  aspect-ratio: 4 / 3;
  box-shadow: var(--lift-feature);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.feature__media video, .feature__media img { width: 100%; height: 100%; object-fit: cover; }

/* Media alternates left / right / left. Article 2 flips with order. */
.feature:nth-child(1) .feature__media { transform: rotate(-2deg); background: linear-gradient(150deg, var(--purple-dim), var(--green)); }
.feature:nth-child(2) .feature__media { transform: rotate(2deg);  background: linear-gradient(150deg, var(--red), var(--orange)); order: 2; }
.feature:nth-child(2) .feature__text  { order: 1; }
.feature:nth-child(3) .feature__media { transform: rotate(-2deg); background: linear-gradient(150deg, var(--navy-purple), var(--purple)); }

/* ------------------------------------------------------------------- trio */

.trio {
  position: relative;
  padding: 20px 24px 116px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--green-mist) 100%);
  overflow: hidden;
}
.trio__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.trio__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}
.trio__header .h2 { font-size: 52px; }
.trio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}
.creature {
  border: 8px solid var(--cream);
  border-radius: 24px;
  box-shadow: var(--lift-card);
  overflow: hidden;
  transition: transform .18s ease;
}
.creature__art {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  position: relative;
  background: repeating-linear-gradient(135deg,
    rgba(244,238,224,.14) 0 10px, rgba(244,238,224,.03) 10px 22px);
}
.creature__art img { width: 100%; height: 100%; object-fit: contain; }
.creature__body {
  padding: 20px 22px 24px;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.creature__body .h3 { font-size: 34px; color: var(--navy-purple); }
.creature__body p { font-size: 16px; line-height: 1.55; color: var(--ink); }

.creature--1 { transform: rotate(-1.5deg); background: linear-gradient(170deg, var(--green), var(--green-deep)); }
.creature--2 { transform: rotate(1.5deg);  background: linear-gradient(170deg, var(--orange), var(--red-hot)); }
.creature--3 { transform: rotate(-1deg);   background: linear-gradient(170deg, var(--purple), var(--navy-purple)); }
.creature--1:hover { transform: rotate(-1.5deg) translateY(-8px); }
.creature--2:hover { transform: rotate(1.5deg)  translateY(-8px); }
.creature--3:hover { transform: rotate(-1deg)   translateY(-8px); }

/* Below the breakpoint the trio becomes a swipeable scroll-snap carousel. */
@media (max-width: 899px) {
  .trio__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 18px;
    /* Bleed to the gutter edge so the next card peeks in. */
    margin: 0 -24px;
    padding: 14px 24px 26px;
    scrollbar-width: none;
  }
  .trio__grid::-webkit-scrollbar { display: none; }
  .creature { scroll-snap-align: center; }
  .trio__header .h2 { font-size: 40px; }
}

/* ---------------------------------------------------------------- gallery */

.gallery {
  position: relative;
  padding: 12px 24px 120px;
  background: var(--green-mist);
  overflow: hidden;
}
.gallery__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.gallery .h2 { font-size: 44px; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}
.shot {
  cursor: pointer;
  padding: 0;
  border: 7px solid var(--cream);
  border-radius: 16px;
  aspect-ratio: 16 / 10;
  box-shadow: var(--lift-tile);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  transition: transform .16s ease;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot .slot-label { font-size: 10px; }

/* Rotations and the staggered drop. Hover scales on top of the rotation. */
.shot--1 { transform: rotate(-1.5deg); margin-top: 0;    background: linear-gradient(140deg, var(--purple-dim), var(--green)); }
.shot--2 { transform: rotate(1.5deg);  margin-top: 26px; background: linear-gradient(140deg, var(--red), var(--orange)); }
.shot--3 { transform: rotate(-1deg);   margin-top: 0;    background: linear-gradient(140deg, var(--navy-purple), var(--cyan)); }
.shot--4 { transform: rotate(1deg);    margin-top: 26px; background: linear-gradient(140deg, var(--purple), var(--red-hot)); }
.shot--5 { transform: rotate(-2deg);   margin-top: 0;    background: linear-gradient(140deg, var(--green-deep), var(--green-pale)); }
.shot--6 { transform: rotate(1.5deg);  margin-top: 26px; background: linear-gradient(140deg, var(--navy), var(--red)); }
.shot--1:hover { transform: rotate(-1.5deg) scale(1.03); }
.shot--2:hover { transform: rotate(1.5deg)  scale(1.03); }
.shot--3:hover { transform: rotate(-1deg)   scale(1.03); }
.shot--4:hover { transform: rotate(1deg)    scale(1.03); }
.shot--5:hover { transform: rotate(-2deg)   scale(1.03); }
.shot--6:hover { transform: rotate(1.5deg)  scale(1.03); }

/* -------------------------------------------------- painted transition band */

.transition-band {
  position: relative;
  height: 130px;
  background: var(--green-mist);
  overflow: hidden;
}
.transition-band > div {
  position: absolute;
  left: -6%;
  top: 8px;
  width: 112%;
  height: 200px;
  border-radius: 60% 40% 52% 48% / 70% 60% 40% 30%;
  background: linear-gradient(180deg, var(--purple), var(--navy));
  filter: url(#paint);
}

/* ----------------------------------------------------------------- devlog */

.devlog {
  position: relative;
  padding: 4px 24px 110px;
  background: var(--navy);
  overflow: hidden;
}
.devlog__inner {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.devlog__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.devlog__header .h2 { font-size: 48px; }
.devlog__header p { font-size: 16px; color: rgba(244,238,224,.66); }

.devlog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.post {
  border: 6px solid var(--cream);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(244,238,224,.06);
  transition: transform .18s ease;
}
.post:hover { transform: translateY(-6px); }
.post__thumb {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  position: relative;
}
.post__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post--1 .post__thumb { background: linear-gradient(140deg, var(--purple-dim), var(--green)); }
.post--2 .post__thumb { background: linear-gradient(140deg, var(--red), var(--orange)); }
.post--3 .post__thumb { background: linear-gradient(140deg, var(--navy-purple), var(--cyan)); }
.post__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.post__date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--orange-light);
}
.post__body .h3 { font-size: 28px; line-height: 1.02; color: var(--cream); }
.post__body p { font-size: 15px; line-height: 1.55; color: rgba(244,238,224,.72); }

/* ----------------------------------------------------------------- signup */

.signup {
  border: 6px solid var(--cream);
  border-radius: 22px;
  background: rgba(244,238,224,.07);
  padding: 34px 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.signup__copy { display: flex; flex-direction: column; gap: 6px; }
.signup__copy .h3 { font-size: 34px; color: var(--cream); }
.signup__copy p { font-size: 15px; color: rgba(244,238,224,.66); }

.signup form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.signup input[type="email"] {
  min-height: 54px;
  min-width: 260px;
  padding: 0 18px;
  font-family: var(--body);
  font-size: 16px;
  color: var(--navy);
  background: var(--cream);
  border: 4px solid var(--cream);
  border-radius: 10px;
  outline-offset: 3px;
}
@media (max-width: 520px) {
  .signup input[type="email"] { min-width: 0; width: 100%; }
  .signup form { width: 100%; }
  .btn--submit { width: 100%; }
}

/* Honeypot. Off screen, out of the tab order, invisible to a person. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

.signup__msg {
  min-height: 20px;
  font-size: 15px;
  color: var(--cyan);
}
.signup__msg[data-state="error"] { color: var(--orange-hover); }

/* ----------------------------------------------------------------- footer */

.footer {
  background: var(--navy-deep);
  border-top: 2px solid rgba(244,238,224,.14);
  padding: 40px 24px 48px;
}
.footer__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}
.footer__links .presskit {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 18px;
  color: var(--cream);
}
.footer__links a:not(.presskit) { font-size: 14px; color: rgba(244,238,224,.72); }
.footer__social { display: flex; align-items: center; gap: 10px; }
.footer__social a {
  display: grid;
  place-items: center;
  line-height: 0;
  width: 44px; height: 44px;
  border: 2px solid rgba(244,238,224,.3);
  border-radius: 10px;
  color: var(--cream);
}
.footer__social a:hover { color: var(--cyan); border-color: rgba(143,216,232,.6); }
.footer p { font-size: 14px; color: rgba(244,238,224,.72); }

/* -------------------------------------------------------------- lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(18,14,36,.9);
  display: grid;
  place-items: center;
  padding: 32px;
}
.lightbox[hidden] { display: none; }
.lightbox__figure {
  margin: 0;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  border: 8px solid var(--cream);
  border-radius: 18px;
  background: linear-gradient(140deg, var(--navy-purple), var(--red));
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.lightbox__figure img { width: 100%; height: 100%; object-fit: contain; }
.lightbox figcaption {
  position: relative;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .12em;
  text-align: center;
  padding: 0 16px;
  color: rgba(244,238,224,.92);
}
.lightbox__close {
  position: fixed;
  top: 24px; right: 24px;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: transparent;
  border: 3px solid var(--cream);
  border-radius: 12px;
  font-family: var(--body);
  font-size: 22px;
  color: var(--cream);
}

/* ------------------------------------------------------------------ leaves */

.leaves {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  overflow: hidden;
}
.leaves span {
  position: absolute;
  top: 0;
  border-radius: 60% 10% 60% 10%;
  opacity: .55;
  animation-name: kel-leaf;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes kel-leaf {
  0%   { transform: translate3d(0, -8vh, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: .85; }
  90%  { opacity: .7; }
  100% { transform: translate3d(14vw, 112vh, 0) rotate(320deg); opacity: 0; }
}
/* 14 leaves on desktop, 6 on mobile. */
@media (max-width: 899px) {
  .leaves span:nth-child(n+7) { display: none; }
}

/* --------------------------------------------------------------- KPI panel */

.kpi {
  position: fixed;
  left: 12px; bottom: 12px;
  z-index: 95;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--cream);
  background: rgba(18,14,36,.92);
  border: 2px solid rgba(244,238,224,.3);
  border-radius: 10px;
  padding: 10px 12px;
  max-height: 40vh;
  overflow: auto;
}
.kpi[hidden] { display: none; }

/* ------------------------------------------------------------ guides page */

.guides {
  font-family: var(--body);
  min-height: 100vh;
  background: radial-gradient(120% 90% at 50% 0%, var(--purple), var(--navy) 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 80px 24px;
  text-align: center;
}
.guides__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--orange-light);
}
.guides h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 64px;
  line-height: .95;
  color: var(--cream);
  max-width: 20ch;
}
.guides p {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(244,238,224,.72);
  max-width: 52ch;
}
.guides .btn { min-height: 54px; padding: 0 30px; border: 4px solid var(--cream); background: var(--orange); border-radius: 10px; }
.guides .btn > span { font-size: 21px; color: var(--cream-bright); }
.guides .btn:hover { transform: skewX(-9deg) rotate(-2deg); }
@media (max-width: 620px) {
  .guides h1 { font-size: 44px; }
}

/* -------------------------------------------------------------- legal page */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 56px) 24px 96px;
  color: rgba(244,238,224,.82);
  font-size: 16px;
  line-height: 1.7;
}
.legal h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 52px;
  line-height: 1;
  color: var(--cream);
  margin-bottom: 8px;
}
.legal h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 26px;
  color: var(--cream);
  margin: 36px 0 10px;
}
.legal p, .legal li { margin: 0 0 12px; }
.legal ul { padding-left: 20px; }
.legal .updated { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--orange-light); }
.legal a { color: var(--orange-light); }

/* --------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .leaves { display: none; }
}

/* ==========================================================================
   Coming-soon gate. The full design lives at /preview/ until the art lands.
   ========================================================================== */

.soon {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + 64px) 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  text-align: center;
  /* Fallback for no-JS and no-WebGL, in the shader's own palette. */
  background:
    radial-gradient(120% 90% at 46% 50%, var(--vx-coral) 0%, var(--vx-purple) 34%, var(--vx-blue) 62%, var(--vx-bg) 100%);
  overflow: hidden;
}
.soon > :not(#vortex):not(.soon__scrim) { position: relative; z-index: 2; }

#vortex {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* The vortex is busy and bright at the arms. This buys back text contrast
   without hiding it. */
.soon__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(18,14,36,.46) 0%,
      rgba(18,14,36,.64) 14%,
      rgba(18,14,36,.64) 94%,
      rgba(18,14,36,.46) 100%),
    radial-gradient(92% 82% at 50% 48%,
      rgba(18,14,36,.40) 0%,
      rgba(18,14,36,.24) 48%,
      rgba(18,14,36,.08) 78%,
      rgba(18,14,36,0) 100%);
}

.soon__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--cream);
  text-shadow: 0 2px 8px rgba(18,14,36,.7);
}

/* PLACEHOLDER WORDMARK. The handoff says the logo is always the supplied image
   asset and is never typeset — but no asset exists and this page has no key art
   to carry the name. Replace with the logo image the day it arrives. */
.soon__title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: clamp(64px, 13vw, 148px);
  line-height: .84;
  color: var(--cream);
  text-shadow: 0 6px 0 rgba(18,14,36,.34);
}

.soon__pitch {
  font-size: 19px;
  line-height: 1.6;
  color: rgba(244,238,224,.92);
  max-width: 44ch;
  text-wrap: pretty;
  text-shadow: 0 2px 10px rgba(18,14,36,.6);
}

/* The one thing on this page that actually does something. */
.soon__box {
  width: 100%;
  max-width: 620px;
  margin-top: 10px;
  border: 6px solid var(--cream);
  border-radius: 22px;
  background: var(--cream);
  box-shadow: var(--lift-card);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.soon__box .h3 { font-size: 32px; color: var(--navy-purple); }
.soon__box > p { font-size: 15px; color: var(--ink); }
.soon__box form {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  width: 100%;
}
.soon__box input[type="email"] {
  flex: 1 1 240px;
  min-height: 54px;
  padding: 0 18px;
  font-family: var(--body);
  font-size: 16px;
  color: var(--navy);
  background: #fff;
  border: 4px solid var(--cream);
  border-radius: 10px;
  outline-offset: 3px;
}
.soon__msg {
  min-height: 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 2px 8px rgba(18,14,36,.7);
}
.soon__msg[data-state="error"] { color: var(--orange-hover); }

.soon__more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
  font-size: 15px;
}
.soon__more a {
  color: var(--cream);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--orange-light);
  text-shadow: 0 2px 8px rgba(18,14,36,.7);
}
.soon__more a:hover { color: var(--orange-hover); text-decoration-color: var(--orange-hover); }

@media (max-width: 620px) {
  .soon__box input[type="email"] { flex: 1 1 100%; }
  .soon__box .btn--submit { width: 100%; }
}

/* ==========================================================================
   Devlog — its own page, and the article template.
   ========================================================================== */

.page-dark { background: var(--navy); }

.devlog-page {
  position: relative;
  padding: calc(var(--header-h) + 56px) 24px 96px;
  background: var(--navy);
  overflow: hidden;
}
.devlog-page__inner {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.devlog-page__header { display: flex; flex-direction: column; gap: 12px; }
.devlog-page__header .h2 { font-size: 56px; }
.devlog-page__header p { font-size: 17px; color: rgba(244,238,224,.66); max-width: 52ch; }

/* A card is a link, so the whole tile is one target. */
a.post { display: block; color: inherit; }
a.post:hover { color: inherit; }
a.post:hover .post__body .h3 { color: var(--orange-hover); }

/* Honest empty state. Better than a fake first post. */
.devlog-empty {
  border: 6px dashed rgba(244,238,224,.3);
  border-radius: 20px;
  padding: 54px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.devlog-empty .h3 { font-size: 30px; color: var(--cream); }
.devlog-empty p { font-size: 15px; color: rgba(244,238,224,.66); max-width: 46ch; }

/* ---------------------------------------------------------- post article */

.post-article {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 56px) 24px 40px;
}
.post-article__back {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--orange-light);
}
.post-article__date {
  display: block;
  margin: 26px 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--orange-light);
}
.post-article h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: clamp(38px, 6vw, 56px);
  line-height: .98;
  color: var(--cream);
}
.post-article__lede {
  margin-top: 14px;
  font-size: 19px;
  line-height: 1.6;
  color: rgba(244,238,224,.82);
  text-wrap: pretty;
}
.post-article__hero {
  margin: 34px 0 0;
  aspect-ratio: 16 / 9;
  border: 8px solid var(--cream);
  border-radius: 20px;
  box-shadow: var(--lift-trailer);
  background: linear-gradient(140deg, var(--purple-dim), var(--green));
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.post-article__hero img { width: 100%; height: 100%; object-fit: cover; }

.post-body {
  margin-top: 34px;
  font-size: 17px;
  line-height: 1.72;
  color: rgba(244,238,224,.82);
}
.post-body > * + * { margin-top: 20px; }
.post-body h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 30px;
  color: var(--cream);
  margin-top: 40px;
}
.post-body a { color: var(--orange-light); text-decoration: underline; }
.post-body ul, .post-body ol { padding-left: 22px; }
.post-body li + li { margin-top: 8px; }
.post-body img {
  width: 100%;
  border: 6px solid var(--cream);
  border-radius: 16px;
}
.post-body figure { margin: 0; }
.post-body figcaption {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(244,238,224,.6);
}
.post-body blockquote {
  margin: 0;
  padding-left: 18px;
  border-left: 4px solid var(--orange);
  color: rgba(244,238,224,.72);
}
.post-body code {
  font-family: var(--mono);
  font-size: .9em;
  background: rgba(244,238,224,.1);
  padding: 2px 6px;
  border-radius: 5px;
}

/* The signup follows the reader to the end of every post. */
.post-outro {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 24px 96px;
}
