:root {
  color-scheme: light dark;
  --page: #ecefeb;
  --surface: #f7f8f5;
  --surface-soft: #e3e7e1;
  --surface-strong: #d3d9d2;
  --ink: #18201b;
  --ink-soft: #4c5850;
  --ink-muted: #69756d;
  --line: #c5cec6;
  --line-strong: #aab6ac;
  --accent: #bcc662;
  --accent-strong: #566318;
  --accent-soft: #e1e5bc;
  --button: #18231c;
  --button-text: #f4f7f2;
  --backdrop-wash: rgba(236, 239, 235, 0.72);
  --shadow-phone: 0 2px 4px rgba(32, 43, 35, 0.08), 0 28px 62px rgba(32, 43, 35, 0.2);
  --shadow-phone-hover: 0 3px 8px rgba(32, 43, 35, 0.1), 0 34px 74px rgba(32, 43, 35, 0.24);
  --device-frame: #202923;
  --page-width: 1260px;
  --text-width: 650px;
  --font-display: "Noto Sans SC", "MiSans VF", "MiSans", "HarmonyOS Sans SC", "Microsoft YaHei UI", sans-serif;
  --font-body: "Noto Sans SC", "MiSans VF", "MiSans", "HarmonyOS Sans SC", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #141915;
    --surface: #1b211c;
    --surface-soft: #222a23;
    --surface-strong: #2d362f;
    --ink: #edf1ec;
    --ink-soft: #b6c0b8;
    --ink-muted: #919d94;
    --line: #38423a;
    --line-strong: #515d53;
    --accent: #c1c96d;
    --accent-strong: #cbd47a;
    --accent-soft: #343a22;
    --button: #c1c96d;
    --button-text: #172019;
    --backdrop-wash: rgba(20, 25, 21, 0.9);
    --shadow-phone: 0 2px 4px rgba(0, 0, 0, 0.32), 0 30px 68px rgba(0, 0, 0, 0.5);
    --shadow-phone-hover: 0 3px 8px rgba(0, 0, 0, 0.34), 0 36px 78px rgba(0, 0, 0, 0.5);
    --device-frame: #111713;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--page);
  background-image: url("../images/ginkgo-atmosphere-v2.webp");
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.72;
  font-synthesis: none;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--backdrop-wash);
  pointer-events: none;
}

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

a {
  color: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--button);
  color: var(--button-text);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(var(--page-width), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding-inline: 14px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--page) 78%, transparent);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  border-radius: 13px;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--ink) 12%, transparent);
}

.brand span {
  display: grid;
  line-height: 1.1;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 760;
  letter-spacing: -0.01em;
}

.brand small {
  margin-top: 5px;
  color: var(--ink-muted);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  white-space: nowrap;
}

.site-nav a,
.footer-links a,
.text-link {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 620;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--accent-strong);
}

.header-download,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}

.header-download,
.button-primary {
  background: var(--button);
  color: var(--button-text);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.header-download:hover,
.button:hover {
  transform: translateY(-2px);
}

.header-download:active,
.button:active {
  transform: scale(0.98);
}

.hero {
  display: grid;
  grid-template-rows: auto minmax(300px, 1fr);
  gap: clamp(16px, 2.5vh, 24px);
  min-height: calc(100dvh - 72px);
  padding: clamp(18px, 3vh, 28px) 0 22px;
}

.hero-intro {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(36px, 7vw, 110px);
  align-items: end;
  padding: clamp(34px, 4.8vw, 60px) clamp(6px, 1.6vw, 22px);
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-copy {
  max-width: 960px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 680;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 480;
  letter-spacing: -0.055em;
  line-height: 1.02;
  text-wrap: balance;
}

.hero h1 {
  display: grid;
  width: fit-content;
  max-width: none;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.hero-line-primary {
  color: var(--ink-soft);
  font-size: clamp(2.9rem, 5.1vw, 5.05rem);
  font-weight: 480;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.hero-line-accent {
  margin-top: -0.04em;
  margin-left: clamp(44px, 8vw, 138px);
  color: var(--ink);
  font-size: clamp(3.55rem, 6.55vw, 6.45rem);
  font-weight: 820;
  letter-spacing: -0.085em;
  line-height: 0.98;
}

.hero-lede {
  max-width: 38rem;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.75;
}

.hero-actions {
  display: grid;
  gap: 12px;
  min-width: 178px;
  padding-bottom: 2px;
}

.hero-history-link {
  justify-self: center;
  padding: 3px 2px;
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.hero-history-link:hover,
.hero-history-link:focus-visible {
  color: var(--accent-strong);
  border-bottom-color: currentColor;
}

.hero-media {
  overflow: hidden;
  height: clamp(290px, 40vh, 500px);
  padding: 0;
  border: 0;
  border-radius: 2px;
  outline: 0;
  background: transparent;
  box-shadow: none;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 43%;
  border-radius: 2px;
}

[data-hero-item],
[data-hero-visual],
[data-hero-photo],
[data-reveal],
[data-reveal-group] > *,
[data-screen-stage] > * {
  will-change: transform, opacity;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 52%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.proof-strip p {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 24px 30px;
}

.proof-strip p + p {
  border-left: 1px solid var(--line);
}

.proof-strip strong {
  font-size: 1rem;
  font-weight: 720;
}

.proof-strip span {
  color: var(--ink-muted);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}

.section {
  margin-top: clamp(110px, 13vw, 180px);
}

.section h2 {
  font-size: clamp(2.35rem, 4.5vw, 4.45rem);
}

.heading-light {
  color: var(--ink-soft);
  font-weight: 480;
}

.heading-strong {
  color: var(--ink);
  font-weight: 800;
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  gap: clamp(52px, 9vw, 130px);
  align-items: end;
}

.story-copy > p,
.section-title p,
.family-copy > p,
.support-scope-intro > p,
.open-source p,
.download p {
  max-width: var(--text-width);
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.84;
}

.story-points {
  display: grid;
}

.story-points article {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.story-points strong {
  color: var(--accent-strong);
  font-size: 1rem;
  font-weight: 720;
}

.story-points p {
  margin: 0;
  color: var(--ink-soft);
}

.experience {
  position: relative;
  isolation: isolate;
  padding: clamp(54px, 7vw, 88px) clamp(16px, 4vw, 52px);
  overflow: hidden;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.experience-product {
  min-width: 0;
}

.story-copy-stack {
  display: none;
}

.section-title {
  max-width: 720px;
}

.screen-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(210px, 0.82fr) minmax(210px, 0.82fr);
  gap: clamp(22px, 3vw, 42px);
  align-items: start;
  margin-top: 68px;
  padding: 0 10px 26px;
  perspective: 1200px;
}

.screen-card {
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform-style: preserve-3d;
}

.screen-card-featured {
  width: min(100%, 390px);
  justify-self: center;
}

.screen-card-secondary {
  width: min(100%, 284px);
  justify-self: center;
}

.screen-card-settings {
  margin-top: 118px;
}

.screen-card-contacts {
  margin-top: 34px;
}

.screen-card img,
.family-visual img {
  width: 100%;
  height: auto;
  background: var(--device-frame);
}

.screen-card img {
  border: 4px solid var(--device-frame);
  border-radius: 14px;
  box-shadow: var(--shadow-phone);
  transition: box-shadow 240ms ease;
}

.screen-card:hover img {
  box-shadow: var(--shadow-phone-hover);
}

.family-visual img {
  border: 5px solid var(--device-frame);
  border-radius: 18px;
}

.screen-card figcaption {
  position: relative;
  z-index: 3;
  min-height: 42px;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.family {
  display: grid;
  grid-template-columns: minmax(390px, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(54px, 9vw, 124px);
  align-items: center;
}

.family-visual {
  display: grid;
  place-items: end center;
  max-height: 720px;
  padding: 48px clamp(44px, 7vw, 84px) 0;
  overflow: hidden;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  outline: 0;
  background-color: var(--surface-strong);
  background-image: url("../images/ginkgo-atmosphere-v2.webp");
  background-position: 74% center;
  background-size: cover;
  background-blend-mode: soft-light;
  box-shadow: none;
}

.family-visual img {
  width: min(100%, 390px);
  transform: translateY(9%);
  box-shadow: var(--shadow-phone);
}

.family-copy ul {
  display: grid;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.family-copy li {
  display: grid;
  grid-template-columns: minmax(100px, 0.35fr) 1fr;
  gap: 26px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.family-copy li strong {
  color: var(--accent-strong);
  font-weight: 720;
}

.family-copy li span {
  color: var(--ink-soft);
}

.support-scope {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(480px, 1.28fr);
  gap: clamp(52px, 8vw, 118px);
  align-items: start;
}

.support-scope-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.support-scope-list article {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 34px;
  min-height: 196px;
  padding: 30px 32px;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.support-scope-list article:nth-child(odd) {
  padding-left: 0;
  border-right: 1px solid var(--line);
}

.support-scope-list article:nth-child(even) {
  padding-right: 0;
}

.support-scope-list strong {
  color: var(--accent-strong);
  font-size: 1.04rem;
  font-weight: 760;
  letter-spacing: -0.015em;
}

.support-scope-list article:first-child strong,
.support-scope-list article:first-child p {
  color: var(--ink);
}

.support-scope-list p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.open-source {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 50px;
  align-items: end;
  padding: clamp(42px, 6vw, 72px) clamp(6px, 2vw, 26px);
  border: 0;
  border-top: 2px solid var(--accent-strong);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.open-source h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.75rem);
}

.open-source p {
  color: var(--ink-soft);
}

.open-source .button-secondary {
  border-color: var(--button);
  background: var(--button);
  color: var(--button-text);
}

.faq {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: start;
}

.faq h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.75rem);
}

.faq-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.faq details {
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: border-color 200ms ease, background-color 200ms ease;
}

.faq summary {
  position: relative;
  padding: 24px 54px 24px 2px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 680;
  list-style: none;
}

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

.faq summary:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: -2px;
  border-radius: 0;
}

.faq summary::after {
  content: "+";
  position: absolute;
  top: 20px;
  right: 2px;
  color: var(--accent-strong);
  font-size: 1.45rem;
  font-weight: 500;
  transition: transform 180ms ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details[open] {
  border-color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent-soft) 22%, transparent);
  box-shadow: none;
}

.faq details p {
  margin: 0;
  padding: 0 54px 26px 2px;
  color: var(--ink-soft);
}

.download {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 60px;
  align-items: end;
  padding: clamp(48px, 7vw, 82px) clamp(6px, 2vw, 26px);
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: color-mix(in srgb, var(--surface-soft) 32%, transparent);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.download h2 {
  font-size: clamp(2.4rem, 4.2vw, 4.15rem);
}

.download-actions {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 156px;
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 26px;
}

@media (min-width: 960px) and (min-height: 700px) {
  .experience.is-scroll-story {
    z-index: 2;
    display: block;
    width: 100vw;
    height: 100dvh;
    min-height: 700px;
    margin-left: calc(50% - 50vw);
    padding: 0;
    background: var(--page);
  }

  .experience.is-scroll-story > .section-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .experience.is-scroll-story .experience-product {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
    align-items: center;
    gap: clamp(46px, 6vw, 104px);
    padding: clamp(84px, 11vh, 112px) clamp(54px, 8vw, 126px) clamp(28px, 4vh, 48px);
    overflow: hidden;
    background: linear-gradient(90deg, var(--surface-soft) 0 43%, var(--surface) 43% 100%);
    will-change: transform;
  }

  .experience.is-scroll-story .story-copy-stack {
    position: relative;
    display: block;
    align-self: center;
    min-height: 250px;
  }

  .experience.is-scroll-story .story-copy-panel {
    position: absolute;
    inset: 0 auto auto 0;
    width: min(100%, 520px);
    margin: 0;
    will-change: transform, opacity;
  }

  .experience.is-scroll-story .story-copy-panel h3 {
    max-width: 8.2em;
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 4.4vw, 4.8rem);
    font-weight: 760;
    letter-spacing: -0.065em;
    line-height: 1.02;
    text-wrap: balance;
  }

  .experience.is-scroll-story .story-copy-panel p {
    max-width: 24rem;
    margin: 28px 0 0;
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.25vw, 1.16rem);
    line-height: 1.75;
  }

  .experience.is-scroll-story .screen-stage {
    position: relative;
    display: block;
    width: 100%;
    height: min(78dvh, 660px);
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    perspective: none;
  }

  .experience.is-scroll-story .screen-card {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: none;
    margin: 0;
    overflow: hidden;
    transform-style: flat;
    will-change: clip-path;
  }

  .experience.is-scroll-story .screen-card img {
    width: auto;
    height: min(78dvh, 660px);
    max-width: min(36vw, 360px);
    border-width: 5px;
    border-radius: 16px;
    box-shadow: 0 2px 4px color-mix(in srgb, var(--device-frame) 12%, transparent), 0 34px 80px color-mix(in srgb, var(--device-frame) 24%, transparent);
    transform: none;
  }

  .experience.is-scroll-story .screen-card figcaption {
    display: none;
  }
}

@media (max-width: 1040px) {
  .site-nav {
    gap: 20px;
  }

  .screen-stage {
    grid-template-columns: minmax(0, 1.35fr) minmax(210px, 0.82fr) minmax(210px, 0.82fr);
  }
}

@media (max-width: 920px) {
  .site-nav {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .story,
  .family,
  .support-scope,
  .faq {
    grid-template-columns: 1fr;
  }

  .story-points {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  .story-points article {
    display: block;
    padding-top: 0;
  }

  .story-points p {
    margin-top: 10px;
  }

  .screen-stage {
    grid-template-columns: repeat(3, minmax(230px, 68vw));
    justify-content: start;
    margin-inline: -10px;
    padding: 12px 10px 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-strong) transparent;
  }

  .screen-card-featured,
  .screen-card-secondary {
    width: 100%;
    scroll-snap-align: center;
  }

  .screen-card-settings,
  .screen-card-contacts {
    margin-top: 0;
  }

  .family-visual {
    max-height: 700px;
  }

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

@media (max-width: 767px) {
  html {
    scroll-padding-top: 72px;
  }

  body {
    background-attachment: scroll;
    background-position: 64% top;
  }

  .site-header,
  main,
  .site-footer {
    width: min(100% - 32px, var(--page-width));
  }

  .site-header {
    min-height: 70px;
    padding-inline: 6px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .brand small {
    display: none;
  }

  .header-download {
    min-height: 44px;
    padding-inline: 16px;
    font-size: 0.8rem;
  }

  .hero {
    grid-template-rows: auto minmax(350px, 44vh);
    min-height: auto;
    padding: 34px 0 18px;
  }

  .hero-intro {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 4px 26px;
    border-radius: 0;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-line-primary {
    font-size: clamp(2.35rem, 10.8vw, 3.2rem);
  }

  .hero-line-accent {
    margin-left: clamp(16px, 7vw, 28px);
    font-size: clamp(3rem, 14.5vw, 4rem);
  }

  .hero-lede {
    max-width: 22rem;
    margin-top: 16px;
    font-size: 1rem;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
    padding-bottom: 0;
  }

  .hero-actions .button {
    flex: 1 1 152px;
  }

  .hero-history-link {
    flex: 1 0 100%;
    text-align: center;
  }

  .hero-media {
    height: 350px;
    border-radius: 2px;
  }

  .hero-photo {
    object-position: 61% center;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .proof-strip p {
    padding: 19px 4px;
  }

  .proof-strip p + p {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section {
    margin-top: 96px;
  }

  .section h2 {
    font-size: clamp(2.25rem, 11vw, 3.5rem);
  }

  .story {
    gap: 48px;
  }

  .story-copy > p,
  .section-title p,
  .family-copy > p,
  .support-scope-intro > p,
  .open-source p,
  .download p {
    margin-top: 20px;
    font-size: 1rem;
  }

  .story-points {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .story-points article {
    display: grid;
    grid-template-columns: 96px 1fr;
    padding: 18px 0;
  }

  .story-points p {
    margin: 0;
  }

  .experience {
    width: calc(100% + 32px);
    margin-left: -16px;
    padding: 42px 16px 34px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .screen-stage {
    grid-template-columns: repeat(3, minmax(230px, 72vw));
    gap: 20px;
    margin: 44px -16px 0;
    padding: 12px 16px 30px;
  }

  .screen-card {
    border-radius: 0;
  }

  .screen-card img {
    border-width: 4px;
    border-radius: 14px;
  }

  .family-visual img {
    border-width: 5px;
    border-radius: 18px;
  }

  .family {
    gap: 50px;
  }

  .family-visual {
    max-height: 630px;
    padding: 34px 42px 0;
    border-radius: 0;
  }

  .family-copy li {
    grid-template-columns: 92px 1fr;
    gap: 16px;
  }

  .support-scope {
    gap: 40px;
  }

  .support-scope-list {
    grid-template-columns: 1fr;
  }

  .support-scope-list article {
    min-height: 158px;
    gap: 24px;
    padding: 24px 0;
    border-right: 0;
  }

  .support-scope-list article:nth-child(odd) {
    border-right: 0;
  }

  .open-source,
  .download {
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
    padding: 36px 4px;
    border-radius: 0;
  }

  .open-source .button,
  .download-actions {
    width: 100%;
  }

  .download-actions .button {
    width: 100%;
  }

  .faq {
    gap: 40px;
  }

  .faq summary {
    padding-block: 21px;
  }

  .site-footer {
    display: grid;
    gap: 26px;
    min-height: 0;
    padding: 42px 0;
  }

  .footer-links {
    justify-content: flex-start;
    gap: 18px 24px;
  }
}

@media (max-width: 390px) {
  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .family-visual {
    padding-inline: 28px;
  }

  .family-copy li {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

@media (hover: none) {
  .screen-card:hover img {
    box-shadow: var(--shadow-phone);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-hero-item],
  [data-hero-visual],
  [data-hero-photo],
  [data-reveal],
  [data-reveal-group] > *,
  [data-screen-stage] > * {
    will-change: auto;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .proof-strip,
  .button-secondary {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Release history */
.versions-main {
  padding-top: 0;
}

.versions-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.34fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: end;
  padding: clamp(54px, 7vw, 84px) clamp(6px, 2vw, 26px);
  border-bottom: 1px solid var(--line-strong);
}

.versions-summary h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  font-weight: 780;
  letter-spacing: -0.06em;
  line-height: 1;
}

.versions-summary > div:first-child > p {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.versions-current {
  display: grid;
  grid-template-columns: auto auto;
  gap: 5px 24px;
  align-items: end;
  padding-left: clamp(22px, 3vw, 44px);
  border-left: 1px solid var(--line-strong);
}

.versions-current > span {
  grid-column: 1 / -1;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.versions-current > strong {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.6vw, 3.7rem);
  font-weight: 820;
  letter-spacing: -0.055em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.versions-current > time {
  padding-bottom: 4px;
  color: var(--ink-muted);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.versions-current .button {
  grid-column: 1 / -1;
  min-height: 46px;
  margin-top: 14px;
}

.release-ledger {
  padding-top: clamp(64px, 8vw, 104px);
}

.release-ledger-head {
  padding: 0 clamp(6px, 2vw, 26px) 28px;
}

.release-ledger-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.release-ledger-head > p {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.release-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  list-style: none;
}

.release-list > li + li {
  border-top: 1px solid var(--line);
}

.release-entry {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 118px;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding: clamp(28px, 3.5vw, 42px) clamp(6px, 2vw, 26px);
}

.release-entry-current {
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent-soft) 42%, transparent), transparent 58%);
}

.release-meta {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding-top: 7px;
}

.release-meta time {
  color: var(--ink-muted);
  font-size: 0.84rem;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}

.release-status {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--accent-strong);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 740;
}

.release-content {
  max-width: 740px;
}

.release-content h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.48rem);
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 1.35;
  text-wrap: balance;
}

.release-content h3 span {
  display: inline-block;
  min-width: 88px;
  margin-right: 14px;
  color: var(--accent-strong);
  font-size: 1.05rem;
  font-weight: 820;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.release-content p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.release-content ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 10px 0 0;
  padding: 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
  list-style: none;
}

.release-content li::before {
  content: "·";
  margin-right: 8px;
  color: var(--accent-strong);
}

.release-actions {
  display: grid;
  justify-items: end;
  gap: 12px;
  padding-top: 3px;
  text-align: right;
}

.release-actions a {
  color: var(--ink-muted);
  font-size: 0.8rem;
  font-weight: 650;
  text-decoration: none;
}

.release-actions .release-download {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: 0.88rem;
}

.release-actions a:hover {
  color: var(--accent-strong);
}

.release-pagination-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(6px, 2vw, 26px) 0;
}

.release-pagination-shell[hidden] {
  display: none;
}

.release-pagination-shell p,
.release-noscript {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.84rem;
}

.release-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.pagination-button {
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 680;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.pagination-button:hover:not(:disabled) {
  border-color: var(--line-strong);
  color: var(--ink);
  transform: translateY(-1px);
}

.pagination-button[aria-current="page"] {
  border-color: var(--button);
  background: var(--button);
  color: var(--button-text);
}

.pagination-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.pagination-ellipsis {
  display: grid;
  min-width: 28px;
  min-height: 40px;
  place-items: center;
  color: var(--ink-muted);
}

.release-noscript {
  padding: 16px clamp(6px, 2vw, 26px) 0;
}

.versions-notice {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 42px;
  align-items: baseline;
  margin-top: clamp(58px, 7vw, 88px);
  padding: 34px clamp(6px, 2vw, 26px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.versions-notice strong {
  font-family: var(--font-display);
  font-size: 1.18rem;
}

.versions-notice p {
  margin: 0;
  color: var(--ink-soft);
}

.versions-notice a {
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 920px) {
  .versions-summary {
    grid-template-columns: 1fr;
  }

  .versions-current {
    grid-template-columns: 1fr auto;
    align-items: end;
    padding: 28px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .versions-current > span,
  .versions-current > time {
    grid-column: 1;
  }

  .versions-current > strong {
    grid-row: auto;
    grid-column: 1;
  }

  .versions-current .button {
    grid-row: 2 / span 2;
    grid-column: 2;
    margin-top: 0;
  }

  .release-entry {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .release-actions {
    grid-column: 2;
    grid-auto-flow: column;
    justify-content: start;
    justify-items: start;
    gap: 24px;
    padding-top: 0;
    text-align: left;
  }
}

@media (max-width: 767px) {
  .versions-main {
    padding-top: 0;
  }

  .versions-summary {
    gap: 34px;
    padding: 42px 4px;
  }

  .versions-current {
    grid-template-columns: 1fr;
    padding-top: 22px;
  }

  .versions-current > strong {
    grid-row: auto;
    grid-column: auto;
  }

  .versions-current > span,
  .versions-current > time,
  .versions-current .button {
    grid-column: auto;
  }

  .versions-current .button {
    grid-row: auto;
    width: 100%;
    margin-top: 10px;
  }

  .release-ledger {
    padding-top: 64px;
  }

  .release-ledger-head {
    padding: 0 4px 30px;
  }

  .release-entry {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 42px 4px;
  }

  .release-meta {
    grid-auto-flow: column;
    justify-content: space-between;
    align-items: center;
  }

  .release-actions {
    grid-column: auto;
  }

  .release-pagination-shell {
    display: grid;
    justify-items: start;
    padding-inline: 4px;
  }

  .release-pagination {
    justify-content: flex-start;
  }

  .pagination-button {
    min-width: 38px;
    min-height: 38px;
    padding-inline: 10px;
  }

  .versions-notice {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 4px;
  }
}
