/* Powered by Play — two colours. Aktiv Grotesk carries everything;
   Adobe Caslon (italic) is an accent, used in very few places (.accent). */
:root {
  --blue: #0148D8;
  --paper: #F8F8F8;
  --line: rgba(1, 72, 216, .18);
  --muted: rgba(1, 72, 216, .58);
  --sans: "aktiv-grotesk", "Aktiv Grotesk", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "adobe-caslon-pro", "Libre Caslon Text", Georgia, serif;
  --pad: clamp(16px, 2.2vw, 32px);
  --header: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--blue);
  font: 500 16px/1.4 var(--sans);
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video, iframe { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ol, ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; font-weight: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--blue); color: var(--paper); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* type roles */
.eyebrow { font: 600 11px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.page-title { font-weight: 700; font-size: clamp(48px, 7vw, 112px); line-height: .92; letter-spacing: -.035em; }
.page-statement { font-weight: 600; font-size: clamp(30px, 4.2vw, 66px); line-height: 1.04; letter-spacing: -.025em; }
.accent { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.link { text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.link:hover { opacity: .6; }
.no { font-weight: 400; font-variant-numeric: tabular-nums; color: var(--muted); }
.cap-meta { font-weight: 400; color: var(--muted); }

/* Optional film grain — only on blue surfaces. Remove the class to drop it. */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  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 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .16; mix-blend-mode: overlay;
}

/* ---- header: five even columns, logo in the middle ---- */
.site-header {
  position: sticky; top: 0; z-index: 20; height: var(--header);
  background: var(--paper);
  box-shadow: 0 6px 24px rgba(1, 30, 90, .07);
}
.site-nav { height: 100%; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; justify-items: center; font-size: 17px; }
.nav-link { padding: 6px 2px; text-underline-offset: .3em; text-decoration-thickness: 1px; }
.nav-link:hover, .nav-link[aria-current="page"] { text-decoration-line: underline; }
.brand { display: block; }
.brand-mark { display: block; height: 50px; width: auto; transition: transform .4s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.04); }

/* ---- placeholders: a slot that names exactly what belongs in it ---- */
.ph {
  position: relative; width: 100%; height: 100%;
  display: grid; grid-template-rows: auto 1fr auto; gap: 8px;
  padding: clamp(10px, 1.4vw, 20px);
  background: var(--blue); color: var(--paper);
  font: 500 11px/1.35 var(--sans); letter-spacing: .02em;
  overflow: hidden;
}
.ph::before { content: ""; position: absolute; inset: clamp(6px, .7vw, 10px); border: 1px dashed rgba(248, 248, 248, .32); pointer-events: none; }
.ph-kind { font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.ph-title { align-self: center; justify-self: center; text-align: center; font: 600 clamp(15px, 1.6vw, 24px)/1.15 var(--sans); letter-spacing: -.01em; }
.ph-spec { opacity: .72; }

/* ---- home ---- */
/* ---- home: one immersive screen, no scrolling ---- */
.home { height: 100svh; overflow: hidden; }
.immersive { position: relative; height: calc(100svh - var(--header)); overflow: hidden; background: var(--blue); color: var(--paper); }
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity 1.1s var(--ease); }
.slide.on { opacity: 1; z-index: 1; }
.slide > img, .slide > video { transform: scale(1.04); transition: transform 7s linear; }
.slide.on > img, .slide.on > video { transform: scale(1); }
.slide .ph { padding-bottom: 90px; }
.slide .ph::before { bottom: 80px; }
.slide .ph-title { display: none; }
.slide .ph-spec { grid-row: 2; align-self: start; }
.hero-mark { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; }
.hero-wordmark { width: clamp(200px, 24vw, 400px); height: auto; filter: drop-shadow(0 2px 24px rgba(0, 20, 70, .25)); }
.slide-bar {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 24px var(--pad); background: linear-gradient(transparent, rgba(0, 20, 70, .28));
}
.slide-caps { position: relative; flex: 1; min-height: 2.8em; }
.slide-cap { position: absolute; left: 0; bottom: 0; display: grid; gap: 2px; font-size: 17px; opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.slide-cap.on { opacity: 1; transform: none; pointer-events: auto; }
.slide-cap .cap-meta { color: rgba(248, 248, 248, .75); }
.slide-cap:hover .cap-name { text-decoration: underline; text-underline-offset: .2em; }
.ticks { display: flex; gap: 6px; }
.tick { width: clamp(28px, 4vw, 56px); padding: 10px 0; }
.tick span { display: block; height: 2px; background: rgba(248, 248, 248, .35); overflow: hidden; }
.tick span::after { content: ""; display: block; height: 100%; width: 0; background: var(--paper); }
.tick.on span::after { animation: tick var(--slide-ms, 6000ms) linear forwards; }
.tick.done span::after { width: 100%; }
.immersive.paused .tick.on span::after { animation-play-state: paused; }
@keyframes tick { to { width: 100%; } }

/* ---- floating hover preview (work index) ---- */
.hover-preview {
  position: fixed; z-index: 30; left: 0; top: 0; width: min(28vw, 400px); aspect-ratio: 16 / 9;
  pointer-events: none; opacity: 0; transform: translate3d(-999px, -999px, 0);
  transition: opacity .18s var(--ease);
  box-shadow: 0 10px 40px rgba(1, 30, 90, .18);
}
.hover-preview.on { opacity: 1; }
@media (hover: none), (max-width: 760px) { .hover-preview { display: none; } }

/* ---- portfolio ---- */
.portfolio-head { padding: clamp(36px, 5vw, 72px) var(--pad) 0; }
.portfolio-tools { display: flex; align-items: center; gap: 18px; margin: 26px 0 14px; font-size: 14px; }
.filter-toggle { display: inline-flex; gap: 6px; padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; transition: border-color .2s; }
.filter-toggle:hover { border-color: var(--blue); }
.filter-toggle[aria-expanded="true"] { background: var(--blue); color: var(--paper); border-color: var(--blue); }
.filter-active-n:not(:empty)::before { content: "· "; }
.clear-filters { text-decoration: underline; text-underline-offset: .2em; }
.result-count { color: var(--muted); font-weight: 400; }
.view-toggle { margin-left: auto; display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.view-toggle button { padding: 4px 12px; border-radius: 999px; }
.view-toggle [aria-pressed="true"] { background: var(--blue); color: var(--paper); }

.filters { display: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 6px 0 26px; }
.filters.open { display: grid; }
.filter-label { display: block; margin-bottom: 10px; font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; line-height: 1.2; transition: background .15s, color .15s, border-color .15s, opacity .15s; }
.chip:hover { border-color: var(--blue); }
.chip-n { font-size: 10px; opacity: .6; }
.chip[aria-pressed="true"] { background: var(--blue); color: var(--paper); border-color: var(--blue); }
.chip:disabled { opacity: .3; cursor: default; border-color: var(--line); }

.portfolio-body { padding-bottom: clamp(60px, 9vw, 140px); }
.index { border-top: 1px solid var(--line); }
.index .row { border-bottom: 1px solid var(--line); }
.index .row a {
  display: grid; align-items: baseline; gap: 16px;
  grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr) 11rem;
  padding: 14px var(--pad); font-size: clamp(16px, 1.25vw, 19px);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.index .row a:hover { background: var(--blue); color: var(--paper); }
.index .row a:hover .no, .index .row a:hover .row-meta, .index .row a:hover .row-client { color: inherit; }
.row-thumb { display: none; }
.row-title { font-weight: 700; letter-spacing: -.01em; }
.row-client { font-weight: 400; }
.row-meta { text-align: right; font-weight: 400; color: var(--muted); }
.row[hidden], .card[hidden] { display: none; }

.grid { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 18px; padding: 0 var(--pad); }
.portfolio-body[data-view="grid"] .grid { display: grid; }
.portfolio-body[data-view="grid"] .index { display: none; }
.card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--blue); }
.card-media > * { transition: transform .8s var(--ease); }
.card a:hover .card-media > img, .card a:hover .card-media > video { transform: scale(1.025); }
.card-cap { display: grid; grid-template-columns: 2.6rem 1fr; gap: 8px; padding-top: 10px; font-size: 15px; }
.card-cap b { font-weight: 600; }
.empty { padding: 40px var(--pad); }

/* ---- project ---- */
.player { padding: clamp(16px, 2vw, 28px) var(--pad) 0; }
.player > * { width: min(100%, calc((100svh - var(--header) - 80px) * 16 / 9)); margin: 0 auto; aspect-ratio: 16 / 9; }
.yt { position: relative; display: block; background: var(--blue) center / cover no-repeat; }
.yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 14px 28px; border-radius: 999px; background: var(--paper); color: var(--blue); font: 600 18px/1 var(--sans); transition: transform .2s var(--ease); }
.yt:hover .yt-play { transform: translate(-50%, -50%) scale(1.06); }
.project-info { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px 40px; padding: clamp(32px, 4vw, 60px) var(--pad); }
.project-title { grid-column: 1 / -1; }
.project-artist { display: block; font-weight: 500; font-size: clamp(18px, 1.6vw, 24px); }
.project-name { display: block; font-weight: 700; font-size: clamp(44px, 7vw, 112px); line-height: .94; letter-spacing: -.035em; }
.project-kicker { margin-top: 14px; font-weight: 400; color: var(--muted); }
.project-desc { font-size: clamp(17px, 1.45vw, 22px); line-height: 1.4; max-width: 32em; }
.project-meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; font-size: 14px; align-content: start; }
.project-meta dt { font-weight: 400; color: var(--muted); }
.project-meta dd { font-weight: 600; }
.project-nav { display: grid; grid-template-columns: 1fr auto 1fr; border-top: 1px solid var(--line); margin-bottom: clamp(40px, 6vw, 90px); }
.project-nav a { display: grid; gap: 6px; padding: 18px var(--pad); font-size: clamp(16px, 1.5vw, 21px); font-weight: 600; transition: background .2s, color .2s; }
.project-nav a:last-child { text-align: right; }
.project-nav a:hover { background: var(--blue); color: var(--paper); }
.project-nav .eyebrow { font-weight: 500; }
.project-nav-all { border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; }

/* ---- about ---- */
.about-hero { padding: clamp(48px, 7vw, 120px) var(--pad) clamp(40px, 5vw, 80px); }
.about-hero .eyebrow { margin-bottom: 18px; }
.about-hero .page-statement { max-width: 18em; }
.about-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); gap: 32px; padding: 28px var(--pad) clamp(60px, 9vw, 140px); border-top: 1px solid var(--line); }
.about-copy { display: grid; gap: 1em; font-size: clamp(16px, 1.3vw, 19px); max-width: 32em; align-content: start; }
.about-lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; font-size: 15px; }
.about-lists .eyebrow { color: var(--muted); margin-bottom: 10px; }
.about-lists li { padding: 3px 0; }

/* ---- contact ---- */
.contact-big { font-weight: 700; font-size: clamp(48px, 8vw, 128px); line-height: .94; letter-spacing: -.035em; }
.contact-lede { max-width: 28em; margin-top: 28px; font-size: clamp(16px, 1.4vw, 20px); font-weight: 400; }
.contact-page { min-height: calc(100svh - var(--header)); padding: clamp(48px, 7vw, 120px) var(--pad) 60px; }
.contact-page .eyebrow { margin-bottom: 18px; }
.contact-button { display: inline-block; margin-top: clamp(32px, 4vw, 56px); padding: 20px 36px; border-radius: 999px; background: var(--blue); color: var(--paper); font: 700 clamp(18px, 1.6vw, 24px)/1 var(--sans); letter-spacing: -.01em; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.contact-button:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(1, 30, 90, .2); }
.contact-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 28px; font-size: 16px; }
.copy-btn { padding: 8px 16px; border: 1px solid var(--blue); border-radius: 999px; font-size: 13px; }
.copy-btn:hover, .copy-btn.done { background: var(--blue); color: var(--paper); }

.notfound { min-height: 60svh; padding: clamp(40px, 8vw, 140px) var(--pad); display: grid; gap: 24px; align-content: start; }

/* ---- footer ---- */
.site-footer { background: var(--blue); color: var(--paper); padding: clamp(48px, 7vw, 110px) var(--pad) var(--pad); display: grid; gap: clamp(36px, 5vw, 80px); }
.footer-cta { font-size: clamp(44px, 8vw, 132px); line-height: .95; justify-self: start; transition: opacity .2s; }
.footer-cta:hover { opacity: .7; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 10px 40px; font-size: 15px; }
.footer-cols a:hover { text-decoration: underline; text-underline-offset: .2em; }
.footer-base { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; font-weight: 400; border-top: 1px solid rgba(248, 248, 248, .3); padding-top: 16px; }
.footer-mark { height: 34px; width: auto; }

.footer-button { padding: 12px 22px; border-radius: 999px; background: var(--paper); color: var(--blue); font-weight: 700; }
.footer-cols a.footer-button:hover { text-decoration: none; opacity: .85; }
.footer-cols { align-items: center; }
.site-footer-slim { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px var(--pad); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.slim-links { display: flex; gap: 20px; }
.slim-links a:hover { color: var(--blue); }

/* ---- smaller screens ---- */
@media (max-width: 900px) {
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-info, .about-body { grid-template-columns: 1fr; }
  .index .row a { grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.4fr) 9rem; }
  .row-client { display: none; }
}
@media (max-width: 760px) {
  :root { --header: 64px; }
  .slide-bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .slide-cap { font-size: 15px; }
  .tick { flex: 1; }
  .site-nav { font-size: 14px; }
  .brand-mark { height: 36px; }


  .filters { grid-template-columns: 1fr; gap: 18px; }
  .result-count { display: none; }
  .index .row a { grid-template-columns: 112px 1fr auto; grid-template-rows: auto auto auto; gap: 2px 12px; align-items: start; padding-top: 12px; padding-bottom: 12px; }
  .row-thumb { display: block; grid-column: 1; grid-row: 1 / 4; aspect-ratio: 16 / 9; overflow: hidden; background: var(--blue); }
  .row-thumb .ph { padding: 6px; gap: 2px; }
  .row-thumb .ph::before { inset: 3px; }
  .row-thumb .ph-kind, .row-thumb .ph-spec { display: none; }
  .row-thumb .ph-title { font-size: 10px; }
  .index .no { grid-column: 3; grid-row: 1; font-size: 11px; text-align: right; }
  .row-artist { grid-column: 2; grid-row: 1; font-size: 13px; }
  .row-title { grid-column: 2 / 4; grid-row: 2; font-size: 19px; line-height: 1.15; }
  .row-meta { grid-column: 2 / 4; grid-row: 3; font-size: 12px; text-align: left; }
  .grid { grid-template-columns: 1fr; }

  .project-nav { grid-template-columns: 1fr 1fr; }
  .project-nav-all { display: none !important; }
  .about-lists { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
