/* Perceptible Technologies — site styles */
:root {
  --paper: #f3f6f6;
  --white: #ffffff;
  --ink: #000000;
  --text: #1f2a2c;
  --muted: #56656a;
  --line: #d6e0e1;
  --teal: #45c7cb;
  --teal-soft: #dff4f5;
  --teal-deep: #0a6b70;
  --tally: #e3362c;
  --screen: #0f1a1c;
  --screen-2: #18272a;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius-s: 4px;
  --radius-m: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  font-stretch: 100%;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 14px; }

/* ---------- Type scale (1.25 ratio, display uses expanded width) ---------- */
h1, h2, h3 { color: var(--ink); margin: 0 0 .5em; line-height: 1.08; }
h1, h2 { font-stretch: 125%; font-weight: 800; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 700; font-stretch: 110%; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: 1.25rem; line-height: 1.5; color: var(--text); max-width: 46ch; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand .mark { height: 34px; width: auto; }
.brand .word { height: 12px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.nav a {
  display: block; padding: 8px 12px; text-decoration: none; color: var(--text);
  font-weight: 500; font-size: .98rem; border-radius: var(--radius-s);
}
.nav a:hover { background: var(--teal-soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--teal); border-radius: 0; }
.nav .nav-cta a { background: var(--ink); color: var(--white); margin-left: 8px; border-radius: var(--radius-s); }
.nav .nav-cta a:hover { background: var(--teal-deep); color: var(--white); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 8px 12px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer;
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; }
  .nav a { padding: 12px 4px; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--teal); padding-left: 12px; }
  .nav .nav-cta a { margin: 8px 0 0; text-align: center; }
  .brand .word { height: 10px; }
}
@media (max-width: 420px) { .brand .word { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--radius-s);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink); background: var(--ink); color: var(--white);
}
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section.white { background: var(--white); }
.section.dark { background: var(--screen); color: #c9d6d8; }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: 48px; }

/* ---------- Home hero + multiviewer ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .4em; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } }

.mv {
  background: #070c0d; padding: 10px; border-radius: var(--radius-m);
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  box-shadow: 0 30px 60px -30px rgba(10, 60, 64, .55);
}
.tile {
  position: relative; display: block; text-decoration: none; color: #dfe9ea;
  background: var(--screen); border: 2px solid #22363a; border-radius: 3px; overflow: hidden;
}
.tile:hover { border-color: var(--teal); }
.tile:focus-visible { outline-offset: 0; }
.tile.on-air { border-color: var(--tally); }
.tile .screen { aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.umd {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: #050909; padding: 5px 9px; font-size: .78rem; font-stretch: 112%;
}
.umd .name { font-weight: 600; }
.umd .tc { font-variant-numeric: tabular-nums; color: #8fb3b6; font-size: .74rem; }
.tally-dot { width: 8px; height: 8px; border-radius: 50%; background: #3a4b4e; display: inline-block; margin-right: 6px; vertical-align: 1px; }
.on-air .tally-dot { background: var(--tally); }
.tile.rec .tally-dot { background: var(--tally); animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

.meters { position: absolute; right: 6px; top: 8px; bottom: 8px; display: flex; gap: 3px; }
.meters i {
  width: 4px; background: linear-gradient(to top, #2fbf71 0 70%, #e5c33b 70% 88%, var(--tally) 88%);
  transform-origin: bottom; animation: meter 1.1s ease-in-out infinite alternate; display: block; height: 100%;
}
.meters i:nth-child(2) { animation-duration: .8s; animation-delay: -.3s; }
@keyframes meter { from { transform: scaleY(.35); } to { transform: scaleY(.8); } }

/* Playout tile: playlist */
.pl { position: absolute; inset: 9% 16% 9% 7%; display: grid; gap: 5%; align-content: start; font-size: .62rem; }
.pl div { display: flex; justify-content: space-between; gap: 6px; padding: 3px 6px; background: var(--screen-2); border-radius: 2px; white-space: nowrap; overflow: hidden; }
.pl div.now { background: var(--tally); color: #fff; }
.pl div span:last-child { font-variant-numeric: tabular-nums; opacity: .8; }

/* Recording tile: hour segments */
.segs { position: absolute; left: 7%; right: 16%; bottom: 14%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.segs b { height: 26px; background: #234246; border-radius: 2px; }
.segs b.cur { background: linear-gradient(90deg, var(--teal) var(--p, 40%), #234246 var(--p, 40%)); }
.wave { position: absolute; left: 7%; right: 16%; top: 16%; height: 40%; display: flex; align-items: center; gap: 2px; }
.wave i { flex: 1; background: var(--teal); opacity: .75; border-radius: 1px; }

/* Captions tile */
.cap-pic { position: absolute; inset: 0; background: radial-gradient(ellipse at 40% 35%, #2a4a4e 0, #12201f 60%); }
.cap-pic::after { content: ""; position: absolute; left: 34%; top: 18%; width: 22%; height: 52%; border-radius: 45% 45% 10% 10%; background: #31585c; }
.cc {
  position: absolute; left: 10%; right: 18%; bottom: 9%;
  font-family: "Courier New", monospace; font-size: .66rem; line-height: 1.35; color: #fff;
}
.cc span { background: #000; padding: 1px 4px; display: inline; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.cc .cc-line { display: block; margin-top: 2px; background: none; padding: 0; }

/* Graphics tile */
.gfx-pic { position: absolute; inset: 0; background: linear-gradient(160deg, #1d3a3d, #0c1516 70%); }
.l3 { position: absolute; left: 7%; bottom: 20%; width: 62%; }
.l3 .t { background: var(--white); color: var(--ink); font-weight: 800; font-stretch: 120%; font-size: .72rem; padding: 4px 8px; }
.l3 .s { background: var(--teal); color: #032; font-size: .58rem; padding: 2px 8px; width: 80%; }
.bug { position: absolute; right: 18%; top: 10%; font-weight: 800; font-size: .6rem; color: #fff; opacity: .8; font-stretch: 125%; }
.ticker { position: absolute; left: 0; right: 0; bottom: 0; height: 13%; background: var(--teal-deep); color: #fff; font-size: .55rem; overflow: hidden; display: flex; align-items: center; }
.ticker span { white-space: nowrap; padding-left: 100%; animation: crawl 14s linear infinite; }
@keyframes crawl { to { transform: translateX(-100%); } }
.clock { position: absolute; right: 18%; top: 10%; font-size: .6rem; font-variant-numeric: tabular-nums; background: rgba(0,0,0,.5); padding: 2px 5px; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .meters i, .ticker span, .tile.rec .tally-dot { animation: none; }
  .ticker span { padding-left: 8px; }
}

/* ---------- Signal chain (home) ---------- */
.chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.chain::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 27px; height: 3px; background: var(--teal); }
.chain li { position: relative; padding: 0 18px; text-align: center; }
.chain p { margin-inline: auto; }
.chain .node {
  width: 56px; height: 56px; border-radius: 50%; background: var(--white); border: 3px solid var(--teal);
  display: grid; place-items: center; margin: 0 auto 22px; position: relative;
}
.chain .node svg { width: 26px; height: 26px; stroke: var(--ink); fill: none; stroke-width: 1.8; }
.chain h3 a { color: var(--ink); text-decoration: none; }
.chain h3 a:hover { color: var(--teal-deep); text-decoration: underline; }
.chain p { font-size: .98rem; color: var(--muted); }
.chain .more { font-weight: 600; font-size: .95rem; }
@media (max-width: 860px) {
  .chain { grid-template-columns: 1fr; gap: 8px; }
  .chain::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 3px; height: auto; }
  .chain li { display: grid; grid-template-columns: 56px 1fr; gap: 0 20px; padding: 0 0 20px; text-align: left; }
  .chain .node { margin: 0; grid-row: span 3; }
}

/* ---------- Value points ---------- */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.points > div { border-top: 3px solid var(--ink); padding-top: 22px; }
.points p { color: var(--muted); }
@media (max-width: 860px) { .points { grid-template-columns: 1fr; } }

/* ---------- Image slots ---------- */
.photo {
  position: relative; background: repeating-linear-gradient(135deg, #e3ebec 0 12px, #edf2f3 12px 24px);
  border-radius: var(--radius-m); overflow: hidden; min-height: 220px;
  display: grid; place-items: center; color: var(--muted); font-size: .9rem; text-align: center;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo .slot { padding: 16px; }
.photo .slot code { display: block; color: var(--teal-deep); font-size: .85rem; margin-top: 4px; }
.dark .photo { background: repeating-linear-gradient(135deg, #172628 0 12px, #1b2c2f 12px 24px); color: #8aa3a6; }

.band { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.band .photo { aspect-ratio: auto; min-height: 300px; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } .band .photo { min-height: 200px; } }

/* ---------- CTA strip ---------- */
.cta { background: var(--teal); color: var(--ink); }
.cta .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding-block: clamp(56px, 7vw, 88px); }
.cta h2 { margin-bottom: .3em; }
.cta p { margin: 0; color: #0b2f31; }
.cta .contact-lines { display: grid; gap: 10px; justify-items: start; }
.cta .contact-lines a {
  font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 700; font-stretch: 112%; color: var(--ink); text-decoration: none;
  border-bottom: 2px solid var(--ink);
}
.cta .contact-lines a:hover { border-color: var(--white); }
@media (max-width: 760px) { .cta .wrap { grid-template-columns: 1fr; } }

/* ---------- Product page ---------- */
.p-hero { background: var(--white); border-bottom: 1px solid var(--line); }
.p-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; padding-block: clamp(48px, 7vw, 88px); }
.p-hero .kicker { color: var(--teal-deep); font-weight: 600; margin-bottom: 12px; display: block; text-decoration: none; }
.p-hero .photo { min-height: 340px; }
@media (max-width: 900px) { .p-hero .wrap { grid-template-columns: 1fr; } .p-hero .photo { min-height: 220px; } }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; }
.features > div { padding-left: 20px; border-left: 3px solid var(--teal); }
.features h3 { margin-bottom: .35em; }
.features p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 22px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.steps li::before {
  content: counter(step); width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--teal);
  display: grid; place-items: center; font-weight: 700; color: var(--white);
}
.steps strong { color: var(--white); display: block; font-size: 1.08rem; }
.steps span { color: #a9bcbf; }

.specs { width: 100%; border-collapse: collapse; font-size: .98rem; }
.specs th, .specs td { text-align: left; padding: 14px 0; border-bottom: 1px solid #2a3d40; vertical-align: top; }
.specs th { color: var(--white); font-weight: 600; width: 38%; padding-right: 16px; }
.specs td { color: #c9d6d8; }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related a {
  display: block; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m);
  text-decoration: none; color: var(--text);
}
.related a:hover { border-color: var(--teal); }
.related strong { display: block; color: var(--ink); font-size: 1.1rem; margin-bottom: 4px; }
.related span { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .related { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.facts div { background: var(--white); padding: 28px; }
.facts strong { display: block; font-size: 1.2rem; color: var(--ink); font-stretch: 115%; margin-bottom: 6px; }
.facts span { color: var(--muted); font-size: .98rem; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); }
.contact-card { display: grid; gap: 20px; }
.contact-card a.big { display: block; font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 700; font-stretch: 112%; color: var(--ink); text-decoration: none; word-break: break-word; }
.contact-card a.big:hover { color: var(--teal-deep); }
.contact-card .item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-card .item span { display: block; color: var(--muted); font-size: .95rem; margin-bottom: 4px; }
form.contact { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; color: var(--ink); font-size: .98rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border: 1.5px solid #b9c7c9; border-radius: var(--radius-s); background: var(--white); color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-deep); box-shadow: 0 0 0 3px var(--teal-soft); }
.field textarea { min-height: 140px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #a9b6b8; padding-block: 64px 32px; font-size: .96rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h3 { color: var(--white); font-size: 1rem; font-stretch: 100%; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #d7e1e2; text-decoration: none; }
.site-footer a:hover { color: var(--teal); text-decoration: underline; }
.site-footer .f-brand img.mark { height: 40px; width: auto; margin-bottom: 14px; }
.site-footer .f-brand img.word { height: 12px; width: auto; margin-bottom: 16px; }
.site-footer .legal { border-top: 1px solid #263234; margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #7f8e90; font-size: .88rem; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }

@media (max-width: 600px) {
  .umd .tc { display: none; }
  .umd { font-size: .72rem; padding: 4px 7px; }
  .mv { gap: 6px; padding: 6px; }
}
