/*
Theme Name: Bardya Pictures
Description: A film studio and editorial theme for Bardya Pictures Ltd.
Version: 1.5.0
Requires at least: 6.8
Requires PHP: 8.1
Text Domain: bardya-pictures
*/

@font-face {
  font-family: Inter;
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #0a0a0c;
  --brand-red: #c2272d;
  --muted: #525256;
  --hairline: #c8c8cc;
  --gutter: clamp(1rem, 3.8vw, 4rem);
  --space: clamp(3.5rem, 9vw, 9rem);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1rem/1.55 Inter, Arial, sans-serif; }
img { display: block; width: 100%; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
button, input, textarea { font: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; line-height: 1.04; letter-spacing: -.055em; }
h1 { font-size: clamp(3rem, 8vw, 8.4rem); }
h2 { font-size: clamp(2.25rem, 5.2vw, 5.6rem); }
h3 { font-size: clamp(1.55rem, 3.2vw, 3rem); }
.wrap { width: min(100% - 2 * var(--gutter), 92rem); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: 1rem; left: 1rem; padding: .65rem 1rem; background: var(--ink); color: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: none; }
.site-header { background: var(--paper); }
.site-nav { border-bottom: 1px solid var(--ink); }
.site-nav ul { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: .78rem .2rem; text-align: center; font-size: .72rem; line-height: 1.1; letter-spacing: .03em; text-decoration: none; text-transform: uppercase; }
.site-nav a:hover, .site-nav [aria-current] { color: var(--brand-red); text-decoration: underline; }
.brand-row { display: flex; justify-content: space-between; align-items: center; padding: .55rem var(--gutter); border-bottom: 1px solid var(--ink); gap: 1rem; }
.brand-row > span { text-align: right; }
.wordmark { display: inline-flex; flex: 0 0 auto; }
.wordmark img { width: 10.4rem; }
.eyebrow, .kicker, .brand-row > span { font-size: .72rem; font-weight: 500; line-height: 1.25; letter-spacing: .055em; text-transform: uppercase; }
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 100svh; overflow: clip; background: var(--ink); }
.hero-stage { grid-area: 1 / 1 / 3 / 2; align-self: start; position: sticky; top: 0; height: 100svh; }
.hero-stage > img { width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
.hero-title { grid-area: 1 / 1; position: relative; z-index: 1; pointer-events: none; }
.hero-title svg { display: block; width: 100%; height: 100%; }
.hero-title text { font: 400 225px Inter, Arial, sans-serif; letter-spacing: -.045em; }
.hero-reveal { grid-area: 2 / 1; }
.hero-caption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .7rem 1rem; padding: .9rem var(--gutter); border-block: 1px solid var(--ink); }
.hero-caption p { font-size: .8rem; }
.hero-caption a { color: var(--brand-red); font-size: .8rem; }
.section { padding-block: var(--space); border-bottom: 1px solid var(--ink); }
.manifesto { padding-block: clamp(2.75rem, 5.5vw, 6rem); }
.manifesto h2 { margin-bottom: clamp(1.5rem, 5vw, 5rem); font-size: clamp(3rem, 11vw, 12rem); line-height: .85; text-transform: uppercase; }
.manifesto h2 span { display: block; }
.manifesto h2 span:last-child { text-align: right; }
.editorial { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .72fr); align-items: center; gap: clamp(1.25rem, 5vw, 6rem); }
.editorial img { aspect-ratio: 16 / 9; object-fit: cover; }
.editorial p { max-width: 37ch; font-size: clamp(1.1rem, 2.1vw, 1.65rem); letter-spacing: -.025em; }
.editorial p + p { margin-top: .9rem; }
.editorial a { display: inline-block; margin-top: 1.05rem; }
.home-film { padding-top: clamp(1.5rem, 4.5vw, 4.5rem); }
.panel { display: flex; justify-content: space-between; align-items: end; gap: 1rem; position: relative; isolation: isolate; min-height: clamp(17rem, 41vw, 41rem); padding: clamp(1rem, 3.5vw, 3.5rem); color: var(--paper); background: var(--ink); overflow: hidden; text-decoration: none; }
.panel img, .panel::after { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel::after { content: ""; background: linear-gradient(0deg, #0a0a0ced, #0a0a0c25 65%, transparent); }
.panel-copy { display: grid; gap: .6rem; }
.panel-title { font-size: clamp(2.7rem, 8.5vw, 8rem); letter-spacing: -.07em; line-height: .91; }
.panel-arrow { display: grid; flex: 0 0 auto; place-items: center; width: clamp(2.35rem, 5vw, 4.2rem); aspect-ratio: 1; border: 1px solid currentColor; font-size: clamp(1.1rem, 2.4vw, 2rem); }
.panel:hover .panel-arrow { background: var(--paper); color: var(--ink); }
.actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.button { display: inline-flex; min-height: 2.85rem; align-items: center; justify-content: center; padding: .55rem 1rem; color: var(--paper); background: var(--brand-red); border: 1px solid var(--brand-red); text-decoration: none; cursor: pointer; }
.button:hover { color: var(--brand-red); background: var(--paper); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem var(--gutter); }
.card { min-width: 0; border-top: 1px solid var(--ink); padding-top: .8rem; }
.card img { aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: .8rem; }
.card-copy h2, .card-copy h3 { margin-block: .65rem; font-size: clamp(1.55rem, 3vw, 2.9rem); }
.card-copy h2 a, .card-copy h3 a { text-decoration: none; }
.card-copy h2 a:hover, .card-copy h3 a:hover { text-decoration: underline; }
.card-copy p:not(.kicker) { color: var(--muted); max-width: 42ch; }
.kicker, .entry a, .editorial a { color: var(--brand-red); }
.page-head { padding-block: clamp(2.5rem, 7vw, 7rem); border-bottom: 1px solid var(--ink); }
.page-head h1 { max-width: 18ch; text-wrap: balance; overflow-wrap: anywhere; }
.page-head p { margin-bottom: .75rem; }
.page-head--photo { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(16rem, 30vw, 30rem); color: var(--paper); background: var(--ink); }
.page-head-image, .page-head--photo::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.page-head-image { object-fit: cover; }
.page-head--photo::after { content: ""; background: linear-gradient(90deg, #0a0a0c99, #0a0a0c26 75%), linear-gradient(0deg, #0a0a0cbf, transparent 75%); }
.page-head--photo .kicker { color: inherit; }
.article { padding-block: clamp(2.5rem, 6vw, 6rem); }
.article { max-width: 52rem; }
.article > * + *, .entry > * + * { margin-top: 1.22rem; }
.entry { overflow-wrap: anywhere; }
.entry :is(h2, h3, h4):not(:first-child) { margin-top: 2.5rem; }
.entry h2 { font-size: clamp(2.1rem, 4.3vw, 3.7rem); }
.entry h3 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
.entry h4 { font-size: 1.125rem; }
.entry :is(ul, ol) { padding-left: 1.4rem; }
.entry blockquote { padding: .5rem 0 .5rem 1.2rem; margin-inline: 0; border-left: 1px solid var(--ink); font-size: 1.12rem; }
.entry cite { display: block; margin-top: .6rem; color: var(--muted); font-size: .875rem; font-style: normal; }
.entry .quote-credit { display: flex; gap: .8rem; align-items: center; }
.entry .quote-credit img { width: 3.25rem; height: 3.25rem; object-fit: cover; }
.entry img { max-height: 38rem; object-fit: contain; object-position: left; }
.entry .founder-portrait { margin-block: 1.9rem; }
.entry details { padding-block: .85rem; border-top: 1px solid var(--hairline); }
.entry details + details { margin-top: 0; }
.entry summary { font-weight: 550; cursor: pointer; }
.entry details p { margin-top: .7rem; }
.entry .press-item { border-top: 1px solid var(--ink); padding-block: 1.5rem; }
.entry .press-item > * + * { margin-top: .8rem; }
.entry .press-item + .press-item { margin-top: 0; }
.home-history { padding-block: clamp(2rem, 5vw, 5rem); }
.home-story > :is(.home-story-row, .home-story-pair, .home-quotes, .home-news-link) { margin-top: 0; }
.home-story-row, .home-story-pair { display: grid; gap: clamp(1.35rem, 5vw, 5rem); padding-block: clamp(2.2rem, 5vw, 5.25rem); border-top: 1px solid var(--ink); }
.home-story-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.home-story-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.home-story :is(.home-story-row, .home-story-pair) h2 { max-width: 14ch; font-size: clamp(2.3rem, 4.85vw, 5.25rem); line-height: .96; text-wrap: balance; }
.home-story-copy { max-width: 66ch; font-size: clamp(1rem, 1.35vw, 1.18rem); }
.home-story-copy > * + * { margin-top: 1rem; }
.home-story-pair figure img { max-height: none; aspect-ratio: 4 / 3; object-fit: cover; object-position: right center; }
.home-story-pair--reverse figure { grid-area: 1 / 1; }
.home-story-pair--reverse figure img { aspect-ratio: 1 / 1; object-position: center; }
.home-story-pair--reverse .home-story-copy { grid-area: 1 / 2; }
.home-quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; padding: 1px; background: var(--hairline); }
.home-quotes blockquote { display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; margin: 0; padding: clamp(1.35rem, 3.5vw, 3.25rem); border: 0; background: var(--paper); }
.home-quotes blockquote p { font-size: clamp(1rem, 1.9vw, 1.45rem); letter-spacing: -.02em; }
.home-news-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: clamp(1.25rem, 3vw, 2.25rem); border-bottom: 1px solid var(--hairline); font-size: clamp(1.55rem, 3.4vw, 3rem); letter-spacing: -.045em; text-decoration: none; }
.home-news-link:hover { text-decoration: underline; }
.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.pagination .page-numbers { display: inline-flex; justify-content: center; align-items: center; min-width: 2.6rem; min-height: 2.6rem; padding-inline: .65rem; border: 1px solid var(--ink); }
.pagination [aria-current] { color: var(--paper); background: var(--ink); }
.contact-form { display: grid; gap: .7rem; margin-top: 2rem; }
.contact-form label { font-weight: 550; }
.contact-form :is(input, textarea) { display: block; width: 100%; padding: .65rem .8rem; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); border-radius: 0; }
.contact-form textarea { min-height: 9rem; resize: vertical; }
.contact-form .button { justify-self: start; }
.contact-form [hidden] { display: none; }
.form-status { padding: .65rem .8rem; border: 1px solid var(--ink); }
.site-footer { color: var(--paper); background: var(--ink); border-top: 4px solid var(--brand-red); }
.footer-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 2rem; min-height: 11rem; padding-block: 2rem; }
.footer-name { font-size: clamp(2rem, 5.5vw, 6rem); line-height: .95; letter-spacing: -.065em; }
.footer-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: .9rem; border-top: 1px solid #746f75; font-size: .75rem; }
.screen-reader-text { clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

@media (max-width: 760px) {
  .editorial { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-title svg { height: 57vw; }
  .home-story-row, .home-story-pair, .home-quotes { grid-template-columns: 1fr; }
  .home-story-pair--reverse :is(figure, .home-story-copy) { grid-area: auto; }
}

@media (max-width: 470px) {
  .site-nav ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-nav li:nth-child(-n+3) { border-bottom: 1px solid var(--hairline); }
  .brand-row { padding-block: .65rem; }
  .brand-row > span { max-width: 17ch; font-size: .62rem; }
  .wordmark img { width: 8.5rem; }
  .cards { grid-template-columns: 1fr; }
  .manifesto h2 { font-size: clamp(3rem, 12vw, 6rem); }
}
