:root {
  color-scheme: light;
  --washi: #f5efdf;
  --washi-light: #fffaf2;
  --washi-deep: #ebe0c7;
  --ink: #1e1a16;
  --ink-soft: #514a40;
  --ink-muted: #6d6253;
  --line: rgba(30, 26, 22, 0.2);
  --line-strong: rgba(30, 26, 22, 0.54);
  --vermilion: #b63b2a;
  --vermilion-deep: #8f281d;
  --indigo: #183a60;
  --indigo-soft: #e3e9ed;
  --matcha: #486c4c;
  --matcha-soft: #e4eadf;
  --gold: #a77c35;
  --shadow: 0 24px 64px rgba(30, 26, 22, 0.16);
  --shadow-small: 0 10px 28px rgba(30, 26, 22, 0.12);
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --shell: 1180px;
  --scroll-progress: 0%;
}

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

html {
  background: var(--washi);
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--washi);
  background-image: url("/assets/washi-paper-v1.jpg");
  background-position: center top;
  background-size: 1024px auto;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: var(--vermilion);
  color: #fff;
}

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

a {
  color: inherit;
}

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

button {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  background: var(--washi-light);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: var(--scroll-progress);
  height: 100%;
  background: var(--vermilion);
  transition: width 60ms linear;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 239, 223, 0.91);
  backdrop-filter: blur(18px) saturate(110%);
  transition: box-shadow 220ms ease, background-color 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(245, 239, 223, 0.97);
  box-shadow: 0 8px 28px rgba(30, 26, 22, 0.08);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 28px, var(--shell));
  min-height: 64px;
  margin-inline: auto;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  box-shadow: 0 3px 8px rgba(30, 26, 22, 0.18);
}

.brand-words {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.2;
}

.brand-words strong {
  font-family: var(--serif);
  font-size: 1.07rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.brand-words small {
  display: none;
  color: var(--ink-muted);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.site-nav {
  display: none;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px 1px;
  border: 1px solid var(--vermilion-deep);
  border-radius: 6px;
  background: var(--vermilion);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 3px 3px 0 rgba(143, 40, 29, 0.2);
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.header-cta:hover {
  background: var(--vermilion-deep);
  box-shadow: 1px 1px 0 rgba(143, 40, 29, 0.2);
  transform: translate(2px, 2px);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  border-bottom: 1px solid var(--line-strong);
  background-color: rgba(255, 250, 242, 0.44);
  background-image: url("/assets/hero-inkwash-v1.jpg");
  background-position: 58% 100%;
  background-repeat: no-repeat;
  background-size: auto 48%;
}

.hero-shell {
  position: relative;
  display: grid;
  width: min(100% - 36px, var(--shell));
  min-height: calc(100svh - 64px);
  margin-inline: auto;
  padding: 42px 0 58px;
  gap: 30px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--vermilion-deep);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.version-stamp {
  display: inline-grid;
  min-width: 3.2em;
  min-height: 3.2em;
  margin-right: 0.7em;
  place-items: center;
  border: 1px solid currentColor;
  color: var(--vermilion-deep);
  font-family: var(--serif);
  font-size: 0.9em;
  line-height: 1;
  transform: rotate(-2deg);
}

.hero h1,
.chapter h2,
.devices h2,
.final-cta h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.hero h1 {
  font-size: clamp(1.6rem, 8.7vw, 4.35rem);
}

.hero h1 > span {
  display: block;
  white-space: nowrap;
}

.hero-lead {
  max-width: 38rem;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.82;
}

.hero-actions {
  display: flex;
  align-items: flex-start;
  margin-top: 24px;
  flex-direction: column;
  gap: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px 2px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.button-primary {
  min-width: 238px;
  border-color: var(--vermilion-deep);
  background: var(--vermilion);
  color: #fff;
  box-shadow: 5px 5px 0 rgba(143, 40, 29, 0.22);
}

.button-primary:hover {
  background: var(--vermilion-deep);
  box-shadow: 2px 2px 0 rgba(143, 40, 29, 0.22);
  transform: translate(3px, 3px);
}

.text-link {
  display: inline-block;
  padding-block: 4px;
  border-bottom: 1px solid currentColor;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease;
}

.text-link:hover {
  color: var(--vermilion);
}

.availability {
  margin: 18px 0 0;
  color: var(--ink-muted);
  font-size: 0.68rem;
  font-weight: 500;
}

.hero-device {
  position: relative;
  z-index: 1;
  width: min(72vw, 280px);
  margin: 0 auto;
}

.device-mockup {
  position: relative;
  isolation: isolate;
  margin: 0;
  filter: drop-shadow(0 18px 18px rgba(30, 26, 22, 0.18));
  transition: filter 320ms ease;
}

.device-phone.device-portrait {
  aspect-ratio: 862 / 1825;
}

.device-phone.device-landscape {
  aspect-ratio: 1825 / 862;
}

.device-tablet.device-landscape {
  aspect-ratio: 1536 / 1024;
}

.device-tablet.device-portrait {
  aspect-ratio: 1024 / 1536;
}

.device-screen {
  position: absolute;
  z-index: 0;
  overflow: hidden;
  background: var(--washi-light);
}

.device-phone.device-portrait > .device-screen {
  inset: 8.4% 12%;
  border-radius: 12% / 5.5%;
}

.device-phone.device-landscape > .device-screen {
  inset: 12% 8.4%;
  border-radius: 5.5% / 12%;
}

.device-tablet.device-landscape > .device-screen {
  inset: 9.765625% 14.16015625%;
  border-radius: 3%;
}

.device-tablet.device-portrait > .device-screen {
  inset: 14.16015625% 9.765625%;
  border-radius: 3%;
}

.device-tablet.device-portrait > .device-screen img {
  object-fit: fill;
}

.device-screen picture,
.device-screen img {
  display: block;
  width: 100%;
  height: 100%;
}

.device-screen img {
  max-width: none;
  object-fit: cover;
  object-position: 50% 0;
}

.device-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
}

.hero-side-note {
  display: none;
}

.section-shell,
.chapter-shell,
.devices-shell,
.final-cta-shell,
.footer-shell {
  width: min(100% - 36px, var(--shell));
  margin-inline: auto;
}

.chapter {
  position: relative;
  overflow: clip;
  border-top: 1px solid var(--line-strong);
}

.chapter::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 6px;
  background: var(--chapter-accent);
  content: "";
}

.chapter::after {
  display: none;
  content: "";
}

.chapter-build {
  --chapter-accent: var(--indigo);
  background-color: rgba(227, 233, 237, 0.56);
}

.chapter-ranking {
  --chapter-accent: var(--gold);
  background-color: rgba(255, 250, 242, 0.76);
}

.chapter-plan {
  --chapter-accent: var(--indigo);
  background-color: rgba(227, 233, 237, 0.56);
}

.chapter-backup {
  --chapter-accent: var(--matcha);
  background-color: rgba(228, 234, 223, 0.62);
}

.chapter-simulate {
  --chapter-accent: var(--vermilion);
  background-color: rgba(255, 250, 242, 0.76);
}

.chapter-review {
  --chapter-accent: var(--vermilion);
  background-color: rgba(255, 250, 242, 0.76);
}

.chapter-shell {
  display: grid;
  align-items: center;
  min-height: 0;
  padding-block: 44px 48px;
  gap: 32px;
}

.chapter-copy {
  position: relative;
  z-index: 2;
}

.chapter-title {
  margin: 0;
  color: var(--chapter-accent);
  font-family: var(--serif);
  font-size: clamp(3.4rem, 17vw, 4.7rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  white-space: nowrap;
}

.chapter-subtitle {
  margin: 12px 0 0;
  padding-bottom: 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--chapter-accent) 66%, transparent);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 6vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1.45;
}

.chapter-description {
  max-width: 28rem;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.85;
}

.chapter-points {
  display: grid;
  margin: 16px 0 0;
  padding: 0;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.6;
  list-style: none;
}

.chapter-points li {
  position: relative;
  padding-left: 16px;
}

.chapter-points li::before {
  position: absolute;
  top: 0.72em;
  left: 1px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--chapter-accent);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.chapter-footnote {
  max-width: 28rem;
  margin: 11px 0 0;
  color: var(--ink-muted);
  font-size: 0.62rem;
  line-height: 1.65;
}

.chapter-flow {
  display: grid;
  margin: 18px 0 0;
  gap: 8px;
}

.chapter-flow div {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  gap: 10px;
}

.chapter-flow dt {
  color: var(--chapter-accent);
  font-family: var(--serif);
  font-size: 0.86rem;
  font-weight: 800;
}

.chapter-flow dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.55;
}

.chapter-note {
  max-width: 28rem;
  margin: 17px 0 0;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--chapter-accent) 50%, transparent);
  background: color-mix(in srgb, var(--washi-light) 72%, transparent);
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1.65;
}

.chapter-note strong {
  display: block;
  color: var(--chapter-accent);
}

.chapter-device {
  position: relative;
  width: min(100%, 560px);
  margin-inline: auto;
}

.chapter-device-build {
  width: min(64vw, 230px);
}

.chapter-device-review {
  width: min(64vw, 230px);
}

.chapter-device-ranking,
.chapter-device-plan,
.chapter-device-backup {
  width: min(64vw, 230px);
}

.chapter-device:hover,
.hero-device:hover {
  filter: drop-shadow(0 23px 22px rgba(30, 26, 22, 0.22));
}

.simulation-gallery {
  min-width: 0;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.gallery-controls button {
  min-width: 74px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--washi-light);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.gallery-controls button:hover:not(:disabled) {
  background: var(--ink);
  color: var(--washi-light);
  transform: translateY(-2px);
}

.gallery-controls button:disabled {
  cursor: default;
  opacity: 0.38;
}

.gallery-controls p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.gallery-track {
  display: grid;
  grid-auto-columns: min(66vw, 260px);
  grid-auto-flow: column;
  overflow-x: auto;
  padding: 4px calc((100vw - min(66vw, 260px)) / 2 - 18px) 20px;
  gap: 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  display: grid;
  align-content: start;
  margin: 0;
  gap: 12px;
  scroll-snap-align: center;
}

.gallery-item .device-mockup {
  width: 100%;
}

.gallery-item figcaption {
  min-height: 3.1em;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}

.devices {
  position: relative;
  overflow: clip;
  border-top: 1px solid var(--line-strong);
  background-color: rgba(255, 250, 242, 0.76);
  background-image: url("/assets/hero-inkwash-v1.jpg"), url("/assets/washi-paper-v1.jpg");
  background-position: 64% 100%, center;
  background-repeat: no-repeat, repeat;
  background-size: auto 52%, 1024px auto;
}

.devices-shell {
  display: grid;
  min-height: 0;
  padding-block: 54px 58px;
  gap: 36px;
}

.devices h2 {
  font-size: clamp(2.25rem, 10vw, 3.3rem);
  line-height: 1.35;
}

.devices-copy > p:last-child {
  max-width: 34rem;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 500;
}

.device-pair {
  position: relative;
  width: 100%;
  height: clamp(300px, 80vw, 440px);
}

.device-pair figure {
  position: absolute;
  margin: 0;
}

.device-pair-phone {
  bottom: 0;
  left: 0;
  z-index: 2;
  width: min(31vw, 170px);
}

.device-pair-tablet {
  right: 5%;
  bottom: 0;
  width: min(43vw, 260px);
}

.final-cta {
  border-top: 1px solid var(--line-strong);
  background-color: rgba(255, 250, 242, 0.84);
  background-image: url("/assets/washi-paper-v1.jpg");
  background-position: center;
  background-size: 1024px auto;
  color: var(--ink);
}

.final-cta-shell {
  display: flex;
  align-items: center;
  padding-block: 58px 64px;
  flex-direction: column;
  text-align: center;
}

.final-icon {
  width: 82px;
  height: 82px;
  margin-bottom: 24px;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.final-cta .eyebrow {
  color: var(--vermilion-deep);
}

.final-cta h2 {
  font-size: clamp(1.75rem, 8vw, 3rem);
}

.final-cta p:not(.eyebrow) {
  max-width: 34rem;
  margin: 22px auto 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.final-cta .button {
  margin-top: 28px;
}

.final-cta small {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 0.7rem;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #151310;
  color: #e2d8c8;
}

.footer-shell {
  display: grid;
  padding-block: 34px calc(34px + env(safe-area-inset-bottom));
  gap: 24px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 800;
  text-decoration: none;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.site-footer nav a {
  color: #e2d8c8;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration-color: rgba(226, 216, 200, 0.45);
  text-underline-offset: 4px;
}

.site-footer nav a:hover {
  color: #fff;
}

.site-footer p {
  margin: 0;
  color: #bdb4a5;
  font-size: 0.74rem;
}

.site-footer p a {
  color: inherit;
  text-decoration-color: rgba(189, 180, 165, 0.45);
  text-underline-offset: 4px;
}

.site-footer p a:hover {
  color: #fff;
}

.mobile-store-cta {
  display: none;
}

.motion-ready .reveal {
  --reveal-y: 24px;
  opacity: 0;
  transform: translate3d(0, calc(var(--reveal-y) + var(--parallax, 0px)), 0);
  transition: opacity 720ms cubic-bezier(0.22, 1, 0.36, 1), transform 820ms cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-ready .reveal.is-visible {
  --reveal-y: 0px;
  opacity: 1;
}

.motion-ready .final-icon {
  animation: stamp-settle 760ms 180ms cubic-bezier(0.2, 0.9, 0.25, 1.2) both;
}

@keyframes stamp-settle {
  0% {
    opacity: 0;
    transform: scale(1.35) rotate(-5deg);
  }
  62% {
    opacity: 1;
    transform: scale(0.94) rotate(1deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@media (min-width: 520px) {
  .header-shell,
  .section-shell,
  .chapter-shell,
  .devices-shell,
  .final-cta-shell,
  .footer-shell {
    width: min(100% - 56px, var(--shell));
  }

  .hero-shell {
    width: min(100% - 56px, var(--shell));
  }

  .brand-words small {
    display: block;
  }

  .hero-actions {
    align-items: center;
    flex-direction: row;
    gap: 24px;
  }

  .chapter-shell {
    padding-block: 52px 56px;
  }

  .gallery-track {
    padding-inline: calc((100vw - min(58vw, 300px)) / 2 - 28px);
    grid-auto-columns: min(58vw, 300px);
    gap: 24px;
  }
}

@media (min-width: 768px) {
  html {
    scroll-padding-top: 76px;
  }

  .header-shell {
    min-height: 64px;
  }

  .site-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 26px;
  }

  .site-nav a {
    position: relative;
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
  }

  .site-nav a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 1px;
    background: var(--vermilion);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
  }

  .site-nav a:hover::after,
  .site-nav a.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .header-cta {
    min-height: 44px;
    padding-inline: 18px;
  }

  .hero {
    background-position: 58% 100%;
    background-size: cover;
  }

  .hero-shell {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.68fr);
    align-items: center;
    min-height: clamp(520px, 63vw, 660px);
    padding-block: 12px;
    gap: 24px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 5.4vw, 3.7rem);
  }

  .hero-device {
    width: min(34vw, 300px);
    margin-block: -40px;
  }

  .hero-side-note {
    position: absolute;
    top: 13%;
    right: -12px;
    display: block;
    margin: 0;
    padding-left: 12px;
    border-left: 1px solid var(--line-strong);
    color: var(--ink-soft);
    font-family: var(--serif);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.9;
    writing-mode: vertical-rl;
  }

  .chapter::before {
    inset: 0 auto 0 0;
    width: 44px;
    height: auto;
    background-color: var(--chapter-accent);
    background-image: url("/assets/washi-paper-v1.jpg");
    background-position: center;
    background-repeat: repeat;
    background-size: 320px auto;
    background-blend-mode: multiply;
  }

  .chapter::after {
    position: absolute;
    top: 50%;
    left: 29px;
    z-index: 2;
    display: block;
    width: 30px;
    height: 30px;
    background: url("/assets/chapter-diamond-v1.png") center / contain no-repeat;
    transform: translateY(-50%);
  }

  .chapter-shell {
    grid-template-columns: clamp(220px, 28vw, 300px) minmax(0, 1fr);
    width: min(calc(100% - 104px), calc(var(--shell) - 44px));
    min-height: 0;
    margin-right: 28px;
    margin-left: max(76px, calc((100% - var(--shell)) / 2 + 76px));
    padding-block: 20px;
    gap: 34px;
  }

  .chapter-build .chapter-shell {
    height: clamp(300px, 38vw, 400px);
  }

  .chapter-ranking .chapter-shell,
  .chapter-plan .chapter-shell,
  .chapter-backup .chapter-shell,
  .chapter-review .chapter-shell {
    height: clamp(350px, 42vw, 440px);
  }

  .chapter-simulate .chapter-shell {
    height: clamp(370px, 45vw, 480px);
  }

  .chapter-review .chapter-shell {
    padding-block: 16px;
  }

  .chapter-title {
    font-size: clamp(3.8rem, 8.4vw, 5.8rem);
  }

  .chapter-review .chapter-title {
    font-size: clamp(3.45rem, 7.1vw, 5rem);
  }

  .chapter-ranking .chapter-title,
  .chapter-plan .chapter-title {
    font-size: clamp(3.25rem, 6.6vw, 4.6rem);
  }

  .chapter-subtitle {
    margin-top: 7px;
    padding-bottom: 8px;
    font-size: clamp(1.15rem, 2.65vw, 1.7rem);
    line-height: 1.38;
  }

  .chapter-description {
    max-width: 230px;
    margin-top: 9px;
    font-size: 0.72rem;
    line-height: 1.72;
  }

  .chapter-points {
    margin-top: 10px;
    font-size: 0.64rem;
    gap: 4px;
  }

  .chapter-footnote {
    max-width: 230px;
    margin-top: 7px;
    font-size: 0.56rem;
    line-height: 1.45;
  }

  .chapter-flow {
    margin-top: 10px;
    gap: 5px;
  }

  .chapter-flow div {
    padding-top: 5px;
  }

  .chapter-note {
    max-width: 230px;
    margin-top: 10px;
    padding: 7px 9px;
    font-size: 0.61rem;
    line-height: 1.55;
  }

  .chapter-device-build {
    width: clamp(112px, 14vw, 150px);
    justify-self: end;
  }

  .chapter-device-review {
    width: clamp(112px, 14vw, 150px);
    justify-self: end;
  }

  .chapter-device-ranking,
  .chapter-device-plan,
  .chapter-device-backup {
    width: clamp(112px, 14vw, 150px);
    justify-self: end;
  }

  .gallery-controls {
    display: none;
  }

  .chapter-simulate .simulation-gallery {
    align-self: start;
    padding-top: 8px;
  }

  .chapter-simulate .chapter-copy,
  .chapter-review .chapter-copy {
    align-self: start;
    padding-top: 12px;
  }

  .gallery-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: auto;
    grid-auto-flow: initial;
    justify-content: start;
    width: 100%;
    max-width: 430px;
    margin-right: auto;
    overflow: visible;
    padding: 0;
    gap: clamp(10px, 1.5vw, 20px);
    scroll-snap-type: none;
  }

  .gallery-item {
    gap: 8px;
  }

  .gallery-item figcaption {
    font-size: 0.62rem;
  }

  .devices-shell {
    grid-template-columns: clamp(215px, 28vw, 300px) minmax(0, 1fr);
    align-items: center;
    height: clamp(270px, 31.65vw, 360px);
    min-height: 0;
    padding-block: 24px;
    gap: 30px;
  }

  .devices h2 {
    font-size: clamp(2.15rem, 4.6vw, 3.25rem);
  }

  .devices-copy > p:last-child {
    max-width: 230px;
    margin-top: 12px;
    font-size: 0.72rem;
    line-height: 1.7;
  }

  .device-pair {
    height: 100%;
  }

  .device-pair-phone {
    left: 14%;
    width: min(13vw, 150px);
  }

  .device-pair-tablet {
    right: 10%;
    bottom: 0;
    width: min(20vw, 235px);
  }

  .final-cta-shell {
    padding-block: 24px 28px;
  }

  .final-icon,
  .final-cta .eyebrow,
  .final-cta p:not(.eyebrow),
  .final-cta small {
    display: none;
  }

  .final-cta h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.45rem);
    white-space: nowrap;
  }

  .final-cta .button {
    min-height: 46px;
    margin-top: 14px;
    padding-inline: 34px;
  }

  .footer-shell {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding-block: 36px;
  }

  .site-footer nav {
    justify-content: center;
  }
}

@media (min-width: 1100px) {
  .header-shell {
    width: min(100% - 80px, var(--shell));
  }

  .hero-shell,
  .section-shell,
  .devices-shell,
  .final-cta-shell,
  .footer-shell {
    width: min(100% - 80px, var(--shell));
  }

  .hero-shell {
    grid-template-columns: minmax(0, 1fr) 330px;
    min-height: 680px;
    gap: 72px;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 5.7vw, 4.7rem);
  }

  .hero-device {
    width: 300px;
  }

  .chapter-shell {
    gap: 56px;
  }

  .gallery-track {
    max-width: 560px;
  }

  .devices-shell {
    gap: 56px;
  }
}

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

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

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
