/* =========================================================
   INTERHOST PRODUCTIONS — styles
   Look: brushed silver on graphite, like the maze logo.
   One quiet accent (the mint glow from the logo).
   ========================================================= */

:root {
  --bg: #0e0e10;
  --surface: #141417;
  --surface-2: #1a1a1e;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e6e7ea;
  --muted: #8b8d94;
  --accent: #7fd8b6; /* mint glow from the logo — use sparingly */
  --orange: #ff6a1a; /* brand orange — header wordmark */

  /* silver type, like the embossed logo */
  --silver: linear-gradient(180deg, #f2f3f5 0%, #b9bbc1 55%, #85878e 100%);
  /* pressed-into-the-wall effect */
  --emboss: 0 1px 0 rgba(255, 255, 255, 0.06), 0 -1px 0 rgba(0, 0, 0, 0.9);

  --font: "Inter Tight", Arial, sans-serif;
  --pad: clamp(20px, 6vw, 96px);
  --max: 1320px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- small labels ---------- */

.eyebrow,
.meta,
.num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font: 600 11px var(--font);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.btn:hover {
  border-color: var(--text);
}

.btn-small {
  padding: 10px 16px;
  font-size: 10px;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad);
  background: linear-gradient(180deg, rgba(14, 14, 16, 0.95), rgba(14, 14, 16, 0));
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 38px;
  height: auto;
}

.brand-mark.small {
  width: 24px;
  opacity: 0.6;
}

.brand-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1.3;
  color: #d9dade; /* soft white: the logo mark carries the colour */
}

.brand-name small {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-nav a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav .nav-cta {
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  color: var(--text);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh; /* phones: the visible screen, not counting the address bar */
  min-height: 640px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* maze, logo and connectors: one image, logo kept at 40% height */
.hero-art {
  position: absolute;
  inset: 0;
  margin: 0;
}

.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

/* fade into the next section */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 75%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  align-self: end;
  text-align: center;
  padding: 0 var(--pad) 17vh;
}

.statement {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
}

.tagline {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

/* ---------- sections ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 140px var(--pad);
  border-top: 1px solid var(--line);
  scroll-margin-top: 20px;
}

.section-head {
  margin-bottom: 56px;
}

.section-head h2 {
  margin: 16px 0 16px;
  line-height: 1.08;
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 560px;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
  color: #d4d6db;
}

/* ---------- cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
}

/* placeholder until real images go in */
.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.4));
}

.thumb img,
.thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card-body .meta {
  margin-bottom: 10px;
}

.card-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-body p:not(.meta) {
  color: var(--muted);
  font-size: 0.92rem;
}

.cta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start; /* line and button sit together */
  gap: 20px 40px;
  width: fit-content; /* box hugs its content */
  max-width: 100%;
  margin-top: 32px;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.cta-bar p {
  font-weight: 500;
}

/* ---------- about ---------- */

.about-text {
  max-width: 760px;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 300;
  line-height: 1.7;
}

/* ---------- contact ---------- */

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 880px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  color: var(--text);
  font: 400 1rem var(--font);
  letter-spacing: 0;
  text-transform: none;
}

.contact-form select option {
  background: var(--surface);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--orange);
}

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px var(--pad);
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- projects: four equal cards ---------- */

@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project {
  position: relative;
  isolation: isolate;
}

/* tall photo boxes so phone photos fit */
.project .thumb {
  aspect-ratio: 4 / 5;
}

.project .thumb img {
  transition: transform 0.7s ease;
}

.project:hover .thumb img,
.project:hover .thumb video {
  transform: scale(1.05);
}

/* a soft glow of brand color rising from the bottom of each photo */
.project .thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(130% 70% at 50% 115%, rgba(125, 92, 255, 0.55), rgba(44, 123, 255, 0.22) 45%, transparent 72%);
  mix-blend-mode: screen;
  opacity: 0.55;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.project:hover .thumb::before {
  opacity: 1;
}

/* on hover, a blue-purple-orange light runs around the card edge */
.project::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 3;
  padding: 1px;
  background: conic-gradient(from var(--spin), #2c7bff, #7d5cff, #ff6a1a, #2c7bff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: spin 4s linear infinite;
  pointer-events: none;
}

.project:hover::before {
  opacity: 1;
}

.project:hover {
  box-shadow: 0 24px 60px -28px rgba(125, 92, 255, 0.6);
}

@keyframes spin {
  to {
    --spin: 360deg;
  }
}

.install-grid .card-body {
  padding: 18px 18px 20px;
}

/* a card with a link: the whole card is clickable */
.card-link {
  color: inherit;
}

.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
}

.install-grid .card-body .watch {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.project:hover .watch {
  color: var(--orange);
}

.install-grid .card-body h3 {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.35;
}

.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 6px 10px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* crossfading photos: stacked, one shows at a time (script.js) */
.thumb.fade img,
.thumb.fade video {
  opacity: 0;
  transition: opacity 1.6s ease, transform 0.7s ease;
}

.thumb.fade img.is-on,
.thumb.fade video.is-on {
  opacity: 1;
}

.thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- visuals in action: one video at a time ---------- */

.reel-viewer {
  position: relative;
  overflow: hidden;
  max-width: 760px; /* smaller, so it doesn't take over the page */
}

/* slides sit on top of each other and crossfade (script.js picks one at random) */
.reel-track {
  display: grid;
}

.reel-slide {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.reel-slide.is-on {
  opacity: 1;
}

.reel-slide .thumb {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
}

.reel-slide .thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(130% 70% at 50% 115%, rgba(255, 106, 26, 0.35), rgba(125, 92, 255, 0.18) 45%, transparent 72%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.reel-slide figcaption {
  display: flex;
  align-items: center;
  margin-top: 14px;
  font-size: 1.05rem;
  font-weight: 500;
}

/* ---------- lab ---------- */

.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* same soft glow as the project cards, a little quieter */
.lab-item .thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(130% 70% at 50% 115%, rgba(255, 106, 26, 0.4), rgba(125, 92, 255, 0.18) 45%, transparent 72%);
  mix-blend-mode: screen;
  opacity: 0.4;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.lab-item:hover .thumb::before {
  opacity: 0.9;
}

.lab-item .thumb {
  aspect-ratio: 1 / 1;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  transition: border-color 0.3s;
}

.lab-item:hover .thumb {
  border-color: var(--line-strong);
}

.lab-item .meta {
  margin-bottom: 6px;
}

.lab-item h3 {
  font-size: 1rem;
  font-weight: 500;
}

/* ---------- shop ---------- */

.sub-head {
  margin: 0 0 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
}

.card-grid + .sub-head {
  margin-top: 72px;
}

/* ---------- pages ---------- */

/* home: no corner logo, menu centred */
body.home .site-header {
  justify-content: center;
}

/* current page in the menu */
.site-nav a.active {
  color: var(--text);
}

.site-nav a.active:not(.nav-cta) {
  border-bottom: 1px solid var(--orange);
  padding-bottom: 4px;
}

/* inner pages: room for the fixed header, no top line */
body.page main .section:first-child {
  padding-top: 180px;
  border-top: none;
}

body.page main {
  min-height: calc(100vh - 100px);
}

/* ---------- maze menu (home) ---------- */

.hero-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* let clicks reach the maze through the empty part of the text block */
.hero-content {
  pointer-events: none;
}

.hero-content a {
  pointer-events: auto;
}

.route {
  cursor: pointer;
}

/* no blue tap flash or focus box on phones (the bead is the feedback) */
a,
button,
.route {
  -webkit-tap-highlight-color: transparent;
}

.route:focus:not(:focus-visible) {
  outline: none;
}

.route .wire,
.route .glow,
.route .node,
.route .label {
  transition: opacity 0.35s, stroke-width 0.35s, fill 0.35s;
}

/* active path: a glowing orb travels from the logo to the label,
   shifting blue -> purple -> orange on the way */
.route .orb {
  transition: opacity 0.2s;
}

/* hover one path: it lights up, the others step back */
.routes:hover .route {
  opacity: 0.3;
}

.routes .route:hover,
.routes .route:focus-visible {
  opacity: 1;
}

.route:hover .wire,
.route.near .wire,
.route:focus-visible .wire {
  opacity: 0.32;
}

.route:hover .glow,
.route.near .glow,
.route:focus-visible .glow {
  opacity: 0.15;
}

.route:hover .orb,
.route.near .orb,
.route:focus-visible .orb {
  opacity: 1;
}

.route:hover .node-core,
.route.near .node-core,
.route:focus-visible .node-core {
  fill: #7d5cff;
}

/* labels sit at 40% so they guide the eye, full brightness when active */
.route .label {
  opacity: 0.4;
}

.route:hover .label,
.route.near .label,
.route:focus-visible .label {
  fill: #ffffff;
  opacity: 1;
}

.route:hover .node,
.route.near .node,
.route:focus-visible .node {
  opacity: 1;
  stroke: #ffffff;
}

.route:focus {
  outline: none;
}

/* hidden text for screen readers and search engines */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* home on desktop: the maze is the menu, so hide the top menu
   (it comes back on small screens, where the maze labels get cropped) */
body.home .site-header {
  display: none; /* the maze is the menu on every screen */
}

/* ---------- liquid light (home) ---------- */

/* colour waves drift slowly through the maze walls */
.hero-svg .flow {
  transform-box: view-box;
  transform-origin: 1280px 420px; /* logo centre on the 2560-wide maze */
  animation: flow-drift 48s linear infinite;
}

@keyframes flow-drift {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-svg .flow {
    animation: none;
  }
}

/* ---------- hero text block ---------- */

/* a soft pool of darkness so the maze doesn't fight the words */
.hero-content::before {
  content: "";
  position: absolute;
  inset: -60px -160px -20px;
  z-index: -1;
  background: radial-gradient(
    ellipse at center,
    rgba(14, 14, 16, 0.92) 0%,
    rgba(14, 14, 16, 0.7) 45%,
    rgba(14, 14, 16, 0) 72%
  );
  pointer-events: none;
}

/* hero button: dark with a thin brand-gradient edge */
.btn-glow {
  border: 1px solid transparent;
  background-image: linear-gradient(#111114, #111114),
    linear-gradient(180deg, #2c7bff, #7d5cff, #ff6a1a); /* top to bottom, like the logo */
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: var(--text);
  transition: box-shadow 0.3s, color 0.3s;
}

.btn-glow:hover {
  color: #fff;
  box-shadow: 0 0 24px rgba(125, 92, 255, 0.35);
}

/* ---------- start a project form ---------- */

.project-form fieldset {
  margin: 0 0 8px;
  padding: 0;
  border: none;
}

.project-form legend {
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form ::placeholder {
  color: #55575e;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

/* ---------- projects + contact pages ---------- */

.sub-head-gap {
  margin-top: 72px;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 96px; /* rows, columns: lots of room so long items never touch */
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

/* contact page: a softer, smaller heading */
.contact-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
}

.contact-head .lede + .lede {
  margin-top: 14px;
}

/* contact page: details sit right under the heading */
.contact-grid.tight {
  margin-top: 56px;
}

/* small inline link, orange on hover */
.text-link {
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.text-link:hover {
  color: var(--orange);
  border-color: var(--orange);
}

/* about page: one column per person */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px;
  margin: 80px 0 72px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.person-photo {
  display: block;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 24px;
  background: #16161a;
  border: 1px solid var(--line);
}

.person h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.person .meta {
  margin-bottom: 14px;
}

.person-bio p {
  color: var(--muted);
  max-width: 440px;
  line-height: 1.65;
}

.person-bio p + p {
  margin-top: 14px;
}

.contact-grid .meta {
  margin-bottom: 8px;
}

.contact-grid a,
.contact-grid p:not(.meta) {
  font-size: 1.05rem;
}

.contact-grid a:hover {
  color: #fff;
}

/* ---------- flashlight + steerable orb (home) ---------- */

.hero-svg .torch {
  opacity: 0;
  transition: opacity 0.5s;
}

.hero.torch-on .hero-svg .torch {
  opacity: 1;
}

/* on a line, your cursor drives the orb, so the self-travelling ones hide */
.route.steering .orb {
  opacity: 0 !important;
}

.hero-svg .steer-orb {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.hero-svg .steer-orb.on {
  opacity: 1;
}

/* ---------- phone maze ---------- */

/* the tall maze rotates its colour around its own logo */
.hero-svg.is-mobile .flow {
  transform-origin: 540px 460px;
}

/* phones have no hover: one path at a time lights up and sends its orb (script.js) */

@media (max-width: 700px) {
  /* drag a finger to move the flashlight instead of scrolling */
  body.home .hero {
    touch-action: none;
  }
  .hero-content {
    padding-bottom: calc(3vh + 78px); /* sits higher, clear of the bottom edge and badges */
  }
  /* maze rides up with the text so Contact stays clear of the headline */
  .hero-svg.is-mobile {
    transform: translateY(-9%);
  }
  /* quieter headline on phones so the maze stays the star */
  .statement {
    font-size: 1.15rem;
    letter-spacing: 0.08em;
  }
  .tagline {
    margin-top: 10px;
    font-size: 10px;
    letter-spacing: 0.16em;
    line-height: 1.8;
    text-wrap: balance;
  }
}

/* short phone screens: pull the maze up further and tighten the text block */
@media (max-width: 700px) and (max-height: 720px) {
  .hero-svg.is-mobile {
    transform: translateY(-10%);
  }
  .hero-content {
    padding-bottom: calc(5vh + 44px);
  }
  .hero-actions {
    margin-top: 22px;
  }
  .tagline {
    font-size: 10px;
    letter-spacing: 0.16em;
    line-height: 1.8;
    text-wrap: balance; /* two even lines instead of one word left hanging */
  }
}

/* ---------- intro reveal + idle nudge (home) ---------- */

/* intro: each path draws itself out from the logo, label and orb lit */
.hero-svg .intro-line {
  fill: none;
  stroke: #e9eaee;
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.85;
  animation: intro-draw 1.3s cubic-bezier(0.5, 0, 0.3, 1) forwards;
  transition: opacity 1s;
}

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

.hero-svg.intro .route .orb {
  opacity: 1;
}

.hero-svg.intro .route .label {
  opacity: 1;
  fill: #ffffff;
}

.hero-svg.intro .route .node {
  opacity: 1;
}

/* intro end: everything melts back into the maze */
.hero-svg.intro-out .intro-line,
.hero-svg.intro-out .route .orb {
  opacity: 0 !important;
}

.hero-svg.intro-out .route .label {
  opacity: 0.4;
  fill: #8b8d94;
}

.hero-svg .route .label,
.hero-svg .route .orb,
.hero-svg .route .node {
  transition: opacity 1s, fill 1s;
}

/* idle nudge: one path quietly lights and sends its orb */
.route.nudge .orb {
  opacity: 1;
}

.route.nudge .label {
  opacity: 0.85;
}

.route.nudge .wire {
  opacity: 0.28;
}

/* phone tap: the looping orbs step aside and one bead runs to the chosen page */
.route.chosen .orb {
  opacity: 0 !important;
}

.route.arrived .node-core {
  fill: #fff;
}

/* ---------- services page ---------- */

.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1.3fr 1fr;
  gap: 32px;
  align-items: start;
  padding: 36px 0 36px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s;
}

/* a thin gradient bar slides in on hover */
.service-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 36px;
  bottom: 36px;
  width: 2px;
  background: linear-gradient(180deg, #2c7bff, #7d5cff, #ff6a1a);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s;
}

.service-row:hover {
  padding-left: 20px;
}

.service-row:hover::before {
  transform: scaleY(1);
}

.service-row .num {
  padding-top: 6px;
}

.service-main h3 {
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* the description stays hidden until you hover the row */
.service-main p {
  max-width: 520px;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  color: var(--muted);
  transition: max-height 0.45s ease, opacity 0.35s ease, margin-top 0.45s ease;
}

.service-row:hover .service-main p,
.service-row:focus-within .service-main p {
  max-height: 8em;
  margin-top: 10px;
  opacity: 1;
}

/* phones and tablets can't hover, so show it there */
@media (hover: none) {
  .service-main p {
    max-height: none;
    margin-top: 10px;
    opacity: 1;
  }
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.tags li {
  transition: border-color 0.25s, color 0.25s;
}

.service-row:hover .tags li {
  border-color: rgba(255, 106, 26, 0.45);
}

.tags a:hover,
.contact-grid a:hover {
  color: var(--orange);
}

/* ---------- services: photo patches between the rows ----------
   Each one sits in a different spot and size so the page flows. */

.patch {
  position: relative;
  margin: 56px 0;
  overflow: hidden;
}

.patch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.85);
  transition: filter 0.6s ease, transform 0.8s ease;
}

.patch:hover img {
  filter: none;
  transform: scale(1.03);
}

/* a patch that crossfades between photos (script.js) */
.patch.fade img,
.patch.fade video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease, filter 0.6s ease, transform 0.8s ease;
}

.patch.fade img.is-on,
.patch.fade video.is-on {
  opacity: 1;
}

.patch-wide {
  width: 58%;
  margin-left: auto;
  aspect-ratio: 16 / 10;
}

.patch-tall {
  width: 24%;
  margin-left: 34%; /* sits near the middle */
  aspect-ratio: 3 / 4;
}

.patch-mid {
  width: 38%;
  margin-left: 40%;
  aspect-ratio: 4 / 3;
}

.patch-bts {
  width: 22%;
  margin-left: 66%;
  aspect-ratio: 3 / 4;
}

.patch-small {
  width: 28%;
  margin-left: 12%;
  aspect-ratio: 4 / 3;
}

/* faint vertical photo down the left side, behind everything */
#services {
  position: relative;
  isolation: isolate;
}

.page-backdrop {
  position: absolute;
  top: 420px;
  left: 0;
  z-index: -1;
  width: min(34vw, 520px);
  height: min(160vh, 1400px);
  background: url("img/services/install2-vertical.jpg") center / cover no-repeat;
  opacity: 0.09;
  -webkit-mask-image: linear-gradient(to right, #000 30%, transparent), linear-gradient(to bottom, transparent, #000 15%, #000 80%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, #000 30%, transparent), linear-gradient(to bottom, transparent, #000 15%, #000 80%, transparent);
  mask-composite: intersect;
  pointer-events: none;
}

@media (max-width: 900px) {
  .service-row {
    grid-template-columns: 50px 1fr;
  }
  .service-row .tags {
    grid-column: 2;
  }
  .patch-wide,
  .patch-mid {
    width: 86%;
  }
  .patch-mid {
    margin-left: auto;
  }
  .patch-tall {
    width: 52%;
    margin-left: 50px;
  }
  .patch-small {
    width: 64%;
    margin-left: 0;
  }
  .patch-bts {
    width: 52%;
    margin-left: auto;
  }
  .page-backdrop {
    width: 70vw;
    opacity: 0.06;
  }
}

/* ---------- start a project page ---------- */

.start-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}

.start-intro {
  position: relative;
  z-index: 1;
}

.start .project-form {
  position: relative;
  z-index: 1;
}

/* the lit path from the heading to the Send button */
.start-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.sp-line {
  fill: none;
  stroke: #c9cbd1;
  stroke-width: 1.5;
  stroke-linejoin: miter;
  opacity: 0.28;
}

.sp-node {
  fill: #0e0e10;
  stroke: #e9eaee;
  stroke-width: 1.5;
  opacity: 0.6;
}

.sp-end {
  stroke: var(--orange);
  opacity: 0.6;
  transition: fill 0.6s, opacity 0.6s;
}

/* the charged part of the path */
.sp-lit {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: miter;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

/* the front of the light: quiet until you start typing */
.sp-head {
  opacity: 0.45;
  transition: opacity 0.5s;
}

.start-grid.is-typing .sp-head {
  opacity: 1;
}

/* required fields done: the end node and the button light up */
.start-grid.is-ready .sp-end {
  fill: var(--orange);
  opacity: 1;
}

.start-grid.is-ready .form-foot .btn {
  color: #fff;
  box-shadow: 0 0 28px rgba(255, 106, 26, 0.35);
}

.start-intro h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.start-intro .lede {
  margin-bottom: 48px;
}

.next-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.next-steps li {
  position: relative;
  padding: 9px 0 9px 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* small square bullet, like the maze nodes */
.next-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em; /* sits on the first line, even when the text wraps */
  width: 6px;
  height: 6px;
  border: 1px solid var(--orange);
}

.start .project-form {
  max-width: none;
}

@media (max-width: 900px) {
  .start-grid {
    grid-template-columns: 1fr;
  }
  .start-path {
    display: none; /* the columns stack on small screens, so no path */
  }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .install-grid {
    grid-template-columns: 1fr;
  }
  .site-nav a:not(.nav-cta) {
    display: none; /* proper mobile menu comes in the JS step */
  }
}

@media (max-width: 600px) {
  .lab-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .contact-form {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 96px var(--pad);
  }
}

/* =========================================================
   SHOP: GEAR
   ========================================================= */

/* Gear | Visuals switch */
.shop-tabs {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.shop-tabs button {
  position: relative;
  padding: 0 0 16px;
  background: none;
  border: none;
  color: var(--muted);
  font: 400 clamp(1.5rem, 2.4vw, 2rem) var(--font);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 0.2s;
}

.shop-tabs button:hover {
  color: var(--text);
}

/* small line icon before each tab name */
.shop-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.tab-icon {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s;
}

.shop-tabs button.is-on .tab-icon {
  stroke: var(--orange);
}

.shop-tabs button.is-on {
  color: var(--text);
}

/* thin orange line under the open tab */
.shop-tabs button.is-on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--orange);
}

.shop-note {
  margin-top: 48px;
  color: var(--muted);
}

/* filter buttons + inventory link on one row */
.gear-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

.gear-ask {
  font-size: 0.95rem;
}

/* filter buttons */
.gear-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gear-filter button {
  padding: 10px 18px;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font: 600 11px var(--font);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.gear-filter button:hover {
  color: var(--text);
}

.gear-filter button.is-on {
  color: var(--text);
  border-color: var(--orange);
}

.gear-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.gear.is-hidden {
  display: none;
}

.gear .thumb {
  aspect-ratio: 4 / 3;
}

/* small label on the photo */
.gear-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 6px 10px;
  background: rgba(14, 14, 16, 0.8);
  border: 1px solid var(--line-strong);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* rent / buy prices side by side */
.gear-prices {
  display: flex;
  gap: 32px;
  margin: 20px 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.gear-prices span {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.gear-prices b {
  font-size: 1.15rem;
  font-weight: 600;
}

.gear-prices small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
}

.gear-add {
  width: 100%;
  background: none;
  cursor: pointer;
}

.gear-add:hover,
.gear-add.is-added {
  border-color: var(--orange);
  color: var(--text);
}

/* the request box below the gear */
.gear-request {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  margin-top: 96px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
}

.gear-request-intro h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.gear-request-intro p {
  color: var(--muted);
  max-width: 340px;
}

.contact-form input[type="date"] {
  color-scheme: dark;
}

@media (max-width: 900px) {
  .gear-request {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- shop: coming soon ---------- */
.soon {
  min-height: 60vh;
}

.soon-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
}

/* projects: VJ booking bar under the videos */
.vj-bar {
  margin-top: 48px;
}

/* anything marked hidden stays hidden, even with a display style */
[hidden] {
  display: none !important;
}

/* start a project: thank-you note after the form sends */
.form-thanks {
  max-width: 880px;
  padding: 28px 0;
  font-size: 1.1rem;
  color: var(--text);
}

.start-grid.is-sent .start-path {
  display: none;
}
