/* =====================================================================
   Empire Art Gallery — black and white interface system
   One type scale, one spacing scale, one neutral ramp.
   ===================================================================== */

:root {
  --ink:        #0a0a0a;
  --ink-2:      #1f1f1f;
  --muted:      #6b6b6b;
  --muted-2:    #8f8f8f;
  --line:       #e0e0e0;
  --line-2:     #cfcfcf;
  --paper:      #ffffff;
  --paper-2:    #f7f7f5;
  --paper-3:    #efeeea;
  --accent:     #0a0a0a;
  --ok:         #17603a;
  --ok-bg:      #e9f4ee;
  --warn:       #8a5a00;
  --warn-bg:    #fdf3e0;
  --bad:        #94231f;
  --bad-bg:     #fbecea;
  --info-bg:    #eef1f6;
  --info:       #2b4670;

  /* The gallery's own type pairing: Cormorant Garamond display, Inter text. */
  --f-sans: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --f-serif: "Cormorant Garamond", "Times New Roman", Times, Georgia, serif;

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --wrap: 1140px;
  --radius: 0px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-feature-settings: "kern" 1;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--muted); }

h1, h2, h3, h4, h5 {
  margin: 0 0 var(--s3);
  font-family: var(--f-serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(34px, 5vw, 60px); }
h2 { font-size: clamp(28px, 3.6vw, 48px); }
h3 { font-size: clamp(20px, 2vw, 24px); }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
/* Body copy stays in the text face even inside headings-led blocks. */
p, li, dd, dt, label, input, select, textarea, button, .tag, .eyebrow { font-family: var(--f-sans); }
p  { margin: 0 0 var(--s4); }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s5); }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--s5); }
.wrap-mid { max-width: 980px; margin: 0 auto; padding: 0 var(--s5); }

/* ---------- typographic utilities ---------- */

.eyebrow {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 var(--s3); font-weight: 500;
}
.lede { font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }
.serif { font-family: var(--f-serif); }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stack > * + * { margin-top: var(--s4); }
.stack-sm > * + * { margin-top: var(--s2); }
.mt0 { margin-top: 0 } .mb0 { margin-bottom: 0 }
.mt4 { margin-top: var(--s4) } .mt5 { margin-top: var(--s5) } .mt6 { margin-top: var(--s6) }
.mb4 { margin-bottom: var(--s4) } .mb5 { margin-bottom: var(--s5) } .mb6 { margin-bottom: var(--s6) }

.section { padding: var(--s8) 0; }
.section:first-child { padding-top: var(--s7); }
.section-tight { padding: var(--s6) 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5);
}

/* ---------- masthead ---------- */

.masthead { border-bottom: 1px solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 50; }
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4); padding: var(--s3) var(--s5); max-width: 1320px; margin: 0 auto;
}
.nav { flex: 1; justify-content: flex-end; gap: var(--s4); }

.logo { text-decoration: none; display: block; line-height: 1; flex: none; }
.logo img { max-width: 260px; object-fit: contain; }
@media (max-width: 760px) { .logo img { max-width: 190px; height: auto !important; } }

.nav { display: flex; align-items: center; gap: var(--s5); flex-wrap: wrap; }
.nav a:not(.btn) {
  text-decoration: none; font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink); padding-bottom: 2px; border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.nav a:not(.btn):hover { border-bottom-color: var(--ink); color: var(--ink); }
.nav a:not(.btn)[aria-current="page"] { border-bottom-color: var(--ink); }
.nav .btn { border-radius: 999px; }

.nav-toggle { display: none; background: none; border: 1px solid var(--ink); padding: 6px 10px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: 11px 22px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  text-decoration: none; cursor: pointer; border-radius: var(--radius);
  font-family: inherit; transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-quiet:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-sm { padding: 7px 14px; font-size: 10.5px; }
.btn-lg { padding: 14px 32px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-danger { border-color: var(--bad); background: var(--bad); color: #fff; }
.btn-danger:hover { background: var(--paper); color: var(--bad); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.btn-row { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; }

/* ---------- forms ---------- */

.field { margin-bottom: var(--s5); }
.label {
  display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: var(--s2); font-weight: 500;
}
.label .opt { color: var(--muted-2); letter-spacing: .1em; }

.input, .select, .textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); background: var(--paper);
  font-family: inherit; font-size: 15px; color: var(--ink); border-radius: var(--radius);
}
.input:focus, .select:focus, .textarea:focus, .btn:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px;
}
.textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.textarea-tall { min-height: 260px; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--bad); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: var(--s2); }
.err { font-size: 12.5px; color: var(--bad); margin-top: var(--s2); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }

.check { display: flex; gap: var(--s3); align-items: flex-start; margin-bottom: var(--s3); font-size: 14px; }
.check input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--ink); flex: none; }
.check label { cursor: pointer; }

fieldset { border: 1px solid var(--line); padding: var(--s5); margin: 0 0 var(--s5); }
legend { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0 var(--s2); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* six-digit code entry */
.otp { display: flex; gap: var(--s3); justify-content: flex-start; flex-wrap: wrap; }
.otp input {
  width: 52px; height: 62px; text-align: center; font-size: 24px; letter-spacing: 0;
  border: 1px solid var(--line-2); background: var(--paper); font-family: inherit; border-radius: var(--radius);
}
.otp input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }

/* ---------- panels, cards, tables ---------- */

.panel { border: 1px solid var(--line); padding: var(--s5); background: var(--paper); }
.panel + .panel { margin-top: var(--s4); }
.panel-flat { background: var(--paper-2); border-color: var(--paper-3); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); margin-bottom: var(--s4); flex-wrap: wrap; }

.card { border: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; }
.card-media { aspect-ratio: 4 / 5; background: var(--paper-3); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: var(--s4); flex: 1; display: flex; flex-direction: column; gap: var(--s2); }
.card-title { font-size: 16px; margin: 0; }
.card-meta { font-size: 12.5px; color: var(--muted); margin: 0; }
.card-foot { margin-top: auto; padding-top: var(--s3); }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: var(--s3) var(--s3); border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; white-space: nowrap; }
.table tbody tr:hover { background: var(--paper-2); }
.table-scroll { overflow-x: auto; }

/* ---------- status badges ---------- */

.tag {
  display: inline-block; padding: 3px 9px; border: 1px solid var(--line-2);
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  background: var(--paper); white-space: nowrap; border-radius: var(--radius);
}
.tag-solid   { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tag-ok      { color: var(--ok); border-color: var(--ok); background: var(--ok-bg); }
.tag-warn    { color: var(--warn); border-color: var(--warn); background: var(--warn-bg); }
.tag-bad     { color: var(--bad); border-color: var(--bad); background: var(--bad-bg); }
.tag-info    { color: var(--info); border-color: var(--info); background: var(--info-bg); }

/* ---------- notices ---------- */

.notice { border: 1px solid var(--line-2); border-left-width: 3px; padding: var(--s3) var(--s4); margin-bottom: var(--s4); font-size: 14px; }
.notice-success { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.notice-error   { border-color: var(--bad); background: var(--bad-bg); color: var(--bad); }
.notice-info    { border-color: var(--info); background: var(--info-bg); color: var(--info); }
.notice-warn    { border-color: var(--warn); background: var(--warn-bg); color: var(--warn); }
.notice a { color: inherit; }

/* ---------- progress ---------- */

.progress { height: 3px; background: var(--line); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--ink); transition: width .4s ease; }
.progress-label { display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s2); }

/* journey rail */
.rail { display: flex; gap: 0; border: 1px solid var(--line); overflow-x: auto; }
.rail-step { flex: 1; min-width: 120px; padding: var(--s4); border-right: 1px solid var(--line); text-align: center; }
.rail-step:last-child { border-right: 0; }
.rail-step .n { font-size: 10px; letter-spacing: .18em; color: var(--muted-2); }
.rail-step .t { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-top: var(--s2); }
.rail-step.is-done { background: var(--paper-2); }
.rail-step.is-current { background: var(--ink); color: var(--paper); }
.rail-step.is-current .n, .rail-step.is-current .t { color: var(--paper); }

/* ---------- checklist ---------- */

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist .mark { flex: none; width: 18px; height: 18px; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 11px; margin-top: 2px; }
.checklist .is-done .mark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.checklist .txt { flex: 1; }
.checklist .txt b { font-weight: 500; }

/* section rows on the dashboard */
.rowlink {
  display: flex; align-items: center; gap: var(--s4); padding: var(--s5) var(--s4);
  border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.rowlink:first-child { border-top: 1px solid var(--line); }
.rowlink:hover { background: var(--paper-2); }
.rowlink .num { font-size: 12px; color: var(--muted-2); letter-spacing: .1em; width: 26px; flex: none; }
.rowlink .name { flex: 1; font-size: 16px; }
.rowlink .state { font-size: 12px; color: var(--muted); }
.rowlink .arrow { color: var(--muted-2); }
.rowlink.is-locked { opacity: .55; }

/* ---------- layout shells ---------- */

.shell { display: grid; grid-template-columns: 230px 1fr; gap: var(--s7); align-items: start; padding: var(--s6) 0 var(--s9); }
.side { position: sticky; top: 90px; }
.side-title { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s3); }
.side-nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.side-nav a {
  padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none;
  font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: var(--s2);
}
.side-nav a:hover { color: var(--muted); }
.side-nav a.is-active { font-weight: 500; }
.side-nav a.is-active::before { content: "—"; margin-right: 6px; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { background: var(--ink); color: var(--paper); padding: var(--s9) var(--s7); display: flex; flex-direction: column; justify-content: space-between; }
.auth-aside a { color: var(--paper); }
.auth-main { padding: var(--s8) var(--s7); display: flex; align-items: center; }
.auth-form { width: 100%; max-width: 460px; margin: 0 auto; }

.divider { display: flex; align-items: center; gap: var(--s4); color: var(--muted-2); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin: var(--s5) 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- public profile ---------- */

.profile-head { display: grid; grid-template-columns: 300px 1fr; gap: var(--s7); align-items: start; }
.profile-photo { aspect-ratio: 4/5; background: var(--paper-3); overflow: hidden; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.prose { max-width: 68ch; }
.prose p { margin: 0 0 var(--s4); }
.prose a { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 var(--s4); }

.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s5); }
.work-media { background: var(--paper-3); overflow: hidden; aspect-ratio: 1; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work-card:hover .work-media img { transform: scale(1.03); }
.work-card { text-decoration: none; display: block; }
.work-title { font-size: 15px; margin: var(--s3) 0 2px; }
.work-meta { font-size: 12.5px; color: var(--muted); }

.disclaimer { border-top: 1px solid var(--line); padding-top: var(--s4); font-size: 12.5px; color: var(--muted); }

/* ---------- studios ---------- */

.studio-row {
  display: grid; grid-template-columns: 160px 1fr auto; gap: var(--s5);
  align-items: center; padding: var(--s5) 0; border-bottom: 1px solid var(--line);
}
.studio-thumb { aspect-ratio: 4/3; background: var(--paper-3); overflow: hidden; display: grid; place-items: center; }
.studio-thumb img { width: 100%; height: 100%; object-fit: cover; }
.studio-thumb .code { font-size: 30px; color: var(--muted-2); font-family: var(--f-serif); }
.studio-price { font-size: 18px; white-space: nowrap; }
.studio-actions { display: flex; flex-direction: column; gap: var(--s3); align-items: flex-end; }

.state-strip { display: flex; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s5); }
.filter-tabs { display: flex; gap: 0; border: 1px solid var(--ink); width: fit-content; }
.filter-tabs a { padding: 9px 18px; text-decoration: none; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; border-right: 1px solid var(--ink); }
.filter-tabs a:last-child { border-right: 0; }
.filter-tabs a.is-active { background: var(--ink); color: var(--paper); }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s3); }
.slot { border: 1px solid var(--line-2); padding: var(--s3) var(--s4); cursor: pointer; display: block; }
.slot input { position: absolute; opacity: 0; }
.slot:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.slot .d { font-size: 12px; color: var(--muted); }
.slot:has(input:checked) .d { color: var(--paper-3); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); font-size: 12px; color: var(--muted-2); letter-spacing: .1em; }

/* ---------- admin ---------- */

.admin-bar { background: var(--ink); color: var(--paper); }
.admin-bar a { color: var(--paper); text-decoration: none; }
.admin-bar-inner { max-width: 1440px; margin: 0 auto; padding: var(--s3) var(--s5); display: flex; align-items: center; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; }
.admin-nav { display: flex; gap: var(--s4); flex-wrap: wrap; }
.admin-nav a { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.admin-nav a:hover, .admin-nav a.is-active { border-bottom-color: var(--paper); }
.admin-wrap { max-width: 1440px; margin: 0 auto; padding: var(--s6) var(--s5) var(--s9); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s4); }
.stat { border: 1px solid var(--line); padding: var(--s4); }
.stat .n { font-size: 30px; line-height: 1; font-family: var(--f-serif); }
.stat .l { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: var(--s2); }

.review-grid { display: grid; grid-template-columns: 1fr 340px; gap: var(--s6); align-items: start; }
.sticky-col { position: sticky; top: 90px; }

.thumb-row { display: flex; gap: var(--s3); flex-wrap: wrap; }
.thumb { width: 104px; }
.thumb .box { aspect-ratio: 1; background: var(--paper-3); overflow: hidden; border: 1px solid var(--line); }
.thumb .box img { width: 100%; height: 100%; object-fit: cover; }
.thumb .cap { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--ink); margin-top: 0; padding: var(--s7) 0 var(--s6); background: var(--paper-2); }
/* Standalone pages that do not end in a band still need breathing room. */
main > .section:last-child + .foot, main > .wrap:last-child + .foot { margin-top: var(--s8); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s6); }
.foot .logo img { max-width: 300px; }
.foot h5 { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s3); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: var(--s2); }
.foot a { font-size: 14px; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-base { border-top: 1px solid var(--line); margin-top: var(--s6); padding-top: var(--s4); font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }

/* ---------- hero ---------- */

.hero { padding: var(--s9) 0; border-bottom: 1px solid var(--line); }
.hero h1 { font-family: var(--f-serif); font-size: clamp(38px, 6.5vw, 76px); line-height: 1.02; letter-spacing: -0.02em; margin-bottom: var(--s5); }

/* ---------- misc ---------- */

.empty { border: 1px dashed var(--line-2); padding: var(--s7) var(--s5); text-align: center; color: var(--muted); }
.pager { display: flex; gap: var(--s2); justify-content: center; margin-top: var(--s7); flex-wrap: wrap; }
.pager a, .pager span { padding: 7px 13px; border: 1px solid var(--line-2); text-decoration: none; font-size: 13px; }
.pager .is-current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--s2) var(--s5); font-size: 14px; margin: 0; }
.dl dt { color: var(--muted); font-size: 12.5px; }
.dl dd { margin: 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--s4); top: var(--s4); z-index: 100; background: var(--ink); color: var(--paper); padding: var(--s3) var(--s4); }

.draggable { cursor: grab; }
.dragging { opacity: .4; }

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .shell { grid-template-columns: 1fr; gap: var(--s5); }
  .side { position: static; }
  .side-nav { flex-direction: row; flex-wrap: wrap; gap: var(--s4); border-top: 0; }
  .side-nav a { border-bottom: 0; padding: 0; }
  .review-grid { grid-template-columns: 1fr; }
  .sticky-col { position: static; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { padding: var(--s6) var(--s5); }
  .auth-main { padding: var(--s6) var(--s5); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: var(--s3); padding-top: var(--s4); }
  .nav.is-open { display: flex; }
  .nav-toggle { display: block; }
  .masthead-inner { flex-wrap: wrap; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .profile-head { grid-template-columns: 1fr; }
  .studio-row { grid-template-columns: 1fr; }
  .studio-actions { align-items: flex-start; flex-direction: row; }
  .foot-grid { grid-template-columns: 1fr; }
  .otp input { width: 44px; height: 54px; font-size: 20px; }
  .section { padding: var(--s6) 0; }
  .hero { padding: var(--s7) 0; }
}

@media print {
  .masthead, .foot, .btn, .side, .admin-bar { display: none !important; }
  body { font-size: 12px; }
}

/* =====================================================================
   Gallery front-of-house — components that mirror the published site
   ===================================================================== */

/* ---------- full-bleed hero ---------- */

.hero-cover {
  min-height: min(85vh, 780px);
  display: grid;
  place-items: center;
  padding: var(--s8) var(--s5);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  text-align: center;
}
/* The published site lays a 66% white veil over the hero photograph. */
.hero-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .66);
}
.hero-cover > * { position: relative; }
.hero-cover img { max-width: min(560px, 74vw); margin: 0 auto; }

/* ---------- eyebrow pill ---------- */

.pill {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--s3);
}
/* Outlined only where it sits over imagery or a dark ground. */
.pill-invert, .hero-cover .pill, .band-dark .pill {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, .34);
  color: #fff;
  margin-bottom: var(--s4);
}
.band-warm .pill { color: var(--ink); }

/* ---------- section headers ---------- */

.band { padding: var(--s9) 0; }
.band-tight { padding: var(--s8) 0; }
.band-dark { background: var(--ink); color: var(--paper); }
.band-dark h1, .band-dark h2, .band-dark h3, .band-dark h4 { color: var(--paper); }
.band-dark .muted, .band-dark p { color: #cfcfcf; }
.band-soft { background: var(--paper-2); }
.band-warm { background: #ece6e6; }

.band-head { max-width: 760px; margin-bottom: var(--s7); }
.band-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.band-head p { font-size: 17px; color: var(--muted); margin: 0; }

.head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s5); flex-wrap: wrap; margin-bottom: var(--s6);
}

/* ---------- exhibition cards ---------- */

.exh-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
@media (max-width: 1100px) { .exh-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .exh-grid { grid-template-columns: 1fr; } }
.exh-card { text-decoration: none; color: inherit; display: block; }
.exh-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.exh-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.exh-card:hover .exh-media img { transform: scale(1.04); }
.exh-card h3 { margin: var(--s4) 0 var(--s1); min-height: 2.2em; }
.exh-meta { font-size: 13.5px; color: var(--muted); margin: 0; }
.exh-open { font-size: 13.5px; margin: var(--s1) 0 0; }

/* ---------- statistics row ---------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s6); }
.stats .figure { font-family: var(--f-serif); font-size: clamp(40px, 5vw, 60px); line-height: 1; font-weight: 600; }
.stats .caption { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: var(--s2); }
.band-dark .stats .caption { color: #9a9a9a; }

/* ---------- editorial two-column ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; }
.split-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-3); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- artist cards ---------- */

.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
@media (max-width: 1100px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .people { grid-template-columns: 1fr; } }
.person { text-decoration: none; color: inherit; display: block; }
.person-media { aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper-3); }
.person-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; filter: grayscale(1); }
.person:hover .person-media img { transform: scale(1.04); filter: grayscale(0); }
.person h3 { margin: var(--s4) 0 2px; font-size: 21px; }
.person h3 a { text-decoration: none; }
.person h3 a:hover { color: var(--muted); }
.person .role { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s3); }
.person p { font-size: 14px; color: var(--muted); margin: 0; }
.person-tags { margin-bottom: var(--s3) !important; }
.person-action { margin-top: var(--s3) !important; }
/* The portrait link is decorative; the name and button carry the accessible label. */
.person-media { display: block; }

/* ---------- press ---------- */

.press { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s6); }
.press-item { text-decoration: none; color: inherit; display: block; }
.press-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); }
.press-media img { width: 100%; height: 100%; object-fit: cover; }
.press-date { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: var(--s4) 0 var(--s2); }
.press-item h3 { font-size: 20px; margin: 0; }

/* ---------- calendar ---------- */

.month { border-top: 1px solid var(--ink); padding-top: var(--s4); margin-top: var(--s7); }
.month-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.month-head h3 { margin: 0; }
.month-count { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cal-row {
  display: grid; grid-template-columns: 120px 1fr auto; gap: var(--s5);
  align-items: center; padding: var(--s4) 0; border-bottom: 1px solid var(--line);
}
.cal-thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.cal-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- visit / location ---------- */

.visit { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s5); }
.visit-card { border: 1px solid var(--line); padding: var(--s6); }
.band-dark .visit-card { border-color: rgba(255,255,255,.22); }
.visit-card h3 { margin-bottom: var(--s3); }
.visit-card p { font-size: 14.5px; margin: 0 0 var(--s2); }

/* ---------- newsletter ---------- */

.newsletter { display: flex; gap: var(--s3); flex-wrap: wrap; max-width: 560px; }
.newsletter .input { flex: 1; min-width: 220px; }
.band-dark .input, .band-dark .select, .band-dark .textarea {
  background: transparent; border-color: rgba(255,255,255,.3); color: #fff;
}
.band-dark .input::placeholder, .band-dark .textarea::placeholder { color: #8f8f8f; }
.band-dark .label { color: #9a9a9a; }
.band-dark .btn { background: #fff; color: var(--ink); border-color: #fff; }
.band-dark .btn:hover { background: transparent; color: #fff; }
.band-dark .check label { color: #cfcfcf; }
.band-dark a { color: #fff; }

/* ---------- masthead refinements ---------- */

.masthead-top { border-bottom: 1px solid var(--line); }
.nav-utility { display: flex; gap: var(--s3); align-items: center; }

/* ---------- footer refinements ---------- */

.foot-tagline { max-width: 34ch; font-size: 14.5px; color: var(--muted); }
.social-row { display: flex; gap: var(--s4); flex-wrap: wrap; }
.social-row a { font-size: 13px; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: var(--s6); }
}
@media (max-width: 760px) {
  .band { padding: var(--s7) 0; }
  .band-tight { padding: var(--s6) 0; }
  .cal-row { grid-template-columns: 90px 1fr; }
  .cal-row .cal-when { grid-column: 1 / -1; }
  .hero-cover { min-height: 62vh; }
}


/* ---------- nav dropdowns ---------- */

.nav-group { position: relative; }
/* The menu floats 10px below the trigger. This invisible strip spans that gap
   so the pointer never leaves the group on its way down to the menu. */
.nav-group::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}
.nav .nav-trigger {
  cursor: pointer; text-decoration: none;
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1px solid transparent;
  display: inline-flex; align-items: center; gap: 5px; padding-bottom: 2px;
  white-space: nowrap;
}
.nav .nav-trigger::after { content: "\25BE"; font-size: 9px; }
.nav .nav-trigger:hover,
.nav-group[data-open="true"] > .nav-trigger { border-bottom-color: var(--ink); color: var(--ink); }
.nav-menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 60;
  min-width: 210px; max-width: calc(100vw - 32px);
  background: var(--paper); border: 1px solid var(--ink);
  padding: var(--s2) 0; display: none;
}
/* Keep a menu near the right edge from running off-screen. */
.nav-group[data-align="right"] .nav-menu { left: auto; right: 0; }
.nav-group[data-open="true"] .nav-menu { display: block; }
.nav-menu a { display: block; padding: 9px var(--s4); border-bottom: 0 !important; }
.nav-menu a:hover { background: var(--paper-2); }

@media (max-width: 760px) {
  .nav-group { width: 100%; }
  .nav-group::after { display: none; }
  .nav-menu {
    position: static; border: 0; border-left: 1px solid var(--line);
    padding: 0 0 0 var(--s4); min-width: 0; max-width: none;
  }
  .nav { justify-content: flex-start; }
}
