/* MHGG Studios — video production site
   Design idea: the page is an editing timeline. Track colors (blue, teal, violet, amber)
   come from the way editing software color-codes clips; the red tally light marks every action. */

:root {
  --studio: #e6e9ef;
  --paper: #f7f8fa;
  --ink: #12141c;
  --ink-soft: #444a5a;
  --blue: #2f5bff;
  --teal: #0b7a73;
  --violet: #7048e8;
  --amber: #e39b0b;
  --tally: #d81e24;
  --tally-dark: #b5161b;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--studio);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-underline-offset: 0.18em; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  background: var(--ink); color: #fff; padding: 10px 16px; font-family: var(--display); font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.012em;
  margin: 0;
}
h1 { font-size: clamp(2.5rem, 7.2vw, 5.4rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: 1.4rem; line-height: 1.15; }

p { margin: 0 0 1em; max-width: 62ch; }
.lead { font-size: 1.3rem; line-height: 1.55; color: var(--ink-soft); max-width: 54ch; }
h2 + .lead { margin-top: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-stretch: 105%;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  text-decoration: none;
  padding: 18px 28px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-tally { background: var(--tally); border-color: var(--tally); color: #fff; }
.btn-tally:hover { background: var(--tally-dark); border-color: var(--tally-dark); color: #fff; }
.btn-sm { padding: 12px 18px; font-size: 0.95rem; }

/* ---------- header ---------- */
.site-header { background: var(--studio); border-bottom: 2px solid var(--ink); position: relative; z-index: 10; }
.bar { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-stretch: 118%; font-weight: 800; font-size: 1.2rem;
  text-decoration: none; letter-spacing: -0.01em;
}
.rec { width: 14px; height: 14px; border-radius: 50%; background: var(--tally); flex: none; }
.nav { display: flex; gap: 26px; margin-left: auto; font-family: var(--display); font-weight: 600; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--tally); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 0; }
.hero h1 { max-width: 14ch; }
.hero .lead { margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 64px; }

/* ---------- timeline graphic ---------- */
.timeline { background: var(--paper); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 44px 0 22px; overflow: hidden; }
.tl-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.tl-stage { position: relative; margin-left: 36px; }
.tl-ruler {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-weight: 500; font-size: 0.7rem; color: var(--ink-soft);
  padding-bottom: 14px; position: relative;
}
.tl-ruler::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: repeating-linear-gradient(90deg, var(--ink-soft) 0 1px, transparent 1px 4%);
  opacity: 0.55;
}
.tl-track { position: relative; height: 46px; margin-top: 8px; background: rgba(18, 20, 28, 0.045); border-radius: 3px; }
.tl-track.tall { height: 58px; }
.tl-label {
  position: absolute; left: -36px; top: 0; bottom: 0; width: 30px;
  display: flex; align-items: center;
  font-family: var(--mono); font-size: 0.7rem; font-weight: 500; color: var(--ink-soft);
}
.clip {
  position: absolute; top: 3px; bottom: 3px;
  display: flex; align-items: center; padding: 0 12px;
  border-radius: 3px; color: #fff; overflow: hidden; white-space: nowrap;
  font-family: var(--display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.01em;
}
.c-blue { background: var(--blue); }
.c-teal { background: var(--teal); }
.c-violet { background: var(--violet); }
.c-amber { background: var(--amber); color: var(--ink); }
.wave { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; background: var(--teal); }
.wave i { display: block; width: 2px; background: rgba(255, 255, 255, 0.78); border-radius: 1px; }
.playhead {
  position: absolute; top: -4px; bottom: -6px; left: 64%;
  width: 2px; background: var(--tally); z-index: 2; pointer-events: none;
}
.playhead::before {
  content: ""; position: absolute; top: 0; left: -6px;
  border: 7px solid transparent; border-top-color: var(--tally); border-bottom: 0;
}
.playhead span {
  position: absolute; top: -26px; left: 10px; white-space: nowrap;
  font-family: var(--mono); font-weight: 500; font-size: 0.78rem;
  background: var(--ink); color: #fff; padding: 3px 8px; border-radius: 3px;
}

/* ---------- bands ---------- */
.band { padding: 88px 0; }
.band-dark { background: var(--ink); color: #f1f3f8; }
.band-dark .lead { color: #c2c7d4; }
.band-paper { background: var(--paper); }
.band-head { margin-bottom: 48px; }
.band-head p { margin-top: 18px; }

/* ---------- service rows ---------- */
.rows { border-top: 2px solid var(--ink); }
.row {
  display: grid; grid-template-columns: 14px minmax(0, 1fr) minmax(0, 1.5fr); gap: 0 32px;
  padding: 28px 0; border-bottom: 2px solid var(--ink); align-items: start;
}
.row .chip { width: 14px; height: 100%; min-height: 40px; border-radius: 2px; }
.row p { margin: 0; color: var(--ink-soft); }
.row a { font-family: var(--display); font-weight: 700; }
.chip.c-blue { background: var(--blue); }
.chip.c-teal { background: var(--teal); }
.chip.c-violet { background: var(--violet); }
.chip.c-amber { background: var(--amber); }

/* ---------- process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { border-top: 6px solid var(--ink); padding-top: 16px; counter-increment: step; }
.steps li:nth-child(1) { border-top-color: var(--violet); }
.steps li:nth-child(2) { border-top-color: var(--blue); }
.steps li:nth-child(3) { border-top-color: var(--amber); }
.steps li:nth-child(4) { border-top-color: var(--teal); }
.steps h3::before { content: counter(step) ". "; }
.steps p { margin: 10px 0 0; color: var(--ink-soft); }

/* ---------- work frames ---------- */
.frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.frame { margin: 0; }
.frame-box {
  position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: 4px; overflow: hidden;
  display: flex; align-items: flex-end; padding: 12px 14px;
}
.frame-box::before {
  content: ""; position: absolute; left: 50%; top: 46%; transform: translate(-40%, -50%);
  border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent rgba(255, 255, 255, 0.85);
}
.frame-tag {
  position: relative; font-family: var(--mono); font-weight: 500; font-size: 0.7rem; color: #c2c7d4;
}
.frame figcaption { margin-top: 12px; font-family: var(--display); font-weight: 700; line-height: 1.3; }
.frame figcaption span { display: block; font-family: var(--body); font-weight: 400; color: var(--ink-soft); font-size: 0.95rem; }
.more { margin-top: 36px; }

/* ---------- forms ---------- */
.quote-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full, .quote-form .full { grid-column: 1 / -1; }
label { font-family: var(--display); font-weight: 700; font-size: 0.98rem; }
input, select, textarea {
  font: inherit; font-size: 1.05rem; color: var(--ink);
  background: #fff; border: 2px solid var(--ink); border-radius: 4px; padding: 14px 14px; width: 100%;
}
textarea { min-height: 150px; resize: vertical; }
.band-dark input, .band-dark select, .band-dark textarea { border-color: #fff; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { margin: 0; min-height: 1.6em; font-family: var(--display); font-weight: 600; }
.band-dark .form-status { color: #fff; }
.form-note { font-size: 0.95rem; color: #c2c7d4; margin: 0; }

/* ---------- page heads and prose ---------- */
.page-head { padding: 72px 0 56px; border-bottom: 2px solid var(--ink); }
.page-head .lead { margin-top: 24px; }
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.svc { padding: 56px 0; border-bottom: 2px solid var(--ink); display: grid; grid-template-columns: 14px minmax(0, 1fr) minmax(0, 1.3fr); gap: 0 32px; }
.svc .chip { width: 14px; border-radius: 2px; }
.svc ul { margin: 0 0 24px; padding-left: 1.2em; }
.svc li { margin-bottom: 6px; }
.svc h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.svc .who { color: var(--ink-soft); margin-top: 14px; }
.contact-card { border-top: 6px solid var(--tally); padding-top: 18px; }
.contact-card p { margin: 0 0 8px; }
.contact-card a { font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.placeholder-box { border: 2px dashed var(--ink-soft); padding: 22px; border-radius: 4px; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #dfe3ec; padding: 56px 0 28px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot p { margin: 0 0 6px; }
.foot a { display: block; width: fit-content; padding: 3px 0; }
.foot-h { font-family: var(--display); font-weight: 700; color: #fff; margin-bottom: 8px !important; }
.legal { margin-top: 40px; font-size: 0.9rem; color: #9aa1b3; }
.legal p { margin: 0; }
.site-footer .brand { color: #fff; margin-bottom: 10px; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .band { padding: 64px 0; }
  .row { grid-template-columns: 14px minmax(0, 1fr); }
  .row p { grid-column: 2; margin-top: 10px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frames { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .svc { grid-template-columns: 14px minmax(0, 1fr); }
  .svc > :last-child { grid-column: 2; margin-top: 18px; }
  .foot { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 1.05rem; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 20px; }
  .bar .btn-sm { margin-left: auto; }
  .hero { padding-top: 48px; }
  .hero-actions { margin-bottom: 44px; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
  .quote-form { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .clip { font-size: 0.7rem; padding: 0 6px; }
  .tl-track { height: 38px; }
  .tl-track.tall { height: 44px; }
  .tl-label { display: none; }
  .tl-stage { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
