/* Reusable components — one property, one animation owner */

/* Buttons */
.btn {
  --magnet-x: 0px;
  --magnet-y: 0px;
  --press-scale: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  font-family: inherit;
  font-weight: 600;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transform: translate3d(var(--magnet-x), var(--magnet-y), 0) scale(var(--press-scale));
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.btn:hover { text-decoration: none; }
.btn:active { --press-scale: 0.985; }
.btn:disabled { cursor: wait; opacity: 0.65; }

.btn-primary {
  background-color: var(--color-accent);
  color: var(--mav-white);
  border-color: var(--color-accent);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--slate-grey);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: transparent;
  padding-inline: 1rem;
}

.btn .arrow {
  display: inline-block;
  margin-left: 0.5rem;
  transition: transform 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background-color: #155f64; border-color: #155f64; }
  .btn-outline:hover { background-color: var(--color-accent); border-color: var(--color-accent); color: var(--mav-white); }
  .btn-ghost:hover { color: var(--color-text); }
  .btn:hover .arrow { transform: translate(3px, -3px); }
}

/* Navigation */
.nav {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 220ms ease, border-color 220ms ease;
}

.nav-transparent { background-color: transparent; border-bottom: 1px solid transparent; }
.nav-scrolled { background-color: rgba(8, 15, 21, 0.94); border-bottom: 1px solid var(--color-border); }
.nav-on-light { color: var(--mav-black); }
.nav-on-dark { color: var(--mav-white); }
.nav-on-light.nav-scrolled { background-color: rgba(248, 250, 255, 0.96); border-bottom-color: rgba(8, 15, 21, 0.14); }

@supports (backdrop-filter: blur(8px)) {
  .nav-scrolled { background-color: rgba(8, 15, 21, 0.84); backdrop-filter: blur(8px); }
  .nav-on-light.nav-scrolled { background-color: rgba(248, 250, 255, 0.9); }
}

.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-link:hover { text-decoration: none; }
.nav-logo { width: auto; height: 36px; fill: currentColor; transition: fill 180ms ease; }

.desktop-nav { flex: 1; display: flex; justify-content: center; }
.nav-links { display: flex; gap: 2.5rem; align-items: center; list-style: none; }

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  color: inherit;
  font-size: var(--fs-small);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}

.nav-links a:hover { text-decoration: none; }
.nav-marker {
  color: var(--color-accent);
  font-family: monospace;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-links a.active { color: inherit; }
.nav-links a.active .nav-marker { opacity: 1; transform: translateX(0); }

.nav-actions { display: flex; align-items: center; gap: var(--space-sm); }
.nav-cta { font-size: var(--fs-micro); padding: 0.6rem 1.2rem; }

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  padding: 8px 4px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
}

.menu-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transform-origin: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.menu-toggle.is-open .menu-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open .menu-line:nth-child(2) { opacity: 0; }
.menu-toggle.is-open .menu-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  padding: 5rem var(--space-md) var(--space-md);
}

.mobile-nav-links { list-style: none; text-align: center; }
.mobile-nav-links li { margin-bottom: var(--space-lg); }
.mobile-nav-links a { color: var(--mav-white); font-size: var(--fs-h2); font-weight: 600; text-transform: uppercase; }
body.menu-open { overflow: hidden; }
body.menu-open .menu-toggle { color: var(--mav-white); }
body.menu-open .nav-logo { fill: var(--mav-white); }

/* Structural grid */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  background-image:
    repeating-linear-gradient(to right, transparent 0 59px, rgba(120, 138, 163, 0.008) 59px 60px),
    repeating-linear-gradient(to bottom, transparent 0 59px, rgba(120, 138, 163, 0.008) 59px 60px);
}

main, .footer { position: relative; z-index: 1; }
.grid-corner {
  --grid-mark-opacity: 0.055;
  --grid-mark-scale: 1;
  --grid-mark-x: 0px;
  --grid-mark-y: 0px;
  --grid-mark-color: #526176;
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--grid-mark-color);
  border-style: solid;
  opacity: var(--grid-mark-opacity);
  translate: var(--grid-mark-x) var(--grid-mark-y);
  scale: var(--grid-mark-scale);
  transform-origin: center;
}
.grid-corner-tl { top: 20px; left: 20px; border-width: 1px 0 0 1px; }
.grid-corner-tr { top: 20px; right: 20px; border-width: 1px 1px 0 0; }
.grid-corner-bl { bottom: 20px; left: 20px; border-width: 0 0 1px 1px; }
.grid-corner-br { right: 20px; bottom: 20px; border-width: 0 1px 1px 0; }

/* Sparse real registration marks. The structural grid itself remains a cheap CSS background. */
.proximity-crosshair-field {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.proximity-crosshair {
  --proximity-opacity: 0.08;
  --proximity-scale: 1;
  --proximity-x: 0px;
  --proximity-y: 0px;
  --proximity-color: #526176;
  position: absolute;
  width: 14px;
  height: 14px;
  color: var(--proximity-color);
  opacity: var(--proximity-opacity);
  translate: var(--proximity-x) var(--proximity-y);
  scale: var(--proximity-scale);
  transform-origin: center;
}

.theme-dark .proximity-crosshair {
  --proximity-opacity: 0.065;
  --proximity-color: var(--mav-white);
}

.proximity-crosshair::before,
.proximity-crosshair::after {
  content: '';
  position: absolute;
  background: currentColor;
}

.proximity-crosshair::before { top: calc(50% - 0.5px); left: 0; width: 100%; height: 1px; }
.proximity-crosshair::after { top: 0; left: calc(50% - 0.5px); width: 1px; height: 100%; }
.proximity-crosshair--a { top: 28%; left: 12%; }
.proximity-crosshair--b { top: 22%; right: 13%; }
.proximity-crosshair--c { bottom: 19%; left: 29%; }
.proximity-crosshair--d { right: 27%; bottom: 27%; }

/* Labels and contextual cursor */
.section-label {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--color-text-dim);
  font-family: monospace;
  font-size: var(--fs-micro);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-label.section-registration {
  --label-line-scale: 1;
  --label-mark-scale: 1;
  --registration-proximity-opacity: 0.06;
  --registration-proximity-scale: 1;
  --registration-proximity-x: 0px;
  --registration-proximity-y: 0px;
  --registration-proximity-color: #526176;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: min(100%, 22rem);
}

.theme-dark .section-registration { --registration-proximity-color: var(--mav-white); }

.section-registration::before {
  content: '';
  order: 2;
  flex: 1 1 3rem;
  height: 1px;
  background-color: var(--color-border);
  transform: scaleX(var(--label-line-scale));
  transform-origin: left center;
}

.section-registration::after {
  content: '';
  order: 3;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border: 1px solid var(--registration-proximity-color);
  opacity: var(--registration-proximity-opacity);
  translate: var(--registration-proximity-x) var(--registration-proximity-y);
  scale: var(--registration-proximity-scale);
  transform: scale(var(--label-mark-scale));
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 66px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--stormy-teal);
  color: var(--mav-white);
  font: 600 0.72rem/1 monospace;
  letter-spacing: 0.04em;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 120ms ease, visibility 120ms ease;
}

.custom-cursor.visible { opacity: 1; visibility: visible; }

/* Showreel and media */
.showreel-gallery {
  width: 100%;
  margin-top: 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1rem;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.showreel-gallery::-webkit-scrollbar { display: none; }
.has-desktop-motion .showreel-gallery { overflow: hidden; scroll-snap-type: none; }

.showreel-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  padding: 0.7rem 1rem;
}

.showreel-card {
  position: relative;
  flex: 0 0 clamp(224px, 24vw, 260px);
  width: clamp(224px, 24vw, 260px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  scroll-snap-align: center;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  background: var(--color-surface);
  opacity: 0.8;
  transform: scale(0.975);
  transition: opacity 200ms ease, transform 200ms ease, border-color 200ms ease;
}

.showreel-card.focal { z-index: 2; opacity: 1; transform: scale(1.035); border-color: var(--color-accent); }
.showreel-card video { width: 100%; height: 100%; object-fit: cover; background: var(--color-surface); }

.media-toggle {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(248, 250, 255, 0.75);
  border-radius: 50%;
  background: rgba(8, 15, 21, 0.7);
  color: var(--mav-white);
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.media-toggle:hover { background: rgba(25, 114, 120, 0.92); border-color: var(--mav-white); }
.media-toggle:active { transform: translate(-50%, -50%) scale(0.96); }
.media-toggle.is-playing { top: 18px; left: auto; right: 18px; width: 38px; height: 38px; transform: none; }
.media-toggle.is-playing:active { transform: scale(0.96); }
.media-toggle-icon { font-size: 0.84rem; line-height: 1; }

/* Site-owned playback controls stay flush with the media edge. */
.media-shell.has-site-controls { --media-controls-height: 89px; }
.has-site-controls .media-controls {
  position: absolute;
  z-index: 5;
  inset: auto 0 0;
  width: 100%;
  padding: 0 8px;
  border-top: 1px solid rgba(248, 250, 255, 0.24);
  background: var(--mav-black);
  color: var(--mav-white);
  color-scheme: dark;
}

.media-controls[hidden] { display: none !important; }
.media-seek {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  accent-color: var(--mav-white);
  cursor: pointer;
}

.media-seek::-webkit-slider-runnable-track { height: 2px; background: rgba(248, 250, 255, 0.5); }
.media-seek::-moz-range-track { height: 2px; background: rgba(248, 250, 255, 0.5); }
.media-seek::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  margin-top: -5px;
  border: 0;
  border-radius: 50%;
  -webkit-appearance: none;
  background: var(--mav-white);
}
.media-seek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--mav-white); }
.media-seek:disabled { cursor: default; opacity: 0.5; }
.media-controls-row { display: flex; align-items: center; min-width: 0; min-height: 44px; }
.media-time {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--mav-white);
  font: 0.625rem/1.4 monospace;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.media-mute,
.media-speed,
.media-fullscreen {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--mav-white);
  font: 0.625rem/1.4 monospace;
  cursor: pointer;
}
.media-speed { width: 48px; padding-inline: 2px; }
.media-speed option { background: var(--mav-black); color: var(--mav-white); }
.media-fullscreen { display: grid; place-items: center; font-size: 1.25rem; }
.media-mute:hover,
.media-speed:hover,
.media-fullscreen:hover { background: rgba(248, 250, 255, 0.1); }
.has-site-controls .media-toggle:focus-visible,
.has-site-controls .media-controls :focus-visible { outline: 2px solid var(--mav-white); outline-offset: -3px; }
.has-site-controls .media-toggle.is-playing { width: 44px; height: 44px; }

/* The shell, not the video, enters fullscreen so controls stay available. */
.media-shell.has-site-controls:is(:fullscreen, :-webkit-full-screen) {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0 0 var(--media-controls-height);
  border: 0;
  border-radius: 0;
  aspect-ratio: auto;
  background: var(--mav-black);
  opacity: 1;
  transform: none !important;
  translate: none;
  scale: none;
}
.media-shell.has-site-controls:is(:fullscreen, :-webkit-full-screen) video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--mav-black); }
.media-fullscreen-open .nav,
.media-fullscreen-open .custom-cursor { visibility: hidden; }

.card-meta {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  width: 100%;
  padding: var(--space-md);
  pointer-events: none;
  background: linear-gradient(to top, rgba(8, 15, 21, 0.96), rgba(8, 15, 21, 0));
}

.card-title { display: block; color: var(--mav-white); font-size: var(--fs-small); font-weight: 600; }
.card-category { display: block; margin-top: 0.2rem; color: var(--slate-grey); font-size: var(--fs-micro); }
/* Keep the caption scrim anchored to the media edge; lifting the entire
   gradient for native controls creates a hard, floating band over the video. */
.showreel-card .card-meta { transition: opacity 180ms ease-out; }
.showreel-card.is-user-playing .card-meta,
.media-shell.has-media-session .card-meta { opacity: 0; }

/* POV */
.pov-headline .pov-noise-inline { color: var(--color-text-dim); font-weight: 400; }
.pov-underline-line {
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 0.5rem;
  background: var(--color-accent);
  transform-origin: left center;
}

.pov-reveal { position: relative; }
.pov-lock-crosshair {
  position: absolute;
  right: -7px;
  bottom: -6px;
  width: 14px;
  height: 14px;
  border: 1px solid var(--color-accent);
  pointer-events: none;
}

.pov-lock-crosshair::before,
.pov-lock-crosshair::after {
  content: '';
  position: absolute;
  background-color: var(--color-accent);
}

.pov-lock-crosshair::before { top: 50%; left: -4px; width: 20px; height: 1px; }
.pov-lock-crosshair::after { top: -4px; left: 50%; width: 1px; height: 20px; }

/* Process system — sequential baseline, desktop enhancement only */
.process-pinned-stage { position: relative; width: 100%; margin-top: 2rem; }
.process-card-stack { display: grid; gap: var(--space-sm); width: 100%; max-width: 750px; margin-inline: auto; }

.process-stage {
  position: relative;
  min-height: 320px;
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: 2px;
  background: var(--color-surface);
}

.has-desktop-motion .process-card-stack { display: block; position: relative; height: 330px; }
.has-desktop-motion .process-stage { position: absolute; inset: 0; }

.process-system-lines { display: none; }
.has-desktop-motion .process-system-lines {
  position: absolute;
  z-index: 0;
  inset: 20% 8%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.process-system-lines span { width: 1px; height: 60%; background: rgba(25, 114, 120, 0.14); }
.process-stage > * { position: relative; z-index: 1; }
.process-stage[id] { scroll-margin-top: 100px; }

.stage-badge { margin-bottom: var(--space-xs); color: var(--color-accent); font: 500 var(--fs-micro)/1.4 monospace; letter-spacing: 0.1em; }
.stage-title { margin-bottom: 0.2rem; font-size: var(--fs-h1); font-weight: 800; }
.stage-description { margin-bottom: var(--space-md); color: var(--color-text-dim); font-size: var(--fs-h3); }
.stage-nodes { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.node-pill { padding: 0.5rem 1rem; border: 1px solid var(--color-border); border-radius: 2px; background: var(--color-bg); color: var(--color-text); font-size: var(--fs-small); }

.stage-dots-nav { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1.5rem; font: var(--fs-micro)/1.4 monospace; }
.stage-dots-nav .dot { padding: 0.3rem 0.6rem; border-bottom: 2px solid transparent; color: var(--color-text-dim); transition: color 160ms ease, border-color 160ms ease; }
.stage-dots-nav .dot[aria-current="step"] { border-bottom-color: var(--color-accent); color: var(--color-text); font-weight: 700; }
.process-timeline-indicators { display: none; }
.has-desktop-motion .process-timeline-indicators { display: flex; }
.has-desktop-motion .process-stage-links { display: none; }
.process-stage-links .dot { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; }

/* Work */
.work-projects { display: flex; flex-direction: column; gap: var(--space-xl); margin-top: var(--space-xl); }
.work-project {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: center;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
  color: inherit;
  text-decoration: none;
}

.work-project:hover { text-decoration: none; }
.work-project:nth-child(even) { direction: rtl; }
.work-project:nth-child(even) .work-project-info { direction: ltr; }
.work-project-media { width: min(100%, 560px); aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--color-border); border-radius: 2px; background: var(--color-surface); transition: border-color 180ms ease; }
.work-project-media img { width: 100%; height: 100%; object-fit: cover; }
.work-project-info h3 { margin-bottom: var(--space-xs); }
.work-project-info p { font-size: var(--fs-copy); line-height: 1.6; }

@media (hover: hover) and (pointer: fine) {
  .work-project:hover .work-project-media { border-color: var(--color-accent); }
}

/* Creator-led principles */
.why-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); margin-top: var(--space-lg); }
.principle-card { padding: var(--space-md); border: 1px solid var(--color-border); border-radius: 2px; background: var(--color-surface); }
.principle-media { position: relative; aspect-ratio: 9 / 12; margin-bottom: var(--space-md); overflow: hidden; border-radius: 2px; }
.principle-media img { width: 100%; height: 100%; object-fit: cover; }
.media-badge { position: absolute; top: 10px; left: 10px; padding: 0.2rem 0.5rem; border-radius: 2px; background: rgba(8, 15, 21, 0.88); color: var(--mav-white); font: var(--fs-micro)/1.4 monospace; }
.testable-variants-preview { display: flex; flex-direction: column; justify-content: center; gap: 0.5rem; aspect-ratio: 9 / 12; margin-bottom: var(--space-md); }
.variant-card { padding: 0.8rem; border: 1px solid var(--color-border); border-radius: 2px; background: var(--color-bg); font-size: var(--fs-micro); }
.v-tag { margin-right: 0.5rem; color: var(--color-text); font-family: monospace; font-weight: 700; }
.principle-description { font-size: var(--fs-body); line-height: 1.65; }

/* Method — forward calibration rail, four stages, then a separate feedback rail. */
.method-steps-wrap { position: relative; margin-top: var(--space-md); }
.method-track { width: 100%; }
.method-track-svg { display: block; width: 100%; height: 48px; overflow: visible; }
.method-track-svg path,
.method-track-svg rect,
.method-track-svg circle,
.method-feedback-svg path { vector-effect: non-scaling-stroke; }
.method-track-rail,
.method-feedback-guide { stroke: var(--color-border); stroke-width: 1; }
.method-feedback-guide { stroke-dasharray: 5 7; opacity: 0.16; }
.method-track-progress,
.method-feedback-progress { stroke: var(--color-accent); stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }
.method-track-progress,
.method-feedback-progress { transform-box: fill-box; }
.method-track-lock { stroke: var(--color-accent); stroke-width: 1; opacity: 0.3; }
.method-track-lock rect { fill: var(--color-bg); }
.method-track-crosshair { stroke: var(--color-accent); stroke-width: 1.25; }
.method-track-crosshair rect { fill: var(--color-bg); }
.method-lock-ring { fill: none; opacity: 0.42; transform-box: fill-box; transform-origin: center; }
.method-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 0; list-style: none; }
.method-step { position: relative; z-index: 1; min-width: 0; padding: clamp(0.9rem, 1.7vw, var(--space-md)); border-left: 1px solid var(--color-border); }
.method-step:last-child { border-right: 1px solid var(--color-border); }
.method-step[aria-current="step"] { border-left-color: var(--color-accent); }
.step-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.42rem; margin-bottom: var(--space-sm); font-size: clamp(0.82rem, 1.15vw, 1rem); letter-spacing: 0.08em; text-transform: uppercase; }
.step-number { color: var(--color-accent); font: var(--fs-micro)/1.4 monospace; letter-spacing: 0.12em; }
.step-divider { color: var(--color-text-dim); font-family: monospace; }
.step-question { margin-bottom: var(--space-xs); color: var(--color-text); font-weight: 600; }
.step-detail { font-size: var(--fs-body); line-height: 1.6; }
.method-feedback { width: 100%; margin-top: 0.25rem; }
.method-feedback-svg { display: block; width: 100%; height: 56px; overflow: visible; }
.method-feedback-indicator { stroke: var(--color-accent); stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }

/* Philosophy */
.philosophy-statement { position: relative; }
.statement-skin { padding: var(--space-lg); }
.skin-boundary-box { position: absolute; inset: -0.75rem; border: 1px solid var(--color-accent); pointer-events: none; }
.substance-noise { position: absolute; inset: 5% 0 auto; display: flex; justify-content: space-around; color: var(--slate-grey); font: 600 var(--fs-micro)/1 monospace; letter-spacing: 0.12em; opacity: 0.28; pointer-events: none; }
.substance-noise span:nth-child(2) { transform: translateY(2.5rem); }
.substance-noise span:nth-child(3) { transform: translateY(1rem); }
.think-word, .move-word { display: inline-block; }

/* Proof: approved client testimonial. */
.proof-testimonial { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; max-width: 900px; padding-block: 2rem; border-block: 1px solid var(--color-border); }
.proof-client-logo { width: 210px; height: 76px; overflow: hidden; display: grid; align-content: center; }
.proof-client-logo img { width: 210px; height: 210px; max-width: none; object-fit: contain; }
.proof-testimonial-copy .section-label { margin-bottom: 0.75rem; }
.proof-testimonial-copy figcaption { display: grid; margin-top: 1.5rem; font-size: 1rem; line-height: 1.6; }
.proof-testimonial-copy figcaption span { color: var(--color-text-dim); }

/* Conversational form */
.conversational-form { max-width: 750px; margin: var(--space-lg) auto 0; text-align: left; }
.form-conversation { display: grid; gap: 0.65rem; }
.form-sentence { position: relative; color: var(--color-text); font-size: var(--fs-h3); line-height: 1.8; transition: opacity 180ms ease; }
.form-sentence.dimmed { opacity: 0.52; }
.form-sentence::before {
  content: '';
  position: absolute;
  top: 0.55em;
  left: -1rem;
  width: 1px;
  height: 0.9em;
  background-color: var(--color-accent);
  opacity: 0;
  transform: scaleY(0);
  transform-origin: center top;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.form-sentence.is-next::before,
.form-sentence.is-active::before { opacity: 0.72; transform: scaleY(1); }
.form-field-wrap { position: relative; display: inline-flex; flex-wrap: wrap; align-items: baseline; }
.form-sentence:has(.form-multiselect[open]) { z-index: 5; }
.form-multiselect { display: inline-block; max-width: 100%; vertical-align: baseline; }
.form-multiselect summary { position: relative; display: block; padding: 0.12rem 1.5rem 0.12rem 0.25rem; border-bottom: 2px solid var(--slate-grey); color: var(--color-text); font-size: inherit; font-weight: 600; line-height: 1.7; cursor: pointer; list-style: none; overflow-wrap: anywhere; transition: border-color 180ms ease; }
.form-multiselect summary::-webkit-details-marker { display: none; }
.form-multiselect summary::after { content: ''; position: absolute; right: 0.4rem; top: 50%; width: 0.4rem; height: 0.4rem; border-right: 1px solid var(--slate-grey); border-bottom: 1px solid var(--slate-grey); transform: translateY(-70%) rotate(45deg); }
.form-multiselect[open] summary, .form-multiselect.has-selection summary { border-bottom-color: var(--color-accent); }
.form-multiselect[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.form-multiselect summary[aria-invalid="true"] { border-bottom-color: var(--brick-ember); }
.form-choice-group { position: absolute; z-index: 1; top: 100%; left: 0; width: 100%; min-width: 0; max-height: min(27rem, 55dvh); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--color-accent); margin: 0.35rem 0 0; padding: 1rem; background: var(--color-bg); }
.form-choice-group legend { padding: 0; }
.form-choice-hint { display: block; font-size: 0.875rem; color: var(--color-text-dim); line-height: 1.5; margin-block: 0.2rem 0.6rem; }
.form-choice-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
.form-choice { display: flex; align-items: center; gap: 0.7rem; min-height: 44px; padding-block: 0.5rem; border-bottom: 1px solid var(--color-border); color: var(--color-text-dim); font-size: 1rem; line-height: 1.4; cursor: pointer; transition: color 180ms ease, border-color 180ms ease; }
.form-choice input { width: 17px; height: 17px; flex: 0 0 17px; margin: 0; accent-color: var(--stormy-teal); cursor: pointer; }
.form-choice:has(input:checked) { color: var(--color-text); border-bottom-color: var(--stormy-teal); }
.form-choice:focus-within { color: var(--color-text); }
.form-choice-group[aria-invalid="true"] .form-choice-hint { color: var(--brick-ember); }
.form-choice-actions { position: sticky; bottom: -1rem; display: flex; justify-content: flex-end; padding-block: 0.75rem; background: var(--color-bg); }
.form-choice-save { min-height: 44px; padding: 0.5rem 1rem; gap: 0.65rem; font-size: 0.8rem; }

.form-inline-input,
.form-inline-select {
  min-width: 9ch;
  max-width: min(100%, 25ch);
  padding: 0.08rem 1.35rem 0.08rem 0.35rem;
  border: 0;
  border-bottom: 2px solid var(--slate-grey);
  border-radius: 0;
  background-color: transparent;
  color: var(--color-text);
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  transform: translateY(0);
  transition: border-color 180ms ease, color 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.form-inline-input { padding-right: 0.35rem; }
.form-inline-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23788AA3' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  background-size: 0.7rem auto;
  font-size: inherit;
  line-height: 1.4;
}

.form-inline-select option { background: var(--color-bg); color: var(--color-text); font-size: var(--fs-body); }
.form-inline-input::placeholder, .form-textarea::placeholder { color: #9aa8bb; opacity: 1; }
.form-inline-input:focus, .form-inline-select:focus { border-bottom-color: var(--color-accent); color: var(--color-text); }
.form-inline-input.is-complete,
.form-inline-select.is-complete { border-bottom-color: var(--color-accent); transform: translateY(-1px); }
.form-inline-input[aria-invalid="true"], .form-inline-select[aria-invalid="true"], .form-textarea[aria-invalid="true"] { border-color: var(--amber-flame); }

.form-textarea-wrap { display: grid; gap: var(--space-xs); margin-top: var(--space-md); }
.form-textarea-label { color: var(--color-text); font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.form-textarea {
  width: 100%;
  min-height: 120px;
  padding: 0.9rem 0;
  resize: vertical;
  border: 0;
  border-bottom: 2px solid var(--slate-grey);
  border-radius: 0;
  background: transparent;
  color: var(--color-text);
  line-height: 1.55;
  transform: translateY(0);
  transition: border-color 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.form-textarea:focus { border-bottom-color: var(--color-accent); }
.form-textarea.is-complete { border-bottom-color: var(--color-accent); transform: translateY(-1px); }

.field-error { flex-basis: 100%; display: block; margin-top: 0.2rem; color: var(--amber-flame); font-size: 0.75rem; line-height: 1.35; }
.form-submit { margin-top: var(--space-lg); text-align: center; }
.form-error { margin-top: var(--space-md); padding: var(--space-sm); border-left: 2px solid var(--amber-flame); color: var(--color-text); font-size: var(--fs-small); }
.form-success { max-width: 750px; margin: var(--space-lg) auto 0; padding: var(--space-lg); border: 1px solid var(--color-accent); text-align: center; }
.form-success h3 { margin-bottom: var(--space-xs); }
.form-success p { margin: 0 auto var(--space-md); }
.cta-email { margin-top: var(--space-lg); text-align: center; }
.cta-email p { margin-inline: auto; }
.cta-email a { color: var(--color-text); }

.theme-light .form-sentence.dimmed { opacity: 0.84; }
.theme-light .form-inline-input::placeholder,
.theme-light .form-textarea::placeholder { color: #3F4D5F; }
.theme-light .form-inline-input[aria-invalid="true"],
.theme-light .form-inline-select[aria-invalid="true"],
.theme-light .form-textarea[aria-invalid="true"] { border-color: var(--brick-ember); }
.theme-light .field-error { padding-left: 0.5rem; border-left: 2px solid var(--brick-ember); color: var(--mav-black); }
.theme-light .form-error { border-left-color: var(--brick-ember); }
.theme-light .cta-email a { color: var(--color-accent); }

/* Footer */
.footer { border-top: 1px solid var(--color-border); padding-top: var(--space-lg); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-lg); padding-bottom: var(--space-lg); border-bottom: 1px solid var(--color-border); }
.footer-logo { width: 44px; height: 44px; margin-bottom: var(--space-sm); }
.footer nav ul, .footer-social { list-style: none; }
.footer nav li { margin-bottom: var(--space-xs); }
.footer-social { display: flex; flex-direction: column; gap: var(--space-xs); }
.footer a { color: var(--mav-white); }
.footer-wordmark { position: relative; padding: var(--space-xl) 0; overflow: hidden; text-align: center; }
.wordmark-sweep-line { position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: var(--color-accent); }
.wordmark-text { position: relative; display: inline-block; color: rgb(120 138 163 / 38%); font-size: clamp(2rem, 10.3vw, 9.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1; text-transform: uppercase; white-space: nowrap; cursor: default; user-select: none; -webkit-user-select: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .wordmark-text[data-wordmark-copy]::after {
    content: attr(data-wordmark-copy);
    position: absolute;
    inset: 0;
    color: var(--slate-grey);
    /* Alpha-only feather: softens the text reveal without blur or a visible glow. */
    --wordmark-mask: radial-gradient(circle clamp(55px, 7vw, 110px) at var(--wordmark-x, -200px) var(--wordmark-y, -200px), #000 40%, rgb(0 0 0 / 55%) 72%, transparent 100%);
    -webkit-mask-image: var(--wordmark-mask);
    mask-image: var(--wordmark-mask);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .wordmark-text.is-pointer-lit::after { opacity: 1; }
}
.footer-lockup-brackets .bracket { position: absolute; width: 20px; height: 20px; border: 1px solid var(--color-accent); opacity: 0.55; pointer-events: none; }
.bracket.top-left { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.bracket.top-right { top: 10px; right: 10px; border-width: 1px 1px 0 0; }
.bracket.bottom-left { bottom: 10px; left: 10px; border-width: 0 0 1px 1px; }
.bracket.bottom-right { right: 10px; bottom: 10px; border-width: 0 1px 1px 0; }
.footer-utility { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-md) 0; color: var(--slate-grey); font-size: var(--fs-micro); }

@media (max-width: 768px) {
  .proof-testimonial { grid-template-columns: 1fr; gap: 1.25rem; }
  .desktop-nav { display: none; }
  .menu-toggle { display: flex; }
  .nav { padding-inline: var(--space-sm); }
  .nav-cta { padding-inline: 0.85rem; }
  .showreel-track { padding-inline: max(1rem, calc((100vw - min(72vw, 260px)) / 2)); }
  .showreel-card { flex-basis: min(72vw, 260px); width: min(72vw, 260px); }
  .why-principles, .method-steps, .footer-top { grid-template-columns: 1fr; }
  .method-track-svg { height: 44px; }
  .method-steps { margin-top: var(--space-sm); }
  .method-step { padding: var(--space-md) var(--space-sm); border-right: 0; }
  .method-step:last-child { border-right: 0; }
  .method-feedback { margin-top: var(--space-xs); }
  .method-feedback-svg { height: 56px; }
  .proximity-crosshair-field { display: none; }
  .work-project { grid-template-columns: 1fr; direction: ltr !important; }
  .work-project-media { width: min(100%, 420px); justify-self: center; }
  .stage-dots-nav { justify-content: flex-start; overflow-x: auto; }
  .process-stage { min-height: 0; }
  .form-sentence { line-height: 1.65; }
  .form-inline-input, .form-inline-select { max-width: 100%; }
  .footer-utility { align-items: flex-start; flex-direction: column; }
}

@media (min-width: 769px) and (max-height: 759px) {
  .method-steps-wrap { margin-top: 0.55rem; }
  .method-track-svg { height: 34px; }
  .method-step { padding: 0.7rem 0.85rem; }
  .method-step .step-title { gap: 0.3rem; margin-bottom: 0.3rem; font-size: 0.76rem; }
  .method-step .step-question { margin-bottom: 0.15rem; font-size: 0.9rem; line-height: 1.35; }
  .method-step .step-detail { font-size: 0.84rem; line-height: 1.4; }
  .method-feedback { margin-top: 0; }
  .method-feedback-svg { height: 42px; }
}

@media (max-width: 420px) {
  .form-choice-options { grid-template-columns: 1fr; }
  .nav-cta { font-size: 0.62rem; padding: 0.55rem 0.7rem; }
  .nav-actions { gap: 0.55rem; }
  .statement-skin { padding: var(--space-md); }
  .form-inline-input, .form-inline-select { width: min(100%, 19rem); }
}
