/* ============================================================
   MERIDIAN — quiet luxury. #080808, white type, one indigo.
   No cards. No gradients-as-decoration. No glow. Typography,
   whitespace, hairlines, and very slow motion do all the work.
   ============================================================ */
:root {
  --bg: #080808;
  --ink: #f2f2f0;
  --sub: #8a8a86;
  --hair: rgba(255, 255, 255, 0.10);
  --hair-2: rgba(255, 255, 255, 0.05);
  --accent: #5b4dff;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --slow: 1.3s;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 16px; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input { font-family: inherit; }
em { font-style: normal; }

.grain {
  position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* timecode label */
.tc {
  font-family: "IBM Plex Mono", monospace; font-size: 0.66rem; letter-spacing: 0.3em;
  color: var(--sub); text-transform: uppercase; margin-bottom: 30px;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px clamp(22px, 5vw, 64px);
  mix-blend-mode: difference;
}
.nav-mark { font-weight: 700; letter-spacing: 0.34em; font-size: 0.82rem; }
.nav-time { font-family: "IBM Plex Mono", monospace; font-size: 0.66rem; letter-spacing: 0.2em; color: var(--sub); }
.nav-note {
  font-family: "IBM Plex Mono", monospace; font-size: 0.6rem; letter-spacing: 0.24em; color: var(--sub);
  border-bottom: 1px solid transparent; padding-bottom: 3px;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.nav-note:hover { color: var(--ink); border-color: var(--ink); }
@media (max-width: 700px) { .nav-time { display: none; } }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; position: relative;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 120px clamp(22px, 5vw, 64px) 90px;
  overflow: hidden;
}
.hero-light {
  position: absolute; top: -35%; left: 50%; transform: translateX(-50%);
  width: 120vw; height: 90vh; pointer-events: none;
  background: radial-gradient(ellipse 42% 55% at 50% 0%, rgba(255, 255, 255, 0.055), transparent 70%);
}
.hero h1 {
  font-size: clamp(4rem, 15vw, 13rem); font-weight: 700;
  line-height: 0.92; letter-spacing: -0.035em;
}
.hl-line { display: block; }
.hero-tag {
  margin-top: 42px; color: var(--sub);
  font-size: clamp(1rem, 1.8vw, 1.25rem); font-weight: 300; letter-spacing: 0.02em;
}
.hero-floor {
  position: absolute; bottom: 0; left: 0; right: 0; height: 24vh; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(91, 77, 255, 0.05) 65%, rgba(91, 77, 255, 0.09));
  mask-image: linear-gradient(180deg, transparent, #000);
}
.cue {
  position: absolute; bottom: 42px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 64px; overflow: hidden;
}
.cue span {
  position: absolute; top: -40%; left: 0; width: 1px; height: 40%;
  background: var(--ink); animation: cuefall 2.6s var(--ease) infinite;
}
@keyframes cuefall { to { top: 110%; } }

/* ---------- sections ---------- */
.sec { padding: clamp(120px, 16vw, 220px) clamp(22px, 5vw, 64px); max-width: 1280px; margin-inline: auto; }
h2 {
  font-size: clamp(2.6rem, 6.5vw, 5.4rem); font-weight: 700;
  line-height: 0.98; letter-spacing: -0.03em; margin-bottom: 34px;
}
h2 em, .cta h2 em { color: var(--accent); }
.lede { color: var(--sub); font-weight: 300; max-width: 520px; font-size: 1.08rem; margin-bottom: 70px; }

/* ---------- talk (the conversation) ---------- */
.talk { display: grid; grid-template-columns: 300px 1fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
@media (max-width: 900px) { .talk { grid-template-columns: 1fr; } }

.ledger { position: sticky; top: 110px; }
@media (max-width: 900px) { .ledger { position: static; } }
.ledger-line { display: block; width: 100%; height: 1px; background: var(--hair); position: relative; margin-bottom: 26px; overflow: visible; }
.ledger-line::after {
  content: ""; position: absolute; left: 0; top: 0; height: 1px; width: var(--p, 0%);
  background: var(--accent); transition: width 1.1s var(--ease);
}
#ledger-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 13px 0; border-bottom: 1px solid var(--hair-2);
  font-size: 0.85rem;
}
#ledger-list i {
  font-style: normal; font-family: "IBM Plex Mono", monospace; font-size: 0.6rem;
  letter-spacing: 0.22em; color: var(--sub);
}
#ledger-list b { font-weight: 500; text-align: right; color: var(--sub); transition: color 0.8s var(--ease); }
#ledger-list li.set b { color: var(--ink); }
#ledger-list li.set i { color: var(--accent); }

.conv { border-top: 1px solid var(--hair); }
.conv-log { min-height: 300px; max-height: 460px; overflow-y: auto; padding: 34px 0 10px; scroll-behavior: smooth; scrollbar-width: none; }
.conv-log::-webkit-scrollbar { display: none; }
.m { margin-bottom: 26px; max-width: 92%; animation: rise 0.9s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.m.u { margin-left: auto; text-align: right; }
.m.u p { display: inline-block; text-align: left; color: var(--accent); font-weight: 500; font-size: 1rem; }
.m.u p::before { content: "— "; }
.m.a p { color: var(--ink); font-weight: 300; font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.55; }
.m.a b { font-weight: 500; }
.m.a .hl { color: var(--accent); font-weight: 500; }
.m.typing p { color: var(--sub); animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.3; } }

.veh-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--hair-2);
  animation: rise 0.9s var(--ease);
}
.veh-row h5 { font-size: 1rem; font-weight: 500; }
.veh-row h5 i { font-style: normal; color: var(--sub); font-weight: 300; margin-right: 10px; }
.veh-row .meta { font-family: "IBM Plex Mono", monospace; font-size: 0.6rem; letter-spacing: 0.12em; color: var(--sub); display: block; margin-top: 4px; }
.veh-row .price { font-weight: 500; color: var(--ink); white-space: nowrap; }

.slot-row { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 10px 0 20px; animation: rise 0.9s var(--ease); }
.slot {
  background: none; border: none; cursor: pointer; color: var(--sub);
  font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; letter-spacing: 0.1em;
  border-bottom: 1px solid var(--hair); padding-bottom: 4px;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.slot:hover { color: var(--accent); border-color: var(--accent); }

.conv-sugg { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 18px 0 6px; }
.conv-sugg button {
  background: none; border: none; cursor: pointer; color: var(--sub);
  font-size: 0.8rem; font-weight: 300; letter-spacing: 0.02em;
  border-bottom: 1px solid transparent; padding-bottom: 3px;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.conv-sugg button:hover { color: var(--ink); border-color: var(--ink); }
.conv-form { display: flex; gap: 22px; align-items: center; border-bottom: 1px solid var(--hair); padding: 8px 0 14px; margin-top: 12px; }
.conv-form input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--ink); font-size: 1.05rem; font-weight: 300;
}
.conv-form input::placeholder { color: var(--sub); }
.conv-form button {
  background: none; border: none; cursor: pointer; color: var(--accent);
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  transition: opacity 0.4s;
}
.conv-form button:hover { opacity: 0.65; }

.briefing { max-width: 640px; margin-top: 90px; border-top: 1px solid var(--hair); padding-top: 40px; animation: rise 1.2s var(--ease); }
.briefing p:last-child { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 300; line-height: 1.6; }
.briefing b { font-weight: 500; color: var(--accent); }

/* ---------- night (scroll story) ---------- */
.night { height: 700vh; position: relative; }
.night-stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 0 clamp(22px, 5vw, 64px);
}
.night-tc { position: absolute; top: 108px; left: 50%; transform: translateX(-50%); margin: 0; white-space: nowrap; }
.night-tc #story-time { color: var(--accent); }
.scene {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 0 clamp(22px, 6vw, 80px);
  opacity: 0; transform: translateY(46px) scale(0.985);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  pointer-events: none;
}
.scene.on { opacity: 1; transform: none; }
.scene.past { opacity: 0; transform: translateY(-46px) scale(0.985); }
.scene-small {
  font-family: "IBM Plex Mono", monospace; font-size: 0.64rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--sub); margin-bottom: 34px;
}
.scene-big {
  font-size: clamp(2.2rem, 6.4vw, 5.6rem); font-weight: 700;
  line-height: 1.04; letter-spacing: -0.03em;
}
.scene-big b { font-weight: 700; color: var(--accent); }
.scene-type { min-height: 2.2em; font-weight: 300; font-size: clamp(1.5rem, 4vw, 3.2rem); max-width: 20ch; }
.scene-type::after { content: "▎"; color: var(--accent); animation: breathe 1s infinite; }
.scene-facts { display: flex; flex-direction: column; gap: 22px; }
.scene-facts li {
  font-family: "IBM Plex Mono", monospace; font-size: clamp(0.8rem, 1.8vw, 1.05rem);
  letter-spacing: 0.18em; color: var(--sub);
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.scene.on .scene-facts li { opacity: 1; transform: none; }
.scene.on .scene-facts li:nth-child(2) { transition-delay: 0.35s; }
.scene.on .scene-facts li:nth-child(3) { transition-delay: 0.7s; }
.scene-facts b { color: var(--ink); font-weight: 400; }
.scene-foot { margin-top: 40px; color: var(--sub); font-weight: 300; font-size: 0.92rem; line-height: 1.7; }
.scene-end em { color: var(--accent); }

/* ---------- case ---------- */
.case-cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
@media (max-width: 900px) { .case-cols { grid-template-columns: 1fr; } }
.case-cols > p { color: var(--sub); font-weight: 300; font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.75; }
.case-list li {
  display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--hair-2); font-weight: 300; font-size: 0.98rem;
}
.case-list li:first-child { border-top: 1px solid var(--hair); }
.case-list i {
  font-style: normal; font-family: "IBM Plex Mono", monospace; font-size: 0.6rem;
  letter-spacing: 0.22em; color: var(--accent);
}

/* ---------- flow ---------- */
.flow { padding: clamp(120px, 16vw, 220px) clamp(22px, 5vw, 64px); max-width: 1280px; margin-inline: auto; }
.flow-rail { position: relative; margin-top: 80px; padding-left: clamp(34px, 6vw, 80px); }
.flow-track {
  position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--hair);
}
.flow-track i {
  position: absolute; left: -3.5px; top: var(--p, 0%); width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); transition: top 0.25s linear;
}
.flow-rail ol li {
  padding: clamp(30px, 4.5vw, 54px) 0; border-bottom: 1px solid var(--hair-2);
  font-size: clamp(1.3rem, 3vw, 2.2rem); font-weight: 300; letter-spacing: -0.01em;
}
.flow-rail ol li:last-child { border-bottom: none; }
.flow-rail i {
  display: block; font-style: normal; font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem; letter-spacing: 0.26em; color: var(--sub); margin-bottom: 12px;
}
.flow-core { font-weight: 700 !important; }
.flow-core i { color: var(--accent) !important; }

/* ---------- results ---------- */
.res-rows { border-top: 1px solid var(--hair); }
.res {
  display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: baseline;
  padding: clamp(30px, 4.5vw, 50px) 0; border-bottom: 1px solid var(--hair-2);
}
@media (max-width: 760px) { .res { grid-template-columns: 1fr; gap: 8px; } }
.res span { font-family: "IBM Plex Mono", monospace; font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--sub); }
.res b { font-size: clamp(1.7rem, 4.6vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.res b em { color: var(--accent); font-weight: 300; margin: 0 8px; }
.fine { margin-top: 60px; max-width: 620px; color: var(--sub); font-weight: 300; font-size: 0.78rem; line-height: 1.8; }

/* ---------- cta / footer ---------- */
.cta { text-align: center; padding: clamp(140px, 18vw, 260px) clamp(22px, 5vw, 64px); }
.cta h2 { font-size: clamp(3.2rem, 10vw, 8.5rem); letter-spacing: -0.035em; margin-bottom: 60px; }
.cta-row { display: flex; flex-direction: column; align-items: center; gap: 34px; }
.btn-main {
  position: relative; display: inline-block; padding: 24px 66px;
  border: 1px solid var(--ink); border-radius: 999px;
  font-size: 1rem; font-weight: 500; letter-spacing: 0.06em;
  transition: color 0.7s var(--ease), border-color 0.7s var(--ease);
  overflow: hidden;
}
.btn-main::before {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  transform: translateY(101%); transition: transform 0.7s var(--ease); z-index: 0;
}
.btn-main:hover::before { transform: none; }
.btn-main:hover { border-color: var(--accent); }
.btn-main span { position: relative; z-index: 1; }
.quiet {
  color: var(--sub); font-size: 0.82rem; letter-spacing: 0.06em;
  border-bottom: 1px solid transparent; padding-bottom: 3px;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.quiet:hover { color: var(--ink); border-color: var(--ink); }
.foot {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 40px clamp(22px, 5vw, 64px) 50px; border-top: 1px solid var(--hair-2);
  font-family: "IBM Plex Mono", monospace; font-size: 0.58rem; letter-spacing: 0.16em; color: var(--sub);
}
.foot a { transition: color 0.4s; }
.foot a:hover { color: var(--ink); }

/* ---------- reveals ---------- */
.reveal {
  opacity: 0; transform: translateY(46px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
.reveal.vis { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.12s; }
.reveal[data-d="2"] { transition-delay: 0.24s; }
.reveal[data-d="3"] { transition-delay: 0.4s; }
.reveal[data-d="4"] { transition-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal, .scene-facts li { opacity: 1 !important; transform: none !important; }
  .night { height: auto; }
  .night-stage { position: static; height: auto; display: block; padding: 80px 22px; }
  .scene { position: static; opacity: 1; transform: none; margin-bottom: 90px; }
  html { scroll-behavior: auto; }
}
