/* ==========================================================================
   LURK — option 2: clean, light, lots of air, one violet accent.
   ========================================================================== */

:root {
  --paper: #fbfaf8;
  --paper-2: #f3f2ef;
  --ink: #111114;
  --ink-2: #5b5b66;
  --ink-3: #a3a2ad;
  --line: #e7e5ec;
  --violet: #6b4eff;
  --violet-2: #4a2fe0;
  --violet-soft: #eeeaff;
  --display: 'Turret Road', 'Orbit', system-ui, sans-serif;
  --body: 'Orbit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(20px, 5vw, 88px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { background: var(--paper); color: var(--ink); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  font-family: var(--body);
  font-size: 15px; line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--violet); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: normal; color: var(--violet); }
:focus-visible { outline: 1.5px solid var(--violet); outline-offset: 4px; border-radius: 4px; }

.only-coarse { display: none; }
@media (pointer: coarse) { .only-fine { display: none; } .only-coarse { display: inline; } }
@media (pointer: fine) { html.has-cursor, html.has-cursor * { cursor: none !important; } }

/* ---------------------------------------------------------------- chrome */

.topbar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; }
.topbar i { display: block; height: 100%; width: 87%; background: var(--violet); transform-origin: left; transition: width 0.2s linear; }

.cursor { position: fixed; inset: 0 auto auto 0; z-index: 100; pointer-events: none; display: none; }
html.has-cursor .cursor { display: block; }
.cursor-dot, .cursor-ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--violet); transition: opacity 0.2s; }
.cursor-ring {
  width: 0; height: 0;
  display: grid; place-items: center;
  border: 1px solid var(--violet);
  background: rgba(107, 78, 255, 0.06);
  opacity: 0;
  transition: width 0.4s var(--ease), height 0.4s var(--ease), opacity 0.3s;
}
.cursor-ring { transform: translate(-50%, -50%); }
.cursor.is-hover .cursor-ring { width: 72px; height: 72px; opacity: 1; }
.cursor.is-label .cursor-dot { opacity: 0; }
.cursor-label { font-family: var(--display); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--violet); white-space: nowrap; }
.cursor.is-down .cursor-ring { width: 56px; height: 56px; background: rgba(107, 78, 255, 0.14); }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px var(--pad);
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s var(--ease);
}
.nav.is-scrolled { background: rgba(251, 250, 248, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 21px; justify-self: start; }
.brand-mark { width: 20px; height: 20px; transition: transform 0.8s var(--ease); }
.brand-mark circle { fill: var(--ink); }
.brand:hover .brand-mark { transform: rotate(180deg); }
.nav-status { margin: 0; font-family: var(--display); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.nav-status b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; min-width: 3.6em; text-align: right; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(107, 78, 255, 0.5); } 70% { box-shadow: 0 0 0 8px rgba(107, 78, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(107, 78, 255, 0); } }
.nav-cta {
  justify-self: end;
  font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.nav-cta:hover { background: var(--violet); color: #fff; border-color: var(--violet); }
.nav-cta span { display: inline-block; transition: transform 0.4s var(--ease); }
.nav-cta:hover span { transform: rotate(-45deg); }

/* ---------------------------------------------------------------- shared */

section { position: relative; padding: clamp(120px, 22vh, 240px) var(--pad); }
.label { margin: 0 0 28px; font-family: var(--display); font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(40px, 6vw, 96px); line-height: 0.98; letter-spacing: -0.015em; }
h2 span { color: var(--ink-3); }

.rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- hero */

.hero {
  min-height: 100vh; min-height: 100svh;
  padding-top: 0; padding-bottom: 0;
  display: grid; grid-template-rows: 1fr auto;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  overflow: hidden;
}
.field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.corner { position: absolute; top: 96px; font-family: var(--display); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); z-index: 2; }
.corner span { color: var(--ink); margin-right: 8px; }
.corner.tl { left: var(--pad); }
.corner.tr { right: var(--pad); font-variant-numeric: tabular-nums; }

.hero-center {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-top: 110px;
  pointer-events: none;
}
.spinner { width: clamp(120px, 15vw, 200px); height: clamp(120px, 15vw, 200px); overflow: visible; }
.spinner circle { fill: var(--ink); transition: fill 0.5s; }
.hero.is-holding .spinner circle { fill: var(--violet); }
.load { margin: 34px 0 0; font-family: var(--display); line-height: 1; display: flex; align-items: flex-start; gap: 4px; }
.load b { font-weight: 500; font-size: clamp(30px, 3vw, 44px); font-variant-numeric: tabular-nums; transition: color 0.4s; }
.load span { font-size: 16px; color: var(--ink-3); margin-top: 4px; }
.hero.is-holding .load b { color: var(--violet); }
.load-hint { margin: 12px 0 0; font-size: 13px; color: var(--ink-2); }
.load-done {
  pointer-events: auto;
  margin-top: 22px;
  font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; background: var(--violet); padding: 12px 20px; border-radius: 999px;
  animation: rise 0.8s var(--ease) both;
}
.load-done[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

.hero-bottom {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; align-items: end;
  padding: 0 0 clamp(36px, 7vh, 64px);
  pointer-events: none;
}
.hero-title { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(30px, 4vw, 60px); line-height: 1.06; letter-spacing: -0.01em; }
.hero-title .hl { display: block; }
.rot { display: block; overflow: hidden; height: 1.12em; white-space: nowrap; }
.rot-word { display: inline-block; color: var(--violet); transition: transform 0.5s var(--ease), opacity 0.5s; }
.rot-word.out { transform: translateY(-100%); opacity: 0; }
.rot-word.pre { transform: translateY(100%); opacity: 0; transition: none; }
.hero-meta { margin: 0; justify-self: end; max-width: 340px; font-size: 14px; color: var(--ink-2); }
.hero-meta span { color: var(--ink-3); }

/* ---------------------------------------------------------------- statement */

.statement { max-width: 1320px; }
.statement-text { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3.8vw, 58px); line-height: 1.16; letter-spacing: -0.01em; max-width: 22ch; max-width: 1100px; }
.statement-text .w { color: #dcdbe2; transition: color 0.4s; }
.statement-text .w.on { color: var(--ink); }
.statement-text .w.em.on { color: var(--violet); }

/* ---------------------------------------------------------------- disciplines */

.disc { border-top: 1px solid var(--line); }
.sec-head { margin-bottom: clamp(70px, 12vh, 130px); }
.sec-head.split { display: grid; grid-template-columns: 1fr minmax(0, 360px); gap: 40px; align-items: end; }

.dots-row {
  display: flex; justify-content: space-between; align-items: center;
  height: 200px;
  max-width: 1200px; margin: 0 auto;
}
.dot {
  position: relative;
  width: 110px; height: 200px;
  display: grid; place-items: center;
}
.dot i {
  display: block;
  width: var(--s); height: var(--s); border-radius: 50%;
  background: var(--ink);
  transform: translate(var(--mx, 0px), var(--my, 0px)) scale(1);
  transition: transform 0.6s var(--ease), background 0.4s;
}
.dot .n {
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  font-family: var(--display); font-size: 11px; letter-spacing: 0.14em; color: var(--ink-3);
  transition: color 0.3s;
}
.dots-row.has-active .dot i { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(0.62); background: #cfcdd8; }
.dots-row.has-active .dot.is-active i { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(3.1); background: var(--violet); }
.dot.is-active .n { color: var(--violet); }

.disc-caption { text-align: center; margin-top: clamp(50px, 8vh, 90px); min-height: 150px; }
.disc-n { font-family: var(--display); font-size: 12px; letter-spacing: 0.2em; color: var(--ink-3); }
.disc-t { margin: 14px 0 0; font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.1; }
.disc-d { margin: 12px auto 0; max-width: 460px; color: var(--ink-2); }
.disc-caption.swap .disc-t, .disc-caption.swap .disc-d { animation: swap 0.6s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(14px); } }

/* ---------------------------------------------------------------- play */

.play { border-top: 1px solid var(--line); }
.play-sub { margin: 0; color: var(--ink-2); }
.pad {
  position: relative;
  height: clamp(420px, 62vh, 620px);
  border-radius: 28px;
  background:
    radial-gradient(circle, #dcdae4 1px, transparent 1.4px) 0 0 / 24px 24px,
    #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow 0.5s;
}
.pad:hover { box-shadow: 0 30px 80px -40px rgba(74, 47, 224, 0.35); }
.pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.pad-hint {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  margin: 0; font-family: var(--display); font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-3);
  pointer-events: none; transition: opacity 0.4s;
}
.pad.is-dirty .pad-hint { opacity: 0; }
.pad-result {
  position: absolute; left: 0; right: 0; bottom: 34px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center; pointer-events: none;
  opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.pad-result p { margin: 0; font-family: var(--display); font-size: clamp(18px, 1.8vw, 24px); line-height: 1.2; }
.pad-result p span { color: var(--violet); }
.pad.is-merged .pad-result { opacity: 1; transform: none; pointer-events: auto; }
.pad-reset { font-family: var(--display); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; transition: border-color 0.3s, color 0.3s; }
.pad-reset:hover { border-color: var(--violet); color: var(--violet); }
.pad-count { position: absolute; top: 20px; right: 24px; font-family: var(--display); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- notify */

.notify {
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 8vw, 140px); align-items: end;
  min-height: 90vh;
}
.notify h2 { font-size: clamp(44px, 7vw, 112px); }
.notify-sub { margin: 30px 0 0; color: var(--ink-2); max-width: 380px; }

.notify-form label { display: block; font-family: var(--display); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.row { display: flex; align-items: center; gap: 16px; border-bottom: 1.5px solid var(--ink); padding-bottom: 10px; transition: border-color 0.3s; }
.row:focus-within { border-color: var(--violet); }
.row input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2vw, 28px); color: var(--ink);
  padding: 10px 0;
}
.row input::placeholder { color: #cbc9d3; }
.go {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff; font-size: 22px;
  transition: background 0.3s;
  will-change: transform;
}
.go span { display: inline-block; transition: transform 0.4s var(--ease); }
.go:hover { background: var(--violet); }
.go:hover span { transform: translateX(3px); }
.go:disabled { opacity: 0.5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.meter { display: flex; gap: 8px; margin-top: 18px; }
.meter i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background 0.3s, transform 0.4s var(--ease); }
.meter i.on { background: var(--ink); }
.meter.valid i { background: var(--violet); transform: scale(1.15); }
.status { min-height: 1.5em; margin: 18px 0 0; font-size: 14px; color: var(--violet); }
.status.err { color: #e0336b; }
.count { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); }
.notify-form.shake { animation: shake 0.45s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

.done { animation: rise 0.8s var(--ease) both; }
.done[hidden] { display: none; }
.done-mark { width: 96px; height: 96px; overflow: visible; margin-bottom: 26px; }
.done-mark circle { fill: var(--violet); }
.done-k { margin: 0; font-family: var(--display); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--violet); }
.done h3 { margin: 10px 0 0; font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; }
.done h3 b { color: var(--violet); font-weight: 700; }
.done-t { margin: 10px 0 0; color: var(--ink-2); }

/* ---------------------------------------------------------------- footer */

.foot {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 26px var(--pad);
  border-top: 1px solid var(--line);
  font-family: var(--display); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}
.foot a { color: var(--ink); }
.foot a:hover { color: var(--violet); }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 860px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-status { display: none; }
  .corner.tr { display: none; }
  .hero-bottom { grid-template-columns: 1fr; gap: 18px; }
  .hero-meta { justify-self: start; }
  .sec-head.split { grid-template-columns: 1fr; }
  .dots-row { flex-wrap: wrap; height: auto; justify-content: center; }
  .dot { width: 25%; height: 120px; }
  .notify { grid-template-columns: 1fr; align-items: start; min-height: 0; }
}

@media (max-width: 520px) {
  .corner.tl { top: 84px; }
  .hero-center { padding-top: 60px; }
  .dot { height: 100px; }
  .dots-row.has-active .dot.is-active i { transform: translate(var(--mx, 0px), var(--my, 0px)) translateY(-8px) scale(1.7); }
  .disc-caption { min-height: 190px; }
  .foot { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
}
