/* Conduit Entertainment. Plain CSS, no build step. */

@font-face {
  font-family: "Gloock";
  src: url("fonts/gloock-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F3EEE4;
  --paper-deep: #E9E2D3;
  --ink: #15120E;
  --red: #B3261E;
  --rule: #D9D1C3;
  --muted: #5B5348;
  --on-ink-muted: #C9C0B0;
  --display: "Gloock", Georgia, "Times New Roman", serif;
  --text: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(18px, 4vw, 56px);
  --wide: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 7vw, 6.25rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.1; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.on-ink :focus-visible, .screen :focus-visible { outline-color: var(--paper); }
.on-ink a:hover { color: var(--paper); text-decoration-color: var(--red); text-decoration-thickness: 3px; }

.wrap { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 300; background: var(--ink); color: var(--paper); padding: 12px 16px; }
.skip:focus { top: 12px; color: var(--paper); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink); border-radius: 2px;
  font: 600 1rem/1.2 var(--text); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--red); border-color: var(--red); color: var(--paper); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-paper { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-paper:hover { background: var(--red); border-color: var(--red); color: var(--paper); }
.arrow { display: inline-block; width: 18px; height: 12px; flex: none; }

/* Header */
.site-header {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 120;
  overflow-anchor: none;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.bar { display: flex; align-items: center; gap: 28px; min-height: 88px; }
.site-header.shrunk .bar { min-height: 64px; }
.brand { display: block; margin-right: auto; padding-block: 10px; }
.brand img { height: 50px; width: auto; }
.site-header.shrunk .brand img { height: 44px; }
.nav { display: flex; gap: 6px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-weight: 600; text-decoration: none;
}
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--red); }
.search { position: relative; }
.search input {
  width: 290px; height: 44px; padding: 0 14px 0 40px;
  font: 500 1rem var(--text); color: var(--ink);
  background: #FFFDF8 url("images/search.svg?v=1") 12px 50% / 18px no-repeat;
  border: 1px solid #8C8375; border-radius: 2px;
}
.search input::placeholder { color: var(--muted); opacity: 1; }
.results {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(420px, 92vw);
  background: #FFFDF8; border: 1px solid var(--ink); z-index: 130;
  box-shadow: 0 14px 30px rgba(21, 18, 14, .16);
}
.results a, .results p { display: block; margin: 0; padding: 12px 16px; text-decoration: none; border-top: 1px solid var(--rule); }
.results a:first-child, .results p:first-child { border-top: 0; }
.results a strong { display: block; font: 400 1.25rem/1.15 var(--display); }
.results a span { color: var(--muted); font-size: .95rem; }
.results a:hover, .results a.is-top { background: var(--paper); color: var(--ink); }
.results a.is-top strong { color: var(--red); }
.head-btn {
  display: none; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px;
  background: transparent; border: 1px solid var(--ink); border-radius: 2px;
  font: 600 1rem var(--text); color: var(--ink); cursor: pointer;
}

@media (max-width: 1100px) {
  .bar { gap: 10px; min-height: 72px; flex-wrap: wrap; }
  .site-header.shrunk .bar { min-height: 60px; }
  .brand img { height: 44px; }
  .site-header.shrunk .brand img { height: 36px; }
  .head-btn { display: inline-flex; }
  .nav, .search { display: none; flex-basis: 100%; }
  .nav.is-open { display: flex; flex-direction: column; gap: 0; padding-bottom: 12px; }
  .nav.is-open a { min-height: 52px; padding: 0; border-top: 1px solid var(--rule); font-size: 1.15rem; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--red); }
  .search.is-open { display: block; padding-bottom: 14px; }
  .search input { width: 100%; height: 48px; }
  .results { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
}


/* Sections */
.section { padding-block: clamp(56px, 8vw, 112px); }
.section-tight { padding-block: clamp(40px, 5vw, 72px); }
.ruled { border-top: 1px solid var(--rule); }
.on-ink { background: var(--ink); color: var(--paper); }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.45; max-width: 34em; text-wrap: balance; }
.muted { color: var(--muted); }
.on-ink .muted { color: var(--on-ink-muted); }
.stack-l > * + * { margin-top: 28px; }
.head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(28px, 4vw, 56px); }

/* Home hero */
.hero { padding-block: clamp(36px, 6vw, 88px) clamp(48px, 7vw, 104px); }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 0.32em; }
.hero .lead { margin-bottom: 1.5em; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .hero h1 { font-size: clamp(3rem, 5.6vw, 5.4rem); } }

/* The screen: plays the featured clients as title cards */
.screen {
  position: relative; background: var(--ink); color: var(--paper);
  aspect-ratio: 8 / 5; overflow: hidden;
}
.card {
  position: absolute; inset: 0; display: grid; grid-template-columns: auto minmax(0, 1fr);
  text-decoration: none; color: var(--paper);
  opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s;
}
.card.is-on { opacity: 1; visibility: visible; transition: opacity .7s ease, visibility 0s; }
.card:hover { color: var(--paper); }
.card img { height: 100%; width: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.card-text { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: clamp(16px, 3vw, 44px); padding-bottom: clamp(30px, 4vw, 56px); }
.card-name { font: 400 clamp(1.7rem, 3.5vw, 3.4rem)/1 var(--display); text-wrap: balance; }
.card-known { color: var(--on-ink-muted); font-size: clamp(.95rem, 1.2vw, 1.1rem); line-height: 1.4; }
.card-go { font-weight: 600; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 0.3em; }
.ticks { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 4px; height: 5px; }
.ticks i { flex: 1; background: rgba(243, 238, 228, .22); position: relative; overflow: hidden; }
.ticks i::after { content: ""; position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; }
.ticks i.is-done::after { transform: scaleX(1); }
.ticks i.is-run::after { transform: scaleX(1); transition: transform var(--beat, 3600ms) linear; }
@media (max-width: 560px) {
  .screen { aspect-ratio: 100 / 72; }
  .card-text { gap: 8px; padding: 14px 14px 24px; }
  .card-known { font-size: .9rem; }
}

/* Statement with underlines that draw */
.statement { font: 400 clamp(1.9rem, 4.6vw, 4rem)/1.12 var(--display); max-width: 21em; text-wrap: balance; }
.draw {
  background: linear-gradient(var(--red), var(--red)) 0 100% / 100% 0.09em no-repeat;
  padding-bottom: 0.06em;
}
.js .draw { background-size: 0 0.09em; transition: background-size .8s cubic-bezier(.3, .7, .2, 1); }
.js .draw.is-drawn { background-size: 100% 0.09em; }

/* Name wall */
.names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.1em 0.55em; font: 400 clamp(1.75rem, 4.4vw, 3.9rem)/1.16 var(--display); }
.names a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.names li:not(:last-child)::after { content: ""; display: inline-block; width: 0.16em; height: 0.16em; margin-left: 0.55em; border-radius: 50%; background: var(--red); vertical-align: 0.28em; }

/* Roster */
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-bottom: clamp(24px, 3vw, 40px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  min-height: 48px; padding: 0 18px; cursor: pointer;
  background: transparent; color: var(--ink); border: 1px solid var(--ink); border-radius: 2px;
  font: 600 1rem var(--text);
}
.filter b { font-weight: 500; color: var(--muted); margin-left: 6px; }
.filter:hover { background: var(--paper-deep); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.filter[aria-pressed="true"] b { color: var(--on-ink-muted); }
.find { margin-left: auto; flex: 0 1 320px; }
@media (max-width: 720px) { .find { flex: 1 1 100%; margin-left: 0; } }
.find input {
  width: 100%; height: 48px; padding: 0 14px;
  font: 500 1rem var(--text); color: var(--ink);
  background: #FFFDF8; border: 1px solid #8C8375; border-radius: 2px;
}
.find input::placeholder { color: var(--muted); opacity: 1; }
.count { margin: 0 0 20px; color: var(--muted); min-height: 1.6em; }
.roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
@media (min-width: 720px) { .roster { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 24px; } }
@media (min-width: 1060px) { .roster { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 28px; } }
.tile a { display: block; text-decoration: none; }
.tile img, .tile-card { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 14px; background: var(--ink); }
.tile-card { display: flex; align-items: flex-end; padding: 16px; color: var(--paper); font: 400 clamp(1.5rem, 2.6vw, 2.3rem)/1.02 var(--display); }
.tile-name { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.08; margin-bottom: 4px; }
.tile-roles { margin: 0 0 2px; font-weight: 600; }
.tile-known { margin: 0; color: var(--muted); font-size: .97rem; line-height: 1.4; text-wrap: balance; }
.tile a:hover .tile-name { color: var(--red); }
.tile a:hover { color: var(--ink); }
.tile[hidden] { display: none; }
.empty { padding: 28px 0; font-size: 1.15rem; }
.empty[hidden] { display: none; }

/* Client page */
.person { display: grid; gap: clamp(28px, 5vw, 72px); align-items: start; padding-block: clamp(32px, 5vw, 72px) clamp(44px, 6vw, 88px); }
@media (min-width: 860px) { .person.has-photo { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); } }
.person-photo { width: 100%; max-width: 400px; aspect-ratio: 4 / 5; object-fit: cover; }
.person h1 { font-size: clamp(2.7rem, 7.4vw, 6.5rem); margin-bottom: 0.18em; }
.roles { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 600; margin: 0 0 1.1em; }
.person .lead { margin-bottom: 1.6em; }
.links { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.links a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px;
  border: 1px solid var(--ink); border-radius: 2px; font-weight: 600; text-decoration: none;
}
.links a:hover { background: var(--ink); color: var(--paper); }
.links svg { width: 22px; height: 22px; flex: none; }
.links svg.wide { width: 40px; height: 20px; }
.credits { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.credits li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.credits .t { font: 400 clamp(1.35rem, 2.4vw, 2rem)/1.1 var(--display); }
.credits .y, .credits .c { color: var(--muted); }
@media (min-width: 720px) {
  .credits li { grid-template-columns: minmax(0, 5fr) 110px minmax(0, 4fr); align-items: baseline; }
}
.split { display: grid; gap: clamp(20px, 4vw, 64px); }
@media (min-width: 860px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }

/* Reel band */
.reel { aspect-ratio: 16 / 9; width: 100%; background: #000; border: 1px solid #3A342B; position: relative; }
.reel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel-start {
  position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: transparent; border: 0; color: var(--paper); cursor: pointer; text-decoration: none;
  font: 400 clamp(1.4rem, 3vw, 2.4rem)/1.1 var(--display);
}
.reel-start:hover { color: var(--paper); }
.reel-start svg { width: clamp(56px, 8vw, 92px); height: auto; }
.reel-start:hover svg circle { fill: var(--red); stroke: var(--red); }

/* Pager */
.pager { list-style: none; margin: 0; padding: 28px 0; display: grid; gap: 12px; grid-template-columns: 1fr; border-top: 1px solid var(--rule); }
.pager a { display: flex; align-items: center; gap: 14px; min-height: 56px; text-decoration: none; font: 400 1.5rem/1.1 var(--display); }
.pager a.btn { font: 600 1rem/1.2 var(--text); justify-content: center; }
.pager .arrow-back { transform: scaleX(-1); }
@media (min-width: 720px) { .pager { grid-template-columns: 1fr auto 1fr; align-items: center; } .pager .next { justify-content: flex-end; } }

/* Projects */
.project { display: grid; gap: 18px clamp(24px, 5vw, 80px); padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--ink); }
.project h2, .project-title { font-size: clamp(2.4rem, 6vw, 5.25rem); }
.project-title a { text-decoration: none; }
.project-when { font: 400 clamp(1.3rem, 2vw, 1.7rem)/1.2 var(--display); color: var(--red); margin: 10px 0 0; }
@media (min-width: 900px) { .project { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; } }
.facts { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }

/* Quote */
.quote { margin: 0; max-width: 46em; }
.quote p { font: 400 clamp(1.25rem, 2.2vw, 1.8rem)/1.36 var(--display); margin-bottom: .9em; }
.quote footer { font-weight: 600; }

/* Prose pages */
.page-head { padding-block: clamp(36px, 6vw, 88px) clamp(20px, 3vw, 40px); }
.page-head h1 { margin-bottom: 0.22em; }
.page-head .lead { margin-bottom: 0; }
.prose { max-width: 40em; }
.prose h2 { margin: 1.4em 0 .5em; font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.prose p { font-size: 1.12rem; text-wrap: balance; }

/* Contact */
.contact-grid { display: grid; gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 500 1.05rem var(--text); color: var(--ink);
  background: #FFFDF8; border: 1px solid #8C8375; border-radius: 2px;
}
.form textarea { min-height: 170px; resize: vertical; }
.form .btn { justify-self: start; min-width: 180px; }
.hp { position: absolute; left: -9999px; }

/* Contact band */
.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.band p { margin: 0; }
.band h2 { margin-bottom: 0.3em; }

/* Footer */
.site-footer { background: var(--paper-deep); padding-block: clamp(44px, 6vw, 80px) 0; }
.foot { display: grid; gap: 32px; }
@media (min-width: 860px) { .foot { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); } }
.foot-brand { display: inline-block; }
.foot-brand img { width: 250px; height: auto; }
.foot-brand + p { margin-top: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.foot-low { margin-top: clamp(32px, 4vw, 56px); padding-block: 18px; border-top: 1px solid #C9BFAC; display: flex; flex-wrap: wrap; gap: 6px 28px; justify-content: space-between; color: var(--muted); font-size: .97rem; }
.foot-low a { display: inline-flex; align-items: center; min-height: 44px; }

/* Phone bar */
.phonebar { display: none; }
@media (max-width: 720px) {
  body { padding-bottom: 64px; }
  .phonebar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
    background: var(--ink); border-top: 1px solid #3A342B;
  }
  .phonebar a { display: flex; align-items: center; justify-content: center; min-height: 60px; color: var(--paper); font-weight: 600; text-decoration: none; }
  .phonebar a + a { border-left: 1px solid #3A342B; background: var(--red); }
  .phonebar a:hover { color: var(--paper); }
  .section, .section-tight { padding-block: 36px; }
  .hero { padding-block: 28px 40px; }
  .prose > :last-child { margin-bottom: 0; }
  .person { padding-block: 24px 30px; }
}
