/* 2TP Visuals – styles
   Palette from the 2TP logo. Background = an LED panel that is switched off. */
:root {
  --off:      #030714;   /* switched-off panel */
  --panel:    #0a1226;   /* raised surfaces */
  --line:     #1a2644;
  --text:     #e8eef8;
  --muted:    #8a97b0;
  --blue:     #0054f5;
  --mid:      #008bdf;
  --cyan:     #00c2c9;
  --magenta:  #e5009b;
  --grad: linear-gradient(90deg, var(--blue), var(--mid) 50%, var(--cyan));

  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
  --step-3: clamp(2.4rem, 1.6rem + 3.4vw, 4.2rem);
  --wrap: 1200px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--off);
  color: var(--text);
  font: 400 var(--step-0)/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--text); color: var(--off); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

h2 {
  font-size: var(--step-3);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 2.5rem;
}
h3 { font-size: var(--step-1); line-height: 1.25; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 64ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  background: rgba(3, 7, 20, .55);
  backdrop-filter: blur(6px);
  transition: border-color .2s, background .2s;
}
.btn:hover { border-color: var(--cyan); }
.btn--primary { background: var(--grad); border-color: transparent; color: #fff; }
.btn--primary:hover { filter: brightness(1.1); border-color: transparent; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(3, 7, 20, .88); backdrop-filter: blur(10px); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo img { width: 140px; height: auto; }
.nav__menu { display: flex; gap: 2rem; align-items: center; }
.nav__menu a { text-decoration: none; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav__menu a:hover { color: var(--text); }
.nav__menu .nav__cta { color: var(--text); border: 1px solid var(--magenta); padding: .45rem 1rem; border-radius: 999px; }
.nav__menu .nav__cta:hover { background: var(--magenta); }
.nav__toggle { display: none; }

@media (max-width: 760px) {
  .nav__toggle {
    display: block; background: none; color: var(--text);
    border: 1px solid var(--line); border-radius: 999px; padding: .4rem 1rem; font: inherit;
  }
  .nav__menu {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--off); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gap) 1.25rem;
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { padding: .7rem 0; font-size: var(--step-1); color: var(--text); }
  .nav__menu .nav__cta { margin-top: .5rem; }
}

/* ---------- Hero / LED wall ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: flex; align-items: flex-end;
  padding: 120px 0 clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__wall { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { /* fade the wall into the page */
  content: ""; position: absolute; inset: auto 0 0; height: 45%; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--off) 85%);
}
.hero__lead { font-size: var(--step-1); line-height: 1.45; max-width: 46ch; margin-bottom: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section + .section { border-top: 1px solid var(--line); }

/* About */
.about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.big { font-size: var(--step-2); line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; max-width: 22ch; margin-bottom: 1.25em; }
.about__text p:not(.big) { color: var(--muted); }
.spec { margin: 0; border-top: 1px solid var(--line); }
@media (min-width: 861px) { .spec { margin-top: calc(var(--step-3) + 2.5rem); } }
.spec__row { display: grid; grid-template-columns: 11rem 1fr; gap: 1.25rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 700; }
.spec dd { margin: 0; color: var(--muted); }
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .spec__row { grid-template-columns: 1fr; gap: .25rem; }
}

/* Playback rig */
.rig { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.rig[hidden] { display: none; }
.rig__title { font-size: var(--step-2); letter-spacing: -0.02em; margin-bottom: 1.75rem; }
.rig__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.rig__item { border-top: 2px solid var(--blue); padding-top: 1.25rem; }
.rig__item:nth-child(2) { border-color: var(--mid); }
.rig__item:nth-child(3) { border-color: var(--cyan); }
.rig__item:nth-child(4) { border-color: var(--magenta); }
.rig__name { display: block; font-size: var(--step-1); font-weight: 800; letter-spacing: -0.01em; }
.rig__kind { display: block; color: var(--cyan); font-weight: 500; margin-bottom: .75rem; }
.rig__item p { color: var(--muted); margin: 0; }

/* Projects */
.projects__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem 2rem; margin-bottom: 2.5rem; }
.projects__head h2 { margin: 0; }
.filter { display: flex; gap: .25rem; padding: .25rem; border: 1px solid var(--line); border-radius: 999px; }
.filter__btn {
  font: inherit; font-size: var(--step--1); font-weight: 600;
  color: var(--muted); background: none; border: 0; border-radius: 999px;
  padding: .45rem 1rem; cursor: pointer;
}
.filter__btn.is-active { background: var(--text); color: var(--off); }

.projects__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2.5rem, 5vw, 4rem) var(--gap); }
.project { margin: 0; }
.project.is-featured { grid-column: 1 / -1; }
.project[hidden] { display: none; }
.project__open {
  display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit;
  text-align: left; font: inherit; cursor: pointer;
}
.project__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel); border-radius: 6px; }
.project.is-featured .project__media { aspect-ratio: 21 / 9; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project__open:hover .project__media img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .project__open:hover .project__media img { transform: none; } }
.project__count {
  position: absolute; right: .75rem; bottom: .75rem;
  font-size: var(--step--1); padding: .2rem .65rem; border-radius: 999px;
  background: rgba(3, 7, 20, .75);
}
.project__cap { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding-top: 1rem; }
.project__cap h3 { grid-column: 1; }
.project__year { grid-column: 2; grid-row: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
.project__role { grid-column: 1 / -1; color: var(--muted); margin: 0; }
.project.is-featured h3 { font-size: var(--step-2); letter-spacing: -0.02em; }

/* Tools */
.projects__head { display: block; margin-bottom: 2.5rem; }
.projects__head h2 { margin: 0 0 2.5rem; }
.projects__grid { display: block; }
.tool {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--panel); border-radius: 8px; border-left: 4px solid var(--magenta);
}
.tool + .tool { margin-top: var(--gap); }
.tool__head { display: flex; gap: 1.1rem; align-items: center; margin-bottom: 1.25rem; }
.tool__icon { width: 64px; height: 64px; border-radius: 14px; flex: none; }
.tool__status { display: inline-block; color: var(--magenta); font-weight: 600; font-size: var(--step--1); margin-bottom: .2rem; }
.tool h3 { font-size: var(--step-2); letter-spacing: -0.02em; }
.tool__tagline { color: var(--cyan); margin: .25rem 0 0; font-weight: 500; }
.tool__body > p { color: var(--muted); }
.tool__features { list-style: none; margin: 1.25rem 0 1.75rem; padding: 0; display: grid; gap: .65rem; }
.tool__features li { position: relative; padding-left: 1.4rem; line-height: 1.5; }
.tool__features li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--grad); }
.tool__get { display: grid; gap: .75rem; }
.tool__dl { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
.tool__dl .btn { min-width: 15.5rem; justify-content: center; }
.tool__meta { color: var(--muted); font-size: var(--step--1); }
.tool__next { margin: 1rem 0 0; color: var(--cyan); font-weight: 600; font-size: var(--step--1); }
.btn--soon { color: var(--muted); border-style: dashed; cursor: default; }
.btn--soon:hover { border-color: var(--line); }
.tool__note { font-size: var(--step--1); color: var(--muted); margin-top: 1.25rem; max-width: 56ch; }
.tool__shots { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.tool__shots--1 { grid-template-columns: 1fr; }
.tool__shots--3 .tool__shot:first-child { grid-column: 1 / -1; }
.tool__shots--4 { grid-template-columns: repeat(3, 1fr); }
.tool__shots--4 .tool__shot:first-child { grid-column: 1 / -1; }
.tool__shots--4 .tool__cap { font-size: .72rem; }
.tool__shots--5, .tool__shots--6, .tool__shots--7 { grid-template-columns: repeat(3, 1fr); }
.tool__shots--5 .tool__shot:first-child, .tool__shots--6 .tool__shot:first-child, .tool__shots--7 .tool__shot:first-child { grid-column: 1 / -1; }
.tool__shots--5 .tool__cap, .tool__shots--6 .tool__cap, .tool__shots--7 .tool__cap { font-size: .72rem; }
.tool__shot { position: relative; display: block; padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--off); cursor: zoom-in; }
.tool__shot img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: cover; object-position: top left; transition: transform .5s ease; }
.tool__shot:hover img, .tool__shot:focus-visible img { transform: scale(1.03); }
.tool__shot:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.tool__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem .75rem .45rem; font-size: .8rem; color: var(--text); text-align: left;
  background: linear-gradient(transparent, rgba(3, 7, 20, .92)); }
@media (prefers-reduced-motion: reduce) { .tool__shot:hover img, .tool__shot:focus-visible img { transform: none; } }
@media (max-width: 960px) { .tool { grid-template-columns: 1fr; } .tool__shots { order: -1; } }

/* In development */
.dev { margin-top: clamp(3rem, 6vw, 4.5rem); }
.dev[hidden] { display: none; }
.dev__title { font-size: var(--step-1); margin-bottom: 1.25rem; }
.dev__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--gap); align-items: start; }
.devcard { display: flex; gap: 1rem; padding: 1.5rem; border: 1px dashed var(--line); border-radius: 8px; }
.devcard .tool__icon { width: 48px; height: 48px; border-radius: 11px; }
.devcard h4 { margin: 0 0 .5rem; font-size: var(--step-1); letter-spacing: -0.01em; }
.devcard p { color: var(--muted); margin: 0; font-size: var(--step--1); line-height: 1.6; }
.dev__more { align-self: center; margin: 0; color: var(--muted); font-size: var(--step-1); font-weight: 600; }

@media (max-width: 700px) {
  .projects__grid { grid-template-columns: 1fr; }
  .project.is-featured .project__media { aspect-ratio: 16 / 10; }
}

/* References – rolling credits */
.refs__intro { color: var(--muted); margin-top: -1.5rem; margin-bottom: 2.5rem; }
.refs__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .3em 1.1em;
  font-size: var(--step-2); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25;
}
.refs__list li { color: #b4c0d6; transition: color .25s; }
.refs__list li:hover { color: var(--cyan); }
.refs__list li::after { content: "/"; margin-left: 1.1em; color: var(--line); font-weight: 400; }
.refs__list li:last-child::after { content: none; }

/* Partners – a patch panel of names */
.partners__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.partner { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partner > span, .partner > a {
  display: flex; flex-direction: column; justify-content: center; gap: .25rem;
  min-height: 7.5rem; padding: 1.25rem 1.5rem; position: relative;
  text-decoration: none; color: inherit;
}
.partner > *::before { /* status LED */
  content: ""; position: absolute; top: 1rem; right: 1rem;
  width: 7px; height: 7px; border-radius: 2px; background: var(--line);
}
.partner > a::before { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.partner__name { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
.partner__logo {
  max-width: 70%; max-height: 52px; width: auto; height: auto; object-fit: contain;
  filter: brightness(0) invert(1); opacity: .85; transition: opacity .2s;
}
.partner.has-logo > * { align-items: flex-start; }
.partner.has-logo .partner__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.partner > a:hover .partner__logo { opacity: 1; }
.partner__link { color: var(--muted); font-size: var(--step--1); }
.partner > a:hover { background: var(--panel); }
.partner > a:hover .partner__name { color: var(--cyan); }

/* Contact */
.contact__lead { font-size: var(--step-1); color: var(--muted); max-width: 46ch; }
.contact__mail {
  display: inline-block; margin: 1.5rem 0 2rem;
  font-size: clamp(1.7rem, 1rem + 4vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05;
  text-decoration: none; word-break: break-word;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  border-bottom: 3px solid var(--magenta); padding-bottom: .1em;
}
.contact__mail:hover { border-color: var(--cyan); }
.contact__mail[hidden] { display: none; }
.contact__lead + .team, .contact__lead + .contact__mail[hidden] + .team { margin-top: 2rem; }
.team {
  list-style: none; margin: 0 0 2.5rem; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem var(--gap);
  max-width: 820px;
}
.team__person { display: flex; flex-direction: column; gap: .2rem; padding-left: 1rem; border-left: 2px solid var(--magenta); }
.team__name { font-size: var(--step-1); font-weight: 700; }
.team__role { color: var(--muted); }
.team__person a { color: var(--text); text-decoration-color: var(--line); text-underline-offset: 4px; width: fit-content; }
.team__person a:hover { text-decoration-color: var(--cyan); }
.contact__meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; color: var(--muted); }
.contact__meta a { color: var(--text); text-decoration-color: var(--magenta); text-underline-offset: 4px; }

/* Billing */
.billing { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); max-width: 820px; }
.billing[hidden] { display: none; }
.billing__title { font-size: var(--step-0); margin-bottom: 1rem; }
.billing__list { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem var(--gap); }
.billing__row dt { color: var(--muted); font-size: var(--step--1); margin-bottom: .2rem; }
.billing__row dd { margin: 0; font-variant-numeric: tabular-nums; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); font-size: var(--step--1); }
.foot__inner { display: flex; justify-content: space-between; gap: 1rem; }
.foot a { color: var(--muted); }

/* Lightbox */
.lightbox {
  width: min(1200px, 100% - 2rem); max-height: calc(100svh - 2rem);
  padding: 0; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); color: var(--text); overflow: auto;
}
.lightbox::backdrop { background: rgba(1, 3, 10, .85); }
.lightbox__media { position: relative; background: #000; }
.lightbox__media img { width: 100%; max-height: 70svh; object-fit: contain; }
.lightbox__nav {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(3, 7, 20, .7); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
.lightbox__nav:hover { background: var(--magenta); }
.lightbox__text { padding: 1.5rem clamp(1.25rem, 3vw, 2rem) 2rem; }
.lightbox__text h3 { font-size: var(--step-2); letter-spacing: -0.02em; }
.lightbox__meta, .lightbox__count { color: var(--muted); }
.lightbox__close {
  position: absolute; top: .75rem; right: .75rem; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(3, 7, 20, .8); color: #fff; font-size: 1.6rem; cursor: pointer;
}

/* Our playback rig – photo of our P80 rack, fading into the dark background */
.rig { position: relative; isolation: isolate; padding: 2.5rem 0 3.5rem; }
.rig::before {
  content: ""; position: absolute; top: -3rem; bottom: -2rem; right: calc((100% - 100vw) / 2); width: 68vw; z-index: -1;
  background: url(../img/rig-rack.jpg) center / cover no-repeat; opacity: .9; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 50%), linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 50%), linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  mask-composite: intersect;
}
.rig__item { background: linear-gradient(180deg, rgba(3,7,20,.8), rgba(3,7,20,.6)); padding: 1.25rem; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@media (max-width: 700px) { .rig::before { width: 100vw; opacity: .55; } }
/* LED Planner: 7 screenshots – the big 3D view and four more full width, the last two side by side */
.tool__shots--7 { grid-template-columns: 1fr 1fr; }
.tool__shots--7 .tool__shot:nth-child(-n+5) { grid-column: 1 / -1; }
.tool__shots--7 .tool__cap { font-size: .8rem; }
