/* ==========================================================================
   DisplayTech landing page
   --------------------------------------------------------------------------
   Dark-first by decision, not by default: the product is an emissive light
   technology, the hero footage is a night street, and a light page would fight
   both. Colour on this page comes from the film and the orange accent only.

   Tokens below are the brand's own (see archive/brand-style.displaytech.md).
   The accent is split into a FILL role and a TEXT role because #ea4a24 only
   reaches 3.82:1 on white and fails AA for body copy; #ff8a5c is the same hue
   lifted to 7.68:1 on the dark substrate.
   ========================================================================== */

:root {
  /* surface */
  --bg: #17171d;
  --bg-deep: #101015;
  --bg-subtle: #1f1f26;
  --line: #2e3244;

  /* ink */
  --fg: #f4f4f5;
  --fg-muted: #bcbec0;
  --fg-dim: #8b8d92;

  /* accent: fill vs text */
  --accent: #ea4a24;
  --accent-text: #ff8a5c;
  --accent-soft: rgba(234, 74, 36, 0.12);
  --focus: #ff8a5c;

  /* shape */
  --grid: 8px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  /* type */
  --font-display: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --step-h1: clamp(2.9rem, 1.35rem + 6.4vw, 6rem);
  --step-h2: clamp(2rem, 1.35rem + 2.6vw, 3.15rem);
  --step-h3: clamp(1.15rem, 1.02rem + 0.5vw, 1.4rem);
  --step-lede: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);

  --wrap: 1220px;
  --pad: clamp(1.25rem, 4vw, 3rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-text);
  text-decoration: none;
}

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

p {
  margin: 0;
}

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

::selection {
  background: var(--accent);
  color: #fff;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ------------------------------------------------------------- eyebrow -- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0;
}

.eyebrow--muted {
  color: var(--fg-dim);
}

/* -------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn--solid {
  background: var(--accent);
  color: #fff;
}
.btn--solid:hover {
  background: #d63f1c;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--fg);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--block {
  width: 100%;
}

.btn:active {
  transform: translateY(1px);
}

/* --------------------------------------------------------------- header -- */
.head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

/* Gradient only while the header floats over the film, so the logo stays
   readable against a bright frame without putting a bar across the hero. */
.head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 14, 0.75), rgba(10, 10, 14, 0));
  opacity: 1;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.head.is-stuck {
  background: rgba(23, 23, 29, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.head.is-stuck::before {
  opacity: 0;
}

.head__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0.9rem var(--pad);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg);
  flex: 0 0 auto;
}
.brand__mark {
  width: 34px;
  height: auto;
}
.brand__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}
.nav a {
  color: var(--fg-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.nav a:hover {
  color: var(--fg);
}

.head__call {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}
.head__call-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.head__call-num {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fg);
}

@media (max-width: 860px) {
  .nav,
  .head__call-label {
    display: none;
  }
  .head__call {
    margin-left: auto;
    padding-left: 0;
    border-left: 0;
  }
}

/* ----------------------------------------------------------------- hero --
   The film is the entire hero. No headline, no buttons, no caption: the only
   job of this block is to present the animation full-bleed. */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  /* A 32x18 blurred frame, 0.1 KB, so the hero is never an empty box while the
     real poster decodes. */
  background-color: var(--bg-deep);
  background-image: url("/assets/img/hero-lqip.webp");
  background-size: cover;
  background-position: 46% 50%;
}

/* Base layer. Always painted, whatever the video decides to do. */
.hero__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 50%;
  z-index: -4;
}

.hero__film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The sign sits left of centre in the plate; biasing the crop keeps it in
     frame when a narrow viewport forces a heavy centre crop. */
  object-position: 46% 50%;
  z-index: -3;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.hero__film.is-live {
  opacity: 1;
}

/* Scrim. With no copy over the film this has two small jobs only: blend the
   bottom edge of the video into the page colour, and hold the header legible
   against a bright frame. The footage itself is left alone. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      to top,
      var(--bg) 0%,
      rgba(23, 23, 29, 0.62) 4%,
      rgba(23, 23, 29, 0.18) 13%,
      rgba(23, 23, 29, 0) 26%
    ),
    linear-gradient(
      to bottom,
      rgba(10, 10, 14, 0.62) 0%,
      rgba(10, 10, 14, 0.16) 9%,
      rgba(10, 10, 14, 0) 18%
    );
}

/* Available to search engines and screen readers, invisible to everyone else.
   The page keeps exactly one <h1> even though the design shows no headline. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 860px) {
  /* Let the next section peek in, which is the only scroll affordance the
     hero has now that the caption and buttons are gone. */
  .hero {
    min-height: 86svh;
  }
}

/* --------------------------------------------------------------- bands -- */
.band {
  padding-block: clamp(4rem, 9vh, 7.5rem);
  border-top: 1px solid var(--line);
}
.band--deep {
  background: var(--bg-deep);
}
.band--contact {
  background:
    radial-gradient(120% 90% at 12% 0%, var(--accent-soft), transparent 60%),
    var(--bg-deep);
}

.h2 {
  font-size: var(--step-h2);
  margin-top: 0.9rem;
  max-width: 20ch;
  text-wrap: balance;
}

.lede {
  font-size: var(--step-lede);
  color: var(--fg-muted);
  max-width: 54ch;
  margin-top: 1.1rem;
}

.band__h {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 2.5rem;
}

/* ------------------------------------------------------------- register -- */
.register {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
}

.register li {
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  color: var(--fg-muted);
  transition:
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}
.register li:hover {
  border-color: #454b63;
  color: var(--fg);
}

/* The four networks that carry real weight get the accent rule. */
.register li[data-w="1"] {
  color: var(--fg);
  font-weight: 600;
  border-color: rgba(234, 74, 36, 0.4);
  background: var(--accent-soft);
}

/* ------------------------------------------------------------ schedule -- */
.sched {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.sched li {
  padding: 2rem 1.75rem 2rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

/* Vertical rules only between columns, and only where they separate content. */
@media (min-width: 700px) {
  .sched li:not(:nth-child(2n)) {
    border-right: 1px solid var(--line);
    padding-right: 2.5rem;
  }
  .sched li:nth-child(2n) {
    padding-left: 2.5rem;
  }
}

.sched__no {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent-text);
  margin-bottom: 0.9rem;
}

.sched h3 {
  font-size: var(--step-h3);
  margin-bottom: 0.6rem;
}

.sched p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  max-width: 42ch;
}

/* ---------------------------------------------------------------- work -- */
.work {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
}

.work__i {
  grid-column: span 2;
  margin: 0;
}

.work__i--wide {
  grid-column: span 3;
}

@media (max-width: 900px) {
  .work {
    grid-template-columns: repeat(2, 1fr);
  }
  .work__i,
  .work__i--wide {
    grid-column: span 1;
  }
}

@media (max-width: 560px) {
  .work {
    grid-template-columns: 1fr;
  }
}

.work__i img {
  width: 100%;
  aspect-ratio: 750 / 547;
  object-fit: cover;
  border-radius: var(--r-md);
  /* One grade across a mixed 750px set so it reads as a system. Colour comes
     back on hover, which is also the affordance. */
  filter: saturate(0.72) contrast(1.04) brightness(0.95);
  transition:
    filter 0.45s var(--ease),
    transform 0.45s var(--ease);
}

.work__i:hover img,
.work__i:focus-within img {
  filter: saturate(1.06) contrast(1.04) brightness(1.04);
  transform: translateY(-3px);
}

.work__cap {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--fg-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.work__cap span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  padding-top: 0.15rem;
}

/* ------------------------------------------------------------- reasons -- */
.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 2.5rem 3rem;
  margin-top: 3rem;
}

.reason h3 {
  font-size: var(--step-h3);
  margin-bottom: 0.65rem;
  max-width: 22ch;
}

.reason p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  max-width: 46ch;
}

/* ------------------------------------------------------------- contact -- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

@media (max-width: 900px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

.details {
  margin: 2.5rem 0 0;
  display: grid;
  gap: 1.1rem;
}

.details div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.details dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding-top: 0.25rem;
}

.details dd {
  margin: 0;
  font-size: 1rem;
}
.details dd a {
  color: var(--fg);
  border-bottom: 1px solid rgba(255, 138, 92, 0.4);
}
.details dd a:hover {
  color: var(--accent-text);
  border-bottom-color: var(--accent-text);
}

@media (max-width: 520px) {
  .details div {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

/* ---------------------------------------------------------------- form -- */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

@media (max-width: 560px) {
  .form {
    grid-template-columns: 1fr;
  }
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--fg-muted);
}

.opt {
  color: var(--fg-dim);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

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

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #454b63;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #14141a;
}

.field [aria-invalid="true"] {
  border-color: #ff6b6b;
}

.err {
  font-size: 0.82rem;
  color: #ff9b9b;
}

.status {
  min-height: 1.4rem;
  font-size: 0.9rem;
  color: var(--fg-muted);
  text-align: center;
}
.status[data-state="ok"] {
  color: #7ee0a8;
}
.status[data-state="err"] {
  color: #ff9b9b;
}

/* -------------------------------------------------------------- footer -- */
.foot {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding-top: clamp(3rem, 6vh, 4.5rem);
}

.foot__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

@media (max-width: 820px) {
  .foot__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.foot__brand img {
  width: 150px;
  height: auto;
  margin-bottom: 1rem;
}

.foot__brand p {
  color: var(--fg-dim);
  font-size: 0.9rem;
  max-width: 30ch;
}

.foot__nav,
.foot__addr {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  font-style: normal;
}

.foot__nav a,
.foot__addr a {
  color: var(--fg-muted);
  font-size: 0.92rem;
}
.foot__nav a:hover,
.foot__addr a:hover {
  color: var(--accent-text);
}

.foot__addr span {
  color: var(--fg-dim);
  font-size: 0.92rem;
}

.foot__base {
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}

.foot__base p {
  font-size: 0.82rem;
  color: var(--fg-dim);
}

/* ---------------------------------------------------- reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero__film {
    display: none; /* the .hero__still image carries the hero instead */
  }
}
