/* Spective Studios — dark neon, high-energy UI (no horizontal page scroll) */

:root {
  --bg: #030308;
  --bg-elev: #0a0a12;
  --surface: #0e101a;
  --surface-glow: rgba(18, 22, 38, 0.92);
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f6ff;
  --muted: #8b95ad;
  --accent: #00ffc8;
  --accent-2: #ff4eb8;
  --accent-3: #9d7dff;
  --accent-hover: #5dffdf;
  --link: #b8c4ff;
  --danger: #ff6b7a;
  --radius: 18px;
  --radius-sm: 11px;
  --font: "Segoe UI", "Aptos", system-ui, -apple-system, sans-serif;
  --font-display: "Trebuchet MS", "Segoe UI", "Aptos", system-ui, sans-serif;
  --header-h: 4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: clamp(0.95rem, 0.9rem + 0.35vw, 1.0625rem);
  letter-spacing: -0.01em;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.site-public {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 100% 80% at 50% -40%, rgba(0, 255, 200, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 20%, rgba(255, 78, 184, 0.1), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 60%, rgba(157, 125, 255, 0.12), transparent 45%),
    linear-gradient(180deg, #05050c 0%, var(--bg) 35%, #04040a 100%);
  background-attachment: scroll;
}

body.site-public::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 20%, transparent 75%);
}

/* Header must stack above main or the mobile nav dropdown paints under page content */
body.site-public .site-header {
  position: relative;
  z-index: 9000;
}

body.site-public .site-main,
body.site-public .site-footer {
  position: relative;
  z-index: 1;
}

/* —— Home: process rail (neon, no scroll-jacking) —— */
.section-process {
  background: linear-gradient(180deg, rgba(0, 255, 200, 0.03), transparent 40%),
    rgba(255, 255, 255, 0.02);
  border-block: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.process-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.25rem;
  max-width: min(46rem, 100%);
  position: relative;
}

.process-list::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-3), var(--accent-2));
  box-shadow:
    0 0 20px rgba(0, 255, 200, 0.35),
    0 0 36px rgba(157, 125, 255, 0.2);
}

.process-item {
  position: relative;
  padding: 0 0 1.85rem 1.5rem;
  margin: 0;
}

.process-item:last-child {
  padding-bottom: 0;
}

.process-item::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 0.4rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0%, var(--accent) 45%, var(--accent-3) 100%);
  box-shadow:
    0 0 0 3px var(--bg),
    0 0 18px rgba(0, 255, 200, 0.55),
    0 0 28px rgba(157, 125, 255, 0.35);
}

.process-num {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.3rem;
  text-shadow: 0 0 20px rgba(0, 255, 200, 0.35);
}

.process-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.process-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.section-deliver {
  position: relative;
}

.section-deliver::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 100%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 200, 0.35), transparent);
  pointer-events: none;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
}

a:hover {
  color: var(--accent-hover);
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 1.5rem);
}

.narrow {
  width: min(440px, 100%);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 1.5rem);
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9000;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(5, 5, 12, 0.94);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(0, 255, 200, 0.12);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(0, 255, 200, 0.04);
  background: rgba(5, 5, 12, 0.88);
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding: 0.75rem clamp(1rem, 4vw, 1.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

/* Left: mark + title as one lockup (same position as before, with icon in the inner gap) */
.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
  text-decoration: none;
  justify-content: flex-start;
}

.header-mark {
  display: flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}

.header-mark img {
  height: clamp(1.75rem, 3.5vw, 2.5rem);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.header-brand:hover .header-mark {
  filter: drop-shadow(0 0 8px rgba(0, 255, 200, 0.3));
}

@media (max-width: 480px) {
  .header-brand {
    gap: 0.4rem;
  }

  .header-mark img {
    height: 1.6rem;
  }
}

.header-brand .logo {
  min-width: 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.12rem);
  letter-spacing: -0.05em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(105deg, var(--text) 0%, var(--accent) 55%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: filter 0.25s var(--ease);
}

.logo:hover {
  filter: brightness(1.15) drop-shadow(0 0 12px rgba(0, 255, 200, 0.35));
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 1px;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem clamp(0.75rem, 2vw, 1.5rem);
}

.nav-main a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0;
  padding: 0.35rem 0;
  transition: color 0.2s var(--ease);
}

.nav-main a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav-main a:not(.btn):hover {
  color: var(--text);
}

.nav-main a:not(.btn):hover::after {
  transform: scaleX(1);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: clamp(1rem, 4vw, 1.5rem);
    right: clamp(1rem, 4vw, 1.5rem);
    margin-top: 0.5rem;
    padding: 1rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    z-index: 50;
  }

  .nav-main.is-open {
    display: flex;
  }

  .nav-main .btn {
    text-align: center;
    justify-content: center;
  }
}

.site-main {
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

/* —— Buttons —— */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.45rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  overflow: hidden;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.2s var(--ease-out),
    box-shadow 0.25s var(--ease);
}

.btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: #14182a;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  border: none;
  color: #020208;
  background: linear-gradient(125deg, #00ffc8 0%, #00d4aa 40%, #9d7dff 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 4px 24px rgba(0, 255, 200, 0.25);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.55s var(--ease-out);
  pointer-events: none;
}

.btn-primary:hover {
  color: #020208;
  filter: brightness(1.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 8px 32px rgba(0, 255, 200, 0.35),
    0 0 48px rgba(157, 125, 255, 0.2);
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-glow:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 5px rgba(0, 255, 200, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost-bright {
  border-color: rgba(0, 255, 200, 0.35);
  color: var(--accent);
}

.btn-ghost-bright:hover {
  background: rgba(0, 255, 200, 0.1);
  border-color: var(--accent);
  color: var(--accent-hover);
  box-shadow: 0 0 28px rgba(0, 255, 200, 0.15);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-danger {
  border-color: rgba(240, 113, 113, 0.45);
  color: var(--danger);
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: clamp(3.25rem, 11vw, 6.5rem) 0 clamp(4rem, 12vw, 7.5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-grid-bg {
  position: absolute;
  inset: -20% -10%;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(0, 255, 200, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 125, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(400px) rotateX(12deg);
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent 85%);
}

.hero-glow {
  display: none;
}

.hero-glow-a {
  width: min(480px, 70vw);
  height: min(420px, 55vh);
  left: -10%;
  top: -15%;
  background: radial-gradient(circle, rgba(0, 255, 200, 0.35), transparent 70%);
}

.hero-glow-b {
  width: min(400px, 60vw);
  height: min(380px, 50vh);
  right: -15%;
  bottom: -5%;
  background: radial-gradient(circle, rgba(255, 78, 184, 0.28), transparent 70%);
  animation-delay: -7s;
}

@keyframes hero-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(3%, 4%) scale(1.05);
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 90% 70% at 50% 35%,
    rgba(0, 255, 200, 0.12) 0%,
    rgba(157, 125, 255, 0.06) 42%,
    transparent 65%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: min(52rem, 100%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--font);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
  text-shadow: 0 0 24px rgba(0, 255, 200, 0.4);
}

.hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent), 0 0 24px rgba(255, 78, 184, 0.6);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.15);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.15rem, 5.5vw + 0.85rem, 3.85rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  margin: 0 0 1.35rem;
  max-width: 18ch;
}

.text-gradient {
  background: linear-gradient(105deg, #00ffc8 0%, #7cf0ff 38%, #9d7dff 72%, #ff4eb8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-warm {
  background: linear-gradient(105deg, #ff4eb8 0%, #ffc14d 55%, #00ffc8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.6;
  max-width: 42ch;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}

.hero-pills li {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 200, 0.22);
  background: rgba(0, 255, 200, 0.06);
  color: #c5f7ee;
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.06);
  transition: border-color 0.25s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}

.hero-pills li:hover {
  border-color: rgba(255, 78, 184, 0.45);
  background: rgba(255, 78, 184, 0.08);
  color: #ffe0f2;
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(255, 78, 184, 0.15);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-actions-strong .btn {
  min-height: 3rem;
}

.btn-hero-primary {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 12px 36px rgba(0, 255, 200, 0.28),
    0 0 48px rgba(157, 125, 255, 0.18);
}

.hero-pills-trust {
  margin-bottom: 0;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  width: min(44rem, 100%);
  margin-top: 1.5rem;
}

.hero-proof-item {
  padding: 0.95rem 1rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.hero-proof-item strong {
  display: block;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-family: var(--font);
  letter-spacing: -0.03em;
}

.hero-proof-item span {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.trust-bar {
  position: relative;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(0, 255, 200, 0.08), rgba(157, 125, 255, 0.06), rgba(255, 78, 184, 0.08));
  overflow: hidden;
}

.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
  padding: 0.95rem 1rem;
}

.trust-bar-inner span {
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 8, 15, 0.35);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d9e4ff;
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow-dot {
    animation: none;
  }
}

@media (hover: none), (pointer: coarse) {
  body.site-public {
    background-attachment: scroll;
  }

  body.site-public::before {
    opacity: 0.22;
    background-size: 64px 64px;
  }

  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(5, 5, 12, 0.94);
  }

  .site-header.is-scrolled {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  }

  .hero-glow,
  .cta-orb {
    animation: none;
    filter: blur(36px);
    opacity: 0.3;
  }

  .comparison-side-label,
  .mockup-floating-note,
  .cookie-banner,
  .contact-modal-backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* -- Home: why custom code -- */
.why-code-head {
  text-align: center;
}

.why-code-head .section-lead {
  margin-inline: auto;
}

.why-code-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.why-code-card {
  position: relative;
  padding: 1.2rem 1.15rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(160deg, rgba(14, 16, 28, 0.98), rgba(8, 10, 18, 0.96));
  box-shadow:
    0 0 0 1px rgba(0, 255, 200, 0.04),
    0 18px 42px rgba(0, 0, 0, 0.28);
}

.why-code-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  height: 3rem;
  margin-bottom: 0.9rem;
  padding-inline: 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 200, 0.2);
  background: rgba(0, 255, 200, 0.08);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.why-code-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.why-code-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.why-code-card strong {
  color: var(--text);
}

.why-code-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

/* -- Home: before/after comparison showcase -- */
.comparison-showcase {
  position: relative;
  padding-top: clamp(1rem, 3vw, 2rem);
}

.comparison-wrap {
  display: grid;
  gap: 1.2rem;
}

.comparison-intro {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  text-align: center;
}

.comparison-eyebrow {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.comparison-copy {
  display: grid;
  gap: 0.65rem;
  justify-items: center;
}

.comparison-copy .section-title {
  max-width: 12ch;
  font-size: clamp(2.15rem, 4.8vw, 4rem);
  line-height: 0.95;
}

.comparison-copy .section-lead {
  max-width: 42rem;
  text-wrap: balance;
}

.comparison-live-panel {
  display: grid;
  gap: 1rem;
  padding: clamp(1.1rem, 2vw, 1.35rem);
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(9, 11, 20, 0.94), rgba(6, 8, 16, 0.98));
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.comparison-theme-builder {
  border-color: rgba(255, 176, 111, 0.24);
}

.comparison-theme-custom {
  border-color: rgba(0, 255, 200, 0.24);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.36),
    0 0 70px rgba(0, 255, 200, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.comparison-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem 1rem;
}

.comparison-panel-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.comparison-panel-title {
  margin: 0;
  max-width: 34rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.comparison-panel-state {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comparison-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.comparison-badge {
  display: grid;
  gap: 0.22rem;
  padding: 0.95rem 1rem;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.comparison-badge-label,
.comparison-badge small {
  color: var(--muted);
}

.comparison-badge strong {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.comparison-theme-builder .comparison-badge.is-active {
  border-color: rgba(255, 176, 111, 0.34);
  background: linear-gradient(160deg, rgba(55, 35, 19, 0.72), rgba(21, 16, 12, 0.78));
  box-shadow: 0 14px 32px rgba(255, 162, 91, 0.1);
}

.comparison-theme-custom .comparison-badge.is-active {
  border-color: rgba(0, 255, 200, 0.28);
  background: linear-gradient(160deg, rgba(9, 31, 31, 0.82), rgba(10, 14, 26, 0.9));
  box-shadow: 0 16px 36px rgba(0, 255, 200, 0.1);
}

.comparison-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.comparison-preset {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.comparison-preset:hover,
.comparison-preset.is-active {
  transform: translateY(-1px);
  border-color: rgba(0, 255, 200, 0.3);
  background: rgba(0, 255, 200, 0.08);
  box-shadow: 0 12px 26px rgba(0, 255, 200, 0.1);
}

.comparison-caption-row {
  display: flex;
  justify-content: center;
}

.comparison-caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.comparison-slider {
  --comparison-position: 12%;
  position: relative;
}

.comparison-stage {
  position: relative;
  min-height: min(78vw, 42rem);
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(0, 255, 200, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 78, 184, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(10, 12, 20, 0.98), rgba(4, 5, 10, 1));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 28px 90px rgba(0, 0, 0, 0.48);
  isolation: isolate;
}

.comparison-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.45;
  pointer-events: none;
}

.comparison-side {
  position: absolute;
  inset: 0;
  padding: clamp(1rem, 2vw, 1.35rem);
}

.comparison-side-custom {
  z-index: 2;
}

.comparison-side-label {
  position: absolute;
  top: clamp(1rem, 2vw, 1.25rem);
  left: clamp(1rem, 2vw, 1.25rem);
  z-index: 4;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 184, 118, 0.28);
  background: rgba(23, 17, 12, 0.68);
  color: #ffe2c0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.comparison-side-label-custom {
  left: auto;
  right: clamp(1rem, 2vw, 1.25rem);
  border-color: rgba(0, 255, 200, 0.28);
  background: rgba(8, 22, 22, 0.68);
  color: #befff0;
}

.mockup-page {
  position: relative;
  display: grid;
  gap: clamp(1rem, 1.8vw, 1.3rem);
  min-height: 100%;
  padding: clamp(3.8rem, 8vw, 4.8rem) clamp(1rem, 2vw, 1.35rem) clamp(1rem, 2vw, 1.35rem);
  border-radius: calc(var(--radius) + 2px);
}

.mockup-page-builder {
  background:
    linear-gradient(180deg, rgba(248, 242, 233, 0.95), rgba(230, 220, 206, 0.92)),
    #efe8de;
  color: #5a493a;
}

.mockup-page-custom {
  background:
    radial-gradient(circle at 15% 18%, rgba(214, 166, 98, 0.14), transparent 26%),
    radial-gradient(circle at 82% 14%, rgba(123, 55, 33, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(32, 23, 18, 0.98), rgba(18, 13, 11, 1));
  color: #f6efe5;
}

.mockup-page-custom .mockup-brand,
.mockup-page-custom .mockup-copy h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.035em;
}

.mockup-page-custom .mockup-nav,
.mockup-page-custom .mockup-kicker {
  color: #dcc3a8;
}

.mockup-page-custom .mockup-copy p {
  color: #ddccbc;
}

.mockup-topbar,
.mockup-hero,
.mockup-grid,
.mockup-stats {
  position: relative;
  z-index: 1;
}

.mockup-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(82, 65, 49, 0.14);
}

.mockup-topbar-custom {
  border-bottom-color: rgba(246, 224, 196, 0.12);
}

.mockup-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.mockup-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem;
  font-size: 0.84rem;
  color: inherit;
  opacity: 0.72;
}

.mockup-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.95fr);
  gap: clamp(1rem, 2.2vw, 1.7rem);
  align-items: center;
}

.mockup-copy {
  display: grid;
  gap: 0.8rem;
}

.mockup-kicker {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mockup-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 2.8vw, 2.5rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  max-width: 12ch;
  text-wrap: balance;
}

.mockup-copy p {
  margin: 0;
  max-width: 34ch;
  font-size: 0.96rem;
  line-height: 1.6;
}

.mockup-hero-builder .mockup-copy h3,
.mockup-hero-builder .mockup-copy p {
  max-width: 18ch;
}

.mockup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.mockup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.mockup-btn-muted {
  background: rgba(92, 73, 54, 0.14);
  color: #5b4531;
}

.mockup-btn-outline {
  border: 1px solid rgba(89, 67, 48, 0.18);
  color: #6a5241;
}

.mockup-btn-solid {
  background: linear-gradient(120deg, #f3d0a2, #d79b62 55%, #b86a3f);
  color: #24160f;
  box-shadow: 0 16px 34px rgba(183, 111, 63, 0.24);
}

.mockup-btn-ghost {
  border: 1px solid rgba(246, 224, 196, 0.16);
  color: #f8ead7;
  background: rgba(255, 248, 238, 0.04);
}

.mockup-visual {
  position: relative;
}

.mockup-photo-frame {
  position: relative;
  aspect-ratio: 0.92;
  overflow: hidden;
  border-radius: 1.6rem;
  background: linear-gradient(180deg, rgba(95, 74, 52, 0.22), rgba(59, 43, 32, 0.08));
  border: 1px solid rgba(91, 66, 44, 0.14);
}

.mockup-photo-frame-custom {
  border-color: rgba(243, 213, 175, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 243, 228, 0.08), rgba(255, 232, 205, 0.03)),
    rgba(26, 18, 14, 0.92);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.34),
    0 0 70px rgba(205, 139, 86, 0.08);
}

.mockup-photo-builder,
.mockup-photo-custom {
  position: absolute;
  inset: 0;
}

.mockup-photo-builder {
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 212, 164, 0.92), transparent 18%),
    radial-gradient(circle at 50% 72%, rgba(65, 44, 27, 0.84), transparent 20%),
    linear-gradient(180deg, rgba(124, 86, 58, 0.28), rgba(34, 23, 16, 0.16)),
    linear-gradient(135deg, #d0baa2, #8d694b);
  filter: saturate(0.82);
}

.mockup-photo-custom {
  background:
    radial-gradient(circle at 56% 24%, rgba(255, 198, 127, 0.98), transparent 15%),
    radial-gradient(circle at 58% 75%, rgba(29, 17, 13, 0.88), transparent 24%),
    linear-gradient(180deg, rgba(255, 186, 112, 0.18), rgba(132, 62, 35, 0.1)),
    linear-gradient(135deg, #241712, #6a3c24 54%, #120c0a);
  filter: saturate(1.08) contrast(1.02);
}

.mockup-lighthouse-card {
  position: absolute;
  inset: 1rem;
  display: grid;
  gap: 0.85rem;
  padding: 0.95rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.97), rgba(247, 239, 228, 0.98));
  box-shadow:
    0 18px 34px rgba(16, 10, 8, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  color: #2e2a26;
}

.mockup-lighthouse-card-builder {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 245, 239, 0.98));
}

.mockup-lighthouse-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.mockup-lighthouse-chip,
.mockup-lighthouse-mode {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mockup-lighthouse-chip {
  color: #0d8e58;
  background: rgba(19, 190, 112, 0.12);
}

.mockup-lighthouse-chip-builder {
  color: #bd7a14;
  background: rgba(255, 170, 42, 0.12);
}

.mockup-lighthouse-mode {
  color: #2f588b;
  background: rgba(56, 124, 209, 0.1);
}

.mockup-lighthouse-scores {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.mockup-score-ring {
  display: grid;
  justify-items: center;
  gap: 0.18rem;
  padding: 0.45rem 0.25rem;
}

.mockup-score-ring span {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 4px solid #16c267;
  color: #0f9e58;
  background: rgba(22, 194, 103, 0.08);
  font-size: 0.86rem;
  font-weight: 800;
}

.mockup-score-ring-warn span {
  border-color: #ffa52d;
  color: #de8b18;
  background: rgba(255, 165, 45, 0.08);
}

.mockup-score-ring small {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #4f565f;
  text-transform: uppercase;
}

.mockup-lighthouse-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.95fr);
  gap: 0.8rem;
  align-items: center;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(67, 76, 90, 0.12);
}

.mockup-lighthouse-bigscore {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
}

.mockup-lighthouse-bigcircle {
  display: grid;
  place-items: center;
  width: 5.75rem;
  height: 5.75rem;
  border-radius: 50%;
  border: 6px solid #16c267;
  color: #0f9e58;
  background: rgba(22, 194, 103, 0.1);
  font-size: 1.7rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 10px rgba(22, 194, 103, 0.05);
}

.mockup-lighthouse-bigcircle-warn {
  border-color: #ffa52d;
  color: #de8b18;
  background: rgba(255, 165, 45, 0.1);
  box-shadow: inset 0 0 0 10px rgba(255, 165, 45, 0.05);
}

.mockup-lighthouse-bigscore p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #40474f;
}

.mockup-lighthouse-mini-shot {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(67, 76, 90, 0.12);
  background: #121521;
  box-shadow: 0 10px 24px rgba(21, 16, 13, 0.16);
}

.mockup-lighthouse-mini-shot-builder {
  background: #ffffff;
}

.mockup-lighthouse-mini-browser {
  display: flex;
  gap: 0.28rem;
  padding: 0.45rem 0.55rem;
  background: rgba(255, 255, 255, 0.04);
}

.mockup-lighthouse-mini-browser span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
}

.mockup-lighthouse-mini-hero {
  display: grid;
  gap: 0.18rem;
  padding: 1rem 0.85rem 1.1rem;
  background:
    radial-gradient(circle at top left, rgba(0, 255, 200, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(11, 14, 23, 1), rgba(18, 11, 26, 1));
}

.mockup-lighthouse-mini-hero strong,
.mockup-lighthouse-mini-hero em {
  display: block;
  color: #f6f8ff;
  font-style: normal;
  line-height: 1;
}

.mockup-lighthouse-mini-hero strong {
  font-size: 0.92rem;
  font-weight: 800;
}

.mockup-lighthouse-mini-hero em {
  font-size: 0.78rem;
  color: #c8d4f4;
}

.mockup-lighthouse-mini-amazon {
  display: grid;
  gap: 0.45rem;
  padding: 0.4rem;
  background: #f6f7f9;
}

.mockup-amazon-topbar {
  height: 0.7rem;
  border-radius: 0.3rem;
  background: linear-gradient(90deg, #1f2f3d 0%, #293848 70%, #f3a847 70%, #f3a847 100%);
}

.mockup-amazon-hero {
  height: 3.2rem;
  border-radius: 0.45rem;
  background:
    linear-gradient(135deg, rgba(255, 172, 53, 0.25), rgba(86, 117, 148, 0.18)),
    linear-gradient(90deg, #4e5864, #b9c4d1);
}

.mockup-amazon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}

.mockup-amazon-grid span {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 0.3rem;
  background: linear-gradient(180deg, #ffffff, #e8edf2);
  border: 1px solid rgba(77, 93, 116, 0.14);
}

.mockup-floating-note {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0.85rem;
  border-radius: 1rem;
  border: 1px solid rgba(245, 214, 178, 0.16);
  background: rgba(53, 31, 22, 0.72);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.mockup-floating-note span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f0c99b;
}

.mockup-floating-note strong {
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  color: #fff4e7;
}

.mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.mockup-stat {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(243, 214, 181, 0.12);
  background: linear-gradient(180deg, rgba(255, 246, 235, 0.05), rgba(255, 231, 204, 0.03));
}

.mockup-stat strong {
  display: block;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.mockup-stat span {
  display: block;
  margin-top: 0.2rem;
  color: #d8c0a7;
  font-size: 0.82rem;
}

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

.mockup-grid-builder {
  margin-top: auto;
}

.mockup-card {
  display: grid;
  gap: 0.55rem;
  min-height: 8rem;
  padding: 1rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(89, 67, 49, 0.14);
  background: rgba(255, 255, 255, 0.42);
}

.mockup-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.mockup-card-wide,
.mockup-card-feature {
  grid-column: 1 / -1;
}

.mockup-card-feature {
  background:
    linear-gradient(135deg, rgba(255, 238, 216, 0.08), rgba(189, 109, 63, 0.08)),
    rgba(255, 248, 238, 0.02);
  border-color: rgba(238, 185, 124, 0.16);
}

.mockup-card-dark {
  background: rgba(35, 22, 17, 0.92);
  border-color: rgba(243, 214, 181, 0.1);
}

.mockup-page-custom .mockup-card p {
  color: #e2d3c5;
}

.mockup-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.34rem 0.65rem;
  border-radius: 999px;
  background: rgba(91, 66, 44, 0.12);
  color: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mockup-chip-hot {
  background: rgba(241, 193, 138, 0.14);
  color: #ffe7c8;
}

.mockup-lines {
  display: grid;
  gap: 0.5rem;
}

.mockup-lines span {
  display: block;
  height: 0.62rem;
  border-radius: 999px;
  background: rgba(93, 72, 54, 0.16);
}

.mockup-lines span:nth-child(1) {
  width: 100%;
}

.mockup-lines span:nth-child(2) {
  width: 84%;
}

.mockup-lines span:nth-child(3) {
  width: 62%;
}

.mockup-lines-bright span {
  background: linear-gradient(90deg, rgba(241, 193, 138, 0.3), rgba(176, 96, 58, 0.34));
}

.comparison-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--comparison-position);
  z-index: 5;
  width: 0;
  pointer-events: none;
}

.comparison-divider::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.95), rgba(0, 255, 200, 0.32));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 24px rgba(255, 255, 255, 0.28);
}

.comparison-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  gap: 0.22rem;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(209, 230, 255, 0.88));
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.34),
    0 0 0 8px rgba(255, 255, 255, 0.08);
}

.comparison-handle span {
  display: block;
  width: 0.18rem;
  height: 1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #7084b7, #2b3754);
}

.comparison-range {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}

.comparison-stage:focus-within {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 0 3px rgba(0, 255, 200, 0.3),
    0 28px 90px rgba(0, 0, 0, 0.48);
}

.comparison-slider.is-dragging .comparison-handle {
  transform: translate(-50%, -50%) scale(1.05);
}

.comparison-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 0.9rem;
}

.comparison-summary-card,
.comparison-point {
  padding: 1rem 1.05rem;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.comparison-summary-label {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.comparison-summary-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.comparison-summary-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.comparison-summary-points {
  display: grid;
  gap: 0.9rem;
}

.comparison-point {
  position: relative;
  padding-left: 2.7rem;
  min-height: 100%;
  display: flex;
  align-items: center;
}

.comparison-point::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 18px rgba(0, 255, 200, 0.24);
}

/* -- Home: portfolio spotlight -- */
.home-portfolio-head {
  text-align: center;
}

.home-portfolio-head .section-lead {
  margin-inline: auto;
}

.home-portfolio-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.home-portfolio,
.section-process,
.cta-block,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

.home-project-card {
  overflow: hidden;
  padding: 0;
}

.home-project-media-link {
  display: block;
  text-decoration: none;
}

.home-project-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 255, 200, 0.12), rgba(157, 125, 255, 0.15), rgba(255, 78, 184, 0.08));
}

.home-project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease), filter 0.45s var(--ease);
}

.home-project-card:hover .home-project-media img {
  transform: scale(1.04);
  filter: saturate(1.08) brightness(1.04);
}

.home-project-body {
  display: grid;
  gap: 0.95rem;
  padding: 1.2rem;
}

.home-project-eyebrow {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.home-project-body h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.home-project-subtitle {
  margin: -0.25rem 0 0;
  color: var(--muted);
}

.home-project-detail {
  display: grid;
  gap: 0.35rem;
}

.home-project-detail > span {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d6dcf4;
}

.home-project-detail p {
  margin: 0;
  color: var(--muted);
}

.home-project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-project-list li,
.home-project-tags span {
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #dce3fb;
  font-size: 0.84rem;
}

.home-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.home-project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.25rem;
}

@media (min-width: 900px) {
  .why-code-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comparison-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero-proof,
  .comparison-summary {
    grid-template-columns: 1fr;
  }

  .comparison-stage {
    min-height: 40rem;
  }

  .mockup-hero {
    grid-template-columns: 1fr;
  }

  .mockup-copy h3,
  .mockup-hero-builder .mockup-copy h3 {
    max-width: 14ch;
  }

  .trust-bar-inner {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .comparison-stage {
    min-height: 38rem;
  }

  .comparison-side {
    padding: 0.7rem;
  }

  .mockup-page {
    padding-top: 4rem;
  }

  .mockup-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .mockup-nav {
    gap: 0.55rem 0.8rem;
    justify-content: flex-start;
  }

  .hero-proof,
  .mockup-stats,
  .mockup-grid,
  .comparison-metrics {
    grid-template-columns: 1fr;
  }

  .hero-actions-strong,
  .why-code-actions,
  .cta-actions,
  .home-project-actions {
    flex-direction: column;
  }

  .hero-actions-strong .btn,
  .why-code-actions .btn,
  .cta-actions .btn,
  .home-project-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .comparison-handle {
    width: 2.9rem;
    height: 2.9rem;
  }

  .comparison-copy .section-title {
    max-width: 10ch;
  }

  .mockup-lighthouse-card {
    inset: 0.75rem;
    gap: 0.65rem;
    padding: 0.75rem;
  }

  .mockup-lighthouse-scores {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mockup-lighthouse-main {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: light) {
  .comparison-stage {
    background:
      radial-gradient(circle at top left, rgba(0, 196, 153, 0.14), transparent 28%),
      radial-gradient(circle at bottom right, rgba(160, 82, 255, 0.12), transparent 28%),
      linear-gradient(180deg, rgba(245, 248, 255, 0.98), rgba(229, 236, 248, 0.98));
    box-shadow:
      0 0 0 1px rgba(18, 30, 50, 0.08) inset,
      0 28px 70px rgba(76, 92, 129, 0.18);
  }

  .comparison-stage::before {
    background-image:
      linear-gradient(rgba(18, 30, 50, 0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(18, 30, 50, 0.06) 1px, transparent 1px);
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .comparison-badge,
  .comparison-handle,
  .comparison-live-panel,
  .comparison-preset {
    transition: none;
  }
}

/* —— Sections —— */
.section {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(157, 125, 255, 0.04), rgba(255, 255, 255, 0.02));
  border-block: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.section-head {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw + 0.5rem, 2.5rem);
  letter-spacing: -0.035em;
  margin: 0 0 0.5rem;
  line-height: 1.12;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  max-width: 50ch;
  font-size: 1.02rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-stagger].is-visible .process-item {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-stagger] .process-item {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.55s var(--ease-out),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

[data-reveal-stagger] .card-interactive {
  --stagger-lift: 20px;
  opacity: 0;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--stagger-lift));
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.55s var(--ease-out),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

[data-reveal-stagger].is-visible .card-interactive {
  opacity: 1;
  --stagger-lift: 0px;
}

[data-reveal-stagger].is-visible .process-item:nth-child(1) {
  transition-delay: 0.05s;
}
[data-reveal-stagger].is-visible .process-item:nth-child(2) {
  transition-delay: 0.1s;
}
[data-reveal-stagger].is-visible .process-item:nth-child(3) {
  transition-delay: 0.15s;
}
[data-reveal-stagger].is-visible .process-item:nth-child(4) {
  transition-delay: 0.2s;
}
[data-reveal-stagger].is-visible .process-item:nth-child(5) {
  transition-delay: 0.25s;
}

[data-reveal-stagger].is-visible .card-interactive:nth-child(1) {
  transition-delay: 0.06s;
}
[data-reveal-stagger].is-visible .card-interactive:nth-child(2) {
  transition-delay: 0.14s;
}
[data-reveal-stagger].is-visible .card-interactive:nth-child(3) {
  transition-delay: 0.22s;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal-stagger] .process-item,
  [data-reveal-stagger] .card-interactive {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.grid-services {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid-services {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.card-interactive {
  position: relative;
  background: linear-gradient(145deg, rgba(20, 24, 40, 0.95), rgba(10, 12, 22, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(0, 255, 200, 0.04),
    0 12px 40px rgba(0, 0, 0, 0.35);
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateZ(0);
  transition:
    transform 0.12s ease-out,
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.card-interactive::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 255, 200, 0.45), transparent 40%, rgba(255, 78, 184, 0.35));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.card-interactive:hover {
  border-color: rgba(0, 255, 200, 0.28);
  box-shadow:
    0 0 0 1px rgba(0, 255, 200, 0.1),
    0 16px 48px rgba(0, 0, 0, 0.45),
    0 0 60px rgba(157, 125, 255, 0.12);
}

.card-interactive:hover::before {
  opacity: 0.75;
}

.card-icon {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 0.65rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(0, 255, 200, 0.35));
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

/* —— Work / portfolio —— */
.work-single {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.page-head-work {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
  padding: clamp(1.4rem, 4vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(circle at top right, rgba(157, 125, 255, 0.16), transparent 32%),
    radial-gradient(circle at left center, rgba(0, 255, 200, 0.12), transparent 28%),
    linear-gradient(155deg, rgba(16, 18, 30, 0.96), rgba(7, 8, 15, 0.98));
  box-shadow:
    0 0 0 1px rgba(0, 255, 200, 0.04),
    0 24px 70px rgba(0, 0, 0, 0.35);
}

.work-page-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.work-page-pills span {
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 200, 0.18);
  background: rgba(0, 255, 200, 0.06);
  color: #d6fff6;
  font-size: 0.82rem;
  font-weight: 700;
}

.work-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.work-grid .work-card {
  max-width: none;
  margin-inline: 0;
  height: 100%;
}

.work-grid-showcase {
  align-items: stretch;
}

.work-grid-showcase .work-project-card {
  height: 100%;
}

.work-grid-showcase .home-project-body {
  height: 100%;
}

.work-grid-showcase .home-project-actions {
  margin-top: auto;
}

.work-card {
  display: block;
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(22, 26, 42, 0.98), rgba(8, 9, 16, 0.99));
  text-decoration: none;
  color: inherit;
  --lift: 0px;
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--lift));
  transition: border-color 0.3s var(--ease), box-shadow 0.35s var(--ease), transform 0.12s ease-out;
  box-shadow: 0 0 0 1px rgba(0, 255, 200, 0.05), 0 20px 50px rgba(0, 0, 0, 0.4);
}

.work-card:hover {
  border-color: rgba(0, 255, 200, 0.35);
  box-shadow:
    0 0 0 1px rgba(0, 255, 200, 0.12),
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(255, 78, 184, 0.08);
  --lift: -6px;
}

.work-card-featured {
  max-width: min(720px, 100%);
}

.work-card-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(0, 255, 200, 0.12), rgba(157, 125, 255, 0.15), rgba(255, 78, 184, 0.08));
  transition: filter 0.4s var(--ease);
}

.work-card:hover .work-card-media {
  filter: saturate(1.15) brightness(1.05);
}

.work-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card-media-placeholder {
  min-height: 200px;
}

.work-card-body {
  padding: 1.35rem clamp(1.1rem, 3vw, 1.5rem) 1.5rem;
}

.work-card h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.work-card .muted {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.work-card-cta {
  font-weight: 700;
  font-size: 0.88rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.02em;
}

/* —— CTA —— */
.page-portfolio .home-project-card h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.page-portfolio .home-project-card {
  display: flex;
  flex-direction: column;
}

.page-portfolio .home-project-media {
  aspect-ratio: 16 / 7;
}

.page-portfolio .home-project-body {
  gap: 0.8rem;
  padding: 1rem;
}

.page-portfolio .home-project-subtitle {
  margin-top: -0.1rem;
  font-size: 0.98rem;
}

.page-portfolio .home-project-detail {
  gap: 0.28rem;
}

.page-portfolio .home-project-detail > span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.page-portfolio .home-project-detail p {
  font-size: 0.95rem;
  line-height: 1.55;
}

.page-portfolio .home-project-list,
.page-portfolio .home-project-tags {
  gap: 0.38rem;
}

.page-portfolio .home-project-list li,
.page-portfolio .home-project-tags span {
  padding: 0.34rem 0.62rem;
  font-size: 0.8rem;
}

.page-portfolio .home-project-actions {
  gap: 0.55rem;
}

.page-portfolio .home-project-actions .btn {
  flex: 1 1 10rem;
  min-height: 2.6rem;
}

@media (max-width: 899px) {
  .page-portfolio .home-project-media {
    aspect-ratio: 16 / 8.5;
  }
}

@media (max-width: 640px) {
  .page-portfolio .home-project-body {
    padding: 0.95rem;
    gap: 0.72rem;
  }

  .page-portfolio .home-project-actions {
    flex-direction: column;
  }

  .page-portfolio .home-project-actions .btn {
    width: 100%;
    flex-basis: auto;
  }
}

@media (min-width: 900px) {
  .work-grid-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cta-block {
  text-align: center;
  padding: clamp(3.5rem, 10vw, 5.5rem) 0;
  position: relative;
  overflow: hidden;
}

.cta-rail {
  position: relative;
  padding: clamp(2rem, 5vw, 2.75rem);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 255, 200, 0.18);
  background: linear-gradient(160deg, rgba(0, 255, 200, 0.08), rgba(157, 125, 255, 0.06), rgba(255, 78, 184, 0.05));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 24px 80px rgba(0, 0, 0, 0.45),
    0 0 100px rgba(0, 255, 200, 0.06);
}

.cta-orb {
  display: none;
}

.cta-inner {
  max-width: 36rem;
  margin-inline: auto;
}

.cta-inner .section-title {
  margin-bottom: 0.75rem;
}

.cta-inner .section-lead {
  margin-bottom: 1.5rem;
  margin-inline: auto;
}

@media (prefers-reduced-motion: reduce) {
  .cta-orb {
    animation: none;
  }
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 3rem) 0;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.footer-line {
  margin: 0 auto 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36ch;
}

.footer-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* —— Inner pages —— */
.page-shell {
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(3rem, 8vw, 5rem);
}

.page-head h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 3.1rem);
  letter-spacing: 0.01em;
  margin: 0 0 0.65rem;
  line-height: 1.12;
}

.lead,
.page-head .lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
  max-width: 60ch;
  line-height: 1.55;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.88rem;
}

.center {
  text-align: center;
}

.mt-lg {
  margin-top: 2rem;
}
.mt-md {
  margin-top: 1rem;
}

/* Forms */
.form-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
}

input,
select,
textarea {
  font: inherit;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  width: 100%;
  max-width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(0, 255, 200, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 255, 200, 0.12);
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--accent);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.checks {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.checks legend {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
  padding: 0;
}

label.check {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.45;
  cursor: pointer;
}

label.check input[type="checkbox"],
label.check input[type="radio"] {
  margin-top: 0.22rem;
}

label.check span {
  flex: 1 1 auto;
  min-width: 0;
}

.quote-checks {
  margin-top: 0.25rem;
}

.notice {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.notice.success {
  border-color: rgba(0, 255, 200, 0.4);
  background: rgba(0, 255, 200, 0.08);
}

.notice.error {
  border-color: rgba(240, 113, 113, 0.4);
  background: rgba(240, 113, 113, 0.06);
}

/* Quote */
.quote-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .quote-layout {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.quote-aside {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.quote-aside h2 {
  font-size: 1.1rem;
  margin: 0 0 1rem;
}

.price-breakdown {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.price-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.estimate-big {
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 0.25rem 0;
}

/* Case study */
.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.case-showcase {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
  margin: 0 0 1.75rem;
}

.case-showcase--with-lighthouse {
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
}

.case-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-height: 320px;
  box-sizing: border-box;
  background:
    radial-gradient(circle at top, rgba(0, 255, 200, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(10, 10, 18, 0.92));
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.case-hero::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius) - 1px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.case-hero img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 920px);
  height: auto;
  object-fit: contain;
  max-width: min(92%, 920px);
  max-height: min(72vh, 760px);
  margin: 2rem auto;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.4));
}

/* Your caps (width × height): wider-than-tall → 200×400 · taller-than-wide → 400×200 · ~square → 200×200 */
.case-hero.case-hero--landscape img {
  max-width: min(92%, 980px);
  max-height: min(72vh, 700px);
}

.case-hero.case-hero--portrait img {
  max-width: min(70%, 520px);
  max-height: min(72vh, 760px);
}

.case-hero.case-hero--square img {
  max-width: min(78%, 620px);
  max-height: min(66vh, 620px);
}

.case-lighthouse-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(157, 125, 255, 0.22);
  padding: 1.15rem;
  background:
    radial-gradient(circle at top right, rgba(0, 255, 200, 0.12), transparent 34%),
    radial-gradient(circle at left bottom, rgba(157, 125, 255, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(14, 16, 26, 0.98), rgba(5, 5, 12, 0.94));
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.case-lighthouse-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(0, 255, 200, 0.55), rgba(157, 125, 255, 0.3), rgba(255, 78, 184, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.case-lighthouse-eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 0.45rem;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.case-lighthouse-card h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.case-lighthouse-copy {
  position: relative;
  z-index: 1;
  margin: 0.45rem 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.case-lighthouse-frame {
  position: relative;
  z-index: 1;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.case-lighthouse-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.case-header .eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

.case-header h1 {
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}

.prose {
  max-width: 52rem;
}

.prose p {
  color: var(--muted);
}

@media (max-width: 920px) {
  .case-showcase--with-lighthouse {
    grid-template-columns: 1fr;
  }

  .case-hero {
    min-height: 260px;
  }
}

/* Dashboard */
.project-list {
  display: grid;
  gap: 1rem;
}

.project-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.25rem 1.35rem;
}

.project-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
}

.project-card-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.pill {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(157, 125, 255, 0.45);
  color: var(--link);
}

.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin: 0.85rem 0 0.35rem;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--link), var(--accent));
}

.empty-state {
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  padding: 2rem 1.5rem;
  text-align: center;
}

.empty-state h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

code {
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
}

/* —— Admin —— */
body.page-admin.site-admin {
  background: var(--bg);
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 8, 13, 0.95);
  border-bottom: 1px solid var(--line);
}

.admin-header-inner {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding: 0.85rem clamp(1rem, 4vw, 1.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.admin-header .logo {
  font-weight: 700;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin-left: auto;
}

.admin-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
}

.admin-nav a:hover {
  color: var(--text);
}

.admin-main {
  padding-bottom: 3rem;
}

.admin-main h1 {
  font-weight: 700;
  margin-top: 0;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.stat-card {
  text-align: center;
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
}

.stat-num {
  font-weight: 700;
  font-size: 1.65rem;
  display: block;
}

.stat-label {
  color: var(--muted);
  font-size: 0.8rem;
}

.data-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  table-layout: auto;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0.35rem;
  text-align: left;
  vertical-align: top;
  word-wrap: break-word;
}

.data-table th {
  color: var(--muted);
  font-weight: 600;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.admin-footer {
  padding: 1.5rem 0 2.5rem;
}

.admin-dl {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) 1fr;
  gap: 0.5rem 1.25rem;
  margin: 1rem 0 0;
  max-width: 40rem;
}

.admin-dl dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
}

.admin-dl dd {
  margin: 0;
  word-break: break-word;
}

.admin-message-body {
  max-width: 48rem;
  line-height: 1.55;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

/* —— Remember me (login/register) —— */
.remember-hint {
  margin: -0.25rem 0 0.75rem;
}

label.remember-row {
  margin-top: 0.35rem;
}

/* —— Cookie consent banner —— */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  padding: 1rem clamp(1rem, 3vw, 1.5rem);
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  background: rgba(5, 5, 12, 0.94);
  border-top: 1px solid rgba(0, 255, 200, 0.2);
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  max-width: 1100px;
  margin-inline: auto;
}

.cookie-banner-text-block {
  flex: 1 1 16rem;
  min-width: 0;
}

.cookie-banner-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.cookie-banner-lead {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.cookie-banner-lead a {
  font-weight: 600;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cookie-banner-form {
  margin: 0;
}

@media (max-width: 560px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Customer project notes (dashboard + admin) —— */
.customer-notes-section {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.customer-notes-heading {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.customer-notes-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.customer-notes-item {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.customer-notes-time {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.customer-notes-body {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
}

.customer-notes-form textarea {
  margin-bottom: 0.65rem;
}

.admin-customer-requests {
  max-width: 52rem;
}

.admin-customer-notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-customer-notes-item {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(0, 255, 200, 0.04);
}

/* —— Contact: inbox bars + thread modal —— */
.contact-page-signed-tip {
  margin-top: 0.85rem;
  max-width: 36rem;
}

.contact-inbox {
  margin-bottom: 2rem;
}

.contact-inbox-head {
  margin-bottom: 1rem;
}

.contact-inbox-title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.contact-inbox-lead {
  margin: 0;
}

.contact-inbox-empty {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.contact-thread-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-thread-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(14, 16, 26, 0.95), rgba(10, 12, 22, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.contact-thread-bar-main {
  flex: 1 1 12rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-thread-subject {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-thread-date {
  font-size: 0.78rem;
}

.contact-thread-status {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.contact-thread-status.is-replied {
  color: var(--accent);
  border-color: rgba(0, 255, 200, 0.35);
  background: rgba(0, 255, 200, 0.08);
}

.contact-thread-status.is-open {
  color: #ffc8ec;
  border-color: rgba(255, 78, 184, 0.35);
  background: rgba(255, 78, 184, 0.08);
}

.contact-thread-view {
  flex-shrink: 0;
}

body.contact-modal-open {
  overflow: hidden;
}

.contact-modal[hidden] {
  display: none !important;
}

.contact-modal:not([hidden]) {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 200;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 3, 8, 0.72);
  backdrop-filter: blur(6px);
}

.contact-modal-panel {
  position: relative;
  margin: 4.5vh auto 2rem;
  max-width: 32rem;
  width: calc(100% - 1.75rem);
  max-height: min(88vh, 36rem);
  overflow-y: auto;
  padding: 1.35rem 1.35rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgba(0, 255, 200, 0.06),
    0 24px 64px rgba(0, 0, 0, 0.55);
}

.contact-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.contact-modal-close:hover {
  background: rgba(255, 78, 184, 0.2);
}

.contact-modal-title {
  margin: 0 2.25rem 0.35rem 0;
  font-size: 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  padding-right: 0.25rem;
}

.contact-modal-meta {
  margin: 0 0 1.1rem;
}

.contact-modal-block {
  margin-bottom: 1.1rem;
}

.contact-modal-label {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.contact-modal-text {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.contact-modal-admin.is-placeholder {
  color: var(--muted);
  font-style: italic;
}

.contact-modal-followup {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.contact-modal-followup-label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.88rem;
}

.contact-modal-followup textarea {
  margin-bottom: 0.75rem;
}
