:root {
  --ink: #101820;
  --night: #07141b;
  --night-2: #10242d;
  --paper: #f4efe4;
  --paper-2: #e8dfcf;
  --white: #fffdf8;
  --gold: #c79b55;
  --gold-soft: #e2bd7e;
  --accent: #a7672d;
  --accent-dark: #744518;
  --muted: #58636a;
  --muted-light: #bdc7c8;
  --line-dark: rgba(16, 24, 32, .24);
  --line-light: rgba(255, 255, 255, .2);
  --max: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--white);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 1000;
  padding: .75rem 1rem;
  background: #fff;
  color: #000;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #0563c1;
}

.site-head {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  color: var(--white);
  background: transparent;
  padding-top: env(safe-area-inset-top, 0px);
}
body.authenticated .site-head {
  position: fixed;
  background: rgba(7, 20, 27, .97);
  border-bottom: 1px solid var(--line-light);
  backdrop-filter: blur(10px);
}
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.monogram {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
}
.nav-actions { display: flex; align-items: center; gap: 20px; }
.secure-label {
  color: var(--muted-light);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.secure-label span { color: #79d4a5; }
.text-button {
  min-width: 72px;
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid var(--gold);
  background: transparent;
  padding: 0 4px;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}
.text-button:hover { color: var(--gold); }

.eyebrow {
  margin: 0 0 .85rem;
  color: var(--accent-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.02;
  text-wrap: balance;
}
h1 { font-size: clamp(4rem, 10vw, 8rem); letter-spacing: -.062em; }
h2 { font-size: clamp(2.4rem, 5vw, 4.7rem); letter-spacing: -.045em; }
h3 { font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -.035em; }

/* Public access gate */
.gate {
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: calc(130px + env(safe-area-inset-top, 0px)) 0 calc(80px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(circle at 78% 18%, rgba(199, 155, 85, .14), transparent 28%),
    linear-gradient(160deg, #07141b 0%, #0c1d26 58%, #16343f 100%);
}
.gate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .75fr);
  gap: clamp(50px, 9vw, 140px);
  align-items: center;
}
.gate .eyebrow { color: var(--gold); }
.gate-copy .lead {
  max-width: 620px;
  margin: 25px 0 55px;
  color: #e0e6e4;
  font-size: clamp(1.35rem, 2.6vw, 2.15rem);
  line-height: 1.35;
}
.access-note {
  max-width: 620px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line-light);
}
.access-note p {
  margin: 0;
  color: var(--muted-light);
  font-family: Arial, Helvetica, sans-serif;
}
.access-num { color: var(--gold); font-family: Georgia, serif; }
.auth-panel {
  padding: clamp(28px, 5vw, 52px);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 32px 80px rgba(0, 0, 0, .34);
}
.auth-panel .eyebrow { color: var(--accent-dark); }
.auth-panel h2 { margin-bottom: 18px; font-size: clamp(2.2rem, 4vw, 3.7rem); }
.auth-panel .muted {
  margin-bottom: 28px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
}
.auth-panel label {
  display: block;
  margin-bottom: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.auth-panel input {
  width: 100%;
  min-height: 52px;
  margin-bottom: 14px;
  border: 1px solid #667078;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  padding: 12px 14px;
  font-family: Arial, Helvetica, sans-serif;
}
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1px solid var(--accent-dark);
  background: var(--accent-dark);
  color: #fff;
  padding: .8rem 1.2rem;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.auth-panel .button { width: 100%; }
.button:hover {
  background: var(--night);
  border-color: var(--night);
  transform: translateY(-1px);
}
.button:disabled { opacity: .58; cursor: wait; transform: none; }
.button.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
}
.button.secondary:hover {
  background: #fff;
  border-color: #fff;
  color: var(--night);
}
.disclaimer {
  margin: 8px 0 18px;
  border: 1px solid var(--line-dark);
  background: rgba(16, 24, 32, .04);
  color: #3f4a50;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .78rem;
  line-height: 1.55;
}
.disclaimer-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
}
.disclaimer-summary::-webkit-details-marker { display: none; }
.disclaimer-summary::marker { content: ""; }
.disclaimer-label {
  margin: 0;
  color: var(--accent-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.disclaimer-toggle-wrap {
  flex: 0 0 auto;
  position: relative;
  min-width: 3.2rem;
  text-align: right;
}
.disclaimer-toggle {
  color: var(--accent-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(116, 69, 24, .35);
}
.disclaimer-summary:hover .disclaimer-toggle {
  border-bottom-color: var(--accent-dark);
}
.disclaimer[open] .disclaimer-toggle-show { display: none; }
.disclaimer:not([open]) .disclaimer-toggle-hide { display: none; }
.disclaimer:not([open]) .disclaimer-body { display: none; }
.disclaimer-body {
  padding: 0 14px 15px;
  border-top: 1px solid rgba(16, 24, 32, .08);
}
.disclaimer-body p { margin: 12px 0 0; }
.disclaimer-summary:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #0563c1;
}
.form-status {
  min-height: 28px;
  margin: 14px 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}
.form-status.error { color: #8a1f1f; }
.form-status.success { color: #12603f; }
.fine-print {
  margin: 25px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  color: #58636a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .75rem;
  line-height: 1.5;
}

/* Authenticated Slate */
.slate {
  min-height: 100svh;
  min-height: 100dvh;
  padding-top: calc(76px + env(safe-area-inset-top, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--paper);
  color: var(--ink);
}
.slate-intro { padding-block: clamp(70px, 10vw, 128px) clamp(42px, 7vw, 72px); }
.slate-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, .26fr);
  gap: clamp(42px, 8vw, 110px);
  align-items: end;
}
.slate-head h1 { margin-left: -.06em; }
.slate-deck {
  max-width: 690px;
  margin: 28px 0 0;
  color: #3f4b52;
  font-size: clamp(1.25rem, 2.3vw, 1.85rem);
  line-height: 1.45;
}
.slate-meta {
  align-self: end;
  padding: 18px 0 4px;
  border-top: 1px solid var(--line-dark);
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .8rem;
}
.slate-meta span,
.slate-meta strong { display: block; }
.slate-meta strong {
  margin: 4px 0 10px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .98rem;
}
.meta-label {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.status-dot {
  width: 7px;
  height: 7px;
  display: inline-block !important;
  margin-right: 6px;
  border-radius: 50%;
  background: #167a4e;
}

.slate-pulse {
  margin-top: clamp(36px, 6vw, 54px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.pulse-card {
  min-height: 118px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px 16px;
  border: 1px solid var(--line-dark);
  background: linear-gradient(180deg, rgba(199, 155, 85, .08), transparent 70%);
}
.pulse-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -.03em;
}
.pulse-card span {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .8rem;
  line-height: 1.4;
}


/* Featured cinematic hero */
.featured-hero{
  position:relative;
  min-height:clamp(420px,62vh,720px);
  display:grid;
  align-items:end;
  overflow:hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(199,155,85,.18), transparent 28%),
    linear-gradient(160deg,#07141b 0%, #0c1d26 55%, #16343f 100%);
  color:#fff;
  border-top:1px solid rgba(255,255,255,.08);
}
.featured-media,
.featured-shade{position:absolute; inset:0}
.featured-media img{
  width:100%; height:100%; object-fit:cover; object-position:center 20%;
  transform:scale(1.03);
  transition:transform 1.1s var(--ease);
  filter:saturate(1.05) contrast(1.04);
}
.featured-hero:hover .featured-media img{ transform:scale(1.07) }
.featured-shade{
  background:
    linear-gradient(90deg, rgba(7,20,27,.88) 0%, rgba(7,20,27,.55) 42%, rgba(7,20,27,.18) 100%),
    linear-gradient(to top, rgba(7,20,27,.92) 0%, rgba(7,20,27,.2) 55%, rgba(7,20,27,.08) 100%);
  pointer-events:none;
}
.featured-copy{
  position:relative;
  z-index:2;
  padding: clamp(48px,8vw,96px) 0 clamp(42px,7vw,78px);
  max-width:760px;
}
.featured-hero .eyebrow{ color:var(--gold-soft) }
.featured-kicker{
  margin:0 0 14px;
  font-family:Arial, Helvetica, sans-serif;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#e7d3a8;
}
.featured-copy h2{
  margin:0;
  max-width:14ch;
  font-size:clamp(3rem,7vw,6.2rem);
  letter-spacing:-.055em;
  line-height:.98;
}
.featured-logline{
  max-width:38ch;
  margin:22px 0 0;
  color:#d7dedc;
  font-size:clamp(1.15rem,2vw,1.45rem);
  line-height:1.45;
}
.featured-actions{
  display:flex; flex-wrap:wrap; gap:12px;
  margin-top:28px;
}
.featured-actions .button.secondary{
  background:transparent;
  border-color:rgba(255,255,255,.45);
  color:#fff;
}
.featured-actions .button.secondary:hover{
  background:#fff; border-color:#fff; color:var(--night);
}


.slate-library {
  padding-block: clamp(42px, 6vw, 72px) clamp(80px, 10vw, 130px);
  background: var(--paper-2);
  border-top: 1px solid var(--line-dark);
}
.library-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}
.library-head h2 { color: var(--ink); }
.project-count {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .82rem;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 30px 44px;
}
.filter {
  min-height: 44px;
  min-width: 44px;
  border: 1px solid #737a7b;
  background: transparent;
  color: var(--ink);
  padding: 10px 16px;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.filter:hover { border-color: var(--night); }
.filter.active,
.filter[aria-pressed='true'] {
  background: var(--night);
  border-color: var(--night);
  color: #fff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
}
.project-card {
  grid-column: span 6;
  min-width: 0;
  position: relative;
  overflow: hidden;
  border: 0;
  background: var(--night);
  color: var(--white);
  isolation: isolate;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.project-card.is-wide { grid-column: span 12; }
.project-card.is-tall { grid-column: span 5; }
.project-card.is-pair-left { grid-column: span 7; }
.project-card.is-pair-right { grid-column: span 5; }
.project-card.is-featured { grid-column: span 8; }
.project-card.is-support { grid-column: span 4; }
.project-card:hover,
.project-card:focus-within,
.project-card.is-hot,
.project-card.is-open {
  transform: translateY(-5px);
  box-shadow: 0 28px 60px rgba(7, 20, 27, .28);
  z-index: 2;
}

.project-art {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--night);
  color: var(--white);
}
.project-card.is-featured .project-art { min-height: 460px; }
.project-card.is-wide .project-art { min-height: 390px; }
.project-card:nth-child(3n + 2) .project-art { background: #6e391e; }
.project-card:nth-child(3n) .project-art { background: #18313a; }
.project-card[data-kind='special-project'] .project-art { background: var(--accent-dark); }
.project-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.project-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(7, 20, 27, .88) 0%, rgba(7, 20, 27, .28) 48%, rgba(7, 20, 27, .08) 100%);
  pointer-events: none;
  transition: background .35s var(--ease);
}
.project-card:hover .project-art img,
.project-card:focus-within .project-art img { transform: scale(1.05); }
.project-card:hover .project-art::after,
.project-card:focus-within .project-art::after {
  background:
    linear-gradient(to top, rgba(7, 20, 27, .92) 0%, rgba(7, 20, 27, .42) 55%, rgba(7, 20, 27, .18) 100%);
}
.project-mark,
.project-number,
.project-body { position: relative; z-index: 1; }
.project-mark {
  max-width: 80%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4.4vw, 4.4rem);
  letter-spacing: -.055em;
  line-height: .98;
}
.project-number {
  align-self: flex-start;
  color: #f3d7a9;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
}
.project-body {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(22px, 3.2vw, 34px);
  display: grid;
  gap: 12px;
  background: linear-gradient(to top, rgba(7, 20, 27, .96), rgba(7, 20, 27, .78) 70%, transparent);
  transform: translateY(18px);
  opacity: .96;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.project-card:hover .project-body,
.project-card:focus-within .project-body,
.project-card.is-open .project-body {
  transform: none;
  opacity: 1;
}
.project-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted-light);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.project-status { color: var(--gold-soft); text-align: right; }
.project-body h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
}
.project-logline {
  margin: 0;
  max-width: 46ch;
  color: #d7dedc;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .94rem;
  line-height: 1.5;
}

.project-body{gap:10px}
.project-body h3{margin:0}
.project-logline{min-height:0}

.project-open {
  width: fit-content;
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid var(--gold);
  background: transparent;
  color: #fff;
  padding: 7px 2px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  cursor: pointer;
}
.project-open:hover { color: var(--gold-soft); }
.loading-message {
  grid-column: 1 / -1;
  margin: 0;
  padding: 32px 0;
  font-family: Arial, Helvetica, sans-serif;
}
.empty-state { max-width: 760px; padding-block: 48px 80px; }
.empty-state h2 { margin-bottom: 18px; }

.affiliations {
  padding-block: clamp(78px, 10vw, 128px);
  background: var(--night);
  color: var(--white);
}
.affiliations .eyebrow { color: var(--gold); }
.affiliations-intro { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.affiliations-copy {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted-light);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.45;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.resource-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .04);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.resource-card:hover {
  transform: translateY(-3px);
  border-color: rgba(226, 189, 126, .55);
}
.resource-thumb {
  position: relative;
  display: block;
  width: 100%;
  min-height: 220px;
  margin: 0;
  padding: 0;
  border: 0;
  background: #10242d;
  cursor: pointer;
  text-align: left;
}
.resource-thumb img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top center;
  transition: transform .6s var(--ease);
}
.resource-thumb:hover img { transform: scale(1.03); }
.resource-thumb-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(7, 20, 27, .78);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.resource-thumb:hover .resource-thumb-label,
.resource-thumb:focus-visible .resource-thumb-label {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--night);
}
.resource-body { padding: 24px 24px 28px; }
.resource-kicker {
  margin: 0 0 10px;
  color: #f0c982;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.resource-body h3 {
  margin-bottom: 12px;
  color: #fff;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
}
.resource-body p {
  margin: 0 0 22px;
  color: var(--muted-light);
  font-family: Arial, Helvetica, sans-serif;
}
.resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.resource-actions .button,
.resource-actions .button.secondary {
  width: auto;
  min-width: 0;
}
.material-panel {
  margin: 34px 0 8px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
}
.material-head { margin-bottom: 18px; }
.material-head h3 {
  margin-top: 4px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}
.material-grid { grid-template-columns: 1fr; }
.material-grid .resource-card {
  border-color: rgba(16, 24, 32, .18);
  background: var(--white);
  color: var(--ink);
}
.material-grid .resource-body h3 { color: var(--ink); }
.material-grid .resource-body p { color: var(--muted); }
.material-grid .resource-kicker { color: var(--accent-dark); }
.material-grid .button.secondary {
  border-color: var(--night);
  color: var(--night);
}
.material-grid .button.secondary:hover {
  background: var(--night);
  color: #fff;
}
.material-grid .resource-thumb img {
  height: 210px;
  object-fit: cover;
}

.viewer-dialog {
  width: min(calc(100% - 20px), 1180px);
  max-height: calc(100vh - 20px);
  border: 0;
  padding: 0;
  background: var(--night);
  color: var(--white);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .55);
}
.viewer-dialog::backdrop { background: rgba(2, 10, 14, .88); }
.viewer-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: min(86vh, 900px);
}
.viewer-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line-light);
}
.viewer-heading h2 {
  margin-top: 4px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}
.viewer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.viewer-frame-wrap {
  position: relative;
  min-height: 0;
  background: #0b1a21;
}
.viewer-frame-wrap iframe {
  width: 100%;
  height: min(72vh, 760px);
  border: 0;
  background: #fff;
}
.viewer-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 12px;
  padding: 40px;
  background: linear-gradient(180deg, #10242d, #07141b);
}
.viewer-fallback h3 {
  max-width: 18ch;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}
.viewer-fallback p {
  max-width: 52ch;
  color: var(--muted-light);
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.project-dialog {
  width: min(calc(100% - 28px), 980px);
  max-height: 90vh;
  border: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .55);
}
.project-dialog::backdrop { background: rgba(2, 10, 14, .84); }
.dialog-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .75);
  background: var(--night);
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
}
.dialog-art {
  min-height: 260px;
  max-height: 430px;
  overflow: hidden;
  background: var(--night);
}
.dialog-art:has(img[hidden]) { min-height: 88px; }
.dialog-art img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}
.dialog-copy { padding: clamp(30px, 6vw, 64px); }
.dialog-copy h2 { margin-bottom: 18px; }
.dialog-logline {
  max-width: 780px;
  margin: 0;
  color: #39464d;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.45;
}
.dialog-copy dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 34px 0;
  border-top: 1px solid var(--line-dark);
}
.dialog-copy dl div {
  padding: 16px 18px 16px 0;
  border-bottom: 1px solid var(--line-dark);
}
.dialog-copy dt {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.dialog-copy dd { margin: 4px 0 0; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dialog-actions .button { width: auto; }
.dialog-empty-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
}

.footer {
  padding: 26px 0;
  border-top: 1px solid var(--line-light);
  background: var(--night);
  color: var(--muted-light);
}
.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .8rem;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}
html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}


.project-card.has-art .project-mark{
  opacity:.18;
  max-width:70%;
  font-size:clamp(1.6rem,3.2vw,3rem);
}
.project-card.has-art .project-art::after{
  background:linear-gradient(to top, rgba(7,20,27,.9) 0%, rgba(7,20,27,.35) 46%, rgba(7,20,27,.12) 100%);
}
.project-card.has-art:hover .project-mark,
.project-card.has-art:focus-within .project-mark{opacity:.28}

@media (max-width: 900px) {
  .gate-grid,
  .slate-head { grid-template-columns: 1fr; }
  .gate-copy { padding-top: 30px; }
  .slate-meta { max-width: 320px; }
  .slate-pulse { grid-template-columns: 1fr 1fr; }
  .project-card,
  .project-card.is-featured,
  .project-card.is-support,
  .project-card.is-wide,
  .project-card.is-pair-left,
  .project-card.is-pair-right { grid-column: span 12; }
  .project-art,
  .project-card.is-featured .project-art,
  .project-card.is-wide .project-art { min-height: 300px; }
  .project-body {
    position: static;
    transform: none;
    opacity: 1;
    background: var(--night);
  }
  .dialog-copy dl { grid-template-columns: 1fr 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  .viewer-toolbar {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .nav { min-height: 68px; }
  .secure-label { font-size: .6rem; letter-spacing: .1em; }
  .slate { padding-top: 68px; }
  .gate { padding-top: 106px; }
  .access-note { grid-template-columns: 32px 1fr; }
  .auth-panel { padding: 28px 22px; }
  .library-head { display: block; }
  .project-count { margin-top: 14px; }
  .filter-row { padding-bottom: 32px; }
  .filter { flex: 1 1 calc(50% - 8px); }
  .slate-pulse { grid-template-columns: 1fr; }
  .project-art { min-height: 250px; }
  .project-mark { max-width: 86%; }
  .resource-thumb img { height: 190px; }
  .viewer-frame-wrap iframe { height: min(68vh, 620px); }
  .viewer-fallback { padding: 28px 22px; }
  .dialog-copy dl { grid-template-columns: 1fr; }
  .footer .wrap { display: block; }
  .footer span { display: block; margin-top: 5px; }
}




/* F Marry Kill — a bit wider in-row (span 7 with tall span 5). Keep ~16:9 height so title isn't side-cropped. */
.project-card.is-poster-wide{
  grid-column: span 7; /* pairs with preceding is-tall (span 5) => 12, no empty gap */
}
.project-card.is-poster-wide .project-art{
  min-height: 390px;
}
.project-card.is-poster-wide.has-art .project-art img{
  object-fit: cover;
  object-position: center center;
}
.project-card.is-poster-wide .project-body.is-plate{
  padding: 12px 16px 14px;
}
/* Keep the OLF + FMK row the same height so the mosaic stays flush */
.project-card.is-tall .project-art{
  min-height: 390px;
}
@media (max-width: 900px){
  .project-card.is-poster-wide{
    grid-column: span 12;
  }
  .project-card.is-poster-wide .project-art{
    /* Keep the full horizontal title on phones — don't tall-crop the 16:9 key art */
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

/* Image-first cinematic cards */
.project-art{
  min-height: 360px;
  padding: 0;
  display:block;
}
.project-card.is-wide .project-art{ min-height: 430px; }
.project-card.is-tall .project-art{ min-height: 390px; }
.project-card.is-pair-left .project-art,
.project-card.is-pair-right .project-art{ min-height: 390px; }
.project-art img{
  transform: scale(1.02);
  transition: transform .8s var(--ease), filter .8s var(--ease);
  filter: saturate(1.04) contrast(1.03);
}
.project-art::after{
  background:
    linear-gradient(to top, rgba(7,20,27,.88) 0%, rgba(7,20,27,.28) 42%, rgba(7,20,27,.08) 100%);
  transition: background .35s var(--ease), opacity .35s var(--ease);
}
.project-number{
  position:absolute;
  top:18px; right:18px;
  z-index:2;
  color:#f3d7a9;
  text-shadow:0 2px 14px rgba(0,0,0,.45);
}
.project-body{
  position:absolute;
  inset:auto 0 0;
  z-index:2;
  padding: clamp(20px,3vw,34px);
  display:grid;
  gap:10px;
  background: linear-gradient(to top, rgba(7,20,27,.96), rgba(7,20,27,.72) 72%, transparent);
  transform: translateY(14px);
  opacity:.98;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.project-card:hover .project-body,
.project-card:focus-within .project-body,
.project-card.is-hot .project-body,
.project-card.is-open .project-body{
  transform:none; opacity:1;
}
.project-card:hover .project-art img,
.project-card:focus-within .project-art img,
.project-card.is-hot .project-art img,
.project-card.is-open .project-art img{
  transform:scale(1.08);
  filter: saturate(1.08) contrast(1.05);
}
.project-card:hover .project-art::after,
.project-card:focus-within .project-art::after,
.project-card.is-hot .project-art::after,
.project-card.is-open .project-art::after{
  background:
    linear-gradient(to top, rgba(7,20,27,.94) 0%, rgba(7,20,27,.42) 50%, rgba(7,20,27,.16) 100%);
}
.project-body h3{
  margin:0;
  color:#fff;
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
  text-shadow:0 2px 18px rgba(0,0,0,.35);
}
.project-topline{
  color: rgba(255,255,255,.78);
}
.project-status{ color: var(--gold-soft); }
.project-logline{
  max-width: 42ch;
  color:#d7dedc;
  font-family:Arial, Helvetica, sans-serif;
  font-size:.94rem;
}
.project-open{
  width:fit-content;
  min-height:44px;
  display:inline-flex;
  align-items:center;
  border-bottom:1px solid var(--gold);
  color:#fff;
  background:transparent;
  border-top:0; border-left:0; border-right:0;
  padding:8px 0;
  cursor:pointer;
  font:inherit;
}
.project-open:hover{ color:var(--gold-soft) }
.project-card.has-art .project-mark{ display:none }

/* Richer project dialog */
.project-dialog{
  width:min(calc(100% - 20px), 1080px);
  max-height: min(92vh, 920px);
  padding:0;
  border:0;
  overflow:auto;
  background:var(--paper);
  color:var(--ink);
  box-shadow:0 40px 100px rgba(0,0,0,.55);
}
.dialog-shell{
  display:grid;
  grid-template-columns: minmax(0,.95fr) minmax(320px,1.05fr);
  min-height: min(78vh, 760px);
}
.dialog-art{
  min-height:100%;
  max-height:none;
  background:var(--night);
  position:relative;
}
.dialog-art img{
  width:100%;
  height:100%;
  min-height:420px;
  object-fit:cover;
}
.dialog-art:has(img[hidden]){ min-height:120px }
.dialog-copy{ padding: clamp(28px,4vw,48px); display:grid; align-content:start; gap:0 }
.dialog-copy h2{ margin: 0 0 14px; font-size: clamp(2.2rem, 4vw, 3.6rem); }
.dialog-logline{
  margin:0 0 22px;
  color:#39464d;
  font-size:clamp(1.1rem,1.8vw,1.4rem);
}
.dialog-copy dl{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:0;
  margin: 8px 0 22px;
  border-top:1px solid var(--line-dark);
}
.dialog-cta-row{
  display:flex; flex-wrap:wrap; gap:10px;
  margin: 4px 0 18px;
}
.dialog-cta-row .button,
.dialog-cta-row .button.secondary{ width:auto }
.dialog-cta-row .button.secondary{
  background:transparent;
  border-color:var(--night);
  color:var(--night);
}
.dialog-cta-row .button.secondary:hover{
  background:var(--night); color:#fff;
}
.dialog-close{
  position: sticky;
  float:right;
  top:12px; right:12px;
  margin:12px 12px 0 0;
}
@media (max-width: 900px){
  .featured-copy{ max-width: none; }
  .featured-copy h2{ max-width: none; }
  .project-card.is-tall,
  .project-card.is-poster-wide,
  .project-card.is-wide,
  .project-card.is-pair-left,
  .project-card.is-pair-right,
  .project-card.is-featured,
  .project-card.is-support{ grid-column: span 12; }
  .project-card.is-tall .project-art,
  .project-card.is-wide .project-art,
  .project-art{ min-height: 300px; }
  .project-body{ transform:none; opacity:1; }
  .dialog-shell{ grid-template-columns:1fr; }
  .dialog-art img{ min-height:260px; height:280px; }
}
@media (max-width: 600px){
  .featured-hero{ min-height: 520px; }
  .featured-actions .button{ width:100%; }
}


/* Featured title plate — keep UI copy out of poster title/credit zones */
.featured-hero.has-art{
  min-height: clamp(520px, 68vh, 760px);
}
.featured-hero.has-art .featured-media img{
  object-position: center 18%;
}
.featured-hero.has-art .featured-shade{
  background:
    linear-gradient(to top, rgba(7,20,27,.96) 0%, rgba(7,20,27,.72) 22%, rgba(7,20,27,.2) 48%, rgba(7,20,27,.08) 68%, transparent 100%),
    linear-gradient(to bottom, rgba(7,20,27,.55) 0%, rgba(7,20,27,.12) 18%, transparent 36%);
}
.featured-hero.has-art .featured-copy{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-width: none;
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
  padding: 0 0 clamp(22px, 4vw, 34px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.featured-hero.has-art .featured-copy .eyebrow{
  position: absolute;
  top: clamp(-58vh, -52vh, -420px);
  left: 0;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(226,189,126,.28);
  background: rgba(7,20,27,.5);
  backdrop-filter: blur(8px);
}
.featured-hero.has-art .featured-copy h2,
.featured-hero.has-art .featured-copy h2.is-plate{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.featured-hero.has-art .featured-logline{ display:none; }
.featured-hero.has-art .featured-kicker{
  display:inline-flex;
  align-items:center;
  width: fit-content;
  min-height:34px;
  margin:0;
  padding:0 12px;
  border:1px solid rgba(226,189,126,.35);
  background: rgba(7,20,27,.62);
  backdrop-filter: blur(8px);
}
.featured-hero.has-art .featured-actions{
  margin-top: 0;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(7,20,27,.72);
  backdrop-filter: blur(10px);
  width: fit-content;
  max-width: 100%;
}
@media (max-width: 900px){
  .featured-hero.has-art .featured-copy .eyebrow{
    top: -46vh;
  }
  .featured-hero.has-art .featured-actions{
    width: 100%;
  }
  .featured-hero.has-art .featured-actions .button{
    flex: 1 1 auto;
  }
}

/* Card copy clear-zones */
.project-topmeta{
  position:absolute;
  left:16px; top:16px;
  z-index:3;
  display:flex; flex-wrap:wrap; gap:8px 12px;
  max-width: calc(100% - 72px);
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(7,20,27,.58);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,.9);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.project-topmeta .project-status{ color: var(--gold-soft); }
.project-number{
  top: 16px;
  right: 16px;
  left: auto;
  padding: 6px 8px;
  background: rgba(7,20,27,.45);
  backdrop-filter: blur(6px);
}
.project-body.is-plate{
  inset: auto 0 0;
  transform: none;
  opacity: 1;
  gap: 6px;
  padding: 14px 16px 14px;
  background: linear-gradient(to top, rgba(7,20,27,.94) 0%, rgba(7,20,27,.7) 70%, rgba(7,20,27,.15) 100%);
}
.project-body.is-plate .project-plate-label{
  font-family: Arial, Helvetica, sans-serif;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.project-title-hidden{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
/* Keep center of poster free: body plate only occupies lower band */
.project-card.has-art .project-body{
  min-height: 0;
}
.project-card.has-art:hover .project-body.is-plate,
.project-card.has-art:focus-within .project-body.is-plate,
.project-card.has-art.is-hot .project-body.is-plate{
  transform: none;
  background: linear-gradient(to top, rgba(7,20,27,.96) 0%, rgba(7,20,27,.8) 62%, rgba(7,20,27,.28) 100%);
}
@media (max-width: 900px){
  .project-topmeta{ max-width: calc(100% - 64px); }
  .featured-hero.has-art .featured-copy{ padding-top: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  html.js .reveal,
  html.js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
  .project-card:hover,
  .project-card:focus-within { transform: none; }
}
