:root {
  color-scheme: dark;
  --bg: #08090a;
  --ink: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.64);
  --quiet: rgba(244, 241, 234, 0.38);
  --line: rgba(244, 241, 234, 0.14);
  --panel: rgba(255, 255, 255, 0.065);
  --accent: #b8ff5d;
  --blue: #7fb0ff;
  --violet: #b8a4ff;
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 4%, rgba(117, 139, 255, 0.24), transparent 32rem),
    radial-gradient(circle at 82% 12%, rgba(184, 255, 93, 0.13), transparent 28rem),
    linear-gradient(180deg, #0d0e10 0%, var(--bg) 48%, #050505 100%);
  color: var(--ink);
}

body.island-page {
  color-scheme: light;
  --bg: #f7f3ea;
  --ink: #14171c;
  --muted: rgba(20, 23, 28, 0.66);
  --quiet: rgba(20, 23, 28, 0.42);
  --line: rgba(20, 23, 28, 0.12);
  --panel: rgba(255, 255, 255, 0.68);
  --accent: #176bff;
  --blue: #4a90ff;
  --violet: #8f7aff;
  background:
    radial-gradient(circle at 82% 10%, rgba(255, 206, 88, 0.46), transparent 24rem),
    radial-gradient(circle at 18% 24%, rgba(113, 180, 255, 0.42), transparent 30rem),
    linear-gradient(180deg, #fbf8ef 0%, #edf5ff 48%, #fff8e8 100%);
  color: var(--ink);
}

body.island-page .grain {
  opacity: 0.08;
  mix-blend-mode: multiply;
}

body.island-page .cursor-light {
  background: radial-gradient(circle, rgba(23, 107, 255, 0.2), transparent 68%);
}

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

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.13;
  background-image:
    linear-gradient(transparent 0 50%, rgba(255, 255, 255, 0.04) 50%),
    linear-gradient(90deg, transparent 0 50%, rgba(255, 255, 255, 0.03) 50%);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

.cursor-light {
  position: fixed;
  left: var(--mx, 50vw);
  top: var(--my, 30vh);
  z-index: 0;
  width: 34rem;
  height: 34rem;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(137, 168, 255, 0.16), transparent 66%);
  transform: translate(-50%, -50%);
  transition: opacity 220ms ease;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 56px);
  color: rgba(244, 241, 234, 0.86);
  backdrop-filter: blur(18px);
}

body.island-page .site-nav {
  color: rgba(20, 23, 28, 0.84);
  background: rgba(251, 248, 239, 0.62);
  border-bottom: 1px solid rgba(20, 23, 28, 0.06);
}

.brand-mark,
.site-nav nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  letter-spacing: 0;
}

.brand-mark span:first-child {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
}

.site-nav nav a {
  color: var(--muted);
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.site-nav nav a:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

html[lang="zh-Hans"] .eyebrow {
  letter-spacing: 0.08em;
  text-transform: none;
}

.home-hero {
  position: relative;
  display: grid;
  min-height: 72svh;
  place-items: center;
  padding: 138px clamp(20px, 6vw, 80px) 64px;
  text-align: center;
}

.home-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 1050px;
  margin: 0;
  font-size: clamp(58px, 11vw, 154px);
  font-weight: 760;
  line-height: 0.88;
  letter-spacing: 0;
}

.home-intro {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
}

.home-orbit {
  position: absolute;
  inset: 14vh 12vw auto;
  height: 44vh;
  pointer-events: none;
}

.home-orbit span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(244, 241, 234, 0.1);
  border-radius: 50%;
  transform: rotate(var(--r));
  animation: orbitFloat 12s ease-in-out infinite alternate;
}

.home-orbit span:nth-child(1) {
  --r: -8deg;
}

.home-orbit span:nth-child(2) {
  --r: 8deg;
  animation-delay: -3s;
}

.home-orbit span:nth-child(3) {
  --r: 18deg;
  animation-delay: -6s;
}

.project-index {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 96px;
  border-top: 1px solid var(--line);
}

.project-row {
  display: grid;
  grid-template-columns: 64px minmax(180px, 0.9fr) minmax(240px, 1.4fr) auto;
  gap: 28px;
  align-items: center;
  min-height: 164px;
  border-bottom: 1px solid var(--line);
  transition:
    background 240ms ease,
    padding 240ms ease;
}

.project-row:hover {
  padding-left: 22px;
  background: rgba(255, 255, 255, 0.035);
}

.project-count,
.project-action {
  color: var(--quiet);
  font-size: 13px;
}

.project-name {
  font-size: clamp(34px, 5vw, 66px);
  font-weight: 720;
  letter-spacing: 0;
}

.project-desc {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.35;
}

.island-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1fr);
  gap: clamp(34px, 5.4vw, 78px);
  align-items: center;
  min-height: 96svh;
  padding: 104px clamp(20px, 5vw, 72px) 56px;
}

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

.hero-copy h1 {
  margin: 0;
  font-size: clamp(66px, 7.6vw, 118px);
  font-weight: 790;
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 500px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 760;
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    background 200ms ease;
}

.primary-button {
  background: var(--accent);
  color: white;
  box-shadow: 0 16px 34px rgba(23, 107, 255, 0.26);
}

.primary-button.large {
  min-height: 54px;
  padding-inline: 26px;
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.54);
}

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

.hero-stage {
  position: relative;
  display: grid;
  gap: 24px;
  justify-items: center;
  transform: translateX(10px);
}

.mac-frame {
  position: relative;
  min-height: clamp(420px, 54vw, 680px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 78%, rgba(255, 214, 106, 0.62), transparent 18rem),
    radial-gradient(circle at 72% 42%, rgba(113, 180, 255, 0.58), transparent 22rem),
    linear-gradient(145deg, #fdf7e9 0%, #e8f4ff 48%, #fffdfa 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 44px 100px rgba(49, 74, 118, 0.18);
}

.mac-frame.has-video {
  aspect-ratio: 2.35;
  min-height: 0;
  border-color: rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(180deg, rgba(13, 18, 26, 0.04), rgba(13, 18, 26, 0.08)),
    url("assets/media/arige-island-hero-music-poster.jpg") center top / cover,
    #0f141a;
  box-shadow:
    0 44px 100px rgba(28, 52, 86, 0.24),
    0 14px 34px rgba(16, 23, 32, 0.12);
  animation: heroVideoFloat 7s ease-in-out infinite alternate;
}

.mac-frame.hero-recording {
  width: min(100%, 640px);
  max-height: none;
  aspect-ratio: 1.58;
  border-radius: 30px;
}

.mac-frame.hero-animation {
  width: min(100%, 640px);
  min-height: 0;
  aspect-ratio: 1.58;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.72), transparent 14rem),
    linear-gradient(180deg, rgba(229, 243, 255, 0.82), rgba(247, 239, 221, 0.88) 62%, rgba(236, 244, 255, 0.96)),
    #edf6ff;
  box-shadow:
    0 44px 100px rgba(28, 52, 86, 0.2),
    0 14px 34px rgba(16, 23, 32, 0.1);
  animation: heroVideoFloat 7s ease-in-out infinite alternate;
}

.mac-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.38), transparent 34%),
    linear-gradient(180deg, transparent 65%, rgba(255, 255, 255, 0.58));
  pointer-events: none;
}

.mac-frame::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: min(46%, 330px);
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 18px 48px rgba(40, 70, 110, 0.12);
  transform: translateX(-50%);
}

.mac-frame.has-video::before {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.22), transparent 28%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.2), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%);
}

.mac-frame.has-video::after {
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  height: 24%;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, transparent, rgba(6, 10, 16, 0.18));
  box-shadow: none;
  transform: none;
  z-index: 3;
  pointer-events: none;
}

.mac-frame.hero-animation::before {
  z-index: 7;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.36), transparent 30%),
    radial-gradient(circle at 50% 4%, rgba(255, 255, 255, 0.24), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%);
}

.mac-frame.hero-animation::after {
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  height: 32%;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.58)),
    linear-gradient(180deg, transparent, rgba(51, 77, 106, 0.09));
  box-shadow: none;
  transform: none;
  z-index: 6;
  pointer-events: none;
}

.screen-glow {
  position: absolute;
  left: 50%;
  top: -8px;
  width: 82%;
  height: 28%;
  border-radius: 50%;
  background: rgba(255, 201, 73, 0.36);
  filter: blur(70px);
  transform: translateX(-50%);
}

.has-video .screen-glow {
  z-index: 1;
  background: rgba(80, 156, 255, 0.24);
}

.hero-animation .screen-glow {
  z-index: 1;
  background: rgba(54, 124, 255, 0.2);
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background: url("assets/media/arige-island-hero-music-poster.jpg") center top / cover;
  transform: scale(2.42);
  transform-origin: 50% 2%;
}

.video-vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 20%, transparent 58%, rgba(4, 8, 13, 0.13) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 18%);
  pointer-events: none;
}

.video-scanline {
  position: absolute;
  inset: 0;
  z-index: 5;
  opacity: 0.12;
  background-image: linear-gradient(transparent 0 50%, rgba(255, 255, 255, 0.38) 50%);
  background-size: 100% 4px;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero-wallpaper {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-wallpaper span {
  position: absolute;
  left: 50%;
  bottom: -10%;
  width: 88%;
  height: 46%;
  border-radius: 48% 52% 0 0;
  background:
    linear-gradient(145deg, rgba(101, 132, 89, 0.98), rgba(204, 179, 118, 0.92) 56%, rgba(131, 142, 114, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 -24px 80px rgba(83, 119, 122, 0.18);
  transform: translateX(-50%) rotate(-3deg);
}

.hero-wallpaper span:nth-child(2) {
  left: 20%;
  bottom: -18%;
  width: 58%;
  height: 36%;
  opacity: 0.82;
  background: linear-gradient(145deg, rgba(72, 106, 86, 0.92), rgba(190, 152, 96, 0.84));
  transform: rotate(8deg);
}

.hero-wallpaper span:nth-child(3) {
  left: auto;
  right: -16%;
  bottom: -22%;
  width: 54%;
  height: 42%;
  opacity: 0.7;
  background: linear-gradient(145deg, rgba(214, 189, 124, 0.88), rgba(96, 125, 112, 0.86));
  transform: rotate(-10deg);
}

.desktop-strip {
  position: absolute;
  z-index: 8;
  left: 32px;
  top: 28px;
  display: flex;
  gap: 8px;
  opacity: 0.72;
}

.desktop-strip span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(20, 23, 28, 0.18);
}

.notch-demo {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 9;
  width: min(78%, 640px);
  min-height: 76px;
  color: white;
  border-radius: 0 0 38px 38px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent 42%),
    #020202;
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.14),
    0 28px 70px rgba(20, 23, 28, 0.34);
  transform: translateX(-50%);
}

.notch-demo.is-hero {
  transform-origin: top center;
  animation: heroNotch 8.8s cubic-bezier(0.19, 1, 0.22, 1) infinite;
}

.notch-topline {
  position: absolute;
  left: 28%;
  right: 28%;
  top: 11px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.now-playing-panel,
.system-mini {
  position: absolute;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
}

.now-playing-panel {
  top: 26px;
  gap: 14px;
  opacity: 0;
  animation: panelIn 5.6s ease infinite;
}

.hero-scene {
  position: absolute;
  inset: 28px 24px 22px;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
}

.hero-scene-music {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: heroSceneMusic 8.8s ease infinite;
}

.hero-scene-system {
  animation: heroSceneSystem 8.8s ease infinite;
}

.hero-scene-search {
  display: block;
  animation: heroSceneSearch 8.8s ease infinite;
}

.hero-scene-shelf {
  animation: heroSceneShelf 8.8s ease infinite;
}

.is-hero .now-playing-panel,
.is-hero .system-mini {
  position: static;
  width: 100%;
  animation: none;
  opacity: 1;
}

.now-playing-panel span,
.feature-view span,
.feature-view small,
.hero-scene span,
.hero-scene small {
  display: block;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.now-playing-panel strong,
.feature-view strong,
.hero-scene strong {
  display: block;
  margin-top: 3px;
  color: white;
  font-size: 15px;
}

.album-art {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 9px;
  background:
    radial-gradient(circle at 65% 28%, #f9f1dc, transparent 24%),
    linear-gradient(135deg, var(--blue), var(--violet) 58%, #15151a);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
}

.album-art.large {
  width: 70px;
  height: 70px;
  border-radius: 16px;
}

.audio-bars {
  display: flex;
  gap: 4px;
  align-items: end;
  margin-left: auto;
}

.audio-bars i {
  display: block;
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent);
  animation: bars 840ms ease-in-out infinite alternate;
}

.audio-bars i:nth-child(2) {
  animation-delay: -220ms;
}

.audio-bars i:nth-child(3) {
  animation-delay: -420ms;
}

.audio-bars i:nth-child(4) {
  animation-delay: -120ms;
}

.system-mini {
  bottom: 22px;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  animation: systemIn 5.6s ease infinite;
}

.system-mini span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.hero-search-line {
  position: relative;
  padding: 13px 40px 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  color: white;
  font-size: 15px;
  font-weight: 720;
  background: rgba(255, 255, 255, 0.07);
}

.hero-search-line::after {
  content: "";
  position: absolute;
  right: 17px;
  top: 50%;
  width: 6px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent);
  transform: translateY(-50%);
  animation: caretBlink 900ms steps(2, end) infinite;
}

.hero-scene-search ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.hero-scene-search li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.055);
}

.hero-scene-search li span {
  min-width: 42px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.08em;
}

.shelf-pop {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

.shelf-pop b {
  display: grid;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  color: #ffe28f;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.07);
}

.shelf-pop span {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  text-align: center;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.hero-meta span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.hero-dock {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 8;
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 18px 48px rgba(40, 70, 110, 0.12);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.hero-dock span {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(23, 107, 255, 0.88), rgba(143, 122, 255, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.hero-dock span:nth-child(2) {
  background: linear-gradient(135deg, #ffcf6b, #ff7a59);
}

.hero-dock span:nth-child(3) {
  background: linear-gradient(135deg, #69d58a, #36a6ff);
}

.hero-dock span:nth-child(4) {
  background: linear-gradient(135deg, #fff1b8, #8f7aff);
}

.manifesto {
  display: grid;
  min-height: 58svh;
  place-items: center;
  padding: 72px clamp(20px, 8vw, 112px);
}

.manifesto p {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(42px, 7vw, 104px);
  font-weight: 720;
  line-height: 0.98;
  letter-spacing: 0;
  text-align: center;
}

.story-section {
  padding: 82px clamp(20px, 5vw, 72px) 128px;
}

.story-copy {
  max-width: 820px;
  margin-bottom: 54px;
}

.story-copy h2,
.detail-band h2,
.download-copy h2 {
  margin: 0;
  font-size: clamp(46px, 7vw, 94px);
  font-weight: 760;
  line-height: 0.94;
  letter-spacing: 0;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.08fr) minmax(300px, 0.92fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.sticky-device {
  position: sticky;
  top: 96px;
}

.device-shell {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 32px 82px rgba(49, 74, 118, 0.16);
}

.device-screen {
  position: relative;
  height: min(58vw, 620px);
  min-height: 430px;
  background:
    radial-gradient(circle at 50% -8%, rgba(255, 201, 73, 0.32), transparent 34%),
    radial-gradient(circle at 60% 58%, rgba(127, 176, 255, 0.28), transparent 34rem),
    #f4f8ff;
}

.story-notch {
  width: min(86%, 620px);
  min-height: 230px;
  transition:
    min-height 520ms cubic-bezier(0.19, 1, 0.22, 1),
    width 520ms cubic-bezier(0.19, 1, 0.22, 1);
}

.feature-stage[data-active-feature="system"] .story-notch {
  min-height: 260px;
}

.feature-stage[data-active-feature="search"] .story-notch {
  min-height: 304px;
}

.feature-stage[data-active-feature="shelf"] .story-notch {
  min-height: 230px;
}

.feature-view {
  position: absolute;
  inset: 40px 28px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition:
    opacity 360ms ease,
    transform 520ms cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
}

.feature-view.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.feature-video-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 26px;
  background:
    url("assets/media/arige-island-feature-music-poster.jpg") center top / cover,
    #10151c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 30px 84px rgba(22, 42, 72, 0.16);
}

.feature-video-frame .feature-view {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transform: scale(1.015);
  transition:
    opacity 420ms ease,
    transform 700ms cubic-bezier(0.19, 1, 0.22, 1);
}

.feature-video-frame .feature-view.is-active {
  opacity: 1;
  transform: scale(1);
}

.video-feature-stage {
  position: absolute;
  inset: 0;
}

.progress-track {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-track i {
  display: block;
  width: 48%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.feature-system {
  justify-content: center;
}

.gauge {
  display: grid;
  width: 122px;
  height: 122px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 66%),
    conic-gradient(from 220deg, var(--accent), rgba(127, 176, 255, 0.38), transparent 64%);
}

.gauge strong {
  font-size: 24px;
}

.feature-search {
  display: block;
}

.search-line {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

.feature-search ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.feature-search li {
  padding: 12px 14px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.045);
}

.feature-shelf {
  justify-content: center;
  flex-wrap: wrap;
}

.shelf-item {
  display: grid;
  width: 78px;
  height: 84px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  color: var(--accent);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
}

.feature-shelf span {
  width: 100%;
  text-align: center;
}

.feature-list {
  display: grid;
  gap: 18px;
}

.feature-step {
  padding: 30px 0 36px;
  border-top: 1px solid var(--line);
  opacity: 0.46;
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.feature-step.is-active {
  opacity: 1;
  transform: translateX(10px);
}

.feature-step span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 780;
}

.feature-step h3 {
  margin: 16px 0 10px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

.feature-step p,
.download-copy > p,
.security-note {
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.detail-band {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.8fr);
  gap: 48px;
  align-items: end;
  padding: 110px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

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

.detail-list p {
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 18px;
}

.download-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: center;
  padding: 120px clamp(20px, 5vw, 72px) 150px;
}

.download-visual {
  display: grid;
  place-items: center;
}

.app-icon-render {
  position: relative;
  display: grid;
  width: min(76vw, 460px);
  aspect-ratio: 1;
  place-items: center;
  overflow: visible;
  animation: iconFloat 5.4s ease-in-out infinite alternate;
}

.app-icon-render::before {
  content: "";
  position: absolute;
  inset: 12% 10% 8%;
  border-radius: 30%;
  background: rgba(76, 110, 205, 0.2);
  filter: blur(38px);
  pointer-events: none;
}

.app-icon-render img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 34px 70px rgba(72, 102, 192, 0.22));
}

.download-copy h2 {
  margin-bottom: 22px;
}

.release-specs {
  display: grid;
  gap: 0;
  margin: 32px 0 24px;
  border-top: 1px solid var(--line);
}

.release-specs div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.release-specs dt {
  color: var(--quiet);
  font-size: 13px;
}

.release-specs dd {
  min-width: 0;
  margin: 0;
  color: rgba(20, 23, 28, 0.82);
  font-size: 14px;
}

.release-specs .hash-row dd {
  overflow-wrap: anywhere;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  line-height: 1.55;
}

.security-note {
  margin-top: 20px;
  color: var(--quiet);
  font-size: 14px;
}

.guide-page {
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 206, 88, 0.34), transparent 24rem),
    radial-gradient(circle at 12% 16%, rgba(113, 180, 255, 0.28), transparent 28rem),
    linear-gradient(180deg, #fbf8ef 0%, #f3f7fb 48%, #fff9ed 100%);
}

.guide-hero {
  min-height: 78svh;
  padding: 132px clamp(20px, 7vw, 104px) 64px;
}

.guide-hero h1 {
  max-width: 980px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(44px, 6vw, 82px);
  font-weight: 780;
  line-height: 1.02;
  letter-spacing: 0;
}

.guide-hero h1 span {
  display: block;
}

.guide-hero > p:not(.eyebrow) {
  max-width: 720px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.guide-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 980px;
  margin: 54px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.guide-summary div {
  padding: 18px 22px 20px 0;
}

.guide-summary dt {
  color: var(--quiet);
  font-size: 12px;
}

.guide-summary dd {
  margin: 8px 0 0;
  color: rgba(20, 23, 28, 0.84);
  font-size: 15px;
  font-weight: 680;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(30px, 6vw, 90px);
  padding: 24px clamp(20px, 7vw, 104px) 130px;
}

.guide-toc {
  position: sticky;
  top: 112px;
  align-self: start;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.guide-toc a {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.guide-toc a:hover {
  color: var(--ink);
  transform: translateX(4px);
}

.guide-content {
  display: grid;
  gap: 28px;
}

.guide-section {
  padding: clamp(30px, 5vw, 58px) 0;
  border-top: 1px solid var(--line);
}

.guide-section:first-child {
  border-top: 0;
}

.guide-section h2 {
  max-width: 820px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0;
}

.guide-section > p:not(.eyebrow),
.guide-note,
.guide-section details p {
  max-width: 780px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.guide-section > p:not(.eyebrow) {
  margin: 22px 0 0;
}

.guide-highlight {
  margin-inline: clamp(-22px, -2.4vw, -12px);
  padding-inline: clamp(22px, 2.4vw, 34px);
  border: 1px solid rgba(23, 107, 255, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 8%, rgba(23, 107, 255, 0.12), transparent 18rem),
    rgba(255, 255, 255, 0.48);
  box-shadow: 0 24px 70px rgba(57, 86, 128, 0.1);
}

.guide-checklist,
.guide-steps {
  display: grid;
  gap: 14px;
  max-width: 820px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.guide-checklist li,
.guide-steps li {
  position: relative;
  padding: 18px 20px 18px 46px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: rgba(20, 23, 28, 0.76);
  font-size: 16px;
  line-height: 1.65;
  background: rgba(255, 255, 255, 0.42);
}

.guide-checklist li::before,
.guide-steps li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 28px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(23, 107, 255, 0.1);
}

.guide-steps strong {
  color: var(--ink);
}

.guide-note {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: rgba(23, 107, 255, 0.06);
}

.permission-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.permission-list div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
}

.permission-list h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: 0;
}

.permission-list p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.guide-section details {
  max-width: 820px;
  border-top: 1px solid var(--line);
}

.guide-section details:first-of-type {
  margin-top: 28px;
}

.guide-section summary {
  cursor: pointer;
  padding: 20px 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 720;
}

.guide-section details p {
  margin: 0 0 22px;
}

@keyframes heroNotch {
  0%,
  28%,
  100% {
    width: min(70%, 560px);
    min-height: 156px;
    border-radius: 0 0 38px 38px;
  }
  32%,
  66% {
    width: 184px;
    min-height: 44px;
    border-radius: 0 0 28px 28px;
  }
  38%,
  62% {
    width: min(78%, 620px);
    min-height: 230px;
    border-radius: 0 0 38px 38px;
  }
  72%,
  94% {
    width: min(72%, 580px);
    min-height: 132px;
    border-radius: 0 0 34px 34px;
  }
}

@keyframes heroSceneMusic {
  0%,
  31%,
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  34%,
  96% {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

@keyframes heroSceneSystem {
  0%,
  66%,
  97%,
  100% {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  72%,
  94% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroSceneSearch {
  0%,
  34%,
  66%,
  100% {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  38%,
  62% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroSceneShelf {
  0%,
  60%,
  89%,
  100% {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  65%,
  85% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes caretBlink {
  50% {
    opacity: 0;
  }
}

@keyframes panelIn {
  0%,
  18%,
  86%,
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
  30%,
  62% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes systemIn {
  0%,
  48%,
  100% {
    opacity: 0;
    transform: translateY(8px);
  }
  58%,
  76% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroVideoFloat {
  from {
    transform: translateY(0) rotate(-0.25deg);
  }
  to {
    transform: translateY(-10px) rotate(0.25deg);
  }
}

@keyframes bars {
  from {
    height: 9px;
  }
  to {
    height: 25px;
  }
}

@keyframes orbitFloat {
  from {
    transform: rotate(var(--r)) scale(0.98);
  }
  to {
    transform: rotate(calc(var(--r) * -1)) scale(1.06);
  }
}

@keyframes iconFloat {
  from {
    transform: translateY(0) rotate(-1deg);
  }
  to {
    transform: translateY(-18px) rotate(1deg);
  }
}

@media (max-width: 900px) {
  .site-nav {
    padding: 16px 18px;
  }

  .site-nav nav {
    gap: 12px;
  }

  .brand-mark span:last-child {
    display: none;
  }

  .project-row,
  .island-hero,
  .story-grid,
  .detail-band,
  .download-section {
    grid-template-columns: 1fr;
  }

  .project-row {
    gap: 10px;
    min-height: 210px;
    padding: 24px 0;
  }

  .project-action {
    justify-self: start;
  }

  .island-hero {
    padding-top: 100px;
  }

  .hero-copy h1 {
    font-size: clamp(54px, 15.5vw, 72px);
  }

  .hero-stage {
    transform: none;
  }

  .mac-frame {
    min-height: 430px;
  }

  .mac-frame.has-video {
    min-height: 0;
    aspect-ratio: 1.55;
  }

  .mac-frame.hero-recording {
    width: 100%;
    aspect-ratio: 1.28;
    border-radius: 24px;
  }

  .mac-frame.hero-animation {
    width: 100%;
    aspect-ratio: 1.28;
    border-radius: 24px;
  }

  .hero-video {
    transform: scale(2.58);
    transform-origin: 50% 0;
  }

  .notch-demo.is-hero {
    width: min(84%, 620px);
  }

  .hero-scene {
    inset: 24px 18px 18px;
  }

  .album-art.large {
    width: 54px;
    height: 54px;
    border-radius: 13px;
  }

  .system-mini {
    gap: 8px;
    flex-wrap: wrap;
  }

  .system-mini span {
    padding: 6px 8px;
    font-size: 11px;
  }

  .hero-search-line {
    padding-block: 11px;
    font-size: 14px;
  }

  .hero-scene-search li {
    padding: 8px 9px;
    font-size: 12px;
  }

  .hero-dock {
    bottom: 16px;
    gap: 8px;
    padding: 8px 12px;
  }

  .hero-dock span {
    width: 18px;
    height: 18px;
    border-radius: 7px;
  }

  .video-vignette {
    background:
      radial-gradient(circle at 50% 20%, transparent 66%, rgba(4, 8, 13, 0.08) 100%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 18%);
  }

  .manifesto p {
    text-align: left;
  }

  .detail-band h2 {
    font-size: 34px;
    line-height: 1.05;
  }

  .sticky-device {
    position: relative;
    top: auto;
  }

  .device-screen {
    height: 460px;
  }

  .story-notch {
    width: 92%;
  }

  .feature-system {
    gap: 8px;
  }

  .gauge {
    width: 86px;
    height: 86px;
  }

  .release-specs div {
    grid-template-columns: 92px 1fr;
  }

  .guide-hero {
    min-height: auto;
    padding: 108px 20px 54px;
  }

  .guide-hero h1 {
    font-size: clamp(32px, 9vw, 42px);
    line-height: 1.08;
  }

  .guide-summary,
  .guide-layout,
  .permission-list {
    grid-template-columns: 1fr;
  }

  .guide-layout {
    padding: 0 20px 88px;
  }

  .guide-toc {
    position: relative;
    top: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }

  .guide-section h2 {
    font-size: clamp(31px, 9vw, 42px);
  }

  .guide-highlight {
    margin-inline: 0;
    border-radius: 20px;
  }

  .guide-checklist li,
  .guide-steps li {
    padding: 16px 16px 16px 40px;
  }
}

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

  .notch-demo.is-hero {
    width: min(76%, 620px);
    min-height: 162px;
  }

  .hero-scene-music {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
  }

  .hero-scene-system,
  .hero-scene-shelf {
    opacity: 0 !important;
  }
}

/* ── Download Auth Modal ───────────────────────────────────── */
.dl-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: dlFadeIn 180ms ease;
}
.dl-overlay[hidden] { display: none; }

.dl-card {
  position: relative;
  width: min(420px, 100%);
  padding: 36px 32px 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 40px 100px rgba(0,0,0,.32);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  animation: dlSlideUp 240ms cubic-bezier(.19,1,.22,1);
}
body.island-page .dl-card {
  background: rgba(255,255,255,.9);
  box-shadow: 0 32px 80px rgba(24,60,120,.14), 0 2px 0 rgba(255,255,255,.85) inset;
}

.dl-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: background 150ms, color 150ms;
}
.dl-close:hover { background: var(--quiet); color: var(--ink); }

.dl-card h3 {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 740;
  color: var(--ink);
}
.dl-card .eyebrow { margin: 0 0 10px; }
.dl-sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.dl-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 15px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 170ms, box-shadow 170ms;
}
.dl-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.dl-input-code {
  letter-spacing: .26em;
  font-size: 24px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  text-align: center;
}

.dl-err {
  margin: 0 0 8px;
  color: #e05555;
  font-size: 13px;
  min-height: 18px;
}
.dl-err:empty { margin: 0; }

.dl-btn-full {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.dl-link-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 6px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  transition: color 150ms;
}
.dl-link-btn:hover { color: var(--ink); }

.dl-spinner-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(4px);
}
.dl-spinner-wrap[hidden] { display: none; }
body.island-page .dl-spinner-wrap {
  background: color-mix(in srgb, #f7f3ea 76%, transparent);
}

.dl-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: dlSpin 600ms linear infinite;
}

@keyframes dlFadeIn  { from { opacity: 0 } to { opacity: 1 } }
@keyframes dlSlideUp { from { opacity: 0; transform: translateY(16px) scale(.97) } to { opacity: 1; transform: none } }
@keyframes dlSpin    { to { transform: rotate(360deg) } }
