/*
Theme Name:   Blocksy Child (Saiqua)
Template:     blocksy
Version:      1.0.0
Text Domain:  blocksy-child
*/

/* ─── Design system ─────────────────────────────────────── */
:root {
  --color-bg:        #FAFAF8;
  --color-text:      #1C1C1A;
  --color-muted:     #6B6B67;
  --color-border:    #E5E5E1;
  --color-link:      #1C1C1A;

  --font-serif:      'Source Serif 4', 'Georgia', serif;
  --font-sans:       system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --content-width:   720px;
  --wide-width:      1200px;
  --header-height:   64px;

  --space-xs:  clamp(0.5rem,  1vw,  0.75rem);
  --space-sm:  clamp(1rem,    2vw,  1.5rem);
  --space-md:  clamp(2rem,    4vw,  3rem);
  --space-lg:  clamp(4rem,    8vw,  6rem);
  --space-xl:  clamp(6rem,   10vw,  8rem);
}

/* ─── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

img, video { max-width: 100%; height: auto; display: block; }

a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  margin-top: 0;
}

p { margin-top: 0; margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

/* ─── Layout containers ─────────────────────────────────── */
.container {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--space-sm);
}

.container--wide {
  max-width: var(--wide-width);
  margin-inline: auto;
  padding-inline: var(--space-sm);
}

#main-content { min-height: 60vh; }

/* ─── Header ────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header-inner {
  max-width: var(--wide-width);
  margin-inline: auto;
  padding-inline: var(--space-sm);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.site-title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--color-text);
  white-space: nowrap;
  flex-shrink: 0;
}
.site-title:hover { text-decoration: none; opacity: 0.7; }

.site-tagline {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Nav */
.site-nav { display: flex; align-items: center; }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-md);
}

.nav-list li { margin: 0; }

.nav-list a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--color-text);
  letter-spacing: 0.01em;
}
.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current-page-ancestor > a { opacity: 0.5; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--color-text);
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 22px;
  height: 1px;
  background-color: currentColor;
  transition: transform 0.2s;
}
.nav-toggle-icon { position: relative; }
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
}
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after  { top:  6px; }

/* Header offset so content starts below fixed header */
#main-content { padding-top: var(--header-height); }

/* Admin bar pushes fixed header down when logged in */
.admin-bar .site-header { top: 32px; }
.admin-bar #main-content { padding-top: calc(var(--header-height) + 32px); }

@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar #main-content { padding-top: calc(var(--header-height) + 46px); }
}

/* ─── Footer ────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-md);
  margin-top: var(--space-xl);
}

.footer-inner {
  max-width: var(--wide-width);
  margin-inline: auto;
  padding-inline: var(--space-sm);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem var(--space-md);
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-muted);
}

.footer-inner a { color: var(--color-muted); }
.footer-inner a:hover { color: var(--color-text); }

/* ─── Skip link ─────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 200;
  background: var(--color-bg);
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
}

/* ─── Hero video section ────────────────────────────────── */
.hero-video-section {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-height));
  overflow: hidden;
  background-color: #111;
}

.hero-video-container {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Placeholder state — shown when video src is empty */
.hero-video-section.has-no-video {
  background-color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-placeholder-msg {
  color: #555;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-align: center;
  padding: var(--space-sm);
  display: none;
}

.hero-caption {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-sm);
  right: var(--space-sm);
}

.artist-name {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  margin: 0;
  letter-spacing: 0.02em;
}

/* ─── Intro section ─────────────────────────────────────── */
.intro-section {
  padding-block: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.intro-inner {
  max-width: 640px;
  margin-inline: auto;
  padding-inline: var(--space-sm);
}

.intro-text {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.7;
  color: #800000;
  font-weight: 700;
}

/* ─── Projects grid ─────────────────────────────────────── */
.featured-projects-section,
.projects-archive {
  padding-block: var(--space-lg);
}

.projects-grid {
  max-width: var(--wide-width);
  margin-inline: auto;
  padding-inline: var(--space-sm);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.featured-projects-cta {
  text-align: center;
  padding-block: var(--space-md) var(--space-lg);
}

.view-all-work {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.view-all-work:hover {
  opacity: 0.5;
}

.project-card a {
  display: block;
  text-decoration: none;
  color: var(--color-text);
}

.project-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-border);
  margin-bottom: var(--space-xs);
}

.project-card-media img,
.project-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-info { padding-block: var(--space-xs); }

.project-card-title {
  font-size: 1rem;
  font-weight: 400;
  margin: 0 0 0.2em;
  font-family: var(--font-serif);
}

.project-card-year {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* ─── Page header ────────────────────────────────────────── */
.page-header {
  padding-block: var(--space-lg) var(--space-md);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-md);
}

.page-header .container--wide,
.page-header-inner {
  max-width: var(--wide-width);
  margin-inline: auto;
  padding-inline: var(--space-sm);
}

.page-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  margin: 0;
}

.page-subtitle {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-muted);
  margin: 0.4rem 0 0;
  letter-spacing: 0.02em;
}

/* ─── Single project ─────────────────────────────────────── */
.project-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 80vh;
  overflow: hidden;
  background-color: #111;
  margin-bottom: var(--space-md);
}

.project-hero img,
.project-hero video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

#project-401 .project-hero { background-color: #fff; }
#project-401 .project-card-media { background-color: #fff; }
#project-401 .project-card-media img { object-fit: contain; }

.project-hero--placeholder {
  height: 50vh;
  background-color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-family: var(--font-sans);
  font-size: 0.8rem;
}

.project-body {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--space-sm);
  padding-block: var(--space-md);
}

.project-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.project-meta {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: var(--space-sm);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.project-tagline {
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-sm);
}

.project-section { margin-bottom: var(--space-md); }

/* ─── Brotee stories layout ─────────────────────────────── */
.brotee-stories {
  margin-top: var(--space-lg);
}

.brotee-story {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-lg);
}

.brotee-story:first-child {
  margin-top: 0;
}

.story-name {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  margin-bottom: var(--space-md);
}

/* Polaroid row */
.story-polaroids {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.polaroid-frame {
  display: block;
  background: #fff;
  padding: 14px 14px 52px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.13), 0 1px 4px rgba(0,0,0,0.08);
  flex: 0 1 240px;
  max-width: 280px;
  margin: 0;
}

.story-polaroids--solo .polaroid-frame {
  flex-basis: 300px;
  max-width: 320px;
}

.polaroid-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* Story text */
.story-text {
  margin-bottom: var(--space-md);
}

.story-text p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1em;
}

.story-quote {
  border-left: 2px solid var(--color-border);
  margin: var(--space-md) 0 var(--space-md) 0;
  padding-left: var(--space-sm);
}

.story-quote p {
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-muted);
  margin-bottom: 0.75em;
}

.story-quote p:last-child {
  margin-bottom: 0;
}

/* Documentary photo grid */
.story-docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: var(--space-md);
}

.story-docs-grid a {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.story-docs-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.story-docs-grid a:hover img {
  opacity: 0.85;
}

/* ─── Uttarsury page layout ─────────────────────────────── */
.uttar-section {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.uttar-section:last-child {
  border-bottom: none;
}

.uttar-heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: var(--space-md);
}

.uttar-figure {
  margin: 0 0 var(--space-sm);
}

.uttar-figure a { display: block; text-decoration: none; }

.uttar-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.uttar-caption {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 0.4em;
}

.uttar-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.uttar-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.uttar-embed-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.uttar-embed-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.uttar-video video {
  width: 100%;
  height: auto;
  display: block;
}

.uttar-video-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-bottom: 0.3em;
}

.uttar-quote {
  border-left: 2px solid var(--color-border);
  padding-left: var(--space-sm);
  margin: var(--space-sm) 0;
  font-style: italic;
  color: var(--color-muted);
}

.uttar-credit {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: var(--space-sm);
}

@media (max-width: 540px) {
  .uttar-pair,
  .uttar-trio {
    grid-template-columns: 1fr;
  }
}

/* ─── Praxinoscope sequence ─────────────────────────────── */
.praxi-sequence {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.praxi-strip {
  width: 100%;
  overflow: hidden;
  cursor: zoom-in;
}

.praxi-strip a {
  display: block;
  text-decoration: none;
}

.praxi-strip img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.45s ease, opacity 0.2s;
  transform-origin: center center;
}

.praxi-strip a:hover img {
  transform: scale(1.06);
  opacity: 0.92;
}

.praxi-filmstrip {
  display: flex;
  flex-direction: row;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.praxi-filmstrip::-webkit-scrollbar {
  height: 3px;
}

.praxi-filmstrip::-webkit-scrollbar-track {
  background: var(--color-border);
}

.praxi-filmstrip::-webkit-scrollbar-thumb {
  background: var(--color-muted);
}

.praxi-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  overflow: hidden;
  scroll-snap-align: start;
}

.praxi-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.praxi-thumb img:hover {
  opacity: 0.75;
}

/* ─── GKG infographics & banner ─────────────────────────── */
.gkg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.gkg-item {
  overflow: hidden;
}

.gkg-item a {
  display: block;
  cursor: zoom-in;
  text-decoration: none;
}

.gkg-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.45s ease, opacity 0.2s;
  transform-origin: center center;
}

.gkg-item a:hover img {
  transform: scale(1.06);
  opacity: 0.9;
}

.brotee-banner {
  margin-top: var(--space-lg);
  margin-inline: calc(var(--space-sm) * -1);
  overflow: hidden;
}

.brotee-banner a {
  display: block;
  cursor: zoom-in;
  text-decoration: none;
}

.brotee-banner img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease, opacity 0.2s;
  transform-origin: center center;
}

.brotee-banner a:hover img {
  transform: scale(1.35);
  opacity: 0.95;
}

@media (max-width: 480px) {
  .gkg-grid {
    grid-template-columns: 1fr;
  }
}

.story-credit {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-sm);
}

.story-lead-image {
  margin-bottom: var(--space-sm);
}

.story-lead-image img {
  width: 100%;
  height: auto;
  display: block;
}

.brotee-story--first {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

@media (max-width: 480px) {
  .story-docs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .polaroid-frame {
    padding: 10px 10px 40px;
  }
}

.project-section-heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: var(--space-sm);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

/* Process gallery */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.project-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Collaborators callout */
.project-collaborators {
  font-size: 0.9rem;
  color: var(--color-muted);
  font-family: var(--font-sans);
}

/* Related writing */
.related-writing-list { list-style: none; padding: 0; margin: 0; }
.related-writing-list li { margin-bottom: 0.4rem; }
.related-writing-list a { font-family: var(--font-sans); font-size: 0.9rem; }

/* ─── Studios archive ────────────────────────────────────── */
.studios-grid {
  max-width: var(--wide-width);
  margin-inline: auto;
  padding-inline: var(--space-sm);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-md);
  padding-block: var(--space-lg);
}

.studio-card a {
  display: block;
  text-decoration: none;
  color: var(--color-text);
}

.studio-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--color-border);
  margin-bottom: var(--space-sm);
}

.studio-card-media img { width: 100%; height: 100%; object-fit: cover; }

.studio-card-name {
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 0 0.3rem;
}

.studio-card-tagline {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0;
}

/* ─── Single studio ──────────────────────────────────────── */
.studio-body {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--space-sm);
  padding-block: var(--space-md);
}

.studio-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 0.4rem;
}

.studio-tagline {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-muted);
  margin-bottom: var(--space-md);
}

.studio-hero {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background-color: #fff;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-hero img { width: 100%; height: 100%; object-fit: contain; }

/* ─── Writing archive ────────────────────────────────────── */
.writing-list {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--space-sm);
  padding-block: var(--space-lg);
  list-style: none;
  padding-left: var(--space-sm);
}

.writing-item {
  padding-block: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.writing-item:first-child { border-top: 1px solid var(--color-border); }

.writing-title {
  font-size: 1rem;
  font-weight: 400;
  margin: 0 0 0.25rem;
}

.writing-title a { text-decoration: none; }
.writing-title a:hover { text-decoration: underline; }

.writing-meta {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 0.3rem;
}

.writing-description {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
}

/* ─── Single writing ─────────────────────────────────────── */
.writing-single {
  max-width: var(--content-width);
  margin-inline: auto;
  padding: var(--space-lg) var(--space-sm);
}

.writing-single-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
}

.writing-single-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  margin: 0 0 0.4rem;
}

.writing-single-body {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.writing-single-link { margin-bottom: var(--space-lg); }

/* ─── About page ─────────────────────────────────────────── */
.about-layout {
  max-width: var(--wide-width);
  margin-inline: auto;
  padding-inline: var(--space-sm);
  padding-block: var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-lg);
  align-items: start;
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about-portrait .portrait-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-muted);
  text-align: center;
}

.about-bio { font-size: 1rem; line-height: 1.8; }

.cv-download {
  display: inline-block;
  margin-top: var(--space-sm);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  border: 1px solid var(--color-text);
  padding: 0.5rem 1.25rem;
  text-decoration: none;
  color: var(--color-text);
}
.cv-download:hover { background-color: var(--color-text); color: var(--color-bg); text-decoration: none; }

.about-sections {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--space-sm);
  padding-bottom: var(--space-xl);
}

.about-section { margin-bottom: var(--space-md); }

.about-section-heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
  margin-bottom: var(--space-sm);
}

.cv-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.cv-table td { padding: 0.4rem 0; vertical-align: top; }
.cv-table td:first-child {
  font-family: var(--font-sans);
  color: var(--color-muted);
  width: 80px;
  padding-right: 1.5rem;
  white-space: nowrap;
}

/* ─── Contact page ───────────────────────────────────────── */
.contact-body {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--space-sm);
  padding-block: var(--space-lg);
}

.contact-group { margin-bottom: var(--space-md); }

.contact-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  display: block;
  margin-bottom: 0.4rem;
}

.contact-value {
  font-size: 1.05rem;
}

.contact-note {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 0.4rem;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-sm);
  }

  .site-nav.is-open { display: block; }

  .nav-list {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .nav-list a { font-size: 1rem; padding-block: 0.4rem; }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-portrait { order: -1; max-width: 240px; }
}

@media (max-width: 480px) {
  .projects-grid { grid-template-columns: 1fr; }
  .studios-grid  { grid-template-columns: 1fr; }
}

/* ─── Animation / Film archive ──────────────────────────── */
.films-archive {
  max-width: var(--content-width);
  margin-inline: auto;
  padding: var(--space-lg) var(--space-md);
}

.film-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.film-item__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-md);
  text-decoration: none;
  color: inherit;
}

.film-item__still {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-border);
}

.film-item__still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.film-item__inner:hover .film-item__still img { opacity: 0.85; }

.film-item__play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-bg);
  opacity: 0;
  transition: opacity 0.2s;
}

.film-item__inner:hover .film-item__play-icon { opacity: 1; }

.film-item__still--placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-border);
}

.film-item__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-xs);
}

.film-item__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0;
}

.film-item__meta {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-muted);
  margin: 0;
}

/* ─── Illustrations scroll strip ────────────────────────── */
.illus-section {
  padding-block: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.illus-section__header {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
  margin-bottom: var(--space-md);
}

.illus-section__title {
  font-size: var(--wp--custom--typography--font-size--huge, clamp(2.25rem, 4vw, 2.75rem));
  font-weight: 400;
  margin: 0;
}

.illus-track-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  padding-bottom: var(--space-sm);
}

.illus-track-wrap::-webkit-scrollbar { height: 4px; }
.illus-track-wrap::-webkit-scrollbar-track { background: transparent; }
.illus-track-wrap::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }

.illus-track {
  display: flex;
  flex-direction: row;
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding-inline: var(--space-md);
  width: max-content;
}

.illus-item {
  flex: 0 0 auto;
  height: 340px;
}

.illus-item img {
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
  object-fit: cover;
  border-radius: 2px;
}

/* ─── Single film ────────────────────────────────────────── */
.film-single { padding-block: var(--space-lg); }

.film-embed-area {
  max-width: 960px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.film-embed-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.film-embed-wrap iframe,
.film-embed-wrap object,
.film-embed-wrap embed,
.film-embed-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.film-still {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 640px) {
  .film-item__inner { grid-template-columns: 1fr; }
  .film-item__still { aspect-ratio: 16/9; }
}

/* Spinoscope inline disc animation */
.spinoscope-disc-video {
  display: block;
  width: min(360px, 100%);
  height: auto;
  margin: 2rem auto;
}
