@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #070707;
  --panel: #101010;
  --panel-2: #171717;
  --line: #272727;
  --text: #ffffff;
  --muted: #a7a7a7;
  --soft: #6f6f6f;
  --accent: #000;
  --accent-2: #5f55d8;
  --green: #37d69a;
  --orange: #e9b15d;
  --radius: 18px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(139, 125, 255, 0.2), transparent 35%),
    linear-gradient(180deg, #070707 0%, #0c0c0c 100%);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 60px;
  background: rgba(7, 7, 7, 0.62);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
}

.logo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 13px;
  color: var(--muted);
  transition: 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 150px 60px 90px;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.88), rgba(0,0,0,0.45)),
    url("assets/DSC00262.JPG");
  background-size: cover;
  background-position: center;
}

.hero-content {
  width: 100%;
  max-width: 920px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  color: #9a884f;
  margin-bottom: 18px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(52px, 9vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.07em;
  margin-bottom: 30px;
}

h1 span,
.section-head h2 span {
  color: #9a884f;
}

.hero-desc {
  max-width: 620px;
  color: rgba(255,255,255,0.76);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 34px;
}

.hero-actions,
.form-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  color: white;
  background: #141412;
  border-color: #99884f;
}

.btn-primary:hover {
  background: #99884f;
  border-color: #99884f;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  color: white;
  background: #141412;
  border-color: #8b7dff;
}

.btn-secondary:hover {
  background: #8b7dff;
  border-color: #8b7dff;
}

.btn-secondary:active {
  transform: scale(0.98);
}

.section {
  padding: 110px 60px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.section-sub {
  color: var(--muted);
  line-height: 1.7;
  margin-top: 16px;
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card {
  display: block;
  position: relative;
  height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.08);
  transition: transform 0.6s ease;
}

.project-card:hover img {
  transform: scale(1.06);
}

.overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px;
  background: linear-gradient(transparent, rgba(0,0,0,0.92));
}

.overlay p {
  color: #9a884f;
  font-size: 12px;
  margin-bottom: 8px;
}

.overlay h3 {
  font-size: 26px;
}

.overlay span {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.22);
}

.portfolio-page {
  background:
    radial-gradient(circle at 80% 0%, rgba(154,136,79,0.16), transparent 34%),
    linear-gradient(180deg, #070707 0%, #0c0c0c 100%);
}

.portfolio-header {
  position: sticky;
  top: 0;
}

.portfolio-main {
  padding-top: 90px;
}

.portfolio-hero {
  min-height: 62vh;
  display: flex;
  align-items: end;
  padding: 140px 60px 70px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.92)),
    var(--portfolio-image);
  background-size: cover;
  background-position: center;
}

.portfolio-hero-content {
  max-width: 860px;
}

.portfolio-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #d9cc8a;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.portfolio-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: #9a884f;
}

.portfolio-hero h1 {
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.07em;
  margin-bottom: 24px;
}

.portfolio-hero p {
  max-width: 680px;
  color: rgba(255,255,255,0.76);
  font-size: 17px;
  line-height: 1.75;
}

.portfolio-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 26px 60px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(7,7,7,0.78);
}

.portfolio-toolbar p {
  color: var(--muted);
  font-size: 14px;
}

.portfolio-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.portfolio-nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  padding: 9px 14px;
  font-size: 13px;
  transition: 0.2s ease;
}

.portfolio-nav a:hover,
.portfolio-nav a.active {
  color: white;
  border-color: #9a884f;
  background: rgba(154,136,79,0.12);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.portfolio-item {
  grid-column: span 4;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #0a0a0a;
}

.portfolio-item.wide {
  grid-column: span 8;
}

.portfolio-item.tall {
  grid-row: span 2;
}

.portfolio-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  background: #111;
  filter: saturate(0.82) contrast(1.05);
}

.portfolio-item.wide .portfolio-media {
  aspect-ratio: 16 / 9;
}

.portfolio-caption {
  padding: 16px;
}

.portfolio-caption span {
  color: #9a884f;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.portfolio-caption h3 {
  font-size: 18px;
  margin: 7px 0 6px;
}

.portfolio-caption p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.portfolio-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed rgba(255,255,255,0.18);
  background:
    linear-gradient(135deg, rgba(139,125,255,0.08), transparent 45%),
    #0a0a0a;
}

.portfolio-soon-panel {
  position: relative;
  z-index: 2;
  margin-bottom: 18px;
  border: 1px solid rgba(154,136,79,0.35);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(154,136,79,0.16), transparent 42%),
    rgba(16,16,16,0.9);
  padding: clamp(26px, 5vw, 48px);
}

.portfolio-soon-label {
  width: fit-content;
  color: #d9cc8a;
  border: 1px solid rgba(154,136,79,0.36);
  border-radius: 999px;
  background: rgba(154,136,79,0.1);
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.portfolio-soon-panel h2 {
  max-width: 760px;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin-bottom: 18px;
}

.portfolio-soon-panel p:not(.portfolio-soon-label) {
  max-width: 680px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 26px;
}

.portfolio-grid-muted {
  opacity: 0.58;
  filter: grayscale(1);
}

.portfolio-placeholder .portfolio-empty {
  min-height: 220px;
}

.portfolio-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(16,16,16,0.84);
  padding: clamp(24px, 5vw, 46px);
}

.portfolio-cta h2 {
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.portfolio-cta p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 14px;
}

.process-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0));
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 18px;
  align-items: start;
}

.workflow-list {
  display: grid;
  gap: 12px;
}

.workflow-step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10,10,10,0.72);
  padding: 18px;
}

.workflow-step span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #d9cc8a;
  background: rgba(154,136,79,0.12);
  border: 1px solid rgba(154,136,79,0.34);
  font-size: 12px;
  font-weight: 700;
}

.workflow-step h3,
.package-detail h3 {
  font-size: 20px;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.workflow-step p,
.package-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.package-explorer {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(16,16,16,0.86);
  padding: 16px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.28);
}

.package-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  background: #090909;
  margin-bottom: 16px;
}

.package-option {
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  padding: 12px 8px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: 0.2s ease;
}

.package-option:hover {
  color: white;
  background: rgba(154,136,79,0.1);
}

.package-option.active,
.package-option[aria-selected="true"] {
  color: white;
  background: var(--panel-2);
  box-shadow: 0 0 0 2px rgba(154,136,79,0.26);
}

.package-detail {
  display: none;
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(139,125,255,0.1), transparent 35%),
    #0a0a0a;
  padding: 24px;
}

.package-detail.active {
  display: block;
}

.package-label {
  color: #9a884f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.package-detail ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
  padding-left: 18px;
  color: rgba(255,255,255,0.84);
  line-height: 1.55;
}

.package-detail li::marker {
  color: var(--accent);
}

.system-card {
  width: 100%;
  max-width: 820px;
  background: rgba(16,16,16,0.84);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.35);
}

.tab-bar {
  display: flex;
  gap: 8px;
  background: #090909;
  padding: 6px;
  border-radius: 18px;
  margin-bottom: 22px;
}

.tab {
  flex: 1;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  padding: 13px 10px;
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s ease;
  font-weight: 500;
}

.tab:hover {
  color: var(--text);
  background: rgba(139, 125, 255, 0.08);
}

.tab.active,
.tab[aria-selected="true"] {
  color: white;
  background: var(--panel-2);
  box-shadow: 0 0 0 2px rgba(139, 125, 255, 0.28);
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.progress-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 28px;
}

.step-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #333;
}

.step-dot.done {
  background: var(--green);
}

.step-dot.active {
  width: 34px;
  background: var(--accent);
}

#step-label {
  margin-left: 8px;
  color: var(--soft);
  font-size: 12px;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-step h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.form-step p {
  color: var(--muted);
  margin-bottom: 24px;
}

label,
.field-block {
  display: block;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
}

input,
textarea,
select {
  width: 100%;
  margin-top: 8px;
  background: #0a0a0a;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 15px;
  color: white;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(139, 125, 255, 0.12);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 10px;
}

.option {
  border: 1px solid var(--line);
  background: #0a0a0a;
  color: var(--muted);
  border-radius: 14px;
  padding: 13px 10px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: 0.2s ease;
}

.option:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.option.selected {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(139, 125, 255, 0.28);
}

.option.selected::before {
  content: "✓ ";
  font-weight: 700;
}

.form-nav {
  justify-content: space-between;
  margin-top: 28px;
}

.form-status {
  min-height: 23px;
}

.empty-state {
  text-align: center;
  padding: 54px 20px;
}

.empty-state i {
  display: block;
  color: var(--soft);
  font-size: 46px;
  margin-bottom: 14px;
}

.empty-state p,
.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.hidden {
  display: none;
}

.breakdown-output {
  display: grid;
  gap: 14px;
}

.breakdown-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #0a0a0a;
}

.breakdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel-2);
  padding: 14px 16px;
}

.breakdown-header i {
  color: var(--accent);
  font-size: 19px;
}

.breakdown-header h3 {
  font-size: 15px;
}

.breakdown-body {
  padding: 16px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.breakdown-row:last-child {
  border-bottom: 0;
}

.breakdown-row span:first-child {
  color: var(--muted);
  min-width: 140px;
}

.breakdown-row strong {
  text-align: right;
}

.pill {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(139,125,255,0.14);
  color: #c9c3ff;
  font-size: 12px;
  margin: 4px 4px 4px 0;
}

.pill.green {
  color: #b8ffdf;
  background: rgba(55,214,154,0.14);
}

.pill.orange {
  color: #ffd9a6;
  background: rgba(233,177,93,0.14);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0a0a0a;
  padding: 18px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.metric strong {
  font-size: 24px;
}

.project-list {
  display: grid;
  gap: 10px;
}

.project-row {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  background: #0a0a0a;
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  transition: 0.2s ease;
}

.project-row:hover {
  border-color: var(--accent);
  background: rgba(139, 125, 255, 0.06);
}

.project-row.active {
  border-color: var(--accent);
  background: rgba(139, 125, 255, 0.14);
}

.project-row-completed {
  opacity: 0.48;
  filter: grayscale(1);
}

.project-row-completed .status {
  color: #d7d7d7;
  background: rgba(255, 255, 255, 0.08);
}

.status {
  border-radius: 999px;
  background: rgba(139,125,255,0.14);
  color: #c9c3ff;
  padding: 5px 9px;
  font-size: 11px;
}

.project-info {
  flex: 1;
}

.project-info strong {
  display: block;
  font-size: 14px;
}

.project-info span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.about-text {
  max-width: 75ch;
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-links a {
  width: fit-content;
  font-size: clamp(12px, 3vw, 20px);
  letter-spacing: -0.05em;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: 0.2s ease;
}

.contact-links a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.footer {
  padding: 32px 60px;
  color: var(--soft);
  border-top: 1px solid var(--line);
}

#completeProjectBtn:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 900px) {
  .site-header {
    padding: 18px 22px;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .section {
    padding-left: 22px;
    padding-right: 22px;
  }

  .projects,
  .process-grid,
  .portfolio-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .portfolio-hero,
  .portfolio-toolbar {
    padding-left: 22px;
    padding-right: 22px;
  }

  .portfolio-toolbar,
  .portfolio-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .portfolio-item,
  .portfolio-item.wide {
    grid-column: span 1;
  }

  .project-card {
    height: 420px;
  }

  .option-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .package-detail {
    min-height: auto;
  }

  .breakdown-row {
    flex-direction: column;
    gap: 5px;
  }

  .breakdown-row strong {
    text-align: left;
  }

  .footer {
    padding: 28px 22px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 130px;
  }

  .hero-actions,
  .form-nav,
  .tab-bar,
  .package-tabs {
    flex-direction: column;
  }

  .package-tabs {
    display: flex;
  }

  .option-grid {
    grid-template-columns: 1fr;
  }
}

.thanks-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.thanks-card {
  width: min(760px, 100%);
  border: 1px solid var(--line);
  background: rgba(16, 16, 16, 0.9);
  border-radius: 28px;
  padding: clamp(32px, 6vw, 70px);
}

.about-text {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Screenplay redesign for Ochtendstond.WAV */
.screenplay-site {
  --paper: #fbfaf6;
  --script-ink: #111111;
  --script-muted: #4d4a44;
  --script-rule: #d8d4ca;
  --script-red: #ff493d;
  --script-red-soft: rgba(255, 73, 61, 0.12);
  --script-shadow: rgba(28, 23, 16, 0.2);
  --page-width: 930px;
  --script-margin: clamp(28px, 7vw, 104px);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #d8d2c4, #f0eadf 42%, #d6cfbf);
  background-size: 46px 46px, auto;
  color: var(--script-ink);
  font-family: "Courier New", Courier, monospace;
}

.screenplay-site::selection {
  background: var(--script-red-soft);
}

.screenplay-site .site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding: 14px var(--script-margin);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(18px, 4vw, 54px);
  background: rgba(251, 250, 246, 0.94);
  border: 1px solid var(--script-rule);
  border-top: 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.07);
}

.screenplay-site .logo {
  color: var(--script-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.screenplay-site .nav-links {
  display: flex;
  gap: clamp(12px, 2vw, 24px);
  align-items: center;
}

.screenplay-site .nav-left {
  justify-content: flex-start;
}

.screenplay-site .nav-right {
  justify-content: flex-end;
}

.screenplay-site .nav-links a {
  color: var(--script-muted);
  font-size: 12px;
  text-transform: uppercase;
}

.screenplay-site .nav-links a:hover {
  color: var(--script-red);
}

.screenplay-site main {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 18px clamp(10px, 2vw, 24px) 54px;
}

.screenplay-site .hero,
.screenplay-site .section,
.screenplay-site .footer {
  position: relative;
  width: min(100%, var(--page-width));
  margin: 0 auto 34px;
  padding: 78px var(--script-margin) 86px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.022), transparent 2%, transparent 98%, rgba(0, 0, 0, 0.03)),
    var(--paper);
  border: 1px solid #c7c2b7;
  border-radius: 0;
  box-shadow: 0 20px 60px var(--script-shadow);
}

.screenplay-site .hero {
  min-height: min(920px, calc(100vh - 72px));
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.022), transparent 2%, transparent 98%, rgba(0, 0, 0, 0.03)),
    var(--paper);
}

.screenplay-site .hero::before,
.screenplay-site .section::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--script-margin);
  width: 1px;
  background: rgba(17, 17, 17, 0.08);
}

.screenplay-site .hero::after,
.screenplay-site .section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(0, 0, 0, 0.018) 24px),
    radial-gradient(circle at 22% 18%, rgba(0, 0, 0, 0.04), transparent 18%),
    radial-gradient(circle at 80% 84%, rgba(0, 0, 0, 0.03), transparent 22%);
  mix-blend-mode: multiply;
}

.screenplay-site .hero > *,
.screenplay-site .section > * {
  position: relative;
  z-index: 1;
}

.screenplay-site .hero-content {
  width: 100%;
  max-width: 680px;
  text-align: center;
}

.screenplay-site .hero-content::before {
  content: "A1";
  position: absolute;
  top: -22px;
  left: calc(var(--script-margin) * -0.72);
  color: var(--script-ink);
  font-weight: 700;
}

.screenplay-site .hero-content::after {
  content: "TITLE PAGE";
  position: absolute;
  top: -64px;
  right: 0;
  color: var(--script-red);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(18px, 3vw, 32px);
  font-weight: 900;
  transform: rotate(-1deg);
}

.screenplay-site .eyebrow {
  color: var(--script-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: left;
}

.screenplay-site .hero .eyebrow {
  margin: 0 0 82px;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.screenplay-site h1 {
  margin: 0 auto 28px;
  color: var(--script-ink);
  font-size: clamp(30px, 7vw, 68px);
  line-height: 1.18;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.screenplay-site h1 span,
.screenplay-site .section-head h2 span {
  color: var(--script-ink);
}

.screenplay-site .hero-desc {
  max-width: 620px;
  margin: 0 0 24px;
  color: var(--script-ink);
  font-size: 16px;
  line-height: 1.55;
}

.screenplay-site .script-label {
  margin: 0 0 28px;
  color: var(--script-muted);
  font-size: 13px;
  text-align: center;
  text-transform: uppercase;
}

.screenplay-site .hero-subtitle {
  max-width: 560px;
  margin: 0 auto 74px;
  color: var(--script-ink);
  font-size: clamp(15px, 2.2vw, 19px);
  line-height: 1.6;
  text-align: center;
}

.screenplay-site .script-credit {
  display: grid;
  gap: 8px;
  margin: 0 auto 52px;
  color: var(--script-muted);
  font-size: 13px;
  text-align: center;
  text-transform: uppercase;
}

.screenplay-site .script-credit strong {
  color: var(--script-ink);
  font-size: 16px;
}

.screenplay-site .hero-desc:first-of-type {
  margin-left: 138px;
  max-width: 430px;
}

.screenplay-site .hero-desc:first-of-type::first-line,
.screenplay-site .hero-desc:nth-of-type(2)::first-line {
  font-weight: 700;
}

.screenplay-site .hero-actions {
  justify-content: center;
  margin: 0;
}

.screenplay-site .story-page {
  min-height: 760px;
}

.screenplay-site .page-number {
  position: absolute;
  top: 34px;
  right: var(--script-margin);
  color: var(--script-muted);
}

.screenplay-site .transition,
.screenplay-site .slugline,
.screenplay-site .character {
  color: var(--script-ink);
  font-weight: 700;
  text-transform: uppercase;
}

.screenplay-site .transition {
  text-align: right;
}

.screenplay-site .slugline {
  margin: 42px 0 28px;
}

.screenplay-site .action {
  max-width: 680px;
  margin: 0 0 28px;
  color: var(--script-ink);
  font-size: 16px;
  line-height: 1.75;
}

.screenplay-site .character {
  margin: 44px auto 8px;
  text-align: center;
}

.screenplay-site .dialogue {
  max-width: 430px;
  margin: 0 auto 38px;
  color: var(--script-ink);
  font-size: 16px;
  line-height: 1.65;
  text-align: left;
}

.screenplay-site .btn {
  border: 1px solid var(--script-ink);
  border-radius: 0;
  background: var(--script-ink);
  color: var(--paper);
  font: inherit;
  font-size: 13px;
  padding: 0 16px;
  min-height: 42px;
}

.screenplay-site .btn-secondary {
  background: transparent;
  color: var(--script-ink);
}

.screenplay-site .btn:hover,
.screenplay-site .btn:focus-visible {
  outline: 0;
  border-color: var(--script-red);
  background: var(--script-red);
  color: var(--paper);
}

.screenplay-site .section::before {
  left: var(--script-margin);
}

.screenplay-site .section-head {
  max-width: 680px;
  margin-bottom: 42px;
}

.screenplay-site #work .section-head::before,
.screenplay-site #process .section-head::before,
.screenplay-site #intake .section-head::before,
.screenplay-site #about .section-head::before,
.screenplay-site #contact .section-head::before {
  display: block;
  margin-bottom: 20px;
  color: var(--script-ink);
  font-weight: 700;
  text-transform: uppercase;
}

.screenplay-site #work .section-head::before {
  content: "EXT. PORTFOLIO WALL - DAY";
}

.screenplay-site #process .section-head::before {
  content: "INT. PRE-PRODUCTION ROOM - CONTINUOUS";
}

.screenplay-site #intake .section-head::before {
  content: "INT. PROJECT DRAFT - START";
}

.screenplay-site #about .section-head::before {
  content: "CHARACTER INTRODUCTION";
}

.screenplay-site #contact .section-head::before {
  content: "FADE OUT.";
}

.screenplay-site .section-head h2 {
  font-size: clamp(18px, 3vw, 30px);
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: uppercase;
}

.screenplay-site .section-sub {
  color: var(--script-muted);
}

.screenplay-site #work .section-head .eyebrow::after {
  content: " / SLUG LINE";
  color: var(--script-red);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
}

.screenplay-site .projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.screenplay-site .project-card {
  height: auto;
  min-height: 185px;
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: stretch;
  border: 0;
  border-bottom: 1px solid var(--script-rule);
  border-radius: 0;
  background: transparent;
}

.screenplay-site .project-card:hover {
  background: var(--script-red-soft);
  box-shadow: -12px 0 0 var(--script-red-soft), 12px 0 0 var(--script-red-soft);
}

.screenplay-site .project-card img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  aspect-ratio: 4 / 3;
  margin: 0;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.08);
}

.screenplay-site .project-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 150px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  border: 1px dashed var(--script-rule);
  background:
    linear-gradient(135deg, rgba(255, 73, 61, 0.08), transparent 54%),
    rgba(17, 17, 17, 0.04);
  color: var(--script-muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.screenplay-site .project-card:hover img {
  transform: none;
  filter: grayscale(0.2) contrast(1.05);
}

.screenplay-site .overlay {
  position: static;
  padding: 0 0 18px;
  background: transparent;
}

.screenplay-site .overlay p,
.screenplay-site .overlay span {
  color: var(--script-muted);
}

.screenplay-site .overlay h3 {
  color: var(--script-ink);
  font-size: 20px;
  text-transform: uppercase;
}

.screenplay-site .process-grid {
  grid-template-columns: 1fr;
}

.screenplay-site .workflow-step,
.screenplay-site .package-explorer,
.screenplay-site .system-card,
.screenplay-site .metric,
.screenplay-site .project-row,
.screenplay-site .breakdown-card {
  border-color: var(--script-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.screenplay-site .workflow-step {
  grid-template-columns: 74px 1fr;
}

.screenplay-site .workflow-step span {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--script-muted);
}

.screenplay-site .workflow-step h3,
.screenplay-site .package-detail h3,
.screenplay-site .form-step h3 {
  color: var(--script-ink);
  text-transform: uppercase;
}

.screenplay-site .workflow-step p,
.screenplay-site .package-note,
.screenplay-site .form-step p,
.screenplay-site .muted,
.screenplay-site .empty-state p {
  color: var(--script-muted);
}

.screenplay-site .package-tabs,
.screenplay-site .tab-bar {
  background: transparent;
  border: 1px solid var(--script-rule);
  border-radius: 0;
}

.screenplay-site #intake .system-card {
  padding: clamp(18px, 4vw, 36px);
}

.screenplay-site #intake .tab-bar {
  width: fit-content;
  margin: 0 auto 32px;
  border-color: rgba(17, 17, 17, 0.12);
}

.screenplay-site .package-option,
.screenplay-site .tab,
.screenplay-site .option {
  border-radius: 0;
  background: transparent;
  color: var(--script-ink);
  font: inherit;
}

.screenplay-site #intake .tab {
  padding: 9px 13px;
  color: var(--script-muted);
  font-size: 12px;
}

.screenplay-site .package-option.active,
.screenplay-site .package-option[aria-selected="true"],
.screenplay-site .tab.active,
.screenplay-site .tab[aria-selected="true"],
.screenplay-site .option.selected {
  background: var(--script-red-soft);
  color: var(--script-ink);
  box-shadow: none;
}

.screenplay-site #intake .progress-bar {
  justify-content: center;
  margin: 4px 0 38px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.screenplay-site #intake .step-dot {
  width: 7px;
  height: 7px;
  background: rgba(17, 17, 17, 0.2);
}

.screenplay-site #intake .step-dot.done,
.screenplay-site #intake .step-dot.active {
  background: #111;
}

.screenplay-site #intake .step-dot.active {
  width: 28px;
}

.screenplay-site #step-label {
  color: var(--script-muted);
  font-size: 11px;
}

.screenplay-site #intake .form-step {
  max-width: 680px;
  margin: 0 auto;
}

.screenplay-site #intake .form-step h3 {
  margin-bottom: 10px;
  font-size: clamp(18px, 3vw, 26px);
  text-align: center;
}

.screenplay-site #intake .form-step > p {
  max-width: 420px;
  margin: 0 auto 28px;
  color: var(--script-muted);
  text-align: center;
  text-transform: none;
}

.screenplay-site #intake label,
.screenplay-site #intake .field-block {
  margin-bottom: 18px;
  color: var(--script-muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.screenplay-site #intake input,
.screenplay-site #intake textarea,
.screenplay-site #intake select {
  padding: 12px 0;
}

.screenplay-site #intake textarea {
  min-height: 92px;
  padding: 12px;
}

.screenplay-site #intake .option-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.screenplay-site #intake .option {
  padding: 10px 9px;
  border-color: rgba(17, 17, 17, 0.14);
  color: var(--script-muted);
  font-size: 12px;
}

.screenplay-site #intake .option:hover,
.screenplay-site #intake .option.selected {
  border-color: #111;
  background: rgba(17, 17, 17, 0.06);
  color: #111;
}

.screenplay-site #intake .form-status {
  max-width: 680px;
  margin: 18px auto 0;
  text-align: center;
}

.screenplay-site #intake .form-nav {
  max-width: 680px;
  margin: 28px auto 0;
}

.screenplay-site .package-detail {
  border-radius: 0;
  background: var(--paper);
  color: var(--script-ink);
}

.screenplay-site .package-detail,
.screenplay-site .package-detail p,
.screenplay-site .package-detail li,
.screenplay-site .package-detail h3,
.screenplay-site .package-note {
  color: var(--script-ink);
}

.screenplay-site .package-label {
  color: var(--script-red);
}

.screenplay-site label,
.screenplay-site .field-block {
  color: var(--script-ink);
  font: inherit;
  text-transform: uppercase;
}

.screenplay-site input,
.screenplay-site textarea,
.screenplay-site select {
  border: 0;
  border-bottom: 1px solid var(--script-ink);
  border-radius: 0;
  background: transparent;
  color: var(--script-ink);
  font: inherit;
}

.screenplay-site textarea {
  border: 1px solid var(--script-rule);
}

.screenplay-site input:focus,
.screenplay-site textarea:focus,
.screenplay-site select:focus {
  border-color: var(--script-red);
  background: var(--script-red-soft);
  box-shadow: none;
}

.screenplay-site .about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.65fr);
  gap: 34px;
}

.screenplay-site .about-copy {
  min-width: 0;
}

.screenplay-site .about-text {
  color: var(--script-ink);
}

.screenplay-site .about-portrait {
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--script-rule);
  background: var(--paper);
  min-height: 420px;
}

.screenplay-site .about-portrait img {
  width: 100%;
  height: 420px;
  display: block;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
}

.screenplay-site .about-portrait figcaption {
  padding: 12px;
  color: var(--script-muted);
  font-size: 12px;
  text-transform: uppercase;
}

.screenplay-site .contact-links a {
  color: var(--script-ink);
}

.screenplay-site .footer {
  min-height: auto;
  color: var(--script-muted);
}

@media (max-width: 900px) {
  .screenplay-site .site-header {
    padding: 14px 22px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .screenplay-site .nav-links {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    justify-content: center;
    width: 100%;
  }

  .screenplay-site .hero,
  .screenplay-site .section,
  .screenplay-site .footer {
    padding: 58px 22px 64px;
  }

  .screenplay-site .hero {
    min-height: auto;
  }

  .screenplay-site .hero-content::after {
    display: none;
  }

  .screenplay-site .hero-desc:first-of-type,
  .screenplay-site .hero-actions {
    margin-left: 0;
  }

  .screenplay-site .project-card,
  .screenplay-site .about-section {
    grid-template-columns: 1fr;
  }

  .screenplay-site .project-card img {
    width: 100%;
    height: 240px;
  }

  .screenplay-site #intake .option-grid {
    grid-template-columns: 1fr;
  }
}

/* Storyboard portfolio pages */
.storyboard-page {
  --paper: #fbfaf6;
  --script-ink: #111111;
  --script-muted: #4d4a44;
  --script-rule: #d8d4ca;
  --script-red: #ff493d;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #d8d2c4, #f0eadf 42%, #d6cfbf);
  background-size: 46px 46px, auto;
  color: var(--script-ink);
  font-family: "Courier New", Courier, monospace;
}

.storyboard-page .site-header {
  width: min(100%, 930px);
  margin: 0 auto;
  padding: 14px clamp(22px, 7vw, 104px);
  border: 1px solid var(--script-rule);
  border-top: 0;
  background: rgba(251, 250, 246, 0.94);
  box-shadow: 0 12px 30px rgba(0,0,0,0.07);
}

.storyboard-page .logo,
.storyboard-page .nav-links a {
  color: var(--script-ink);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.storyboard-page .portfolio-main {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 18px clamp(10px, 2vw, 24px) 54px;
}

.storyboard-page .portfolio-hero,
.storyboard-page .section {
  width: min(100%, 930px);
  margin: 0 auto 34px;
  padding: 78px clamp(28px, 7vw, 104px) 86px;
  border: 1px solid #c7c2b7;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.022), transparent 2%, transparent 98%, rgba(0, 0, 0, 0.03)),
    var(--paper);
  box-shadow: 0 20px 60px rgba(28, 23, 16, 0.2);
}

.storyboard-page .portfolio-hero {
  min-height: 720px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(rgba(251, 250, 246, 0.82), rgba(251, 250, 246, 0.96)),
    var(--portfolio-image),
    var(--paper);
  background-size: cover;
  background-position: center;
}

.storyboard-page .portfolio-hero-content {
  max-width: 650px;
}

.storyboard-page .portfolio-kicker {
  display: block;
  margin: 0 0 78px;
  color: var(--script-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.storyboard-page .portfolio-kicker::before {
  display: none;
}

.storyboard-page .portfolio-hero h1 {
  margin: 0 auto 30px;
  color: var(--script-ink);
  font-size: clamp(30px, 6.5vw, 66px);
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: uppercase;
}

.storyboard-page .portfolio-hero p {
  color: var(--script-muted);
  font-size: 15px;
}

.storyboard-page .portfolio-toolbar {
  width: min(100%, 930px);
  margin: 0 auto 34px;
  padding: 22px clamp(28px, 7vw, 104px);
  border: 1px solid var(--script-rule);
  border-radius: 0;
  background: var(--paper);
}

.storyboard-page .portfolio-toolbar p,
.storyboard-page .portfolio-nav a {
  color: var(--script-muted);
  font-size: 12px;
}

.storyboard-page .portfolio-nav a {
  border: 1px solid var(--script-rule);
  border-radius: 0;
  background: transparent;
  text-transform: uppercase;
}

.storyboard-page .portfolio-nav a:hover,
.storyboard-page .portfolio-nav a.active {
  color: var(--script-ink);
  border-color: var(--script-red);
  background: rgba(255, 73, 61, 0.12);
}

.storyboard-intro {
  max-width: 690px;
  margin-bottom: 34px;
}

.storyboard-intro h2 {
  margin: 10px 0 14px;
  color: var(--script-ink);
  font-size: clamp(22px, 4vw, 38px);
  line-height: 1.2;
  text-transform: uppercase;
}

.storyboard-intro p,
.storyboard-intro strong {
  color: var(--script-muted);
}

.storyboard-page .portfolio-grid {
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.storyboard-page .portfolio-item {
  color: var(--script-ink);
  border: 1px solid var(--script-rule);
  border-radius: 0;
  background: #fffdf7;
  box-shadow: 8px 8px 0 rgba(17, 17, 17, 0.06);
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.storyboard-page .storyboard-frame:hover {
  transform: translateY(-3px) rotate(-0.35deg);
  box-shadow: 12px 12px 0 rgba(255, 73, 61, 0.12);
}

.storyboard-page .portfolio-media {
  filter: grayscale(1) contrast(1.08);
  transition: filter 0.25s ease, transform 0.25s ease;
}

.storyboard-page .storyboard-frame:hover .portfolio-media {
  filter: grayscale(0.05) contrast(1.02) saturate(1.06);
  transform: scale(1.015);
}

.storyboard-page .portfolio-caption {
  border-top: 1px solid var(--script-rule);
  background: #fffdf7;
}

.storyboard-page .portfolio-caption span {
  color: var(--script-red);
}

.storyboard-page .portfolio-caption h3,
.storyboard-page .portfolio-caption p {
  color: var(--script-ink);
}

.storyboard-page .portfolio-empty {
  min-height: 260px;
  color: var(--script-muted);
  border: 1px dashed var(--script-rule);
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(0, 0, 0, 0.018) 24px),
    #fffdf7;
  text-transform: uppercase;
}

.storyboard-page .portfolio-soon-panel,
.storyboard-page .portfolio-cta {
  border: 1px solid var(--script-rule);
  border-radius: 0;
  background: #fffdf7;
  box-shadow: none;
}

.storyboard-page .portfolio-soon-label {
  color: var(--script-red);
  border-color: var(--script-rule);
  border-radius: 0;
  background: transparent;
}

.storyboard-page .portfolio-soon-panel h2,
.storyboard-page .portfolio-soon-panel p,
.storyboard-page .portfolio-cta h2,
.storyboard-page .portfolio-cta p {
  color: var(--script-ink);
  letter-spacing: 0;
}

.storyboard-page .youtube-embed {
  border-radius: 0;
}

@media (max-width: 900px) {
  .storyboard-page .portfolio-main {
    padding-top: 12px;
  }

  .storyboard-page .portfolio-hero,
  .storyboard-page .section,
  .storyboard-page .portfolio-toolbar {
    padding: 54px 22px 60px;
  }

  .storyboard-page .portfolio-hero {
    min-height: 560px;
  }

  .storyboard-page .portfolio-item,
  .storyboard-page .portfolio-item.wide {
    grid-column: 1 / -1;
  }
}

/* Clean white screenplay pass */
.screenplay-site {
  --paper: #ffffff;
  --script-muted: #565656;
  --script-rule: #dedede;
  --script-red-soft: rgba(17, 17, 17, 0.06);
  --script-shadow: rgba(0, 0, 0, 0.08);
  background: #f6f6f3;
}

.screenplay-site .site-header {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.045);
}

.screenplay-site .hero,
.screenplay-site .section,
.screenplay-site .footer {
  background: var(--paper);
  border-color: var(--script-rule);
  box-shadow: 0 18px 46px var(--script-shadow);
}

.screenplay-site .hero::after,
.screenplay-site .section::after {
  opacity: 0.12;
  background: repeating-linear-gradient(0deg, transparent 0 25px, rgba(0, 0, 0, 0.012) 26px);
}

.screenplay-site .hero-content::after {
  display: none;
}

.screenplay-site .hero-content::before {
  color: rgba(17, 17, 17, 0.52);
}

.screenplay-site .hero .eyebrow {
  display: none;
}

.screenplay-site .script-label {
  margin: 0 0 42px;
  color: var(--script-ink);
  font-weight: 700;
}

.screenplay-site .hero-subtitle {
  margin-bottom: 88px;
  color: var(--script-muted);
}

.screenplay-site .project-card:hover {
  background: rgba(17, 17, 17, 0.035);
  box-shadow: -12px 0 0 rgba(17, 17, 17, 0.035), 12px 0 0 rgba(17, 17, 17, 0.035);
}

.screenplay-site .project-card:hover img {
  filter: grayscale(0) contrast(1.02) saturate(1.05);
}

.screenplay-site .project-card:hover .project-image-placeholder {
  background: #111;
  color: #fff;
}

.screenplay-site .package-detail,
.screenplay-site .package-detail p,
.screenplay-site .package-detail li,
.screenplay-site .package-detail h3,
.screenplay-site .package-note {
  color: #111;
}

.storyboard-page {
  --paper: #ffffff;
  --script-muted: #565656;
  --script-rule: #dedede;
  background: #f6f6f3;
}

.storyboard-page .site-header,
.storyboard-page .portfolio-toolbar,
.storyboard-page .portfolio-hero,
.storyboard-page .section {
  background: var(--paper);
  border-color: var(--script-rule);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.08);
}

.storyboard-page .portfolio-hero {
  min-height: 640px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.96)),
    var(--portfolio-image),
    var(--paper);
  background-size: cover;
  background-position: center;
}

.storyboard-page .portfolio-grid {
  align-items: start;
}

.storyboard-page .portfolio-item {
  contain: layout paint;
}

.storyboard-page .portfolio-media {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.storyboard-page .portfolio-item.wide .portfolio-media,
.storyboard-page .portfolio-item.wide .youtube-embed {
  aspect-ratio: 16 / 9;
}

.storyboard-page .youtube-embed iframe {
  width: 100%;
  height: 100%;
}

.storyboard-page .portfolio-item {
  background: #fff;
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.05);
}

.storyboard-page .portfolio-item:nth-child(2) {
  margin-top: 42px;
}

.storyboard-page .portfolio-item:nth-child(3) {
  margin-top: 18px;
}

.storyboard-page .portfolio-item:nth-child(4) {
  margin-top: -18px;
}

.storyboard-page .storyboard-frame:hover {
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.11);
}

.storyboard-page .portfolio-caption,
.storyboard-page .portfolio-soon-panel,
.storyboard-page .portfolio-cta,
.storyboard-page .portfolio-empty {
  background: #fff;
}

.storyboard-page .portfolio-caption span,
.storyboard-page .portfolio-soon-label {
  color: #111;
}

.storyboard-page .portfolio-nav a:hover,
.storyboard-page .portfolio-nav a.active {
  color: #111;
  border-color: #111;
  background: rgba(17, 17, 17, 0.055);
}

@media (max-width: 900px) {
  .screenplay-site .hero .eyebrow {
    margin-bottom: 64px;
  }

  .screenplay-site .hero-subtitle {
    margin-bottom: 56px;
  }

  .storyboard-page .portfolio-item:nth-child(n) {
    margin-top: 0;
  }
}

/* Final image-ratio guard */
.screenplay-site .projects {
  align-items: stretch;
}

.screenplay-site .project-card {
  overflow: hidden;
}

.screenplay-site .project-card > img,
.screenplay-site .project-card > .project-image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 168px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.screenplay-site .project-card > .project-image-placeholder {
  display: grid;
}

.storyboard-page .portfolio-item {
  min-width: 0;
}

.storyboard-page .portfolio-media {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.storyboard-page .portfolio-item.wide .portfolio-media {
  aspect-ratio: 16 / 9;
}

.storyboard-page .youtube-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.storyboard-page .youtube-embed iframe {
  width: 100%;
  height: 100%;
}

@media (max-width: 900px) {
  .screenplay-site .project-card > img,
  .screenplay-site .project-card > .project-image-placeholder {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

/* A4 page rhythm */
.screenplay-site .hero,
.screenplay-site .section {
  box-sizing: border-box;
  aspect-ratio: 210 / 297;
  min-height: clamp(980px, 118vw, 1320px);
}

.screenplay-site .hero {
  min-height: clamp(980px, 118vw, 1320px);
}

.screenplay-site .section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.screenplay-site #work,
.screenplay-site #about,
.screenplay-site #contact {
  justify-content: center;
}

.screenplay-site #intake {
  justify-content: flex-start;
}

.screenplay-site .story-page {
  justify-content: center;
}

.storyboard-page .portfolio-hero,
.storyboard-page .section {
  box-sizing: border-box;
  aspect-ratio: 210 / 297;
  min-height: clamp(980px, 118vw, 1320px);
}

.storyboard-page .portfolio-hero {
  min-height: clamp(980px, 118vw, 1320px);
}

@media (max-width: 900px) {
  .screenplay-site .hero,
  .screenplay-site .section,
  .storyboard-page .portfolio-hero,
  .storyboard-page .section {
    aspect-ratio: auto;
    min-height: min(860px, calc(100vh - 40px));
  }

  .screenplay-site #intake,
  .screenplay-site #process {
    min-height: auto;
  }
}

/* Full-page screenplay placement */
.screenplay-site .hero,
.screenplay-site .section {
  padding: clamp(58px, 7vw, 92px) clamp(34px, 8vw, 112px);
}

.screenplay-site .hero {
  place-items: center;
}

.screenplay-site .hero-content {
  max-width: 720px;
  transform: translateY(-2vh);
}

.screenplay-site .hero-content::before,
.screenplay-site .page-number {
  display: none;
}

.screenplay-site .script-corner {
  position: absolute;
  z-index: 2;
  margin: 0;
  color: #111;
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.8;
  text-transform: uppercase;
}

.screenplay-site .script-corner-left {
  top: clamp(28px, 4.5vw, 58px);
  left: clamp(28px, 4.5vw, 58px);
}

.screenplay-site .script-corner-right {
  top: clamp(28px, 4.5vw, 58px);
  right: clamp(28px, 4.5vw, 58px);
  display: grid;
  gap: 10px;
  text-align: right;
}

.screenplay-site .story-page {
  justify-content: center;
  padding-top: clamp(118px, 12vw, 170px);
  padding-bottom: clamp(118px, 12vw, 170px);
}

.screenplay-site .story-page .slugline {
  margin-top: 0;
  margin-bottom: clamp(38px, 5vw, 70px);
}

.screenplay-site .story-page .action {
  max-width: 640px;
  margin-bottom: clamp(34px, 4vw, 58px);
}

.screenplay-site .story-page .character {
  margin-top: clamp(42px, 6vw, 84px);
}

.screenplay-site .story-page .dialogue {
  margin-bottom: clamp(42px, 6vw, 80px);
}

.screenplay-site .story-page > .transition:last-child {
  margin-top: clamp(36px, 5vw, 72px);
}

@media (max-width: 900px) {
  .screenplay-site .script-corner-left,
  .screenplay-site .script-corner-right {
    top: 24px;
  }

  .screenplay-site .script-corner-left {
    left: 22px;
  }

  .screenplay-site .script-corner-right {
    right: 22px;
  }

  .screenplay-site .hero-content {
    transform: none;
  }

  .screenplay-site .story-page {
    padding-top: 92px;
    padding-bottom: 92px;
  }
}

/* Strict 12-point screenplay layout */
.screenplay-site,
.screenplay-site button,
.screenplay-site input,
.screenplay-site textarea,
.screenplay-site select,
.storyboard-page,
.storyboard-page button,
.storyboard-page input,
.storyboard-page textarea,
.storyboard-page select {
  font-family: "Courier New", Courier, monospace;
  font-size: 12pt;
  line-height: 1.45;
}

.screenplay-site h1,
.screenplay-site h2,
.screenplay-site h3,
.screenplay-site p,
.screenplay-site a,
.screenplay-site li,
.screenplay-site label,
.screenplay-site span,
.screenplay-site strong,
.storyboard-page h1,
.storyboard-page h2,
.storyboard-page h3,
.storyboard-page p,
.storyboard-page a,
.storyboard-page li,
.storyboard-page span,
.storyboard-page strong {
  font-size: 12pt;
  letter-spacing: 0;
}

.screenplay-site .hero {
  padding: clamp(46px, 5vw, 66px);
}

.screenplay-site .hero-content {
  display: grid;
  place-items: center;
  min-height: 100%;
  max-width: none;
  transform: none;
}

.screenplay-site .hero h1 {
  position: absolute;
  top: 48%;
  left: clamp(34px, 8vw, 112px);
  right: clamp(34px, 8vw, 112px);
  margin: 0;
  color: #111;
  font-size: 12pt;
  font-weight: 700;
  text-align: center;
  text-transform: none;
}

.screenplay-site .script-label {
  position: absolute;
  top: calc(48% + 34px);
  left: clamp(34px, 8vw, 112px);
  right: clamp(34px, 8vw, 112px);
  margin: 0;
  color: #111;
  font-size: 12pt;
  font-weight: 700;
  text-align: center;
  text-transform: none;
}

.screenplay-site .hero-subtitle {
  position: absolute;
  left: clamp(34px, 8vw, 112px);
  right: clamp(34px, 8vw, 112px);
  bottom: 150px;
  max-width: none;
  margin: 0 auto;
  color: #111;
  font-size: 12pt;
}

.screenplay-site .hero-actions {
  position: absolute;
  left: clamp(34px, 8vw, 112px);
  right: clamp(34px, 8vw, 112px);
  bottom: 78px;
}

.screenplay-site .script-corner {
  font-size: 12pt;
}

.screenplay-site #work .section-head::before {
  content: "EXT.                    PORTFOLIO.                    DAY";
}

.screenplay-site #process .section-head::before {
  content: "INT.                    PRE-PRODUCTION.                    CONTINUOUS";
}

.screenplay-site #intake .section-head::before {
  content: "INT.                    PROJECT DRAFT.                    START";
}

.screenplay-site #about .section-head::before {
  content: "INT.                    CHARACTER.                    INTRODUCTION";
}

.screenplay-site #contact .section-head::before {
  content: "EXT.                    FADE OUT.                    NIGHT";
}

.screenplay-site #work .section-head::before,
.screenplay-site #process .section-head::before,
.screenplay-site #intake .section-head::before,
.screenplay-site #about .section-head::before,
.screenplay-site #contact .section-head::before {
  white-space: pre;
  word-spacing: clamp(10px, 2vw, 28px);
  overflow-wrap: anywhere;
}

.screenplay-site #process,
.screenplay-site #intake {
  padding-top: 58px;
  padding-bottom: 58px;
}

.screenplay-site #process .section-head,
.screenplay-site #intake .section-head {
  margin-bottom: 22px;
}

.screenplay-site #process .section-sub,
.screenplay-site #intake .section-sub {
  max-width: 68ch;
  line-height: 1.45;
}

.screenplay-site #process .process-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
}

.screenplay-site #process .workflow-list {
  gap: 8px;
}

.screenplay-site #process .workflow-step {
  grid-template-columns: 42px 1fr;
  gap: 10px;
  padding: 10px 0;
}

.screenplay-site #process .workflow-step h3,
.screenplay-site #process .package-detail h3 {
  margin-bottom: 4px;
}

.screenplay-site #process .workflow-step p,
.screenplay-site #process .package-note,
.screenplay-site #process .package-detail li {
  line-height: 1.35;
}

.screenplay-site #process .package-explorer {
  padding: 10px;
}

.screenplay-site #process .package-tabs {
  gap: 4px;
  margin-bottom: 10px;
  padding: 4px;
}

.screenplay-site #process .package-option {
  padding: 8px 5px;
}

.screenplay-site #process .package-detail {
  min-height: auto;
  padding: 14px;
}

.screenplay-site #process .package-detail ul {
  gap: 5px;
  margin: 12px 0 14px;
}

.screenplay-site #process .package-label {
  margin-bottom: 8px;
}

.screenplay-site #intake .system-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 22px;
}

.screenplay-site #intake .tab-bar {
  margin-bottom: 18px;
}

.screenplay-site #intake .progress-bar {
  margin-bottom: 22px;
  padding-bottom: 12px;
}

.screenplay-site #intake .form-step h3 {
  margin-bottom: 6px;
  text-align: left;
}

.screenplay-site #intake .form-step > p {
  max-width: none;
  margin: 0 0 16px;
  text-align: left;
}

.screenplay-site #intake label,
.screenplay-site #intake .field-block {
  margin-bottom: 11px;
}

.screenplay-site #intake input,
.screenplay-site #intake textarea,
.screenplay-site #intake select {
  margin-top: 4px;
  padding: 8px 0;
}

.screenplay-site #intake textarea {
  min-height: 68px;
  padding: 8px;
}

.screenplay-site #intake .option-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 7px;
}

.screenplay-site #intake .option {
  min-height: 36px;
  padding: 7px 6px;
}

.screenplay-site #intake .form-status {
  min-height: 18px;
  margin-top: 10px;
}

.screenplay-site #intake .form-nav {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .screenplay-site .hero h1 {
    top: 44%;
  }

  .screenplay-site .script-label {
    top: calc(44% + 32px);
  }

  .screenplay-site .hero-subtitle {
    bottom: 132px;
  }

  .screenplay-site .hero-actions {
    bottom: 54px;
  }

  .screenplay-site #process .process-grid,
  .screenplay-site #intake .option-grid {
    grid-template-columns: 1fr;
  }

  .screenplay-site #work .section-head::before,
  .screenplay-site #process .section-head::before,
  .screenplay-site #intake .section-head::before,
  .screenplay-site #about .section-head::before,
  .screenplay-site #contact .section-head::before {
    white-space: normal;
    word-spacing: normal;
  }
}

/* Final screenplay polish */
.screenplay-site .hero h1 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.screenplay-site .script-label {
  font-weight: 700;
}

.screenplay-site .section-head {
  width: 100%;
  max-width: none;
}

.screenplay-site .section-head h2,
.screenplay-site .section-sub {
  max-width: 680px;
}

.screenplay-site #work .section-head::before,
.screenplay-site #process .section-head::before,
.screenplay-site #intake .section-head::before,
.screenplay-site #about .section-head::before,
.screenplay-site #contact .section-head::before {
  width: 100%;
  margin-bottom: clamp(42px, 5vw, 74px);
  white-space: normal;
  word-spacing: normal;
  text-align: justify;
  text-align-last: justify;
}

.screenplay-site #work .section-head::before {
  content: "EXT. PORTFOLIO WALL - DAY";
}

.screenplay-site #process .section-head::before {
  content: "INT. PRE-PRODUCTION ROOM - CONTINUOUS";
}

.screenplay-site #intake .section-head::before {
  content: "INT. CLIENT INTAKE - DAY";
}

.screenplay-site #about .section-head::before {
  content: "INT. CHARACTER STUDY - DAY";
}

.screenplay-site #contact .section-head::before {
  content: "EXT. FADE OUT - NIGHT";
}

.screenplay-site #work {
  justify-content: flex-start;
}

.screenplay-site #work .section-head {
  margin-bottom: clamp(48px, 7vw, 96px);
}

.screenplay-site #work .section-head h2 {
  max-width: none;
  margin-top: clamp(34px, 5vw, 76px);
  text-align: center;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.screenplay-site #work .section-head .eyebrow::after {
  content: "";
}

.screenplay-site #work .section-sub {
  margin-inline: auto;
  text-align: center;
}

.screenplay-site #work .projects {
  gap: 0;
  border-top: 1px solid var(--script-rule);
  border-bottom: 1px solid var(--script-rule);
}

.screenplay-site #work .project-card {
  min-height: clamp(190px, 22vw, 270px);
  grid-template-columns: minmax(160px, 260px) minmax(0, 1fr);
  border-bottom: 1px solid var(--script-rule);
}

.screenplay-site #work .project-card:last-child {
  border-bottom: 0;
}

.screenplay-site #work .overlay {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 0 0 0 clamp(20px, 4vw, 58px);
}

.screenplay-site #work .overlay h3 {
  margin: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.screenplay-site #work .overlay span {
  justify-self: end;
  white-space: nowrap;
}

.screenplay-site #contact {
  aspect-ratio: auto;
  min-height: clamp(520px, 58vw, 700px);
  justify-content: center;
}

.screenplay-site #contact .section-head {
  margin-bottom: 26px;
}

.screenplay-site #contact .contact-grid {
  align-items: center;
}

@media (max-width: 900px) {
  .screenplay-site #work .section-head::before,
  .screenplay-site #process .section-head::before,
  .screenplay-site #intake .section-head::before,
  .screenplay-site #about .section-head::before,
  .screenplay-site #contact .section-head::before {
    text-align: left;
    text-align-last: auto;
  }

  .screenplay-site #work .project-card {
    grid-template-columns: 1fr;
  }

  .screenplay-site #work .overlay {
    grid-template-columns: 48px 1fr;
    padding: 18px 0;
  }

  .screenplay-site #work .overlay span {
    grid-column: 2;
    justify-self: start;
  }

  .screenplay-site #contact {
    min-height: auto;
  }
}

/* Portfolio screenplay remake */
.storyboard-page {
  --paper: #ffffff;
  --script-ink: #111111;
  --script-muted: #565656;
  --script-rule: #dedede;
  --script-red: #111111;
  background: #f6f6f3;
  color: var(--script-ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 12pt;
}

.storyboard-page .site-header {
  width: min(100%, 1080px);
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(14px, 3vw, 42px);
  align-items: center;
  margin: 0 auto;
  padding: 0 clamp(22px, 7vw, 104px);
  border: 1px solid var(--script-rule);
  border-top: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.045);
}

.storyboard-page .nav-left,
.storyboard-page .nav-right {
  display: flex;
  gap: clamp(14px, 2vw, 30px);
  align-items: center;
}

.storyboard-page .nav-right {
  justify-content: flex-end;
}

.storyboard-page .logo,
.storyboard-page .nav-links a {
  color: var(--script-ink);
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(11px, 1.05vw, 12px);
  font-weight: 400;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.storyboard-page .logo {
  font-weight: 700;
}

.storyboard-page .portfolio-script {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 18px clamp(10px, 2vw, 24px) 54px;
}

.storyboard-page .portfolio-sheet {
  position: relative;
  width: min(100%, 930px);
  min-height: clamp(980px, 118vw, 1320px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  margin: 0 auto 34px;
  padding: clamp(58px, 7vw, 98px) clamp(28px, 7vw, 104px) clamp(68px, 8vw, 112px);
  border: 1px solid var(--script-rule);
  background:
    linear-gradient(90deg, transparent 0, transparent 9.6%, rgba(0, 0, 0, 0.055) 9.7%, transparent 9.8%),
    var(--paper);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.storyboard-page .portfolio-cover {
  justify-content: center;
  text-align: center;
}

.storyboard-page .portfolio-page-number {
  position: absolute;
  top: clamp(58px, 7vw, 98px);
  right: clamp(28px, 7vw, 104px);
  margin: 0;
  font-weight: 700;
}

.storyboard-page .portfolio-slug {
  width: 100%;
  margin: 0 0 clamp(70px, 8vw, 120px);
  font-weight: 700;
  text-align: justify;
  text-align-last: justify;
  text-transform: uppercase;
}

.storyboard-page .portfolio-cover-copy {
  width: min(100%, 620px);
  margin: auto;
}

.storyboard-page .portfolio-cover-copy h1 {
  margin: 28px 0;
  font-size: 12pt;
  line-height: 1.65;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-transform: uppercase;
}

.storyboard-page .portfolio-cover-copy p,
.storyboard-page .storyboard-intro p,
.storyboard-page .portfolio-caption p,
.storyboard-page .portfolio-cta p {
  font-size: 12pt;
  line-height: 1.8;
}

.storyboard-page .portfolio-switcher {
  width: min(100%, 930px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0 auto 34px;
  border: 1px solid var(--script-rule);
  background: #fff;
}

.storyboard-page .portfolio-switcher a {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 10px;
  border-right: 1px solid var(--script-rule);
  color: var(--script-ink);
  font-size: 12pt;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.storyboard-page .portfolio-switcher a:last-child {
  border-right: 0;
}

.storyboard-page .portfolio-switcher a:hover,
.storyboard-page .portfolio-switcher a.active {
  background: #111;
  color: #fff;
}

.storyboard-page .portfolio-wall {
  min-height: auto;
}

.storyboard-page .storyboard-intro {
  max-width: 700px;
  margin-bottom: clamp(34px, 5vw, 64px);
}

.storyboard-page .storyboard-intro h2,
.storyboard-page .portfolio-cta h2 {
  margin: 12px 0;
  font-size: 12pt;
  line-height: 1.8;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-transform: uppercase;
}

.storyboard-page .moodboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(10px, 1.6vw, 18px);
  align-items: start;
}

.storyboard-page .portfolio-item {
  grid-column: span 4;
  display: block;
  min-width: 0;
  border: 1px solid var(--script-rule);
  background: #fff;
  color: var(--script-ink);
  text-decoration: none;
  overflow: hidden;
}

.storyboard-page .portfolio-item.wide {
  grid-column: span 8;
}

.storyboard-page .portfolio-item.tall {
  grid-row: span 2;
}

.storyboard-page .portfolio-media {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  transition: filter 0.24s ease, transform 0.24s ease;
}

.storyboard-page .portfolio-item.wide .portfolio-media {
  aspect-ratio: 16 / 9;
}

.storyboard-page .storyboard-frame:hover .portfolio-media {
  filter: grayscale(0.05) contrast(1.04) saturate(1.06);
  transform: scale(1.018);
}

.storyboard-page .portfolio-caption {
  padding: 18px;
  border-top: 1px solid var(--script-rule);
}

.storyboard-page .portfolio-caption span,
.storyboard-page .portfolio-empty span {
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
}

.storyboard-page .portfolio-caption h3 {
  margin: 0 0 8px;
  font-size: 12pt;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: uppercase;
}

.storyboard-page .portfolio-empty {
  min-height: 270px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 24px;
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(0, 0, 0, 0.028) 24px),
    #fff;
  color: var(--script-muted);
  text-align: center;
  text-transform: uppercase;
}

.storyboard-page .portfolio-closing {
  min-height: clamp(520px, 58vw, 700px);
  justify-content: center;
}

.storyboard-page .portfolio-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding: 0;
  border: 0;
  background: transparent;
}

@media (max-width: 900px) {
  .storyboard-page .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .storyboard-page .nav-left,
  .storyboard-page .nav-right {
    justify-content: center;
    flex-wrap: wrap;
  }

  .storyboard-page .portfolio-sheet {
    min-height: auto;
    padding: 54px 22px 60px;
  }

  .storyboard-page .portfolio-slug {
    text-align: left;
    text-align-last: auto;
  }

  .storyboard-page .portfolio-switcher {
    grid-template-columns: 1fr;
  }

  .storyboard-page .portfolio-switcher a {
    border-right: 0;
    border-bottom: 1px solid var(--script-rule);
  }

  .storyboard-page .portfolio-switcher a:last-child {
    border-bottom: 0;
  }

  .storyboard-page .portfolio-item,
  .storyboard-page .portfolio-item.wide {
    grid-column: 1 / -1;
  }

  .storyboard-page .portfolio-cta {
    grid-template-columns: 1fr;
  }
}

/* Final portfolio polish: same cinematic language as the index, built for easy asset swaps. */
.storyboard-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 0%, rgba(154, 136, 79, 0.13), transparent 34%),
    linear-gradient(180deg, #070707 0%, #0d0d0d 100%);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.storyboard-page .portfolio-script {
  width: 100%;
  padding: 92px 0 0;
}

.storyboard-page .portfolio-sheet {
  width: 100%;
  min-height: auto;
  padding: clamp(58px, 8vw, 120px) 60px;
  background: transparent;
  border: 0;
  color: var(--text);
  box-shadow: none;
}

.storyboard-page .portfolio-cover {
  min-height: 72vh;
  display: flex;
  align-items: center;
}

.storyboard-page .portfolio-slug {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #9a884f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.8;
  text-align: left;
  text-align-last: auto;
  text-transform: uppercase;
}

.storyboard-page .portfolio-cover-copy {
  width: min(100%, 960px);
  margin: 0;
}

.storyboard-page .portfolio-cover-copy h1 {
  margin: 26px 0 28px;
  color: #fff;
  font-size: clamp(52px, 10vw, 116px);
  line-height: 0.92;
  letter-spacing: -0.07em;
  text-decoration: none;
  text-transform: none;
}

.storyboard-page .portfolio-cover-copy p,
.storyboard-page .storyboard-intro p,
.storyboard-page .portfolio-caption p,
.storyboard-page .portfolio-cta p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  line-height: 1.75;
}

.storyboard-page .portfolio-switcher {
  width: calc(100% - 120px);
  max-width: 980px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 60px 18px;
  border: 0;
  background: transparent;
}

.storyboard-page .portfolio-switcher a {
  min-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
}

.storyboard-page .portfolio-switcher a:hover,
.storyboard-page .portfolio-switcher a.active {
  border-color: #9a884f;
  background: #141412;
  color: #fff;
}

.storyboard-page .storyboard-intro {
  max-width: 760px;
  margin-bottom: clamp(34px, 5vw, 64px);
}

.storyboard-page .storyboard-intro h2,
.storyboard-page .portfolio-cta h2 {
  margin: 12px 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.045em;
  text-decoration: none;
  text-transform: none;
}

.storyboard-page .moodboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 22px);
  align-items: start;
}

.storyboard-page .portfolio-item {
  grid-column: span 4;
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: #101010;
  color: var(--text);
  text-decoration: none;
}

.storyboard-page .portfolio-item.wide {
  grid-column: span 8;
}

.storyboard-page .portfolio-media {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  transition: filter 0.28s ease, transform 0.28s ease;
}

.storyboard-page .portfolio-item.wide .portfolio-media {
  aspect-ratio: 16 / 9;
}

.storyboard-page .storyboard-frame:hover .portfolio-media {
  filter: grayscale(0.06) contrast(1.04) saturate(1.08);
  transform: scale(1.025);
}

.storyboard-page .portfolio-caption {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.storyboard-page .portfolio-caption span,
.storyboard-page .portfolio-empty span {
  display: block;
  margin-bottom: 10px;
  color: #9a884f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.storyboard-page .portfolio-caption h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-decoration: none;
  text-transform: none;
}

.storyboard-page .portfolio-empty {
  min-height: 270px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(139, 125, 255, 0.08), transparent 35%),
    #0a0a0a;
  color: var(--muted);
  text-align: center;
  text-transform: none;
}

.storyboard-page .portfolio-closing {
  min-height: 48vh;
  justify-content: center;
}

.storyboard-page .portfolio-cta {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding: 0;
  border: 0;
  background: transparent;
}

@media (max-width: 900px) {
  .storyboard-page .portfolio-sheet {
    padding: 54px 22px 60px;
  }

  .storyboard-page .portfolio-switcher {
    width: calc(100% - 44px);
    margin: 0 22px 18px;
  }

  .storyboard-page .portfolio-slug {
    display: grid;
    gap: 6px;
  }

  .storyboard-page .portfolio-item,
  .storyboard-page .portfolio-item.wide {
    grid-column: 1 / -1;
  }

  .storyboard-page .portfolio-cta {
    grid-template-columns: 1fr;
  }
}

/* Intake safety layer: keep the client form readable and clickable inside the screenplay design. */
.screenplay-site #intake {
  overflow: visible;
}

.screenplay-site #intake .system-card {
  width: min(100%, 880px);
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid #d8d8d8;
  border-radius: 0;
  background: #fff;
  color: #111;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.08);
}

.screenplay-site #intake .tab-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px;
  border: 1px solid #d8d8d8;
  border-radius: 0;
  background: #f7f7f4;
}

.screenplay-site #intake .tab {
  min-height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #555;
  font: 700 12px/1.2 'Courier New', Courier, monospace;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.screenplay-site #intake .tab.active,
.screenplay-site #intake .tab[aria-selected="true"] {
  background: #111;
  color: #fff;
  box-shadow: none;
}

.screenplay-site #intake .panel {
  display: none;
}

.screenplay-site #intake .panel.active {
  display: block;
}

.screenplay-site #intake .progress-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
}

.screenplay-site #intake .step-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #d0d0d0;
}

.screenplay-site #intake .step-dot.done {
  background: var(--green);
}

.screenplay-site #intake .step-dot.active {
  width: 34px;
  background: var(--accent);
}

.screenplay-site #intake #step-label,
.screenplay-site #intake .form-status,
.screenplay-site #intake .muted {
  color: #666;
  font: 400 12px/1.6 'Courier New', Courier, monospace;
}

.screenplay-site #intake .form-step {
  display: none;
}

.screenplay-site #intake .form-step.active {
  display: block;
}

.screenplay-site #intake .form-step h3 {
  margin: 0 0 8px;
  color: #111;
  font: 700 22px/1.15 'Courier New', Courier, monospace;
  text-transform: uppercase;
}

.screenplay-site #intake .form-step p {
  margin: 0 0 22px;
  color: #666;
  font: 400 13px/1.7 'Courier New', Courier, monospace;
}

.screenplay-site #intake label,
.screenplay-site #intake .field-block {
  display: block;
  margin: 0 0 18px;
  color: #333;
  font: 700 12px/1.5 'Courier New', Courier, monospace;
  text-transform: uppercase;
}

.screenplay-site #intake input,
.screenplay-site #intake textarea,
.screenplay-site #intake select {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 8px 0 0;
  padding: 13px 14px;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  background: #fff;
  color: #111;
  font: 400 14px/1.45 'Courier New', Courier, monospace;
  outline: none;
}

.screenplay-site #intake textarea {
  min-height: 96px;
  resize: vertical;
}

.screenplay-site #intake input:focus,
.screenplay-site #intake textarea:focus,
.screenplay-site #intake select:focus {
  border-color: #111;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.screenplay-site #intake .option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.screenplay-site #intake .option {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  background: #fff;
  color: #111;
  font: 700 12px/1.35 'Courier New', Courier, monospace;
  text-align: center;
  cursor: pointer;
}

.screenplay-site #intake .option:hover,
.screenplay-site #intake .option.selected {
  border-color: #111;
  background: #111;
  color: #fff;
}

.screenplay-site #intake .form-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.screenplay-site #intake .btn {
  min-height: 46px;
  border-radius: 999px;
  font: 700 13px/1 'Courier New', Courier, monospace;
}

@media (max-width: 700px) {
  .screenplay-site #intake .tab-bar,
  .screenplay-site #intake .option-grid {
    grid-template-columns: 1fr;
  }

  .screenplay-site #intake .form-nav {
    display: grid;
  }
}
.screenplay-site #intake {
  aspect-ratio: auto;
  height: auto;
  min-height: clamp(980px, 118vw, 1320px);
  overflow: visible;
}

.screenplay-site #intake .system-card {
  height: auto;
}
