/* Hamed Tayebi — site styles
   Core design kept from the WordPress version: near-black ground, light grey type,
   brick-red accent (#B22222), thin Roboto, full-bleed video sections. */

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/roboto-latin.woff2') format('woff2');
}

:root {
  --bg: #0a0a0a;
  --surface: #121212;
  --surface-2: #1b1b1b;
  --line: rgba(255, 255, 255, 0.09);
  --text: #e0e0e0;
  --muted: #9c9c9c;
  --accent: #b22222;
  --accent-hover: #d02b2b;
  --radius: 3px;
  --header-h: 76px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --max: 1240px;
  --narrow: 780px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 1rem/1.7 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 600; color: #f2f2f2; }
strong { font-weight: 500; color: #f2f2f2; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.narrow { max-width: calc(var(--narrow) + 2 * var(--pad)); }
.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--alt { background: var(--surface); }
.center { text-align: center; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* ---------- type helpers ---------- */
.eyebrow {
  display: block;
  font-size: clamp(.78rem, .72rem + .25vw, .95rem);
  font-weight: 300;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #cfcfcf;
  margin-bottom: 1rem;
}
.display {
  font-size: clamp(2rem, 1.1rem + 3.6vw, 4rem);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
.h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem); text-wrap: balance; }
.lead { font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); color: #d2d2d2; max-width: 62ch; }
.rule { width: 64px; height: 2px; background: var(--accent); border: 0; margin: 1.6rem auto; }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head .rule { margin-inline: 0; }
.section-head.center .rule { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 48px;
  padding: .85em 2.1em;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease);
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { background: #fff; border-color: #fff; color: #111; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background .35s, box-shadow .35s;
}
.site-header::before {
  content: ''; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.65), transparent);
  transition: opacity .35s;
}
.site-header.is-solid { background: rgba(10,10,10,.92); box-shadow: 0 1px 0 var(--line); }
.site-header.is-solid::before { opacity: 0; }
@supports (backdrop-filter: blur(1px)) {
  .site-header.is-solid { background: rgba(10,10,10,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: clamp(150px, 16vw, 200px); height: auto; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.2rem); }
.nav-list a {
  position: relative; display: block; padding: .5rem 0;
  font-size: .78rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: #d8d8d8; transition: color .2s;
}
.nav-list a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: .2rem; height: 1px;
  background: var(--accent); transition: right .3s var(--ease);
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: #fff; }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { right: 0; }
.nav-list .nav-cta a { padding: .55rem 1.2rem; border: 1px solid var(--accent); border-radius: var(--radius); }
.nav-list .nav-cta a::after { display: none; }
.nav-list .nav-cta a:hover { background: var(--accent); }

.nav-toggle {
  display: none; position: relative; z-index: 120;
  width: 48px; height: 48px; margin-right: -10px;
  background: none; border: 0; color: #fff; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 12px; width: 24px; height: 2px; background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease), opacity .2s;
}
.nav-toggle span { top: 23px; }
.nav-toggle span::before { content: ''; left: 0; top: -7px; }
.nav-toggle span::after { content: ''; left: 0; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  /* drop-down panel under the header (absolute, so the header's blur can't trap it) */
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 110;
    max-height: calc(100vh - var(--header-h)); max-height: calc(100svh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
    padding: .5rem var(--pad) 1.5rem;
    background: #0b0b0b; border-top: 1px solid var(--line); box-shadow: 0 24px 40px rgba(0,0,0,.55);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s linear .25s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease), visibility 0s; }
  .nav-open .site-header { background: #0b0b0b; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-open .site-header::before { opacity: 0; }
  .nav-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.6); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s linear .25s; }
  .nav-open .nav-backdrop { opacity: 1; visibility: visible; transition: opacity .25s, visibility 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a { font-size: .95rem; letter-spacing: .16em; padding: 1rem 0; }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: #fff; box-shadow: inset 3px 0 0 var(--accent); padding-left: .9rem; }
  .nav-list .nav-cta { border-bottom: 0; margin-top: 1.25rem; }
  .nav-list .nav-cta a { font-size: .85rem; padding: .95rem 1.6rem; text-align: center; background: var(--accent); color: #fff; box-shadow: none; }
}

/* ---------- media backgrounds ---------- */
.media-bg { position: absolute; inset: 0; overflow: hidden; background: #000; }
.media-bg video, .media-bg img, .media-bg .slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.media-bg > video, .media-bg > img { transform: scale(var(--zoom, 1)); }
.media-bg .slide { opacity: 0; transition: opacity 1.6s ease; }
.media-bg .slide.is-active { opacity: 1; }
.media-bg .yt-bg {
  position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none;
  width: max(100%, 177.78vh); height: max(100%, 56.25vw);
  transform: translate(-50%, -50%);
}
.media-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,var(--shade, .45)); }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--header-h) + 2rem) var(--pad) 4rem;
  text-align: center;
}
.hero .media-bg { z-index: -1; }
.hero--page { min-height: 72vh; min-height: 72svh; }
.hero-content { max-width: 60rem; text-shadow: 0 2px 18px rgba(0,0,0,.55), 0 0 2px rgba(0,0,0,.35); }
.hero-content .btn { text-shadow: none; }
.hero .eyebrow { color: #e6e6e6; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; width: 1px; height: 46px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.7));
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0%,100% { transform: scaleY(.4); transform-origin: top; opacity: .3 } 50% { transform: scaleY(1); opacity: 1 } }

/* full-bleed feature band */
/* Full-screen sections: exactly one screen tall on every device.
   svh = the visible height with mobile browser bars showing, so nothing hides behind them;
   min-height (not height) lets a section grow on very short screens such as phones in landscape. */
.band {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--header-h) + 1.5rem) var(--pad) 3rem;
  text-align: center;
}
.band .media-bg { z-index: -1; }
.band .hero-content { max-width: 52rem; }
.band .display { font-size: clamp(1.8rem, 1.1rem + 2.8vw, 3.2rem); }
.band--plain { min-height: 70vh; min-height: 70svh; }
/* Short screens (phones in landscape): tighten spacing so full-screen sections still fit in one screen */
@media (max-height: 520px) and (orientation: landscape) {
  .hero, .band { padding: calc(var(--header-h) + .25rem) var(--pad) 1.25rem; }
  .hero .display, .band .display { font-size: clamp(1.4rem, 1rem + 2.2vw, 2rem); }
  .hero-content .eyebrow { margin-bottom: .4rem; font-size: .72rem; }
  .hero-content .rule { margin: .8rem auto; }
  .hero-content .lead { font-size: .88rem; line-height: 1.45; margin-top: .5rem !important; }
  .hero-content .btn { min-height: 40px; padding: .6em 1.5em; }
  .hero-content .btn-row { gap: .6rem; }
  .scroll-cue { display: none; }
}

/* ---------- work grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.work-card {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 3 / 4;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1rem, 2vw, 1.6rem);
  color: #fff; text-decoration: none; background: #000;
}
.work-card .media-bg { z-index: -1; --shade: .62; }
.work-card .media-bg::after { transition: background .45s var(--ease); background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,var(--shade)) 55%); }
.work-card video { transform: scale(1.02); transition: transform 1.2s var(--ease); }
.work-card-artist { display: block; font-size: clamp(.95rem, .9rem + .3vw, 1.15rem); font-weight: 200; letter-spacing: .06em; }
.work-card-title { display: block; font-size: clamp(1.2rem, 1rem + .7vw, 1.6rem); font-weight: 600; line-height: 1.2; }
.work-card-play {
  position: absolute; top: clamp(1rem, 2vw, 1.4rem); right: clamp(1rem, 2vw, 1.4rem);
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  transition: transform .35s var(--ease), background .25s;
}
.work-card-play svg { width: 15px; height: 15px; margin-left: 3px; }
.work-card-tag { position: absolute; top: 1.35rem; left: clamp(1rem, 2vw, 1.6rem); font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: #bdbdbd; }
a.work-card:hover .media-bg::after, a.work-card:focus-visible .media-bg::after { --shade: .15; background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.12) 55%); }
a.work-card:hover video { transform: scale(1.07); }
a.work-card:hover .work-card-play { transform: scale(1.12); background: var(--accent-hover); }

@media (max-width: 1100px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card { aspect-ratio: 16 / 11; }
}

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.about-photo { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: grayscale(.15) contrast(1.05); }
.about-photo::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--line); }
.about-text p { color: #cdcdcd; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { aspect-ratio: 4 / 3.4; max-height: 70vh; }
}

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem); }
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-list a, .contact-list span {
  display: flex; align-items: center; gap: 1rem; min-height: 56px; padding: .6rem 0;
  text-decoration: none; color: #dcdcdc; transition: color .2s;
}
.contact-list a:hover { color: #fff; }
.contact-list svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); }
.social { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.social a {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; color: #cfcfcf;
  transition: background .25s, border-color .25s, color .25s;
}
.social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.social svg { width: 18px; height: 18px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #bdbdbd; }
.field input, .field textarea {
  width: 100%; padding: .9rem 1rem;
  font: 300 1rem/1.5 inherit; font-family: inherit; color: #f0f0f0;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #202020; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #e05555; }
.field-error { min-height: 1.1em; font-size: .8rem; color: #ff8a8a; }
.form-note { grid-column: 1 / -1; margin: 0; font-size: .85rem; color: var(--muted); }
.form-status { grid-column: 1 / -1; margin: 0; font-size: .95rem; }
.form-status:empty { display: none; }
.form-status.is-ok { color: #9be7a6; }
.form-status.is-error { color: #ff8a8a; }
.form.is-sending .btn { opacity: .6; pointer-events: none; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form .btn { justify-self: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } .form .btn { width: 100%; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem; background: #070707; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-inner img { width: 150px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; list-style: none; margin: 0; padding: 0; }
.footer-nav a { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: #a8a8a8; }
.footer-nav a:hover { color: #fff; }
.copyright { width: 100%; margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .82rem; color: #8a8a8a; }

/* ---------- video / embeds ---------- */
.embed {
  position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden;
  background: #000; border-radius: var(--radius);
}
.embed iframe, .embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed video { object-fit: contain; }
.yt-lite { cursor: pointer; border: 0; padding: 0; display: block; }
.yt-lite img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; filter: brightness(.8); }
.yt-lite:hover img { transform: scale(1.03); filter: brightness(.95); }
.yt-lite .play {
  position: absolute; top: 50%; left: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff;
  box-shadow: 0 10px 40px rgba(0,0,0,.5); transition: transform .3s var(--ease), background .2s;
}
.yt-lite:hover .play { transform: translate(-50%, -50%) scale(1.08); background: var(--accent-hover); }
.yt-lite .play svg { width: 24px; height: 24px; margin-left: 4px; }
.yt-lite .yt-label { position: absolute; left: 1rem; bottom: 1rem; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px #000; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
@media (max-width: 760px) { .video-grid { grid-template-columns: 1fr; } }

/* ---------- gallery / lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 6px; }
.gallery--portrait { --cols: 7; }
.gallery a { position: relative; display: block; overflow: hidden; background: var(--surface-2); aspect-ratio: var(--ratio, 16 / 9); border-radius: 2px; }
.gallery--portrait a { --ratio: 9 / 16; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .3s; }
.gallery a:hover img { transform: scale(1.05); }
@media (max-width: 1100px) { .gallery { --cols: 3; } .gallery--portrait { --cols: 4; } }
@media (max-width: 700px) { .gallery { --cols: 2; } .gallery--portrait { --cols: 3; } }

.strip { position: relative; }
.strip-track {
  display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.strip-track::-webkit-scrollbar { display: none; }
.strip-track a { flex: 0 0 auto; height: clamp(220px, 34vw, 440px); scroll-snap-align: start; overflow: hidden; background: var(--surface-2); border-radius: 2px; }
.strip-track img { height: 100%; width: auto; object-fit: cover; transition: transform .7s var(--ease); }
.strip-track a:hover img { transform: scale(1.04); }
.strip-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(0,0,0,.65); color: #fff; transition: background .2s, opacity .2s;
}
.strip-btn:hover { background: var(--accent); }
.strip-btn[disabled] { opacity: 0; pointer-events: none; }
.strip-btn--prev { left: .75rem; }
.strip-btn--next { right: .75rem; }
.strip-btn svg { width: 18px; height: 18px; }
@media (hover: none) { .strip-btn { display: none; } }

.lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: rgba(0,0,0,.94); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  touch-action: pan-y;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(94vw, 1800px); max-height: 86vh; max-height: 86svh; width: auto; object-fit: contain; user-select: none; }
.lightbox-btn {
  position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: background .2s;
}
.lightbox-btn:hover { background: var(--accent); }
.lightbox-btn svg { width: 20px; height: 20px; }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); font-size: .8rem; letter-spacing: .2em; color: #aaa; }
@media (max-width: 600px) {
  .lightbox-prev, .lightbox-next { top: auto; bottom: .8rem; transform: none; }
  .lightbox-count { bottom: 1.9rem; }
}

/* ---------- article / prose ---------- */
.prose { color: #cfcfcf; }
.prose h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); margin-top: 0; }
.prose h3 { font-size: clamp(1.2rem, 1rem + .8vw, 1.55rem); margin-top: 2.2em; }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.4em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--accent); }
.prose li p { margin: 0; }
.prose a { color: #fff; text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--accent-hover); }
.prose blockquote {
  margin: 2rem 0; padding: 1.2rem 1.5rem; border-left: 2px solid var(--accent);
  background: var(--surface-2); border-radius: 0 var(--radius) var(--radius) 0;
}
.prose blockquote p { margin: 0; }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; }
.table-wrap th, .table-wrap td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { font-weight: 500; color: #fff; background: var(--surface-2); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.table-wrap tr:last-child td { border-bottom: 0; }

/* fact cards (case study) */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--bg); padding: clamp(1.4rem, 3vw, 2.2rem); }
.fact h3 { font-size: .8rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-hover); margin: 0 0 1rem; }
.fact ul { margin: 0; padding-left: 1.1rem; }
.fact li { margin-bottom: .4em; }
.fact li::marker { color: var(--accent); }
.fact p:last-child { margin-bottom: 0; }

.credits { columns: 2 280px; column-gap: 3rem; }
.credits-group { break-inside: avoid; margin-bottom: 2rem; }
.credits-group h3 { font-size: .8rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-hover); margin: 0 0 .8rem; }
.credits-group ul { list-style: none; padding: 0; margin: 0; }
.credits-group li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.credits-group li p { margin: 0; }
.credits-group strong { font-weight: 400; color: #9d9d9d; margin-right: .35em; }
.credits-group a { color: #fff; }

/* accordion */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 60px; padding: 1rem 0; cursor: pointer; list-style: none;
  font-weight: 400; color: #f0f0f0; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.6rem; font-weight: 200; color: var(--accent); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 0 1.2rem; color: #c8c8c8; }
.faq .faq-body p { margin: 0; }

/* two-col split */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* next / prev projects */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.pager a {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; min-height: 190px;
  padding: 2rem var(--pad); color: #fff; text-decoration: none; background: var(--surface);
}
.pager a:last-child { text-align: right; align-items: flex-end; }
.pager .media-bg { z-index: -1; --shade: .72; }
.pager .media-bg::after { transition: background .4s; }
.pager a:hover .media-bg::after { background: rgba(0,0,0,.45); }
.pager small { font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: #bbb; margin-bottom: .4rem; }
.pager span { font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem); font-weight: 600; }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager a:last-child { text-align: left; align-items: flex-start; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 404 */
.notfound { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 6rem var(--pad); }

/* ---------- virtual production projects (Pixojam) ---------- */
.vp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vp-grid--featured { grid-template-columns: repeat(4, 1fr); }
.vp-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end; aspect-ratio: 16 / 9;
  padding: clamp(.9rem, 1.6vw, 1.3rem); border: 0; border-radius: 2px;
  background: #000; color: #fff; text-align: left; cursor: pointer; font: inherit;
}
.vp-card[hidden] { display: none; }
.vp-card .media-bg { z-index: -1; }
.vp-card .media-bg::after { background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.1) 100%); transition: opacity .4s; }
.vp-card video, .vp-card img { transition: transform 1s var(--ease); }
.vp-card:hover video, .vp-card:hover img, .vp-card:focus-visible video { transform: scale(1.05); }
.vp-card-meta { display: flex; flex-direction: column; gap: .1rem; }
.vp-card-tag { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: #cfcfcf; margin-bottom: .25rem; }
.vp-card-title { font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); font-weight: 600; line-height: 1.2; }
.vp-card-sub { font-size: .95rem; font-weight: 300; color: #e6e6e6; }
.vp-card-play {
  position: absolute; top: .9rem; right: .9rem; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(178,34,34,.92); color: #fff;
  transition: transform .3s var(--ease), background .2s;
}
.vp-card-play svg { width: 14px; height: 14px; margin-left: 3px; }
.vp-card:hover .vp-card-play { transform: scale(1.12); background: var(--accent-hover); }
@media (max-width: 1100px) { .vp-grid, .vp-grid--featured { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .vp-grid, .vp-grid--featured { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.chip {
  min-height: 42px; padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: #cfcfcf;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; transition: background .2s, border-color .2s, color .2s;
}
.chip span { color: var(--muted); margin-left: .3rem; letter-spacing: 0; }
.chip:hover { border-color: rgba(255,255,255,.35); color: #fff; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip[aria-pressed="true"] span { color: rgba(255,255,255,.8); }
.vp-count { margin: 0 0 1.2rem; font-size: .85rem; color: var(--muted); }
@media (max-width: 600px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
}

/* video player dialog */
.player {
  position: fixed; inset: 0; z-index: 310; display: grid; place-items: center; padding: 4.5rem var(--pad) 2rem;
  background: rgba(0,0,0,.94); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.player.is-open { opacity: 1; visibility: visible; }
.player-inner { width: min(100%, 1280px); }
.player video { width: 100%; max-height: 78vh; max-height: 78svh; background: #000; border-radius: var(--radius); }
.player-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1.5rem; margin-top: 1rem; }
.player-title { margin: 0; font-size: clamp(1.05rem, 1rem + .5vw, 1.4rem); font-weight: 600; color: #fff; }
.player-role { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: #bdbdbd; }
.player-link { color: #fff; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.player .lightbox-close { top: 1rem; right: 1rem; }

/* player stage: self-hosted video or YouTube/Vimeo iframe */
.player-stage video { width: 100%; max-height: 78vh; max-height: 78svh; background: #000; border-radius: var(--radius); display: block; }
.player-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 78vh; max-height: 78svh; background: #000; border-radius: var(--radius); overflow: hidden; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vp-card--static { cursor: default; }
a.vp-card { text-decoration: none; }

/* ---------- before / after wipe ---------- */
.ba-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
@media (max-width: 900px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-single { max-width: 1100px; margin-inline: auto; }
.ba-wrap { margin: 0; }
.ba-wrap figcaption { margin-top: .8rem; font-size: .85rem; letter-spacing: .08em; color: var(--muted); text-align: center; }
.ba {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius);
  background: #000; cursor: ew-resize; user-select: none; -webkit-user-select: none;
  touch-action: pan-y; /* vertical swipes still scroll the page on phones */
}
.ba:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.ba-video { position: absolute; left: 0; width: 100%; height: 200%; object-fit: fill; pointer-events: none; }
.ba-before { top: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-after { top: -100%; }
.ba-label {
  position: absolute; top: .8rem; z-index: 2; pointer-events: none;
  padding: .3rem .8rem; border-radius: 999px; background: rgba(10,10,10,.7);
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: #e6e6e6;
}
.ba-label--before { left: .8rem; }
.ba-label--after { right: .8rem; color: #ff8a8a; }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3; width: 2px; margin-left: -1px; background: rgba(255,255,255,.9); pointer-events: none; box-shadow: 0 0 12px rgba(0,0,0,.4); }
.ba-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; gap: 0;
  background: #fff; color: #111; box-shadow: 0 6px 20px rgba(0,0,0,.45);
}
.ba-handle svg { width: 14px; height: 14px; }
.ba-range { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.video-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .video-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .video-grid--3 { grid-template-columns: 1fr; } }
.yt-lite .yt-label { right: 1rem; line-height: 1.4; text-transform: none; letter-spacing: .02em; font-size: .85rem; }

/* ---------- long-form guide (LED volume stage) ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: 1.2rem; font-size: .8rem; letter-spacing: .06em; color: var(--muted); }
.breadcrumbs a { color: #cfcfcf; text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }
.keyfigs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.keyfig { background: var(--surface); padding: clamp(1.2rem, 2.5vw, 2rem); display: flex; flex-direction: column; gap: .4rem; }
.keyfig-num { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 600; color: #fff; line-height: 1.1; }
.keyfig-label { font-size: .88rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) { .keyfigs { grid-template-columns: repeat(2, 1fr); } }

.article-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.article-layout > * { min-width: 0; } /* let the column shrink; wide diagrams scroll inside .diagram-scroll */
.toc { position: sticky; top: calc(var(--header-h) + 1.5rem); max-height: calc(100vh - var(--header-h) - 3rem); overflow-y: auto; scrollbar-width: thin; }
.toc-details summary { cursor: pointer; list-style: none; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-hover); padding-bottom: .8rem; border-bottom: 1px solid var(--line); margin-bottom: .6rem; }
.toc-details summary::-webkit-details-marker { display: none; }
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list a { display: flex; gap: .7rem; padding: .38rem 0 .38rem .7rem; margin-left: -.7rem; font-size: .86rem; line-height: 1.4; color: #a9a9a9; text-decoration: none; border-left: 2px solid transparent; transition: color .2s, border-color .2s; }
.toc-list a span { min-width: 1.4rem; color: #6f6f6f; font-variant-numeric: tabular-nums; }
.toc-list a:hover, .toc-list a[aria-current] { color: #fff; border-left-color: var(--accent); }
@media (max-width: 1000px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; background: var(--surface); }
  .toc-details summary { border: 0; padding: 0; margin: 0; }
  .toc-details[open] summary { margin-bottom: .6rem; }
  .toc-details summary::after { content: " +"; }
  .toc-details[open] summary::after { content: " \2212"; }
}
.article { max-width: 780px; font-size: 1.05rem; }
.article-intro p:first-child { font-size: 1.2rem; color: #e2e2e2; }
.article-section { padding-top: clamp(2rem, 4vw, 3rem); scroll-margin-top: calc(var(--header-h) + 1rem); }
.article-section h2 { display: flex; align-items: baseline; gap: .8rem; font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2rem); margin-bottom: 1rem; }
.article-no { flex-shrink: 0; font-size: .8rem; font-weight: 500; letter-spacing: .05em; color: var(--accent-hover); border: 1px solid rgba(178,34,34,.6); border-radius: 999px; min-width: 2.2rem; height: 2.2rem; display: inline-grid; place-items: center; transform: translateY(-.2rem); }
.article h3 { font-size: 1.15rem; margin-top: 1.8em; }
.article ul { columns: 2 240px; column-gap: 2.5rem; }
.article ul li { break-inside: avoid; }
.article-figure { margin: 2rem 0; }
.article-figure img { width: 100%; height: auto; border-radius: var(--radius); }
.article-figure figcaption, .diagram figcaption { margin-top: .7rem; font-size: .85rem; color: var(--muted); line-height: 1.5; }
.article-figure--portrait { float: right; width: min(42%, 320px); margin: .4rem 0 1.2rem 2rem; }
@media (max-width: 640px) { .article-figure--portrait { float: none; width: 100%; margin: 2rem 0; } }
.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.figure-pair .article-figure { margin: 0; }
@media (max-width: 640px) { .figure-pair { grid-template-columns: 1fr; } }
.diagram { margin: 2.2rem 0; padding: clamp(1rem, 2.5vw, 1.6rem); background: #0f0f0f; border: 1px solid var(--line); border-radius: var(--radius); }
.diagram-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.diagram svg { display: block; width: 100%; min-width: 560px; height: auto; font-family: 'Roboto', system-ui, sans-serif; }
.author-box { display: grid; grid-template-columns: 180px 1fr; gap: 1.5rem; align-items: center; padding: 1.4rem; margin-bottom: 2.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.author-box img { width: 100%; height: 100%; max-height: 180px; object-fit: cover; border-radius: var(--radius); }
.author-box .eyebrow { margin-bottom: .3rem; font-size: .72rem; }
.author-name { margin: 0; font-size: 1.3rem; font-weight: 600; color: #fff; }
.author-role { margin: .1rem 0 .7rem; font-size: .88rem; color: var(--accent-hover); }
.author-bio { margin: 0; font-size: .95rem; color: #bdbdbd; }
@media (max-width: 640px) { .author-box { grid-template-columns: 1fr; } .author-box img { max-height: 220px; } }
.cta-box { clear: both; margin: 3rem 0 1rem; padding: clamp(1.4rem, 3vw, 2.2rem); border: 1px solid rgba(178,34,34,.55); border-left: 3px solid var(--accent); border-radius: var(--radius); background: linear-gradient(135deg, rgba(178,34,34,.12), rgba(178,34,34,.02)); }
.cta-box .eyebrow { font-size: .72rem; margin-bottom: .5rem; color: var(--accent-hover); }
.cta-box-title { margin: 0 0 .6rem; font-size: clamp(1.2rem, 1rem + .8vw, 1.55rem); font-weight: 600; color: #fff; }
.cta-box .btn-row { margin-top: 1.2rem; }

/* copy protection */
[data-protect] { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
[data-protect] img { -webkit-user-drag: none; }
[data-protect] input, [data-protect] textarea { -webkit-user-select: text; user-select: text; }
.article-copyright { clear: both; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.protect-toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 400; transform: translate(-50%, 1rem); padding: .7rem 1.2rem; border-radius: 999px; background: rgba(20,20,20,.95); border: 1px solid rgba(178,34,34,.6); color: #e6e6e6; font-size: .85rem; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.protect-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* guide: paired illustrations + outbound brand links */
.diagram-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2.2rem 0; }
.diagram-pair .diagram { margin: 0; }
.diagram--small svg { display: block; width: 100%; min-width: 0; height: auto; font-family: 'Roboto', system-ui, sans-serif; }
@media (max-width: 760px) { .diagram-pair { grid-template-columns: minmax(0, 1fr); } }
.article a.ext-link { color: #fff; text-decoration: underline; text-decoration-color: rgba(178,34,34,.8); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article a.ext-link::after { content: '97'; display: inline-block; margin-left: .15em; font-size: .75em; color: var(--accent-hover); transform: translateY(-.1em); }
.article a.ext-link:hover { color: var(--accent-hover); }
