:root {
  --berry: #E85D75;
  --berry-deep: #D93F63;
  --orange: #F2A65A;
  --ink: #332D34;
  --deep: #2F2530;
  --muted: #756A73;
  --paper: #FFF9F6;
  --soft: #F8EEF0;
  --white: #FFFFFF;
  --line: rgba(47, 37, 48, 0.12);
  --line-strong: rgba(47, 37, 48, 0.22);
  --shadow-sm: 0 10px 26px rgba(47, 37, 48, 0.08);
  --shadow-md: 0 20px 56px rgba(47, 37, 48, 0.12);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 44px;
  --shell: 1220px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 7%, rgba(232, 93, 117, 0.08), transparent 26rem),
    radial-gradient(circle at 94% 17%, rgba(242, 166, 90, 0.08), transparent 24rem),
    var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  color: var(--white);
  background: var(--berry-deep);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

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

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.header-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(255, 249, 246, 0.9);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-header--scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 249, 246, 0.96);
  box-shadow: 0 10px 30px rgba(47, 37, 48, 0.07);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.brand__text {
  display: grid;
  line-height: 1.15;
}

.brand__text strong {
  color: var(--deep);
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

.brand__text small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  position: relative;
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.site-nav a:hover {
  color: var(--berry-deep);
  background: rgba(232, 93, 117, 0.08);
  transform: translateY(-1px);
}

.site-nav a[aria-current="page"] {
  color: var(--white);
  background: var(--deep);
  box-shadow: 0 8px 20px rgba(47, 37, 48, 0.15);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  border-radius: 999px;
  background: var(--deep);
}

main {
  overflow: clip;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr);
  align-items: center;
  gap: clamp(38px, 6vw, 86px);
  min-height: 690px;
  padding-block: clamp(64px, 8vw, 112px);
}

.hero__copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--berry-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.page-intro h1 {
  margin: 0;
  color: var(--deep);
  font-size: clamp(2.55rem, 5.4vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero__lead,
.page-intro__lead {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.85;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button--primary {
  color: var(--white);
  background: var(--berry-deep);
  box-shadow: 0 12px 24px rgba(217, 63, 99, 0.24);
}

.button--primary:hover {
  background: #c93355;
  box-shadow: 0 16px 30px rgba(217, 63, 99, 0.28);
}

.button--ghost {
  color: var(--deep);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.62);
}

.button--ghost:hover {
  border-color: rgba(232, 93, 117, 0.45);
  background: var(--white);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.badge {
  padding: 7px 11px;
  border: 1px solid rgba(232, 93, 117, 0.18);
  border-radius: 999px;
  color: #6a3946;
  background: rgba(232, 93, 117, 0.07);
  font-size: 0.8rem;
  font-weight: 700;
}

.hero__visual {
  position: relative;
  isolation: isolate;
}

.hero__visual::before,
.hero__visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(0.2px);
}

.hero__visual::before {
  top: -36px;
  right: -50px;
  width: 220px;
  height: 220px;
  background: rgba(242, 166, 90, 0.24);
}

.hero__visual::after {
  bottom: 40px;
  left: -44px;
  width: 160px;
  height: 160px;
  background: rgba(232, 93, 117, 0.15);
}

.hero__visual > img {
  width: 100%;
  min-height: 530px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.hero__note {
  position: absolute;
  right: -26px;
  bottom: 34px;
  width: min(300px, 72%);
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

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

.hero__note strong {
  color: var(--deep);
  font-size: 0.98rem;
}

.hero__note span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.section {
  padding-block: clamp(72px, 8vw, 112px);
}

.section--tight {
  padding-top: 10px;
}

.section--panel {
  background: var(--deep);
  color: var(--white);
}

.section--soft {
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: end;
  gap: 40px;
  max-width: none;
}

.section-heading h2,
.split-feature h2,
.info-layout h2,
.reading-layout h2,
.desktop-preview h2,
.faq-layout h2,
.comparison-layout h2,
.keyboard-layout h2,
.next-step h2 {
  margin: 0;
  color: var(--deep);
  font-size: clamp(1.8rem, 3.6vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.section--panel h2,
.section--panel h3 {
  color: var(--white);
}

.section-heading > p,
.section-heading--split > p,
.split-feature__copy > p,
.info-layout__intro > p,
.comparison-layout__intro > p,
.keyboard-layout > div > p,
.next-step p {
  margin: 0;
  color: var(--muted);
}

.section--panel .split-feature__copy > p,
.section--panel .info-layout__intro > p,
.section--panel .comparison-layout__intro > p {
  color: rgba(255, 255, 255, 0.7);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.path-card {
  position: relative;
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(47, 37, 48, 0.045);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.path-card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 93, 117, 0.3);
  box-shadow: var(--shadow-md);
}

.path-card__arrow {
  position: absolute;
  top: 22px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--berry-deep);
  background: rgba(232, 93, 117, 0.1);
}

.path-card h3 {
  margin: 46px 0 10px;
  color: var(--deep);
  font-size: 1.35rem;
}

.path-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--berry-deep);
  font-weight: 800;
}

.text-link::after {
  content: "→";
  transition: transform 160ms ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.works-grid {
  display: grid;
  gap: 22px;
}

.works-grid--featured {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.works-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(47, 37, 48, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.work-card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 93, 117, 0.26);
  box-shadow: var(--shadow-md);
}

.work-card__media {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--soft);
}

.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.work-card:hover .work-card__media img {
  transform: scale(1.025);
}

.work-card__body {
  padding: 20px;
}

.work-card__meta,
.work-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.work-card__meta {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.work-card__meta span:first-child {
  color: var(--berry-deep);
}

.work-card h3 {
  margin: 10px 0 8px;
  color: var(--deep);
  font-size: 1.15rem;
  line-height: 1.35;
}

.work-card h3 a:hover {
  color: var(--berry-deep);
}

.work-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.work-card__footer {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.work-card__footer span {
  color: var(--muted);
}

.work-card__footer a {
  color: var(--berry-deep);
  font-weight: 800;
}

.work-card--compact .work-card__media {
  aspect-ratio: 16 / 10;
}

.work-card--compact .work-card__body {
  padding: 18px;
}

.work-card--compact p {
  -webkit-line-clamp: 2;
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: clamp(42px, 7vw, 96px);
}

.split-feature__media img {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
}

.split-feature__copy .eyebrow,
.info-layout__intro .eyebrow,
.comparison-layout__intro .eyebrow {
  color: #ffc2cd;
}

.split-feature__copy > p {
  margin-top: 22px;
  font-size: 1rem;
  line-height: 1.8;
}

.feature-list {
  display: grid;
  gap: 13px;
  margin: 28px 0 30px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.75);
  position: relative;
}

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

.feature-list strong {
  color: var(--white);
}

.section--panel .button--primary {
  background: var(--berry);
}

.index-list {
  border-top: 1px solid var(--line);
}

.index-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 180px;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 160ms ease, background 160ms ease;
}

.index-row:hover {
  padding-inline: 14px;
  background: rgba(248, 238, 240, 0.66);
}

.index-row__num {
  color: var(--berry-deep);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.index-row__main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.index-row__main strong {
  color: var(--deep);
  font-size: 1.02rem;
}

.index-row__main small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.index-row__meta {
  justify-self: end;
  color: var(--muted);
  font-size: 0.84rem;
}

.desktop-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1.22fr);
  align-items: center;
  gap: 60px;
}

.desktop-preview > div > p:not(.eyebrow) {
  margin: 20px 0;
  color: var(--muted);
}

.desktop-preview img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.page-intro {
  padding-top: 38px;
  padding-bottom: clamp(70px, 8vw, 110px);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 12px 0 38px;
  color: var(--muted);
  font-size: 0.86rem;
}

.breadcrumbs a:hover {
  color: var(--berry-deep);
}

.breadcrumbs span[aria-hidden="true"] {
  color: rgba(117, 106, 115, 0.55);
}

.page-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
}

.page-intro__grid > img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.page-intro__grid--desktop > img {
  aspect-ratio: 4 / 3;
}

.filter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.filter-links a {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--white);
  font-size: 0.86rem;
  font-weight: 750;
}

.filter-links a:hover,
.filter-links a[aria-current="page"] {
  color: var(--white);
  border-color: var(--berry-deep);
  background: var(--berry-deep);
}

.info-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1.38fr);
  align-items: start;
  gap: clamp(48px, 8vw, 100px);
}

.info-layout__intro {
  position: sticky;
  top: calc(var(--header-height) + 28px);
}

.info-layout__intro > p:not(.eyebrow) {
  margin-top: 20px;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.note-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
}

.note-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.note-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.reading-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.6fr) minmax(0, 1.4fr);
  align-items: start;
  gap: 70px;
}

.reading-columns {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.reading-columns article {
  display: grid;
  grid-template-columns: minmax(140px, 0.4fr) minmax(0, 1.6fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.reading-columns h3,
.faq-list summary,
.desktop-guide-card h3,
.keyboard-layout h3 {
  margin: 0;
  color: var(--deep);
}

.reading-columns p {
  margin: 0;
  color: var(--muted);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
  gap: 70px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.faq-list summary {
  position: relative;
  padding: 20px 52px 20px 22px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--berry-deep);
  background: rgba(232, 93, 117, 0.1);
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
}

.next-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.next-step > div {
  max-width: 760px;
}

.next-step p:not(.eyebrow) {
  margin-top: 16px;
}

.desktop-guide-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.desktop-guide-card {
  min-height: 270px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
}

.desktop-guide-card > span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: var(--berry-deep);
  background: rgba(232, 93, 117, 0.09);
  font-size: 0.8rem;
  font-weight: 850;
}

.desktop-guide-card h3 {
  margin-top: 42px;
  font-size: 1.05rem;
}

.desktop-guide-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.comparison-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1.45fr);
  align-items: start;
  gap: 60px;
}

.comparison-layout__intro > p:not(.eyebrow) {
  margin-top: 18px;
}

.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
}

.comparison-table th,
.comparison-table td {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  vertical-align: top;
}

.comparison-table thead th {
  color: #ffc2cd;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
}

.comparison-table tbody th {
  color: var(--white);
  font-size: 0.9rem;
}

.comparison-table td {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
  border-bottom: 0;
}

.keyboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.65fr);
  align-items: center;
  gap: 70px;
}

.keyboard-layout > div:first-child > p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--muted);
}

.key-demo {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 12px 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.75);
}

.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 3px;
  border-radius: 10px;
  color: var(--deep);
  background: var(--white);
  font-weight: 850;
  box-shadow: 0 4px 8px rgba(47, 37, 48, 0.06);
}

.not-found {
  min-height: calc(100vh - var(--header-height) - 250px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 100px;
}

.not-found h1 {
  max-width: 760px;
  margin: 0;
  color: var(--deep);
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.not-found > p:not(.eyebrow) {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.site-footer {
  padding-top: 58px;
  color: rgba(255, 255, 255, 0.72);
  background: #271f28;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 50px;
  padding-bottom: 44px;
}

.footer-brand {
  display: inline-block;
  color: var(--white);
  font-size: 1.34rem;
  font-weight: 850;
}

.site-footer__grid > div:first-child p {
  max-width: 520px;
  margin: 16px 0 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 0.92rem;
}

.site-footer__grid > div:not(:first-child) {
  display: grid;
  align-content: start;
  gap: 8px;
}

.site-footer__grid a:not(.footer-brand) {
  width: fit-content;
  font-size: 0.9rem;
}

.site-footer__grid a:hover {
  color: #ffc2cd;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
}

/* home-specific rhythm */
.page--home .section:nth-of-type(3) {
  padding-top: 94px;
}

.page--home .works-grid--featured .work-card:nth-child(2n) {
  transform: translateY(18px);
}

.page--home .works-grid--featured .work-card:nth-child(2n):hover {
  transform: translateY(13px);
}

.page--home .section--panel {
  margin-top: 24px;
}

.page--home .desktop-preview > div {
  padding-right: 20px;
}

/* watch-specific rhythm */
.page--watch .page-intro__grid > img {
  aspect-ratio: 5 / 4;
}

.page--watch #content-index > .works-grid > div {
  min-width: 0;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.page--watch #content-index > .works-grid > div:focus {
  outline: none;
}

.page--watch #content-index > .works-grid > div:focus .work-card {
  box-shadow: 0 0 0 4px rgba(242, 166, 90, 0.5), var(--shadow-md);
}

/* desktop-specific rhythm */
.page--desktop .desktop-guide-grid .desktop-guide-card:nth-child(2),
.page--desktop .desktop-guide-grid .desktop-guide-card:nth-child(4) {
  transform: translateY(20px);
}

.page--desktop .works-grid--compact .work-card__media {
  aspect-ratio: 3 / 2;
}

/* subtle content separators */
.section + .section:not(.section--panel):not(.section--soft) {
  border-top: 1px solid rgba(47, 37, 48, 0.055);
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.82fr);
    gap: 48px;
  }

  .hero__visual > img {
    min-height: 480px;
  }

  .works-grid--featured,
  .works-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .desktop-guide-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .desktop-guide-grid .desktop-guide-card:nth-child(4),
  .desktop-guide-grid .desktop-guide-card:nth-child(5) {
    margin-top: 14px;
  }

  .page--desktop .desktop-guide-grid .desktop-guide-card:nth-child(2),
  .page--desktop .desktop-guide-grid .desktop-guide-card:nth-child(4) {
    transform: none;
  }
}

@media (max-width: 960px) {
  :root {
    --header-height: 72px;
  }

  .hero,
  .page-intro__grid,
  .page-intro__grid--desktop,
  .split-feature,
  .desktop-preview,
  .keyboard-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 52px;
  }

  .hero__copy {
    max-width: 820px;
  }

  .hero__visual {
    width: min(100%, 760px);
  }

  .hero__visual > img {
    min-height: 0;
    aspect-ratio: 16 / 11;
  }

  .hero__note {
    right: 18px;
  }

  .path-grid {
    grid-template-columns: 1fr 1fr;
  }

  .path-grid .path-card:last-child {
    grid-column: 1 / -1;
  }

  .split-feature__media {
    order: 2;
  }

  .split-feature__copy {
    order: 1;
  }

  .split-feature__media img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .info-layout,
  .reading-layout,
  .faq-layout,
  .comparison-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .info-layout__intro {
    position: static;
  }

  .desktop-preview {
    gap: 34px;
  }

  .desktop-preview > div {
    max-width: 720px;
  }

  .page-intro__grid > img {
    width: min(100%, 760px);
  }

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

  .site-footer__grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .section-heading--split {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .page--home .works-grid--featured .work-card:nth-child(2n),
  .page--home .works-grid--featured .work-card:nth-child(2n):hover {
    transform: none;
  }

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

  .index-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .index-row__meta {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .menu-toggle {
    display: inline-block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: fixed;
    inset: calc(var(--header-height) + 8px) 14px auto;
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 249, 246, 0.98);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 170ms ease, opacity 170ms ease, visibility 170ms ease;
  }

  .site-nav[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .hero h1,
  .page-intro h1 {
    font-size: clamp(2.35rem, 11vw, 4rem);
  }

  .hero__visual::before,
  .hero__visual::after {
    display: none;
  }

  .hero__note {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .path-grid {
    grid-template-columns: 1fr;
  }

  .path-grid .path-card:last-child {
    grid-column: auto;
  }

  .note-grid {
    grid-template-columns: 1fr;
  }

  .reading-columns article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .next-step {
    align-items: flex-start;
    flex-direction: column;
  }

  .key-demo {
    grid-template-columns: 74px 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer__grid > div:first-child {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .brand__text small {
    display: none;
  }

  .brand img {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .hero,
  .section,
  .page-intro {
    padding-block: 58px;
  }

  .section--tight {
    padding-top: 0;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .works-grid--featured,
  .works-grid--compact,
  .desktop-guide-grid {
    grid-template-columns: 1fr;
  }

  .work-card__media,
  .work-card--compact .work-card__media {
    aspect-ratio: 16 / 11;
  }

  .path-card {
    min-height: 190px;
  }

  .index-row {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
  }

  .index-row__main small {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .page-intro__grid > img {
    border-radius: 26px;
  }

  .comparison-table-wrap {
    margin-inline: -2px;
  }

  .key-demo {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .menu-toggle,
  .hero__actions,
  .filter-links {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section,
  .hero,
  .page-intro {
    padding-block: 24px;
  }

  .work-card,
  .path-card,
  .note-card,
  .desktop-guide-card {
    break-inside: avoid;
    box-shadow: none;
  }
}

/* content choice guides */
.story-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.story-guide-card {
  position: relative;
  min-height: 310px;
  padding: 25px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 238, 240, 0.58));
}

.story-guide-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -56px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(232, 93, 117, 0.08);
}

.story-guide-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--deep);
  font-size: 1.08rem;
  line-height: 1.45;
}

.story-guide-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 18px;
  color: var(--berry-deep);
  font-size: 0.88rem;
  line-height: 1.65;
}

.story-guide-card p {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.78;
}

.story-guide-card:nth-child(4n + 2)::after {
  background: rgba(242, 166, 90, 0.11);
}

.story-guide-card:nth-child(4n + 3) {
  background: var(--white);
}

.story-guide-card:nth-child(4n) {
  border-color: rgba(232, 93, 117, 0.2);
}

.scenario-list {
  border-top: 1px solid var(--line);
}

.scenario-row {
  display: grid;
  grid-template-columns: 64px minmax(180px, 0.52fr) minmax(0, 1.48fr);
  gap: 24px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.scenario-row > span {
  color: var(--berry-deep);
  font-size: 0.84rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.scenario-row h3 {
  margin: 0;
  color: var(--deep);
  font-size: 1rem;
  line-height: 1.5;
}

.scenario-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.78;
}

.scenario-row:hover h3 {
  color: var(--berry-deep);
}

@media (max-width: 980px) {
  .story-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scenario-row {
    grid-template-columns: 48px minmax(180px, 0.7fr) minmax(0, 1.3fr);
  }
}

@media (max-width: 700px) {
  .story-guide-grid {
    grid-template-columns: 1fr;
  }

  .story-guide-card {
    min-height: 0;
  }

  .scenario-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px 14px;
  }

  .scenario-row p {
    grid-column: 2;
  }
}
