@font-face {
  font-family: "Pragmatica Extended";
  src: url("/PragmaticaExt-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #000000;
  --muted: #6b665d;
  --line: #e6e0d6;
  --accent: #d9481e;
  --accent-ink: #ffffff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 700 16px/1.6 "Pragmatica Extended", system-ui, -apple-system, sans-serif;
  font-synthesis: none;
}
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

header.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
}
.logo { font-weight: 700; font-size: 20px; text-decoration: none; }
.logo span { color: var(--ink); }
.nav a.link { text-decoration: none; color: var(--muted); font-weight: 700; margin-left: 20px; }
.nav a.link:hover { color: var(--ink); }

.hero { padding: 72px 0 56px; }
.eyebrow { color: var(--ink); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
h1 {
  font-weight: 700;
  font-size: clamp(32px, 6vw, 64px); line-height: 1.02; margin: 12px 0 20px;
  letter-spacing: -0.02em;
}
.lede { font-size: 19px; color: var(--ink); max-width: 620px; margin: 0 0 32px; }
/* Buttons are black by default. Orange (.action) is only for submitting or removing something. */
.btn {
  display: inline-block; background: var(--ink); color: #fff;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none;
}
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); margin-left: 8px; }

section { padding: 56px 0; border-top: 1px solid var(--line); }
h2 { font-weight: 700; font-size: 34px; line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.01em; }
.sub { color: var(--muted); margin: 0 0 28px; }



.apply-form { display: grid; gap: 16px; max-width: 480px; }
.apply-form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.apply-form input {
  width: 100%; padding: 12px 16px; font: inherit; font-weight: 700;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
}
.apply-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.apply-form .btn { justify-self: start; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.apply-form .btn:disabled { opacity: .6; cursor: default; }
.form-status { margin: 0; color: var(--muted); font-size: 15px; min-height: 1.6em; }

footer { padding: 40px 0; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }

/* One section per chapter, in the school's colors, with its Instagram */
section.school-section { background: var(--sec-bg); color: var(--sec-fg); border-top: 0; padding: 72px 0; }
.school-section .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.school-info { position: relative; }
/* "Founding chapter" sits just above the name without pushing it down, so every chapter's name lines up */
.school-section .tag { position: absolute; bottom: 100%; left: 0; margin-bottom: -2px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .85; white-space: nowrap; }
/* The chapter name always stays on one line; index.html shrinks it to fit its column when needed */
.school-section h2 { margin: 8px 0 10px; font-size: clamp(28px, 4vw, 40px); white-space: nowrap; }
.school-section .school { margin: 0 0 28px; opacity: .85; }
.school-section .btn { background: var(--sec-fg); color: var(--sec-bg); }
.ig-embed { background: #fff; border-radius: 14px; overflow: hidden; container-type: inline-size; }
/* Instagram's profile embed is a header plus a 3x2 grid, so its height tracks its width */
.ig-embed iframe { display: block; width: 100%; height: 420px; height: calc(136px + 53cqw); border: 0; }
.ig-posts { display: grid; gap: 16px; }
.ig-posts .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; border-radius: 14px !important; }
@media (max-width: 820px) {
  .school-section .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  section.school-section { padding: 56px 0; }
}

/* Nexus */
section.nexus { background: #000; color: #fff; border-top: 0; padding: 80px 0; }
.nexus-brand { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; }
.nexus-icon { display: block; width: 74px; height: 74px; flex: none; }
.nexus-mark { display: block; width: min(318px, calc(100vw - 130px)); height: auto; }
.nexus-links .btn { margin-bottom: 10px; }
.nexus .btn.ghost[aria-disabled="true"] { cursor: default; }
.nexus-lede { font-size: 19px; max-width: 620px; margin: 0 0 32px; }
.nexus .btn { background: #fff; color: #000; }
.nexus .btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }


@media (max-width: 520px) {
  .btn.ghost { margin: 10px 0 0; }
  .nav a.link { margin-left: 14px; }
}

/* Footer: copyright on the left, admin login on the right */
footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer .admin-link { color: var(--muted); text-decoration: none; }
footer .admin-link:hover { color: var(--ink); }

/* Homepage: actor / musician / filmmaker row in each chapter section */
.talent-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 24px; }
.talent-pick { margin: 0; text-decoration: none; color: inherit; display: block; }
.talent-pick .photo { aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.14); }
.talent-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.talent-pick .name { font-size: 15px; line-height: 1.3; margin-top: 8px; }
.talent-pick .role { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.talent-pick.empty .name { opacity: .6; }
a.talent-pick:hover .name { text-decoration: underline; }
.school-section .talent-link { font-size: 15px; text-decoration: none; border-bottom: 1.5px solid currentColor; }

/* Placeholder silhouette for a missing photo */
.silhouette { width: 100%; height: 100%; display: grid; place-items: end center; }
.silhouette svg { width: 70%; height: auto; opacity: .35; }

/* Talent page */
.talent-hero { background: var(--sec-bg); color: var(--sec-fg); padding: 64px 0 56px; }
.talent-hero .tag { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.talent-hero h1 { margin: 8px 0 10px; }
.talent-hero .school { margin: 0; opacity: .85; }
.talent-hero a.back { color: inherit; opacity: .85; font-size: 14px; text-decoration: none; display: inline-block; margin-bottom: 28px; }
.talent-hero a.back:hover { opacity: 1; }
.featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.artist-card { text-decoration: none; color: inherit; display: block; }
.artist-card .photo { aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: #f1efeb; }
.artist-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
a.artist-card:hover img { transform: scale(1.03); }
.artist-card .name { margin-top: 10px; font-size: 17px; line-height: 1.3; }
.artist-card .role, .az-row .role { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.artist-card.empty .name { color: var(--muted); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 28px; }
.chip { font: inherit; font-size: 14px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.az-letter { font-size: 22px; margin: 28px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.az-letter:first-child { margin-top: 0; }
.az-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 24px; }
.az-row { display: flex; align-items: center; gap: 14px; padding: 8px 0; text-decoration: none; color: inherit; }
.az-row .thumb { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: #f1efeb; flex: none; }
.az-row .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.az-row .thumb .silhouette svg { width: 80%; }
.az-row .name { line-height: 1.3; }
a.az-row:hover .name { text-decoration: underline; }
.empty-note { color: var(--muted); margin: 0; }

/* Admin */
.admin-main { padding: 48px 0 72px; }
.panel { border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: #fff; }
.panel + .panel { margin-top: 24px; }
.login-panel { max-width: 420px; }
.admin-form { display: grid; gap: 16px; }
.admin-form label { display: grid; gap: 6px; font-size: 14px; }
.admin-form input, .admin-form select {
  width: 100%; padding: 12px 16px; font: inherit; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink);
}
.admin-form input:focus, .admin-form select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.admin-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-form .btn, .admin-list .btn { border: 0; font: inherit; cursor: pointer; justify-self: start; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn.plain { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.action, .btn.danger { background: var(--accent); color: var(--accent-ink); border: 0; }
.photo-pick { display: flex; align-items: center; gap: 16px; }
.photo-pick .preview { width: 88px; height: 88px; border-radius: 10px; overflow: hidden; background: #f1efeb; flex: none; }
.photo-pick .preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-head h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 6px; }
.admin-list { display: grid; gap: 0; }
.admin-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.admin-item:first-child { border-top: 0; }
.admin-item .thumb { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background: #f1efeb; flex: none; }
.admin-item .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-item .who { flex: 1; min-width: 0; line-height: 1.35; }
.admin-item .who .role { color: var(--muted); font-size: 13px; }
.admin-item .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.badge { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; background: var(--ink); color: #fff; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.notice { color: var(--muted); font-size: 15px; min-height: 1.6em; margin: 0; }
.notice.error { color: #b3261e; }
.school-list { display: grid; gap: 12px; max-width: 520px; }
.school-list a { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-radius: 14px; text-decoration: none; background: var(--sec-bg); color: var(--sec-fg); }

@media (max-width: 520px) {
  .talent-row { gap: 10px; }
  .talent-pick .name { font-size: 13px; }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .admin-form .row2 { grid-template-columns: 1fr; }
  .admin-item { flex-wrap: wrap; }
  .admin-item .actions { width: 100%; justify-content: flex-start; padding-left: 62px; }
  .panel { padding: 20px; }
}

/* Artist page: big photo on the left, details on the right */
.artist-main { padding: 40px 0 80px; }
.artist-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.artist-photo { margin: 0; }
.artist-photo .photo { aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: #f1efeb; }
.artist-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.artist-photo figcaption { color: var(--muted); font-size: 13px; margin-top: 10px; }
.artist-info { padding-top: 8px; }
.artist-info .back { color: var(--muted); font-size: 14px; text-decoration: none; display: inline-block; margin-bottom: 28px; }
.artist-info .back:hover { color: var(--ink); }
.artist-info .tag { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--sec-bg); }
.artist-info h1 { margin: 8px 0 28px; }
.facts { margin: 0 0 32px; display: grid; gap: 14px; }
.facts div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; }
.artist-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.btn.link-btn { background: var(--sec-bg); color: var(--sec-fg); padding: 10px 18px; font-size: 15px; }
@media (max-width: 820px) {
  .artist-layout { grid-template-columns: 1fr; gap: 28px; }
  .artist-info .back { margin-bottom: 18px; }
  .facts div { grid-template-columns: 130px 1fr; }
}

/* Admin: editor, cropper, ordering, front page */
.admin-h1 { font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 6px; }
.panel-h2 { font-size: 22px; margin: 0 0 6px; }
.panel-h2 .count { color: var(--muted); }
.head-actions { display: flex; gap: 8px; }
#list-notice:empty { display: none; }
#list-notice { margin-bottom: 16px; }
.admin-item .move { display: flex; flex-direction: column; gap: 2px; flex: none; }
.arrow { font: inherit; font-size: 14px; line-height: 1; width: 30px; height: 26px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; color: var(--ink); }
.arrow:disabled { opacity: .3; cursor: default; }
.arrow:not(:disabled):hover { border-color: var(--ink); }
.plain-link { text-decoration: none; }
.plain-link:hover { text-decoration: underline; }
.front-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.front-slot { display: flex; gap: 12px; align-items: center; }
.front-slot .thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #f1efeb; flex: none; }
.front-slot .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.front-slot label { display: grid; gap: 6px; font-size: 14px; flex: 1; min-width: 0; }
.front-slot select { width: 100%; padding: 10px 12px; font: inherit; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.field-group { border: 0; border-top: 1px solid #cfc7ba; margin: 14px 0 0; padding: 24px 0 0; display: grid; gap: 16px; min-width: 0; }
.form-divider { border: 0; border-top: 1px solid #cfc7ba; margin: 14px 0 6px; width: 100%; }
.field-group legend { font-size: 17px; padding: 0 0 4px; float: left; width: 100%; margin-bottom: 4px; }
.admin-form .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.photo-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.file-btn { position: relative; overflow: hidden; cursor: pointer; display: inline-flex !important; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.cropper { display: grid; gap: 14px; justify-items: start; }
.crop-stage { width: min(360px, 100%); aspect-ratio: 1 / 1; position: relative; overflow: hidden; border-radius: 14px; background: #222; cursor: grab; touch-action: none; user-select: none; }
.crop-stage.dragging { cursor: grabbing; }
.crop-stage img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.zoom { display: flex !important; align-items: center; gap: 12px; width: min(360px, 100%); }
.zoom input { flex: 1; padding: 0; }
.resume-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.resume-name { color: var(--muted); font-size: 15px; }
.check { display: flex !important; align-items: center; gap: 10px; font-size: 15px; }
.check input { width: auto; }
.check[hidden] { display: none !important; }
.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
@media (max-width: 820px) {
  .front-slots { grid-template-columns: 1fr; gap: 14px; }
  .admin-form .row3 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .admin-item .actions { padding-left: 106px; }
}
.panel-h2 { margin-bottom: 14px; }

/* Anything marked hidden stays hidden, even buttons and links with their own display style */
[hidden] { display: none !important; }

/* Keep the header on one line on phones */
.logo, .nav a.link { white-space: nowrap; }
@media (max-width: 520px) {
  .logo { font-size: 16px; }
  .nav a.link { font-size: 14px; margin-left: 12px; }
}
@media (max-width: 520px) {
  header.nav { flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 0; }
  .nav a.link { margin: 0 16px 0 0; }
}

/* Less space between the Apply button and the footer */
section.apply { padding-bottom: 16px; }

/* Talent page section titles have no description underneath */
#featured h2, #all-artists h2 { margin-bottom: 24px; }

/* Artist types: Actor, Musician, Band, Filmmaker, Producer. The homepage row and front-page picks
   show only Actor, Musician and Filmmaker (three columns, set above). */
.types { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 8px; }
.types legend { font-size: 14px; padding: 0; margin-bottom: 8px; }
.types .hint { color: var(--muted); font-size: 13px; margin-left: 6px; }
.type-options { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 6px; }
