:root {
  --ink: #0b1e25;
  --ink-soft: #243338;
  --muted: #4d5c5e;
  --line: rgba(11, 30, 37, 0.12);
  --paper: #ffffff;
  --shadow: 0 24px 60px rgba(11, 30, 37, 0.12);
  --radius: 28px;
  --header: "Outfit", sans-serif;
  --body: "Inter", sans-serif;
  --wash: linear-gradient(135deg, #fbf0f8 0%, #f6f7fc 100%);
  --wash-solid: #f7f3f8;
  --accent: #e7c2ad;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --space: clamp(4.5rem, 9vw, 7.5rem);
  color-scheme: light;
}

[data-intent="matrimony"] {
  --wash: linear-gradient(160deg, #f6f4ef 0%, #faf8f5 100%);
  --wash-solid: #f7f5f1;
  --accent: #e4d3bc;
}

[data-intent="friendship"] {
  --wash: linear-gradient(180deg, #eff5fb 0%, #f9fafc 100%);
  --wash-solid: #f3f7fb;
  --accent: #c9dff6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--wash);
  color: var(--ink);
  
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  transition: background 600ms var(--ease);
}
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
}
.skip {
  position: absolute;
  left: 16px;
  top: 0;
  transform: translateY(-120%);
  background: var(--ink);
  color: #f7f6f4;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; transform: translateY(0); }

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}
.wrap-s { width: min(760px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 24px));
  margin: 12px auto 0;
  padding: 10px 12px 10px 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}
.brand img { width: 44px; height: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
}
.nav a:hover { background: rgba(11, 30, 37, 0.05); }
.btn.nav-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-dark { background: var(--ink); color: #f6f7f8; }
.btn-dark:hover { background: #163038; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
}
.btn-ghost:hover { background: #fff; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 24px;
}
.kicker {
  margin: 0 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
h1, h2, h3 {  font-weight: 600; letter-spacing: -0.04em; line-height: 0.98; }
h1 { margin: 0; font-size: clamp(3.1rem, 6.4vw, 5.5rem); }
.lede {
  margin: 22px 0 0;
  max-width: 38rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.intent-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 28px;
  max-width: 460px;
}
.intent-switch button {
  min-height: 64px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  text-align: left;
  padding: 10px 12px;
}
.intent-switch button strong {
  display: block;
  
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1rem;
}
.intent-switch button span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}
.intent-switch button[aria-checked="true"] {
  background: #fff;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(11, 30, 37, 0.08);
}
.lock-note { margin: 10px 0 0; font-size: 0.85rem; color: var(--muted); }

.hero-visual { display: grid; justify-items: center; gap: 0; }
.logo-film, .logo-still {
  width: min(760px, 128%);
  margin-inline: -6%;
  mix-blend-mode: multiply;
  background: transparent;
}
.logo-still { display: none; }
.wordmark {
  margin: -28px 0 0;
  
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 4rem);
  letter-spacing: -0.045em;
  color: #0b1e25;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.section, .hero, .intent-switch { scroll-margin-top: 96px; }
.section { padding: var(--space) 0; }
.section h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 3.6rem); max-width: 16ch; }
.section-intro { margin: 16px 0 0; max-width: 40rem; color: var(--ink-soft); }

.panel {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
  margin-top: 36px;
}
.card { padding: 22px; }
.card h3 { margin: 12px 0 8px; font-size: 1.45rem; letter-spacing: -0.03em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.card-wide { grid-column: 1 / 2; grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: space-between; min-height: 420px; }
.icon {
  width: 28px;
  height: 28px;
  color: var(--ink);
}
.bars { display: grid; gap: 12px; margin-top: 28px; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 0.85rem; }
.track { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: rgba(11, 30, 37, 0.08); overflow: hidden; }
.track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--ink);
}
.card.in .track span { animation: fill 900ms var(--ease) forwards; }
.track.v92 span { --w: 92%; }
.track.v81 span { --w: 81%; }
.track.v74 span { --w: 74%; }
@keyframes fill { to { width: var(--w); } }

.score-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.score-num {
  
  font-size: 4.5rem;
  letter-spacing: -0.06em;
  line-height: 0.8;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(11, 30, 37, 0.06);
  font-size: 0.78rem;
  font-weight: 600;
}

.stage {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 28px;
}
.stage-copy h2 { max-width: 12ch; }
.scene-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 8px; }
.scene-list button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 16px;
  padding: 12px 14px;
  cursor: pointer;
  color: var(--muted);
}
.scene-list button[aria-current="true"] {
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
}
.scene-list strong { display: block;  font-weight: 600; letter-spacing: -0.03em; }
.player-controls { display: flex; gap: 8px; margin-top: 16px; }

.device-wrap { display: grid; justify-items: center; }
.device {
  width: 320px;
  height: 660px;
  padding: 10px;
  border-radius: 46px;
  background: #10181c;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  position: relative;
}
.device-screen {
  height: 100%;
  border-radius: 36px;
  background: var(--wash);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.statusbar, .tabbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 0;
  font-size: 12px;
  font-weight: 600;
  
}
.tabbar {
  padding: 8px 22px 16px;
  color: var(--muted);
}
.tabbar svg { width: 22px; height: 22px; }
.island {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 92px;
  height: 22px;
  transform: translateX(-50%);
  background: #10181c;
  border-radius: 20px;
}
.stage-view {
  flex: 1;
  position: relative;
  margin: 8px 10px 0;
}
.scene[hidden] { display: none !important; }
.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 360ms var(--ease), transform 360ms var(--ease);
}
.scene.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.app-card {
  background: rgba(255, 255, 255, 0.86);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(11, 30, 37, 0.06);
}
.app-card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}
.choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 14px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid transparent;
  font-size: 0.92rem;
}
.choice.on { border-color: var(--ink); background: #fff; }
.mini { font-size: 0.75rem; color: var(--muted); margin: 0; }
.who { display: flex; gap: 10px; align-items: center; }
.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  
  font-weight: 600;
  background: linear-gradient(160deg, #f3e4f4, #d3e5fc 60%, #f8dcc4);
  flex: none;
}
.gen-line {
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(11,30,37,0.06), rgba(11,30,37,0.16), rgba(11,30,37,0.06));
  background-size: 200% 100%;
  animation: shimmer 1.1s linear infinite;
  margin-top: 8px;
}
.gen-line.s { width: 72%; }
.gen-line.m { width: 88%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.summary-text {
  margin: 8px 0 0;
  min-height: 7.2em;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.caret {
  display: inline-block;
  width: 7px;
  height: 1em;
  background: var(--ink);
  transform: translateY(2px);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.meter { height: 6px; border-radius: 99px; background: rgba(11,30,37,0.08); overflow: hidden; margin: 4px 0 10px; }
.meter i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
  border-radius: inherit;
}
.scene.is-on .meter i { transition: width 800ms var(--ease); }
.bubble {
  align-self: flex-start;
  max-width: 92%;
  background: #fff;
  border-radius: 16px 16px 16px 6px;
  padding: 10px 12px;
  font-size: 0.86rem;
}
.bubble.me {
  align-self: flex-end;
  background: var(--ink);
  color: #f7f8f8;
  border-radius: 16px 16px 6px 16px;
}
.prompt {
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 0.82rem;
  border: 1px dashed rgba(11, 30, 37, 0.25);
}
.soft {
  margin-top: auto;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 0.82rem;
}
.soft.sent { background: var(--ink); color: #fff; }
.toast {
  font-size: 0.78rem;
  color: var(--muted);
  min-height: 2.4em;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}
.split article { padding: 28px; }
.split h3 { margin: 8px 0; font-size: 1.8rem; }
.steps { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  
}

.quotes { margin-top: 28px; }
.quote {
  margin: 0;
  padding: 32px;
  min-height: 220px;
}
.quote p {
  margin: 0;
  
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.quote figcaption { margin-top: 18px; color: var(--muted); font-size: 0.9rem; }
.quote-nav { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.dots { display: flex; gap: 6px; margin-left: 8px; }
.dots button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.dots button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(11, 30, 37, 0.25);
  display: block;
  margin: auto;
}
.dots button[aria-current="true"]::after { background: var(--ink); width: 18px; }

.access {
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
form { display: grid; gap: 10px; }
label { font-size: 0.82rem; font-weight: 600; }
input, select {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 12px;
}
.form-error { margin: 0; min-height: 1.2em; color: #8a2b2b; font-size: 0.85rem; }
.form-ok { display: none; }
.form-ok.show { display: block; }
form.done .fields { display: none; }
#access-form button[disabled] { cursor: progress; opacity: 0.65; }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.consent input {
  width: 20px;
  min-width: 20px;
  min-height: 20px;
  margin-top: 2px;
  padding: 0;
  flex: none;
}
.consent label {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
}

.site-foot {
  padding: 48px 0 64px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.site-foot strong {  font-size: 1.1rem; letter-spacing: -0.03em; }
.site-foot p { margin: 8px 0 0; color: var(--muted); max-width: 32ch; }
.site-foot nav { display: grid; gap: 8px; align-content: start; }
.site-foot span { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.site-foot a { text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.site-foot a:hover { text-decoration: underline; }

.steps-4 {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.steps-4 li { padding: 22px; }
.steps-4 span {  color: var(--muted); letter-spacing: 0.08em; }
.steps-4 h3 { margin: 12px 0 8px; font-size: 1.45rem; }
.steps-4 p { margin: 0; color: var(--ink-soft); }

.deck {
  position: relative;
  width: min(420px, 100%);
  height: 420px;
}
.pcard {
  position: absolute;
  width: 230px;
  min-height: 280px;
  padding: 18px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pcard .face {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
   font-weight: 600;
  background: linear-gradient(160deg, #f3e4f4, #d3e5fc 55%, #f8dcc4);
}
.pcard.back { left: 0; top: 48px; transform: rotate(-8deg); opacity: 0.72; }
.pcard.mid { right: 0; top: 36px; transform: rotate(7deg); opacity: 0.82; }
.pcard.front { left: 78px; top: 24px; z-index: 2; }
.pcard strong {  font-size: 1.8rem; letter-spacing: -0.04em; }
.pcard em { font-style: normal; color: var(--muted); font-size: 0.82rem; }
.pcard p { margin: 0; color: var(--ink-soft); }
.pcard b {  font-weight: 600; margin-top: auto; }
.scan {
  position: absolute; left: 12px; right: 12px; top: 16px; height: 2px; width: auto;
  border-radius: 0; display: block;
  background: var(--ink); opacity: 0.45;
  animation: scan 2.4s var(--ease) infinite;
  pointer-events: none;
}
@keyframes scan { from { top: 16px; } to { top: 250px; } }
.links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.links path { fill: none; stroke: rgba(11,30,37,0.35); stroke-width: 1.5; stroke-dasharray: 8 8; }

.reveal { opacity: 1; }




@media (max-width: 980px) {
  .hero, .stage, .split, .access, .bento, .steps-4, .site-foot { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; grid-row: auto; min-height: 0; }
  .btn.nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    right: 12px;
    left: 12px;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .site-header { position: sticky; }
}

@media (max-width: 640px) {
  .wrap, .wrap-s { width: min(1180px, calc(100% - 28px)); }
  .intent-switch { grid-template-columns: 1fr; }
  .device { width: 100%; max-width: 320px; height: 620px; transform: none; }
  .hero { padding-top: 28px; }
  .deck { height: 380px; margin-inline: auto; }
  .pcard { width: min(210px, 72vw); }
  .pcard.front { left: 50%; transform: translateX(-46%); }
  .pcard.back { left: 0; }
  .pcard.mid { right: 0; left: auto; }
  h1 { font-size: 2.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .scan, .pcard.back, .pcard.mid { animation: none; }
  .pcard.back, .pcard.mid { opacity: 0.9; }
  .track span, .meter i { width: var(--w, 70%); }
}
