:root {
  --bg: hsl(260 87% 3%);
  --bg-alt: hsl(260 40% 8%);
  --ink: hsl(40 6% 95%);
  --ink-soft: hsl(40 6% 70%);
  --line: rgba(255,255,255,0.12);
  --accent: #8B5CF6;
  --accent-light: #A78BFA;
  --accent-deep: #5E2DFF;
  --accent-vivid: #AC53FF;
  --flag-critical: #C0392B;
  --maxw: 1160px;
  --nav-gutter: 230px;
  --sans: "Geist Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --display: "General Sans", var(--sans);
  --hero-bg: hsl(260 87% 3%);
  --hero-fg: hsl(40 6% 95%);
  --hero-sub: hsl(40 6% 82%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Fixed, non-scrolling video wash behind every section except the hero
   (the hero paints over it with its own opaque background/video). Sits at
   z-index -1 so it stacks above the body's base color but below all
   normal-flow page content without needing z-index on every section. */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.site-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

h1, h2, h3 { font-family: var(--sans); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--ink); }

.vh {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
  font-size: 0.85rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin: 0 0 0.9rem;
  font-weight: 400;
}
.eyebrow-center { text-align: center; }
.eyebrow-inverse { color: rgba(255,255,255,0.65); }

/* Side nav — replaces the hero navbar once you scroll past the hero.
   Line length = max(50% of viewport height, list height + 200px) via
   min-height + padding, so it's never shorter than half the page and
   never closer than 100px to the first/last item. */
.side-nav {
  position: fixed;
  top: 50%;
  left: 2.75rem;
  transform: translateY(-50%);
  z-index: 55;
  width: max-content;
  min-height: 50vh;
  padding: 100px 2.75rem 100px 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.side-nav.is-visible { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .side-nav { transition: none; } }

.side-nav-line {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.35);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.side-nav.is-visible .side-nav-line { transform: scaleY(1); }
@media (prefers-reduced-motion: reduce) { .side-nav-line { transition: none; } }

.side-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.side-nav-list li {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.side-nav.is-visible .side-nav-list li { opacity: 1; transform: none; }
.side-nav-list li:nth-child(1) { transition-delay: 0.5s; }
.side-nav-list li:nth-child(2) { transition-delay: 0.58s; }
.side-nav-list li:nth-child(3) { transition-delay: 0.66s; }
.side-nav-list li:nth-child(4) { transition-delay: 0.74s; }
.side-nav-list li:nth-child(5) { transition-delay: 0.82s; }
.side-nav-list li:nth-child(6) { transition-delay: 0.9s; }
.side-nav-list li:nth-child(7) { transition-delay: 0.98s; }
@media (prefers-reduced-motion: reduce) {
  .side-nav-list li { transition: none; opacity: 1; transform: none; }
}

.side-nav-list a {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.side-nav-list a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.side-nav-list a.active {
  color: #fff;
  background: rgba(139,92,246,0.28);
  border-color: rgba(167,139,250,0.55);
}
@media (prefers-reduced-motion: reduce) { .side-nav-list a { transition: none; } }

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

/* Mobile menu toggle — an animated "+" instead of a hamburger.
   Spins a full turn (405deg = 360 + 45) into an "×" on open, reverses on close. */
.menu-toggle {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 70;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background 0.15s ease, border-color 0.15s ease;
}
.menu-toggle:hover { background: rgba(139,92,246,0.28); border-color: rgba(167,139,250,0.55); }
.menu-toggle.is-visible { opacity: 1; visibility: visible; }
@media (max-width: 1280px) { .menu-toggle { display: flex; } }
@media (prefers-reduced-motion: reduce) { .menu-toggle { transition: none; } }

.menu-toggle-icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.menu-toggle-bar {
  position: absolute;
  background: #fff;
  border-radius: 1px;
  transition: opacity 0.2s ease;
}
.menu-toggle-bar-h { width: 18px; height: 2px; top: 8px; left: 0; }
.menu-toggle-bar-v { width: 2px; height: 18px; top: 0; left: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon { transform: rotate(405deg); }
@media (prefers-reduced-motion: reduce) {
  .menu-toggle-icon { transition: none; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon { transform: rotate(45deg); }
}

/* Mobile drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 65;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(80vw, 320px);
  z-index: 68;
  background: var(--hero-bg);
  border-left: 1px solid var(--line);
  padding: 6rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
  overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) { .mobile-drawer, .drawer-backdrop { transition: none; } }

.mobile-drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.mobile-drawer-list a {
  display: block;
  font-size: 1.2rem;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.mobile-drawer-list a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.mobile-drawer-list a.active {
  color: #fff;
  background: rgba(139,92,246,0.28);
  border-color: rgba(167,139,250,0.55);
}

/* Liquid glass (spec-exact) */
.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Hero (video) */
.hero-v2 {
  position: relative;
  overflow: visible;
  min-height: 100vh;
  background: var(--hero-bg);
  color: var(--hero-fg);
  display: flex;
  flex-direction: column;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.hero-blur {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 984px;
  height: 527px;
  max-width: 90vw;
  opacity: 0.9;
  background: #030712;
  filter: blur(82px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hero-navbar {
  width: 100%;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.hero-logo {
  color: var(--hero-fg);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  white-space: nowrap;
}
.hero-nav-links {
  display: flex;
  gap: 1.75rem;
}
.hero-nav-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.92rem;
  position: relative;
  padding: 0.2rem 0;
}
.hero-nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transition: right 0.25s ease;
}
.hero-nav-links a:hover, .hero-nav-links a.active { color: #fff; }
.hero-nav-links a.active::after { right: 0; }
@media (prefers-reduced-motion: reduce) { .hero-nav-links a::after { transition: none; } }

.hero-navbar-divider {
  margin-top: 3px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
}

.btn-hero-secondary {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--hero-fg);
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  display: inline-block;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn-hero-secondary:hover { transform: translateY(-1px); background: rgba(139,92,246,0.28); border-color: rgba(167,139,250,0.55); }
@media (prefers-reduced-motion: reduce) { .btn-hero-secondary { transition: none; } }

.hero-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
}
@media (min-width: 1280px) {
  /* Matches the side-nav's gutter once the layout has room for it, rather
     than the hero copy running edge-to-edge. */
  .hero-main { padding-left: var(--nav-gutter); padding-right: var(--nav-gutter); }
}
.hero-headline-v2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.5rem, 18vw, 220px);
  line-height: 1.02;
  letter-spacing: -0.024em;
  margin: 0;
}
/* font-size is set inline by script.js, computed so "Audit Experience"
   (the longest word in the typing cycle) always fits on one line at the
   current viewport width; this clamp is only the pre-JS fallback. white-
   space:nowrap is safe because JS sizing guarantees the fit. */
.hero-headline-row {
  display: flex;
  /* center, not baseline: when the typed word is fully deleted, the empty
     .hero-cycle span has no text baseline to align against, which made
     the caret (and the rest of hero-cycle-wrap) drop down to the box's
     bottom edge instead of holding position next to "Audit". Center
     alignment is geometric, not baseline-dependent, so it holds steady
     regardless of whether there's any text in the cycling word. */
  align-items: center;
  justify-content: center;
  gap: 0 0.28em;
  white-space: nowrap;
}
.accent-gradient {
  background-image: linear-gradient(to left, #6366f1, #a855f7, #fcd34d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero-cycle-wrap { display: inline-flex; align-items: center; }
.hero-cycle { display: inline-block; }
.hero-caret {
  display: inline-block;
  width: 0.05em;
  height: 0.78em;
  margin-left: 0.09em;
  background: rgba(255,255,255,0.82);
  animation: heroCaretBlink 1s steps(1, start) infinite;
}
@keyframes heroCaretBlink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-caret { animation: none; } }
.hero-sub-v2 {
  font-family: var(--sans);
  color: var(--hero-sub);
  font-size: 1.125rem;
  line-height: 2rem;
  max-width: 50%;
  margin-top: 9px;
  opacity: 0.8;
}
.hero-cta { margin-top: 25px; padding: 24px 29px; }

.hero-marquee {
  padding-bottom: 2.5rem;
}
.hero-marquee-inner {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
}
.marquee-track-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 6rem;
  list-style: none;
  width: max-content;
  animation: marquee 26s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0%); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}
.marquee-track li {
  border-radius: 10px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
}
.marquee-track img {
  height: 22px;
  width: auto;
  max-width: 110px;
  filter: grayscale(1) invert(1) brightness(1.5);
  opacity: 0.9;
}

/* Sections */
.section, .contact-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Darker tint over the fixed .site-bg video, same on every non-hero
     section (desktop and mobile alike) so the video reads as texture
     rather than fighting the copy. */
  background: rgba(6,3,13,0.72);
  /* Inherited by all text within: a soft shadow adds a further legibility
     floor for whatever's brightest in the video loop at any given moment. */
  text-shadow: 0 1px 4px rgba(0,0,0,0.85), 0 2px 20px rgba(2,1,8,0.65);
}
.section { padding: 3rem 1.5rem; }
.section-inner { max-width: var(--maxw); margin: 0 auto; width: 100%; position: relative; z-index: 1; }

/* Full width up to the side nav's line, for card-heavy sections (Services, Pricing) */
.section-wide { width: 100%; padding: 0 1.5rem; position: relative; z-index: 1; }
@media (min-width: 1280px) {
  .section-wide { padding: 0 3rem 0 var(--nav-gutter); }
}

/* Big centered section title, replaces the old numbered eyebrow */
.section-title {
  position: relative;
  z-index: 2;
  text-align: center;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  margin: 0 0 3rem;
}
.section-title-inverse { color: var(--hero-fg); }
.section h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); max-width: 32ch; margin-bottom: 2.5rem; font-weight: 500; }

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1.4s cubic-bezier(0.16,1,0.3,1), transform 1.4s cubic-bezier(0.16,1,0.3,1);
  transition-delay: calc(var(--i, 0) * 0.13s);
}
.reveal.in-view, .reveal.settled { opacity: 1; transform: none; }
.reveal.settled { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Cursor glow — an electric trail that follows the mouse, same violet/screen
   language as the mission orb. Position is JS-driven (translate3d) on the
   outer element; the inner core carries a pure-CSS pulse so the two motions
   don't fight each other. */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 380px;
  height: 380px;
  margin-left: -190px;
  margin-top: -190px;
  pointer-events: none;
  z-index: 40;
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform;
}
.cursor-glow.is-active { opacity: 1; }
.cursor-glow-core {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.32), rgba(99,102,241,0.14) 45%, transparent 72%);
  mix-blend-mode: screen;
  animation: cursorGlowPulse 3s ease-in-out infinite;
}
@keyframes cursorGlowPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none; }
}
@media (hover: none) {
  .cursor-glow { display: none; }
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 60;
}

/* Ambient glow (dark sections only, restrained) */
.contact-section::after {
  content: "";
  position: absolute;
  top: 50%; left: 65%;
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  background: radial-gradient(circle, rgba(139,92,246,0.22), transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  animation: drift 14s ease-in-out infinite alternate;
}
.contact-section { position: relative; overflow: hidden; }
.contact-section::after { left: 30%; }
@keyframes drift {
  from { transform: translate(-50%, -50%) scale(1); }
  to { transform: translate(-46%, -54%) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .contact-section::after { animation: none; }
}

/* Mission */
.mission-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 7rem;
  padding-left: 3rem;
  padding-right: 3rem;
}
.mission-eyebrow { position: relative; z-index: 2; }
.mission-label {
  position: relative;
  z-index: 2;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  margin: 0;
}

.mission-copy {
  position: absolute;
  z-index: 2;
  max-width: 40rem;
}
.mission-statement {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
}
/* nav-gutter only makes sense once the side-nav is actually visible
   (>=1280px, matching .side-nav's own breakpoint); below that there's no
   nav to align with, so a plain inset is used instead of pulling in the
   230px gutter meant for the desktop layout. */
.mission-copy-left { top: 28%; left: 3rem; text-align: left; }
.mission-copy-right { top: 66%; right: 3rem; text-align: right; }
@media (min-width: 1280px) {
  .mission-copy-left { left: var(--nav-gutter); }
  /* 35px matches the actual gap between the side-nav's vertical line and
     the left statement (--nav-gutter is the line's rough position, not
     exact; there's no equivalent nav line on the right, so this is
     measured to mirror that same visual gap from the viewport edge
     instead). */
  .mission-copy-right { right: 35px; }
}
.mission-statement-2 {
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  color: var(--ink);
}

@media (max-width: 900px) {
  .mission-section { padding-top: 5rem; padding-left: 1.5rem; padding-right: 1.5rem; }
  .mission-copy { position: static; max-width: none; text-align: center; margin: 2rem auto 0; }
  .mission-copy-right { text-align: center; }
  .mission-statement-2 { margin-top: 2rem; }
}

/* Review */
.review-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; margin-bottom: 2rem; }
.review-col h3 { font-size: 1.1rem; margin-bottom: 1rem; font-weight: 500; }
.check-list, .cross-list { list-style: none; margin-bottom: 1.5rem; }
.check-list li, .cross-list li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.check-list li::before { content: "\2192  "; color: var(--accent); }
.cross-list li { color: var(--ink-soft); }
.cross-list li::before { content: "\2014  "; color: var(--ink-soft); }
.review-deliverable { font-size: 1rem; color: var(--ink-soft); max-width: 60ch; }

.sample-finding { border: 1px solid var(--line); padding: 1.1rem 1.3rem; margin-top: 0.5rem; }
.sample-finding-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; font-size: 0.82rem; color: var(--ink-soft); }
.flag { font-size: 0.72rem; letter-spacing: 0.02em; padding: 0.18rem 0.55rem; color: #fff; }
.flag-critical { background: var(--flag-critical); }
.sample-finding p { font-size: 0.95rem; color: var(--ink); }

/* Timeline */
.timeline { list-style: none; display: flex; flex-direction: column; gap: 0; position: relative; padding-left: 24px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 4px; top: 0;
  width: 2px; height: 0%;
  background: var(--line);
  transition: height 1.1s cubic-bezier(0.16,1,0.3,1);
}
.timeline.drawn::before { height: 100%; }
@media (prefers-reduced-motion: reduce) {
  .timeline::before { height: 100%; transition: none; }
}
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 1.5rem; padding: 0 0 2.2rem; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 0.3rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
  transition-delay: calc(var(--i, 0) * 0.15s + 0.3s);
}
.timeline.drawn li::before { transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .timeline li::before { transform: scale(1); transition: none; }
}
.timeline-day { font-size: 0.9rem; color: var(--ink-soft); padding-top: 0.15rem; }
.timeline h3 { font-size: 1.05rem; margin-bottom: 0.4rem; font-weight: 500; }
.timeline p { color: var(--ink-soft); max-width: 48ch; }

/* Pricing */
.pricing-intro { font-size: 1.5rem; color: var(--ink-soft); margin-bottom: 3rem; }
.service-block { margin-bottom: 3.5rem; padding-bottom: 3.5rem; border-bottom: 1px solid var(--line); }
.service-block:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.service-name { font-size: 1.3rem; font-weight: 500; margin-bottom: 0.5rem; }
.service-desc { color: var(--ink-soft); font-size: 1rem; margin-bottom: 1.5rem; max-width: 56ch; }

/* Rate-sheet: flexbox rows, not a grid of identical cards. Each category is
   one row (label left, tiers flowing right); tier count varies per category
   (1-3), so flex-wrap reflects that naturally instead of forcing uniform
   grid cells. One CTA for the whole section instead of one per tier. */
.rate-sheet { display: flex; flex-direction: column; }
.rate-row {
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: flex-start;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--line);
}
.rate-sheet .rate-row:first-child { padding-top: 0; }
.rate-sheet .rate-row:last-child { border-bottom: none; padding-bottom: 0; }
.rate-category {
  flex: 0 0 220px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  padding-top: 0.2rem;
}
.rate-tiers {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 2.5rem;
}
/* Each tier is a link (so touch/keyboard reach #contact without needing
   hover), with a tier-specific line crossfading in over the scope text
   on hover/focus instead of a repeated "Get in touch" button per cell. */
.rate-tier {
  display: block;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  margin: -0.5rem;
  padding: 0.5rem;
  transition: background 0.25s ease;
}
.rate-tier:hover, .rate-tier:focus-visible { background: rgba(139,92,246,0.08); }
@media (prefers-reduced-motion: reduce) { .rate-tier { transition: none; } }

.price-tier { font-size: 0.85rem; font-weight: 600; color: var(--accent-vivid); margin-bottom: 0.6rem; }
.price-amount { font-size: 1.7rem; font-weight: 500; margin-bottom: 0.5rem; }

/* .price-scope sizes the container in normal flow (it's reliably the
   longer of the two texts); .rate-tier-prompt overlays it absolutely,
   sized to match rather than the other way round. Previously both were
   absolutely positioned inset:0 inside a fixed min-height box, which
   collapsed to that min-height and let multi-line scope text overflow
   invisibly, overlapping the next stacked tier on mobile. */
.rate-tier-detail { position: relative; display: block; }
.price-scope,
.rate-tier-prompt {
  font-size: 0.9rem;
  transition: opacity 0.35s cubic-bezier(0.16,1,0.3,1), transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.price-scope { color: var(--ink-soft); opacity: 1; transform: translateY(0); }
.rate-tier-prompt {
  position: absolute;
  inset: 0;
  color: var(--accent-light);
  font-weight: 500;
  opacity: 0;
  transform: translateY(6px);
}
.rate-tier:hover .price-scope, .rate-tier:focus-visible .price-scope { opacity: 0; transform: translateY(-6px); }
.rate-tier:hover .rate-tier-prompt, .rate-tier:focus-visible .rate-tier-prompt { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .price-scope, .rate-tier-prompt { transition: none; }
}

@media (max-width: 1040px) {
  .rate-tiers { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
}

@media (max-width: 700px) {
  .rate-row { flex-direction: column; gap: 1rem; }
  .rate-category { flex-basis: auto; }
  .rate-tiers { grid-template-columns: 1fr; }
}

/* Services overview grid */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  background: rgba(255,255,255,0.03);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, opacity 1.4s cubic-bezier(0.16,1,0.3,1);
}
.service-card:hover { border-color: rgba(167,139,250,0.55); background: rgba(139,92,246,0.1); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .service-card { transition: none; } .service-card:hover { transform: none; } }
.service-card .service-name { font-size: 1.15rem; }
.service-card .service-desc { font-size: 0.95rem; margin-bottom: 1.5rem; }
.service-card-link {
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--accent-light);
  text-decoration: none;
}
.service-card-link:hover { color: #fff; }

/* About */
.about-body { font-size: 1.15rem; color: var(--ink-soft); max-width: 48ch; font-weight: 400; margin-bottom: 2rem; }
.about-body:last-child { margin-bottom: 0; }

.about-subhead { font-size: 1rem; font-weight: 600; color: var(--ink); margin: 0 0 1rem; }

.values-list { list-style: none; margin: 0 0 2rem; max-width: 48ch; display: flex; flex-direction: column; gap: 0.9rem; }
.values-list li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--ink-soft);
  font-size: 1rem;
}
.values-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
}
.value-name { color: var(--ink); font-weight: 600; }

/* Buttons (body sections, not the hero) */
.btn-primary {
  font-size: 0.95rem;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  padding: 24px 29px;
  border-radius: 999px;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn-primary { transition: none; } }

.btn-ghost {
  font-size: 0.95rem;
  color: var(--ink);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  padding: 24px 29px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .btn-ghost { transition: none; } }

/* Contact — merged with About: one closing beat (who you're talking to,
   then how to reach them) instead of two separate centered stacks.
   Asymmetric split, not a 50/50 mirror. No background override: like every
   other non-hero section, it shows the fixed .site-bg video. */
.contact-section { color: var(--hero-fg); }
.contact-merged {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
  padding-top: 1rem;
}
.contact-about h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 1.25rem; }
.contact-cta { padding-top: 0.35rem; }
.contact-headline { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 500; margin-bottom: 0.8rem; }
.contact-lede { color: rgba(255,255,255,0.68); font-size: 1.05rem; margin: 0.6rem 0 2rem; max-width: 38ch; font-weight: 400; }

/* Contact form — replaces a raw mailto link so the address isn't sitting
   in page source for scrapers. Netlify Forms handles submission once live. */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  max-width: 30rem;
  transition: opacity 0.3s cubic-bezier(0.16,1,0.3,1), transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
/* Author styles always override the UA stylesheet regardless of
   specificity, so the plain `display: flex` above silently wins over the
   browser default `[hidden] { display: none }` — setting the hidden
   attribute in JS had no visual effect and the form sat at full height
   after "submission", pushing .form-success down below it. */
.contact-form[hidden] { display: none; }
.contact-form.is-leaving { opacity: 0; transform: translateY(-6px); }
@media (prefers-reduced-motion: reduce) { .contact-form { transition: none; } }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field label { font-size: 0.9rem; color: rgba(255,255,255,0.68); }
.form-field input,
.form-field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--hero-fg);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(167,139,250,0.7);
  background: rgba(139,92,246,0.08);
}
.contact-submit { align-self: flex-start; margin-top: 0.5rem; }
.contact-submit:disabled { opacity: 0.6; cursor: default; }
.form-status { font-size: 0.9rem; color: rgba(255,255,255,0.68); min-height: 1.2em; }

/* Success state: replaces the form in place rather than a separate
   "thank you" page or a plain status line, so the confirmation carries
   the same visual weight the form itself had. */
.form-success {
  max-width: 30rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s cubic-bezier(0.16,1,0.3,1), transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.form-success.is-visible { opacity: 1; transform: none; }
.form-success:focus { outline: none; }
.form-success h3 { font-size: 1.25rem; font-weight: 500; margin: 0 0 0.5rem; color: var(--hero-fg); }
.form-success p { color: rgba(255,255,255,0.7); margin: 0; max-width: 40ch; }
@media (prefers-reduced-motion: reduce) { .form-success { transition: none; } }
@media (max-width: 860px) {
  .contact-merged { grid-template-columns: 1fr; gap: 3rem; }
  .contact-form { max-width: none; }
  /* Stacked single-column: put the actual "how to reach us" content right
     under the "Contact" title, with the business bio/values following
     rather than leading — visual order only, DOM order is unchanged. */
  .contact-cta { order: 1; }
  .contact-about { order: 2; }
}
.contact-section .btn-primary { background: #fff; color: var(--hero-bg); }
.contact-section .btn-primary:hover { background: var(--accent); color: #fff; }
.btn-ghost-inverse { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.3); background: none; }
.btn-ghost-inverse:hover { border-color: var(--accent); color: #fff; }

/* Footer */
.footer { text-align: center; padding: 2rem 1.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.55); background: var(--hero-bg); }

/* Responsive */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero-nav-links { display: none; }
  .review-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 0.4rem; }
  .section, .contact-section { min-height: auto; padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .marquee-track-wrap { width: 100%; }
}

@media (max-width: 480px) {
  .section { padding: 3.5rem 1.25rem; }
  .contact-actions { flex-direction: column; align-items: flex-start; }
  .hero-navbar { padding: 16px 20px; }
  .hero-cta { padding: 18px 22px; }
}
