/* ==========================================================
   APINDO Kota Magelang
   Palette from the APINDO mark (#047BC2) + warm paper + deep ink.
   Type: Bricolage Grotesque (display/body), Instrument Serif italic
   for the human, spoken accent words.
   ========================================================== */

/* smooth cross-page fades between index, wizard, login and dashboard */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.45s; }

:root {
  --paper: #f2f0eb;
  --paper-2: #e6e3db;
  --ink: #0a1f33;
  --ink-2: #12304d;
  --blue: #047bc2;
  --blue-deep: #035c92;
  --blue-light: #8ccbef;
  --white: #ffffff;
  --muted: #5a6168;
  --line: rgba(10, 31, 51, 0.16);
  --line-inv: rgba(242, 240, 235, 0.18);

  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;

  --pad: clamp(1.25rem, 4vw, 4rem);

  /* motion tokens */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-quick: 0.2s;
  --dur-base: 0.45s;
  --dur-slow: 0.8s;

  /* radius scale: small for inputs/cards, full for buttons only */
  --r-sm: 4px;
  --r-md: 8px;
}

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

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip, not hidden: hidden would make body a scroll container and break position: sticky */
}

/* static paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
img, svg { display: block; }
::selection { background: var(--blue); color: var(--white); }

.meta {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.eyebrow { color: var(--muted); display: inline-block; }

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

/* ---------- buttons ---------- */
.btn {
  --h: 2.75rem;
  display: inline-flex;
  align-items: center;
  height: var(--h);
  padding: 0 1.4rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 500 0.95rem var(--f-display);
  border: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform var(--dur-base) var(--ease);
  z-index: -1;
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn--big { --h: 3.6rem; font-size: 1.05rem; padding: 0 2rem; }

/* ---------- loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: var(--blue);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--pad);
}
html:not(.js) .loader { display: none; }
.loader__logo { width: 64px; height: 64px; }
.loader__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.loader__label { opacity: 0.85; }
.loader__count {
  font-size: clamp(5rem, 18vw, 16rem);
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.loader__count sup { font-size: 0.25em; vertical-align: top; }
.loader__bar { height: 1px; background: rgba(255, 255, 255, 0.3); margin-top: 2rem; }
.loader__bar span { display: block; height: 100%; background: var(--white); transform-origin: left; transform: scaleX(0); }

/* ---------- cursor ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 9200;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--blue);
  pointer-events: none;
  display: grid;
  place-items: center;
  transition: width var(--dur-base) var(--ease), height var(--dur-base) var(--ease), margin var(--dur-base) var(--ease), background-color var(--dur-quick);
}
.cursor__label {
  font: 500 0.75rem var(--f-display);
  color: var(--white);
  opacity: 0;
  transition: opacity var(--dur-quick);
}
.cursor.is-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-hover { width: 36px; height: 36px; margin: -18px 0 0 -18px; background: rgba(4, 123, 194, 0.22); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem var(--pad);
  transition: transform var(--dur-slow) var(--ease), background-color var(--dur-base), color var(--dur-base);
}
.header.is-hidden { transform: translateY(-110%); }
/* the one glass surface: header must stay legible over moving content */
.header.is-solid {
  background: rgba(242, 240, 235, 0.85);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.7rem; margin-right: auto; }
.brand__mark { width: 40px; height: 40px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { font-weight: 800; letter-spacing: 0.03em; font-size: 1.05rem; color: var(--blue); }
.brand__text em { font-size: 0.95rem; color: var(--muted); }
.nav { display: flex; gap: 0.25rem; }
.nav a {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
  position: relative;
  transition: background-color var(--dur-quick);
}
.nav a:hover { background: rgba(10, 31, 51, 0.07); }
/* marks the real "current section" state */
.nav a.is-active { color: var(--blue); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 3px;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: currentColor;
}
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.menu-toggle span:not(.sr-only) {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--dur-base) var(--ease);
}
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 24px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 790;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  gap: 0.5rem;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font-size: clamp(2.4rem, 11vw, 4rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.mobile-menu__cta { color: var(--blue-light); margin-top: 1.5rem; }
body.menu-open .header { color: var(--paper); background: transparent; border-color: transparent; backdrop-filter: none; }
body.menu-open .brand__text strong { color: var(--paper); }
body.menu-open .menu-toggle span:not(.sr-only) { background: var(--paper); }
body.menu-open .menu-toggle { border-color: var(--line-inv); }

/* ---------- section scaffolding ---------- */
.section { padding: clamp(5rem, 12vw, 10rem) var(--pad); position: relative; }
.section__head { margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.section__head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  align-items: end;
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}
.section__head--split .eyebrow { align-self: start; }
.section__title {
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 600;
  margin: 0;
}
.section__title em { letter-spacing: -0.02em; }
.section__title .tw { display: inline-block; }
.sub-title { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -0.03em; font-weight: 600; margin: 0 0 1rem; }

/* ---------- ACT 1 hero: type over the 3D dawn ---------- */
.hero {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 6.25rem var(--pad) 4.25rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  pointer-events: none;
  will-change: transform, opacity;
}
.hero__meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(10, 31, 51, 0.28);
  padding-top: 0.75rem;
  color: var(--ink);
}
.hero__title {
  font-size: clamp(3.4rem, min(12.5vw, 15svh), 15rem);
  line-height: 0.84;
  letter-spacing: -0.065em;
  font-weight: 700;
  margin: 1.75rem 0 0;
  align-self: start;
  color: var(--ink);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__title .line__in { display: inline-block; will-change: transform; }
.hero__title .line--indent { padding-left: 9vw; }
.hero__title em { font-weight: 400; letter-spacing: -0.03em; color: var(--blue); font-size: 1.08em; line-height: 0.7; }
.hero__title .dot { color: var(--blue); }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.hero__lede { max-width: 34ch; margin: 0; font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.4; color: var(--ink); }
.hero__lede em { font-size: 1.15em; }
.scroll-cue { display: flex; align-items: center; gap: 0.75rem; color: var(--ink); }
.scroll-cue__line { width: 70px; height: 1px; background: var(--ink); }

/* ---------- scroll stories (Blender frame sequences on sticky canvases) ---------- */
.story { position: relative; z-index: 6; }
.story--arrival { height: 1050vh; }
.story--lights { height: 420vh; }
.story__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.story__stage { position: absolute; inset: 0; overflow: hidden; }
/* cinematic edge falloff */
.story__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(10, 31, 51, 0.28) 100%);
}
.story__canvas { scale: 1.03; }
/* the renders have a transparent sky: the sky is drawn here and changes with the time of day */
.story__sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--sky-top, #9fbfe0) 0%, var(--sky-mid, #d5e2ee) 52%, var(--sky-hor, #f3efe8) 100%);
}
.story__sun {
  position: absolute;
  left: 0; top: 0;
  width: 70vmax; height: 70vmax;
  margin: -35vmax 0 0 -35vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 251, 240, 1) 0%, rgba(255, 236, 196, 0.85) 3.5%, rgba(255, 200, 140, 0.42) 14%, rgba(255, 170, 110, 0.14) 30%, transparent 56%);
  opacity: 0;
  will-change: transform, opacity;
}
.story__word {
  position: absolute;
  left: 50%;
  top: 34%;
  font-size: clamp(4rem, 17.5vw, 22rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.8;
  white-space: nowrap;
  color: rgba(255, 252, 246, 0.94);
  text-shadow: 0 0 80px rgba(255, 206, 150, 0.45);
  opacity: 0;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}
.story__fallback, .story__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story.is-live .story__fallback { opacity: 0; transition: opacity var(--dur-base); }
.story__veil { position: absolute; inset: 0; background: #f6f5f2; opacity: 0; pointer-events: none; }
.story__stars {
  position: absolute;
  inset: 0 0 35% 0;
  opacity: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 8% 12%, #fff 60%, transparent 62%), radial-gradient(1px 1px at 17% 31%, #fff 60%, transparent 62%),
    radial-gradient(1.4px 1.4px at 26% 8%, #fff 60%, transparent 62%), radial-gradient(1px 1px at 33% 22%, #fff 60%, transparent 62%),
    radial-gradient(1.2px 1.2px at 41% 14%, #fff 60%, transparent 62%), radial-gradient(1px 1px at 52% 27%, #fff 60%, transparent 62%),
    radial-gradient(1.6px 1.6px at 58% 9%, #fff 60%, transparent 62%), radial-gradient(1px 1px at 66% 19%, #fff 60%, transparent 62%),
    radial-gradient(1.2px 1.2px at 74% 6%, #fff 60%, transparent 62%), radial-gradient(1px 1px at 81% 25%, #fff 60%, transparent 62%),
    radial-gradient(1.4px 1.4px at 89% 13%, #fff 60%, transparent 62%), radial-gradient(1px 1px at 95% 30%, #fff 60%, transparent 62%),
    radial-gradient(1px 1px at 4% 36%, #fff 60%, transparent 62%), radial-gradient(1.2px 1.2px at 47% 38%, #fff 60%, transparent 62%),
    radial-gradient(1px 1px at 70% 40%, #fff 60%, transparent 62%), radial-gradient(1px 1px at 22% 44%, #fff 60%, transparent 62%);
}

/* landmark markers: a ring on the object, a hairline, then the name */
.story__marks { position: absolute; inset: 0; pointer-events: none; }
.mark { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; }
.mark__dot { position: absolute; width: 14px; height: 14px; left: -7px; top: -7px; border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 0 0 1px rgba(10, 31, 51, 0.35); }
.mark__line { position: absolute; left: 0; bottom: 7px; width: 1px; height: 46px; background: var(--white); box-shadow: 0 0 0 0.5px rgba(10, 31, 51, 0.25); }
.mark__label {
  position: absolute;
  left: -1px;
  bottom: 53px;
  white-space: nowrap;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--white);
  padding: 0.3rem 0.65rem;
  border-radius: var(--r-sm);
}
.mark__label em { color: var(--blue); margin-left: 0.35rem; }

/* act 2 closing line, over the night town */
.story__final {
  position: absolute;
  left: 50%;
  top: 30%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: min(48rem, calc(100% - var(--pad) * 2));
  opacity: 0;
  visibility: hidden;
}
.story__final h2 {
  font-size: clamp(2.8rem, 7.4vw, 7rem);
  letter-spacing: -0.055em;
  line-height: 0.9;
  margin: 0 0 1.75rem;
  font-weight: 650;
  color: var(--paper);
  text-shadow: 0 4px 40px rgba(10, 31, 51, 0.6);
}
.story__final h2 em { color: #ffd38f; letter-spacing: -0.02em; }
.story__cta { display: inline-flex; align-items: center; gap: 1.25rem; background: rgba(10, 31, 51, 0.55); color: var(--paper); padding: 0.5rem 1.4rem 0.5rem 0.5rem; border-radius: 999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.story__cta .btn { background: var(--paper); color: var(--ink); }

.story__hud { position: absolute; left: var(--pad); right: var(--pad); bottom: 1.25rem; z-index: 4; display: flex; align-items: center; gap: 1rem; color: var(--ink); }
.story__hud > span:first-child { background: rgba(242, 240, 235, 0.85); padding: 0.25rem 0.55rem; border-radius: var(--r-sm); white-space: nowrap; }
.story--lights .story__hud > span:first-child { background: rgba(10, 31, 51, 0.6); color: var(--paper); }
.story__bar { flex: 1; height: 2px; background: rgba(10, 31, 51, 0.15); border-radius: 2px; overflow: hidden; }
.story--lights .story__bar { background: rgba(242, 240, 235, 0.2); }
.story__bar i { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }
.story--lights .story__bar i { background: #ffd38f; }
.story__loading { position: absolute; right: var(--pad); bottom: 2.4rem; z-index: 4; color: var(--ink); background: rgba(242, 240, 235, 0.85); padding: 0.25rem 0.55rem; border-radius: var(--r-sm); }
.story__loading:empty { display: none; }

/* static version: no JS, reduced motion, or frames unavailable */
html:not(.js) .story, .story--static { height: auto; }
html:not(.js) .story__sticky, .story--static .story__sticky { position: relative; height: auto; overflow: visible; }
html:not(.js) .story--arrival .story__sticky, .story--arrival.story--static .story__sticky { height: 100svh; }
html:not(.js) .story--lights .story__stage, .story--lights.story--static .story__stage { position: relative; aspect-ratio: 16 / 9; }
html:not(.js) .story__canvas, .story--static .story__canvas,
html:not(.js) .story__marks, .story--static .story__marks,
html:not(.js) .story__word, .story--static .story__word,
html:not(.js) .story__hud, .story--static .story__hud { display: none; }
html:not(.js) .story__final, .story--static .story__final { opacity: 1; visibility: visible; }
html:not(.js) .story--lights .story__sky, .story--lights.story--static .story__sky { --sky-top: #0f1b2f; --sky-mid: #22324f; --sky-hor: #4a5272; }

/* ---------- marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 1.4rem 0;
  transform: rotate(-1.5deg) scale(1.03);
  position: relative;
  z-index: 5;
}
.marquee__track { display: flex; gap: 2.5rem; width: max-content; align-items: center; will-change: transform; }
.marquee__track span { font-size: clamp(1.6rem, 3.5vw, 3rem); font-weight: 500; letter-spacing: -0.03em; white-space: nowrap; }
.marquee__track b { color: var(--blue-light); font-size: 1.6rem; }

/* ---------- about ---------- */
.about__statement {
  font-size: clamp(1.7rem, 4.2vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0 0 clamp(4rem, 10vw, 9rem);
  text-indent: 18vw;
}
.about__statement .w { opacity: 0.14; }

.pillar {
  position: sticky;
  top: 6rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  padding: clamp(1.75rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
  min-height: 15rem;
}
.pillar:nth-child(2) { top: 7rem; }
.pillar:nth-child(3) { top: 8rem; }
.pillar:nth-child(4) { top: 9rem; }
.pillar__num {
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
.pillar h3 { font-size: clamp(1.6rem, 3vw, 2.8rem); letter-spacing: -0.035em; margin: 0 0 0.75rem; font-weight: 600; line-height: 1; }
.pillar p { margin: 0; color: var(--muted); max-width: 44ch; }
.pillar__tag { justify-self: end; text-align: right; color: var(--muted); }

/* ---------- stats ---------- */
.stats {
  position: relative;
  background: var(--blue);
  color: var(--white);
  overflow: hidden;
}
.stats__pattern { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--white); opacity: 0.1; }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.stat {
  padding: clamp(2.5rem, 6vw, 5rem) var(--pad) clamp(2rem, 4vw, 3rem);
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stat:last-child { border-right: 0; }
.stat__num {
  display: flex;
  align-items: flex-start;
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 300;
  letter-spacing: -0.06em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
/* digit roll (transitions.dev "number pop-in" pattern) */
.digit { display: inline-block; height: 0.9em; overflow: hidden; }
.digit__col { display: flex; flex-direction: column; }
.digit__col span { height: 0.9em; line-height: 0.9em; }
.stat__suffix { font-size: 0.45em; letter-spacing: -0.02em; margin: 0.12em 0 0 0.08em; }
.stats__note { position: relative; margin: 0; padding: 0 var(--pad) 1.5rem; opacity: 0.85; }

/* ---------- articles ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filters button {
  font: 500 0.9rem var(--f-display);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--dur-quick), color var(--dur-quick), border-color var(--dur-quick);
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters sup { font-size: 0.7em; margin-left: 0.25rem; opacity: 0.6; }

.article-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.article-row { border-top: 1px solid var(--line); transition: opacity var(--dur-base); }
.article-row.is-hidden { display: none; }
.article-row :is(button, a) {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  cursor: pointer;
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) 11rem;
  gap: 2rem;
  align-items: center;
  padding: 1.75rem 0;
}
.article-row :is(button, a):focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.article-row__date { color: var(--muted); }
.article-row__title {
  font-size: clamp(1.3rem, 2.6vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  transition: transform var(--dur-slow) var(--ease), color var(--dur-quick);
}
.article-row__cat { color: var(--muted); text-align: right; }
.article-list:hover .article-row { opacity: 0.35; }
.article-list:hover .article-row:hover { opacity: 1; }
.article-row:hover .article-row__title { transform: translateX(1rem); color: var(--blue); }

.article-preview {
  position: fixed;
  top: 0; left: 0;
  width: 300px; height: 380px;
  pointer-events: none;
  z-index: 700;
  overflow: hidden;
  border-radius: var(--r-sm);
  opacity: 0;
  transform: scale(0.6);
}
.article-preview__inner { width: 100%; height: 100%; }
@media (hover: none) { .article-preview { display: none; } }

/* generative cover art (stand-in until real photos exist) */
.art { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--ink); }
.art::before, .art::after { content: ""; position: absolute; }
.art span { position: absolute; left: 1rem; bottom: 1rem; font: 500 0.8rem var(--f-display); color: var(--white); z-index: 2; }
.art--1 { background: linear-gradient(160deg, var(--ink) 30%, var(--ink-2)); }
.art--1::before { width: 140%; aspect-ratio: 1; border-radius: 50%; background: var(--blue); left: -20%; top: 55%; }
.art--1::after { inset: 0; background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(242,240,235,.12) 22px 23px); }
.art--2 { background: var(--blue-light); }
.art--2::before { width: 70%; height: 70%; left: 15%; top: 10%; background: var(--ink); border-radius: 50% 50% 0 0; }
.art--2::after { width: 30%; aspect-ratio: 1; border-radius: 50%; background: var(--blue); right: 10%; bottom: 14%; }
.art--3 { background: var(--paper-2); }
.art--3::before { inset: 12%; border: 1px solid var(--ink); background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(10,31,51,.15) 10px 11px); }
.art--3::after { width: 40%; height: 40%; background: var(--blue); right: 6%; top: 6%; mix-blend-mode: multiply; }
.art--3 span { color: var(--ink); }
.art--4 { background: linear-gradient(180deg, var(--blue-light) 0%, var(--blue) 55%, var(--ink) 100%); }
.art--4::before { left: -10%; right: -10%; bottom: 0; height: 45%; background: var(--ink); clip-path: polygon(0 100%, 0 60%, 30% 20%, 50% 35%, 72% 0, 100% 50%, 100% 100%); }
.art--4::after { width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--paper); left: 39%; top: 18%; }
.art--5 { background: var(--ink-2); }
.art--5::before { width: 60%; aspect-ratio: 1; left: 20%; top: 20%; border: 18px solid var(--blue); border-radius: 50%; }
.art--5::after { width: 100%; height: 1px; background: var(--paper); top: 50%; box-shadow: 0 30px 0 rgba(242,240,235,.4), 0 -30px 0 rgba(242,240,235,.4); }

/* reader dialog */
.reader {
  width: min(880px, 100% - 2rem);
  max-height: calc(100% - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
}
.reader::backdrop { background: rgba(10, 31, 51, 0.75); }
.reader[open] { animation: reader-in var(--dur-slow) var(--ease); }
@keyframes reader-in { from { opacity: 0; transform: translateY(40px); } }
.reader__art { height: clamp(200px, 36vw, 340px); }
/* ui-layouts style clip reveal on the cover */
.reader[open] .reader__art { animation: clip-in 1s var(--ease) 0.1s both; }
@keyframes clip-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.reader__content { padding: clamp(1.5rem, 5vw, 3.5rem); }

/* morphing dialog: the shared elements carry the motion, so the dialog's own entrance steps aside */
.is-morphing .reader[open],
.is-morphing .reader[open] .reader__art { animation: none; }
::view-transition-group(article-title),
::view-transition-group(article-art) {
  animation-duration: 0.65s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
::view-transition-old(article-title),
::view-transition-new(article-title) { height: 100%; object-fit: none; object-position: left top; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.4s; }
.reader__meta { color: var(--muted); }
.reader h2 { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.04em; line-height: 1; margin: 1rem 0 2rem; font-weight: 600; }
.reader__body p { font-size: 1.1rem; max-width: 62ch; }
.reader__body p:first-child::first-letter { font-family: var(--f-serif); font-size: 4.4em; float: left; line-height: 0.8; margin: 0.08em 0.1em 0 0; color: var(--blue); }
.reader__close {
  position: sticky;
  top: 1rem;
  float: right;
  margin: 1rem 1rem -4rem 0;
  z-index: 3;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- events (horizontal) ---------- */
/* depth from below (patterncraft "Azure Depths", recoloured to the brand blue):
   separates the agenda band from the paper sections around it */
.events {
  background: radial-gradient(125% 90% at 50% 100%, var(--blue-deep) 0%, var(--ink) 55%);
  color: var(--paper);
  overflow: hidden;
}
.events__pin {
  min-height: 100vh;
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: 6rem var(--pad);
}
.events__intro { flex: 0 0 min(30rem, 34vw); }
/* cards are clipped at the intro's edge (with a short fade) instead of sliding over its text */
.events__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 4rem 0;
  margin: -4rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3rem);
  mask-image: linear-gradient(90deg, transparent, #000 3rem);
}
.events__intro .eyebrow { color: rgba(242, 240, 235, 0.65); }
.events__intro .section__title { margin: 1.5rem 0; font-size: clamp(2.6rem, 5.6vw, 5.4rem); }
.events__intro .section__title em { color: var(--blue-light); }
.events__intro p { color: rgba(242, 240, 235, 0.72); max-width: 34ch; }
.events__progress { height: 1px; background: var(--line-inv); margin-top: 2.5rem; }
.events__progress span { display: block; height: 100%; background: var(--blue-light); transform: scaleX(0); transform-origin: left; }
.events__track { display: flex; gap: 1.5rem; will-change: transform; }

.event-card {
  flex: 0 0 clamp(18rem, 28vw, 26rem);
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line-inv);
  border-radius: var(--r-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: radial-gradient(22rem circle at var(--mx, -50%) var(--my, -50%), rgba(140, 203, 239, 0.14), transparent 60%);
  transition: border-color var(--dur-base);
}
.event-card:hover { border-color: rgba(140, 203, 239, 0.45); }
.event-card__top { display: flex; justify-content: space-between; align-items: center; color: rgba(242, 240, 235, 0.72); }
.event-card__status { padding: 0.25rem 0.6rem; border-radius: 999px; border: 1px solid currentColor; }
.event-card__status--members { color: var(--blue-light); }
.event-card__status--soon { background: var(--blue); border-color: var(--blue); color: var(--white); }
.event-card__status--new { color: var(--blue-light); }
.event-card--soon { border-color: rgba(140, 203, 239, 0.6); }
.event-card--past { opacity: 0.55; }
.event-card__date--tba .event-card__month { font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 0.95; }
.event-card__partner { font-weight: 600; color: var(--blue-light) !important; opacity: 1 !important; margin-bottom: 0.4rem !important; }
.event-card__link { margin-top: 1rem; color: var(--blue-light); font-weight: 600; border-bottom: 1px solid currentColor; align-self: flex-start; }
.event-card__date { margin-top: auto; display: flex; align-items: flex-end; gap: 0.75rem; }
.event-card__day { font-size: clamp(5rem, 9vw, 8rem); font-weight: 300; line-height: 0.75; letter-spacing: -0.07em; }
.event-card__month { font-family: var(--f-serif); font-style: italic; font-size: 1.8rem; line-height: 1; color: var(--blue-light); }
.event-card h3 { font-size: 1.5rem; letter-spacing: -0.03em; line-height: 1.05; margin: 1.5rem 0 0.6rem; font-weight: 600; }
.event-card p { margin: 0; font-size: 0.95rem; color: rgba(242, 240, 235, 0.75); }
.event-card__place { margin-top: 1.25rem; color: rgba(242, 240, 235, 0.65); }
.event-card--end {
  flex-basis: clamp(16rem, 22vw, 20rem);
  justify-content: center;
  align-items: flex-start;
  border-style: dashed;
}
.event-card--end h3 { font-size: 2rem; margin-top: 0.75rem; }
.event-card--end a { color: var(--blue-light); margin-top: 1rem; font-weight: 600; border-bottom: 1px solid currentColor; }

/* ---------- membership ---------- */
.benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(4rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.benefits li { padding: 1.5rem 1.5rem 1.5rem 0; border-top: 1px solid var(--ink); }
.benefits li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.benefits span { color: var(--blue); font-weight: 700; }
.benefits h4 { font-size: 1.35rem; letter-spacing: -0.03em; line-height: 1.1; margin: 2.5rem 0 0.5rem; font-weight: 600; }
.benefits p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* tiers as rows: categories differ by company size, not by a price ladder */
.tiers { list-style: none; padding: 0; margin: 0; border-bottom: 1px solid var(--line); }
.tier {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.6fr) auto;
  gap: 2rem;
  align-items: baseline;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  transition: background-color var(--dur-base);
}
.tier:hover { background: rgba(4, 123, 194, 0.05); }
.tier__num { color: var(--muted); padding-left: 0.25rem; }
.tier__name { font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -0.05em; line-height: 0.9; margin: 0; font-weight: 600; }
.tier__desc { margin: 0; color: var(--muted); max-width: 52ch; }
.tier__cta {
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background-color var(--dur-quick), color var(--dur-quick);
  white-space: nowrap;
}
.tier__cta:hover, .tier__cta:focus-visible { background: var(--ink); color: var(--paper); }
.tiers__note { color: var(--muted); margin: 1rem 0 0; font-size: 0.95rem; }

.steps {
  list-style: none;
  padding: 0;
  margin: clamp(4rem, 8vw, 6rem) 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.steps li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  letter-spacing: -0.02em;
  font-weight: 500;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  position: relative;
}
.steps li::before {
  content: "";
  position: absolute;
  top: -5px; left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ink);
}
.steps span { color: var(--muted); }
.steps__last::before { background: var(--blue) !important; }

/* rubber stamp (FeralUI "Stamp" idea) */
.stamp {
  position: absolute;
  bottom: 2.6rem;
  right: 0;
  width: clamp(7rem, 10vw, 9.5rem);
  color: var(--blue);
  transform: rotate(-12deg);
  pointer-events: none;
  font-family: var(--f-display);
}
.stamp text { font-family: var(--f-display); }
.stamp em, .stamp [font-style="italic"] { font-family: var(--f-serif); }

.join {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 6vw, 6rem);
  background: var(--paper-2);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 5vw, 4.5rem);
  scroll-margin-top: 6rem;
}
.join__intro h3 { font-size: clamp(2.2rem, 4.5vw, 4rem); letter-spacing: -0.05em; line-height: 0.95; margin: 1rem 0 1.25rem; font-weight: 600; }
.join__intro h3 em { color: var(--blue); }
.join__intro p { color: var(--muted); max-width: 36ch; }
.join__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; justify-content: center; }
.join__alt { margin: 0; color: var(--muted); }
.join__alt a { color: var(--ink); font-weight: 600; border-bottom: 1px solid currentColor; }
.join__needs { margin: 0.5rem 0 0; padding: 1rem 0 0; list-style: none; border-top: 1px solid var(--line); display: grid; gap: 0.4rem; color: var(--muted); font-size: 0.95rem; width: 100%; }
.join__needs li::before { content: "—"; margin-right: 0.5rem; color: var(--blue); }
.nav__login { border: 1px solid var(--line); }
.join__form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.25rem; align-content: start; }
.field { grid-column: 1 / -1; position: relative; }
.field--half { grid-column: span 1; }
.field input, .field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(10, 31, 51, 0.4);
  background: transparent;
  font: 400 1.15rem var(--f-display);
  color: var(--ink);
  padding: 1.4rem 0 0.5rem;
  outline: none;
  resize: vertical;
  border-radius: 0;
  transition: border-color var(--dur-quick);
}
.field label {
  position: absolute;
  left: 0; top: 1.4rem;
  color: var(--muted);
  pointer-events: none;
  transition: transform var(--dur-base) var(--ease), color var(--dur-quick);
  transform-origin: left;
}
.field input:focus, .field textarea:focus { border-color: var(--blue); border-bottom-width: 2px; }
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label { transform: translateY(-1.35rem) scale(0.75); color: var(--ink); }
.field.is-invalid input { border-color: #b3261e; }
.field.is-invalid label { color: #b3261e; }

/* chips with drawn checkmark (uiverse-style control) */
.chips { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips legend { color: var(--muted); margin-bottom: 0.75rem; padding: 0; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0.6rem 1.1rem;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(10, 31, 51, 0.35);
  transition: background-color var(--dur-quick), color var(--dur-quick), border-color var(--dur-quick), gap var(--dur-base) var(--ease);
}
.chips svg {
  width: 0; height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
  transition: width var(--dur-base) var(--ease), stroke-dashoffset var(--dur-base) var(--ease) 0.1s;
}
.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); gap: 0.5rem; }
.chips input:checked + span svg { width: 12px; stroke-dashoffset: 0; }
.chips input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.chips.is-invalid span { border-color: #b3261e; }
.join__form .btn { grid-column: 1 / -1; justify-self: start; margin-top: 0.5rem; }
.join__status { grid-column: 1 / -1; margin: 0; min-height: 1.5em; font-weight: 500; }
.join__status.is-ok { color: #1c6b44; }
.join__status.is-err { color: #b3261e; }
.join__status.is-info { color: var(--ink); }

/* ---------- footer ---------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(4rem, 10vw, 8rem) var(--pad) 1.5rem;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.footer__neat {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: 70%;
  z-index: -1;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
  mask-image: linear-gradient(#000 40%, transparent);
}
.footer .eyebrow { color: rgba(242, 240, 235, 0.7); }
.footer__cta { display: flex; flex-direction: column; align-items: flex-start; }
.footer__big {
  display: inline-block;
  font-size: clamp(3rem, 10vw, 10rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.95;
  margin: 1.5rem 0 clamp(4rem, 8vw, 7rem);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat;
  transition: background-size var(--dur-slow) var(--ease);
}
.footer__big:hover, .footer__big:focus-visible { background-size: 100% 3px; }
.footer__big em { color: var(--blue-light); letter-spacing: -0.03em; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--line-inv);
  padding-top: 2rem;
}
.footer__grid .meta { color: rgba(242, 240, 235, 0.6); }
.footer__grid p { margin: 0.75rem 0 0; line-height: 1.7; }
.footer__grid a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--dur-base) var(--ease); }
.footer__grid a:hover, .footer__grid a:focus-visible { background-size: 100% 1px; }
.footer__word {
  font-size: 27vw;
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.75;
  margin: clamp(3rem, 8vw, 6rem) 0 1.5rem -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 240, 235, 0.25);
  white-space: nowrap;
  user-select: none;
}
.footer__base { display: flex; justify-content: space-between; color: rgba(242, 240, 235, 0.6); }

/* prototype label (R-38: placeholder content is labelled where users can see it) */
.proto-tag {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 850;
  background: var(--ink);
  color: var(--paper);
  padding: 0.4rem 0.75rem;
  border-radius: var(--r-sm);
}
[data-prototype-only][hidden] { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .header > .btn { display: none; }
  .menu-toggle { display: block; }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits li:nth-child(3) { border-left: 0; padding-left: 0; }
  .tier { grid-template-columns: 3rem minmax(0, 1fr) auto; }
  .tier__desc { grid-column: 2 / -1; grid-row: 2; }
  .join { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .section__head--split { grid-template-columns: 1fr; }
  .hero__meta span:nth-child(2) { display: none; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .about__statement { text-indent: 0; }
  .pillar { grid-template-columns: 1fr; gap: 1rem; position: relative; top: auto !important; min-height: 0; }
  .pillar__tag { justify-self: start; text-align: left; }
  .article-row :is(button, a) { grid-template-columns: 1fr auto; gap: 0.5rem 1rem; padding: 1.25rem 0; }
  .article-row__date { grid-column: 1; grid-row: 1; }
  .article-row__title { grid-column: 1 / -1; grid-row: 2; }
  .article-row__cat { grid-column: 2; grid-row: 1; }
  .events__pin { flex-direction: column; align-items: stretch; min-height: 0; padding: 5rem var(--pad); }
  .events__intro { flex: none; }
  .events__viewport { overflow: visible; padding: 0; margin: 0; -webkit-mask-image: none; mask-image: none; }
  .events__progress { display: none; }
  .events__track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(var(--pad) * -1);
    padding: 0 var(--pad) 1rem;
    scrollbar-width: none;
  }
  .events__track::-webkit-scrollbar { display: none; }
  .event-card { flex-basis: 78vw; scroll-snap-align: start; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1rem; }
  .stamp { bottom: 2.4rem; width: 6rem; }
  .mark__line { height: 30px; }
  .mark__label { bottom: 37px; }
  .story__hud > span:first-child { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .join__form { grid-template-columns: 1fr; }
  .field--half { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .benefits { grid-template-columns: 1fr; }
  .benefits li + li { border-left: 0; padding-left: 0; }
  .stat__num { font-size: 3rem; }
  .footer__base { flex-direction: column; gap: 0.5rem; }
  .hero__title .line--indent { padding-left: 8vw; }
  .tier { grid-template-columns: 1fr auto; gap: 0.75rem 1rem; }
  .tier__num { display: none; }
  .tier__desc { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .about__statement .w { opacity: 1; }
}
