/* nevxmedia.com: two colours (ink, bone), two typefaces. Colour comes from the work. */
:root {
  --ink: #0B0B0B;
  --bone: #ECE8E1;
  --ink-2: rgba(236, 232, 225, .62);   /* secondary text on ink */
  --ink-3: rgba(236, 232, 225, .4);
  --ink-line: rgba(236, 232, 225, .14);
  --bone-2: rgba(11, 11, 11, .6);      /* secondary text on bone */
  --bone-line: rgba(11, 11, 11, .16);
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  text-align: center;
}
/* film grain over everything */
body::after {
  content: ''; position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.6 -.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.01em; }
em { font-style: italic; }
::selection { background: var(--bone); color: var(--ink); }

.eyebrow {
  margin: 0 0 18px; font: 500 11px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
}
.light .eyebrow { color: var(--bone-2); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 24px;
  border: 0; border-radius: 999px; background: var(--bone); color: var(--ink);
  font: 500 14px var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { background: #fff; }
.btn:active { transform: scale(.98); }
.light .btn { background: var(--ink); color: var(--bone); }
.link {
  font: 500 14px var(--sans); text-decoration: none; padding: 4px 0;
  border-bottom: 1px solid var(--ink-3); transition: border-color .2s;
}
.link:hover { border-color: var(--bone); }
:focus-visible { outline: 1px solid var(--bone); outline-offset: 4px; }
.light :focus-visible { outline-color: var(--ink); }

/* ---- top bar ---- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--gutter); font: 500 11px var(--sans); letter-spacing: .16em; text-transform: uppercase;
  transition: background .3s ease, border-color .3s ease; border-bottom: 1px solid transparent;
}
.bar.scrolled { background: rgba(11, 11, 11, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--ink-line); }
.wordmark { justify-self: start; text-decoration: none; letter-spacing: .34em; font: 500 13px var(--sans); text-transform: uppercase; }
.nav { display: flex; gap: 32px; }
.nav a, .bar-cta { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.nav a:hover, .bar-cta:hover { color: var(--bone); }
.bar-cta { justify-self: end; color: var(--bone); }

/* ---- hero ---- */
.hero {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: clamp(96px, 14vh, 150px) var(--gutter) clamp(40px, 6vh, 64px); overflow: hidden; isolation: isolate;
}
.haze { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { /* vignette + fade into the next band */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 40%, transparent 55%, rgba(0,0,0,.55) 100%);
}
.hero-copy { max-width: 1120px; }
.hero h1 { font-size: clamp(46px, min(7.2vw, 11vh), 104px); line-height: .98; }
/* the one accent on the site: metallic gold, top-lit like the beam */
.gold {
  color: #D4AF61;
  background: linear-gradient(180deg, #F6E2A8 0%, #E2C277 38%, #C49A48 68%, #9C7330 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-right: .08em; margin-right: -.08em;   /* room for the italic overhang without moving the full stop */
}
.hero .lede { margin: 22px auto 30px; max-width: 520px; color: var(--ink-2); font-size: clamp(15px, 1.4vw, 17px); }
.ctas { display: flex; justify-content: center; align-items: center; gap: 28px; flex-wrap: wrap; }

/* screens sit right under the CTAs, sized to the window height so the hero fits one view */
.screens {
  margin-top: clamp(36px, 5vh, 56px); display: flex; justify-content: center; align-items: center;
  gap: clamp(12px, 2vw, 24px); width: 100%;
}
.screen {
  position: relative; flex: none; height: clamp(240px, 36vh, 440px); aspect-ratio: 9 / 16;
  border-radius: 16px; overflow: hidden; background: #1a1816; cursor: pointer;
  border: 1px solid var(--ink-line); padding: 0; color: inherit;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.screen.main { height: clamp(300px, 46vh, 560px); border-color: rgba(236, 232, 225, .28); }

/* the numbers, along the bottom of the hero */
.stats {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; max-width: 980px;
  margin: clamp(40px, 6vh, 64px) auto 0; padding-top: clamp(24px, 3.5vh, 36px); border-top: 1px solid var(--ink-line);
}
.stats div + div { border-left: 1px solid var(--ink-line); }
.stats dd { margin: 0; font: 400 clamp(36px, 4.4vw, 60px)/1 var(--serif); }
.stats dt { margin-top: 10px; font: 500 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.stats .unset dd { color: var(--ink-3); }
.screen:hover { transform: translateY(-8px); }
.screen video, .screen img { width: 100%; height: 100%; object-fit: cover; }
.screen::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(0,0,0,.55)); pointer-events: none; }

/* ---- bands ---- */
.band { padding: clamp(88px, 13vw, 160px) var(--gutter); }
.band > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.band h2 { font-size: clamp(40px, 6vw, 76px); line-height: 1; margin-bottom: clamp(36px, 5vw, 64px); }
.light { background: var(--bone); color: var(--ink); color-scheme: light; }

/* proof: clients + metrics */
.clients {
  list-style: none; padding: 0; margin: 0 auto; max-width: 980px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0;
  font: 400 clamp(24px, 3.2vw, 40px)/1.25 var(--serif);
}
.clients li + li::before { content: '·'; margin: 0 .5em; color: var(--bone-2); }
/* logo row: one ink tone, equal optical weight */
.clients.has-logos { gap: clamp(28px, 4vw, 48px) clamp(36px, 5.5vw, 72px); align-items: center; max-width: 1040px; }
.clients.has-logos li::before { content: none; }
.clients .logo { display: flex; align-items: center; justify-content: center; height: 44px; }
.clients .logo img { max-height: 34px; max-width: 150px; width: auto; height: auto; object-fit: contain; opacity: .82; transition: opacity .3s; }
.clients .logo:hover img { opacity: 1; }
.clients .silhouette img { filter: brightness(0); }                                   /* transparent logos */
.clients .multiply img { filter: grayscale(1) contrast(1.4); mix-blend-mode: multiply; } /* logos on a white box */
/* brands without a usable logo file: a plain wordmark of the same weight */
.clients.has-logos .name { font: 500 15px/44px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink); opacity: .82; }

/* work */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--ink-line); border-radius: 999px; margin-bottom: clamp(40px, 6vw, 64px); }
.tabs button {
  height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2);
  font: 500 13px var(--sans); cursor: pointer; transition: background .2s, color .2s;
}
.tabs button[aria-selected="true"] { background: var(--bone); color: var(--ink); }
.grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); text-align: left; }
.card { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.card-media { position: relative; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #1a1816; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media .dur {
  position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(11,11,11,.6);
  font: 500 11px var(--sans); font-variant-numeric: tabular-nums; color: var(--bone);
}

/* work and formats are both ink; a hairline keeps them apart */
.formats { border-top: 1px solid var(--ink-line); }

/* formats: hairline rows */
.rows, .steps { list-style: none; padding: 0; }
.rows { border-top: 1px solid var(--ink-line); max-width: 920px; }
.rows li {
  display: grid; grid-template-columns: 64px 1fr 1fr; gap: 24px; align-items: baseline; text-align: left;
  padding: 28px 0; border-bottom: 1px solid var(--ink-line);
}
.n { font: 400 15px var(--serif); font-style: italic; color: var(--ink-3); }
.rows h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; }
.rows p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* process */
.turnaround { margin: -36px 0 clamp(40px, 6vw, 64px); font: 500 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--bone-2); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--bone-line); }
.steps li { padding: 32px 20px 0; }
.steps li + li { border-left: 1px solid var(--bone-line); }
.steps .n { color: var(--bone-2); }
.steps h3 { margin: 12px 0 10px; font-size: clamp(24px, 2.4vw, 30px); }
.steps p { margin: 0 auto; max-width: 240px; font-size: 15px; color: var(--bone-2); }

/* brief */
.brief .lede { margin: -36px auto 48px; color: var(--ink-2); max-width: 480px; }
.form { max-width: 640px; text-align: left; display: grid; gap: 22px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form > label > span, .fields label > span, .chips legend { display: block; margin-bottom: 8px; font: 500 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.form input:not([type="checkbox"]), .form textarea {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--ink-line); border-radius: 0;
  background: transparent; color: var(--bone); font: 400 17px var(--sans); transition: border-color .2s;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--bone); }
.form ::placeholder { color: var(--ink-3); }
.form [aria-invalid="true"] { border-color: var(--bone) !important; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; padding: 0; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 8px 16px; border: 1px solid var(--ink-line); border-radius: 999px;
  font-size: 14px; color: var(--ink-2); transition: all .2s;
}
.chips input:checked + span { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.chips input:focus-visible + span { outline: 1px solid var(--bone); outline-offset: 3px; }
.form-end { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form-status { margin: 0; font-size: 14px; color: var(--ink-2); }
.hp { position: absolute; left: -9999px; }
.direct { margin-top: 48px; color: var(--ink-2); font-size: 15px; }
.direct a { color: var(--bone); }

.foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px var(--gutter);
  border-top: 1px solid var(--ink-line); font: 500 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.foot .wordmark { color: var(--bone); font-size: 11px; }

/* ---- player ---- */
.player {
  position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 64px 16px 32px; background: rgba(5, 5, 5, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: fade .25s ease;
}
.player[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.player-frame { position: relative; height: min(78svh, calc((100vw - 32px) * 16 / 9)); aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #000; }
.player-video { width: 100%; height: 100%; object-fit: contain; }
.player-shield { position: absolute; inset: 0; cursor: pointer; }
.player-bar {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 28px 14px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.7)); transition: opacity .3s;
}
.player-frame.idle .player-bar { opacity: 0; }
.player-bar button { width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--bone); cursor: pointer; display: grid; place-items: center; }
.player-bar svg { width: 18px; height: 18px; fill: currentColor; }
.pb-track { position: relative; flex: 1; height: 18px; cursor: pointer; display: flex; align-items: center; }
.pb-track::before { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: rgba(236,232,225,.25); border-radius: 2px; }
.pb-fill { position: relative; height: 2px; width: 0; background: var(--bone); border-radius: 2px; }
.pb-time { font: 500 11px var(--sans); font-variant-numeric: tabular-nums; color: var(--ink-2); min-width: 72px; text-align: right; }
.player-close {
  position: absolute; top: 18px; right: var(--gutter); border: 0; background: none; color: var(--ink-2); cursor: pointer;
  font: 500 11px var(--sans); letter-spacing: .16em; text-transform: uppercase;
}
.player-close:hover { color: var(--bone); }

/* media can't be dragged, selected or long-press saved */
video, img, .screen, .card-media { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none; }

/* ---- reveal ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav { display: none; }
  .bar { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--ink-line); padding-top: 24px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--bone-line); margin-top: 32px; }
  .rows li { grid-template-columns: 40px 1fr; }
  .rows li p { grid-column: 2; }
}
@media (max-width: 560px) {
  .screen { height: auto; width: 27vw; }
  .screen.main { height: auto; width: 38vw; }
  .fields { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-left: 0 !important; }
  .steps li + li { border-top: 1px solid var(--bone-line); margin-top: 28px; }
  .tabs button { padding: 0 12px; }
  .foot { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .screen, .card-media img { transition: none; }
}
