/* Chika — A Little Universe, Made for One Person */
:root {
  color-scheme: light;
  --max-w: 1760px;
  --white: #ffffff;
  --paper: #fff5f8;
  --paper-soft: #fff9fb;
  --card: #ffffff;
  --ink: #2b1d28;
  --ink-soft: #4a3342;
  --ink-muted: #5e4b58;

  /* Pink family */
  --sakura: #f8bbd0;
  --sakura-soft: #fde8f0;
  --rose: #e7548f;
  --rose-deep: #c43b74;
  --rose-hover: #d63d7b;
  --rose-ink: #b32e64;

  /* Glacier Blue & Bright Cyan family */
  --glacier: #79dceb;
  --cyan: #00dceb;
  --cyan-soft: #e6fbfe;
  --cyan-ink: #076e7d;

  /* Subtle Gold / Lemon accents */
  --gold-champagne: #f7dfa5;
  --gold-light: #ffe08a;
  --gold-sunshine: #ffd54f;
  --gold-bright: #ffd700;
  --gold-shimmer: #ffdf70;
  --gold-lemon: #ffeb70;
  --gold-ink: #7a5900;

  --line: rgba(248, 187, 208, 0.72);
  --line-cyan: rgba(121, 220, 235, 0.65);
  --line-gold: rgba(247, 223, 165, 0.85);
  --shadow: 0 20px 54px rgba(231, 84, 143, 0.08), 0 8px 24px rgba(121, 220, 235, 0.08);
  --shadow-soft: 0 10px 30px rgba(231, 84, 143, 0.06), 0 4px 14px rgba(121, 220, 235, 0.06);
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; scrollbar-gutter: stable; background: var(--white); }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 4%, rgba(248, 187, 208, 0.24), transparent 30rem),
    radial-gradient(circle at 6% 24%, rgba(121, 220, 235, 0.18), transparent 28rem),
    radial-gradient(circle at 86% 62%, rgba(0, 220, 235, 0.08), transparent 26rem),
    linear-gradient(180deg, var(--white) 0%, var(--paper) 45%, var(--white) 100%);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 4px;
}
::selection { color: var(--ink); background: var(--sakura-soft); }
[hidden] { display: none !important; }
.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;
}

/* Ambient Floating Sakura Petals, Light Motes & Stars */
.ambient-field {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.ambient-star {
  position: absolute;
  color: var(--gold-bright);
  opacity: 0.52;
  font-size: 1.05rem;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.48));
  animation: twinkle 4.8s ease-in-out infinite;
}
.ambient-star.s1 { top: 14%; left: 2%; animation-delay: 0s; }
.ambient-star.s2 { top: 26%; right: 2%; font-size: 1.2rem; color: var(--gold-lemon); animation-delay: 1.4s; }
.ambient-star.s3 { top: 58%; left: 1.5%; font-size: 0.95rem; color: var(--cyan); animation-delay: 2.3s; }
.ambient-star.s4 { bottom: 16%; right: 2%; color: var(--gold-sunshine); animation-delay: 0.8s; }

.petal {
  position: absolute;
  top: -8%;
  width: 14px;
  height: 10px;
  border-radius: 75% 25% 70% 30% / 60% 40% 60% 40%;
  background: linear-gradient(135deg, rgba(255, 232, 240, 0.92), rgba(248, 187, 208, 0.78));
  box-shadow: 0 2px 10px rgba(231, 84, 143, 0.16);
  opacity: 0;
  animation: petalDrift var(--petal-dur, 18s) linear infinite;
  animation-delay: var(--petal-delay, 0s);
}
.petal.p1 { left: 9%; --petal-dur: 17s; --petal-delay: -2s; }
.petal.p2 { left: 27%; width: 11px; height: 8px; --petal-dur: 21s; --petal-delay: -9s; }
.petal.p3 { left: 52%; --petal-dur: 19s; --petal-delay: -5s; }
.petal.p4 { left: 74%; width: 12px; height: 9px; --petal-dur: 23s; --petal-delay: -13s; }
.petal.p5 { left: 89%; --petal-dur: 16s; --petal-delay: -7s; }

.light-mote {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 223, 112, 0.92) 0%, rgba(255, 223, 112, 0) 70%);
  animation: moteFloat 9s ease-in-out infinite;
}
.light-mote.m1 { top: 22%; left: 16%; animation-delay: 0s; }
.light-mote.m2 { top: 44%; right: 12%; width: 10px; height: 10px; background: radial-gradient(circle, rgba(121, 220, 235, 0.85) 0%, rgba(121, 220, 235, 0) 70%); animation-delay: -3s; }
.light-mote.m3 { top: 72%; left: 24%; animation-delay: -5.5s; }
.light-mote.m4 { top: 32%; left: 68%; width: 11px; height: 11px; background: radial-gradient(circle, rgba(248, 187, 208, 0.85) 0%, rgba(248, 187, 208, 0) 70%); animation-delay: -2s; }

/* Shared Eyebrows, Dots & Brand */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.15rem;
  color: var(--rose-deep);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
}
.eyebrow:not(:has(.live-dot, .cyan-dot))::before {
  content: "✦";
  display: inline-block;
  color: var(--gold-bright);
  font-size: 1rem;
  animation: starPulse 3.4s ease-in-out infinite;
}
.eyebrow-cyan { color: var(--cyan-ink); }
.live-dot, .cyan-dot {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.live-dot {
  background: var(--rose);
  animation: dotPulseRose 2.6s ease-in-out infinite;
}
.cyan-dot {
  background: var(--cyan);
  animation: dotPulseCyan 2.6s ease-in-out infinite;
}

.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; min-width: 0; }
.sakura-emblem {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--paper), #ffe9f1);
  border: 1px solid var(--sakura);
  flex-shrink: 0;
  animation: sakuraBreathe 4.6s ease-in-out infinite;
  transition: transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 300ms ease;
}
.brand:hover .sakura-emblem {
  transform: rotate(45deg) scale(1.1);
  box-shadow: 0 6px 20px rgba(231, 84, 143, 0.28);
}
.brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.brand-title {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: #2b1d28;
  white-space: nowrap;
}
.brand-divider {
  color: var(--sakura);
  font-weight: 400;
}
.brand-section {
  font-family: var(--serif);
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--rose);
}
.brand-sub {
  color: #7e6274;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

/* Pill Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.2rem;
  padding: 0.78rem 1.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--rose) 0%, #d43f7a 100%);
  box-shadow: 0 10px 24px rgba(231, 84, 143, 0.24);
}
.button-primary span { color: var(--white); font-size: 1.05rem; }
.button-cyan {
  color: var(--cyan-ink);
  border-color: var(--glacier);
  background: linear-gradient(135deg, var(--white) 0%, var(--cyan-soft) 100%);
  box-shadow: 0 8px 20px rgba(0, 220, 235, 0.14);
}
.button-cyan span { color: var(--gold-ink); }
.button-quiet {
  color: var(--ink);
  border-color: var(--sakura);
  background: var(--white);
}
.button:active { transform: translateY(1px); }

/* Decorative Star Divider (── ✦ ──) */
.star-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0.5rem auto;
  max-width: 26rem;
}
.star-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sakura), var(--glacier), transparent);
}
.star-divider i,
.star-divider .star {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--gold-champagne);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--white), #fffbef);
  color: var(--gold-ink);
  font-style: normal;
  font-size: 0.98rem;
  animation: starPulse 3.4s ease-in-out infinite;
}
.star-divider-compact {
  margin: 1.35rem auto 0.6rem;
  max-width: 16rem;
}

/* Topbar Navigation — Pixel-Identical Standard */
.topbar {
  position: sticky;
  top: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 68px;
  margin-top: 20px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(248, 187, 208, 0.72);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 10px 32px rgba(231, 84, 143, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  position: relative;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
  color: #684c5e;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}
.nav-link:hover {
  color: #e7548f;
  background: #fff5f8;
  transform: translateY(-1px);
}
.nav-link.active,
.nav-link.is-active {
  color: #e7548f;
  background: #fff5f8;
  font-weight: 700;
}
.nav-link.active::after,
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 22px;
  height: 2.5px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, #e7548f, #79dceb);
}
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e7548f 0%, #d43f7a 100%);
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(231, 84, 143, 0.28);
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 200ms ease, filter 200ms ease;
}
.nav-pill span { color: #ffffff; }
.nav-pill:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(231, 84, 143, 0.36);
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(248, 187, 208, 0.72);
  background: var(--paper);
  color: var(--rose);
  font-size: 1.15rem;
  cursor: pointer;
}

.home-page {
  position: relative;
  z-index: 1;
  display: flow-root;
  width: calc(100% - 48px);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: min(46rem, calc(100svh - 6rem));
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3.5rem, 6vw, 5rem);
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.6rem, 6.8vw, 6.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.1;
}
.gradient-text {
  color: var(--rose);
  background: linear-gradient(115deg, var(--rose) 10%, #f06fa3 55%, #00b8c9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  margin: 1.6rem 0 0;
  color: #4a3342;
  font-size: clamp(1.1rem, 1.55vw, 1.24rem);
  line-height: 1.88;
}
.personality-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.personality-tags span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.95rem;
  color: var(--rose-ink);
  border: 1px solid var(--sakura);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.94rem;
  font-weight: 600;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.personality-tags span:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(231, 84, 143, 0.14);
}
.personality-tags span.tag-cyan {
  color: var(--cyan-ink);
  border-color: var(--glacier);
  background: var(--cyan-soft);
}
.personality-tags span.tag-gold {
  color: var(--gold-ink);
  border-color: var(--gold-champagne);
  background: #fffbeb;
}
.personality-tags span.tag-gold i { font-style: normal; color: var(--gold-bright); text-shadow: 0 0 1px #b8860b; }

.playline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; min-height: 2rem; margin: 1.25rem 0 -0.4rem; color: #4a3342; font-size: 1.04rem; font-weight: 500; }
.rotating-word { display: inline-block; color: var(--rose-ink); border-bottom: 1.5px dashed var(--rose); font-weight: 700; transition: opacity 180ms ease, transform 180ms ease; }
.rotating-word.is-changing { opacity: 0; transform: translateY(4px); }
.playline-dot { margin-left: -0.35rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.1rem; }
.hero-byline { display: flex; align-items: center; gap: 0.55rem; margin: 1.65rem 0 0; color: #563d4d; font-size: 0.96rem; font-weight: 500; }
.hero-byline span { color: var(--gold-ink); animation: starPulse 3.4s ease-in-out infinite; }

/* Hero Portrait Stage */
.hero-stage { position: relative; isolation: isolate; width: min(100%, 34rem); min-height: 36rem; margin: 0 auto; }
.orbit { position: absolute; z-index: -1; border: 1px solid rgba(231, 84, 143, 0.22); border-radius: 50%; pointer-events: none; }
.orbit-outer { inset: 2% 0 1%; transform: rotate(-17deg); animation: orbitDriftOuter 38s linear infinite; }
.orbit-inner { inset: 10% 0 9% 3%; border-style: dashed; border-color: rgba(0, 220, 235, 0.38); transform: rotate(19deg); animation: orbitDriftInner 48s linear infinite reverse; }
.orbit-outer::before, .orbit-inner::before {
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  content: "";
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 6px rgba(231, 84, 143, 0.14);
}
.orbit-outer::before { top: 17%; right: 9%; }
.orbit-inner::before {
  bottom: 8%;
  left: 19%;
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(0, 220, 235, 0.18);
}
.orbit-star { position: absolute; z-index: 2; color: var(--rose); line-height: 1; animation: twinkle 4s ease-in-out infinite; }
.star-one { top: 7%; left: 3%; font-size: 1.65rem; }
.star-two { right: 1%; bottom: 14%; color: var(--gold-bright); text-shadow: 0 0 10px rgba(255, 215, 0, 0.55); font-size: 1.95rem; animation-delay: -2s; }
.star-three { top: 14%; right: 6%; color: var(--cyan); font-size: 1.3rem; animation-delay: -1s; }

.portrait-card {
  position: absolute;
  top: 2.4rem;
  left: 50%;
  width: min(78%, 23rem);
  padding: 1.05rem;
  border: 1px solid var(--sakura);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  transform: translateX(-50%) rotate(3deg);
  backdrop-filter: blur(14px);
}
.portrait-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.15rem 0.2rem 0.85rem;
  color: #563d4d;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.portrait-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 21px;
  background: linear-gradient(145deg, var(--white), var(--paper));
}
.portrait-wrap::after {
  position: absolute;
  inset: 0;
  content: "";
  box-shadow: inset 0 0 0 1px rgba(231, 84, 143, 0.12);
  border-radius: inherit;
  pointer-events: none;
}
.portrait-wrap img { width: 100%; height: 100%; object-fit: cover; }
.portrait-caption { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1rem 0.25rem 0.15rem; }
.portrait-caption > div { display: flex; align-items: baseline; gap: 0.55rem; }
.portrait-caption strong { font-family: var(--serif); font-size: 1.26rem; letter-spacing: 0.06em; }
.portrait-caption > div > span { color: #563d4d; font-size: 0.94rem; font-weight: 500; }
.mood-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.78rem;
  border: 1px solid var(--glacier);
  border-radius: 999px;
  background: var(--cyan-soft);
  color: var(--cyan-ink);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}
.mood-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: dotPulseCyan 2.4s ease-in-out infinite;
}

.floating-note {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.85rem 1.05rem;
  border: 1px solid var(--sakura);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
  color: #563d4d;
  font-size: 0.92rem;
  line-height: 1.45;
  backdrop-filter: blur(12px);
  animation: float 6s ease-in-out infinite;
}
.floating-note > span {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--gold-ink);
  border: 1px solid var(--gold-champagne);
  border-radius: 11px;
  background: #fffbeb;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.floating-note strong { color: var(--ink); font-size: 0.98rem; font-weight: 700; }
.note-mode { top: 15%; left: -3%; border-color: var(--gold-champagne); }
.note-code { right: -2%; bottom: 11%; border-color: var(--glacier); animation-delay: -3s; }
.note-code > span {
  color: var(--cyan-ink);
  border-color: var(--glacier);
  background: var(--cyan-soft);
  font-size: 0.94rem;
  font-weight: 700;
}

/* Thought Ribbon */
.thought-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 1rem 1.5rem;
  width: 100%;
  margin: 0;
  padding: 1.2rem 2rem;
  color: var(--rose-ink);
  border: 1px solid var(--sakura);
  border-radius: 22px;
  background: linear-gradient(90deg, var(--paper) 0%, var(--white) 50%, var(--cyan-soft) 100%);
  box-shadow: var(--shadow-soft);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.thought-ribbon i { color: var(--gold-ink); font-style: normal; font-size: 1.05rem; animation: starPulse 3.2s ease-in-out infinite; }

/* Window Showcase & Gallery Preview */
.window-showcase {
  padding: clamp(3.5rem, 6vw, 5.2rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.showcase-frame {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
  padding: clamp(1.25rem, 2.5vw, 2.2rem);
  border: 1px solid var(--gold-champagne);
  border-radius: 32px;
  background: linear-gradient(135deg, var(--white) 0%, var(--paper-soft) 65%, #f5fdff 100%);
  box-shadow: var(--shadow);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 280ms ease, border-color 280ms ease;
}
.showcase-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.45) 48%, rgba(255, 224, 138, 0.18) 52%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 820ms cubic-bezier(0.22, 1, 0.36, 1);
}
.showcase-frame:hover {
  transform: translateY(-4px);
  border-color: var(--glacier);
  box-shadow: 0 26px 60px rgba(231, 84, 143, 0.12), 0 12px 32px rgba(0, 220, 235, 0.15);
}
.showcase-frame:hover::before {
  transform: translateX(130%);
}
.showcase-media {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(121, 220, 235, 0.16);
}
.showcase-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.showcase-frame:hover .showcase-media img {
  transform: scale(1.03);
}
.showcase-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 16px rgba(231, 84, 143, 0.12);
  animation: badgeFloat 4.6s ease-in-out infinite;
}
.badge-top {
  top: 0.9rem;
  left: 0.9rem;
  color: var(--rose-ink);
  border: 1px solid var(--gold-champagne);
}
.badge-top i { font-style: normal; color: var(--gold-ink); animation: starPulse 3.2s ease-in-out infinite; }
.badge-bottom {
  right: 0.9rem;
  bottom: 0.9rem;
  color: var(--cyan-ink);
  border: 1px solid var(--glacier);
  animation-delay: -2.2s;
}
.badge-bottom i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: dotPulseCyan 2.4s ease-in-out infinite;
}

.showcase-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.95rem, 3.2vw, 2.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.32;
}
.cyan-accent {
  color: var(--cyan-ink);
  text-decoration: underline;
  text-decoration-color: var(--glacier);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.18em;
}
.showcase-desc {
  margin: 1rem 0 0;
  color: #4a3342;
  font-size: 1.08rem;
  line-height: 1.85;
}
.mood-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}
.mood-chips span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
}
.chip-pink { color: var(--rose-ink); border: 1px solid var(--sakura); background: var(--paper); }
.chip-cyan { color: var(--cyan-ink); border: 1px solid var(--glacier); background: var(--cyan-soft); }
.chip-gold { color: var(--gold-ink); border: 1px solid var(--gold-champagne); background: #fffbeb; }
.chip-gold i { font-style: normal; color: var(--gold-bright); text-shadow: 0 0 1px #b8860b; }

.palette-strip {
  margin-top: 1.4rem;
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--line-cyan);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}
.palette-label {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--cyan-ink);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.palette-swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.swatch-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.82rem;
  border: 1px solid var(--sakura);
  border-radius: 999px;
  background: var(--white);
  color: #4a3342;
  font-size: 0.92rem;
  font-weight: 600;
}
.swatch-pill.swatch-cyan { border-color: var(--glacier); background: #f3feff; color: var(--cyan-ink); }
.swatch-pill.swatch-gold { border-color: var(--gold-champagne); background: #fffdf4; color: var(--gold-ink); }
.swatch-dot { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.08); }
.sw-white { background: var(--paper); border-color: var(--sakura); }
.sw-sakura { background: var(--sakura); }
.sw-rose { background: var(--rose); }
.sw-glacier { background: var(--glacier); }
.sw-cyan { background: var(--cyan); }
.sw-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold-bright)); }

.showcase-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.55rem; }

/* Self Intro */
.self-intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 8vw, 8rem);
  padding: clamp(4rem, 7vw, 6.2rem) 0;
}
.self-intro-heading { position: relative; align-self: start; }
.self-intro-heading h2, .likes-card h2, .field-guide > h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4vw, 3.55rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.38;
}
.section-number,
.section-index,
.creator-index {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1.6rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(248, 187, 208, 0.65);
  background: rgba(248, 187, 208, 0.25);
  color: var(--rose-deep);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  width: fit-content;
}
.intro-story { padding-top: 1.5rem; }
.intro-lead { margin: 0; color: var(--ink); font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.82; }
.intro-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.intro-columns p,
.self-body p { margin: 0; color: #4a3342; font-size: 1.08rem; line-height: 1.88; }
.intro-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-cyan);
}
.intro-facts > div { display: grid; gap: 0.2rem; align-content: start; }
.intro-facts small,
.profile-facts dt {
  color: var(--rose);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.intro-facts strong,
.profile-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.5;
}

/* About Bento */
.about-section { padding: clamp(4rem, 7vw, 6.2rem) 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 3rem; margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem); }
.section-heading h2, .creator-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 4.4vw, 3.85rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.3;
}
.section-heading > p,
.section-note {
  margin: 0 0 0.4rem;
  color: #563d4d;
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.85;
}
.bento-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.35rem; }
.bento-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.7rem, 3.2vw, 2.75rem);
  border: 1px solid var(--sakura);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: border-color 240ms ease, box-shadow 260ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}
.bento-card h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; line-height: 1.48; }
.card-kicker { margin: 0 0 0.65rem; color: var(--rose-deep); font-size: 0.96rem; font-weight: 700; letter-spacing: 0.08em; }
.kicker-cyan { color: var(--cyan-ink); }
.card-copy,
.bento-card > p { max-width: 36rem; margin: 0.9rem 0 0; color: #4a3342; font-size: 1.08rem; line-height: 1.85; }
.card-icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 2rem;
  color: var(--rose-ink);
  border: 1px solid var(--sakura);
  border-radius: 15px;
  background: var(--paper);
  font-size: 1rem;
  font-weight: 700;
}
.card-icon.soft-blue { color: var(--cyan-ink); border-color: var(--glacier); background: var(--cyan-soft); font-size: 1.5rem; }
.card-icon.soft-rose { margin: 0; }
.build-card {
  grid-column: span 7;
  grid-row: span 2;
  background: linear-gradient(155deg, var(--white) 0%, var(--paper) 100%);
}
.build-card::before {
  position: absolute;
  top: -7rem;
  right: -6rem;
  width: 17rem;
  height: 17rem;
  content: "";
  border: 1px solid rgba(231, 84, 143, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 2.5rem rgba(248, 187, 208, 0.12), 0 0 0 5rem rgba(121, 220, 235, 0.08);
}
.build-card::after,
.trait-card::after,
.companion-card::after,
.role-card::after,
.portal-card::after,
.likes-card::after,
.field-guide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.45) 48%, rgba(255, 224, 138, 0.18) 52%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}
.quote-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.45) 48%, rgba(255, 224, 138, 0.18) 52%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}
.mini-terminal {
  position: relative;
  margin-top: 2.2rem;
  padding: 1.35rem 1.55rem 1.45rem;
  color: var(--ink);
  border: 1px solid var(--glacier);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(121, 220, 235, 0.14);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.98rem;
}
.terminal-top { display: flex; align-items: center; gap: 0.45rem; margin: -0.2rem 0 1.1rem; }
.terminal-top > span { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }
.terminal-top > span:nth-child(2) { background: var(--gold-sunshine); }
.terminal-top > span:nth-child(3) { background: var(--cyan); }
.terminal-top small { margin-left: auto; color: #563d4d; font-size: 0.9rem; font-weight: 600; }
.mini-terminal p { margin: 0.45rem 0; color: #4a3342; font-size: 0.98rem; }
.mini-terminal p span { display: inline-block; width: 1.45rem; color: var(--rose); font-weight: 700; }
.mini-terminal .terminal-done { color: var(--ink); font-weight: 700; }
.mini-terminal .terminal-done span { color: var(--cyan-ink); }

.quote-card {
  grid-column: span 5;
  color: var(--rose-ink);
  border-color: var(--sakura);
  background: linear-gradient(145deg, var(--paper) 0%, var(--white) 100%);
}
.quote-card::after {
  position: absolute;
  right: -4rem;
  bottom: -6rem;
  width: 15rem;
  height: 15rem;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 187, 208, 0.3), transparent 68%);
}
.quote-mark { position: absolute; top: 0.2rem; right: 1.8rem; color: rgba(231, 84, 143, 0.18); font-family: Georgia, serif; font-size: 8rem; line-height: 1; }
.quote-card blockquote { position: relative; margin: 1rem 0 1.5rem; font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.15rem); line-height: 1.7; }
.quote-card > p { margin: 0; color: #4a3342; font-size: 1.06rem; line-height: 1.85; }
.quote-signature { display: block; margin-top: 1.25rem; color: var(--rose-ink); font-family: var(--serif); font-size: 1.04rem; font-weight: 700; }

.trait-card {
  grid-column: span 5;
  border-color: var(--glacier);
  background: linear-gradient(150deg, var(--white) 0%, #f4fdff 100%);
}
.trait-card .card-icon { margin-bottom: 1.4rem; }
.trait-lines { display: flex; gap: 0.45rem; margin-top: 1.6rem; }
.trait-lines span { display: block; width: 3rem; height: 3.5px; border-radius: 4px; background: var(--rose); }
.trait-lines span:nth-child(2) { background: var(--cyan); }
.trait-lines span:nth-child(3) { background: var(--gold-sunshine); }

.companion-card {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1.15fr);
  column-gap: 4rem;
  align-items: center;
  border-color: var(--glacier);
  background: linear-gradient(110deg, var(--cyan-soft) 0%, var(--white) 55%, var(--paper) 100%);
}
.companion-top { grid-column: 1; display: flex; align-items: center; gap: 1rem; margin-bottom: 1.3rem; }
.tiny-label { color: var(--cyan-ink); font-size: 0.96rem; font-weight: 700; letter-spacing: 0.08em; }
.companion-card h3, .companion-card > .card-copy { grid-column: 1; }
.conversation-preview { grid-column: 2; grid-row: 1 / span 3; display: grid; gap: 0.85rem; padding: 1rem; }
.conversation-preview span {
  width: fit-content;
  max-width: 90%;
  padding: 0.95rem 1.28rem;
  border: 1px solid var(--glacier);
  border-radius: 6px 20px 20px 20px;
  background: var(--white);
  color: #4a3342;
  font-size: 1.04rem;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(121, 220, 235, 0.12);
}
.conversation-preview span:last-child {
  justify-self: end;
  color: var(--white);
  border-color: transparent;
  border-radius: 20px 6px 20px 20px;
  background: linear-gradient(135deg, var(--rose) 0%, #dc4380 100%);
  box-shadow: 0 8px 20px rgba(231, 84, 143, 0.2);
}

/* Roles */
.roles-section { padding: 0 0 clamp(4.5rem, 8vw, 6.8rem); }
.role-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem; }
.role-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.85rem;
  border: 1px solid var(--sakura);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease, box-shadow 260ms ease;
}
.role-card:nth-child(2) { background: var(--paper-soft); }
.role-card:nth-child(3) { border-color: var(--glacier); background: #f4fdff; }
.role-card:nth-child(4) { border-color: var(--gold-champagne); background: #fffef9; }
.role-number { position: absolute; top: 1.35rem; right: 1.45rem; color: var(--rose-deep); font-size: 0.94rem; font-weight: 700; letter-spacing: 0.08em; }
.role-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.85rem;
  color: var(--rose-ink);
  border: 1px solid var(--sakura);
  border-radius: 50%;
  background: var(--white);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
}
.role-card:nth-child(3) .role-icon { color: var(--cyan-ink); border-color: var(--glacier); background: var(--cyan-soft); }
.role-card:nth-child(4) .role-icon { color: var(--gold-ink); border-color: var(--gold-champagne); background: #fffbeb; }
.role-card h3 { margin: 0; font-family: var(--serif); font-size: 1.42rem; font-weight: 600; }
.role-card p { flex: 1; margin: 0.85rem 0 1.45rem; color: #4a3342; font-size: 1.06rem; line-height: 1.85; }
.role-note { color: #563d4d; font-size: 0.94rem; font-weight: 700; letter-spacing: 0.08em; }

/* Likes & Field Guide */
.likes-section { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr); gap: 1.35rem; padding-bottom: clamp(4.5rem, 8vw, 6.8rem); }
.likes-card, .field-guide { position: relative; overflow: hidden; padding: clamp(1.85rem, 4vw, 3.4rem); border-radius: 28px; transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), border-color 240ms ease, box-shadow 260ms ease; }
.likes-card {
  isolation: isolate;
  border: 1px solid var(--sakura);
  background: linear-gradient(145deg, var(--white) 0%, var(--paper) 58%, var(--cyan-soft) 100%);
  box-shadow: var(--shadow-soft);
}
.likes-card::before {
  position: absolute;
  z-index: -1;
  right: -8rem;
  bottom: -9rem;
  width: 24rem;
  height: 24rem;
  content: "";
  border: 1px solid rgba(231, 84, 143, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(255, 255, 255, 0.35), 0 0 0 6rem rgba(121, 220, 235, 0.12);
}
.likes-card > p:not(.eyebrow),
.likes-lead { max-width: 34rem; margin: 1.5rem 0 0; color: #4a3342; font-size: 1.08rem; line-height: 1.88; }
.like-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.1rem; }
.like-tags span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.98rem;
  border: 1px solid var(--sakura);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rose-ink);
  font-size: 0.95rem;
  font-weight: 600;
}
.like-tags span.like-cyan {
  border-color: var(--glacier);
  background: rgba(230, 251, 254, 0.94);
  color: var(--cyan-ink);
}
.like-tags span.like-gold {
  border-color: var(--gold-champagne);
  background: #fffbeb;
  color: var(--gold-ink);
}
.like-tags span.like-gold i { font-style: normal; color: var(--gold-bright); text-shadow: 0 0 1px #b8860b; }
.likes-doodle { display: flex; align-items: center; gap: 0.8rem; margin-top: 2.8rem; color: var(--rose); font-size: 1.15rem; }
.likes-doodle i { width: 4.5rem; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--rose), var(--cyan)); transform: rotate(-6deg); }
.likes-doodle span:last-child { color: var(--gold-ink); font-size: 1.35rem; }

.field-guide {
  border: 1px solid var(--glacier);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.field-guide > h2 { font-size: clamp(1.85rem, 3vw, 2.55rem); }
.guide-intro { margin: 0.65rem 0 1.5rem; color: #4a3342; font-size: 1.06rem; }
.field-guide details { border-top: 1px solid var(--line); }
.field-guide summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; font-size: 1.08rem; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.field-guide summary::-webkit-details-marker { display: none; }
.field-guide summary span { color: var(--rose); font-size: 1.2rem; font-weight: 500; transition: transform 180ms ease; }
.field-guide details[open] summary span { transform: rotate(45deg); color: var(--cyan-ink); }
.field-guide details p { margin: -0.2rem 0 1.35rem; color: #4a3342; font-size: 1.06rem; line-height: 1.85; animation: detail-in 240ms ease; }

/* Manifesto */
.manifesto {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: clamp(4.2rem, 8vw, 7rem) 1.5rem;
  color: var(--ink);
  border: 1px solid var(--sakura);
  border-radius: 32px;
  background: linear-gradient(120deg, var(--paper) 0%, var(--white) 50%, var(--cyan-soft) 100%);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.manifesto .eyebrow { justify-content: center; color: var(--rose-deep); }
.manifesto-text { position: relative; margin: 0; font-family: var(--serif); font-size: clamp(2.1rem, 5.2vw, 4.5rem); letter-spacing: -0.03em; line-height: 1.55; }
.manifesto-text span { color: var(--rose); }
.manifesto-bottom { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-top: 2.3rem; color: #4a3342; font-size: 1rem; font-weight: 600; letter-spacing: 0.1em; }
.manifesto-bottom i { color: var(--gold-ink); font-style: normal; animation: starPulse 3.2s ease-in-out infinite; }
.manifesto-orbit { position: absolute; z-index: -1; top: 50%; left: 50%; width: min(85vw, 65rem); aspect-ratio: 2.8; border: 1px solid rgba(231, 84, 143, 0.16); border-radius: 50%; transform: translate(-50%, -50%) rotate(-8deg); }
.manifesto-orbit::before, .manifesto-orbit::after { position: absolute; content: "✦"; color: var(--gold-bright); text-shadow: 0 0 8px rgba(255, 215, 0, 0.4); font-size: 1.35rem; animation: starPulse 3.6s ease-in-out infinite; }
.manifesto-orbit::before { top: 10%; left: 13%; }
.manifesto-orbit::after { right: 9%; bottom: 18%; color: var(--cyan); text-shadow: none; }

/* Creator & Portal Cards */
.creator-section {
  display: grid;
  grid-template-columns: auto 1fr 1.25fr;
  gap: clamp(2rem, 4.5vw, 4.5rem);
  align-items: center;
  padding: clamp(4.5rem, 8vw, 6.8rem) 0;
}
.creator-index {
  align-self: start;
  margin-top: 0;
  white-space: nowrap;
}
.creator-copy > p:last-child { max-width: 32rem; margin: 1.4rem 0 0; color: #4a3342; font-size: 1.1rem; line-height: 1.88; }
.portal-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.portal-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--sakura);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease, box-shadow 260ms ease;
}
.portal-card:nth-child(2), .portal-card:nth-child(3) { border-color: var(--glacier); }
.portal-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 13px;
  font-size: 1.1rem;
}
.icon-pink { color: var(--rose-ink); border: 1px solid var(--sakura); background: var(--paper); }
.icon-cyan { color: var(--cyan-ink); border: 1px solid var(--glacier); background: var(--cyan-soft); }
.portal-card > span:last-child { display: grid; min-width: 0; gap: 0.15rem; }
.portal-card small,
.portal-domain { color: var(--rose-deep); font-size: 0.94rem; font-weight: 700; letter-spacing: 0.06em; }
.portal-card strong { margin-top: 0.1rem; font-family: var(--serif); font-size: 1.18rem; font-weight: 700; color: var(--ink); }
.portal-card em { margin-top: 0.1rem; color: #4a3342; font-size: 0.96rem; font-style: normal; }

/* Footer */
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  min-height: 7.5rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: #4a3342;
  font-size: 0.96rem;
}
.site-footer p { margin: 0; }
.site-footer p:last-child { justify-self: end; }
.site-footer p:last-child span { margin-left: 0.45rem; color: var(--gold-ink); }
.footer-brand { transform: scale(0.92); transform-origin: left center; }

/* Motion */
.motion-ready [data-reveal],
.motion-ready .bento-card,
.motion-ready .role-card,
.motion-ready .portal-card {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 650ms ease var(--reveal-delay, 0ms),
    transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
}
.motion-ready [data-reveal].is-visible,
.motion-ready .bento-card.is-visible,
.motion-ready .role-card.is-visible,
.motion-ready .portal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.motion-ready .hero-stage.is-visible {
  transform: translate3d(var(--parallax-x, 0px), var(--parallax-y, 0px), 0);
  transition: opacity 650ms ease var(--reveal-delay, 0ms), transform 180ms ease-out;
}
@keyframes detail-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* Login Pages */
.login-page {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 21fr) minmax(430px, 19fr);
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--white);
}
.login-topbar {
  grid-column: 1 / -1;
  width: calc(100% - 48px);
  max-width: var(--max-w);
  margin: 20px auto 16px;
}
.login-visual {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 4vw, 4rem);
  overflow: hidden;
  border-top: 1px solid rgba(248, 187, 208, 0.45);
  border-right: 1px solid rgba(248, 187, 208, 0.55);
  background: linear-gradient(145deg, var(--white) 0%, var(--paper) 52%, var(--cyan-soft) 100%);
}
.login-visual::before {
  position: absolute;
  z-index: -1;
  top: 16%;
  right: -12rem;
  width: 30rem;
  height: 30rem;
  content: "";
  border: 1px solid rgba(231, 84, 143, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 3.5rem rgba(248, 187, 208, 0.12), 0 0 0 7rem rgba(121, 220, 235, 0.08);
}
.login-visual::after {
  position: absolute;
  z-index: -1;
  bottom: 10%;
  left: -7rem;
  width: 18rem;
  height: 18rem;
  content: "";
  border-radius: 50%;
  background: rgba(121, 220, 235, 0.18);
  filter: blur(2px);
}
.login-story { margin: auto 0; padding: 2.2rem 0 1.8rem; }
.login-story h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4.8vw, 4.7rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.25;
}
.login-story > p:nth-of-type(2) { margin: 1.35rem 0 0; color: #4a3342; font-size: 1.1rem; line-height: 1.88; }

.login-window-card {
  position: relative;
  overflow: hidden;
  margin-top: 1.85rem;
  max-width: 28rem;
  padding: 0.5rem;
  border: 1px solid var(--gold-champagne);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease, box-shadow 260ms ease;
}
.login-window-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.45) 48%, rgba(255, 224, 138, 0.18) 52%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}
.login-window-card:hover {
  transform: translateY(-4px);
  border-color: var(--glacier);
  box-shadow: 0 16px 36px rgba(121, 220, 235, 0.18);
}
.login-window-card:hover::after {
  transform: translateX(130%);
}
.login-window-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
  border-radius: 16px;
}
.window-tag {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.34rem 0.85rem;
  border: 1px solid var(--glacier);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--cyan-ink);
  font-size: 0.9rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.window-tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: dotPulseCyan 2.4s ease-in-out infinite;
}

.login-profile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(100%, 26rem);
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--sakura);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}
.login-avatar {
  flex: 0 0 auto;
  width: 3.7rem;
  height: 3.7rem;
  overflow: hidden;
  border: 2px solid var(--sakura);
  border-radius: 16px;
  background: var(--white);
  transform: rotate(-4deg);
}
.login-avatar img { width: 100%; height: 100%; object-fit: cover; }
.login-profile > div:nth-child(2) { display: grid; gap: 0.15rem; }
.login-profile strong { font-family: var(--serif); font-size: 1.08rem; font-weight: 700; }
.login-profile > div > span { color: #4a3342; font-size: 0.94rem; }
.profile-spark { margin-left: auto; padding-right: 0.4rem; color: var(--gold-ink); font-size: 1.3rem; animation: twinkle 4s ease-in-out infinite; }
.visual-caption { margin: 1.4rem 0 0; color: #563d4d; font-size: 0.94rem; font-weight: 700; letter-spacing: 0.12em; }
.visual-caption span { color: var(--rose); margin: 0 0.35rem; }

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 38rem);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem);
}
.login-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.7rem, 3vw, 2.6rem);
  border: 1px solid var(--sakura);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.login-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -0.02em; }
.login-heading > p:last-child { margin: 0.6rem 0 0; color: #4a3342; font-size: 1.06rem; }
.login-form { display: grid; gap: 1.25rem; margin-top: 1.9rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.98rem; font-weight: 700; color: var(--ink); }
.input-shell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.45rem;
  padding: 0 1rem;
  border: 1px solid var(--sakura);
  border-radius: 14px;
  background: var(--paper-soft);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.input-shell:focus-within {
  border-color: var(--rose);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(231, 84, 143, 0.14);
}
.input-shell > span { width: 1.1rem; color: #5e4b58; font-size: 0.98rem; text-align: center; }
.input-shell .lock-icon { font-size: 0.72rem; }
.field input { min-width: 0; flex: 1; height: 3.2rem; padding: 0; color: var(--ink); border: 0; outline: 0; background: transparent; font-size: 1.02rem; caret-color: var(--rose); }
.field input::placeholder { color: #8c7a85; }
.field input:focus-visible { outline: 0; }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--ink); }

.remember { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.75rem; align-items: start; margin: 0.2rem 0; cursor: pointer; }
.remember input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.custom-checkbox {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.22rem;
  color: transparent;
  border: 1px solid var(--sakura);
  border-radius: 6px;
  background: var(--white);
  font-size: 0.85rem;
  transition: background 150ms ease, border-color 150ms ease;
}
.remember input:checked + .custom-checkbox { color: var(--white); border-color: var(--rose); background: var(--rose); }
.remember input:focus-visible + .custom-checkbox { outline: 3px solid var(--rose); outline-offset: 3px; }
.remember > span:last-child { display: grid; gap: 0.25rem; }
.remember strong { font-size: 0.98rem; font-weight: 700; color: var(--ink); }
.remember small { color: #4a3342; font-size: 0.92rem; line-height: 1.68; }
.login-button { width: 100%; margin-top: 0.35rem; border: 0; }
.login-footnote { display: flex; justify-content: center; align-items: center; gap: 0.45rem; margin: 0.9rem 0 0; color: #563d4d; font-size: 0.94rem; font-weight: 500; }
.login-footnote span { color: var(--gold-ink); }
.login-manage { margin: 0.65rem 0 0; color: #4a3342; font-size: 0.96rem; text-align: center; }
.login-manage a { display: inline-flex; align-items: center; gap: 0.3rem; min-height: 36px; margin-left: 0.25rem; color: var(--cyan-ink); font-weight: 700; }
.login-manage a:hover { color: var(--rose-ink); text-decoration: underline; text-underline-offset: 0.25em; }
.form-error { margin: 0; padding: 0.78rem 0.95rem; color: var(--rose-ink); border: 1px solid var(--sakura); border-radius: 12px; background: var(--paper); font-size: 0.98rem; font-weight: 600; }
.form-error:empty { display: none; }

/* Devices Page */
.devices-page {
  position: relative;
  z-index: 1;
  display: flow-root;
  width: calc(100% - 48px);
  max-width: var(--max-w);
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 0 4rem;
}
.devices-hero,
.device-list,
.account-actions,
.devices-page .star-divider,
.devices-footer {
  max-width: 1200px;
  margin-inline: auto;
}
.devices-hero { padding: 2.6rem 0 2rem; }
.devices-back { margin-bottom: 1.25rem; }
.devices-back a { display: inline-flex; align-items: center; }
.devices-hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(2.25rem, 5vw, 3.4rem); font-weight: 500; letter-spacing: -0.03em; }
.devices-hero > p:last-child { max-width: 46rem; margin: 1rem 0 0; color: #4a3342; font-size: 1.06rem; line-height: 1.85; }
.device-list { display: grid; gap: 1rem; }
.device {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.15rem;
  align-items: center;
  padding: 1.45rem;
  border: 1px solid var(--sakura);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), border-color 200ms ease, box-shadow 220ms ease;
}
.device.current {
  border-color: var(--rose);
  background: linear-gradient(115deg, var(--white) 0%, var(--paper) 65%, var(--cyan-soft) 100%);
}
.device-symbol {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: var(--rose-ink);
  border: 1px solid var(--sakura);
  border-radius: 14px;
  background: var(--paper);
  font-size: 1.15rem;
}
.device.current .device-symbol { color: var(--cyan-ink); border-color: var(--glacier); background: var(--cyan-soft); }
.device-info { min-width: 0; }
.device-title { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; margin: 0; font-size: 1.1rem; font-weight: 700; }
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.18rem 0.72rem;
  color: var(--cyan-ink);
  border: 1px solid var(--glacier);
  border-radius: 999px;
  background: var(--cyan-soft);
  font-size: 0.9rem;
  font-weight: 700;
}
.status-pill.inactive { color: #5e4b58; border-color: #d9d0d6; background: #f5f3f4; }
.device-state { margin: 0.3rem 0 0.65rem; color: #4a3342; font-size: 0.98rem; font-weight: 500; }
.device-dates { display: flex; flex-wrap: wrap; gap: 0.4rem 1.35rem; margin: 0; color: #4a3342; font-size: 0.94rem; line-height: 1.65; }
.device-dates span { white-space: nowrap; }
.device-dates strong { color: var(--ink); font-weight: 700; }
.device form { margin: 0; }
.secondary-button, .danger-button {
  min-height: 2.75rem;
  padding: 0.58rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, border-color 160ms ease, background 160ms ease, box-shadow 180ms ease;
}
.secondary-button {
  border: 1px solid var(--glacier);
  background: var(--white);
  color: var(--cyan-ink);
}
.secondary-button:hover { border-color: var(--cyan); background: var(--cyan-soft); transform: translateY(-1px); }
.device.inactive .secondary-button { opacity: 0.5; }
.account-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
  padding: 1.65rem;
  border: 1px solid var(--gold-champagne);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.account-actions > div h2 { margin: 0; font-family: var(--serif); font-size: 1.25rem; font-weight: 700; }
.account-actions > div p { margin: 0.35rem 0 0; color: #4a3342; font-size: 0.98rem; }
.account-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.account-buttons form { margin: 0; }
.danger-button {
  color: var(--white);
  border: 1px solid var(--rose);
  background: linear-gradient(135deg, var(--rose) 0%, #d43f7a 100%);
}
.devices-footer { margin-top: 1.2rem; color: #563d4d; font-size: 0.96rem; text-align: center; }

/* Keyframes */
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-9px) rotate(1deg); } }
@keyframes twinkle { 0%, 100% { opacity: 0.5; transform: scale(0.92) rotate(0); } 50% { opacity: 1; transform: scale(1.14) rotate(14deg); } }
@keyframes starPulse {
  0%, 100% { transform: scale(0.92) rotate(0deg); filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.35)); }
  50% { transform: scale(1.12) rotate(15deg); filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.78)); }
}
@keyframes sakuraBreathe {
  0%, 100% { box-shadow: 0 4px 14px rgba(231, 84, 143, 0.16), 0 0 0 0 rgba(248, 187, 208, 0.35); }
  50% { box-shadow: 0 6px 20px rgba(231, 84, 143, 0.28), 0 0 0 5px rgba(248, 187, 208, 0); }
}
@keyframes petalDrift {
  0% { transform: translate3d(0, -10vh, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.7; }
  50% { transform: translate3d(42px, 48vh, 0) rotate(165deg); opacity: 0.58; }
  90% { opacity: 0.35; }
  100% { transform: translate3d(-26px, 108vh, 0) rotate(330deg); opacity: 0; }
}
@keyframes moteFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(0.85); opacity: 0.35; }
  50% { transform: translate3d(14px, -22px, 0) scale(1.3); opacity: 0.9; }
}
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes dotPulseRose {
  0%, 100% { box-shadow: 0 0 0 4px rgba(231, 84, 143, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(231, 84, 143, 0.06); }
}
@keyframes dotPulseCyan {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0, 220, 235, 0.22); }
  50% { box-shadow: 0 0 0 8px rgba(0, 220, 235, 0.06); }
}
@keyframes orbitDriftOuter {
  from { transform: rotate(-17deg); }
  to { transform: rotate(343deg); }
}
@keyframes orbitDriftInner {
  from { transform: rotate(19deg); }
  to { transform: rotate(379deg); }
}

@media (hover: hover) {
  .button:hover { transform: translateY(-2px); }
  .button-primary:hover, .danger-button:hover {
    background: linear-gradient(135deg, var(--rose-hover) 0%, #c8336e 100%);
    box-shadow: 0 14px 28px rgba(231, 84, 143, 0.3);
  }
  .button-cyan:hover { border-color: var(--cyan); box-shadow: 0 12px 24px rgba(0, 220, 235, 0.22); }
  .button-quiet:hover { border-color: var(--cyan); background: var(--cyan-soft); color: var(--cyan-ink); }
  .portrait-card { transition: transform 400ms ease, border-color 300ms ease; }
  .hero-stage:hover .portrait-card { transform: translateX(-50%) rotate(1deg) translateY(-5px); border-color: var(--glacier); }
  .bento-card:hover, .role-card:hover, .portal-card:hover, .likes-card:hover, .field-guide:hover, .device:hover {
    transform: translateY(-5px);
    border-color: var(--cyan);
    box-shadow: 0 18px 42px rgba(0, 220, 235, 0.15), 0 8px 24px rgba(231, 84, 143, 0.08);
  }
  .build-card:hover::after,
  .trait-card:hover::after,
  .companion-card:hover::after,
  .role-card:hover::after,
  .portal-card:hover::after,
  .likes-card:hover::after,
  .field-guide:hover::after,
  .quote-card:hover::before {
    transform: translateX(130%);
  }
}

@media (max-width: 1050px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(350px, 0.85fr); gap: 1.5rem; }
  .hero-stage { min-height: 32rem; }
  .portrait-card { width: 78%; }
  .note-mode { left: -2%; }
  .note-code { right: -1%; }
  .showcase-frame { grid-template-columns: 1fr; }
  .creator-section { grid-template-columns: 1fr 1.15fr; }
  .creator-index { grid-column: 1 / -1; }
  .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-card p { min-height: 0; }
  .self-intro { gap: 3rem; }
  .login-page { grid-template-columns: minmax(0, 1fr) minmax(400px, 0.9fr); }
  .login-panel { padding: 2.5rem; }
}

@media (max-width: 960px) {
  .topbar {
    flex-wrap: wrap;
    border-radius: 22px;
    padding: 12px 18px;
  }
  .home-page .nav-toggle {
    display: inline-flex;
  }
  .home-page .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px dashed rgba(248, 187, 208, 0.72);
  }
  .home-page .nav-links.is-open {
    display: flex;
  }
  .home-page .nav-link {
    text-align: center;
  }
  .home-page .nav-pill {
    justify-content: center;
  }
  .login-topbar .nav-links,
  .devices-page .topbar .nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 10px;
    border-top: 1px dashed rgba(248, 187, 208, 0.72);
  }
  .login-topbar .nav-link,
  .devices-page .topbar .nav-link {
    padding: 7px 14px;
    font-size: 0.92rem;
  }
  .login-topbar .nav-pill,
  .devices-page .topbar .nav-pill {
    padding: 8px 16px;
    font-size: 0.92rem;
  }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 3rem; text-align: center; }
  .hero .eyebrow, .hero-byline { justify-content: center; }
  .personality-tags, .hero-actions, .playline, .mood-chips, .palette-swatches, .showcase-actions { justify-content: center; }
  .showcase-copy { text-align: center; }
  .showcase-copy .eyebrow { justify-content: center; }
  .hero-stage { width: min(100%, 29rem); margin-top: 2rem; }
  .self-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .intro-story { padding-top: 0; }
  .likes-section { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; gap: 1.2rem; }
  .build-card, .quote-card, .trait-card, .companion-card { grid-column: span 12; }
  .build-card { grid-row: auto; }
  .companion-card { grid-template-columns: 1fr; }
  .conversation-preview { grid-column: 1; grid-row: auto; padding: 1.5rem 0 0; }
  .creator-section { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr 1fr; padding: 1.5rem 0 2rem; }
  .site-footer > p:first-of-type { display: none; }
  .login-page { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .login-visual { min-width: 0; min-height: auto; padding: 2rem; border-right: 0; border-bottom: 1px solid rgba(248, 187, 208, 0.55); }
  .login-story { padding: 2.2rem 0 1.8rem; }
  .login-story h1 { font-size: clamp(2.6rem, 8.5vw, 4.2rem); }
  .login-profile { margin-bottom: 0.5rem; }
  .login-panel { width: min(100%, 38rem); padding: 2rem; }
  .login-card { padding: 2rem; }
}

@media (max-width: 760px) {
  .home-page,
  .devices-page {
    width: calc(100% - 28px);
  }
  .login-topbar {
    width: calc(100% - 28px);
    margin: 14px auto 12px;
  }
  .topbar {
    padding: 10px 14px;
  }
}

@media (max-width: 540px) {
  .hero { min-height: auto; padding: 2.2rem 0 3rem; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-stage { min-height: 30rem; margin-top: 1rem; overflow: hidden; }
  .portrait-card { top: 2.2rem; width: 78%; padding: 0.8rem; border-radius: 23px; }
  .portrait-wrap { border-radius: 17px; }
  .portrait-caption { flex-wrap: wrap; gap: 0.5rem; padding-top: 0.75rem; }
  .floating-note { gap: 0.55rem; padding: 0.65rem 0.85rem; }
  .note-mode { top: 0.25rem; left: 0; }
  .note-code { right: 0; bottom: 0.25rem; }
  .orbit-outer { inset: 3% -3% 1%; }
  .thought-ribbon { gap: 0.6rem 0.85rem; padding: 1rem; font-size: 0.96rem; letter-spacing: 0.08em; }
  .showcase-frame { padding: 1.05rem; border-radius: 24px; }
  .showcase-media { border-radius: 16px; }
  .showcase-badge { padding: 0.3rem 0.7rem; font-size: 0.88rem; }
  .badge-top { top: 0.55rem; left: 0.55rem; }
  .badge-bottom { right: 0.55rem; bottom: 0.55rem; }
  .showcase-actions { display: grid; }
  .showcase-actions .button { width: 100%; }
  .about-section, .self-intro { padding: 3.2rem 0; }
  .self-intro-heading h2, .likes-card h2 { font-size: 2.1rem; }
  .intro-columns { grid-template-columns: 1fr; gap: 1rem; }
  .intro-facts { grid-template-columns: 1fr; gap: 1rem; }
  .role-grid, .portal-cards { grid-template-columns: 1fr; }
  .role-card { padding: 1.5rem; }
  .role-icon { margin-bottom: 1.4rem; }
  .likes-card, .field-guide { padding: 1.5rem; border-radius: 22px; }
  .section-heading { margin-bottom: 2rem; }
  .section-heading h2, .creator-copy h2 { font-size: 2.15rem; }
  .bento-grid { gap: 1rem; }
  .bento-card { padding: 1.5rem; border-radius: 22px; }
  .card-icon { margin-bottom: 1.4rem; }
  .mini-terminal { margin-top: 1.5rem; padding: 1.1rem; font-size: 0.92rem; }
  .quote-card blockquote { font-size: 1.55rem; }
  .companion-card { column-gap: 0; }
  .manifesto { padding: 3.8rem 1.2rem; border-radius: 24px; }
  .manifesto-text { font-size: 1.95rem; }
  .creator-section { padding: 3.5rem 0; gap: 2rem; }
  .site-footer { min-height: 6.5rem; grid-template-columns: 1fr; gap: 0.9rem; }
  .site-footer p:last-child { justify-self: start; }
  .footer-brand { transform: none; }
  .login-visual { padding: 1.35rem; }
  .login-story { padding: 2rem 0 1.5rem; }
  .login-story h1 { font-size: 2.45rem; }
  .login-panel { padding: 1.15rem 0.9rem 2rem; }
  .login-card { padding: 1.35rem; border-radius: 22px; }
  .login-heading h2 { font-size: 1.65rem; }
  .devices-hero { padding: 1.8rem 0 1.5rem; }
  .device { grid-template-columns: auto minmax(0, 1fr); gap: 0.85rem; padding: 1.1rem; }
  .device-symbol { width: 2.5rem; height: 2.5rem; }
  .device form { grid-column: 2; justify-self: start; }
  .device-dates { display: grid; gap: 0.25rem; }
  .device-dates span { white-space: normal; }
  .account-actions { flex-direction: column; align-items: stretch; }
  .account-buttons { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
@media (prefers-contrast: more) {
  :root { --ink-soft: #3a2633; --line: rgba(40, 39, 53, 0.35); }
  .button-quiet, .button-cyan, .input-shell, .device, .login-card, .portal-card { border-color: var(--ink-soft); }
}
@media (forced-colors: active) {
  .gradient-text { -webkit-text-fill-color: CanvasText; }
  .portrait-card, .bento-card, .login-card, .login-visual, .device, .showcase-frame { background: Canvas; }
  .button-primary, .nav-pill, .danger-button { border: 1px solid ButtonText; }
}
