:root {
  color-scheme: dark;
  --ink: #f3f3ee;
  --ink-soft: rgba(243, 243, 238, 0.72);
  --ink-faint: rgba(243, 243, 238, 0.48);
  --jade: #9bbcaf;
  --jade-bright: #c7d9d1;
  --surface: #070908;
  --line: rgba(231, 237, 232, 0.2);
  --gutter: clamp(1.2rem, 4vw, 4.5rem);
}

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

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

body {
  margin: 0;
  min-width: 20rem;
  overflow-x: clip;
  background: var(--surface);
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", system-ui, sans-serif;
  font-feature-settings: "palt";
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
}

.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: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.7rem 0.9rem;
  background: var(--ink);
  color: var(--surface);
  transform: translateY(-160%);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.75rem;
  padding: 0.75rem var(--gutter);
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(5, 7, 6, 0.7), transparent);
}

.site-header a {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.7rem;
  min-height: 2.75rem;
  padding-block: 0.45rem;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  letter-spacing: 0.07em;
}

.brand-tag {
  color: var(--ink-soft);
  font-size: 0.62rem;
  letter-spacing: 0.23em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.6rem);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.header-actions a {
  display: inline-grid;
  place-items: center;
  min-height: 2.75rem;
}

.header-entry {
  padding-inline: 1rem;
  border: 1px solid rgba(232, 239, 235, 0.48);
}

.slides {
  width: 100%;
}

.slide {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0d0b;
}

.slide__inner {
  position: relative;
  min-height: inherit;
  overflow: hidden;
}

.slide__img,
.slide__img-inner,
.slide__img-inner img,
.slide__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slide__img {
  z-index: 0;
  margin: 0;
  overflow: hidden;
}

.slide__img-inner {
  display: block;
  overflow: hidden;
  will-change: transform;
}

.slide__img-inner img {
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(0.78) contrast(1.04);
}

.slide--coast .slide__img-inner img,
.slide--obsidian .slide__img-inner img,
.slide--room .slide__img-inner img,
.slide--device .slide__img-inner img {
  object-position: center;
}

.slide__veil {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 5, 4, 0.82) 0%, rgba(3, 5, 4, 0.42) 48%, rgba(3, 5, 4, 0.08) 100%),
    linear-gradient(0deg, rgba(3, 5, 4, 0.72) 0%, transparent 54%, rgba(3, 5, 4, 0.18) 100%);
}

.slide__copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: end;
  width: min(100%, 76rem);
  min-height: inherit;
  padding: clamp(7rem, 15vh, 10rem) var(--gutter) clamp(3rem, 9vh, 6.5rem);
}

.eyebrow {
  margin: 0 0 1.15rem;
  color: var(--jade-bright);
  font-size: clamp(0.62rem, 1vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.25em;
}

.slide h1,
.slide h2 {
  max-width: 13ch;
  margin: 0;
  font-family: Georgia, "Yu Mincho", "YuMincho", serif;
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.06;
  text-wrap: balance;
}

.slide h1 {
  font-size: clamp(3.15rem, 7.2vw, 7.4rem);
}

.slide h2 {
  font-size: clamp(2.75rem, 6vw, 6.2rem);
}

.hero-kicker {
  display: block;
  margin-bottom: 0.5rem;
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", system-ui, sans-serif;
  font-size: 0.28em;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

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

.hero-device {
  margin: clamp(1.2rem, 3vh, 2rem) 0 0;
  color: var(--ink-soft);
  font-size: clamp(0.82rem, 1.2vw, 1rem);
  letter-spacing: 0.08em;
}

.hero-name {
  margin: 0.2rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.2vw, 3.5rem);
  letter-spacing: 0.1em;
  line-height: 1.15;
}

.body-copy {
  display: grid;
  gap: clamp(0.65rem, 1.5vh, 1rem);
  width: min(100%, 55rem);
  margin-top: clamp(1rem, 2.4vh, 1.6rem);
  color: rgba(246, 247, 242, 0.86);
  font-size: clamp(0.82rem, 1.12vw, 1rem);
  line-height: 1.9;
}

.body-copy p {
  margin: 0;
}

.slide__copy--system h2,
.slide__copy--how h2,
.slide__copy--features h2 {
  font-size: clamp(2.5rem, 4.8vw, 5.2rem);
}

.lead {
  max-width: 39rem;
  margin: clamp(1.15rem, 2.8vh, 1.9rem) 0 0;
  color: rgba(246, 247, 242, 0.84);
  font-size: clamp(0.92rem, 1.25vw, 1.08rem);
}

.chapter-note {
  display: grid;
  grid-template-columns: 8rem minmax(0, 31rem);
  gap: 1.2rem;
  align-items: start;
  margin-top: clamp(1.5rem, 4vh, 2.75rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.chapter-note > span {
  color: var(--ink-faint);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
}

.chapter-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(0.8rem, 1vw, 0.92rem);
}

.chapter-note strong {
  color: var(--ink);
  font-weight: 500;
}

.static-note {
  width: fit-content;
  margin: 1.25rem 0 0;
  color: var(--ink-faint);
  font-size: 0.72rem;
}

.entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.6rem, 4vh, 2.75rem);
}

.button {
  display: inline-grid;
  place-items: center;
  min-height: 3.35rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid rgba(231, 237, 232, 0.38);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.button-primary {
  border-color: var(--jade-bright);
  background: var(--jade-bright);
  color: #08100c;
}

.button-secondary {
  background: rgba(7, 9, 8, 0.36);
  color: var(--ink);
}

.entry-ai {
  width: fit-content;
  margin-top: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.copyright {
  margin: 2rem 0 0;
  color: var(--ink-faint);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.scene-nav,
.scene-controls,
.scene-hint {
  display: none;
}

html.motion-ready,
html.motion-ready body {
  height: 100%;
  overflow: hidden;
}

html.motion-ready .slides {
  display: grid;
  grid-template: 100% / 100%;
  place-items: center;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

html.motion-ready .slide {
  grid-area: 1 / 1 / -1 / -1;
  width: 100%;
  height: 104%;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
  border: 0;
  will-change: transform;
}

html.motion-ready .slide--current {
  opacity: 1;
  pointer-events: auto;
}

html.motion-ready .slide__inner,
html.motion-ready .slide__copy {
  width: 100%;
  height: 100%;
  min-height: 0;
  will-change: transform;
}

html.motion-ready .static-note {
  display: none;
}

html.motion-ready .scene-nav {
  position: fixed;
  right: var(--gutter);
  bottom: clamp(4.75rem, 9vh, 7rem);
  z-index: 80;
  display: grid;
  gap: 0.35rem;
}

.scene-nav__link {
  position: relative;
  display: grid;
  grid-template-columns: 1.5rem auto;
  gap: 0.75rem;
  align-items: center;
  min-height: 2.25rem;
  color: var(--ink-faint);
  font-size: 0.63rem;
  letter-spacing: 0.13em;
  transition: color 180ms ease;
}

.scene-nav__link::before {
  content: "";
  position: absolute;
  right: calc(100% + 0.55rem);
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 500ms ease;
}

.scene-nav__link--current {
  color: var(--ink);
}

.scene-nav__link--current::before {
  transform: scaleX(1);
}

html.motion-ready .scene-controls {
  position: fixed;
  right: var(--gutter);
  top: 50%;
  z-index: 80;
  display: grid;
  gap: 0.45rem;
  transform: translateY(-50%);
}

.scene-controls button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(5, 8, 6, 0.32);
  color: var(--ink);
  cursor: pointer;
  backdrop-filter: blur(0.35rem);
}

html.motion-ready .scene-hint {
  position: fixed;
  left: 50%;
  bottom: 1.45rem;
  z-index: 70;
  display: block;
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  transform: translateX(-50%);
}

.header-actions a:hover,
.brand:hover,
.scene-nav__link:hover,
.entry-ai:hover,
.button-secondary:hover {
  color: var(--jade-bright);
}

.button-primary:hover {
  background: #e1ece7;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--jade-bright);
  outline-offset: 4px;
}

@media (max-width: 767px) {
  .site-header {
    min-height: 4.25rem;
  }

  .brand-tag,
  .header-actions > a:first-child {
    display: none;
  }

  .header-entry {
    padding-inline: 0.8rem;
    font-size: 0.68rem;
  }

  .slide__veil {
    background:
      linear-gradient(0deg, rgba(3, 5, 4, 0.86) 0%, rgba(3, 5, 4, 0.48) 58%, rgba(3, 5, 4, 0.18) 100%),
      linear-gradient(90deg, rgba(3, 5, 4, 0.44), transparent 84%);
  }

  .slide__copy {
    padding-top: 6rem;
    padding-right: 3.35rem;
    padding-bottom: max(3.5rem, env(safe-area-inset-bottom));
  }

  .slide h1 {
    max-width: none;
    font-size: clamp(1.8rem, 9vw, 3.2rem);
  }

  .slide h2 {
    max-width: 12ch;
    font-size: clamp(2.7rem, 11.4vw, 3.8rem);
  }

  .lead {
    max-width: 23rem;
    font-size: 0.88rem;
  }

  .hero-kicker {
    font-size: 0.34em;
  }

  .hero-device {
    max-width: 18rem;
    font-size: 0.74rem;
    line-height: 1.65;
  }

  .hero-name {
    font-size: 2rem;
  }

  .body-copy {
    gap: 0.55rem;
    max-width: 24rem;
    font-size: clamp(0.7rem, 3.05vw, 0.8rem);
    line-height: 1.72;
  }

  .slide__copy--system h2,
  .slide__copy--how h2,
  .slide__copy--features h2 {
    font-size: clamp(2.2rem, 10vw, 3.15rem);
  }

  .chapter-note {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    max-width: 23rem;
  }

  .slide--coast .slide__img-inner img { object-position: 62% center; }
  .slide--obsidian .slide__img-inner img { object-position: 66% center; }
  .slide--room .slide__img-inner img { object-position: 62% center; }
  .slide--device .slide__img-inner img { object-position: 65% center; }

  html.motion-ready .scene-nav {
    right: 1.05rem;
    bottom: 4.15rem;
  }

  .scene-nav__link {
    grid-template-columns: 1.5rem;
    gap: 0;
  }

  .scene-nav__label,
  .scene-nav__link::before,
  html.motion-ready .scene-controls {
    display: none;
  }

  html.motion-ready .scene-hint {
    bottom: max(1.15rem, env(safe-area-inset-bottom));
  }

  .entry-actions {
    display: grid;
    width: min(100%, 23rem);
  }

  .button {
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 900px) {
  .slide__copy {
    padding-right: 5rem;
  }

  html.motion-ready .scene-nav {
    right: 1.35rem;
  }

  .scene-nav__link {
    grid-template-columns: 1.5rem;
    gap: 0;
  }

  .scene-nav__label,
  .scene-nav__link::before {
    display: none;
  }
}

@media (max-width: 359px) {
  .brand-name {
    font-size: 1.08rem;
  }

  .slide h2 {
    font-size: 2.4rem;
  }

  .chapter-note {
    margin-top: 1rem;
  }
}

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

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