/* Option D — the official one. Builds on styles.css (option A). */
@font-face {
  font-family: "ABC Diatype";
  src: url("../shared/fonts/ABCDiatype-Bold.woff2") format("woff2"), url("../shared/fonts/ABCDiatype-Bold.woff") format("woff");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
:root { --ff: "ABC Diatype", "Helvetica Neue", Arial, sans-serif; --hh: 56px; --title: clamp(18px, 1.9vw, 30px); }
body { font-weight: 700; font-synthesis: none; letter-spacing: -0.01em; }
h1, h2, h3, h4, .logo, .nav, .filters button, .pill { font-weight: 700; }

/* ---------- header ---------- */
.header {
  mix-blend-mode: normal; height: var(--hh); padding: 0 var(--pad);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s; border-bottom: 1px solid transparent;
}
.header.on-stage { color: #fff; background: transparent; }
.header.solid { color: var(--fg); background: var(--bg); border-bottom-color: var(--line); }
.nav { gap: clamp(16px, 2.4vw, 32px); }
.nav a { opacity: .8; }
.nav a:hover { opacity: 1; }

/* light/dark switch: plain knob, no letters */
.theme-toggle { color: inherit; }

/* ---------- landing ---------- */
.stage { position: relative; height: 100svh; min-height: 520px; overflow: hidden; overflow: clip; background: #000; color: #fff; }
.stage video { position: absolute; inset: 0; }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 55%, rgba(0,0,0,.72) 100%); }
.stage-copy { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: var(--pad); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.stage { cursor: pointer; }
.stage h1 { font-size: clamp(38px, 7.4vw, 124px); line-height: .9; letter-spacing: -0.045em; }
.stage h1 > * { display: block; }
.stage h1 small { font-size: 13px; line-height: 1; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; opacity: .9; }
/* lighter italic accent; until a Diatype Light Italic is licensed, the browser slants the Bold */
.stage h1 em { color: var(--accent); font-style: normal; letter-spacing: -0.035em; -webkit-text-stroke: 0; }
.stage.unmuted .pill { box-shadow: 0 0 0 2px var(--accent); }
@media (hover: hover) and (pointer: fine) { .stage, .stage .pill { cursor: none; } }
.pill { flex: none; }

/* ---------- work ---------- */
.work .section-head { padding-top: calc(var(--hh) + 28px); }
.card h3, .card.w8 h3, .card.w12 h3 { font-size: var(--title); line-height: 1.02; letter-spacing: -0.02em; }
.card .sub { font-size: 12px; }
.marquee span { font-weight: 700; }

/* ---------- info ---------- */
.info { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px var(--pad); padding: 80px var(--pad) 40px; scroll-margin-top: var(--hh); }
.info .bio { grid-column: 1 / span 6; font-size: var(--title); line-height: 1.12; letter-spacing: -0.02em; }
.info .bio { color: var(--fg); }
.info .bio .b { color: var(--accent); }
.info .bio::selection, .info .bio ::selection { background: var(--fg); color: var(--bg); }        /* dark: inverted */
[data-theme="light"] .info .bio .b { color: var(--grey); }
[data-theme="light"] .info .bio::selection, [data-theme="light"] .info .bio ::selection { background: var(--accent); color: #000; }  /* light: lime */
[data-theme="light"] .info .bio .b::selection { color: var(--grey); }  /* grey words stay grey */
.info-col { grid-column: span 3; }
.info-col:first-of-type { grid-column: 8 / span 2; }
.info-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--grey); margin-bottom: 12px; }
.info-col li { list-style: none; font-size: 15px; line-height: 1.6; }
.info-col a:hover { color: var(--accent-ink); }

/* ---------- footer ---------- */
.contact { margin-top: 20px; padding-top: 70px; }
.corner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.corner address { font-style: normal; text-align: right; font-size: 15px; line-height: 1.5; color: var(--fg); }
.corner address a { display: block; transition: color .2s; }
.corner address a:hover { color: var(--accent-ink); }
.corner address i { display: block; font-style: normal; font-size: 12px; color: var(--grey); margin-top: 6px; }
.corner address span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--grey); margin-bottom: 8px; }

/* ---------- project ---------- */
.p-title .sub { font-size: 14px; color: rgba(255,255,255,.85); }
.credits-wrap { padding: 64px var(--pad) 56px; text-align: center; }
.credits-wrap h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--grey); margin-bottom: 20px; }
.credits-wrap dl { max-width: 760px; margin: 0 auto; }
.credits-wrap dl div { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 7px 0; border-top: 1px solid var(--line); }
.credits-wrap dl div:last-child { border-bottom: 1px solid var(--line); }
.credits-wrap dt { text-align: right; color: var(--grey); font-size: 14px; }
.credits-wrap dd { text-align: left; font-size: 14px; }

.gallery { display: flex; flex-direction: column; gap: var(--gap); padding: 0 var(--gap); }
.gallery .row { display: grid; gap: var(--gap); }
.gallery .row.two { grid-template-columns: 1fr 1fr; }
.gallery .row > * { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.gallery .img { cursor: zoom-in; }
.gallery .img img { transition: transform 1s var(--ease); }
.gallery .img:hover img { transform: scale(1.03); }
.next .lbl { font-size: 12px; }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; mix-blend-mode: difference; display: grid; place-items: center; transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .3s; }
.cursor span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .2s; }
.cursor.big { width: 80px; height: 80px; margin: -40px 0 0 -40px; mix-blend-mode: normal; background: var(--accent); }
.cursor.big span { opacity: 1; }
.cursor.dark { background: #000; mix-blend-mode: normal; width: 10px; height: 10px; margin: -5px 0 0 -5px; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .info .bio { grid-column: 1 / -1; }
  .info-col, .info-col:first-of-type { grid-column: span 6; }
}
@media (max-width: 640px) {
  :root { --hh: 52px; }
  .nav a:not(.cta):not(.keep) { display: inline; }
  .nav { gap: 16px; }
  .stage-copy { flex-direction: column; align-items: flex-start; }
  .stage h1 { font-size: clamp(36px, 11.5vw, 60px); }
  .info { padding: 56px 16px 20px; gap: 28px 16px; }
  .corner { flex-direction: column; align-items: flex-start; }
  .corner address { text-align: left; }
  .credits-wrap { padding: 40px 16px; }
  .credits-wrap dl div { gap: 12px; }
  .gallery .row.two { grid-template-columns: 1fr; }
}

/* autoplay mini clips inside projects */
.clip { position: relative; overflow: hidden; background: var(--surface); }
.p-hero .clip { position: absolute; inset: 0; }
.clip video { position: absolute; inset: 0; pointer-events: none; }

/* project gallery (BTS, stills, mini clips): 200px clean margins, centred */
.gallery { padding: 0 200px; }
@media (max-width: 1100px) { .gallery { padding: 0 6vw; } }
@media (max-width: 640px) { .gallery { padding: 0 var(--gap); } }

.gallery .zoom { cursor: zoom-in; }
.gallery .img.native { cursor: default; }
.gallery .img.native:hover img { transform: none; }
