/* ==========================================================================
   Skyrocket Inc — site styles
   Hand-written port of the original Tailwind design.
   Breakpoint: 640px (Tailwind "sm").
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --background: 250 40% 6%;
  --foreground: 260 20% 96%;
  --card: 255 35% 9%;
  --primary: 282 90% 66%;
  --primary-foreground: 260 30% 8%;
  --primary-soft: 282 95% 78%; /* readable purple text on dark tinted backgrounds */
  --live: 150 60% 50%;         /* "Out now" green, from the design's released state */
  --secondary: 255 30% 14%;
  --secondary-foreground: 260 20% 96%;
  --muted-foreground: 258 15% 66%;
  --accent: 190 90% 55%;
  --border: 258 30% 20%;

  /* Noto Sans Thai is a fallback: Latin text still uses the brand fonts,
     Thai characters fall through to Noto. Add JP / KR / SC here when those
     languages ship. */
  --font-body: "Space Grotesk", "Noto Sans Thai", sans-serif;
  --font-display: "Sora", "Noto Sans Thai", sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);

  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-4xl: 2rem;
}

/* ---------- Reset (Tailwind preflight equivalent) ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid hsl(var(--border)); }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; }
/* Smooth-scroll in-page links (clicking one focuses it), but not the jump to
   #anchor on page load: images/fonts loading would interrupt that animation
   and leave the visitor at the top. */
html:focus-within { scroll-behavior: smooth; }
h1, h2, h3, p { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
img, svg { display: block; vertical-align: middle; }
img { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; cursor: pointer; }

body {
  font-family: var(--font-body);
  overflow-x: clip;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

/* ---------- Utilities ---------- */
.font-display { font-family: var(--font-display); }
.text-primary { color: hsl(var(--primary)); }
.text-glow { text-shadow: 0 0 24px hsl(var(--primary) / 0.55); }
.icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.nowrap { white-space: nowrap; } /* keep a phrase on one line (handy in Thai, which has no spaces) */
.br-sm { display: none; }
@media (min-width: 640px) { .br-sm { display: inline; } }

.container { margin-inline: auto; max-width: 72rem; padding-inline: 1.25rem; }
.container--narrow { max-width: 56rem; }

/* Small uppercase label above headings ("Portfolio", "About") */
.eyebrow {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--accent));
}

/* Glowing uppercase pill ("Indie solo studio", "Early Access") */
.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid hsl(var(--accent) / 0.4);
  border-radius: 9999px;
  background: hsl(var(--accent) / 0.1);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--accent));
}

/* Release-state colors, shared by .badge and .status:
     --early  Early Access → brand purple + pulsing dot
     --live   Out now      → green + pulsing dot
   Markup: <span class="badge badge--early"><span class="badge__dot" aria-hidden="true"></span><span>Early Access</span></span> */
.badge--early {
  border-color: hsl(var(--primary) / 0.55);
  background: hsl(var(--primary) / 0.18);
  color: hsl(var(--primary-soft));
  box-shadow: 0 0 22px hsl(var(--primary) / 0.3);
}
.badge--live {
  border-color: hsl(var(--live) / 0.45);
  background: hsl(var(--live) / 0.14);
  color: hsl(150 65% 68%);
  box-shadow: 0 0 22px hsl(var(--live) / 0.2);
}
.badge__dot {
  width: 0.4375rem;
  height: 0.4375rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: dot-pulse 2s ease-in-out infinite;
}

/* Quiet outlined pill for a project's status ("Early Access", "Proof of concept") */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.125rem 0.625rem;
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
}
.status--early { border-color: hsl(var(--primary) / 0.55); color: hsl(var(--primary-soft)); }
.status--live { border-color: hsl(var(--live) / 0.45); color: hsl(150 65% 68%); }
.status .badge__dot { width: 0.375rem; height: 0.375rem; }

/* Generic page section spacing */
.section { margin-top: 5rem; }

/* ---------- Site shell ---------- */
.site {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.site__bg { position: fixed; inset: 0; pointer-events: none; }
.site__bg--stars {
  opacity: 0.6;
  background-image:
    radial-gradient(1px 1px at 20% 30%, hsl(0 0% 100% / 0.7), transparent),
    radial-gradient(1px 1px at 70% 60%, hsl(280 90% 80% / 0.6), transparent),
    radial-gradient(1.5px 1.5px at 40% 80%, hsl(190 90% 80% / 0.6), transparent),
    radial-gradient(1px 1px at 85% 20%, hsl(0 0% 100% / 0.5), transparent),
    radial-gradient(1px 1px at 10% 70%, hsl(320 90% 80% / 0.5), transparent);
  background-size: 100% 100%;
}
.site__bg--glow {
  background:
    radial-gradient(60% 50% at 50% -10%, hsl(282 90% 40% / 0.35), transparent),
    radial-gradient(50% 40% at 90% 20%, hsl(190 90% 45% / 0.18), transparent);
}

main { position: relative; z-index: 10; }

/* ---------- Header ---------- */
.header { position: relative; z-index: 30; }
.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-block: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-xl);
  background: hsl(var(--primary));
  box-shadow: 0 0 24px hsl(var(--primary) / 0.6);
}
.brand__mark img { width: 1.75rem; height: 1.75rem; object-fit: contain; filter: invert(1); }
.brand__name { font-weight: 600; letter-spacing: -0.025em; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem;
  border-width: 1px;
  border-radius: 9999px;
  background: hsl(var(--card) / 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav__link {
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
  transition: color 150ms var(--ease-default), background-color 150ms var(--ease-default);
}
.nav__link:hover { color: hsl(var(--foreground)); }
.nav__link[aria-current="page"] {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* Phones: brand + language button share the top row, nav gets its own row */
@media (max-width: 639px) {
  .nav { order: 3; width: 100%; justify-content: space-between; }
  .nav__link { padding-inline: 0.625rem; font-size: 0.8125rem; }
}

/* ---------- Language selector ----------
   One markup for both layouts: .lang__panel is a dropdown on desktop and a
   bottom sheet (with .lang__scrim behind it) on phones. JS only toggles
   .lang.is-open and aria-selected; everything visual lives here. */
.lang { position: relative; }

.lang__btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  height: 2.75rem;
  padding: 0 0.875rem;
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  background: hsl(var(--card) / 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: border-color 150ms var(--ease-default), box-shadow 150ms var(--ease-default);
}
.lang__btn:hover,
.lang__btn:focus-visible { border-color: hsl(var(--accent) / 0.6); }
.lang__btn[aria-expanded="true"] {
  border-color: hsl(var(--primary) / 0.7);
  box-shadow: 0 0 20px hsl(var(--primary) / 0.25);
}
.lang__btn .icon--globe { color: hsl(var(--accent)); }
.lang__btn .icon--chev { opacity: 0.6; transition: transform 150ms var(--ease-default); }
.lang__btn[aria-expanded="true"] .icon--chev { transform: rotate(180deg); }

.lang__scrim,
.lang__panel { display: none; }
.lang.is-open .lang__panel { display: block; }

/* Desktop: dropdown */
.lang__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 50;
  width: 16rem;
  padding: 0.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-2xl);
  background: hsl(var(--card) / 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px hsl(250 60% 2% / 0.7), 0 0 0 1px hsl(var(--primary) / 0.08);
}
.lang__grab,
.lang__close { display: none; }
.lang__label {
  padding: 0.5rem 0.75rem 0.375rem;
  font-size: 0.6875rem;
  line-height: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
.lang__list { display: grid; gap: 0.125rem; }

.lang__opt {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 0.75rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-xl);
  text-align: left;
  transition: background-color 120ms var(--ease-default);
}
.lang__opt:hover,
.lang__opt:focus-visible { background: hsl(var(--secondary)); outline: none; }
.lang__opt[aria-selected="true"] { background: hsl(var(--primary) / 0.14); }
.lang__opt[aria-selected="true"]:hover,
.lang__opt[aria-selected="true"]:focus-visible { background: hsl(var(--primary) / 0.2); }
.lang__native { font-size: 0.9375rem; line-height: 1.25rem; font-weight: 500; }
.lang__en { grid-column: 1; font-size: 0.75rem; line-height: 1rem; color: hsl(var(--muted-foreground)); }
.lang__check {
  display: none;
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 1rem;
  height: 1rem;
  color: hsl(var(--primary));
}
.lang__opt[aria-selected="true"] .lang__check { display: block; }

/* Phones: bottom sheet */
@media (max-width: 639px) {
  .lang__btn .icon--chev { display: none; }

  .lang.is-open .lang__scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: hsl(250 60% 3% / 0.6);
  }
  .lang__panel {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: 85vh;
    overflow-y: auto;
    padding: 0.5rem 0.75rem calc(1.25rem + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid hsl(var(--border));
    border-radius: 28px 28px 0 0;
    background: hsl(var(--card));
    box-shadow: 0 -20px 60px hsl(250 60% 2% / 0.6);
  }
  .lang__grab {
    display: block;
    width: 40px;
    height: 4px;
    margin: 0.25rem auto 0.75rem;
    border-radius: 9999px;
    background: hsl(var(--muted-foreground) / 0.4);
  }
  .lang__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.5rem 0.5rem;
  }
  .lang__label {
    padding: 0;
    font-family: var(--font-display);
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 700;
    letter-spacing: normal;
    text-transform: none;
    color: hsl(var(--foreground));
  }
  .lang__close {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    color: hsl(var(--muted-foreground));
  }
  .lang__close:hover { background: hsl(var(--secondary)); color: hsl(var(--foreground)); }

  /* Stop the page scrolling behind the open sheet */
  :root:has(.lang.is-open) { overflow: hidden; }
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 10;
  margin-top: 6rem;
  border-top: 1px solid hsl(var(--border) / 0.6);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-block: 2.5rem;
  text-align: center;
}
.footer__socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}
.footer__socials a {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
  transition: color 150ms var(--ease-default);
}
.footer__socials a:hover { color: hsl(var(--accent)); }
.footer__copy {
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground) / 0.7);
}

/* ==========================================================================
   Home page
   ========================================================================== */

/* ---------- Hero ---------- */
.hero { padding-top: 2rem; padding-bottom: 4rem; }
.hero__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.6);
  border-radius: var(--radius-4xl);
}
.hero__img { width: 100%; height: 46vh; min-height: 320px; object-fit: cover; }
.hero__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(var(--background)), hsl(var(--background) / 0.6), transparent);
}
.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}
.hero__badge { margin-bottom: 0.75rem; }
.hero__title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.hero__tagline {
  max-width: 36rem;
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.5rem;
  color: hsl(var(--muted-foreground));
}
@media (min-width: 640px) {
  .hero { padding-top: 3.5rem; }
  .hero__img { height: 56vh; }
  .hero__content { padding: 3rem; }
  .hero__title { font-size: 3.75rem; line-height: 1; }
  .hero__tagline { font-size: 1.125rem; line-height: 1.75rem; }
}

/* ---------- Link-in-bio buttons ---------- */
.links { max-width: 28rem; margin-top: -2rem; }
.links__list { display: flex; flex-direction: column; gap: 0.75rem; }
.link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-2xl);
  background: hsl(var(--card) / 0.7);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    border-color 150ms var(--ease-default),
    background-color 150ms var(--ease-default),
    transform 200ms var(--ease-out);
}
.link-btn:hover { border-color: hsl(var(--accent) / 0.6); transform: translateY(-2px); }
.link-btn:active { transform: scale(0.98); }
.link-btn--primary {
  border-color: transparent;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 0 30px hsl(var(--primary) / 0.45);
}
.link-btn--primary:hover { border-color: transparent; }
.link-btn .icon { opacity: 0.7; transition: transform 150ms var(--ease-default); }
.link-btn:hover .icon { transform: translate(2px, -2px); }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  margin-block: 4rem;
  padding-block: 1rem;
  overflow: hidden;
  border-block: 1px solid hsl(var(--border) / 0.5);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}
.marquee__word {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  color: hsl(var(--muted-foreground) / 0.4);
}
.marquee__star { color: hsl(var(--primary) / 0.6); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.6);
  border-radius: var(--radius-3xl);
  background: hsl(var(--border) / 0.6);
}
.stats__item { padding: 2rem 1.5rem; background: hsl(var(--card)); text-align: center; }
.stats__value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 800;
  color: hsl(var(--primary));
}
.stats__label {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
}
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Section heading (reusable) ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-title {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.section-head__link {
  display: none;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
}
.section-head__link:hover { color: hsl(var(--foreground)); }
@media (min-width: 640px) {
  .section-title { font-size: 2.25rem; line-height: 2.5rem; }
  .section-head__link { display: flex; }
}

/* ---------- Projects ---------- */
.projects { padding-top: 5rem; scroll-margin-top: 6rem; }
.projects__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .projects__grid { grid-template-columns: repeat(2, 1fr); } }

.project-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.6);
  border-radius: var(--radius-3xl);
  background: hsl(var(--card));
}
.project-card__media { overflow: hidden; }
.project-card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 500ms var(--ease-default);
}
.project-card:hover .project-card__media img { transform: scale(1.05); }
.project-card__body { padding: 1.25rem; }
.project-card__top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.project-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
}
.project-card__blurb {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
}
.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  line-height: 1rem;
}
.project-card__year { color: hsl(var(--muted-foreground) / 0.7); }

.tag {
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

/* ---------- CTA ---------- */
.cta { margin-top: 5rem; }
.cta__box {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border: 1px solid hsl(var(--primary) / 0.3);
  border-radius: var(--radius-4xl);
  background: linear-gradient(to bottom right, hsl(var(--primary) / 0.2), hsl(var(--card)), hsl(var(--accent) / 0.1));
  text-align: center;
}
.cta__title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.cta__text {
  max-width: 32rem;
  margin: 0.75rem auto 0;
  color: hsl(var(--muted-foreground));
}
@media (min-width: 640px) {
  .cta__box { padding: 3.5rem; }
  .cta__title { font-size: 2.25rem; line-height: 2.5rem; }
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  transition: transform 150ms var(--ease-default), border-color 150ms var(--ease-default);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn--ghost {
  border-color: hsl(var(--border));
  background: hsl(var(--card) / 0.6);
  color: hsl(var(--foreground));
}
.btn--ghost:hover { border-color: hsl(var(--accent) / 0.6); }

/* ==========================================================================
   About page
   ========================================================================== */
.about { padding-top: 2.5rem; padding-bottom: 5rem; }
.about__intro { display: grid; grid-template-columns: 1fr; align-items: center; gap: 2rem; }
@media (min-width: 640px) { .about__intro { grid-template-columns: 1fr 1.2fr; } }

.about__portrait {
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.6);
  border-radius: var(--radius-4xl);
  animation: float-slow 6s ease-in-out infinite;
}
.about__portrait img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.about__title {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.025em;
}
@media (min-width: 640px) { .about__title { font-size: 3rem; line-height: 1; } }

.muted { color: hsl(var(--muted-foreground)); }
.about__lede { margin-top: 1rem; }

.subheading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
}

/* Timeline */
.timeline-section { margin-top: 4rem; }
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid hsl(var(--border) / 0.6);
  list-style: none;
}
.timeline__item { position: relative; }
.timeline__dot {
  position: absolute;
  left: -31px;
  top: 0.375rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  background: hsl(var(--primary));
  box-shadow: 0 0 12px hsl(var(--primary) / 0.8);
}
.timeline__year {
  font-family: var(--font-display);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  color: hsl(var(--primary));
}
.timeline__text { margin-top: 0.25rem; }

/* Say hello card */
.hello {
  margin-top: 4rem;
  padding: 2rem;
  border: 1px solid hsl(var(--border) / 0.6);
  border-radius: var(--radius-3xl);
  background: hsl(var(--card) / 0.7);
}
.hello__text { margin-top: 0.5rem; }
.hello__socials { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.chip {
  padding: 0.5rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  background: hsl(var(--secondary));
  font-size: 0.875rem;
  line-height: 1.25rem;
  transition: color 150ms var(--ease-default), border-color 150ms var(--ease-default);
}
.chip:hover { border-color: hsl(var(--accent) / 0.6); color: hsl(var(--accent)); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--primary));
}
.text-link:hover { text-decoration: underline; }

/* ==========================================================================
   Entrance animations
   Elements marked [data-reveal] start hidden only when JS is running
   (html.js), so the page is fully visible without JavaScript.
   --reveal-delay is set per element in the HTML.
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s var(--ease-out) var(--reveal-delay, 0s),
    transform 0.5s var(--ease-out) var(--reveal-delay, 0s),
    border-color 150ms var(--ease-default);
}
.js [data-reveal="left"] {
  transform: translateX(-16px);
  transition-duration: 0.4s;
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
/* After the entrance finishes, drop the delay so hover effects feel instant */
.js [data-reveal].is-done { transition-delay: 0s; }
.js .link-btn[data-reveal].is-visible:hover { transform: translateY(-2px); }
.js .link-btn[data-reveal].is-visible:active { transform: scale(0.98); }

/* ==========================================================================
   Project detail page (story layout) — shared by every project page.
   To add a project, see docs/adding-a-project.md.
   ========================================================================== */

/* Back link ("All projects") */
.back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 150ms var(--ease-default);
}
.back:hover { color: hsl(var(--accent)); }

/* Key-art banner with status badge */
.st-banner {
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
  border: 1px solid hsl(var(--border) / 0.6);
  border-radius: var(--radius-4xl);
}
.st-banner img { width: 100%; height: 16rem; object-fit: cover; }
.st-banner__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(var(--background)), hsl(var(--background) / 0.15) 55%, transparent);
}
.st-banner__badges {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.st-banner__date { font-size: 0.875rem; color: hsl(var(--foreground) / 0.85); }
@media (min-width: 640px) {
  .st-banner img { height: 26rem; }
  .st-banner__badges { left: 2.5rem; bottom: 2rem; }
}

/* Title block */
.st-head { max-width: 48rem; margin-top: 2.5rem; }
.st-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.st-lede { margin-top: 1rem; font-size: 1.25rem; line-height: 1.9rem; color: hsl(var(--muted-foreground)); }
.st-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
@media (min-width: 640px) { .st-title { font-size: 4rem; } }

/* Article + sidebar. Two columns only from 900px: below that the article
   column would be too narrow to read next to the 21rem sidebar. */
.st-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-top: 3.5rem; }
@media (min-width: 900px) { .st-layout { grid-template-columns: minmax(0, 1fr) 21rem; gap: 4.5rem; } }

/* Long-form story */
.st-article { max-width: 42rem; }
.st-article h2 {
  margin-top: 3.5rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.st-article .eyebrow + h2 { margin-top: 0.5rem; }
.st-article p { margin-top: 1.25rem; font-size: 1.0625rem; line-height: 1.85rem; color: hsl(var(--foreground) / 0.86); }
.st-article .eyebrow { margin-top: 0; }

.st-quote { margin: 3rem 0; text-align: center; }
.st-quote__mark { color: hsl(var(--primary)); font-size: 1.25rem; }
.st-quote blockquote {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.625rem;
  line-height: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.st-quote blockquote .text-primary { text-shadow: 0 0 24px hsl(var(--primary) / 0.5); }

.st-figure { margin-top: 2.5rem; }
.st-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid hsl(var(--border) / 0.6);
  border-radius: var(--radius-3xl);
}
.st-article .st-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
}

.st-pillars { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .st-pillars { grid-template-columns: 1fr 1fr; } }
.st-pillar {
  padding: 1.25rem;
  border: 1px solid hsl(var(--border) / 0.6);
  border-radius: var(--radius-2xl);
  background: hsl(var(--card) / 0.7);
}
.st-article .st-pillar__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}
.st-pillar__title span { color: hsl(var(--primary)); }
.st-article .st-pillar__text { margin-top: 0.5rem; font-size: 0.9375rem; line-height: 1.5rem; color: hsl(var(--muted-foreground)); }

/* Sidebar */
.st-aside { display: flex; flex-direction: column; gap: 1rem; }
.side-card {
  padding: 1.5rem;
  border: 1px solid hsl(var(--border) / 0.6);
  border-radius: var(--radius-3xl);
  background: hsl(var(--card) / 0.7);
}
.side-card__title {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--accent));
}
.side-card__block + .side-card__block {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid hsl(var(--border) / 0.5);
}
.side-card__label { margin-bottom: 0.625rem; font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }
.side-card__text { font-size: 0.875rem; line-height: 1.375rem; }

/* Key/value rows ("Status — Early Access") */
.info__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.5rem;
  border-top: 1px solid hsl(var(--border) / 0.5);
  font-size: 0.8125rem;
}
.info__row:first-of-type { border-top: 0; }
.info__k { color: hsl(var(--muted-foreground)); }
.info__v { font-weight: 500; text-align: right; }

/* Platform pills */
.plats { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.plat {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3125rem 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  background: hsl(var(--card) / 0.6);
  font-size: 0.8125rem;
  line-height: 1.25rem;
}
.plat svg { width: 0.875rem; height: 0.875rem; color: hsl(var(--accent)); }

/* Store rows: icon · name/subtitle · call to action */
.stores { display: flex; flex-direction: column; gap: 0.5rem; }
.store {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.75rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-2xl);
  background: hsl(var(--card) / 0.6);
  transition: border-color 150ms var(--ease-default), transform 200ms var(--ease-out);
}
a.store:hover { border-color: hsl(var(--accent) / 0.6); transform: translateY(-2px); }
.store__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
}
.store__icon svg { width: 1.25rem; height: 1.25rem; }
.store__name { display: block; font-size: 0.9375rem; line-height: 1.25rem; font-weight: 600; }
.store__sub { display: block; font-size: 0.75rem; line-height: 1rem; color: hsl(var(--muted-foreground)); }
.store__cta {
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.store__cta--ghost {
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  box-shadow: inset 0 0 0 1px hsl(var(--border));
}
.store__cta--soon {
  background: transparent;
  color: hsl(var(--muted-foreground));
  box-shadow: inset 0 0 0 1px hsl(var(--border));
  font-weight: 500;
}
.store--soon { border-style: dashed; background: transparent; }

/* Embedded YouTube trailer (muted autoplay loop) with a caption row */
.trailer {
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.6);
  border-radius: var(--radius-4xl);
  background: hsl(var(--card));
  box-shadow: 0 30px 80px hsl(282 90% 30% / 0.25);
}
.trailer__frame { position: relative; aspect-ratio: 16 / 9; background: hsl(var(--background)); }
.trailer__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid hsl(var(--border) / 0.6);
}
.trailer__title { font-family: var(--font-display); font-size: 1.125rem; line-height: 1.75rem; font-weight: 700; }
.trailer__sub {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 150ms var(--ease-default);
}
.trailer__sub:hover { color: hsl(var(--accent)); }
@media (max-width: 639px) {
  .trailer { border-radius: var(--radius-3xl); }
  .trailer__caption { padding: 0.875rem 1rem; }
  .trailer__title { font-size: 1rem; line-height: 1.5rem; }
}

/* Compact update / patch-note cards */
.upd-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .upd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.upd-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px solid hsl(var(--border) / 0.6);
  border-radius: var(--radius-3xl);
  background: hsl(var(--card));
  transition: border-color 150ms var(--ease-default), transform 200ms var(--ease-out);
}
.upd-card:hover { border-color: hsl(var(--primary) / 0.5); transform: translateY(-2px); }
.upd-card__meta { display: flex; align-items: center; gap: 0.5rem; }
.upd-card__title { font-family: var(--font-display); font-size: 1.0625rem; line-height: 1.5rem; font-weight: 700; }
.upd-card__date { margin-top: auto; font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

/* Post type label + version number (patch notes, news) */
.type {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.6875rem;
  line-height: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.type--patch { background: hsl(var(--primary) / 0.16); color: hsl(var(--primary-soft)); }
.type--hotfix { background: hsl(var(--accent) / 0.14); color: hsl(var(--accent)); }
.type--devlog { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.version { font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; }

/* ==========================================================================
   News — list page (news.html) and post pages (news/*.html).
   Lists are built by js/news.js from news/posts.json using the <template>s
   in each page. To add a post, see docs/adding-a-news-post.md.
   ========================================================================== */

/* Page heading block (news.html) */
.page-head { padding-top: 2rem; }
.page-title {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.page-lede { max-width: 36rem; margin-top: 1rem; font-size: 1.0625rem; line-height: 1.65rem; }
@media (min-width: 640px) {
  .page-head { padding-top: 3rem; }
  .page-title { font-size: 3rem; line-height: 1.05; }
}

/* Filter pills */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.filters__group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.375rem;
  border: 1px solid hsl(var(--border));
  border-radius: 1.375rem;
  background: hsl(var(--card) / 0.6);
}
.filter {
  min-height: 2.25rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 150ms var(--ease-default);
}
.filter:hover { color: hsl(var(--foreground)); }
.filter[aria-pressed="true"] {
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  box-shadow: inset 0 0 0 1px hsl(var(--primary) / 0.45);
}

/* Featured (newest) post */
.featured {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  margin-top: 2rem;
  border: 1px solid hsl(var(--primary) / 0.3);
  border-radius: var(--radius-4xl);
  background: linear-gradient(to bottom right, hsl(var(--primary) / 0.14), hsl(var(--card)) 55%);
  transition: border-color 150ms var(--ease-default);
}
.featured:hover { border-color: hsl(var(--primary) / 0.6); }
.featured__media { position: relative; display: block; overflow: hidden; }
.featured__media img {
  width: 100%;
  height: 100%;
  min-height: 15rem;
  object-fit: cover;
  transition: transform 500ms var(--ease-default);
}
.featured:hover .featured__media img { transform: scale(1.04); }
.featured__latest { position: absolute; left: 1rem; top: 1rem; }
.featured__body { display: flex; flex-direction: column; gap: 0.875rem; padding: 1.75rem; }
.featured__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 2.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.featured__more {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--primary));
}
@media (min-width: 640px) {
  .featured { grid-template-columns: 1.1fr 1fr; }
  .featured__body { justify-content: center; padding: 2.5rem; }
}

/* Project · type · version · date row */
.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}
.news-meta__project { font-weight: 500; color: hsl(var(--foreground)); }
.dot-sep { width: 3px; height: 3px; border-radius: 9999px; background: hsl(var(--muted-foreground) / 0.6); }

/* Post rows */
.news-list {
  margin-top: 1.5rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.6);
  border-radius: var(--radius-3xl);
  background: hsl(var(--card) / 0.7);
}
.news-list:not(:has(.news-row)) { display: none; }
.news-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding: 1.25rem;
  border-top: 1px solid hsl(var(--border) / 0.6);
  transition: background-color 150ms var(--ease-default);
}
.news-row:first-child { border-top: 0; }
.news-row:hover { background: hsl(var(--secondary) / 0.6); }
.news-row:hover .news-row__arrow { color: hsl(var(--primary)); transform: translateX(3px); }
.news-row__date { display: none; }
.news-row__day { display: block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.75rem; font-weight: 800; }
.news-row__month {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
.news-row__title {
  display: block;
  margin-top: 0.375rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.5rem;
  font-weight: 700;
}
.news-row__excerpt {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.375rem;
  color: hsl(var(--muted-foreground));
}
.news-row__arrow { color: hsl(var(--muted-foreground)); transition: transform 150ms var(--ease-default), color 150ms var(--ease-default); }
.news-row__mdate::before { content: "· "; }
@media (min-width: 640px) {
  .news-row { grid-template-columns: 7rem 1fr auto; padding: 1.5rem 1.75rem; }
  .news-row__date { display: block; }
  .news-row__mdate { display: none; }
}

.empty {
  margin-top: 1.5rem;
  padding: 3rem 1.5rem;
  border: 1px solid hsl(var(--border) / 0.6);
  border-radius: var(--radius-3xl);
  background: hsl(var(--card) / 0.7);
  text-align: center;
  color: hsl(var(--muted-foreground));
}

/* Pagination */
.pager { display: flex; align-items: center; justify-content: center; gap: 0.25rem; margin-top: 2rem; }
.pager[hidden] { display: none; }
.pager__pages { display: flex; gap: 0.25rem; }
.pager__btn {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
.pager__btn:hover:not(:disabled) { background: hsl(var(--secondary)); color: hsl(var(--foreground)); }
.pager__btn:disabled { opacity: 0.35; cursor: default; }
.pager__btn[aria-current="page"] { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }

/* ---------- Post page ---------- */
.art-head { padding-top: 1.5rem; }
.art-meta { margin-top: 1.25rem; }
.art-meta .chip { padding: 0.25rem 0.75rem; font-size: 0.8125rem; color: hsl(var(--foreground)); }
.art-title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.art-lede { margin-top: 1rem; font-size: 1.125rem; line-height: 1.75rem; color: hsl(var(--muted-foreground)); }
/* "This post is in English only" — empty (hidden) in English, filled by th.json */
.lang-note {
  width: fit-content;
  margin-top: 1rem;
  padding: 0.375rem 0.75rem;
  border: 1px dashed hsl(var(--border));
  border-radius: 9999px;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}
.lang-note:empty { display: none; }
.byline { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.75rem; }
.byline__avatar {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border: 1px solid hsl(var(--primary) / 0.5);
  border-radius: 9999px;
  object-fit: cover;
  box-shadow: 0 0 16px hsl(var(--primary) / 0.35);
}
.byline__name { font-size: 0.9375rem; font-weight: 600; }
.byline__sub { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }
@media (min-width: 640px) { .art-title { font-size: 3rem; line-height: 1.05; } }

.cover { margin-top: 2.5rem; overflow: hidden; border: 1px solid hsl(var(--border) / 0.6); border-radius: var(--radius-4xl); }
.cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
/* Artwork with text near its edges (e.g. an update banner): show it uncropped */
.cover--full img { aspect-ratio: auto; }

.art-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 900px) { .art-layout { grid-template-columns: 15rem minmax(0, 1fr); gap: 3.5rem; } }
.art-aside { display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 900px) { .art-aside { position: sticky; top: 1.5rem; align-self: start; } }

/* Table of contents, built from the post's <h2 id> headings */
.toc { padding: 1.25rem; border: 1px solid hsl(var(--border) / 0.6); border-radius: var(--radius-2xl); background: hsl(var(--card) / 0.7); }
.toc__list { display: flex; flex-direction: column; gap: 0.125rem; margin-top: 0.75rem; }
.toc__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 2.25rem;
  padding: 0 0.625rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
.toc__link:hover { background: hsl(var(--secondary)); color: hsl(var(--foreground)); }
.toc__count { font-size: 0.75rem; color: hsl(var(--muted-foreground) / 0.8); }

/* Boxed key/value card (update info) */
.info { padding: 1.25rem; border: 1px solid hsl(var(--border) / 0.6); border-radius: var(--radius-2xl); }
.info .eyebrow { margin-bottom: 0.5rem; }

/* Article body */
.prose h2 {
  margin-top: 2.75rem;
  scroll-margin-top: 2rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
}
.prose h2:first-child { margin-top: 0; }
.prose > p { margin-top: 1rem; line-height: 1.75rem; color: hsl(var(--foreground) / 0.86); }
.prose b, .prose strong { font-weight: 600; color: hsl(var(--foreground)); }

.highlights {
  padding: 1.75rem;
  border: 1px solid hsl(var(--primary) / 0.3);
  border-radius: var(--radius-3xl);
  background: linear-gradient(to bottom right, hsl(var(--primary) / 0.16), hsl(var(--card)) 60%, hsl(var(--accent) / 0.08));
}
.prose .highlights h2 { margin-top: 0; }
.highlights__list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; list-style: none; }
.highlights__item { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.75rem; line-height: 1.5rem; }
.highlights__star { font-size: 0.875rem; line-height: 1.5rem; color: hsl(var(--primary)); }

/* Change list: label (New / Changed / Fixed) + text */
.changes {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-top: 1rem;
  border: 1px solid hsl(var(--border) / 0.6);
  border-radius: var(--radius-2xl);
  list-style: none;
}
.change {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  align-items: baseline;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  border-top: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--card) / 0.5);
  font-size: 0.9375rem;
  line-height: 1.5rem;
}
.change:first-child { border-top: 0; }
.change__label { justify-self: start; }
@media (max-width: 639px) {
  .change { grid-template-columns: 1fr; gap: 0.375rem; padding: 0.875rem 1rem; }
}
.type--new { background: hsl(var(--live) / 0.16); color: hsl(150 65% 65%); }
.type--changed { background: hsl(var(--primary) / 0.16); color: hsl(var(--primary-soft)); }
.type--fixed { background: hsl(var(--accent) / 0.14); color: hsl(var(--accent)); }
.known {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1rem;
  padding-left: 1.25rem;
  list-style: disc;
  color: hsl(var(--muted-foreground));
}

.feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 3rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid hsl(var(--border) / 0.6);
  border-radius: var(--radius-3xl);
  background: hsl(var(--card) / 0.7);
}
.feedback__title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.feedback__text { font-size: 0.9375rem; color: hsl(var(--muted-foreground)); }
.feedback__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Older / newer post links */
.prevnext { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
@media (min-width: 640px) { .prevnext { grid-template-columns: 1fr 1fr; } }
.prevnext__card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid hsl(var(--border) / 0.6);
  border-radius: var(--radius-2xl);
  background: hsl(var(--card));
  transition: border-color 150ms var(--ease-default);
}
.prevnext__card:hover { border-color: hsl(var(--accent) / 0.6); }
.prevnext__card[hidden] { display: none; }
.prevnext__card--next { grid-column: -2; align-items: flex-end; text-align: right; }
.prevnext__dir {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
.prevnext__title { font-family: var(--font-display); font-weight: 700; }

/* ==========================================================================
   Translations (js/i18n.js)
   ========================================================================== */
/* A saved non-English language is loading: hide the English copy briefly so
   it doesn't flash before the swap. js/boot.js sets the class and always
   removes it after a short timeout, so text can never stay hidden. */
.i18n-pending [data-i18n],
.i18n-pending [data-i18n-html],
.i18n-pending [data-i18n-date] { visibility: hidden; }

/* Thai marks sit above and below the baseline; tight display line-heights
   clip them, so give Thai headings more room. */
:lang(th) .hero__title,
:lang(th) .about__title,
:lang(th) .st-title { line-height: 1.35; }
:lang(th) .section-title,
:lang(th) .cta__title,
:lang(th) .st-article h2,
:lang(th) .st-quote blockquote { line-height: 1.5; }
:lang(th) .badge,
:lang(th) .eyebrow,
:lang(th) .side-card__title { letter-spacing: 0.02em; }

/* ---------- Keyframes ---------- */
@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.7); }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  .marquee__track, .about__portrait, .badge__dot { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
