/* ==========================================================================
   Victor Media — shared styles
   Dark grey + amber. Tokens first, then base, layout, components, pages.
   ========================================================================== */

/* Self-hosted variable fonts (latin subset), both SIL Open Font License */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
}

:root {
  /* Surfaces */
  --bg: #121214;
  --surface: #1a1a1d;
  --surface-2: #222226;
  --surface-3: #2a2a2f;
  --ink: 255, 255, 255; /* overlay tint: white on dark, black on light */
  --bg-rgb: 18, 18, 20;
  --border: rgba(var(--ink), 0.08);
  --border-strong: rgba(var(--ink), 0.14);
  --placeholder: #6f6a63;
  --input-focus-bg: #161618;
  --mock-title-end: #cfc9bf;
  --mock-img-a: #3a2a10;
  --mock-img-b: #1f1a12;
  --glow-strength: 0.08;
  --logo-tile: rgba(245, 158, 11, 0.1);
  --logo-tile-border: rgba(245, 158, 11, 0.32);
  --logo-accent: #f59e0b;

  /* Text */
  --text: #f3efe8;
  --text-muted: #a9a49b;
  --text-faint: #8a857d;

  /* Amber */
  --amber: #f59e0b;
  --amber-light: #ffc857;
  --accent-text: #ffc857; /* amber for text; darkened in light mode for contrast */
  --amber-soft: rgba(245, 158, 11, 0.12);
  --amber-line: rgba(245, 158, 11, 0.35);
  --on-amber: #1b1203;

  /* Feedback */
  --success: #4ade80;
  --error: #f87171;

  /* Type */
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;

  /* Spacing (8pt) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --s-8: 8rem;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1180px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 700ms;

  /* Reactive background (updated by JS) */
  --mx: 50%;
  --my: 30%;
  --hue: 38;

  /* Layers */
  --z-bg: -1;
  --z-header: 40;
  --z-menu: 50;

  color-scheme: dark;
}

/* Light theme: warm off-white with deeper amber text */
:root[data-theme="light"] {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --surface-2: #f1eee8;
  --surface-3: #e6e1d8;
  --ink: 28, 24, 18;
  --bg-rgb: 247, 245, 241;
  --border: rgba(var(--ink), 0.1);
  --border-strong: rgba(var(--ink), 0.18);

  --text: #1c1a17;
  --text-muted: #57524b;
  --text-faint: #6b665e;

  --amber-soft: rgba(245, 158, 11, 0.14);
  --amber-line: rgba(217, 119, 6, 0.4);
  --accent-text: #b45309;

  --success: #15803d;
  --error: #c62828;

  --placeholder: #8a857d;
  --input-focus-bg: #ffffff;
  --mock-title-end: #57524b;
  --mock-img-a: #fde7b0;
  --mock-img-b: #f7d58a;
  --glow-strength: 0.12;
  --logo-tile: #fff3d6;
  --logo-tile-border: rgba(217, 119, 6, 0.35);
  --logo-accent: #d97706;

  color-scheme: light;
}

/* Smooth colour change only while switching themes */
.theme-switching,
.theme-switching *,
.theme-switching *::before,
.theme-switching *::after {
  transition: background-color 400ms ease, border-color 400ms ease, color 400ms ease, fill 400ms ease !important;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

::selection {
  background: var(--amber);
  color: var(--on-amber);
}

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

.skip-link {
  position: absolute;
  left: var(--s-2);
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--amber);
  color: var(--on-amber);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--s-2);
}

.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;
}

/* ---------- Reactive background ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  pointer-events: none;
  overflow: hidden;
}

.bg__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      640px circle at var(--mx) var(--my),
      hsl(var(--hue) 95% 55% / var(--glow-strength)),
      transparent 62%
    ),
    radial-gradient(
      900px circle at calc(100% - var(--mx)) calc(100% - var(--my) * 0.6),
      hsl(calc(var(--hue) - 14) 90% 48% / calc(var(--glow-strength) * 0.4)),
      transparent 65%
    ),
    radial-gradient(1200px circle at 50% -10%, rgba(var(--ink), 0.035), transparent 60%);
}

/* Faint grid that only shows near the cursor */
.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--ink), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ink), 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(360px circle at var(--mx) var(--my), #000 0%, transparent 70%);
  mask-image: radial-gradient(360px circle at var(--mx) var(--my), #000 0%, transparent 70%);
}

.bg__grain {
  position: absolute;
  inset: -50%;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-2);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--s-4);
  }
}

.section {
  padding-block: var(--s-5);
}

@media (min-width: 1024px) {
  .section {
    padding-block: 5rem;
  }
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--s-4);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--s-2);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--amber);
}

.section-head h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
}

.section-head p {
  margin-top: var(--s-2);
  color: var(--text-muted);
  font-size: 1.125rem;
}

.text-amber {
  color: var(--accent-text);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  transition: background var(--dur) ease, border-color var(--dur) ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(var(--bg-rgb), 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand__mark {
  width: 40px;
  height: 40px;
  flex: none;
}

.brand__name span {
  color: var(--accent-text);
}

/* Logo draw-in on load */
.logo-arm {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

/* Logo colours follow the theme */
.lm-tile {
  fill: var(--logo-tile);
  stroke: var(--logo-tile-border);
  stroke-width: 1.5;
}

.lm-left,
.lm-right {
  stroke-width: 3.6;
  stroke-linecap: round;
}

.lm-left {
  stroke: var(--text);
}

.lm-right {
  stroke: var(--logo-accent);
}

.lm-dot {
  fill: var(--logo-accent);
}

.logo-dot {
  transform-origin: 30.5px 28.5px;
  transform-box: view-box;
}

.js .logo-arm {
  stroke-dashoffset: 1;
  animation: draw 900ms var(--ease-out) forwards;
}

.js .logo-arm--right {
  animation-delay: 380ms;
}

.js .logo-dot {
  transform: scale(0);
  animation: pop 420ms var(--ease-out) 1050ms forwards;
}

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

@keyframes pop {
  60% {
    transform: scale(1.35);
  }
  to {
    transform: scale(1);
  }
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--s-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.975rem;
  transition: color var(--dur-fast) ease, background var(--dur-fast) ease;
}

.nav__links a:hover {
  color: var(--text);
  background: rgba(var(--ink), 0.05);
}

.nav__links a[aria-current="page"] {
  color: var(--text);
}

.nav__links a[aria-current="page"]::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-left: 0.45rem;
  border-radius: 50%;
  background: var(--amber);
}

.nav .nav__cta {
  display: none;
}

@media (min-width: 900px) {
  .nav__links,
  .nav .nav__cta {
    display: inline-flex;
  }
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Theme toggle: sun/moon swap with a little spin */
.theme-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}

.theme-toggle:hover {
  border-color: var(--amber-line);
  color: var(--accent-text);
}

.theme-toggle:active {
  transform: scale(0.94);
}

.theme-toggle svg {
  position: absolute;
  width: 20px;
  height: 20px;
  transition: transform 500ms var(--ease-out), opacity 300ms ease;
}

/* Dark theme shows the sun (switch to light) */
.theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 1;
  transform: none;
}

/* "Try our dark mode" tip under the toggle */
.theme-wrap {
  position: relative;
  display: inline-flex;
}

.theme-tip {
  position: absolute;
  top: calc(100% + 12px);
  right: -6px;
  z-index: var(--z-menu);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  border: 0;
  border-radius: 14px;
  background: #1c1c1f;
  color: #f3efe8;
  font: 600 0.9rem/1.2 var(--font-body);
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.45);
  transform-origin: calc(100% - 28px) -8px;
  opacity: 0;
  transform: translateY(-6px) scale(0.92);
  pointer-events: none;
  transition: opacity 260ms var(--ease-out), transform 360ms var(--ease-out);
}

.theme-tip::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 22px;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: inherit;
  transform: rotate(45deg);
}

.theme-tip svg {
  width: 16px;
  height: 16px;
  color: var(--amber);
}

.theme-tip.is-shown {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.theme-tip:hover {
  background: #26262a;
}

/* Gentle nudge on the toggle while the tip is up */
.theme-wrap.has-tip .theme-toggle {
  border-color: var(--amber-line);
  animation: nudge 1.6s var(--ease-in-out) 2;
}

@keyframes nudge {
  0%, 100% { transform: none; }
  50% { transform: rotate(-10deg) scale(1.06); }
}

/* Mobile menu */
.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle__bars {
  position: relative;
  width: 18px;
  height: 12px;
}

.menu-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) ease;
}

.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 5px; }
.menu-toggle__bars span:nth-child(3) { top: 10px; }

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 76px 0 auto 0;
  z-index: var(--z-menu);
  padding: var(--s-2) var(--s-2) var(--s-4);
  background: rgba(var(--bg-rgb), 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}

.mobile-menu.is-open {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}

.mobile-menu ul {
  list-style: none;
  margin: 0 0 var(--s-3);
  padding: 0;
}

.mobile-menu a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a[aria-current="page"] {
  color: var(--accent-text);
}

@media (min-width: 900px) {
  .menu-toggle,
  .mobile-menu {
    display: none;
  }
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    transform var(--dur-fast) var(--ease-out),
    background var(--dur) ease,
    border-color var(--dur) ease,
    box-shadow var(--dur) ease;
}

.btn:hover {
  border-color: rgba(var(--ink), 0.28);
  background: var(--surface-3);
}

.btn:active {
  transform: scale(0.97);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--dur) var(--ease-out);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  --btn-bg: var(--amber);
  --btn-fg: var(--on-amber);
  border-color: transparent;
  box-shadow: 0 8px 28px -10px rgba(245, 158, 11, 0.6);
}

.btn--primary:hover {
  background: var(--amber-light);
  border-color: transparent;
  box-shadow: 0 10px 34px -8px rgba(245, 158, 11, 0.7);
}

.btn--sm {
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
}

.link-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform var(--dur) var(--ease-out);
}

.link-arrow:hover svg {
  transform: translate(2px, -2px);
}

/* ---------- Cards ---------- */

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(var(--ink), 0.03), rgba(var(--ink), 0.01)), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
  transition: border-color var(--dur) ease, transform var(--dur) var(--ease-out), background var(--dur) ease;
}

.card:hover {
  border-color: var(--border-strong);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--amber-soft);
  color: var(--accent-text);
  border: 1px solid rgba(245, 158, 11, 0.18);
}

.icon-tile svg {
  width: 24px;
  height: 24px;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: var(--s-5);
  padding-bottom: var(--s-6);
}

@media (min-width: 1024px) {
  .hero {
    padding-top: var(--s-6);
    padding-bottom: var(--s-7);
  }
}

.hero__grid {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--s-5);
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem 0.4rem 0.45rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(var(--ink), 0.03);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--s-3);
}

.pill b {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--amber);
  color: var(--on-amber);
  font-size: 0.8rem;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2.75rem, 7.4vw, 5.25rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

.hero h1 .accent {
  position: relative;
  color: var(--accent-text);
  white-space: nowrap;
}

.hero h1 .accent svg {
  position: absolute;
  left: 0;
  bottom: -0.12em;
  width: 100%;
  height: 0.22em;
  overflow: visible;
}

.hero h1 .accent path {
  stroke: var(--amber);
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.js .hero h1 .accent path {
  stroke-dashoffset: 1;
  animation: draw 900ms var(--ease-out) 1100ms forwards;
}

.hero__lead {
  max-width: 34rem;
  margin-top: var(--s-3);
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--s-4);
}

/* Word-by-word headline entrance */
.js .split-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  animation: rise 800ms var(--ease-out) forwards;
  animation-delay: calc(150ms + var(--i, 0) * 70ms);
}

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

/* Hero visual: a site being built */
.mock {
  position: relative;
  max-width: 520px;
  margin-inline: auto;
  width: 100%;
}

.mock__window {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(var(--ink), 0.02) inset;
  overflow: hidden;
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.mock__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface-3);
}

.mock__url {
  flex: 1;
  margin-left: 0.6rem;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  background: var(--bg);
  font-size: 0.78rem;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock__body {
  padding: 1.4rem;
  display: grid;
  gap: 0.9rem;
}

.mock__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mock__nav span {
  display: block;
  height: 10px;
  border-radius: 6px;
  background: var(--surface-3);
}

.mock__hero-block {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: 0.4rem;
}

.mock__lines {
  display: grid;
  gap: 0.55rem;
}

.mock__line {
  height: 12px;
  border-radius: 6px;
  background: var(--surface-3);
  transform-origin: left;
}

.mock__line--title {
  height: 20px;
  background: linear-gradient(90deg, var(--text) 0%, var(--mock-title-end) 100%);
  opacity: 0.85;
}

.mock__line--btn {
  width: 42%;
  height: 26px;
  border-radius: 999px;
  background: var(--amber);
  margin-top: 0.4rem;
}

.mock__img {
  aspect-ratio: 1;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 200, 87, 0.55), transparent 60%),
    linear-gradient(135deg, var(--mock-img-a), var(--mock-img-b));
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.mock__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.mock__cards span {
  height: 64px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

/* Build-up animation: pieces assemble in sequence, then loop gently */
.js .mock [data-build] {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  animation: build 600ms var(--ease-out) forwards;
  animation-delay: calc(500ms + var(--b, 0) * 140ms);
}

@keyframes build {
  to {
    opacity: 1;
    transform: none;
  }
}

.mock__price {
  position: absolute;
  right: -8px;
  bottom: -26px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.1rem;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid var(--amber-line);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.8), 0 0 40px -10px rgba(245, 158, 11, 0.35);
  animation: float 6s var(--ease-in-out) infinite;
}

.mock__price strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--accent-text);
}

.mock__price small {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 560px) {
  .mock__price {
    right: 8px;
  }
}

/* ---------- Who it's for ---------- */

.who {
  display: grid;
  gap: var(--s-3);
}

@media (min-width: 1024px) {
  .who {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-6);
    align-items: center;
  }

  .who .section-head {
    margin-bottom: 0;
  }
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 0.55rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.975rem;
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.tags li:hover {
  border-color: var(--amber-line);
  color: var(--accent-text);
}

/* ---------- Process ---------- */

.steps {
  position: relative;
  display: grid;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-3);
  }

  .steps::before,
  .steps::after {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    top: 24px;
    height: 2px;
    background: var(--border-strong);
  }

  /* Amber line fills across as the steps scroll into view */
  .steps::after {
    background: linear-gradient(90deg, var(--amber), var(--amber-light));
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1.6s var(--ease-out) 200ms;
  }

  .steps.is-visible::after {
    transform: scaleX(1);
  }
}

.step {
  position: relative;
  counter-increment: step;
}

.step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: var(--s-3);
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--amber);
  color: var(--accent-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 0 0 6px var(--bg);
}

.step__num::before {
  content: counter(step, decimal-leading-zero);
}

.step h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ---------- Work / case study ---------- */

.work {
  display: grid;
  gap: var(--s-3);
}

@media (min-width: 1024px) {
  .work {
    grid-template-columns: 1.6fr 1fr;
  }
}

.case {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-3);
}

@media (min-width: 768px) {
  .case {
    padding: var(--s-4);
  }
}

.case__shot {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
}

.case__shot .mock__bar {
  padding: 0.6rem 0.9rem;
}

.case__shot-frame {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.case__shot picture {
  display: block;
  height: 100%;
}

.case__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 1.2s var(--ease-out);
}

.case:hover .case__shot img {
  transform: scale(1.035);
}

.case__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--s-2) 0 0;
  padding: 0;
  list-style: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.case h3 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 0.35rem;
}

.case__sub {
  color: var(--accent-text);
  font-weight: 500;
  margin-bottom: var(--s-2);
}

.case p:not(.case__sub) {
  color: var(--text-muted);
}

.case__foot {
  margin-top: var(--s-3);
}

.next-slot {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--s-2);
  min-height: 320px;
  text-align: center;
  text-decoration: none;
  border-style: dashed;
  border-color: rgba(245, 158, 11, 0.3);
  background: repeating-linear-gradient(
      -45deg,
      rgba(245, 158, 11, 0.025) 0 12px,
      transparent 12px 24px
    ),
    var(--surface);
}

.next-slot:hover {
  border-color: var(--amber);
}

.next-slot h3 {
  font-size: 1.5rem;
}

.next-slot p {
  max-width: 24ch;
  color: var(--text-muted);
}

/* ---------- Pricing ---------- */

.offer {
  display: grid;
  gap: var(--s-4);
  max-width: 980px;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .offer {
    grid-template-columns: 1.15fr 1fr;
    gap: var(--s-5);
    align-items: center;
    padding: var(--s-5);
  }
}

.plan--featured {
  border-color: var(--amber-line);
  background:
    radial-gradient(500px circle at 20% 0%, rgba(245, 158, 11, 0.12), transparent 70%),
    var(--surface);
  box-shadow: 0 30px 60px -30px rgba(245, 158, 11, 0.35);
}

.offer h3 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
}

.plan__desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 0.5rem;
}

.offer__prices {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: var(--s-3);
}

.offer__plus {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-faint);
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-variant-numeric: tabular-nums;
}

.plan__price strong {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.plan__price span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.offer__note {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.975rem;
}

.offer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--s-3);
}

.plan__list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.offer__list {
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
}

@media (min-width: 900px) {
  .offer__list {
    padding: 0 0 0 var(--s-5);
    border-top: 0;
    border-left: 1px solid var(--border);
  }
}

.plan__list li {
  display: flex;
  gap: 0.65rem;
  font-size: 1rem;
}

.plan__list svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  color: var(--amber);
}

/* Mailbox add-on: a slim row under the main offer */
.addon {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-2) var(--s-3);
  align-items: center;
  max-width: 980px;
  margin: var(--s-3) auto 0;
  padding: var(--s-3);
}

@media (min-width: 900px) {
  .addon {
    grid-template-columns: auto 1fr auto auto;
    gap: var(--s-4);
    padding: var(--s-3) var(--s-5);
  }
}

.addon__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.addon h3 {
  font-size: 1.2rem;
  margin: 0.15rem 0 0.25rem;
}

.addon p:not(.addon__label):not(.plan__price) {
  color: var(--text-muted);
  font-size: 0.975rem;
}

.addon__price strong {
  font-size: 2.2rem;
}

@media (max-width: 899px) {
  .addon__price,
  .addon .link-arrow {
    grid-column: 2;
  }
}

.bigger {
  margin-top: var(--s-3);
  text-align: center;
  color: var(--text-muted);
}

.bigger a {
  color: var(--accent-text);
  font-weight: 600;
  text-underline-offset: 3px;
}

.price-note {
  margin-top: var(--s-3);
  color: var(--text-faint);
  font-size: 0.925rem;
  text-align: center;
}

/* ---------- Good to know (terms under pricing) ---------- */

.facts {
  margin-top: var(--s-5);
}

.facts__title {
  font-size: 1.25rem;
  margin-bottom: var(--s-2);
}

.facts__grid {
  display: grid;
  gap: 0 var(--s-4);
  margin: 0;
}

@media (min-width: 768px) {
  .facts__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.facts__grid > div {
  padding-block: var(--s-2);
  border-top: 1px solid var(--border);
}

.facts dt {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.facts dd {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.975rem;
}

/* ---------- Why affordable (note under pricing) ---------- */

.why-note {
  max-width: 640px;
  margin: var(--s-5) auto 0;
  text-align: center;
}

.why-note h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.why-note p {
  color: var(--text-muted);
  font-size: 1rem;
}

.why-note .price-note {
  margin-top: var(--s-2);
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: var(--s-6) var(--s-3);
  border-radius: 32px;
  border: 1px solid var(--amber-line);
  background:
    radial-gradient(600px circle at var(--cta-x, 50%) var(--cta-y, 0%), rgba(245, 158, 11, 0.22), transparent 70%),
    var(--surface);
  text-align: center;
}

@media (min-width: 768px) {
  .cta-band {
    padding: var(--s-7) var(--s-5);
  }
}

.cta-band h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  max-width: 18ch;
  margin-inline: auto;
}

.cta-band p {
  max-width: 34rem;
  margin: var(--s-2) auto 0;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.cta-band .hero__actions {
  justify-content: center;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: var(--s-4);
  padding-block: var(--s-4);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer {
  display: grid;
  gap: var(--s-3);
}

@media (min-width: 768px) {
  .footer {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.footer__tag {
  margin-top: 0.6rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}

.footer__links a:hover {
  color: var(--accent-text);
}

.footer__base {
  grid-column: 1 / -1;
  padding-top: var(--s-2);
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-faint);
}

/* ---------- Contact page ---------- */

.contact-hero {
  padding-top: var(--s-5);
  padding-bottom: var(--s-4);
}

@media (min-width: 1024px) {
  .contact-hero {
    padding-top: var(--s-7);
  }
}

.contact-hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.5rem);
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.contact-hero p {
  max-width: 36rem;
  margin-top: var(--s-3);
  color: var(--text-muted);
  font-size: 1.2rem;
}

.contact {
  display: grid;
  gap: var(--s-4);
  align-items: start;
}

@media (min-width: 1024px) {
  .contact {
    grid-template-columns: 1.4fr 0.8fr;
    gap: var(--s-5);
  }
}

.form-card {
  padding: var(--s-3);
}

@media (min-width: 768px) {
  .form-card {
    padding: var(--s-5);
  }
}

.form-grid {
  display: grid;
  gap: var(--s-3);
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .field--full {
    grid-column: 1 / -1;
  }
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label,
.field legend {
  font-weight: 600;
  font-size: 0.975rem;
}

.field .req {
  color: var(--accent-text);
}

.field .opt {
  color: var(--text-faint);
  font-weight: 400;
  font-size: 0.875rem;
}

.input {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.5 var(--font-body);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, background var(--dur-fast) ease;
}

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

.input:hover {
  border-color: rgba(var(--ink), 0.24);
}

.input:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
  background: var(--input-focus-bg);
}

textarea.input {
  min-height: 160px;
  resize: vertical;
}

.field.has-error .input {
  border-color: var(--error);
}

.field.has-error .input:focus {
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.2);
}

.field__error {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--error);
}

.field__error svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.field.has-error .field__error {
  display: flex;
}

.field__hint {
  font-size: 0.875rem;
  color: var(--text-faint);
}

/* Package picker (radio cards) */
.choices {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.choices legend {
  margin-bottom: 0.6rem;
  padding: 0;
}

.choices__grid {
  display: grid;
  gap: 0.6rem;
}

@media (min-width: 640px) {
  .choices__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.choice span {
  display: grid;
  gap: 0.15rem;
  min-height: 72px;
  align-content: center;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--bg);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}

.choice small {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.choice input:hover + span {
  border-color: rgba(var(--ink), 0.28);
}

.choice input:checked + span {
  border-color: var(--amber);
  background: var(--amber-soft);
}

.choice input:checked + span small {
  color: var(--accent-text);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

.choice input:active + span {
  transform: scale(0.98);
}

.form-foot {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-4);
}

@media (min-width: 640px) {
  .form-foot {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
}

.form-foot p {
  font-size: 0.9rem;
  color: var(--text-faint);
}

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(27, 18, 3, 0.3);
  border-top-color: var(--on-amber);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.is-loading .spinner {
  display: block;
}

.is-loading .btn__arrow {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-status {
  display: none;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: var(--s-3);
  padding: 1rem 1.1rem;
  border-radius: 14px;
  font-size: 0.975rem;
}

.form-status svg {
  flex: none;
  width: 22px;
  height: 22px;
}

.form-status.is-error {
  display: flex;
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.08);
}

.form-status.is-error svg {
  color: var(--error);
}

.form-status a {
  color: var(--accent-text);
}

/* Success state replaces the form */
.form-success {
  display: none;
  text-align: center;
  padding: var(--s-5) var(--s-2);
}

.form-card.is-sent form {
  display: none;
}

.form-card.is-sent .form-success {
  display: grid;
  justify-items: center;
  gap: var(--s-2);
  animation: rise 600ms var(--ease-out);
}

.success-mark {
  width: 76px;
  height: 76px;
}

.success-mark circle {
  stroke: var(--amber);
  stroke-width: 3;
  fill: var(--amber-soft);
}

.success-mark path {
  stroke: var(--accent-text);
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 600ms var(--ease-out) 250ms forwards;
}

.form-success h2 {
  font-size: 2rem;
}

.form-success p {
  color: var(--text-muted);
  max-width: 36ch;
}

/* Contact aside */
.aside {
  display: grid;
  gap: var(--s-3);
}

.aside .card {
  padding: var(--s-3);
}

@media (min-width: 768px) {
  .aside .card {
    padding: var(--s-4);
  }
}

.aside h2 {
  font-size: 1.25rem;
  margin-bottom: var(--s-2);
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 600;
  color: var(--accent-text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.email-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mini-steps {
  display: grid;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: mini;
}

.mini-steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0.8rem;
  counter-increment: mini;
  color: var(--text-muted);
  font-size: 1rem;
}

.mini-steps li::before {
  content: counter(mini);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--amber-soft);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.9rem;
}

.mini-steps strong {
  display: block;
  color: var(--text);
}

.aside__note {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ---------- Privacy / long-form text ---------- */

.prose {
  max-width: 68ch;
}

.prose h2 {
  font-size: 1.5rem;
  margin: var(--s-5) 0 var(--s-2);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose ul {
  margin: 0 0 var(--s-2);
  color: var(--text-muted);
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose li::marker {
  color: var(--amber);
}

.prose strong {
  color: var(--text);
}

.prose a {
  color: var(--accent-text);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Page fade between the two pages */
.js body {
  animation: page-in 500ms var(--ease-out);
}

.js body.is-leaving {
  opacity: 0;
  transition: opacity 220ms ease;
}

@keyframes page-in {
  from {
    opacity: 0;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

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