/* ==========================================================================
   Dopamine Talk — Unboxed Open Editorial Canvas + True Optical Liquid Glass
   Zero boxes-in-boxes, live WebGL optical crystal sculpture, real verbatim A/B
   with "In short" morph, official agent logos, and Awwwards monolith footer.
   ========================================================================== */

:root {
  --bg: #030406;
  --hairline: rgba(255, 255, 255, 0.09);
  --hairline-strong: rgba(255, 255, 255, 0.18);

  --ink: #f6f8fc;
  --ink-secondary: #a1a8b7;
  --ink-muted: #5d6473;
  --ruby: #c92639;
  --mint: #4ade80;

  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans-ru: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-serif-ru: "Cormorant Garamond", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1120px;
  --gutter: clamp(22px, 5vw, 56px);
  --r-pill: 999px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.2, 0, 0, 1);
}

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

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.20) #030406;
}

/* Smoked-Obsidian & Liquid-Chrome Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #030406;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2.5px solid #030406;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.30) 0%, rgba(196, 206, 224, 0.18) 100%);
  background-clip: padding-box;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58) 0%, rgba(201, 38, 57, 0.52) 100%);
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #ffffff 0%, #c92639 100%);
  background-clip: padding-box;
}

::-webkit-scrollbar-corner {
  background: #030406;
}

/* Antigravity tilted cursor Easter Egg mode */
html.ag-cursor-mode,
html.ag-cursor-mode * {
  cursor: var(--ag-cursor), auto !important;
}

html[lang="ru"] {
  font-family: var(--font-sans-ru);
  font-feature-settings: "cv01" 1, "ss01" 1;
}

html[lang="ru"] .serif-accent {
  font-family: var(--font-serif-ru);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.015em;
  font-size: 1.12em;
}

html[lang="ru"] .hero-h1 {
  font-size: clamp(42px, 5.9vw, 82px);
  line-height: 0.99;
  letter-spacing: -0.036em;
}

html[lang="ru"] .act-h2 {
  max-width: 22ch;
  font-size: clamp(32px, 4.35vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.032em;
}

html[lang="ru"] .aw-headline {
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.036em;
}

html[lang="ru"] .skill-name,
html[lang="ru"] .skill-lead {
  letter-spacing: -0.024em;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: clip;
}

::selection {
  background: rgba(201, 38, 57, 0.36);
  color: #ffffff;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  transition: top 0.18s var(--ease-out);
}
.skip-link:focus {
  top: 16px;
}

.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   TRUE LIQUID GLASS SURFACE (Crystal-clear refractive lens, NOT frosted mist)
   ========================================================================== */
.lg-lens {
  position: relative;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 20px 54px rgba(0, 0, 0, 0.56),
    inset 0 1px 1px rgba(255, 255, 255, 0.48),
    inset 0 -1px 1px rgba(255, 255, 255, 0.10),
    inset 1px 0 1px rgba(255, 255, 255, 0.18),
    inset -1px 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
}

.lg-lens::after {
  content: "";
  position: absolute;
  inset: 1px 14px auto 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42) 35%, rgba(255, 255, 255, 0.55) 50%, transparent);
  pointer-events: none;
  border-radius: 1px;
}

/* True WebGL Dark Glass (@ybouane/liquidglass) takes full ownership of surface + shadow */
.lg-webgl-canvas {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.lg-lens.is-lg-webgl {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible;
}

.lg-lens.is-lg-webgl::after {
  display: none;
}

.lg-lens.is-lg-webgl > *:not(.lg-webgl-canvas):not(.seg-thumb) {
  position: relative;
  z-index: 2;
}

.lg-lens.is-lg-webgl > .seg-thumb {
  z-index: 1;
}

/* ==========================================================================
   Floating Liquid-Glass Navbar with Real Glossy 3D Crystal App Icon
   ========================================================================== */
.nav-wrap {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding-inline: 16px;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: min(100%, 670px);
  padding: 6px 8px 6px 8px;
  background: rgba(6, 8, 12, 0.62);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 4px;
  font-size: 14px;
  font-weight: 560;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Real 3D crystal icon framed cleanly as an optical macOS/iOS squircle */
.nav-icon-wrap {
  position: relative;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  overflow: hidden;
  background: #040507;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.65),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.nav-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.26);
  filter: contrast(1.08) saturate(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 6px 12px;
  font-size: 13.5px;
  font-weight: 450;
  color: rgba(246, 248, 252, 0.70);
  border-radius: var(--r-pill);
  transition: color 0.16s var(--ease-snap), background-color 0.16s var(--ease-snap);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Sliding Liquid Glass Segmented Toggle */
.seg-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.seg-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(226, 232, 242, 0.90));
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.32), inset 0 1px 0 #ffffff;
  transition: transform 0.28s var(--ease-out), width 0.28s var(--ease-out);
  pointer-events: none;
}

.seg-pill button {
  position: relative;
  z-index: 1;
  height: 28px;
  padding: 0 11px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  font-size: 12.5px;
  font-weight: 540;
  color: rgba(246, 248, 252, 0.74);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.16s var(--ease-snap), transform 0.12s var(--ease-snap);
}

.seg-pill button.is-on {
  color: #050608;
}

.seg-pill button:active {
  transform: scale(0.96);
}

.seg-pill--lg button {
  height: 36px;
  padding: 0 17px;
  font-size: 13.5px;
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  transition: background-color 0.16s var(--ease-snap), transform 0.12s var(--ease-snap);
}

.icon-circle:hover {
  background: rgba(255, 255, 255, 0.14);
}

.icon-circle:active {
  transform: scale(0.96);
}

.icon-circle img {
  width: 16px;
  height: 16px;
}

/* Liquid Chrome Primary Button */
.btn-chrome {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  border: 0;
  background: linear-gradient(180deg, #ffffff 0%, #dee4ef 100%);
  color: #050608;
  font-size: 14.5px;
  font-weight: 560;
  letter-spacing: -0.015em;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.52), inset 0 1px 0 #ffffff;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.14s var(--ease-snap), filter 0.18s var(--ease-out);
}

.btn-chrome:hover {
  filter: brightness(1.06);
}

.btn-chrome:active {
  transform: scale(0.96);
}

.link-subtle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  font-size: 14.5px;
  font-weight: 480;
  color: var(--ink-secondary);
  transition: color 0.16s var(--ease-snap);
}

.link-subtle:hover {
  color: #ffffff;
}

.link-subtle svg {
  transition: transform 0.18s var(--ease-out);
}

.link-subtle:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   Right-Edge Minimal Chapter Tick Ruler
   ========================================================================== */
.scroll-ruler {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.scroll-ruler button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.scroll-ruler .tick-label {
  font-size: 11px;
  color: var(--ink-muted);
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out), color 0.18s var(--ease-out);
  white-space: nowrap;
}

.scroll-ruler:hover .tick-label,
.scroll-ruler button.is-active .tick-label {
  opacity: 1;
  transform: translateX(0);
}

.scroll-ruler button.is-active .tick-label {
  color: var(--ink);
}

.scroll-ruler .tick-bar {
  width: 10px;
  height: 1.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
  transition: width 0.24s var(--ease-out), background-color 0.22s var(--ease-out);
}

.scroll-ruler button.is-active .tick-bar {
  width: 24px;
  background: var(--ink);
}

/* ==========================================================================
   ACT I — OPEN SCULPTURAL HERO + LIVE GPU CRYSTAL SHADER
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: clamp(100px, 12vh, 134px);
  overflow: hidden;
  isolation: isolate;
}

.hero-canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(62% 52% at 24% 40%, rgba(135, 18, 34, 0.18) 0%, transparent 66%),
    var(--bg);
}

.hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.72;
}

.shader-pause {
  position: absolute;
  right: 22px;
  bottom: 62px;
  z-index: 20;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.16s var(--ease-snap), border-color 0.16s var(--ease-snap), transform 0.12s var(--ease-snap);
}
.shader-pause:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.3);
}
.shader-pause:active {
  transform: scale(0.96);
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 5.2fr) minmax(0, 6.8fr);
  gap: clamp(20px, 3.6vw, 48px);
  align-items: center;
  flex: 1;
  padding-block: clamp(12px, 2.5vh, 32px);
}

.hero-copy {
  min-width: 0;
  max-width: 100%;
}

.hero-eyebrow {
  margin: 0 0 18px;
  font-size: 13.5px;
  font-weight: 480;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(10px);
  animation: enterUp 0.65s var(--ease-out) 0.05s forwards;
}

.hero-h1 {
  margin: 0;
  font-size: clamp(44px, 6.4vw, 88px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.05em;
  text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 35%, #c5ccd9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(16px);
  animation: enterUp 0.78s var(--ease-out) 0.14s forwards;
}

.hero-h1 .serif-accent {
  font-size: 1.09em;
  background: linear-gradient(180deg, #ffffff 20%, #e4d8dc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 22px 0 0;
  max-width: 38ch;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.5;
  color: var(--ink-secondary);
  text-wrap: pretty;
  opacity: 0;
  transform: translateY(14px);
  animation: enterUp 0.75s var(--ease-out) 0.24s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  opacity: 0;
  transform: translateY(14px);
  animation: enterUp 0.75s var(--ease-out) 0.34s forwards;
}

.cmd-lens {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  max-width: min(100%, 440px);
  min-width: 0;
  padding: 0 7px 0 18px;
}

.cmd-lens .prompt-dollar {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-muted);
  user-select: none;
  flex: none;
}

.cmd-lens code {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-icon-btn {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.16s var(--ease-snap), transform 0.12s var(--ease-snap);
}

.copy-icon-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.copy-icon-btn:active {
  transform: scale(0.96);
}

.copy-icon-btn svg {
  position: absolute;
  width: 15px;
  height: 15px;
  transition: opacity 0.24s var(--ease-snap), transform 0.24s var(--ease-snap), filter 0.24s var(--ease-snap);
}

.copy-icon-btn .ico-check {
  color: var(--mint);
  opacity: 0;
  transform: scale(0.25);
  filter: blur(4px);
}

.copy-icon-btn.is-copied .ico-copy {
  opacity: 0;
  transform: scale(0.25);
  filter: blur(4px);
}

.copy-icon-btn.is-copied .ico-check {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

/* Live Real-Time WebGL Crystal Glass Sculpture Stage */
.hero-sculpture {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  animation: sculptureEnter 1.05s var(--ease-out) 0.18s forwards;
}

.hero-sculpture-frame {
  position: relative;
  width: min(100%, 740px);
  aspect-ratio: 1408 / 768;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-sculpture-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(closest-side at 50% 50%, #000 62%, transparent 99%);
  mask-image: radial-gradient(closest-side at 50% 50%, #000 62%, transparent 99%);
  user-select: none;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}

/* Once real-time WebGL optical crystal shader uploads, live canvas takes over cleanly */
.hero-sculpture-frame.is-live-gl img {
  opacity: 0;
}

.crystal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.hero-floor {
  border-top: 1px solid var(--hairline);
  padding: 18px 0;
}

.hero-floor-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  font-size: 13px;
  color: var(--ink-muted);
}

.hero-floor-row strong {
  color: var(--ink-secondary);
  font-weight: 500;
}

@keyframes enterUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sculptureEnter {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   Editorial Section Rhythm
   ========================================================================== */
.act {
  position: relative;
  padding-block: clamp(96px, 14vh, 160px);
  border-top: 1px solid var(--hairline);
}

.act-h2 {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 60px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
  max-width: 19ch;
}

.act-h2 .dim {
  color: var(--ink-muted);
}

/* ==========================================================================
   ACT II — REAL VERBATIM EXAMPLES + "IN SHORT" MORPH TOGGLE
   ========================================================================== */
.practice-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(40px, 5.5vh, 64px);
}

.practice-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Tactile "In short" / "Коротко" Liquid Glass Toggle Pill */
.short-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  font-size: 13.5px;
  font-weight: 520;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: color 0.18s var(--ease-snap), background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.12s var(--ease-snap);
}

.short-toggle:hover {
  color: #ffffff;
}

.short-toggle:active {
  transform: scale(0.96);
}

.short-toggle .short-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transition: background-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.short-toggle[aria-pressed="true"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(226, 232, 242, 0.90));
  color: #050608;
  border-color: #ffffff;
}

.short-toggle.is-lg-webgl[aria-pressed="true"] {
  color: #ffffff;
}

.short-toggle[aria-pressed="true"] .short-dot {
  background: var(--ruby);
  box-shadow: 0 0 10px rgba(201, 38, 57, 0.85);
}

.prompt-strip {
  margin: 0 0 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
  font-size: 14.5px;
  color: var(--ink-muted);
  max-width: 78ch;
}

.prompt-strip strong {
  color: var(--ink-secondary);
  font-weight: 520;
  margin-right: 8px;
}

.compare-open {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: clamp(28px, 4.5vw, 60px);
  align-items: start;
}

.compare-divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.16) 15%, rgba(201, 38, 57, 0.42) 85%, transparent);
}

.compare-col {
  min-width: 0;
  will-change: transform;
}

.compare-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 540;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.compare-col--after .compare-label {
  color: #ffffff;
}

.compare-label .ruby-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ruby);
  box-shadow: 0 0 10px rgba(201, 38, 57, 0.7);
}

.compare-prose {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-secondary);
  text-wrap: pretty;
  animation: fadeSwap 0.28s var(--ease-out);
}

.compare-col--before .compare-prose {
  color: #828998;
}

.compare-col--after .compare-prose {
  color: #e4e8f2;
}

.compare-prose p {
  margin: 0 0 14px;
}

.compare-prose p:last-child {
  margin-bottom: 0;
}

.compare-prose ul {
  margin: 0 0 16px;
  padding-left: 18px;
}

.compare-prose li {
  margin-bottom: 9px;
}

.compare-prose strong {
  color: #ffffff;
  font-weight: 560;
}

.compare-col--before .compare-prose strong {
  color: #bcc2d0;
}

.compare-prose .struck {
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.24);
  opacity: 0.72;
}

.code-path {
  font-family: var(--font-mono);
  font-size: 0.84em;
  color: #9ba3b4;
}

/* Native Open Hairline Table inside Verbatim Real Replies */
.verbatim-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 16px;
  font-size: 14px;
}

.verbatim-table th,
.verbatim-table td {
  padding: 8px 10px 8px 0;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}

.verbatim-table th {
  font-size: 11.5px;
  font-weight: 540;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.verbatim-table td:last-child {
  color: #ffffff;
  font-weight: 560;
}

/* Native Condensed Real README Preview Elements */
.readme-h1 {
  margin: 0 0 8px !important;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.readme-hero-mini {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 12px;
}

.readme-hero-icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  overflow: hidden;
  background: #040507;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.readme-hero-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.24);
}

.readme-hero-title {
  display: block;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #ffffff;
}

.readme-hero-sub {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-secondary);
}

.readme-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
}

.readme-meta-strip span strong {
  color: #ffffff;
  font-weight: 560;
}

.readme-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 16px;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.readme-kpi-row div strong {
  display: block;
  font-size: 15px;
  font-weight: 580;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.readme-kpi-row div span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--ink-muted);
}

.readme-quote {
  margin: 14px 0 !important;
  padding-left: 14px;
  border-left: 2px solid rgba(255, 255, 255, 0.24);
  font-style: italic;
  color: #d6dce8;
}

.readme-warn {
  margin: 14px 0 !important;
  padding-left: 14px;
  border-left: 2px solid rgba(201, 38, 57, 0.65);
  font-size: 14px;
  color: var(--ink-secondary);
}

.readme-cmd {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 640px) {
  .readme-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.compare-takeaway {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 20px 34px;
}

.compare-takeaway:empty {
  display: none;
}

.takeaway-item strong {
  display: block;
  font-size: 22px;
  font-weight: 520;
  letter-spacing: -0.035em;
  color: #ffffff;
}

.takeaway-item span {
  display: block;
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.compare-col--before .takeaway-item strong {
  color: var(--ink-secondary);
}

@keyframes fadeSwap {
  from { opacity: 0.2; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   ACT III — THREE SKILLS IN OPEN EDITORIAL ROWS
   ========================================================================== */
.skill-list {
  margin-top: clamp(44px, 6vh, 72px);
  border-top: 1px solid var(--hairline);
}

.skill-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 4.2fr) minmax(0, 6.8fr);
  gap: clamp(16px, 3vw, 40px);
  align-items: baseline;
  padding-block: clamp(32px, 4.5vh, 48px);
  border-bottom: 1px solid var(--hairline);
  transition: border-color 0.24s var(--ease-out);
}

.skill-row:hover {
  border-bottom-color: rgba(255, 255, 255, 0.24);
}

.skill-idx {
  font-size: 13px;
  font-weight: 520;
  color: var(--ink-muted);
  transition: color 0.2s var(--ease-out);
}

.skill-row:hover .skill-idx {
  color: #ffffff;
}

.skill-name {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 520;
  letter-spacing: -0.035em;
  color: #ffffff;
  transition: transform 0.24s var(--ease-out);
}

.skill-row:hover .skill-name {
  transform: translateX(6px);
}

.skill-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-lead {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 480;
  letter-spacing: -0.02em;
  color: #f0f3fa;
}

.skill-detail {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-secondary);
  max-width: 54ch;
}

.notes-open {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  margin-top: clamp(48px, 6.5vh, 76px);
}

.note-col h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 540;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.note-col p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 46ch;
}

.note-col--honest {
  padding-left: 22px;
  border-left: 2px solid rgba(201, 38, 57, 0.55);
}

.gemini-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink);
}

.gemini-inline img {
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   ACT IV — UNBOXED AGENT LOGOS (Clean Codex, Real Antigravity, Separate +11)
   ========================================================================== */
.agent-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(22px, 3.4vw, 44px) clamp(26px, 3.8vw, 52px);
  margin-top: clamp(40px, 5.5vh, 64px);
}

.agent-item {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink-secondary);
  font-size: 15px;
  font-weight: 480;
  letter-spacing: -0.015em;
  opacity: 0.84;
  transition: opacity 0.2s var(--ease-out), transform 0.22s var(--ease-out), color 0.2s var(--ease-out);
}

.agent-item:hover {
  opacity: 1;
  color: #ffffff;
  transform: translateY(-2px);
}

.agent-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Interactive Easter Egg Trigger on Antigravity Logo */
.agent-item--egg {
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
}

.agent-item--egg img {
  transition: transform 0.32s var(--ease-out), filter 0.25s var(--ease-out);
}

.agent-item--egg.is-egg-on {
  opacity: 1;
  color: #ffffff;
}

.agent-item--egg.is-egg-on img {
  transform: rotate(-28deg) scale(1.16);
  filter: drop-shadow(0 0 10px rgba(72, 148, 255, 0.55));
}

/* Standalone "+11 more" label — completely independent from Antigravity hover */
.agent-more {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  font-size: 13px;
  font-weight: 480;
  color: var(--ink-muted);
  letter-spacing: -0.01em;
}

.install-open {
  margin-top: clamp(52px, 7vh, 80px);
}

.install-bar-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.install-hosts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.install-hosts button {
  padding: 6px 0;
  border: 0;
  border-bottom: 1.5px solid transparent;
  background: transparent;
  font-size: 14.5px;
  font-weight: 480;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.16s var(--ease-snap), border-color 0.2s var(--ease-out);
}

.install-hosts button:hover {
  color: var(--ink-secondary);
}

.install-hosts button.is-on {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.install-lens {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 12px 12px 24px;
  border-radius: 22px;
}

.install-lens code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  color: #ffffff;
}

/* ==========================================================================
   ACT V — AWWWARDS-LEVEL MONOLITH FOOTER + LIVE LIQUID-GLASS OPTICAL LOUPE
   ========================================================================== */
.aw-footer {
  position: relative;
  border-top: 1px solid var(--hairline);
  padding-top: clamp(88px, 12vh, 144px);
  overflow: hidden;
  isolation: isolate;
}

.aw-footer-glow {
  position: absolute;
  left: 50%;
  bottom: -26%;
  width: min(124vw, 1520px);
  height: 76vh;
  transform: translateX(-50%) scale(var(--finale-scale, 0.92));
  border-radius: 50%;
  background:
    radial-gradient(50% 56% at 50% 66%, rgba(176, 22, 42, 0.36) 0%, rgba(190, 202, 226, 0.08) 46%, transparent 74%);
  filter: blur(60px);
  opacity: var(--finale-opacity, 0.72);
  pointer-events: none;
  z-index: -1;
  will-change: transform, opacity;
}

.aw-top {
  display: grid;
  grid-template-columns: minmax(0, 6.5fr) minmax(0, 5.5fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: end;
}

.aw-headline {
  margin: 0;
  font-size: clamp(40px, 5.8vw, 76px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.aw-headline .dim-line {
  display: block;
  color: rgba(246, 248, 252, 0.36);
}

.aw-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 30px;
}

.aw-nav-cols {
  display: grid;
  grid-template-columns: minmax(154px, 1.05fr) minmax(132px, 0.95fr) minmax(190px, 1.35fr);
  gap: 24px;
  align-items: start;
}

.aw-col-title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 540;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.aw-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aw-col a {
  font-size: 14.5px;
  color: var(--ink-secondary);
  transition: color 0.16s var(--ease-snap), transform 0.18s var(--ease-out);
  display: inline-block;
}

.aw-col a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.aw-origin-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.back-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.14s var(--ease-snap);
}

.back-top-btn:active {
  transform: scale(0.96);
}

/* Giant Edge-to-Edge Liquid-Chrome Monolith + Interactive Liquid-Glass Optical Loupe */
.monolith-stage {
  position: relative;
  margin-top: clamp(28px, 4.5vh, 56px);
  padding: clamp(58px, 6.8vw, 94px) var(--gutter) clamp(46px, 5vw, 72px);
  text-align: center;
  overflow: visible;
  user-select: none;
  cursor: default;
}

.monolith-word {
  margin: 0;
  font-size: clamp(32px, 10.8vw, 174px);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.058em;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(214, 222, 238, 0.72) 52%, rgba(255, 255, 255, 0.10) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Real Snell's-law Liquid-Glass Optical Magnifier Loupe gliding over giant chrome letters */
.monolith-loupe {
  position: absolute;
  top: 0;
  left: 0;
  width: 152px;
  height: 152px;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03) 65%);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.58),
    inset 0 2px 3px rgba(255, 255, 255, 0.65),
    inset 0 -2px 4px rgba(255, 255, 255, 0.14),
    inset 4px 0 12px rgba(201, 38, 57, 0.28);
  transition: opacity 0.35s var(--ease-out);
}

/* Remove flat horizontal pill-glint line from round glass sphere */
.monolith-loupe::after {
  display: none;
}

.aw-colophon {
  margin-top: 0;
  border-top: 1px solid var(--hairline);
  padding: 20px 0 30px;
}

.colophon-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* ==========================================================================
   Responsive Breakpoints (960px, 640px, 390px, 320px)
   ========================================================================== */
@media (max-width: 1120px) {
  .scroll-ruler {
    display: none;
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .hero-main {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    gap: 24px;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-sculpture-frame {
    width: min(100%, 440px);
  }

  .compare-open {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .compare-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  }

  .skill-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .notes-open,
  .aw-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .aw-nav-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .monolith-loupe {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav-pill {
    padding: 5px 6px 5px 7px;
  }

  .nav-brand > span:last-child {
    display: none;
  }

  .hero-h1 {
    font-size: clamp(36px, 9.6vw, 48px);
  }

  .cmd-lens {
    width: 100%;
    max-width: 100%;
  }

  .practice-controls {
    width: 100%;
  }

  .seg-pill--lg {
    flex: 1;
  }

  .seg-pill--lg button {
    flex: 1;
    padding: 0 8px;
    font-size: 13px;
  }

  .install-lens {
    padding: 10px 10px 10px 16px;
  }

  .aw-nav-cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .shader-pause {
    bottom: 14px;
    right: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-eyebrow,
  .hero-h1,
  .hero-lead,
  .hero-actions,
  .hero-sculpture {
    animation: none;
    opacity: 1;
    transform: none;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
