:root {
  --paper: #f3eee4;
  --paper-2: #f6f1e6;
  --ink: #1a2744;
  --ink-soft: #3a4358;
  --navy: #1a2744;
  --navy-2: #141e36;
  --gold: #e2b340;
  --blue: #2f6fed;
  --coral: #e36a86;
  --green: #2f8a55;
  --line: rgba(26, 39, 68, 0.14);
  --shadow: 0 14px 30px rgba(12, 18, 36, 0.18);
  --serif-display: "Archivo Black", "Arial Black", sans-serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.5;
}

img { max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 40;
}

.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 168px;
  padding: 14px 22px 18px;
  background: rgba(243, 238, 228, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper-2);
  flex: none;
}

.mark img {
  width: 78px;
  height: 78px;
  object-fit: cover;
}

.brand-lockup {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: min(560px, calc(100% - 360px));
}

.hello {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.brand-lockup h1,
.word {
  margin: 2px 0 6px;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 3.15rem);
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.word {
  text-decoration: none;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.app-header { min-height: 76px; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-2);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn.gold { background: var(--gold); color: var(--ink); }

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.menu-btn { display: none; }

.menu-panel {
  display: none;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 10px 22px;
  color: var(--ink);
}

.topbar .mark { border-color: currentColor; }

.topbar .nav-links a,
.topbar .menu-btn { color: inherit; }

.topbar .btn.ghost { border-color: currentColor; background: transparent; }

.topbar .btn:not(.ghost) {
  background: var(--ink);
  color: var(--paper-2);
}

body[data-dusk="night"] .topbar:not([data-solid="true"]) { color: #f6f1e6; }

body[data-dusk="night"] .topbar:not([data-solid="true"]) .btn:not(.ghost) {
  background: #f6f1e6;
  color: var(--ink);
}

.topbar[data-solid="true"] {
  color: var(--ink);
  background: rgba(243, 238, 228, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.topbar[data-solid="true"] .btn:not(.ghost) {
  background: var(--ink);
  color: var(--paper-2);
}

.topbar[data-solid="true"] .btn.ghost { color: var(--ink); border-color: var(--ink); }

.hero-scroll { height: 168vh; }

.hero-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #f6f3e0;
}

.hero-plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}

.hero-night { opacity: 0; }

.hero-copy {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 16vh;
  text-align: center;
  color: var(--ink);
}

body[data-dusk="night"] .hero-copy { color: #f6f1e6; }

.hero-copy .hello { color: inherit; opacity: 0.86; margin: 0; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero-copy h1 {
  margin: 2px 0 12px;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(2.7rem, 7.6vw, 5.7rem);
  letter-spacing: 0.045em;
  line-height: 0.92;
  text-transform: uppercase;
}

.hero-copy .pill {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(246, 241, 230, 0.94);
}

.flyer {
  position: absolute;
  z-index: 3;
  width: clamp(108px, 13vw, 172px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 3px solid var(--gold);
  border-radius: 16px;
  box-shadow: var(--shadow);
  animation: arrive 1.05s cubic-bezier(.16, 1, .3, 1) both, bob 5.6s ease-in-out 1.05s infinite;
}

.fly-a { top: 20%; left: 3%; --from: translate3d(-130%, -60%, 0) rotate(16deg); rotate: -8deg; }
.fly-b { top: 22%; right: 3%; --from: translate3d(130%, -50%, 0) rotate(-16deg); rotate: 8deg; animation-delay: 0.12s, 1.2s; }
.fly-c { bottom: 11%; left: 5%; width: clamp(96px, 11vw, 150px); --from: translate3d(-130%, 40%, 0) rotate(10deg); rotate: -6deg; animation-delay: 0.2s, 1.28s; }
.fly-d { bottom: 10%; right: 4.5%; width: clamp(92px, 10vw, 132px); aspect-ratio: 3 / 4; object-position: center 46%; --from: translate3d(130%, 46%, 0) rotate(-12deg); rotate: 7deg; animation-delay: 0.28s, 1.36s; }

@keyframes arrive {
  from { opacity: 0; transform: var(--from); }
  to { opacity: 1; transform: none; }
}

@keyframes bob {
  50% { translate: 0 -12px; }
}

.manifesto {
  background: var(--navy);
  color: #fff;
  padding: 36px 0 40px;
}

.manifesto-grid {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 1.25fr) 1fr;
  gap: 16px 18px;
  align-items: center;
}

.manifesto-copy {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
  z-index: 2;
  margin: 0;
  text-align: center;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 2.1vw, 1.72rem);
  line-height: 1.35;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.sticker {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 4px solid var(--gold);
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.sticker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.sticker { animation: bob 6.2s ease-in-out infinite; }
.sticker.s-b { animation-delay: -1.5s; }
.sticker.s-c { animation-delay: -2.8s; }
.sticker.s-d { animation-delay: -4s; }

.sticker.s-a { grid-column: 1; grid-row: 1; }
.sticker.s-b { grid-column: 3; grid-row: 1; }
.sticker.s-b img { object-position: 68% 42%; }
.sticker.s-c { grid-column: 1; grid-row: 2; }
.sticker.s-d { grid-column: 3; grid-row: 2; aspect-ratio: 1; }

.band {
  background: var(--navy);
  color: #fff;
  padding: 0 0 56px;
}

.pair,
.device-frame,
.device-zoom,
.class-art,
.about,
.crowd-banner,
.foot-grid,
.legal {
  width: min(1120px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.media-card {
  border: 3px solid var(--gold);
  border-radius: 22px;
  overflow: hidden;
  background: var(--navy-2);
  min-width: 0;
  transition: scale 0.35s ease;
}

.media-card:hover { scale: 1.03; }

.media-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.host-card { display: grid; }

.host-card img,
.host-card .card-copy { grid-area: 1 / 1; }

.host-card img {
  aspect-ratio: 16 / 9;
  height: 100%;
  object-position: center 18%;
}

.host-card .card-copy {
  align-self: end;
  background: linear-gradient(transparent, rgba(12, 18, 36, 0.9) 46%);
}

.card-copy,
.caption {
  padding: 16px 18px 18px;
}

.card-copy h2,
.device-copy h2,
.about-copy h2,
.class-intro h2,
.join h2 {
  margin: 0 0 8px;
  font-family: var(--serif-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.card-copy p,
.caption p,
.device-copy p,
.about-copy p,
.class-intro p,
.join p { margin: 0 0 12px; }

.caption {
  margin-top: -4.6rem;
  position: relative;
  background: linear-gradient(transparent, rgba(12, 18, 36, 0.88) 42%);
  min-height: 4.6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.kicker {
  margin: 0 0 8px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.text-link {
  color: var(--gold);
  font-weight: 700;
}

.device-frame,
.device-zoom {
  margin-top: 22px;
  border: 3px solid var(--gold);
  border-radius: 28px;
  background: #152038;
}

.device-frame {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 22px;
}

.device-zoom {
  padding: 28px 18px 36px;
  display: grid;
  place-items: center;
}

.hold {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
}

.glove {
  position: absolute;
  left: 2%;
  bottom: 6%;
  width: min(190px, 42%);
  height: auto;
  z-index: 3;
}

.phone {
  position: relative;
  z-index: 2;
  width: min(230px, 58%);
  margin-left: 28%;
  background: #101010;
  border: 6px solid #111;
  border-radius: 28px;
  padding: 8px;
}

.phone.big { width: min(320px, 80%); margin-left: 0; }

.screen {
  background: #e24b4b;
  color: #fff;
  border-radius: 20px;
  min-height: 300px;
  padding: 18px 14px 14px;
}

.screen-time {
  margin: 8px 0 0;
  font-family: var(--serif-display);
  font-size: 3rem;
  line-height: 0.9;
  letter-spacing: 0.02em;
}

.screen-date { margin: 4px 0 0; font-size: 0.95rem; }

.bubble {
  margin-top: 22px;
  background: var(--green);
  border-radius: 16px;
  padding: 12px;
}

.bubble strong,
.bubble span { display: block; }

.bubble span { margin-top: 4px; font-size: 0.92rem; }

.class-block {
  padding: 56px 0 28px;
  text-align: center;
  scroll-margin-top: 84px;
}

#about { scroll-margin-top: 84px; }

.class-intro { max-width: 40rem; margin: 0 auto 22px; }

.class-art {
  display: block;
  height: auto;
  border-radius: 16px;
}

.class-block .text-link { color: var(--ink); }

.about {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 18px;
  padding: 28px 0 64px;
}

.about-copy,
.still {
  border-radius: 22px;
  overflow: hidden;
  min-height: 280px;
}

.about-copy {
  background: var(--navy);
  color: #fff;
  padding: 28px 24px;
}

.about-copy .text-link { color: var(--gold); }

.still { margin: 0; position: relative; background: #111; }

.still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 280px;
}

.still figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 14px 16px;
  background: rgba(10, 14, 24, 0.78);
  color: #fff;
  font-weight: 600;
}

.join {
  text-align: center;
  padding: 8px 0 64px;
}

.crowd-banner {
  position: relative;
  margin-bottom: 28px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--navy);
}

.crowd-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.crowd-label {
  position: absolute;
  left: 24px;
  bottom: 18px;
  margin: 0;
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer {
  background: var(--navy-2);
  color: #fff;
  padding: 28px 0 18px;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.45fr;
  gap: 14px;
}

.foot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper-2);
  color: var(--ink);
  text-decoration: none;
}

.foot-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 10%;
  display: block;
}

.foot-card span {
  margin: 10px 0 12px;
  background: var(--paper);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.note-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #1a2744;
  min-height: 250px;
}

.note-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: right center;
  display: block;
}

.note-card form {
  position: absolute;
  left: 16px;
  top: 16px;
  width: min(210px, 48%);
}

.note-card h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--serif-display);
  font-weight: 400;
}

.note-card p { margin: 0 0 10px; font-size: 0.92rem; }

.note-card label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.note-row { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

.note-row input {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  font: inherit;
}

.note-status { min-height: 1.2em; margin-top: 8px; font-size: 0.88rem; }

.legal {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}

.legal nav { display: flex; gap: 14px; flex-wrap: wrap; }

.legal a { color: #fff; }

.missing {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 20px;
}

.missing h1 {
  font-family: var(--serif-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.missing-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.desk-page { background: var(--paper); }

.app-header .tool-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tool-nav a {
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 700;
}

.tool-nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}

.desk {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 18px 72px;
}

.desk-lead { max-width: 40rem; }

.puzzle-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.puzzle-picks button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--ink);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 12px 4px 4px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.puzzle-picks img {
  width: 42px;
  height: 28px;
  object-fit: cover;
  border-radius: 999px;
}

.puzzle-picks button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.puzzle-layout .kicker { color: var(--ink-soft); }

.puzzle-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
  align-items: start;
}

.puzzle-board,
.puzzle-tray {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.puzzle-board {
  grid-template-rows: repeat(2, 1fr);
  aspect-ratio: 16 / 9;
  padding: 6px;
  border: 3px solid var(--gold);
  border-radius: 16px;
  background: #efe6cf;
}

.puzzle-slot {
  min-width: 0;
  min-height: 0;
  border-radius: 8px;
  border: 2px dashed rgba(26, 39, 68, 0.28);
}

.puzzle-piece {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background-color: var(--paper-2);
  cursor: grab;
  touch-action: none;
}

.puzzle-tray .puzzle-piece { aspect-ratio: 32 / 27; height: auto; }

.puzzle-piece.is-set { cursor: default; border-color: transparent; }

.puzzle-piece.is-dragging {
  position: fixed;
  z-index: 30;
  margin: 0;
  pointer-events: none;
  box-shadow: var(--shadow);
}

.puzzle-status { font-weight: 700; min-height: 1.4em; }

.puzzle-guide { margin: 14px 0 0; max-width: 280px; }

.puzzle-guide img {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 2px solid var(--ink);
}

.puzzle-guide figcaption { margin-top: 6px; font-size: 0.85rem; }

.panel {
  margin-top: 22px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
}

body.is-tabbed .panel { display: none; }
body.is-tabbed .panel.is-on { display: block; }

fieldset {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 0 0 12px;
  padding: 12px;
}

legend { font-weight: 750; padding: 0 4px; }

.choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 4px;
}

.score {
  margin-top: 12px;
  font-weight: 700;
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.swatch,
.size {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  padding: 0;
  cursor: pointer;
}

.swatch[aria-pressed="true"],
.size[aria-pressed="true"] { outline: 3px solid var(--blue); outline-offset: 2px; }

.size {
  width: auto;
  border-radius: 999px;
  padding: 0 10px;
  background: #fff;
  font: inherit;
}

.sheet {
  width: 100%;
  height: auto;
  background: var(--paper-2);
  border-radius: 16px;
  border: 1.5px solid var(--ink);
  touch-action: none;
  cursor: crosshair;
}

.lesson + .lesson { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }

.lesson h3 { margin: 0 0 8px; }

.readout { font-size: 0.92rem; color: var(--ink-soft); }

@media (max-width: 980px) {
  .brand-lockup {
    position: static;
    transform: none;
    width: auto;
    flex: 1;
  }

  .site-header { flex-wrap: wrap; }

  .nav-links { display: none; }

  .menu-btn { display: inline-flex; }

  .menu-panel[data-open="true"] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    top: 100%;
    right: 12px;
    left: 12px;
    padding: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .menu-panel a { color: var(--ink); text-decoration: none; font-weight: 700; }

  .pair,
  .device-frame,
  .about,
  .foot-grid,
  .puzzle-layout { grid-template-columns: 1fr; }

  .device-frame,
  .device-zoom { rotate: 0deg; }

  .sticker {
    position: static;
    width: calc(50% - 10px);
    rotate: 0deg;
    aspect-ratio: 16 / 10;
  }

  .sticker.s-d { width: calc(50% - 10px); }

  .manifesto { padding: 28px 0 32px; }

  .manifesto-grid {
    display: flex;
    flex-wrap: wrap;
    width: auto;
    margin: 0 16px;
    gap: 12px;
  }

  .manifesto-copy { width: 100%; order: -1; }

  .hero-scroll { height: 145vh; }
  .hero-copy h1 { font-size: clamp(2.15rem, 12vw, 3.3rem); }
  .hero-plate { object-position: 48% 58%; }
  .flyer { width: 78px; }
  .fly-c, .fly-d { display: none; }

  .note-card form {
    position: static;
    width: auto;
    padding: 16px;
    background: var(--navy);
  }

  .note-card img { height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flyer, .sticker { animation: none; }
  .hero-night { opacity: 0; }
  .media-card { transition: none; }
  .device-frame, .device-zoom { rotate: 0deg; }
}
