/* ============================================================
   DNP — David Nuckolls Productions
   Visual language: the broadcast rundown.
   Colors come from the DNP logo ring (red / green / blue) —
   which is also, conveniently, the color space of video itself.
   ============================================================ */

:root {
  --ink:        #17161A;   /* built from the logo black #231F20 */
  --ink-2:      #211F25;   /* raised surface */
  --ink-3:      #35323C;   /* borders on dark */
  --paper:      #F6F5F2;   /* page */
  --paper-2:    #EAE8E3;   /* recessed */
  --rule:       #D6D3CC;

  --r:          #B8322E;   /* DNP red    — sampled from the brand deck */
  --g:          #45A347;   /* DNP green  — sampled from the brand deck */
  --b:          #2E3EB2;   /* DNP blue   — sampled from the brand deck */
  --logo-black: #231F20;   /* DNP black  — sampled from the brand deck */

  --text:       #231F20;
  --text-dim:   #63606A;
  --text-invert:#F6F5F2;
  --dim-invert: #A19DA8;

  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body:    'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gut: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

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

/* ---------- type ---------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 7.2vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); letter-spacing: -0.015em; }

p { margin: 0 0 1.1em; max-width: 66ch; }
p:last-child { margin-bottom: 0; }

.lede { font-size: clamp(1.1rem, 1.9vw, 1.32rem); line-height: 1.5; color: var(--text-dim); }

/* The eyebrow is a slate — the card a camera shoots before a take. */
.slate {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.4rem;
}
.slate::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--r);
  flex: none;
}
.on-dark .slate { color: var(--dim-invert); }

/* ---------- header ---------- */

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,245,242,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 66px;
}
.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.02em;
  text-decoration: none;
  display: flex; align-items: center; gap: .6rem;
}
.brand-ring {
  width: 15px; height: 15px; border-radius: 50%;
  background: conic-gradient(var(--r) 0 33.3%, var(--g) 33.3% 66.6%, var(--b) 66.6% 100%);
  -webkit-mask: radial-gradient(circle, transparent 46%, #000 47%);
          mask: radial-gradient(circle, transparent 46%, #000 47%);
  flex: none;
}
.nav { display: flex; gap: clamp(.9rem, 2.4vw, 2rem); align-items: center; }
.nav a {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
}
.nav a:hover, .nav a:focus-visible { color: var(--text); border-bottom-color: var(--r); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  background: var(--ink);
  color: var(--text-invert);
  padding: clamp(3.5rem, 9vw, 7rem) 0 0;
  overflow: hidden;
}
.hero h1 { color: var(--text-invert); max-width: 16ch; }
.hero .lede { color: var(--dim-invert); margin-top: 1.6rem; max-width: 54ch; }

/* SIGNATURE: the rundown strip — a broadcast day rendered as color blocks,
   with a playhead sweeping across it. This is the thing DNP actually sells. */
.rundown {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--ink-3);
  padding-top: 1.1rem;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.rundown-head {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--dim-invert); margin-bottom: .7rem;
}
.rundown-track {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 3fr 1.6fr 2.2fr 1.6fr 1.2fr;
  gap: 3px;
  height: 62px;
}
.blk {
  display: flex; align-items: center; padding: 0 .7rem;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .09em;
  text-transform: uppercase; color: #fff; white-space: nowrap;
  overflow: hidden;
  transform-origin: left center;
  animation: blockIn .5s cubic-bezier(.2,.7,.3,1) backwards;
}
.blk:nth-child(1){ background:#45A347; animation-delay:.05s }
.blk:nth-child(2){ background:#B8322E; animation-delay:.15s }
.blk:nth-child(3){ background:#45A347; animation-delay:.25s }
.blk:nth-child(4){ background:#2E3EB2; animation-delay:.35s }
.blk:nth-child(5){ background:#45A347; animation-delay:.45s }
.blk:nth-child(6){ background:#45A347; animation-delay:.55s }
@keyframes blockIn { from { transform: scaleX(.02); opacity: 0 } to { transform: scaleX(1); opacity: 1 } }

.playhead {
  position: absolute; top: -6px; bottom: -6px; width: 2px;
  background: #FF3B30;
  box-shadow: 0 0 12px rgba(255,59,48,.8);
  animation: sweep 14s linear 1.1s infinite;
}
.playhead::before {
  content: ""; position: absolute; top: -4px; left: -3px;
  width: 8px; height: 8px; border-radius: 50%; background: #FF3B30;
}
@keyframes sweep { from { left: 0 } to { left: 100% } }
@media (prefers-reduced-motion: reduce) { .playhead { display: none } }

/* ---------- slate / stat row ---------- */

.readout {
  background: var(--ink-2);
  border-top: 1px solid var(--ink-3);
  color: var(--text-invert);
  padding: clamp(2rem, 4vw, 3rem) 0;
}
.readout-grid {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  background: var(--ink-3);
  border: 1px solid var(--ink-3);
}
.readout-cell { background: var(--ink-2); padding: 1.4rem 1.3rem; }
.readout-cell .num {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -.03em;
  line-height: 1; display: block;
}
.readout-cell .lbl {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--dim-invert);
  margin-top: .65rem; display: block; line-height: 1.5;
}
.readout-cell:nth-child(1) .num { color: #E86259 }
.readout-cell:nth-child(2) .num { color: #63C765 }
.readout-cell:nth-child(3) .num { color: #7C8AE0 }
.readout-cell:nth-child(4) .num { color: #FFFFFF }

/* ---------- sections ---------- */

section { padding: clamp(3.2rem, 8vw, 6rem) 0; }
section.tight { padding: clamp(2.2rem, 5vw, 3.5rem) 0; }
.on-dark { background: var(--ink); color: var(--text-invert); }
.on-dark h2, .on-dark h3 { color: var(--text-invert); }
.on-dark .lede { color: var(--dim-invert); }
.on-paper-2 { background: var(--paper-2); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }

/* ---------- capability blocks (rundown cards) ---------- */

.blocks { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .blocks { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; } }

.block {
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 5px solid var(--slot, var(--b));
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.block:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(14,17,22,.09); }

.block .frame {
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.block .frame img { width: 100%; height: 100%; object-fit: cover; }
.block .frame video { width: 100%; height: 100%; object-fit: cover; }
.block .frame iframe { width: 100%; height: 100%; border: 0; }

/* Placeholder state — reads as a slate, not a broken image. */
.frame.empty::after {
  content: attr(data-slot);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-dim);
  text-align: center; padding: 1rem; max-width: 80%;
}
.frame.empty {
  background-image: repeating-linear-gradient(
    45deg, transparent 0 12px, rgba(0,0,0,.028) 12px 24px);
}

.block-body { padding: 1.35rem 1.4rem 1.5rem; }
.block-body h3 { margin-bottom: .6rem; }
.block-body p { font-size: .96rem; color: var(--text-dim); margin: 0; }

.tag {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--slot, var(--b));
  display: block; margin-bottom: .55rem; font-weight: 600;
}

/* ---------- quotes ---------- */

.quotes { display: grid; gap: 1.4rem; }
@media (min-width: 860px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote {
  background: #fff; border: 1px solid var(--rule);
  padding: 1.6rem 1.5rem; display: flex; flex-direction: column;
}
.quote blockquote {
  margin: 0 0 1.2rem; font-size: 1rem; line-height: 1.6;
}
.quote blockquote::before { content: "\201C"; }
.quote blockquote::after  { content: "\201D"; }
.quote cite {
  font-style: normal; margin-top: auto;
  font-family: var(--mono); font-size: .72rem; line-height: 1.6;
  letter-spacing: .04em; color: var(--text-dim);
  border-top: 2px solid var(--r); padding-top: .8rem;
}
.quote cite b { display: block; color: var(--text); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- timeline / career ---------- */

.era { border-top: 1px solid var(--rule); padding: 1.6rem 0; display: grid; gap: .8rem; }
@media (min-width: 800px) { .era { grid-template-columns: 150px 1fr; gap: 2.5rem; } }
.era .yr {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .1em;
  color: var(--r); font-weight: 600; padding-top: .3rem;
}
.era h3 { margin-bottom: .5rem; }
.era p { font-size: .97rem; color: var(--text-dim); }

/* ---------- logo wall ---------- */

.clients {
  display: flex; flex-wrap: wrap; gap: .55rem;
}
.clients span {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .08em;
  border: 1px solid var(--ink-3); color: var(--dim-invert);
  padding: .45rem .8rem; text-transform: uppercase;
}

/* ---------- prose blocks ---------- */

.two-col { display: grid; gap: 2rem; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

.callout {
  border-left: 4px solid var(--b);
  padding: .2rem 0 .2rem 1.3rem;
  font-size: 1.05rem;
}

/* ---------- cta / footer ---------- */

.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.btn {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .13em;
  text-transform: uppercase; text-decoration: none;
  padding: .85rem 1.5rem; border: 1px solid currentColor;
  transition: background .18s, color .18s;
}
.btn-solid { background: var(--r); border-color: var(--r); color: #fff; }
.btn-solid:hover { background: #A50D25; border-color: #A50D25; }
.btn-ghost:hover { background: var(--text); color: var(--paper); }
.on-dark .btn-ghost:hover { background: var(--paper); color: var(--ink); }

footer {
  background: var(--ink); color: var(--dim-invert);
  padding: clamp(2.8rem, 6vw, 4.5rem) 0 2.5rem;
  border-top: 8px solid transparent;
  border-image: linear-gradient(to right,
    var(--r) 0 33.34%, var(--g) 33.34% 66.67%, var(--b) 66.67% 100%) 1;
}
.foot-mark { width: 132px; margin-bottom: 1.6rem; }
footer .foot-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { footer .foot-grid { grid-template-columns: 1.4fr 1fr; } }
footer h2 { color: var(--text-invert); margin-bottom: 1rem; }
footer a { color: var(--text-invert); }
.foot-contact { font-family: var(--mono); font-size: .88rem; line-height: 2; }
.foot-contact a { text-decoration: none; border-bottom: 1px solid var(--ink-3); }
.foot-contact a:hover { border-bottom-color: var(--r); }
.colophon {
  margin-top: 3rem; padding-top: 1.3rem; border-top: 1px solid var(--ink-3);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between;
}

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

/* sample-day block on the capabilities page */
@media (min-width: 860px) {
  .rundown-example { grid-template-columns: 1fr 1fr; gap: 3.5rem !important; }
}


/* The three-band RGB rule — DNP's own device, used as a section divider. */
.rgb-rule {
  height: 8px; width: 100%;
  background: linear-gradient(to right,
    var(--r) 0 33.34%, var(--g) 33.34% 66.67%, var(--b) 66.67% 100%);
}

/* marker on the private brief so it's never mistaken for a public page */
.private-flag {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-dim);
  border: 1px solid var(--rule); padding: .3rem .6rem;
}
@media (max-width: 560px) { .private-flag { display: none; } }

/* ---------- showreel in the hero ---------- */
.reel {
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  padding-bottom: clamp(2.6rem, 6vw, 4.2rem);
}
.reel-head {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--dim-invert);
  border-top: 1px solid var(--ink-3); padding-top: 1rem; margin-bottom: .9rem;
}
.reel-frame {
  aspect-ratio: 16 / 9; background: #000;
  border: 1px solid var(--ink-3);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.reel-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* the rundown strip, restyled for the light section it now lives in */
.rundown-light { margin-top: clamp(2.6rem, 5vw, 3.6rem); padding-bottom: 0;
                 border-top-color: var(--rule); }
.rundown-light .rundown-head { color: var(--text-dim); }

/* the explainer reel sits inside the brief's dark intro section */
.on-dark .reel { padding-bottom: 0; }

/* Title card — used where no usable photograph exists.
   Reads as a deliberate slate rather than a missing image. */
.frame.titlecard {
  background: var(--logo-black);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .7rem;
  position: relative;
}
.frame.titlecard::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(to right,
    var(--r) 0 33.34%, var(--g) 33.34% 66.67%, var(--b) 66.67% 100%);
}
.tc-year {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(3rem, 7vw, 4.6rem); letter-spacing: -.04em;
  color: var(--paper); line-height: 1;
}
.tc-sub {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--dim-invert);
}
