/* ==========================================================================
   Jamie Ray Productions — staging prototype stylesheet
   ==========================================================================
   Single-page events planning + production prototype.

   Dependency-free: no frameworks, no fonts, no images, and no external
   asset references of any kind. Every visual is built from tokens,
   gradients, and shapes so the artifact is fully placeholder-safe.

   Sources of truth:
   - context/specification.md      (structure, motion, reduced-motion, focus)
   - knowledge-graph/entities/brand-direction.md   (art direction)
   - knowledge-graph/entities/site-brief.md        (experience)
   - index.html                   (selectors styled below)
   - assets/site.js               (interaction hooks styled below)

   Contract notes:
   - Explore-led editorial event-poster composition with an asymmetric grid.
   - All meaningful actions work without JavaScript; motion is enhancement.
   - Reduced motion, keyboard focus, coarse pointers, and small screens are
     first-class states, never afterthoughts.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */

:root {
  color-scheme: dark;

  /* Documented palette (context/specification.md §4). */
  --canvas: #0c0b0e;
  --surface: #15131a;
  --ink: #f3eee5;
  --muted: #aaa3a0;
  --acid: #d9ff3f;
  --cobalt: #6c7bff;
  --coral: #ff6b5e;

  /* Derived tokens. */
  --line: rgba(243, 238, 229, 0.16);
  --line-soft: rgba(243, 238, 229, 0.08);
  --canvas-rgb: 12, 11, 14;

  /* Type: high-contrast display face with a robust serif fallback,
     a legible sans stack, and mono reserved for small metadata. */
  --display: "Bodoni MT", Didot, "Playfair Display", Georgia,
             "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
          "Liberation Mono", monospace;

  /* Rhythm. */
  --gutter: clamp(1.25rem, 4.5vw, 3.5rem);
  --max-width: 1480px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Pointer spotlight position is driven by JavaScript. */
  --spotlight-x: 50vw;
  --spotlight-y: 50vh;
}

/* 2. Reset and base -------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(2rem, 4.8vw, 3.4rem);
}

h1 em,
h2 em {
  font-style: italic;
  color: var(--acid);
}

p {
  margin: 0;
}

a {
  color: var(--ink);
}

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

/* Hidden attribute must always win so JavaScript toggles are reliable. */
[hidden] {
  display: none !important;
}

::selection {
  background: var(--acid);
  color: var(--canvas);
}

/* 3. Shared editorial utilities ------------------------------------------- */

main {
  display: block;
}

.section-rule {
  border-top: 1px solid var(--line);
  padding-block: clamp(4rem, 8vw, 7.5rem);
}

section[id] {
  scroll-margin-top: calc(4.5rem + env(safe-area-inset-top, 0px));
}

.section-index {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--acid);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

.lead-copy {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink);
  max-width: 56ch;
}

.small-copy {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 56ch;
}

/* Placeholder markers stay visible and legible. */
.hero-note strong,
.lead-copy strong,
.small-copy strong,
.section-aside strong,
.contact-intro strong,
.form-note strong {
  color: var(--acid);
  font-weight: 600;
}

/* Buttons and links -------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease,
    color 0.25s ease;
}

.button:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.button-acid {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--canvas);
}

.button-acid:hover {
  background: var(--canvas);
  color: var(--acid);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--acid);
  padding-bottom: 0.3rem;
}

.text-link span {
  display: inline-block;
  color: var(--acid);
  transition: transform 0.25s var(--ease-out);
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--acid);
}

.text-link:hover span,
.text-link:focus-visible span {
  transform: translate(3px, 3px);
}

/* 4. Page chrome: skip link, grain, pointer spotlight ---------------------- */

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  background: var(--acid);
  color: var(--canvas);
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  transform: translateY(calc(-100% - 2rem));
  transition: transform 0.25s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

/* Subtle film-grain + scanline punctuation. Decorative only, never
   meaning-bearing, and it sits above the artwork but ignores the pointer. */
.noise {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(243, 238, 229, 0.014) 0 1px,
      transparent 1px 3px
    ),
    repeating-radial-gradient(
      circle at 17% 32%,
      rgba(243, 238, 229, 0.05) 0 1px,
      transparent 1px 4px
    ),
    repeating-radial-gradient(
      circle at 83% 71%,
      rgba(217, 255, 63, 0.035) 0 1px,
      transparent 1px 5px
    );
  mix-blend-mode: overlay;
}

/* Pointer spotlight. Position is written by JavaScript as --spotlight-x /
   --spotlight-y; the element itself stays behind all content and is only
   active on fine pointers with motion allowed. */
.cursor-light {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    560px circle at var(--spotlight-x) var(--spotlight-y),
    rgba(108, 123, 255, 0.13),
    rgba(217, 255, 63, 0.05) 38%,
    transparent 65%
  );
  transition: opacity 0.4s ease;
}

.cursor-light.is-active {
  opacity: 1;
}

.cursor-light.is-disabled {
  display: none;
}

/* 5. Header and navigation ------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem var(--gutter);
  background: rgba(var(--canvas-rgb), 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header.is-menu-open {
  border-bottom-color: var(--acid);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.wordmark-mark {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.05;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.wordmark-mark span {
  color: var(--acid);
}

.wordmark-name {
  font-family: var(--display);
  font-size: 0.92rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 1.9rem);
}

.desktop-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--ink);
}

.desktop-nav .nav-cta {
  padding: 0.6rem 1.05rem;
  border: 1px solid var(--acid);
  border-radius: 2px;
  color: var(--acid);
}

.desktop-nav .nav-cta:hover {
  background: var(--acid);
  color: var(--canvas);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.4rem 0.95rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}

.menu-bars {
  display: inline-grid;
  gap: 5px;
  width: 18px;
}

.menu-bars i {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease-out);
}

.menu-toggle[aria-expanded="true"] .menu-bars i:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bars i:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Mobile slide-in panel. The [hidden] attribute is toggled by JavaScript;
   under reduced motion the slide transition is disabled entirely. */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: min(360px, 92vw);
  padding: calc(5rem + env(safe-area-inset-top, 0px))
    clamp(1.5rem, 5vw, 2.5rem) 2.5rem;
  background: var(--surface);
  border-left: 1px solid var(--line);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease-out);
}

.mobile-nav:not([hidden]) {
  transform: translateX(0);
}

.mobile-nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.35rem, 5vw, 1.8rem);
  font-weight: 600;
  text-decoration: none;
}

.mobile-nav a:hover {
  color: var(--acid);
}

.mobile-nav a span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--acid);
}

/* 6. Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas:
    "topline topline"
    "copy poster"
    "footer footer";
  align-items: end;
  gap: clamp(2rem, 5vw, 4.5rem) clamp(2.5rem, 6vw, 6rem);
  overflow: hidden;
}

.hero-topline {
  grid-area: topline;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-orbit {
  position: absolute;
  z-index: 0;
  border: 1px dashed var(--line);
  border-radius: 50%;
  animation: orbit-spin 90s linear infinite;
}

.orbit-one {
  top: -14%;
  right: -12%;
  width: min(560px, 46vw);
  aspect-ratio: 1;
}

.orbit-two {
  bottom: -18%;
  left: -8%;
  width: min(420px, 34vw);
  aspect-ratio: 1;
  border-style: solid;
  border-color: var(--line-soft);
}

.hero-copy {
  grid-area: copy;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(3.2rem, 9.5vw, 7.6rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.hero-note {
  max-width: 38ch;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.hero-copy .button {
  margin-top: 2rem;
}

.hero-poster {
  grid-area: poster;
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.poster-slice {
  position: absolute;
}

.slice-a {
  inset: 0;
  background: linear-gradient(140deg, #241d3a 0%, #1d1630 45%, #0f151f 100%);
}

.slice-b {
  top: 14%;
  left: -10%;
  width: 58%;
  height: 52%;
  background: linear-gradient(
    150deg,
    rgba(108, 123, 255, 0.5),
    rgba(217, 255, 63, 0.28)
  );
  mix-blend-mode: screen;
  transform: rotate(-7deg);
}

.slice-c {
  right: -8%;
  bottom: -10%;
  width: 62%;
  height: 48%;
  background: linear-gradient(
    20deg,
    rgba(255, 107, 94, 0.5),
    rgba(108, 123, 255, 0.35)
  );
  mix-blend-mode: screen;
  transform: rotate(6deg);
}

.poster-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.45rem 0.6rem;
  background: rgba(var(--canvas-rgb), 0.6);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.poster-stamp {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding: 0.5rem 0.8rem;
  border: 2px solid var(--coral);
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--coral);
  transform: rotate(-8deg);
}

.hero-footer {
  grid-area: footer;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue b {
  display: inline-block;
  color: var(--acid);
  font-weight: 700;
  animation: scroll-cue 2.2s ease-in-out infinite;
}

/* 7. Approach -------------------------------------------------------------- */

.approach {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: var(--gutter);
}

.approach-lead h2 {
  margin-bottom: 1.25rem;
}

.approach-copy {
  display: grid;
  gap: 1.4rem;
  justify-items: start;
}

/* 8. Kinetic strip --------------------------------------------------------- */

.kinetic-strip {
  position: relative;
  overflow: hidden;
  padding-block: 0.95rem;
  padding-inline: var(--gutter);
  border-block: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.kinetic-strip > span {
  display: inline-block;
}

/* The accessible static phrase sits behind; the aria-hidden duplicate
   scrolls over it. Because both copies carry identical glyphs at the same
   origin, the loop is seamless even though it is decorative. */
.kinetic-strip > .kinetic-animated {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--gutter);
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: kinetic-scroll 28s linear infinite;
  will-change: transform;
}

.kinetic-strip:hover > .kinetic-animated,
.kinetic-strip:focus-within > .kinetic-animated,
.kinetic-strip.is-paused > .kinetic-animated {
  animation-play-state: paused;
}

.kinetic-strip.is-static > .kinetic-animated {
  animation: none;
}

/* 9. Work index, filters, cards -------------------------------------------- */

.section-heading {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1.3fr) minmax(0, 0.8fr);
  align-items: end;
  gap: var(--gutter);
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-heading h2 {
  margin-bottom: 0.25rem;
}

.section-aside {
  max-width: 30ch;
  color: var(--muted);
  font-size: 0.92rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.filter-label {
  margin-right: 0.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease;
}

.filter-button:hover {
  border-color: var(--acid);
  color: var(--ink);
}

.filter-button.is-active,
.filter-button[aria-pressed="true"] {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--canvas);
}

.filter-button span {
  opacity: 0.75;
  font-size: 0.66rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2.2vw, 1.5rem);
}

.project-card {
  grid-column: span 6;
  min-width: 0;
}

.project-card:nth-child(3n + 1) {
  grid-column: span 7;
}

.project-card:nth-child(3n + 2) {
  grid-column: span 5;
}

.project-card-button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.3s var(--ease-out);
}

.project-card-button:hover,
.project-card-button:focus-visible {
  border-color: var(--acid);
}

.project-card-button:hover {
  transform: translateY(-4px);
}

.project-card-visual {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  margin: 0.75rem 0.75rem 1.25rem;
  overflow: hidden;
  border-radius: 2px;
}

.project-card-visual::after {
  content: "";
  position: absolute;
  inset: 11%;
  border: 1px solid rgba(243, 238, 229, 0.22);
  transform: rotate(-3deg);
}

/* CSS-only placeholder studies — labelled PLACEHOLDER in the metadata
   below them; they never imply a real event or portfolio asset. */
.visual-gather {
  background:
    radial-gradient(circle at 28% 22%, rgba(108, 123, 255, 0.55), transparent 42%),
    linear-gradient(150deg, #221d38 0%, #3a2b52 55%, #101c23 100%);
}

.visual-launch {
  background:
    radial-gradient(circle at 72% 78%, rgba(217, 255, 63, 0.5), transparent 40%),
    linear-gradient(210deg, #1b1a2a 0%, #25304a 50%, #101820 100%);
}

.visual-celebrate {
  background:
    radial-gradient(circle at 65% 30%, rgba(255, 107, 94, 0.55), transparent 44%),
    linear-gradient(120deg, #2b1c24 0%, #4a2333 55%, #1a1517 100%);
}

.project-card-meta,
.project-card-prompt,
.project-card-title {
  display: block;
  padding-inline: 0.75rem;
}

.project-card-meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acid);
}

.project-card-title {
  margin-top: 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.12;
  padding-bottom: 1rem;
}

.project-card-prompt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.9rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.project-card-button:hover .project-card-prompt,
.project-card-button:focus-visible .project-card-prompt {
  opacity: 1;
}

.results-status {
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 10. Services ------------------------------------------------------------- */

.services {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
  align-items: start;
  gap: var(--gutter);
}

.services-intro h2 {
  margin-bottom: 1.25rem;
}

.services-intro .small-copy {
  max-width: 48ch;
}

.service-list {
  grid-column: 2;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto 2rem;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 44px;
  padding: 1.2rem clamp(1rem, 2vw, 1.5rem);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.service-row:hover {
  background: var(--surface);
}

.service-row > span {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.service-row strong {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  font-weight: 600;
  line-height: 1.1;
  transition: color 0.2s ease;
}

.service-row.is-expanded strong {
  color: var(--acid);
}

.service-row em {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.service-row b {
  font-size: 1.15rem;
  color: var(--acid);
}

.service-row .service-detail {
  grid-column: 1 / -1;
  max-width: 62ch;
  color: var(--muted);
  font-size: 0.95rem;
  padding-bottom: 0.75rem;
}

/* 11. Process -------------------------------------------------------------- */

.process {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
  align-items: start;
  gap: var(--gutter);
}

.process-heading h2 {
  margin-bottom: 0.25rem;
}

.process-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  position: relative;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.process-list li > span {
  position: absolute;
  top: 1.1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--acid);
}

.process-list h3 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}

.process-list p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36ch;
}

/* 12. About ---------------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 0.95fr) minmax(0, 1.1fr);
  align-items: start;
  gap: var(--gutter);
}

.about-visual {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
}

.portrait-shape {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 340px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(160deg, #241d33, #14121a 72%);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.portrait-shape::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(217, 255, 63, 0.35);
  transform: translate(10px, -10px);
}

.portrait-shape span {
  position: relative;
  font-family: var(--display);
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--ink);
}

.visual-caption {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-copy {
  display: grid;
  gap: 1.4rem;
  justify-items: start;
}

.about-copy h2 {
  margin-bottom: 0.25rem;
}

/* 13. Contact and form ----------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: var(--gutter);
}

.contact-intro h2 {
  margin-bottom: 1.25rem;
}

.contact-intro > p:last-child {
  max-width: 36ch;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-form-wrap {
  max-width: 560px;
}

.form-note {
  margin-bottom: 1.5rem;
  padding: 0.9rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 2px;
  color: var(--muted);
  font-size: 0.85rem;
}

[data-rfp-form] {
  display: grid;
  gap: 1.1rem;
}

[data-rfp-form] > label:not(.consent) {
  display: grid;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

[data-rfp-form] > label:not(.consent) span {
  color: var(--acid);
}

[data-rfp-form] input:not([type="checkbox"]),
[data-rfp-form] select,
[data-rfp-form] textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--canvas);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s ease;
}

[data-rfp-form] textarea {
  min-height: 9rem;
  resize: vertical;
}

[data-rfp-form] select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--acid) 50%),
    linear-gradient(135deg, var(--acid) 50%, transparent 50%);
  background-position:
    calc(100% - 21px) calc(50% + 1px),
    calc(100% - 15px) calc(50% + 1px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

[data-rfp-form] option {
  background: var(--surface);
  color: var(--ink);
}

[data-rfp-form] input:focus,
[data-rfp-form] select:focus,
[data-rfp-form] textarea:focus,
[data-rfp-form] input:focus-visible,
[data-rfp-form] select:focus-visible,
[data-rfp-form] textarea:focus-visible {
  border-color: var(--acid);
}

[data-rfp-form] input:user-invalid,
[data-rfp-form] select:user-invalid,
[data-rfp-form] textarea:user-invalid {
  border-color: var(--coral);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
}

.consent input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 0.2rem;
  accent-color: var(--acid);
}

.consent b {
  color: var(--acid);
}

.form-error:not([hidden]),
.form-success:not([hidden]) {
  display: block;
  margin: 0;
}

.form-error:not([hidden]) {
  color: var(--coral);
  font-size: 0.9rem;
}

.form-success:not([hidden]) {
  padding: 1rem;
  border: 1px solid rgba(217, 255, 63, 0.4);
  border-radius: 2px;
  background: rgba(217, 255, 63, 0.08);
  font-size: 0.95rem;
}

.form-success [data-reset-form] {
  display: inline-block;
  min-height: 44px;
  margin-top: 0.4rem;
  padding: 0 0.25rem;
  background: none;
  border: 0;
  color: var(--acid);
  font: inherit;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: underline;
  cursor: pointer;
}

/* 14. Footer --------------------------------------------------------------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}

.site-footer .wordmark-mark {
  font-size: 1.2rem;
}

.site-footer .wordmark-name {
  font-size: 0.8rem;
}

.site-footer p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
  text-align: center;
}

.site-footer > a:last-child {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.site-footer > a:last-child:hover {
  color: var(--acid);
}

/* 15. Project detail dialog ------------------------------------------------ */

.project-dialog {
  margin: auto;
  padding: 0;
  width: min(680px, 92vw);
  max-width: 92vw;
  max-height: min(80vh, 760px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
}

.project-dialog[open],
.project-dialog.is-open {
  display: block;
}

.project-dialog::backdrop {
  background: rgba(8, 7, 10, 0.78);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.dialog-inner {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.dialog-close:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.dialog-inner h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  padding-right: 5rem;
}

.dialog-visual {
  display: block;
  aspect-ratio: 16 / 9;
  margin-block: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 2px;
}

/* 16. Reveal choreography (progressive enhancement only) ------------------- */

/* Sections are fully visible by default so the page works with JavaScript
   disabled; the rise animation only plays when JavaScript adds .is-visible. */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal].is-visible {
    animation: reveal-rise 0.7s var(--ease-out) both;
  }

  .project-dialog[open] {
    animation: dialog-in 0.28s var(--ease-out) both;
  }
}

/* 17. Keyboard focus ------------------------------------------------------- */

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

.button-acid:focus-visible {
  outline-color: var(--canvas);
}

/* 18. Responsive collapses ------------------------------------------------- */

/* Tablet: collapse the collage while preserving document order. */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "topline"
      "copy"
      "poster"
      "footer";
    align-items: start;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-poster {
    max-width: 520px;
  }

  .approach {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .approach-lead,
  .approach-copy {
    grid-column: 2;
  }

  .section-heading {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .section-heading > div:nth-child(2) {
    grid-column: 2;
  }

  .section-heading .section-aside {
    grid-column: 2;
    max-width: 52ch;
  }

  .services,
  .process,
  .about,
  .contact {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .services-intro,
  .about-visual,
  .about-copy,
  .contact-intro {
    grid-column: 2;
  }

  .service-list {
    grid-column: 2;
  }

  .about-copy {
    max-width: 60ch;
  }

  .contact-form-wrap {
    grid-column: 2;
    max-width: 620px;
  }

  .work-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .project-card:nth-child(3n + 1) {
    grid-column: span 6;
  }

  .project-card:nth-child(3n + 2),
  .project-card:nth-child(3n) {
    grid-column: span 3;
  }
}

/* Mobile menu switch point. */
@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-nav {
    /* Defensive: never appear on desktop even if JavaScript toggles it. */
    display: none;
  }

  .mobile-nav:not([hidden]) {
    display: flex;
  }
}

/* Phone: single-column flow, no pointer-only interaction. */
@media (max-width: 720px) {
  .hero {
    gap: 2.5rem 0;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 14.5vw, 5rem);
  }

  .hero-poster {
    max-width: 460px;
    margin-inline: auto;
  }

  .hero-orbit {
    display: none;
  }

  .hero-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .hero-topline {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .approach,
  .section-heading,
  .services,
  .process,
  .about,
  .contact {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .approach-lead,
  .approach-copy,
  .section-heading > div:nth-child(2),
  .section-heading .section-aside,
  .services-intro,
  .service-list,
  .about-visual,
  .about-copy,
  .contact-intro,
  .contact-form-wrap {
    grid-column: 1;
  }

  .section-index {
    margin-bottom: 0.5rem;
  }

  .work-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-card:nth-child(n) {
    grid-column: span 1;
  }

  .process-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

  .service-row {
    grid-template-columns: 2.4rem minmax(0, 1fr) auto;
  }

  .service-row b {
    display: none;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer p {
    text-align: left;
  }

  .kinetic-strip {
    font-size: 0.7rem;
  }

  [data-rfp-form] .button {
    width: 100%;
  }
}

/* 19. Motion keyframes ----------------------------------------------------- */

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

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

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.7);
  }
}

@keyframes scroll-cue {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

@keyframes reveal-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 20. Reduced motion ------------------------------------------------------- */

/* One switch disables every decorative transformation while retaining all
   content, state changes, focus outlines, and functional behavior. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-orbit,
  .pulse-dot,
  .scroll-cue b,
  .kinetic-strip > .kinetic-animated,
  [data-reveal].is-visible,
  .project-dialog[open] {
    animation: none !important;
  }

  .cursor-light,
  .cursor-light.is-active {
    display: none;
  }

  .mobile-nav,
  .skip-link,
  .project-card-button,
  .project-card-prompt,
  .filter-button,
  .service-row,
  .menu-bars i {
    transition: none;
  }

  .project-card-button:hover,
  .project-card-button:focus-visible {
    transform: none;
  }

  .text-link:hover span,
  .text-link:focus-visible span {
    transform: none;
  }

  .poster-stamp {
    transform: none;
  }
}
