:root {
  color-scheme: light;
  --paper: #faf5ee;
  --white: #fffaf4;
  --ink: #271e1a;
  --muted: #65564e;
  --accent: #771e34;
  --accent-dark: #591427;
  --border: #e3d6ca;
  --soft: #f3e8dd;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: inherit; }
a:hover { color: var(--accent); }
button, input { font: inherit; }
button { cursor: pointer; }
img, video { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.13; }
:focus-visible { outline: 2px solid #9d3c53; outline-offset: 4px; }
svg { display: block; width: 20px; height: 20px; flex: none; }
.shell { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: 10px; left: 12px; transform: translateY(-180%); padding: 10px 16px; background: var(--white); }
.skip:focus { transform: none; }

.topbar { border-bottom: 1px solid var(--border); }
.topbar-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; font: 700 19px/1.2 var(--serif); }
.brand strong { color: var(--accent); }
.topbar nav, .footer nav { display: flex; align-items: center; gap: 30px; }
.topbar nav a, .footer nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
.topbar nav a:hover, .topbar nav a[aria-current], .footer nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.menu-toggle { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 10px 17px; border: 1px solid transparent; border-radius: 7px; font-size: 14px; font-weight: 700; text-decoration: none; }
.button svg { width: 17px; height: 17px; }
.sign-in { min-height: 40px; background: transparent; border-color: #d5c1b3; color: var(--accent); white-space: nowrap; }
.sign-in:hover { background: var(--soft); }
.primary { color: #fff7ef; background: var(--accent); }
.primary:hover { color: #fff7ef; background: var(--accent-dark); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.13fr); gap: clamp(34px, 5.3vw, 78px); align-items: center; padding-block: clamp(44px, 5.2vw, 79px) 55px; }
.hero h1 { font: 400 clamp(62px, 7.2vw, 114px)/.91 var(--serif); letter-spacing: -.075em; }
.hero h1 em { color: var(--accent); font-weight: 400; }
.hero-lede { max-width: 455px; margin: 26px 0 30px; color: var(--muted); font-size: clamp(16px, 1.45vw, 19px); line-height: 1.5; }
.hero-visual { border-radius: 13px; overflow: hidden; background: #302017; box-shadow: 0 22px 50px #54312026; }
.hero-media { position: relative; aspect-ratio: 1.10; background: #2e211b; }
.hero-poster, .hero-video { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; }
.hero-video { object-fit: contain; background: #1b1310; }
.hero-play { position: absolute; left: 25px; bottom: 24px; display: flex; align-items: center; gap: 8px; padding: 10px 15px 10px 12px; min-height: 42px; border: 1px solid #ffffff76; border-radius: 6px; background: #2c201be8; color: #fff6e9; font-size: 13px; font-weight: 700; }
.hero-play:hover { background: var(--accent-dark); }
.hero-visual figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 19px; color: #f4dfcb; font: 10px/1.4 ui-monospace, monospace; letter-spacing: .09em; }

.casting { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 17px; }
.casting-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.casting h2 { font: 700 21px/1.15 var(--serif); }
.text-button { border: 0; padding: 4px 0; color: var(--accent); background: transparent; font-size: 13px; font-weight: 700; text-underline-offset: 4px; text-decoration: underline; }
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.role { min-width: 0; border-radius: 8px; border: 1px solid var(--border); background: #f8eee5; padding: 9px; }
.role-heading { display: flex; align-items: center; gap: 8px; padding-bottom: 9px; }
.role-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 5px; color: var(--accent); background: #ead9cd; }
.role-icon svg { width: 16px; height: 16px; }
.role h3 { font-size: 13px; }
.role p { color: var(--muted); font-size: 11px; line-height: 1.35; margin-top: 3px; }
.picker { position: relative; }
.pick { min-height: 43px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px dashed #bfa99a; border-radius: 6px; background: #fff8f1; color: #543d33; font-size: 12px; font-weight: 700; }
.pick svg { width: 14px; height: 14px; }
.pick:hover { border-color: var(--accent); color: var(--accent); }
.role-image { aspect-ratio: 16/9; width: 100%; object-fit: cover; border-radius: 6px; }
.has-photo .picker { display: flex; flex-direction: column; gap: 7px; }
.has-photo .pick { order: 1; }
.icon-button { display: grid; place-items: center; color: var(--ink); border: 1px solid var(--border); border-radius: 50%; background: var(--white); width: 32px; height: 32px; padding: 0; }
.icon-button svg { width: 16px; height: 16px; }
.icon-button:hover { background: var(--soft); }
.remove { position: absolute; top: 5px; right: 5px; }
.create-button { margin-top: 11px; width: 100%; min-height: 44px; position: relative; }
.create-button svg:last-child { position: absolute; right: 13px; }
.formats { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 9px; color: var(--muted); font-size: 11px; text-align: center; }
.formats svg { width: 13px; height: 13px; }
.role .file-error, .form-status { color: var(--accent); margin-top: 8px; font-size: 12px; font-weight: 700; }

.examples { border-top: 1px solid var(--border); padding-block: 42px 60px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.section-heading h2, .faq h2 { font: 400 clamp(32px, 4vw, 54px)/1.05 var(--serif); letter-spacing: -.045em; }
.section-heading p { margin-top: 9px; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; }
.video-wrap { position: relative; aspect-ratio: 16/10; background: #2b1b16; border-radius: 8px; overflow: hidden; }
.gallery-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; color: #fff5eb; background: #2e1a15d6; border: 1px solid #ffffff85; border-radius: 50%; width: 42px; height: 42px; }
.gallery-play:hover { background: var(--accent-dark); }
.video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.video-error { position: absolute; left: 8px; right: 8px; top: 8px; padding: 6px 9px; border-radius: 5px; font-size: 12px; color: white; background: #4f1926; }
.gallery figcaption { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; padding-top: 10px; }
.gallery h3 { font: 700 18px/1.2 var(--serif); }
.gallery p { margin-top: 3px; font-size: 12px; color: var(--muted); }
.gallery .video-error { color: white; }
.time { font: 11px/1.5 ui-monospace, monospace; color: var(--muted); }
.guide-section { border-block: 1px solid var(--border); background: #f3e9df; padding: 56px 0; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.guide-grid article { padding: 23px; border-radius: 8px; background: var(--white); border: 1px solid var(--border); }
.guide-grid svg { color: var(--accent); margin-bottom: 15px; width: 23px; height: 23px; }
.guide-grid h3 { font: 700 22px/1.1 var(--serif); margin-bottom: 8px; }
.guide-grid p { color: var(--muted); }
.inline-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); text-underline-offset: 4px; font-weight: 700; }
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 25px; padding-block: 64px; }
.faq details { padding: 15px 4px; border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin-top: 8px; color: var(--muted); }

.footer { border-top: 1px solid var(--border); background: #f6ede4; }
.footer-inner { display: flex; justify-content: space-between; gap: 25px; align-items: center; padding-block: 32px; }
.footer .brand { font-size: 17px; }
.footer p { margin: 5px 0 0 43px; color: var(--muted); font-size: 13px; }

.content { padding-block: clamp(48px, 7vw, 100px); min-height: 65vh; }
.content-hero, .prose { max-width: 740px; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 700; }
.content h1 { font: 400 clamp(44px, 6vw, 79px)/1 var(--serif); letter-spacing: -.055em; margin-top: 12px; }
.content-hero > p:last-child { color: var(--muted); margin-top: 16px; font-size: 18px; }
.prose { margin-top: 32px; }
.prose h2 { font: 700 25px/1.15 var(--serif); margin-block: 24px 8px; }
.prose p + p { margin-top: 16px; }
.prose li + li { margin-top: 6px; }
.prose a:not(.button, .article-card) { color: var(--accent); text-underline-offset: 3px; }
.prose > .button { margin-top: 18px; }
.prose .casting h2 { margin: 0; }
.prose .casting { max-width: 550px; }
.article-card, .plan { display: block; border: 1px solid var(--border); background: var(--white); border-radius: 10px; padding: 22px; text-decoration: none; max-width: 540px; }
.article-card { position: relative; padding-right: 55px; }
.article-card:hover { border-color: #ba8f94; }
.article-card h2, .plan h2 { margin-top: 0; }
.article-card svg { position: absolute; right: 21px; top: 24px; color: var(--accent); }
.article-card p { color: var(--muted); }
.plan .price { font: 400 52px/1.1 var(--serif); color: var(--accent); }
.plan ul { padding-left: 19px; }

dialog { width: min(440px, calc(100% - 30px)); padding: 0; border-radius: 12px; border: 1px solid var(--border); background: var(--white); color: var(--ink); box-shadow: 0 16px 80px #24120b66; }
dialog::backdrop { background: #241810ab; }
.dialog-inner { padding: 30px; position: relative; }
.dialog-close { position: absolute; top: 12px; right: 12px; }
.dialog-inner h2 { font: 700 27px/1.2 var(--serif); margin-right: 20px; }
.dialog-inner p { color: var(--muted); margin-block: 12px 18px; }

@media (max-width: 1060px) {
  .shell { width: calc(100% - 58px); }
  .hero { gap: 30px; }
  .hero-media { aspect-ratio: .95; }
  .hero h1 { font-size: clamp(57px, 8.5vw, 91px); }
  .topbar nav { gap: 18px; }
}
@media (max-width: 790px) {
  .shell { width: calc(100% - 36px); }
  .topbar-inner { min-height: 64px; gap: 10px; }
  .topbar .brand { margin-right: auto; }
  .topbar .brand img { width: 32px; height: 32px; }
  .topbar .brand span { font-size: 17px; }
  .sign-in { order: 1; padding-inline: 10px; min-height: 36px; font-size: 12px; }
  .menu-toggle { display: grid; order: 2; place-items: center; width: 36px; height: 36px; padding: 0; background: transparent; color: var(--accent); border: 1px solid var(--border); border-radius: 6px; }
  .topbar nav { display: none; position: absolute; z-index: 2; top: calc(100% + 5px); right: 0; flex-direction: column; align-items: stretch; gap: 0; min-width: 165px; background: var(--white); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 10px 20px #341b1020; }
  .menu-toggle[aria-expanded="true"] + nav { display: flex; }
  .topbar nav a { padding: 9px 15px; }
  .menu-toggle[hidden] + nav { display: flex; position: static; flex-wrap: wrap; flex-direction: row; min-width: auto; box-shadow: none; border: 0; }
  .menu-toggle[hidden] + nav a { padding: 5px; }
  .hero { grid-template-columns: 1fr; padding-block: 34px 36px; }
  .hero h1 { font-size: clamp(58px, 11.5vw, 84px); }
  .hero-lede { margin-block: 19px 22px; }
  .hero-media { aspect-ratio: 1.36; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; }
  .guide-grid { gap: 10px; }
  .guide-grid article { padding: 15px; }
  .faq { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 490px) {
  .hero { gap: 22px; }
  .hero h1 { font-size: clamp(53px, 12vw, 68px); }
  .hero-play { left: 12px; bottom: 12px; }
  .hero-visual figcaption { padding: 10px 12px; font-size: 9px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .guide-grid { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 16px; }
  .footer nav { gap: 15px; flex-wrap: wrap; }
  .casting { padding: 13px; }
  .role-heading { gap: 6px; }
  .role h3 { font-size: 12px; }
  .role p { font-size: 10px; }
  .role-icon { width: 23px; height: 23px; flex-basis: 23px; }
  .role-icon svg { width: 14px; height: 14px; }
  .formats { font-size: 10px; }
}
