:root {
  --bg: #0b0b14;
  --bg-2: #160f34;
  --violet: #5c48aa;
  --violet-soft: #8f7cf0;
  --orange: #ff9a3c;
  --orange-deep: #ff6a2b;
  --coat: #c98a45;
  --white: #ffffff;
  --text: #e9e6f7;
  --muted: #a9a3c9;
  --line: rgba(255, 255, 255, 0.1);
  --card: rgba(22, 15, 52, 0.62);
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --wrap: min(1200px, 100% - 48px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

::selection { background: var(--orange); color: #1a0f05; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- backdrop ---------- */

#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}

.nebula {
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(42% 38% at 78% 18%, rgba(92, 72, 170, 0.55), transparent 70%),
    radial-gradient(36% 34% at 12% 62%, rgba(46, 60, 190, 0.32), transparent 70%),
    radial-gradient(30% 30% at 62% 88%, rgba(255, 122, 43, 0.12), transparent 70%);
  filter: blur(20px);
  animation: drift 26s ease-in-out infinite alternate;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.07;
  pointer-events: none;
  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 type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  translate: -50% 0;
  width: var(--wrap);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 12px 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}

.nav.stuck {
  background: rgba(11, 11, 20, 0.72);
  border-color: var(--line);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 64%, #000 0 46%, transparent 47%),
    linear-gradient(180deg, var(--coat) 0 44%, transparent 44%),
    #1a1230;
  box-shadow: 0 0 0 1.5px var(--orange), 0 0 18px rgba(255, 154, 60, 0.5);
}

.brand-name {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.brand-name b {
  font-weight: 400;
  color: var(--orange);
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--white); background: rgba(255, 255, 255, 0.07); }

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffb25e, var(--orange) 45%, var(--orange-deep));
  color: #1c0f02;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 30px -8px rgba(255, 122, 43, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.25s var(--spring), box-shadow 0.25s, filter 0.25s;
  will-change: transform;
}

.btn:hover { filter: brightness(1.07); box-shadow: 0 16px 40px -8px rgba(255, 122, 43, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn:active { transform: scale(0.96); }
.btn svg { width: 18px; height: 18px; }

.btn-small { padding: 9px 16px; font-size: 14px; }

.btn-big {
  padding: 18px 30px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn-big svg { animation: nudge 1.6s var(--ease) infinite; }
.btn-big svg.still { animation: none; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border: 1px solid var(--line);
  box-shadow: none;
  font-weight: 600;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); box-shadow: none; filter: none; }

@keyframes nudge {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}

/* ---------- type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 154, 60, 0.7);
  animation: ping 2.2s infinite;
}

@keyframes ping {
  to { box-shadow: 0 0 0 12px rgba(255, 154, 60, 0); }
}

.headline, .title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--white);
  text-wrap: balance;
}

.headline { font-size: clamp(46px, 6.7vw, 104px); }
.title { font-size: clamp(44px, 6.4vw, 96px); }

.title em, .hot {
  font-style: normal;
  background: linear-gradient(95deg, #ffc27a 0%, var(--orange) 40%, var(--orange-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.headline .line { display: block; overflow-x: visible; overflow-y: clip; padding-block: 0.04em; white-space: nowrap; }

.headline .word {
  display: inline-block;
  transform: translateY(110%) rotate(4deg);
  animation: rise 0.9s var(--ease) forwards;
}

.headline .line:nth-child(1) .word:nth-child(1) { animation-delay: 0.1s; }
.headline .line:nth-child(1) .word:nth-child(2) { animation-delay: 0.18s; }
.headline .line:nth-child(2) .word:nth-child(1) { animation-delay: 0.32s; }
.headline .line:nth-child(2) .word:nth-child(2) { animation-delay: 0.4s; }
.headline .line:nth-child(3) .word:nth-child(1) { animation-delay: 0.54s; }
.headline .line:nth-child(3) .word:nth-child(2) { animation-delay: 0.62s; }

@keyframes rise {
  to { transform: none; }
}

.lede, .sub {
  max-width: 54ch;
  margin: 22px 0 0;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--muted);
}

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

.hero {
  width: var(--wrap);
  min-height: 100svh;
  margin: 0 auto;
  padding: 130px 0 60px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 24px;
}

.hero-copy { position: relative; z-index: 1; min-width: 0; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.proof li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  vertical-align: middle;
  background: var(--orange);
  rotate: 45deg;
}

.hero-art {
  position: relative;
  z-index: 2;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
}

.halo {
  position: absolute;
  width: 88%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 154, 60, 0.3), rgba(92, 72, 170, 0.34) 45%, transparent 68%);
  filter: blur(18px);
  animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
  50% { transform: scale(1.08); opacity: 0.8; }
}

.orbit {
  position: absolute;
  width: 96%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  transform: rotateX(68deg) rotateZ(0deg);
  animation: spin 18s linear infinite;
}

.orbit-b {
  width: 74%;
  border-color: rgba(255, 154, 60, 0.28);
  animation-duration: 11s;
  animation-direction: reverse;
}

.orbit i {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 18px 4px rgba(255, 154, 60, 0.8);
}

@keyframes spin {
  to { transform: rotateX(68deg) rotateZ(360deg); }
}

.detective {
  opacity: 0;
  animation: arrive 1.1s 0.35s var(--ease) forwards;
}

@keyframes arrive {
  from { opacity: 0; scale: 0.9; filter: blur(14px) brightness(2); }
  to { opacity: 1; scale: 1; }
}

.chip {
  position: absolute;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(16, 12, 38, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.7);
  opacity: 0;
  animation: pop 0.6s var(--spring) forwards;
}

.chip b { margin-right: 6px; font-family: var(--display); font-weight: 400; color: var(--orange); }
.chip-a { top: 16%; left: -4%; animation-delay: 1.1s; }
.chip-b { bottom: 22%; right: -2%; animation-delay: 1.3s; }
.chip-c { top: 8%; right: 6%; animation-delay: 1.5s; background: var(--orange); color: #1c0f02; border-color: transparent; }

@keyframes pop {
  from { opacity: 0; scale: 0.6; }
  to { opacity: 1; scale: 1; }
}

/* ---------- framed portrait: the head breaks out of the top, the frame and the fog hide the cut ---------- */

.portrait {
  --r: 34px;
  position: relative;
  width: 100%;
  margin: 0;
  display: grid;
  justify-items: center;
  align-items: end;
}

.portrait-bg {
  position: absolute;
  inset: 20% 0 0 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r);
  background:
    radial-gradient(70% 60% at 50% 100%, rgba(255, 154, 60, 0.28), transparent 70%),
    linear-gradient(180deg, rgba(92, 72, 170, 0.5), rgba(22, 15, 52, 0.55)),
    url("assets/starfield.jpg") center / cover;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.portrait-clip {
  position: relative;
  width: 100%;
  display: grid;
  justify-items: center;
  clip-path: inset(-60% 1px 1px 1px round 0 0 var(--r) var(--r));
}

.portrait-clip img {
  width: 90%;
  filter: drop-shadow(0 0 30px rgba(255, 154, 60, 0.2));
}

.portrait-fog {
  position: absolute;
  inset: auto 1px 1px 1px;
  height: 30%;
  border-radius: 0 0 var(--r) var(--r);
  background: linear-gradient(transparent, rgba(18, 12, 44, 0.55) 55%, rgba(18, 12, 44, 0.96));
  overflow: hidden;
  pointer-events: none;
}

.portrait-fog::before, .portrait-fog::after {
  content: "";
  position: absolute;
  inset: 30% -40% -60% -40%;
  background:
    radial-gradient(22% 60% at 18% 60%, rgba(143, 124, 240, 0.55), transparent 70%),
    radial-gradient(26% 70% at 46% 70%, rgba(255, 154, 60, 0.4), transparent 70%),
    radial-gradient(22% 60% at 76% 55%, rgba(143, 124, 240, 0.5), transparent 70%);
  filter: blur(14px);
  animation: fog 14s ease-in-out infinite alternate;
}

.portrait-fog::after { animation-duration: 21s; animation-direction: alternate-reverse; opacity: 0.7; }

@keyframes fog {
  from { transform: translateX(-12%); }
  to { transform: translateX(12%); }
}

.portrait figcaption {
  position: absolute;
  left: 50%;
  bottom: 18px;
  translate: -50% 0;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 11, 20, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
}

.portrait-hero { width: min(100%, 500px); }

/* ---------- about the channel ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
}

.yt-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding: 10px 12px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  text-decoration: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), border-color 0.3s, background 0.3s;
}

.yt-card:hover { border-color: rgba(255, 154, 60, 0.6); background: rgba(34, 22, 78, 0.8); }
.yt-card img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--bg-2); border: 1.5px solid var(--orange); }
.yt-meta { display: grid; line-height: 1.25; }
.yt-meta b { font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--white); }
.yt-meta span { font-size: 14px; color: var(--muted); }

.yt-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffb25e, var(--orange) 45%, var(--orange-deep));
  color: #1c0f02;
  font-weight: 700;
  font-size: 14px;
}

.yt-cta svg { width: 16px; height: 16px; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(40px, 6vw, 72px);
}

.pillar {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pillar-n { font-family: var(--display); font-size: 20px; color: var(--orange); }

.pillar h3 {
  margin: 6px 0 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
}

.pillar p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(22, 15, 52, 0.5);
  rotate: -1.2deg;
  margin: 30px -2% 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  padding: 16px 0;
  animation: slide 28s linear infinite;
}

.marquee span {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 38px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

.marquee span:nth-of-type(odd) { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.55); }
.marquee span:first-of-type, .marquee span:nth-of-type(7) { color: var(--orange); -webkit-text-stroke: 0; }

.marquee i {
  width: 10px;
  height: 10px;
  background: var(--orange);
  rotate: 45deg;
}

@keyframes slide {
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section {
  width: var(--wrap);
  margin: 0 auto;
  padding: clamp(90px, 12vw, 160px) 0 0;
}

.section-head { margin-bottom: clamp(36px, 5vw, 64px); }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.in { opacity: 1; transform: none; }

/* ---------- method ---------- */

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}

.method-art {
  position: sticky;
  top: 110px;
  align-self: start;
}

.steps {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.8s var(--ease), transform 0.5s var(--ease), border-color 0.3s, background 0.3s;
}

.step:hover {
  transform: translateX(8px);
  border-color: rgba(255, 154, 60, 0.6);
  background: rgba(34, 22, 78, 0.8);
}

.step-n {
  font-family: var(--display);
  font-size: 54px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--orange);
  transition: color 0.3s;
}

.step:hover .step-n { color: var(--orange); }

.step h3 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
}

.step p { margin: 0; font-size: 15.5px; color: var(--muted); }

.step-tool, .card-tool {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

/* ---------- email gate ---------- */

.gate {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px 22px;
  margin-bottom: 26px;
  padding: 24px 26px;
  border: 1px solid rgba(255, 154, 60, 0.55);
  border-radius: 26px;
  background: linear-gradient(120deg, rgba(255, 154, 60, 0.18), var(--card) 55%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gate.nudge { animation: nudge-x 0.5s var(--ease); }

@keyframes nudge-x {
  20% { translate: -8px 0; }
  40% { translate: 8px 0; }
  60% { translate: -5px 0; }
  80% { translate: 4px 0; }
}

.gate-lock {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--orange);
  color: #1c0f02;
}

.gate-lock svg { width: 26px; height: 26px; }

.gate h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
}

.gate p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }

.gate-field {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 5, 12, 0.6);
  transition: border-color 0.2s;
}

.gate-field:focus-within { border-color: var(--orange); }

.gate-field input {
  width: min(280px, 44vw);
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: 16px;
  color: var(--white);
}

.gate-field input::placeholder { color: var(--muted); }
.gate-field .btn:disabled { opacity: 0.6; cursor: progress; }

/* a field no person sees; the backend drops whoever fills it */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.gate-error { grid-column: 1 / -1; margin: 0; font-size: 14px; font-weight: 600; color: #ff8f8f; }
.gate-error:empty { display: none; }

.unlocked-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.card.locked .card-pre {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.card.locked .card-pre code { filter: blur(5px); opacity: 0.7; }
.card.locked .copy { background: rgba(255, 255, 255, 0.08); color: var(--white); box-shadow: none; border: 1px solid var(--line); }
.copy .i-lock { display: none; }
.card.locked .copy .i-lock { display: block; }
.card.locked .copy .i-copy { display: none; }

/* ---------- toolbar ---------- */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; }

.filter {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s var(--spring);
}

.filter:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.3); }
.filter:active { transform: scale(0.94); }
.filter[aria-pressed="true"] { background: var(--white); border-color: var(--white); color: #120d28; }

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(280px, 100%);
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  transition: border-color 0.2s, background 0.2s;
}

.search:focus-within { border-color: var(--orange); background: rgba(255, 255, 255, 0.07); }
.search svg { width: 18px; height: 18px; flex: none; }

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  color: var(--white);
}

.search input::placeholder { color: var(--muted); }

/* ---------- cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), border-color 0.3s;
  transition-delay: var(--d, 0s);
}

.card.in { opacity: 1; transform: none; }
.card.gone { display: none; }
.card:hover { border-color: rgba(255, 154, 60, 0.45); }
.card.done { border-color: var(--orange); }

.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 154, 60, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.card:hover .card-glow { opacity: 1; }
.card > :not(.card-glow) { position: relative; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-n {
  font-family: var(--display);
  font-size: 44px;
  line-height: 1;
  color: var(--orange);
}

.card-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
}

.card-sum { margin: 10px 0 0; font-size: 15.5px; color: var(--muted); }

.card-fill {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.card-fill:empty { display: none; }

.card-fill li, .ph {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 154, 60, 0.16);
  color: #ffc48a;
  font-family: var(--mono);
  font-size: 12px;
}

mark.ph { font-size: 0.82em; }

.card-body { position: relative; margin: 18px 0; flex: 1; }

.card-pre {
  margin: 0;
  max-height: 190px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(5, 5, 12, 0.72);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  color: #cfcbe6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow: hidden;
  cursor: copy;
  user-select: text;
  -webkit-user-select: text;
  transition: max-height 0.5s var(--ease), border-color 0.2s;
}

.card-pre:hover { border-color: rgba(255, 255, 255, 0.25); }
.card-pre .ph { padding: 0 4px; font-size: inherit; }

.card.open .card-pre { max-height: 62vh; overflow: auto; }

.card-body::after {
  content: "";
  position: absolute;
  inset: auto 1px 1px 1px;
  height: 90px;
  border-radius: 0 0 15px 15px;
  background: linear-gradient(transparent, rgba(5, 5, 12, 0.96));
  pointer-events: none;
  transition: opacity 0.3s;
}

.card.open .card-body::after { opacity: 0; }

.card-more {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 1;
  translate: -50% 0;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(22, 15, 52, 0.92);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.card-more:hover { background: var(--violet); border-color: transparent; }
.card.open .card-more { position: static; translate: none; display: block; margin: 10px auto 0; }

.copy {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffb25e, var(--orange) 45%, var(--orange-deep));
  color: #1c0f02;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 28px -12px rgba(255, 122, 43, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.2s var(--spring), filter 0.2s, background 0.3s, color 0.3s;
}

.copy:hover { filter: brightness(1.08); transform: translateY(-2px); }
.copy:active { transform: scale(0.97); }
.copy svg { width: 20px; height: 20px; }
.copy .i-ok { display: none; }

.copy.ok {
  background: var(--white);
  color: #120d28;
  animation: thump 0.45s var(--spring);
}

.copy.ok .i-copy { display: none; }
.copy.ok .i-ok { display: block; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.35s 0.05s ease-out forwards; }

@keyframes thump {
  0% { transform: scale(0.94); }
  60% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.spark {
  position: fixed;
  z-index: 90;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--orange);
  pointer-events: none;
}

.empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* ---------- tools ---------- */

.tool-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  margin-bottom: 18px;
  padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid rgba(255, 154, 60, 0.6);
  border-radius: 30px;
  background:
    radial-gradient(60% 140% at 0% 0%, rgba(255, 154, 60, 0.26), transparent 60%),
    linear-gradient(120deg, rgba(92, 72, 170, 0.4), var(--card));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
  box-shadow: 0 30px 80px -40px rgba(255, 122, 43, 0.7);
  transition: opacity 0.8s var(--ease), transform 0.4s var(--ease), box-shadow 0.3s;
}

.tool-hero:hover { transform: translateY(-4px); box-shadow: 0 40px 90px -36px rgba(255, 122, 43, 0.95); }
.tool-hero img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.9); }

.tool-hero h3 {
  margin: 4px 0 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  background: linear-gradient(95deg, #ffc27a 0%, var(--orange) 40%, var(--orange-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tool-hero p:last-child { margin: 0; max-width: 56ch; color: var(--text); }
.tool-hero .tool-role { margin: 0; }
.tool-hero .btn { white-space: nowrap; }

.tool-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  perspective: 1200px;
}

.tool {
  position: relative;
  grid-column: span 3;
  display: block;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
  transform-style: preserve-3d;
  transition: opacity 0.8s var(--ease), transform 0.25s var(--ease), border-color 0.3s;
}

.tool:nth-child(n + 5) { grid-column: span 4; }
.tool:hover { border-color: rgba(255, 154, 60, 0.5); }

.tool img, .tool-mark {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 18px;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.8);
}

.tool-mark {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 34px;
  color: var(--white);
}

.tool-mark svg { width: 36px; height: 36px; }
.tool img.on-white { padding: 10px; background: #ffffff; }
.m-flow { background: linear-gradient(135deg, #1a73e8, #34a853); }
.m-eleven { background: #ffffff; color: #0b0b14; letter-spacing: 0.08em; }
.m-git { background: #1b1f27; border: 1px solid var(--line); }

.tool h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
}

.tool-role { margin: 8px 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); }
.tool p:last-of-type { margin: 0; font-size: 15.5px; color: var(--muted); }

.go { width: 18px; height: 18px; }
.tool .go { position: absolute; top: 26px; right: 26px; color: var(--muted); transition: color 0.2s, transform 0.3s var(--spring); }
.tool:hover .go { color: var(--orange); transform: translate(3px, -3px); }

/* ---------- outro ---------- */

.outro {
  width: var(--wrap);
  margin: clamp(90px, 12vw, 160px) auto 0;
  padding: clamp(30px, 5vw, 60px) clamp(24px, 5vw, 70px) 0;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: end;
  gap: clamp(20px, 4vw, 60px);
  border: 1px solid var(--line);
  position: relative;
  border-radius: 36px;
  background:
    radial-gradient(60% 90% at 20% 100%, rgba(255, 154, 60, 0.2), transparent 70%),
    linear-gradient(160deg, rgba(92, 72, 170, 0.35), rgba(22, 15, 52, 0.7));
  overflow: hidden;
}

.outro-art { position: relative; align-self: end; max-height: 520px; width: auto; margin-inline: auto; }

.outro-fog {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  height: 120px;
  background: linear-gradient(transparent, rgba(16, 11, 40, 0.9));
  pointer-events: none;
}

.outro-copy { position: relative; z-index: 2; }
.outro-copy { padding-bottom: clamp(30px, 5vw, 60px); }

.footer {
  width: var(--wrap);
  margin: 0 auto;
  padding: 40px 0 50px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- cookie bar ---------- */

.consent {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 95;
  translate: -50% 0;
  width: min(720px, calc(100% - 32px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 16px 18px 16px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(16, 12, 38, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.9);
}

.consent p { flex: 1 1 280px; margin: 0; font-size: 14.5px; color: var(--text); }
.consent-actions { display: flex; gap: 8px; }
.consent .btn { min-width: 110px; padding: 11px 18px; font-size: 14px; }

.linklike {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  translate: -50% 140%;
  opacity: 0;
  pointer-events: none;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--white);
  color: #120d28;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8);
  transition: translate 0.45s var(--spring), opacity 0.3s;
}

.toast.show { translate: -50% 0; opacity: 1; }

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

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; text-align: left; }
  .hero-art { order: -1; max-width: 380px; width: 100%; margin: 0 auto; aspect-ratio: auto; padding-top: 20px; }
  .method-grid { grid-template-columns: 1fr; }
  .method-art { position: relative; top: 0; max-width: 320px; margin: 0 auto; }
  .grid, .tool-row, .pillars, .about { grid-template-columns: 1fr; }
  .tool-row { grid-template-columns: 1fr; }
  .tool, .tool:nth-child(n + 5) { grid-column: auto; }
  .tool-hero { grid-template-columns: 1fr; justify-items: start; }
  .about .portrait { max-width: 340px; margin: 0 auto; }
  .outro { grid-template-columns: 1fr; }
  .outro-art { order: 2; max-height: 340px; }
  .outro-copy { padding-bottom: 0; }
}

@media (max-width: 640px) {
  :root { --wrap: calc(100% - 32px); }
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav .btn-small { margin-left: auto; }
  .step { grid-template-columns: auto 1fr; gap: 16px; padding: 18px; }
  .step-tool { grid-column: 2; justify-self: start; }
  .step-n { font-size: 40px; }
  .card { padding: 20px; border-radius: 22px; }
  .chip-a { left: 0; }
  .chip-b { right: 0; }
  .search { width: 100%; }
  .gate { grid-template-columns: auto 1fr; padding: 20px; }
  .gate-field { grid-column: 1 / -1; }
  .gate-field input { width: 100%; flex: 1; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .card, .detective { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
