/* Quadbrik — Bold black & white agency */

:root {
  --color-primary: #ffffff;
  --color-on-primary: #000000;
  --color-secondary: rgba(255, 255, 255, 0.72);
  --color-accent: #ffffff;
  --color-accent-hover: #e5e5e5;
  --color-background: #000000;
  --color-foreground: #ffffff;
  --color-muted: #141414;
  --color-muted-fg: rgba(255, 255, 255, 0.55);
  --color-border: rgba(255, 255, 255, 0.22);
  --color-border-soft: rgba(255, 255, 255, 0.14);
  --color-destructive: #f87171;
  --color-ring: #ffffff;
  --color-surface: #000000;
  --color-invert: #ffffff;
  --color-invert-fg: #000000;
  --color-hero-tint: rgba(0, 0, 0, 0.72);

  --font-heading: "Outfit", sans-serif;
  --font-body: "Work Sans", sans-serif;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6.5rem;

  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;

  --container: 74rem;
  --narrow: 42rem;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 200ms;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-foreground);
  background: var(--color-background);
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
}

/* Kill the pre-hydration blank scroll flash on first paint */
html.is-splash-pending,
html.is-splash-pending body,
body.is-splash-active,
body:not(.is-ready):not(.is-splash-active) {
  overflow: hidden;
}

body.is-splash-active {
  overflow: hidden;
}

/* Hide only the nav mark during splash — site stays painted underneath */
body.is-splash-active .site-header .logo-mark {
  opacity: 0;
}

body.is-splash-active .site-header .logo-text,
body.is-splash-active .site-header .logo-letter {
  opacity: 0;
}

/* Shared brand mark */
.brand-mark {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.brand-path--outer {
  fill: #fff;
  stroke: none;
}

.brand-path--inner {
  fill: #fff;
  stroke: none;
}

/* ——— Splash screen ——— */
.splash {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  background: transparent;
  color: #fff;
  pointer-events: none;
}

.splash-backdrop {
  position: absolute;
  inset: 0;
  background: #000;
  transition: opacity 0.9s var(--ease);
}

.splash.is-revealing .splash-backdrop {
  opacity: 0;
}

.splash-logo {
  position: relative;
  z-index: 1;
  width: min(42vw, 12rem);
  will-change: transform;
  transform-origin: center center;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  pointer-events: none;
}

.splash-logo .brand-path--outer {
  fill: none;
  stroke: #fff;
  stroke-width: 210;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

/* Keep the inner circle hidden until the Q outline finishes */
.splash-logo .brand-path--inner {
  opacity: 0;
  fill: none;
  stroke: none;
  pointer-events: none;
}

.splash-logo.is-filled .brand-path--outer {
  fill: #fff !important;
  stroke: none !important;
  stroke-width: 0 !important;
  stroke-dasharray: none !important;
  stroke-dashoffset: 0 !important;
}

.splash-logo.is-filled .brand-path--inner {
  opacity: 1;
  fill: #fff !important;
  stroke: none !important;
}

.splash.is-exit .splash-logo {
  will-change: transform;
}

/* Logo lockup in header / footer */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: #fff;
}

.logo-mark {
  width: 1.55rem;
  height: auto;
  flex-shrink: 0;
  display: block;
}

.logo-text {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
  letter-spacing: -0.045em;
  transform: translateY(0.02em);
}

.site-header .logo-letter {
  display: inline-block;
  opacity: 0;
}

.logo:hover {
  color: #fff;
  opacity: 0.55;
}

/* Wordmark only after the mark lands in the nav */
body.is-ready .site-header .logo-mark {
  opacity: 1;
}

body.is-ready .site-header .logo-letter {
  animation: logo-letter-in 0.42s var(--ease) both;
}

body.is-ready .site-header .logo-letter:nth-child(1) { animation-delay: 0.02s; }
body.is-ready .site-header .logo-letter:nth-child(2) { animation-delay: 0.06s; }
body.is-ready .site-header .logo-letter:nth-child(3) { animation-delay: 0.1s; }
body.is-ready .site-header .logo-letter:nth-child(4) { animation-delay: 0.14s; }
body.is-ready .site-header .logo-letter:nth-child(5) { animation-delay: 0.18s; }
body.is-ready .site-header .logo-letter:nth-child(6) { animation-delay: 0.22s; }
body.is-ready .site-header .logo-letter:nth-child(7) { animation-delay: 0.26s; }

@keyframes logo-letter-in {
  from {
    opacity: 0;
    transform: translateX(-4px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-backdrop {
    transition-duration: 0.35s;
  }

  .splash.is-exit .splash-logo {
    transition-duration: 0.55s;
  }

  body.is-revealing .site-header .logo-text,
  body.is-ready .site-header .logo-text,
  body.is-ready .site-header .logo-letter {
    transition: none;
    animation: none;
    opacity: 1;
    transform: none;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease),
    border-color var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

a:hover {
  color: #fff;
  opacity: 0.7;
}

button,
.btn,
.nav-toggle,
.logo,
.site-nav a,
.social-list a {
  cursor: pointer;
}

h1,
h2,
h3,
.logo,
.hero-brand,
.process-num {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

h1,
h2,
h3 {
  margin: 0 0 0.85rem;
  color: #fff;
}

h2 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
}

h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.72);
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2.5rem, var(--narrow));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.75rem;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  padding: 0.5rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  letter-spacing: -0.01em;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
  opacity: 0.45;
}

.nav-cta {
  padding: 0.6rem 1.15rem !important;
  background: #fff;
  color: #000 !important;
  border: 1px solid #fff;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: transparent !important;
  color: #fff !important;
  opacity: 1 !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid #fff;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease),
    border-color var(--duration) var(--ease), transform 180ms var(--ease);
}

.btn:focus-visible,
.site-nav a:focus-visible,
.nav-toggle:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.social-list a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.btn-primary {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.btn-primary:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: #000;
}

.contact .btn-primary,
.btn-block {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.contact .btn-primary:hover {
  background: transparent;
  color: #fff;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(94vh, 56rem);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: #000;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15) brightness(0.85);
  transform: scale(1.06);
  animation: hero-ken 20s var(--ease) forwards;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.92) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) 0 calc(var(--space-2xl) + 0.5rem);
  max-width: 48rem;
  margin-left: max(1.25rem, calc((100% - var(--container)) / 2));
  margin-right: auto;
  width: min(100% - 2.5rem, 48rem);
}

.hero-brand {
  margin: 0 0 0.85rem;
  font-size: clamp(3.5rem, 12vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.9;
  color: #fff;
  animation: rise-in 0.65s var(--ease) both;
}

.hero-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 16ch;
  animation: rise-in 0.65s var(--ease) 0.08s both;
}

.hero-tagline {
  margin: 0 0 2rem;
  max-width: 28rem;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.72);
  animation: rise-in 0.65s var(--ease) 0.14s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise-in 0.65s var(--ease) 0.2s both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-ken {
  to {
    transform: scale(1);
  }
}

/* Marquee */
/* Marquee — hard break between hero and content */
.marquee {
  overflow: hidden;
  background: #000;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding: 1.15rem 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.marquee-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Sections — chapter rhythm on black */
.section {
  padding: clamp(4.75rem, 11vw, 8rem) 0;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.section-intro {
  max-width: 42rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.eyebrow::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 1px;
  background: #fff;
  opacity: 0.9;
  flex-shrink: 0;
}

.lead {
  font-size: 1.2rem;
  color: var(--color-secondary);
}

.section h2 {
  max-width: 16ch;
}

/* About — bold two-column */
.about {
  background: #000;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-xl) var(--space-2xl);
  align-items: start;
}

.about-layout .eyebrow {
  grid-column: 1;
}

.about-layout h2 {
  grid-column: 1;
  margin: 0;
  max-width: none;
}

.about-copy {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding-top: 0.35rem;
  padding-left: var(--space-xl);
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.about .lead {
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  color: #fff;
}

/* Services */
.services {
  background: #111;
  color: #fff;
}

.services .eyebrow,
.services h2,
.services .lead,
.services h3,
.services p {
  color: #fff;
}

.services .lead,
.services .service-item p {
  color: rgba(255, 255, 255, 0.72);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.service-item {
  position: relative;
  padding: var(--space-xl) var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  overflow: hidden;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
  transition: background 220ms var(--ease);
}

@media (hover: none), (pointer: coarse) {
  .service-item {
    cursor: pointer;
  }
}

.service-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: #fff;
  transition: width 260ms var(--ease);
  z-index: 0;
}

.service-item > * {
  position: relative;
  z-index: 1;
}

.service-item:nth-child(odd) {
  padding-right: var(--space-xl);
  border-right: 1px solid rgba(255, 255, 255, 0.28);
}

.service-item:nth-child(even) {
  padding-left: var(--space-xl);
}

.service-item:nth-child(even)::before {
  left: auto;
  right: 0;
}

.service-item:hover,
.service-item.is-open,
.service-item:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.service-item:hover::before,
.service-item.is-open::before,
.service-item:focus-visible::before {
  width: 3px;
}

.service-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--spot-x, 50%) var(--spot-y, 40%),
    rgba(255, 255, 255, 0.08),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 220ms var(--ease);
  pointer-events: none;
  z-index: 0;
}

.service-item:hover .service-spotlight,
.service-item.is-open .service-spotlight {
  opacity: 1;
}

.service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1rem;
  min-height: 2.5rem;
}

.service-icon {
  display: inline-flex;
  color: #fff;
  transition: transform 280ms var(--ease);
}

.service-item:hover .service-icon,
.service-item.is-open .service-icon {
  transform: translateY(-4px);
}

.service-item h3 {
  margin-bottom: 0.55rem;
  font-size: 1.5rem;
  transition: transform 220ms var(--ease);
}

.service-item:hover h3,
.service-item.is-open h3 {
  transform: translateX(4px);
}

.service-item p {
  max-width: 28rem;
  margin-bottom: 0;
  transition: color 220ms var(--ease);
}

.service-item:hover p,
.service-item.is-open p {
  color: rgba(255, 255, 255, 0.88);
}

.service-arrow {
  display: inline-block;
  margin-left: 0.35rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}

.service-item:hover .service-arrow,
.service-item.is-open .service-arrow,
.service-item:focus-within .service-arrow {
  opacity: 1;
  transform: translateX(0);
}

.service-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition:
    max-height 620ms cubic-bezier(0.33, 0, 0.2, 1),
    opacity 520ms cubic-bezier(0.33, 0, 0.2, 1),
    margin 520ms cubic-bezier(0.33, 0, 0.2, 1);
}

.service-item.is-open .service-panel,
.service-item:focus-within .service-panel {
  max-height: 9rem;
  opacity: 1;
  margin-top: 1.15rem;
}

@media (hover: hover) and (pointer: fine) {
  .service-item:hover .service-panel {
    max-height: 9rem;
    opacity: 1;
    margin-top: 1.15rem;
  }
}

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

.service-tags li {
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(10px);
  opacity: 0;
  transition:
    transform 560ms cubic-bezier(0.33, 0, 0.2, 1),
    opacity 560ms cubic-bezier(0.33, 0, 0.2, 1),
    background 200ms var(--ease),
    color 200ms var(--ease);
  transition-delay: 0ms;
}

.service-item.is-open .service-tags li,
.service-item:hover .service-tags li,
.service-item:focus-within .service-tags li {
  transform: translateY(0);
  opacity: 1;
}

.service-item.is-open .service-tags li:nth-child(1),
.service-item:hover .service-tags li:nth-child(1),
.service-item:focus-within .service-tags li:nth-child(1) { transition-delay: 90ms; }
.service-item.is-open .service-tags li:nth-child(2),
.service-item:hover .service-tags li:nth-child(2),
.service-item:focus-within .service-tags li:nth-child(2) { transition-delay: 160ms; }
.service-item.is-open .service-tags li:nth-child(3),
.service-item:hover .service-tags li:nth-child(3),
.service-item:focus-within .service-tags li:nth-child(3) { transition-delay: 230ms; }
.service-item.is-open .service-tags li:nth-child(4),
.service-item:hover .service-tags li:nth-child(4),
.service-item:focus-within .service-tags li:nth-child(4) { transition-delay: 300ms; }

.service-tags li:hover {
  background: #fff;
  color: #000;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  transform: translateY(10px);
  opacity: 0;
  transition:
    opacity 560ms cubic-bezier(0.33, 0, 0.2, 1),
    transform 560ms cubic-bezier(0.33, 0, 0.2, 1),
    border-color 200ms var(--ease);
  transition-delay: 0ms;
}

.service-item.is-open .service-cta,
.service-item:hover .service-cta,
.service-item:focus-within .service-cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 360ms;
}

.service-cta:hover {
  border-bottom-color: #fff;
}

/* Service visual widgets (top-right) */
.service-visual {
  margin-left: auto;
  opacity: 0.55;
  transition: opacity 240ms var(--ease), transform 320ms var(--ease);
}

.service-item:hover .service-visual,
.service-item.is-open .service-visual {
  opacity: 1;
  transform: translateY(-4px);
}

.visual-bar {
  display: block;
  height: 4px;
  background: rgba(255, 255, 255, 0.28);
  transform-origin: left center;
  transform: scaleX(0.35);
  transition: transform 320ms var(--ease), background 220ms var(--ease);
}

.visual-bar:nth-child(1) { width: 100%; }
.visual-bar:nth-child(2) { width: 78%; transition-delay: 50ms; }
.visual-bar:nth-child(3) { width: 56%; transition-delay: 100ms; }

.service-item:hover .visual-bar,
.service-item.is-open .visual-bar {
  transform: scaleX(1);
  background: rgba(255, 255, 255, 0.75);
}

/* Web — browser window */
.visual-browser {
  display: block;
  width: 72px;
  height: 52px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 12px;
  padding: 0 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.browser-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background 220ms var(--ease);
}

.service-item--web:hover .browser-dot,
.service-item--web.is-open .browser-dot {
  background: rgba(255, 255, 255, 0.85);
}

.browser-screen {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 7px 6px;
}

/* Mobile — phone */
.visual-device {
  display: block;
  width: 42px;
  height: 72px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  padding: 6px 5px 8px;
  position: relative;
}

.visual-device::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  width: 12px;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  transform: translateX(-50%);
  border-radius: 1px;
}

.device-screen {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding-top: 6px;
}

/* Enterprise — platform stack */
.visual-stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  width: 64px;
  height: 56px;
}

.stack-layer {
  display: block;
  height: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  transform: scaleX(0.4);
  transform-origin: left center;
  transition: transform 320ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease);
}

.stack-layer:nth-child(1) { width: 100%; }
.stack-layer:nth-child(2) { width: 82%; transition-delay: 60ms; }
.stack-layer:nth-child(3) { width: 64%; transition-delay: 120ms; }

.service-item--enterprise:hover .stack-layer,
.service-item--enterprise.is-open .stack-layer {
  transform: scaleX(1);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.8);
}

/* IoT — signal rings */
.visual-signal {
  position: relative;
  display: block;
  width: 56px;
  height: 56px;
}

.signal-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: background 220ms var(--ease), transform 280ms var(--ease);
}

.signal-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.35);
  opacity: 0.35;
  transition: transform 360ms var(--ease), opacity 280ms var(--ease), border-color 220ms var(--ease);
}

.signal-ring:nth-child(2) { width: 22px; height: 22px; }
.signal-ring:nth-child(3) { width: 36px; height: 36px; transition-delay: 60ms; }
.signal-ring:nth-child(4) { width: 50px; height: 50px; transition-delay: 120ms; }

.service-item--iot:hover .signal-core,
.service-item--iot.is-open .signal-core {
  background: #fff;
  transform: scale(1.15);
}

.service-item--iot:hover .signal-ring,
.service-item--iot.is-open .signal-ring {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.7);
}

.service-item.is-visible {
  transition-delay: var(--reveal-delay, 0ms);
}

/* Process — scroll-scrubbed spine */
.process {
  background: #000;
}

.process-track {
  position: relative;
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.process-spine {
  position: relative;
  justify-self: center;
  width: 1px;
  margin: 0.35rem 0;
}

.process-spine-line {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.18);
}

.process-spine-fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: #fff;
  transform-origin: top center;
  transition: height 120ms linear;
}

.process-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: var(--space-md);
  align-items: start;
  padding: var(--space-xl) 0 var(--space-xl) 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  opacity: 0.34;
  transition: opacity 320ms var(--ease), background 220ms var(--ease);
}

.process-step.reveal:not(.is-visible) {
  opacity: 0;
}

.process-step.is-visible,
.process-step.reveal.is-visible {
  opacity: 0.34;
}

.process-step.is-active,
.process-step.reveal.is-visible.is-active,
.process-step.reveal.is-active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.03);
}

.process-step.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
}

.process-num {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.05em;
  transition: transform 280ms var(--ease);
}

.process-step.is-active .process-num {
  transform: translateX(2px);
}

.process-step h3 {
  margin-bottom: 0.35rem;
  font-size: 1.5rem;
}

.process-outcome {
  margin: 0 0 0.75rem;
  max-width: 36rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.process-step p:not(.process-outcome) {
  margin: 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.72);
}

.process-step.is-active p:not(.process-outcome) {
  color: rgba(255, 255, 255, 0.88);
}

.process-step.is-active .process-outcome {
  color: rgba(255, 255, 255, 0.72);
}

@media (prefers-reduced-motion: reduce) {
  .process-spine-fill {
    transition: none;
  }
}

/* Tech Stack — flanking layout: 3 web left, 3 IoT right, 2 top, 1 under Q */
.stack {
  background: #000;
  color: #fff;
  overflow: hidden;
}

.stack-container {
  max-width: 100%;
}

.stack-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding: clamp(1.25rem, 5vw, 4rem) clamp(0.35rem, 2vw, 0.75rem);
  margin-inline: auto;
  overflow-x: clip;
  container-type: inline-size;
  container-name: stack;
}

.stack-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.stack-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0; /* behind all tiles — lines emerge from under the company block */
  overflow: visible;
}

.stack-link-base {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1.15;
}

.stack-link-ray {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  pointer-events: none;
  will-change: stroke-dashoffset;
}

/* Soft bloom — continuous electricity pulse */
.stack-link-ray--glow {
  stroke-width: 6.5;
  stroke: rgba(255, 255, 255, 0.45);
  filter: blur(3px);
  opacity: 0.55;
  animation: stack-elec-flow var(--ray-duration, 1.2s) linear var(--ray-delay, 0s) infinite;
}

/* Core of the flowing charge */
.stack-link-ray--core {
  stroke-width: 2.1;
  stroke: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.75));
  opacity: 0.95;
  animation: stack-elec-flow var(--ray-duration, 1.2s) linear var(--ray-delay, 0s) infinite;
}

.stack-stage.is-powered .stack-link-ray--glow {
  opacity: 0.65;
}

.stack-stage.is-powered .stack-link-ray--core {
  opacity: 1;
}

@keyframes stack-elec-flow {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: var(--ray-travel, -240);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stack-link-ray {
    display: none;
    animation: none;
  }
}

/*
  Flanking grid:
       nextjs  motion
  react           arduino
  typescript  Q   nodered
  gsap            rpi
         tailwind
*/
.stack-ring {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto auto auto auto;
  grid-template-rows: auto auto auto auto auto;
  column-gap: clamp(0.65rem, 2.2vw, 1.6rem);
  row-gap: clamp(0.4rem, 1.4vw, 0.95rem);
  justify-content: center;
  align-items: center;
  justify-items: center;
  width: 100%;
  max-width: 100%;
  padding: clamp(0.4rem, 1.5vw, 1rem) clamp(0.25rem, 1vw, 0.75rem);
  isolation: isolate;
}

.stack-ring > [data-tech="nextjs"] {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  margin-inline-end: clamp(0.25rem, 1vw, 0.75rem);
  margin-bottom: clamp(0.15rem, 0.8vw, 0.45rem);
}

.stack-ring > [data-tech="motion"] {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
  margin-inline-start: clamp(0.25rem, 1vw, 0.75rem);
  margin-bottom: clamp(0.15rem, 0.8vw, 0.45rem);
}

.stack-ring > [data-tech="react"] {
  grid-column: 1;
  grid-row: 2;
  justify-self: end;
  margin-inline-end: clamp(0.35rem, 1.4vw, 1rem);
  margin-bottom: clamp(0.15rem, 0.7vw, 0.4rem);
}

.stack-ring > [data-tech="typescript"] {
  grid-column: 1;
  grid-row: 3;
  justify-self: end;
  margin-inline-end: clamp(0.35rem, 1.4vw, 1rem);
}

.stack-ring > [data-tech="gsap"] {
  grid-column: 1;
  grid-row: 4;
  justify-self: end;
  margin-inline-end: clamp(0.35rem, 1.4vw, 1rem);
  margin-top: clamp(0.15rem, 0.7vw, 0.4rem);
}

.stack-ring > .stack-tile--center {
  grid-column: 2 / 4;
  grid-row: 2 / 5;
  z-index: 6; /* sit above connectors so lines emerge from behind the logo */
}

.stack-ring > [data-tech="tailwind"] {
  grid-column: 2 / 4;
  grid-row: 5;
  margin-top: clamp(0.3rem, 1.2vw, 0.75rem);
}

.stack-ring > [data-tech="arduino"] {
  grid-column: 4;
  grid-row: 2;
  justify-self: start;
  margin-inline-start: clamp(0.35rem, 1.4vw, 1rem);
  margin-bottom: clamp(0.15rem, 0.7vw, 0.4rem);
}

.stack-ring > [data-tech="nodered"] {
  grid-column: 4;
  grid-row: 3;
  justify-self: start;
  margin-inline-start: clamp(0.35rem, 1.4vw, 1rem);
}

.stack-ring > [data-tech="rpi"] {
  grid-column: 4;
  grid-row: 4;
  justify-self: start;
  margin-inline-start: clamp(0.35rem, 1.4vw, 1rem);
  margin-top: clamp(0.15rem, 0.7vw, 0.4rem);
}

.stack-tile {
  position: relative;
  z-index: 3; /* above connector SVG */
  /* Fluid footprint so the grid fits the viewport (transform scale alone won't) */
  --stack-tile-w: clamp(4.35rem, 18vw, 8.7rem);
  --stack-tile-w: clamp(4.35rem, 18cqi, 8.7rem);
  width: var(--stack-tile-w);
  height: calc(var(--stack-tile-w) * 93 / 139);
  color: #525252;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(42px) scale(0.9);
  transition: filter 450ms ease-in;
  will-change: transform, opacity;
}

.stack-tile--center {
  --stack-tile-w: clamp(5.1rem, 22vw, 10rem);
  --stack-tile-w: clamp(5.1rem, 22cqi, 10rem);
  --stack-in-delay: 0ms;
  z-index: 6;
}

@keyframes stack-tile-in {
  from {
    opacity: 0;
    transform: translateY(42px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes stack-links-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* JS adds is-stack-revealed after a paint so the entrance always runs */
#stack.is-stack-revealed .stack-tile {
  animation: stack-tile-in 0.85s var(--ease) both;
  animation-delay: var(--stack-in-delay, 0ms);
}

#stack.is-stack-revealed .stack-tile.is-enter-done {
  animation: none;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: transform 450ms ease-in, filter 450ms ease-in;
}

#stack.is-stack-revealed .stack-tile.is-enter-done:hover,
#stack.is-stack-revealed .stack-tile.is-enter-done:focus-within,
#stack.is-stack-revealed .stack-tile.is-enter-done.is-energized {
  transform: translateY(-10px) scale(1);
  filter: drop-shadow(0 14px 18px rgba(255, 255, 255, 0.12));
}

#stack.is-stack-revealed .stack-tile--center.is-enter-done:hover,
#stack.is-stack-revealed .stack-tile--center.is-enter-done:focus-within,
#stack.is-stack-revealed .stack-tile--center.is-enter-done.is-hub-powered {
  transform: translateY(-10px) scale(1);
}

@media (min-width: 640px) {
  #stack.is-stack-revealed .stack-tile.is-enter-done:hover,
  #stack.is-stack-revealed .stack-tile.is-enter-done:focus-within,
  #stack.is-stack-revealed .stack-tile.is-enter-done.is-energized {
    transform: translateY(-12px) scale(1);
  }

  #stack.is-stack-revealed .stack-tile--center.is-enter-done:hover,
  #stack.is-stack-revealed .stack-tile--center.is-enter-done:focus-within,
  #stack.is-stack-revealed .stack-tile--center.is-enter-done.is-hub-powered {
    transform: translateY(-12px) scale(1);
  }
}

#stack .stack-tile[data-tech="typescript"],
#stack .stack-tile[data-tech="nodered"] {
  --stack-in-delay: 120ms;
}

#stack .stack-tile[data-tech="react"],
#stack .stack-tile[data-tech="arduino"] {
  --stack-in-delay: 200ms;
}

#stack .stack-tile[data-tech="gsap"],
#stack .stack-tile[data-tech="rpi"] {
  --stack-in-delay: 280ms;
}

#stack .stack-tile[data-tech="nextjs"],
#stack .stack-tile[data-tech="motion"] {
  --stack-in-delay: 360ms;
}

#stack .stack-tile[data-tech="tailwind"] {
  --stack-in-delay: 440ms;
}

#stack .stack-links {
  opacity: 0;
}

/* Lines fade in only after geometry is measured at rest */
#stack.is-stack-aligned .stack-links {
  animation: stack-links-in 0.7s var(--ease) both;
}

.stack-platform {
  position: absolute;
  inset: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.stack-platform-top {
  fill: #262626;
  stroke: currentColor;
  transition: stroke 450ms ease-in;
}

.stack-platform-grid {
  stroke: currentColor;
  stroke-opacity: 0.1;
  fill: none;
}

.stack-platform-side {
  stroke: currentColor;
  fill: transparent;
  transition: stroke 450ms ease-in;
}

.stack-platform-glow {
  opacity: 0;
  transition: opacity 450ms ease-in;
  pointer-events: none;
}

.stack-tile:hover .stack-platform-glow,
.stack-tile:focus-within .stack-platform-glow,
.stack-tile.is-energized .stack-platform-glow {
  opacity: 1;
}

.stack-tile:hover .stack-platform-side,
.stack-tile:focus-within .stack-platform-side,
.stack-tile.is-energized .stack-platform-side,
.stack-tile:hover .stack-platform-top,
.stack-tile:focus-within .stack-platform-top,
.stack-tile.is-energized .stack-platform-top {
  stroke: rgba(255, 255, 255, 0.55);
}

.stack-logo {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform: rotateX(60deg) rotateZ(45deg) translateZ(5px);
  transform-style: preserve-3d;
}

.stack-logo-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stack-icon {
  display: block;
  width: clamp(1.5rem, 28%, 2.5rem);
  height: clamp(1.5rem, 28%, 2.5rem);
}

.stack-icon--lg {
  width: clamp(1.65rem, 32%, 3rem);
  height: clamp(1.65rem, 32%, 3rem);
}

.stack-icon--plc {
  width: clamp(1.55rem, 30%, 2.75rem);
  height: clamp(1.55rem, 30%, 2.75rem);
}

.stack-icon--wifi,
.stack-icon--iot {
  width: clamp(1.45rem, 28%, 2.5rem);
  height: clamp(1.45rem, 28%, 2.5rem);
}

.stack-icon--md {
  width: clamp(1.45rem, 28%, 2.5rem);
  height: clamp(1.45rem, 28%, 2.5rem);
}

.stack-icon--motion {
  width: clamp(1.45rem, 28%, 2.5rem);
  height: clamp(1.45rem, 28%, 2.5rem);
  padding: 0.125rem;
  background: #fef62a;
  border-radius: 0.125rem;
}

.stack-icon--gsap {
  width: clamp(1.75rem, 36%, 3.25rem);
  height: auto;
}

.stack-icon--tailwind {
  color: #0ea5e9;
}

.stack-icon--ts {
  border-radius: 0.125rem;
}

.stack-icon--qb {
  width: clamp(1.6rem, 34%, 2.75rem);
  height: auto;
}

.stack-tile--center .stack-icon--qb {
  width: clamp(1.85rem, 38%, 3.1rem);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .stack-ring {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto auto auto;
    column-gap: clamp(0.2rem, 1.5cqi, 0.7rem);
    row-gap: clamp(0.15rem, 1.2cqi, 0.55rem);
    width: 100%;
    max-width: 100%;
    padding: 0.25rem 0;
  }

  /* Keep Next.js / Motion mirrored above the hub (not stacked into col 2) */
  .stack-ring > [data-tech="nextjs"] {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    margin-inline-end: clamp(0, 1cqi, 0.35rem);
    margin-bottom: 0.15rem;
  }

  .stack-ring > [data-tech="motion"] {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
    margin-inline-start: clamp(0, 1cqi, 0.35rem);
    margin-bottom: 0.15rem;
  }

  .stack-ring > [data-tech="react"] {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
    margin-inline-end: clamp(0.1rem, 1.2cqi, 0.4rem);
    margin-bottom: 0.1rem;
  }

  .stack-ring > [data-tech="typescript"] {
    grid-column: 1;
    grid-row: 3;
    justify-self: end;
    margin-inline-end: clamp(0.1rem, 1.2cqi, 0.4rem);
  }

  .stack-ring > [data-tech="gsap"] {
    grid-column: 1;
    grid-row: 4;
    justify-self: end;
    margin-inline-end: clamp(0.1rem, 1.2cqi, 0.4rem);
    margin-top: 0.1rem;
  }

  .stack-ring > .stack-tile--center {
    grid-column: 2;
    grid-row: 2 / 5;
    z-index: 6;
  }

  .stack-ring > [data-tech="arduino"] {
    grid-column: 3;
    grid-row: 2;
    justify-self: start;
    margin-inline-start: clamp(0.1rem, 1.2cqi, 0.4rem);
    margin-bottom: 0.1rem;
  }

  .stack-ring > [data-tech="nodered"] {
    grid-column: 3;
    grid-row: 3;
    justify-self: start;
    margin-inline-start: clamp(0.1rem, 1.2cqi, 0.4rem);
  }

  .stack-ring > [data-tech="rpi"] {
    grid-column: 3;
    grid-row: 4;
    justify-self: start;
    margin-inline-start: clamp(0.1rem, 1.2cqi, 0.4rem);
    margin-top: 0.1rem;
  }

  .stack-ring > [data-tech="tailwind"] {
    grid-column: 2;
    grid-row: 5;
    margin-top: 0.2rem;
  }

  .stack-tile {
    --stack-tile-w: clamp(3.6rem, 26vw, 5.6rem);
    --stack-tile-w: clamp(3.6rem, 26cqi, 5.6rem);
  }

  .stack-tile--center {
    --stack-tile-w: clamp(4.4rem, 32vw, 6.75rem);
    --stack-tile-w: clamp(4.4rem, 32cqi, 6.75rem);
  }

  #stack.is-stack-revealed .stack-tile.is-enter-done:hover,
  #stack.is-stack-revealed .stack-tile.is-enter-done:focus-within,
  #stack.is-stack-revealed .stack-tile.is-enter-done.is-energized {
    transform: translateY(-6px) scale(1);
  }

  #stack.is-stack-revealed .stack-tile--center.is-enter-done:hover,
  #stack.is-stack-revealed .stack-tile--center.is-enter-done:focus-within,
  #stack.is-stack-revealed .stack-tile--center.is-enter-done.is-hub-powered {
    transform: translateY(-6px) scale(1);
  }

  .stack-tile.is-energized .stack-platform-glow {
    opacity: 1;
  }

  .stack-tile.is-energized .stack-platform-side,
  .stack-tile.is-energized .stack-platform-top {
    stroke: rgba(255, 255, 255, 0.55);
  }

  .stack-icon {
    width: clamp(1.35rem, 9cqi, 2.1rem);
    height: clamp(1.35rem, 9cqi, 2.1rem);
  }

  .stack-icon--lg,
  .stack-icon--plc,
  .stack-icon--wifi,
  .stack-icon--iot,
  .stack-icon--md,
  .stack-icon--motion {
    width: clamp(1.35rem, 9cqi, 2.1rem);
    height: clamp(1.35rem, 9cqi, 2.1rem);
  }

  .stack-icon--gsap {
    width: clamp(1.6rem, 11cqi, 2.5rem);
  }

  .stack-icon--qb,
  .stack-tile--center .stack-icon--qb {
    width: clamp(1.7rem, 12cqi, 2.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stack-tile,
  .stack-platform-glow,
  .stack-platform-side,
  .stack-platform-top,
  .stack-links {
    transition: none;
  }

  #stack .stack-tile,
  #stack .stack-links {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .stack-tile:hover,
  .stack-tile:focus-within,
  .stack-tile.is-energized {
    transform: none;
    filter: none;
  }

  .stack-tile--center:hover,
  .stack-tile--center:focus-within {
    transform: none;
  }

  .stack-tile:hover .stack-platform-glow,
  .stack-tile:focus-within .stack-platform-glow,
  .stack-tile.is-energized .stack-platform-glow {
    opacity: 0;
  }
}

/* Testimonials — compact quote stage */
.testimonials {
  background: #000;
  color: #fff;
  overflow: hidden;
}

.testimonials .eyebrow,
.testimonials h2,
.testimonials .lead {
  color: #fff;
}

.testimonial-stage {
  position: relative;
  max-width: 42rem;
  margin-inline: auto;
}

.testimonial-slides {
  position: relative;
  min-height: 12rem;
  text-align: left;
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0.45s;
}

.testimonial-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.testimonial-slide.is-exit {
  opacity: 0;
  transform: translateY(-8px);
}

.quote-mark {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 0.75;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.22);
  margin: 0 0 0.35rem;
  text-align: left;
  user-select: none;
}

.testimonial-slide blockquote {
  margin: 0 0 1.5rem;
  text-align: left;
}

.testimonial-slide blockquote p {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.025em;
  color: #fff;
}

.testimonial-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.35rem 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: left;
}

.testimonial-byline cite {
  font-style: normal;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.testimonial-byline span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}

.testimonial-byline cite::after {
  content: "·";
  margin-left: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: var(--space-xl);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.testimonial-dots {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.testimonial-dot {
  position: relative;
  width: 28px;
  height: 3px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
  transition: background 200ms var(--ease);
}

.testimonial-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(var(--dot-progress, 0));
  transform-origin: left;
  will-change: transform;
}

.testimonial-dot.is-active {
  background: rgba(255, 255, 255, 0.35);
}

.testimonial-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.testimonial-nav {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.testimonial-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}

.testimonial-btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* Contact */
.contact {
  background: #111;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-details {
  margin-top: var(--space-lg);
  display: grid;
  gap: 1.25rem;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.contact-label {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.contact-details a {
  text-decoration: none;
  font-weight: 600;
  color: #fff;
}

.contact-details a:hover {
  text-decoration: underline;
  color: #fff;
}

.contact-form {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #fff;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: #111;
  border-color: #fff;
  outline: none;
  box-shadow: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.field select option {
  background: #000;
  color: #fff;
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.field-error {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  color: var(--color-destructive);
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.9375rem;
  font-weight: 500;
}

.form-status.is-success {
  background: #fff;
  color: #000;
}

.form-status.is-error {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

/* Footer */
.site-footer {
  background: #000;
  color: rgba(255, 255, 255, 0.72);
  padding: var(--space-2xl) 0 var(--space-lg);
  border-top: 1px solid #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-brand .logo {
  display: inline-flex;
  margin-bottom: 0.85rem;
  color: #fff;
  font-size: 1.45rem;
}

.footer-brand .logo-mark {
  width: 1.7rem;
}

.footer-brand .logo:hover {
  color: #fff;
  opacity: 0.6;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  max-width: 18rem;
}

.footer-col h3 {
  margin-bottom: 0.9rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.footer-col a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col li + li {
  margin-top: 0.5rem;
}

.footer-col .social-list li,
.footer-col .social-list li + li {
  margin-top: 0;
}

.social-list {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.35rem;
  padding: 0;
  list-style: none;
}

.social-list li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  line-height: 0;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.social-list svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.social-list a:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.footer-bottom {
  padding-top: var(--space-md);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Keep process scrub dimming stronger than generic reveal */
#process .process-step.reveal.is-visible {
  opacity: 0.34;
}

#process .process-step.reveal.is-visible.is-active,
#process .process-step.is-active {
  opacity: 1;
}

.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal-section.is-inview .reveal-item {
  opacity: 1;
  transform: translateY(0);
}

.reveal-section.is-inview .reveal-item:nth-child(1) { transition-delay: 0ms; }
.reveal-section.is-inview .reveal-item:nth-child(2) { transition-delay: 80ms; }
.reveal-section.is-inview .reveal-item:nth-child(3) { transition-delay: 140ms; }

/* ——— Micro-interactions ——— */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: #fff;
  transform-origin: left center;
}

/* Custom cursor (desktop fine pointer only) */
.cursor {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  body.has-cursor {
    cursor: none;
  }

  body.has-cursor a,
  body.has-cursor button,
  body.has-cursor .btn,
  body.has-cursor input,
  body.has-cursor select,
  body.has-cursor textarea,
  body.has-cursor [data-cursor="hover"] {
    cursor: none;
  }

  .cursor {
    display: block;
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
  }

  /* Editorial crosshair → chevron (>) */
  .cursor-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    background: transparent;
    pointer-events: none;
    will-change: transform;
  }

  .cursor-bar::before {
    content: "";
    position: absolute;
    background: #fff;
    pointer-events: none;
    transition:
      width 320ms var(--ease),
      height 320ms var(--ease),
      top 320ms var(--ease),
      left 320ms var(--ease),
      transform 320ms var(--ease);
  }

  /* Default: + crosshair */
  .cursor-bar-v::before {
    width: 2px;
    height: 22px;
    left: -1px;
    top: -11px;
    transform: rotate(0deg);
    transform-origin: center center;
  }

  .cursor-bar-h::before {
    width: 22px;
    height: 2px;
    left: -11px;
    top: -1px;
    transform: rotate(0deg);
    transform-origin: center center;
  }

  /* Hover: morph into > (tip points right) */
  body.is-hovering .cursor-bar-v::before {
    width: 2px;
    height: 14px;
    left: -1px;
    top: -14px;
    transform: rotate(-45deg);
    transform-origin: bottom center;
  }

  body.is-hovering .cursor-bar-h::before {
    width: 2px;
    height: 14px;
    left: -1px;
    top: 0;
    transform: rotate(45deg);
    transform-origin: top center;
  }

  body.cursor-hidden .cursor {
    opacity: 0;
    transition: opacity 160ms ease;
  }
}

/* Nav underline */
.site-nav a:not(.nav-cta) {
  position: relative;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.35rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}

.site-nav a:not(.nav-cta):hover::after,
.site-nav a:not(.nav-cta).is-active::after,
.site-nav a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
}

.site-nav a:not(.nav-cta).is-active {
  opacity: 1;
}

/* Buttons — magnetic + label shift */
.btn {
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.btn-label {
  position: relative;
  z-index: 1;
  display: inline-block;
  transition: transform 220ms var(--ease);
}

.btn-magnetic:hover .btn-label {
  transform: translateX(2px);
}

.btn-primary::before,
.btn-secondary::before,
.contact .btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms var(--ease);
  opacity: 0.08;
}

.btn-primary:hover::before,
.btn-secondary:hover::before,
.contact .btn-primary:hover::before {
  transform: scaleX(1);
}

/* Service interactions (base styles live in Services section) */

/* Form field focus line */
.field {
  position: relative;
}

.field input,
.field select,
.field textarea {
  transition: background 200ms var(--ease), border-color 200ms var(--ease),
    transform 200ms var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  transform: translateY(-1px);
}

.field.is-filled label,
.field:focus-within label {
  color: #fff;
}

/* Marquee pause — desktop hover only */
@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee-track {
    animation-play-state: paused;
  }
}

/* Hero parallax helper */
.hero-media img {
  will-change: transform;
}

/* Social bounce */
.social-list a {
  transition: background 200ms var(--ease), border-color 200ms var(--ease),
    transform 200ms var(--ease), color 200ms var(--ease);
}

.social-list a:hover {
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal:not(.process-step),
  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  #stack .stack-tile,
  #stack .stack-links {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero-media img {
    transform: none !important;
    animation: none !important;
  }

  /* Keep marquee moving (slower) — core brand motion on all devices */
  .marquee-track {
    animation: marquee 48s linear infinite !important;
  }

  .cursor {
    display: none !important;
  }

  body.has-cursor,
  body.has-cursor a,
  body.has-cursor button {
    cursor: auto !important;
  }

  .testimonial-slide {
    transition: none;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-layout .eyebrow,
  .about-layout h2,
  .about-copy {
    grid-column: 1;
    grid-row: auto;
  }

  .about-copy {
    padding-left: 0;
    border-left: none;
    margin-top: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }

  .contact-layout {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .site-nav a {
    padding: 0.85rem 0.5rem;
  }

  .nav-cta {
    justify-content: center;
    margin-top: 0.5rem;
  }

  .hero {
    min-height: min(90vh, 42rem);
  }

  .hero-content {
    margin-left: 1.25rem;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .service-item:nth-child(odd),
  .service-item:nth-child(even) {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    border-right: 0;
  }

  .process-track {
    grid-template-columns: 0.85rem 1fr;
    gap: 0.85rem;
  }

  .process-step {
    grid-template-columns: 4rem 1fr;
    gap: 0.75rem;
  }

  .contact-layout,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-byline cite::after {
    display: none;
  }

  .testimonial-byline {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .section {
    padding: clamp(3.5rem, 12vw, 5rem) 0;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .process-step {
    grid-template-columns: 1fr;
    padding-left: 1.1rem;
  }

  .process-num {
    margin-bottom: 0.35rem;
  }
}

/* Course registration — Youform embed */
.course-registration {
  padding: calc(var(--header-h) + 1.25rem) 0 0;
  border-top: none;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
}

.course-registration-intro {
  max-width: 42rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.course-registration-intro h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #fff;
}

.course-registration-embed {
  width: 100%;
  flex: 1;
  margin: 0;
  border: 0;
  background: #fff;
  overflow: hidden;
}

.course-registration-embed iframe {
  display: block;
  width: 100%;
  height: calc(100vh - var(--header-h) - 7.5rem);
  min-height: 36rem;
  border: 0;
  background: #fff;
}

@media (max-width: 640px) {
  .course-registration {
    padding-top: calc(var(--header-h) + 0.75rem);
  }

  .course-registration-embed iframe {
    height: calc(100vh - var(--header-h) - 6.5rem);
    min-height: 28rem;
  }
}

/* Legal pages — terms / privacy (no nav links; URL-only) */
.legal-page {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: var(--space-3xl);
}

.legal-page-inner {
  max-width: 42rem;
}

.legal-page h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #fff;
}

.legal-updated {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.legal-body h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.legal-body p,
.legal-body li {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.legal-body p {
  margin: 0 0 1rem;
}

.legal-body ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-body li + li {
  margin-top: 0.4rem;
}

.legal-body a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-body a:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* 404 — FuzzyText */
.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vw, 4rem) 1.25rem;
  background: #000;
  color: #fff;
  text-align: center;
  border-top: none;
}

.not-found-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-width: 36rem;
}

.not-found-glitch {
  display: flex;
  justify-content: center;
  margin-bottom: 0.35rem;
  line-height: 0;
}

.not-found-glitch canvas {
  max-width: 100%;
  height: auto;
}

.not-found-label {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.8vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.not-found-copy {
  margin: 0 0 1.15rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 1rem;
  line-height: 1.55;
}

.not-found .btn {
  margin-top: 0.25rem;
}
