/* Higginswerx — studio site
   Palette is drawn from broadcast color bars: the thing every TV spot passes through. */

:root {
  --night: #141a2c;        /* page background, deep broadcast navy */
  --night-2: #1c2440;      /* raised surfaces */
  --line: #2c365a;         /* hairlines on dark */
  --paper: #eef0f4;        /* primary text */
  --muted: #a7aec4;        /* secondary text */
  --signal: #e8c547;       /* bar yellow: primary actions */
  --signal-ink: #1a1606;   /* text on yellow */

  /* color bar set, used only in the bar band and small coding marks */
  --bar-gray: #bfbdb5;
  --bar-yellow: #e8c547;
  --bar-cyan: #4fb3bf;
  --bar-green: #5ea95e;
  --bar-magenta: #b04a8c;
  --bar-red: #c4473c;
  --bar-blue: #3352a8;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;

  --measure: 66ch;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

*,
*::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;
  background: var(--night);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--paper); text-decoration-color: var(--signal); text-underline-offset: 3px; }
a:hover { color: var(--signal); }

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

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

.skip { position: absolute; left: -999px; top: 0; background: var(--signal); color: var(--signal-ink); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- type ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.005em;
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 9vw, 7.25rem); }
h2 { font-size: clamp(2.25rem, 5.5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 700; line-height: 1.05; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; color: var(--paper); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(20, 26, 44, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.7rem; text-decoration: none; letter-spacing: 0.02em; display: flex; align-items: center; gap: 10px; }
.brand-mark { display: inline-flex; height: 18px; }
.brand-mark span { width: 5px; height: 100%; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { text-decoration: none; font-size: 0.98rem; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 6px; }
.nav .btn { color: var(--signal-ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--paper); padding: 8px 12px; border-radius: var(--radius); font: inherit; cursor: pointer; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--night); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; font-size: 1.1rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: 13px 22px; border-radius: var(--radius); border: 2px solid transparent;
  line-height: 1.2;
}
.btn-primary { background: var(--signal); color: var(--signal-ink); }
.btn-primary:hover { background: #f3d462; color: var(--signal-ink); }
.btn-ghost { border-color: var(--line); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); color: var(--paper); }
.btn-sm { padding: 8px 14px; font-size: 0.92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- color bar band (the signature element) ---------- */
.bars { display: grid; grid-template-columns: repeat(7, 1fr); height: 14px; }
.bars span:nth-child(1) { background: var(--bar-gray); }
.bars span:nth-child(2) { background: var(--bar-yellow); }
.bars span:nth-child(3) { background: var(--bar-cyan); }
.bars span:nth-child(4) { background: var(--bar-green); }
.bars span:nth-child(5) { background: var(--bar-magenta); }
.bars span:nth-child(6) { background: var(--bar-red); }
.bars span:nth-child(7) { background: var(--bar-blue); }

.hero { padding: clamp(56px, 10vw, 120px) 0 0; position: relative; overflow: hidden; }
.hero-tall-bars {
  position: absolute; inset: 0 0 auto auto; width: min(40vw, 560px); height: 100%;
  display: grid; grid-template-columns: repeat(7, 1fr); opacity: 0.30;
  pointer-events: none;
}
.hero-tall-bars span:nth-child(1) { background: var(--bar-gray); }
.hero-tall-bars span:nth-child(2) { background: var(--bar-yellow); }
.hero-tall-bars span:nth-child(3) { background: var(--bar-cyan); }
.hero-tall-bars span:nth-child(4) { background: var(--bar-green); }
.hero-tall-bars span:nth-child(5) { background: var(--bar-magenta); }
.hero-tall-bars span:nth-child(6) { background: var(--bar-red); }
.hero-tall-bars span:nth-child(7) { background: var(--bar-blue); }
.hero-tall-bars { mask-image: linear-gradient(to left, #000 30%, transparent); -webkit-mask-image: linear-gradient(to left, #000 30%, transparent); }

/* one orchestrated moment: the bars wipe in on load */
@media (prefers-reduced-motion: no-preference) {
  .hero-tall-bars span, .hero .bars span { transform-origin: top; animation: bar-in 700ms cubic-bezier(.2,.7,.2,1) both; }
  .hero .bars span { transform-origin: left; animation-name: bar-in-x; }
  .hero-tall-bars span:nth-child(2), .hero .bars span:nth-child(2) { animation-delay: 60ms; }
  .hero-tall-bars span:nth-child(3), .hero .bars span:nth-child(3) { animation-delay: 120ms; }
  .hero-tall-bars span:nth-child(4), .hero .bars span:nth-child(4) { animation-delay: 180ms; }
  .hero-tall-bars span:nth-child(5), .hero .bars span:nth-child(5) { animation-delay: 240ms; }
  .hero-tall-bars span:nth-child(6), .hero .bars span:nth-child(6) { animation-delay: 300ms; }
  .hero-tall-bars span:nth-child(7), .hero .bars span:nth-child(7) { animation-delay: 360ms; }
}
@keyframes bar-in { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes bar-in-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-copy { position: relative; padding-bottom: clamp(48px, 8vw, 96px); }
.hero-copy h1 { max-width: 14ch; line-height: 1; }
.hero-copy p.lede { max-width: 56ch; }
.hero .bars { height: 18px; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 40px; }

.reel { margin-top: 0; }
.reel .wrap { padding-top: clamp(32px, 5vw, 56px); }

/* ---------- video facade ---------- */
.video {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  background: var(--night-2); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-btn {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; cursor: pointer;
  background: var(--night-2) center / cover no-repeat; color: var(--paper);
  display: flex; align-items: flex-end; justify-content: flex-start; padding: 20px; font: inherit;
}
.video-btn::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; background: var(--signal);
  -webkit-mask: radial-gradient(circle, #000 70%, transparent 71%);
}
.video-btn::before {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: 1; margin: -13px 0 0 -7px;
  border-left: 24px solid var(--signal-ink); border-top: 14px solid transparent; border-bottom: 14px solid transparent;
}
.video-btn:hover::after { background: #f3d462; }
.video-label { position: relative; z-index: 1; background: rgba(20,26,44,.85); padding: 6px 10px; border-radius: 4px; font-size: 0.92rem; }
.video-empty {
  position: relative; height: 100%; display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--paper); font-family: var(--display); font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.8rem); letter-spacing: .04em;
  background: linear-gradient(90deg, var(--bar-gray) 0 14.28%, var(--bar-yellow) 0 28.57%, var(--bar-cyan) 0 42.85%, var(--bar-green) 0 57.14%, var(--bar-magenta) 0 71.42%, var(--bar-red) 0 85.71%, var(--bar-blue) 0);
}
.video-empty::before { content: ""; position: absolute; inset: 0; background: rgba(20,26,44,.72); }
.video-empty span { position: relative; background: var(--night); padding: 8px 16px; border-radius: 3px; }

/* ---------- service list (not cards: a run sheet) ---------- */
.runsheet { border-top: 1px solid var(--line); }
.runsheet-row {
  display: grid; grid-template-columns: 14px 1fr auto; gap: 20px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.runsheet-row .chip { width: 14px; height: 14px; border-radius: 2px; align-self: center; }
.runsheet-row h3 { margin: 0 0 4px; }
.runsheet-row p { margin: 0; color: var(--muted); }
.runsheet-row .price { font-family: var(--display); font-weight: 700; font-size: 1.6rem; white-space: nowrap; }
.runsheet-row .price small { display: block; font-family: var(--body); font-weight: 400; font-size: 0.82rem; color: var(--muted); text-align: right; }
@media (max-width: 640px) {
  .runsheet-row { grid-template-columns: 14px 1fr; }
  .runsheet-row .price { grid-column: 2; }
  .runsheet-row .price small { text-align: left; }
}

.c-gray { background: var(--bar-gray); } .c-yellow { background: var(--bar-yellow); }
.c-cyan { background: var(--bar-cyan); } .c-green { background: var(--bar-green); }
.c-magenta { background: var(--bar-magenta); } .c-red { background: var(--bar-red); }
.c-blue { background: var(--bar-blue); }

/* ---------- Roku feature block ---------- */
.feature {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

.tv {
  position: relative; aspect-ratio: 16/10; border-radius: 10px; background: #0d1120;
  border: 10px solid #232b4a; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
  display: grid; grid-template-rows: 1fr 22%;
}
.tv .bars { height: auto; border-radius: 2px 2px 0 0; overflow: hidden; }
.tv-lower { display: grid; grid-template-columns: repeat(4, 1fr) 2fr; }
.tv-lower span:nth-child(1) { background: var(--bar-blue); }
.tv-lower span:nth-child(2) { background: #0d1120; }
.tv-lower span:nth-child(3) { background: var(--bar-magenta); }
.tv-lower span:nth-child(4) { background: #0d1120; }
.tv-lower span:nth-child(5) { background: var(--paper); display: flex; align-items: center; justify-content: center; color: var(--night); font-family: var(--display); font-weight: 800; font-size: clamp(0.9rem, 2.2vw, 1.5rem); letter-spacing: .03em; }
.tv-stand { width: 34%; height: 12px; margin: 0 auto; background: #232b4a; border-radius: 0 0 8px 8px; }

/* ---------- steps (a real sequence, so it's numbered) ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { counter-increment: step; border-top: 3px solid var(--line); padding-top: 18px; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--signal); display: block; margin-bottom: 10px; }
.steps h3 { font-size: 1.45rem; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- packages ---------- */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.package { padding: 30px 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.package:last-child { border-right: 0; }
.package.featured { background: var(--night-2); }
.package .tag { display: inline-block; align-self: flex-start; font-size: 0.82rem; font-weight: 600; color: var(--signal-ink); background: var(--signal); border-radius: 3px; padding: 3px 8px; margin-bottom: 14px; }
.package .amount { font-family: var(--display); font-size: 3.2rem; font-weight: 800; line-height: 1; margin: 6px 0 4px; }
.package .from { color: var(--muted); font-size: 0.9rem; }
.package ul { padding-left: 1.1em; margin: 18px 0 24px; color: var(--paper); }
.package li { margin-bottom: 6px; }
.package .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) {
  .packages { grid-template-columns: 1fr; }
  .package { border-right: 0; border-bottom: 1px solid var(--line); }
  .package:last-child { border-bottom: 0; }
}

/* ---------- spec table ---------- */
.specs { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.specs th, .specs td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 500; width: 38%; }

/* ---------- work grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 28px; }
.work-item h3 { margin: 14px 0 2px; font-size: 1.55rem; }
.work-item p { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 720px) { .work-grid { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--signal); font-weight: 600; margin-bottom: 12px; display: block; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

.credit-strip { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 32px; color: var(--muted); }
.credit-strip strong { color: var(--paper); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--signal); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* ---------- policies ---------- */
.policy-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.policy-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.policy-list strong { display: block; margin-bottom: 2px; }
.policy-list span { color: var(--muted); }
@media (max-width: 700px) { .policy-list { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(56px, 8vw, 96px) 0; background: var(--night-2); border-top: 1px solid var(--line); }
.cta-band h2 { max-width: 16ch; }

/* ---------- forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.96rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--paper); background: var(--night-2);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--bar-cyan); outline: none; box-shadow: 0 0 0 3px rgba(79,179,191,.25); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.hidden { position: absolute !important; left: -9999px; }
.form-status { margin-top: 14px; min-height: 1.6em; }
.form-status.ok { color: var(--bar-green); }
.form-status.err { color: #ef7b70; }
.aside-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--night-2); }
.aside-box + .aside-box { margin-top: 18px; }
.aside-box h3 { font-size: 1.6rem; }

/* ---------- links page ---------- */
.links-page { min-height: 100vh; display: flex; flex-direction: column; }
.links-main { flex: 1; display: flex; align-items: center; padding: 48px 0; }
.links-card { width: 100%; max-width: 520px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.links-card h1 { font-size: clamp(3rem, 12vw, 4.5rem); }
.link-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.link-list a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--night-2); font-weight: 600; }
.link-list a:hover { border-color: var(--signal); color: var(--paper); }
.link-list a.primary { background: var(--signal); color: var(--signal-ink); border-color: var(--signal); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 0.94rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--paper); }
