/*
 * LULUX site styles. One stylesheet, no framework.
 * Palette: ivory and white surfaces, near-black type, mist blue accents.
 * The focal points of the paintings are appended at build time (src/data/art.json).
 */

/* ---------- Fonts ---------- */

/* One variable Latin font (opsz 14–32, wght 400–700). It is declared twice so
   that Chinese text keeps its own full-width quotation marks and middle dot. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter CJK";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0, U+00A9, U+00D7, U+00E9, U+2013, U+2022, U+2026, U+2192, U+2212;
}

/* ---------- Tokens ---------- */

:root {
  --ivory: #faf8f3;
  --white: #fff;
  --ink: #0b0b0c;
  --ink-2: #3a3a3c;
  --muted: #5e5e62;
  --mist: #8fa8bc;
  --mist-soft: #dfe7ee;
  --mist-deep: #6a8aa3;
  --slate: #4a6378;
  --line: rgba(11, 11, 12, 0.1);
  --line-strong: rgba(11, 11, 12, 0.18);
  --on-dark: #faf8f3;
  --on-dark-2: rgba(250, 248, 243, 0.8);

  --font-cjk: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-zh: "Inter CJK", system-ui, -apple-system, "Segoe UI", var(--font-cjk);
  --font-en: "Inter", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, var(--font-cjk);
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --nav-h: 52px;
  --lnav-h: 52px;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --band: clamp(96px, 13vw, 184px);
  --radius: 28px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 50px 100px -40px rgba(34, 52, 68, 0.35), 0 18px 36px -24px rgba(34, 52, 68, 0.25);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

html:has(.has-lnav) {
  scroll-padding-top: calc(var(--nav-h) + var(--lnav-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-zh);
  font-size: 17px;
  line-height: 1.7;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

:lang(en) {
  font-family: var(--font-en);
}

html[lang="en"] body {
  font-family: var(--font-en);
  line-height: 1.55;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

code,
.mono {
  font-family: var(--mono);
  font-size: 0.92em;
}

p code,
li code {
  padding: 0.08em 0.36em;
  border-radius: 6px;
  background: rgba(143, 168, 188, 0.18);
  overflow-wrap: anywhere;
}

strong {
  font-weight: 600;
  color: var(--ink);
}

main:focus {
  outline: none;
}

[hidden] {
  display: none !important;
}

.defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Language visibility ---------- */

html:not([lang="en"]) [data-l="en"],
html[lang="en"] [data-l="zh"] {
  display: none !important;
}

.shot-l {
  display: block;
}

/* ---------- Accessibility helpers ---------- */

.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 3px;
  border-radius: 6px;
}

.hero--dark :focus-visible,
.footer :focus-visible {
  outline-color: var(--mist);
}

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 10px;
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow {
  max-width: calc(860px + 2 * var(--gutter));
}

.wrap--wide {
  max-width: calc(1360px + 2 * var(--gutter));
}

.band {
  padding-block: var(--band);
}

.band--white {
  background: var(--white);
}

/* ---------- Type ---------- */

.display {
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.14;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.display .ln {
  display: block;
}

.display:lang(en),
.display [lang="en"] {
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.display--hero {
  font-size: clamp(42px, 7vw, 112px);
}

.display--hero [lang="en"] {
  font-size: 0.9em;
}

.display--xl {
  font-size: clamp(36px, 5.4vw, 80px);
}

.display--lg {
  font-size: clamp(30px, 4vw, 56px);
}

.display--md {
  font-size: clamp(26px, 3vw, 40px);
}

.kicker,
.eyebrow {
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: var(--slate);
}

.lede {
  max-width: 36em;
  margin-top: 24px;
  text-wrap: balance;
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.6;
  color: var(--ink-2);
}

html[lang="en"] .lede {
  line-height: 1.45;
}

.section-head {
  max-width: 900px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .lede {
  margin-inline: auto;
}

.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 48px;
  max-width: none;
}

.fineprint {
  max-width: 62em;
  margin-top: 32px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.shotnote {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* ---------- Buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 40px;
}

.actions--center {
  justify-content: center;
}

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.btn__label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

/* Water: thin mist-blue and white bands flow sideways through a turbulence
   displacement filter (#lx-water, declared in the page), so they bend like a
   current; a soft glow follows the pointer (--mx/--my, set by site.js). The
   bands stay translucent so the white label keeps at least 4.5:1 contrast. */
.btn__water {
  position: absolute;
  inset: -40% -12%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(90px 46px at var(--mx, 50%) var(--my, 50%), rgba(207, 222, 234, 0.4), rgba(207, 222, 234, 0) 70%),
    linear-gradient(90deg, rgba(143, 168, 188, 0) 0, rgba(143, 168, 188, 0.42) 18px, rgba(255, 255, 255, 0.3) 23px, rgba(143, 168, 188, 0.36) 28px, rgba(143, 168, 188, 0) 46px, rgba(143, 168, 188, 0) 88px);
  background-size: 100% 100%, 88px 100%;
  background-repeat: no-repeat, repeat;
  filter: url("#lx-water");
  transition: opacity 0.45s var(--ease);
  will-change: background-position;
}

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

.btn--inverse .btn__water {
  background:
    radial-gradient(90px 46px at var(--mx, 50%) var(--my, 50%), rgba(74, 99, 120, 0.3), rgba(74, 99, 120, 0) 70%),
    linear-gradient(90deg, rgba(74, 99, 120, 0) 0, rgba(74, 99, 120, 0.28) 18px, rgba(11, 11, 12, 0.18) 23px, rgba(74, 99, 120, 0.24) 28px, rgba(74, 99, 120, 0) 46px, rgba(74, 99, 120, 0) 88px);
  background-size: 100% 100%, 88px 100%;
  background-repeat: no-repeat, repeat;
}

.btn:hover .btn__water,
.btn:focus-visible .btn__water {
  opacity: 1;
}

.btn:focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(143, 168, 188, 0.28);
}

.btn--inverse:focus-visible {
  outline-color: var(--mist);
}

@media (prefers-reduced-motion: no-preference) {
  .btn:hover .btn__water,
  .btn:focus-visible .btn__water {
    animation: lx-flow 2.2s linear infinite;
  }

  .btn:hover {
    transform: translateY(-1px);
  }
}

@keyframes lx-flow {
  from {
    background-position: center, 0 0;
  }
  to {
    background-position: center, 88px 0;
  }
}

/* Reduced motion: a still, even highlight instead of moving water. */
@media (prefers-reduced-motion: reduce) {
  .btn__water {
    filter: none;
    transition: none;
    background: linear-gradient(100deg, rgba(143, 168, 188, 0.12), rgba(143, 168, 188, 0.4) 50%, rgba(143, 168, 188, 0.12));
  }

  .btn--inverse .btn__water {
    background: linear-gradient(100deg, rgba(74, 99, 120, 0.06), rgba(74, 99, 120, 0.22) 50%, rgba(74, 99, 120, 0.06));
  }
}

.btn--sm {
  min-height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

.btn--lg {
  min-height: 58px;
  padding: 0 36px;
  font-size: 19px;
}

.btn .icon {
  flex: none;
}

/* Secondary actions: a quiet text link with a chevron. */
.chev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--slate);
  font-weight: 500;
  text-decoration: none;
}

.chev__t {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(74, 99, 120, 0.35);
  text-underline-offset: 5px;
  transition: text-decoration-color 0.3s var(--ease);
}

.chev:hover .chev__t {
  text-decoration-color: currentColor;
}

.chev .icon--arrow {
  transition: transform 0.3s var(--ease);
}

.chev:hover .icon--arrow {
  transform: translateX(2px);
}

.chev--light {
  color: var(--on-dark);
}

.chev--light .chev__t {
  text-decoration-color: rgba(250, 248, 243, 0.4);
}

/* ---------- Global navigation ---------- */

.gnav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(250, 248, 243, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  color: var(--ink);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.gnav.is-scrolled {
  border-bottom-color: var(--line);
}

/* Over a dark painting the bar turns dark until the painting has scrolled away. */
.has-dark-hero .gnav:not(.is-past) {
  background: rgba(11, 11, 12, 0.42);
  border-bottom-color: transparent;
  color: var(--on-dark);
}

.gnav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.gnav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.gnav__brand img {
  border-radius: 6px;
}

.gnav__word {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.gnav__links {
  display: flex;
  gap: 30px;
  margin-inline: auto;
}

.gnav__links a,
.gnav__lang,
.gnav__icon {
  color: inherit;
  font-size: 14px;
  text-decoration: none;
  opacity: 0.86;
  transition: opacity 0.2s;
}

.gnav__links a:hover,
.gnav__links a[aria-current="page"],
.gnav__links a.is-section,
.gnav__lang:hover,
.gnav__icon:hover {
  opacity: 1;
}

.gnav__links a[aria-current="page"],
.gnav__links a.is-section {
  font-weight: 600;
}

.gnav__tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gnav__lang {
  min-width: 44px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}

.gnav__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
}

.gnav__menu {
  display: none;
  position: relative;
}

.gnav__menu summary {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  list-style: none;
  cursor: pointer;
}

.gnav__menu summary::-webkit-details-marker {
  display: none;
}

.gnav__sheet {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  display: grid;
  gap: 2px;
  padding: 20px var(--gutter) 40px;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.gnav__sheet a {
  display: block;
  padding: 10px 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.gnav__sheet a[aria-current="page"],
.gnav__sheet a.is-section {
  color: var(--slate);
}

@media (max-width: 640px) {
  .gnav__links {
    display: none;
  }

  .gnav__inner {
    justify-content: space-between;
  }

  .gnav__menu {
    display: block;
  }
}

/* Mobile menu open: solid bar, nothing ghosting through. */
html.menu-open .gnav,
html:has(.gnav__menu[open]) .gnav {
  background: var(--ivory);
  color: var(--ink);
}

/* ---------- Product navigation ---------- */

.lnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  height: var(--lnav-h);
  margin-top: var(--nav-h);
  background: rgba(250, 248, 243, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

html.menu-open .lnav,
html:has(.gnav__menu[open]) .lnav {
  visibility: hidden;
}

.lnav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.lnav__name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.lnav__links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.lnav__links a {
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}

.lnav__links a:hover {
  color: var(--ink);
}

.lnav .btn {
  flex: none;
}

@media (max-width: 760px) {
  .lnav__links {
    display: none;
  }

  .lnav .btn {
    margin-left: auto;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: max(640px, min(100svh, 60vw));
  padding-top: var(--nav-h);
  background: var(--ivory);
}

.has-lnav .hero {
  min-height: max(600px, min(calc(100svh - var(--nav-h) - var(--lnav-h)), 56vw));
  padding-top: 0;
}

.hero__art {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__art .art,
.hero__art .art__img {
  width: 100%;
  height: 100%;
}

.art__img {
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: clamp(64px, 8vw, 120px);
}

.hero--subject-right .hero__content > * {
  max-width: min(620px, 50%);
}

.hero--subject-right .hero__content > .display--hero {
  max-width: min(760px, 56%);
}

.hero__lede {
  margin-top: 26px;
  text-wrap: balance;
  font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1.55;
  color: var(--ink-2);
}

.hero__note {
  margin-top: 28px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.hero .eyebrow {
  margin-bottom: 22px;
}

/* Dark painting: the full-bleed poster at the top of the home page. */
.hero--dark {
  background: var(--ink);
  color: var(--on-dark);
}

.hero--dark .hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 11, 12, 0.72) 0, rgba(11, 11, 12, 0.38) 38%, rgba(11, 11, 12, 0) 60%);
}

.hero--dark .hero__lede {
  color: var(--on-dark-2);
}

.hero--dark .eyebrow {
  color: var(--mist);
}

.hero--home {
  min-height: max(600px, 42vw);
}

/*
 * Wide screens: the headline sits left of the crescent and must never touch
 * it. --clear is the room between the text's left edge and the moon, derived
 * from how the painting is cropped (object-fit: cover, anchored right; the
 * crescent's left edge is at 58.6% of the painting's width). Below 1415px the
 * hero is 600px tall and the painting is cropped by height; above it, by width.
 */
@media (min-width: 1025px) {
  .hero--home {
    --clear: calc(100vw - 673px);
  }

  .hero--home .hero__content {
    max-width: calc(1440px + 2 * var(--gutter));
  }

  .hero--home.hero--subject-right .hero__content > .display--hero {
    max-width: var(--clear);
    font-size: clamp(44px, 5.2vw, 72px);
  }

  .hero--home.hero--subject-right .hero__content > .hero__lede {
    max-width: min(520px, var(--clear));
  }

  .hero--home .display--hero [lang="en"] {
    display: block;
    max-width: 12em;
    font-size: 0.82em;
  }
}

/* From 1415px the Chinese headline fits on one line, as large as the gap allows. */
@media (min-width: 1415px) {
  .hero--home {
    --clear: min(calc(58.6vw - 88px), calc(8.6vw + 632px));
  }

  .hero--home.hero--subject-right .hero__content > .display--hero {
    font-size: min(84px, calc(var(--clear) / 12));
  }
}

@media (max-width: 1024px) {
  .hero--home .display--hero {
    font-size: clamp(42px, 9vw, 84px);
  }
}

@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  .hero__content {
    order: 1;
    padding-block: 56px 0;
  }

  .hero--subject-right .hero__content > *,
  .hero--subject-right .hero__content > .display--hero {
    max-width: none;
  }

  .hero__art {
    position: relative;
    inset: auto;
    order: 2;
    z-index: 0;
    height: min(118vw, 620px);
    margin-top: -28px;
  }

  .hero--home,
  .has-lnav .hero {
    min-height: 0;
  }

  .hero__art::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: 1;
    height: 38%;
    background: linear-gradient(180deg, var(--ivory), rgba(250, 248, 243, 0));
  }

  .hero--dark .hero__art::before {
    background: linear-gradient(180deg, var(--ink), rgba(11, 11, 12, 0));
  }

  .hero--dark .hero__art::after {
    display: none;
  }
}

/* ---------- Product hero: white, koko, flowing light ---------- */

/* Pages that open on white: the bars turn white too, so the top is seamless. */
.has-white-hero .gnav:not(.is-scrolled),
.has-white-hero .lnav {
  background: rgba(255, 255, 255, 0.86);
}

.phero {
  --flow-h: clamp(150px, 16vw, 270px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: var(--nav-h);
  background: var(--white);
}

.has-lnav .phero {
  padding-top: 0;
}

.phero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: 8px 56px;
  padding-block: clamp(48px, 6vw, 96px) calc(var(--flow-h) * 0.8);
}

/* The light already closes the hero, so the next band needs less air. */
.phero + .band {
  padding-top: clamp(56px, 7vw, 112px);
}

.phero__title {
  font-size: clamp(42px, 5.8vw, 96px);
}

.phero__title [lang="en"] {
  font-size: 0.86em;
}

.phero--koko .phero__inner {
  min-height: max(600px, min(calc(100svh - var(--nav-h) - var(--lnav-h)), 54vw));
}

.phero--plain .phero__inner {
  min-height: clamp(400px, 34vw, 540px);
  padding-top: clamp(64px, 8vw, 120px);
}

.phero--plain .phero__copy {
  max-width: 820px;
}

.phero .hero__lede {
  max-width: 30em;
}

.phero__back {
  margin-top: 28px;
}

@media (min-width: 1025px) {
  .phero--koko .phero__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .phero--koko .phero__koko {
    order: 2;
    justify-self: center;
    width: min(100%, 540px, 60vh);
  }
}

@media (max-width: 1024px) {
  .phero--koko .phero__inner {
    min-height: 0;
    padding-top: clamp(32px, 6vw, 56px);
  }

  .phero--koko .phero__koko {
    width: min(52vw, 340px);
    margin-bottom: 32px;
  }
}

/* koko: the eyeless body, with the K and O drawn on top as the eyes. */
.koko {
  position: relative;
  aspect-ratio: 1;
}

.koko__body img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 36px rgba(34, 52, 68, 0.12)) drop-shadow(0 2px 3px rgba(34, 52, 68, 0.08));
}

.koko__eyes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.koko__ko {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.koko.is-live .koko__ko {
  will-change: transform;
}

/* A soft reflection of the ball on the water below it. */
.koko::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -9%;
  z-index: -1;
  height: 9%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(106, 138, 163, 0.28), rgba(106, 138, 163, 0));
}

/* Flowing light along the bottom edge. The gradient is the still version
   (no JavaScript); hero.js paints the moving bands on the canvas instead. */
.flowlight {
  position: absolute;
  inset: auto 0 0;
  z-index: 0;
  height: var(--flow-h, 220px);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 46%, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 46%, #000 80%, transparent 100%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.9) 49%, rgba(255, 255, 255, 0) 53%, rgba(255, 255, 255, 0) 81%, rgba(255, 255, 255, 0.85) 85%, rgba(255, 255, 255, 0) 89%),
    linear-gradient(180deg, rgba(223, 231, 238, 0) 30%, rgba(223, 231, 238, 0.95) 46%, rgba(143, 168, 188, 0.42) 62%, rgba(186, 204, 218, 0.6) 74%, rgba(143, 168, 188, 0.46) 90%, rgba(223, 231, 238, 0.9) 100%);
}

.flowlight.is-live {
  background: none;
}

.flowlight__c {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- Home: the name ---------- */

.name {
  text-align: center;
}

.name__word {
  display: flex;
  justify-content: center;
  align-items: baseline;
  font-family: var(--font-en);
  font-size: clamp(104px, 23vw, 360px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
  margin-top: 8px;
}

.name__word--sm {
  font-size: clamp(88px, 16vw, 220px);
}

.name__lulu {
  color: var(--ink);
}

.name__x {
  margin-left: 0.04em;
  color: var(--mist-deep);
}

.name__def {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 760px;
  margin: clamp(40px, 6vw, 72px) auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.name__item dt {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--slate);
}

.name__item dd {
  margin-top: 8px;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.name__item dd:lang(en),
.name__item dd [lang="en"] {
  letter-spacing: -0.03em;
}

.name__line {
  max-width: 28em;
  margin: clamp(40px, 5vw, 64px) auto 0;
  font-size: clamp(19px, 1.8vw, 26px);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: balance;
}

/* ---------- Home: manifesto ---------- */

.manifesto {
  text-align: center;
}

.manifesto__lines {
  display: grid;
  gap: 14px;
  max-width: 30em;
  margin: clamp(40px, 5vw, 64px) auto 0;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: balance;
}

/* ---------- Home: one entry to the projects ---------- */

.entry {
  max-width: 1040px;
  margin-inline: auto;
  padding: clamp(56px, 7vw, 104px) clamp(24px, 5vw, 72px);
  border-radius: var(--radius);
  background: var(--ivory);
  text-align: center;
}

.entry .lede {
  margin-inline: auto;
}

.entry__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 48px;
  margin-top: clamp(40px, 5vw, 56px);
}

.entry__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-2);
}

.entry__item img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.entry__x {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1.5px dashed var(--mist-deep);
  border-radius: 50%;
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--mist-deep);
}

.entry__item--next {
  color: var(--muted);
}

/* ---------- Projects hub ---------- */

.hub__list {
  display: grid;
  gap: 24px;
}

@media (min-width: 1024px) {
  .hub__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub__list .soon {
    grid-column: 1 / -1;
  }
}

.proj {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--ivory);
}

.proj__copy {
  padding: clamp(36px, 4vw, 56px) clamp(24px, 4vw, 52px) 0;
}

.proj__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.proj__logo {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.proj__kind {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--slate);
}

.proj__name {
  margin-top: 24px;
  font-size: clamp(34px, 3.4vw, 50px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.proj__title {
  margin-top: 10px;
  font-size: clamp(20px, 1.8vw, 25px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-2);
  word-break: keep-all;
}

.proj__title .ln {
  display: block;
}

.proj__text {
  max-width: 34em;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.proj__license {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-2);
}

.proj__note {
  max-width: 40em;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(143, 168, 188, 0.16);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.proj .actions {
  margin-top: 28px;
  gap: 14px 24px;
}

.proj__media {
  position: relative;
  overflow: hidden;
  height: clamp(220px, 26vw, 360px);
  margin-top: auto;
  padding-top: 40px;
}

.proj__media::before {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(180deg, rgba(223, 231, 238, 0), rgba(223, 231, 238, 0.9));
}

.proj__shot {
  position: absolute;
  top: clamp(36px, 4vw, 48px);
  left: 7%;
  right: 7%;
}

.proj__shot .device {
  box-shadow: var(--shadow);
}

.proj .shotnote--card {
  margin: 0;
  padding: 10px 24px 16px;
  background: rgba(223, 231, 238, 0.9);
}

.soon .proj__text {
  margin-inline: auto;
}

.hub__fine {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
}

.soon {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 96px) clamp(24px, 5vw, 64px);
  border-radius: var(--radius);
  background: var(--ivory);
  text-align: center;
}

.soon::after {
  content: "X";
  position: absolute;
  right: -0.08em;
  bottom: -0.32em;
  z-index: 0;
  font-family: var(--font-en);
  font-size: clamp(220px, 30vw, 440px);
  font-weight: 700;
  line-height: 1;
  color: var(--mist-soft);
  pointer-events: none;
}

.soon > * {
  position: relative;
  z-index: 1;
}

.soon__title {
  margin-top: 10px;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.01em;
  word-break: keep-all;
  text-wrap: balance;
}

.soon__title:lang(en),
.soon__title [lang="en"] {
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.soon__title .ln {
  display: block;
}

/* ---------- Home: source ---------- */

.source__list {
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line-strong);
}

.repo {
  display: grid;
  gap: 20px 48px;
  padding-block: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line-strong);
}

@media (min-width: 900px) {
  .repo {
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) auto;
    align-items: start;
  }

  .repo__head {
    grid-row: 1 / span 2;
  }

  .repo__meta {
    grid-column: 2;
    grid-row: 1;
  }

  .repo__summary {
    grid-column: 2;
    grid-row: 2;
  }

  .repo__cta {
    grid-column: 3;
    grid-row: 1;
  }
}

.repo__kind {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
}

.repo__name {
  margin-top: 6px;
  font-family: var(--font-en);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.repo__name a {
  text-decoration: none;
}

.repo__name a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.repo__desc {
  margin-top: 8px;
  color: var(--ink-2);
}

.repo__meta {
  display: grid;
  gap: 8px;
  font-size: 15px;
}

.repo__meta div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.repo__meta dt {
  color: var(--muted);
}

.repo__meta a {
  color: var(--slate);
  text-underline-offset: 4px;
}

.spdx {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--mist-soft);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
}

.repo__summary {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Devices and showcases ---------- */

.device {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.device__bar {
  display: flex;
  gap: 6px;
  align-items: center;
  height: 26px;
  padding-inline: 12px;
  border-bottom: 1px solid var(--line);
  background: #f4f3ef;
}

.device__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d6d4cf;
}

.device__screen img {
  width: 100%;
}

.device--hero {
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.showcase__stage {
  margin-top: clamp(56px, 7vw, 96px);
}

/* ---------- Statement ---------- */

.statement__text {
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--muted);
  text-wrap: pretty;
}

.statement__text strong {
  font-weight: 600;
  color: var(--ink);
}

html[lang="en"] .statement__text {
  line-height: 1.25;
  letter-spacing: -0.025em;
}

/* ---------- Walkthrough ---------- */

.steps {
  margin-top: clamp(56px, 7vw, 96px);
}

.steps__list {
  display: grid;
  gap: clamp(64px, 9vw, 96px);
}

.step__num {
  display: block;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--slate);
}

.step__title {
  margin-top: 12px;
  font-size: clamp(26px, 2.6vw, 40px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-wrap: balance;
  word-break: keep-all;
}

.step__title:lang(en),
.step__title [lang="en"] {
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.step__body {
  max-width: 30em;
  margin-top: 14px;
  font-size: clamp(17px, 1.3vw, 19px);
  color: var(--ink-2);
}

.step__media {
  margin-top: 28px;
}

.step__media .device {
  box-shadow: var(--shadow);
}

.steps__stage {
  display: none;
}

.stage {
  position: relative;
  aspect-ratio: 16 / 10;
}

.stage__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
  background: var(--white);
}

.stage__slide.is-active {
  opacity: 1;
  transform: none;
}

.stage__slide picture,
.stage__slide .shot-l {
  height: 100%;
}

.stage__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (min-width: 1024px) {
  .steps.is-enhanced {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(40px, 5vw, 88px);
    align-items: start;
  }

  .steps.is-enhanced .steps__list {
    gap: 0;
  }

  .steps.is-enhanced .step {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 74vh;
  }

  /* Inactive steps stay legible (AA); numeral and title only shift to grey. */
  .steps.is-enhanced .step__num,
  .steps.is-enhanced .step__title {
    transition: color 0.5s var(--ease), opacity 0.5s var(--ease);
  }

  .steps.is-enhanced .step:not(.is-active) .step__num {
    color: var(--muted);
  }

  .steps.is-enhanced .step:not(.is-active) .step__title {
    color: var(--muted);
  }

  .steps.is-enhanced .step__media {
    display: none;
  }

  .steps.is-enhanced .steps__stage {
    display: block;
    position: sticky;
    top: calc(50vh - 17vw + 40px);
  }

  .steps.is-enhanced .device--stage {
    box-shadow: var(--shadow);
  }
}

/* ---------- Feature grids ---------- */

.features__grid {
  display: grid;
  gap: 44px 48px;
  margin-top: clamp(56px, 7vw, 88px);
}

@media (min-width: 640px) {
  .features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feature {
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.feature__title {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.feature__body {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.avatars figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.avatars__row {
  display: flex;
}

.avatars__row li + li {
  margin-left: -10px;
}

.avatars__row img {
  width: 56px;
  height: 56px;
  border: 3px solid var(--ivory);
  border-radius: 50%;
  background: var(--white);
}

.caveat {
  max-width: 54em;
  margin-top: 56px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--mist-soft);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* ---------- ETA: desktop and cloud ---------- */

.modes__grid {
  display: grid;
  gap: 24px;
  margin-top: clamp(56px, 7vw, 88px);
}

@media (min-width: 900px) {
  .modes__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mode {
  padding: clamp(36px, 4vw, 56px);
  border-radius: var(--radius);
  background: var(--ivory);
}

.mode--cloud {
  background: var(--ink);
  color: var(--on-dark);
}

.mode__kicker {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
}

.mode--cloud .mode__kicker {
  color: var(--mist);
}

.mode__title {
  margin-top: 10px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  word-break: keep-all;
}

.mode__lede {
  margin-top: 14px;
  color: var(--ink-2);
}

.mode--cloud .mode__lede {
  color: var(--on-dark-2);
}

.mode__list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
}

.mode--cloud .mode__list {
  border-top-color: rgba(250, 248, 243, 0.16);
  color: var(--on-dark-2);
}

.mode__list li {
  position: relative;
  padding-left: 22px;
}

.mode__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mist);
}

.modes__more {
  margin-top: 32px;
  text-align: center;
}

/* ---------- ETA: data facts ---------- */

.facts__grid {
  display: grid;
  gap: 48px 64px;
}

@media (min-width: 1024px) {
  .facts__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

.facts__list {
  display: grid;
  gap: 32px 40px;
}

@media (min-width: 640px) {
  .facts__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fact {
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.fact__title {
  font-size: 19px;
  font-weight: 600;
}

.fact__body {
  margin-top: 8px;
  font-size: 16px;
  color: var(--muted);
}

/* ---------- Download call to action ---------- */

.cta {
  --flow-h: clamp(170px, 18vw, 290px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(112px, 13vw, 184px) calc(var(--flow-h) + 24px);
  background: var(--white);
  text-align: center;
}

.cta__inner {
  position: relative;
  z-index: 1;
}

.cta .lede {
  margin-inline: auto;
}

.dl-compact__meta {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.cta .fineprint {
  margin-inline: auto;
  color: var(--ink-2);
}

/* ---------- Notes ---------- */

.notes__grid {
  display: grid;
  gap: 48px 64px;
}

@media (min-width: 900px) {
  .notes__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.note__title {
  font-size: 22px;
  font-weight: 600;
}

.note p {
  margin-top: 12px;
  color: var(--ink-2);
}

/* ---------- Flow: gateway diagram ---------- */

.diagram {
  margin-top: clamp(56px, 7vw, 88px);
}

.diagram__row {
  display: grid;
  gap: 16px;
  counter-reset: none;
}

@media (min-width: 900px) {
  .diagram__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1fr);
    align-items: stretch;
  }
}

.diagram__node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 32px 24px;
  border-radius: 22px;
  background: var(--ivory);
  text-align: center;
}

.diagram__node strong {
  margin-top: 10px;
  font-size: 19px;
}

.diagram__node > span:last-child {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.diagram__node--core {
  background: var(--ink);
  color: var(--on-dark);
}

.diagram__node--core strong {
  color: var(--on-dark);
}

.diagram__node--core > span:last-child {
  color: var(--on-dark-2);
}

.diagram__seal {
  padding: 4px 12px;
  border: 1px solid rgba(143, 168, 188, 0.6);
  border-radius: 999px;
  font-size: 13px;
  color: var(--mist);
}

@media (min-width: 900px) {
  .diagram__node:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -12px;
    z-index: 1;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mist);
    transform: translate(50%, -50%);
  }
}

.diagram__clis {
  display: flex;
}

.diagram__clis li + li {
  margin-left: -8px;
}

.diagram__clis img,
.diagram__logo {
  width: 40px;
  height: 40px;
  border: 2px solid var(--ivory);
  border-radius: 50%;
  background: var(--white);
}

/* ---------- Flow: workflows ---------- */

.nodes {
  margin-top: 56px;
  text-align: center;
}

.nodes__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--slate);
}

.nodes__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.nodes__list code {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ivory);
  font-size: 14px;
}

.duo {
  display: grid;
  gap: 32px 48px;
  margin-top: clamp(72px, 9vw, 120px);
}

@media (min-width: 800px) {
  .duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.duo__item {
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.duo__item h3 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.duo__item p {
  margin-top: 10px;
  color: var(--ink-2);
}

/* ---------- Flow: install ---------- */

.install__inner .cmd {
  margin-top: clamp(40px, 5vw, 64px);
}

.cmd__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
}

.cmd__row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 12px 12px 12px 22px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
}

.cmd__pre {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.cmd__prompt {
  color: var(--muted);
}

.cmd__copy {
  flex: none;
}

html:not(.js) .cmd__copy {
  display: none;
}

.install__p {
  margin-top: 20px;
  color: var(--ink-2);
}

.install__p--muted {
  font-size: 15px;
  color: var(--muted);
}

@media (max-width: 520px) {
  .cmd__row {
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
  }
}

/* ---------- Flow: engineering ---------- */

.checks {
  display: grid;
  gap: 18px 48px;
  margin-top: 48px;
}

@media (min-width: 800px) {
  .checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.check {
  position: relative;
  padding: 0 0 18px 32px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.check::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--slate);
  border-bottom: 2px solid var(--slate);
  transform: rotate(-45deg);
}

/* ---------- Download page ---------- */

.dl__version {
  font-size: 15px;
  color: var(--muted);
}

.dl__k {
  color: var(--muted);
}

.dl__k--accent {
  font-weight: 600;
  color: var(--slate);
}

.dl__rec {
  margin-top: 24px;
}

.dl__static,
.dl__note {
  max-width: 48em;
  margin-top: 14px;
  color: var(--ink-2);
}

.rec__row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.btn.rec {
  min-height: 0;
  padding: 18px 28px;
  border-radius: 22px;
  text-align: left;
  justify-content: flex-start;
}

.rec__body {
  display: grid;
  gap: 2px;
  white-space: normal;
}

.rec__cta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #cfdbe5;
}

.rec__label {
  font-size: 19px;
}

.rec__meta {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  overflow-wrap: anywhere;
}

.dl__status {
  max-width: 48em;
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--mist-soft);
}

.dl__status p + p {
  margin-top: 8px;
}

.dl__h {
  margin-top: 64px;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
}

.files {
  display: grid;
  gap: 36px;
  margin-top: 28px;
}

@media (min-width: 900px) {
  .files {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 56px;
  }
}

.files__h {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
}

.files__list {
  margin-top: 10px;
  border-top: 1px solid var(--line-strong);
}

.file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.file.is-recommended .file__label {
  font-weight: 700;
}

.file__link {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-decoration: none;
}

.file__link:hover .file__label {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.file__label {
  font-weight: 500;
}

.file__name {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.file__size {
  flex: none;
  font-size: 13px;
  color: var(--muted);
}

.dl__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 36px;
}

.help__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px 48px;
  margin-top: 56px;
}

@media (min-width: 900px) {
  .help__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .help__grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.help__grid--2 {
  margin-top: 0;
}

.help,
.help__list > li {
  min-width: 0;
}

.help__h {
  font-size: 21px;
  font-weight: 700;
}

.help__h--lg {
  font-size: clamp(24px, 2.4vw, 32px);
}

.help p,
.help__list {
  margin-top: 12px;
  color: var(--ink-2);
}

.help__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding-left: 1.2em;
  list-style: decimal;
  font-size: 16px;
}

.code {
  max-width: 100%;
  margin-top: 12px;
  padding: 16px 18px;
  overflow-x: auto;
  border-radius: 14px;
  background: var(--ink);
  color: var(--on-dark);
  font-size: 13px;
  line-height: 1.65;
}

.dl-help p > .chev {
  margin-top: 32px;
}

/* ---------- About ---------- */

.about {
  padding-top: calc(var(--nav-h) + clamp(64px, 9vw, 128px));
  text-align: center;
}

.about__avatar {
  width: clamp(128px, 14vw, 176px);
  margin-inline: auto;
}

.about__avatar img {
  width: 100%;
  height: auto;
}

.about__name {
  margin-top: 32px;
  font-family: var(--font-en);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.about__bio {
  margin-top: 16px;
  font-size: clamp(19px, 1.7vw, 24px);
  color: var(--ink-2);
}

.belief {
  text-align: center;
}

.belief__text {
  max-width: 30em;
  margin: clamp(40px, 5vw, 64px) auto 0;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: balance;
}

.belief__quote {
  margin-top: clamp(48px, 6vw, 80px);
}

.belief__quote p {
  font-size: clamp(30px, 4.2vw, 60px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  word-break: keep-all;
  text-wrap: balance;
}

.belief__quote p:lang(en),
.belief__quote [lang="en"] {
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.mini__grid {
  display: grid;
  gap: 20px;
  margin-top: 48px;
}

@media (min-width: 760px) {
  .mini__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mini__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 32px;
  border-radius: 22px;
  background: var(--white);
  text-decoration: none;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

.mini__link:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.mini__kind {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
}

.mini__name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mini__text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.mini__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  font-weight: 500;
  color: var(--slate);
}

.projects__more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: 40px;
}

/* ---------- Footer (the one deliberate dark band) ---------- */

.footer {
  padding-block: 80px 48px;
  background: var(--ink);
  color: var(--on-dark-2);
  font-size: 14px;
}

.footer a {
  color: var(--on-dark);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250, 248, 243, 0.14);
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.footer__logo img {
  border-radius: 8px;
}

.footer__tag {
  font-size: 15px;
  color: var(--on-dark-2);
}

.footer__grid {
  display: grid;
  gap: 32px 48px;
  padding-block: 40px;
}

@media (min-width: 700px) {
  .footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.footer__h {
  font-size: 13px;
  font-weight: 600;
  color: var(--mist);
}

.footer__list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.footer__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__legal {
  display: grid;
  gap: 8px;
  padding-top: 32px;
  border-top: 1px solid rgba(250, 248, 243, 0.14);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(250, 248, 243, 0.68);
}

/* ---------- Reveal (opt-out via prefers-reduced-motion) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .rv {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  }

  .reveal-ready .rv.is-in {
    opacity: 1;
    transform: none;
  }

  .reveal-ready .display .ln {
    opacity: 0;
    transform: translate3d(0, 0.18em, 0);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
  }

  .reveal-ready .display.is-in .ln {
    opacity: 1;
    transform: none;
  }

  .reveal-ready .display .ln:nth-child(2) {
    transition-delay: 0.12s;
  }

  .hero .art__img {
    animation: lx-settle 2.4s var(--ease) both;
  }
}

@keyframes lx-settle {
  from {
    transform: scale(1.04);
  }
  to {
    transform: none;
  }
}

/* ---------- Print ---------- */

@media print {
  .gnav,
  .lnav,
  .hero__art,
  .flowlight,
  .cmd__copy,
  .defs {
    display: none !important;
  }

  body,
  .band,
  .hero,
  .cta,
  .footer,
  .mode--cloud {
    background: #fff !important;
    color: #000 !important;
  }

  .rv,
  .display .ln,
  .reveal-ready .rv,
  .reveal-ready .display .ln {
    opacity: 1 !important;
    transform: none !important;
  }
}
/* Generated from src/data/art.json by scripts/build.mjs. */
.art--hero .art__img{object-position:100% 50%}
@media (max-width:760px){.art--hero .art__img{object-position:74% 50%}}
