/* Art Deco — antjanus.com redesign 039
   Lacquer, gold leaf, stepped setbacks. Day = ivory programme paper, Night = black lacquer. */

:root {
  --ground: #f3ecdb;
  --surface: #fbf7ec;
  --surface-2: #ebe1c7;
  --ink: #17140f;
  --text: #2d2920;
  --muted: #574e40;
  --line: #c9b48a;
  --gold: #735310;
  --gold-leaf: #b8923f;
  --gold-soft: #e7d3a0;
  --lacquer: #11151d;
  --lacquer-2: #1a202b;
  --on-lacquer: #efe4c8;
  --on-lacquer-muted: #bfb49b;
  --gold-on-lacquer: #dcb86c;
  --lapis: #364f6a;
  --jade: #1d5c4c;
  --oxblood: #7d2433;
  --focus: #0b5cad;
  --shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 40px -24px rgba(40,28,6,.35);
  --step: 10px;
  --maxw: 1240px;
  --f-display: "Poiret One", "Josefin Sans", sans-serif;
  --f-head: "Marcellus", "Cormorant", serif;
  --f-label: "Josefin Sans", "Futura", sans-serif;
  --f-body: "Crimson Pro", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0b0e14; --surface: #131822; --surface-2: #1b2230; --ink: #f5ead0; --text: #ddd3bc;
    --muted: #b0a58d; --line: #4a4230; --gold: #dcb86c; --gold-leaf: #c9a256; --gold-soft: #3a3120;
    --lacquer: #07090d; --lacquer-2: #10141c; --lapis: #8fb0d6; --jade: #71c7aa; --oxblood: #eb959f;
    --focus: #8cc2ff; --shadow: 0 18px 40px -24px rgba(0,0,0,.8); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0b0e14; --surface: #131822; --surface-2: #1b2230; --ink: #f5ead0; --text: #ddd3bc;
  --muted: #b0a58d; --line: #4a4230; --gold: #dcb86c; --gold-leaf: #c9a256; --gold-soft: #3a3120;
  --lacquer: #07090d; --lacquer-2: #10141c; --lapis: #8fb0d6; --jade: #71c7aa; --oxblood: #eb959f;
  --focus: #8cc2ff; --shadow: 0 18px 40px -24px rgba(0,0,0,.8); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--ground); color: var(--text);
  font-family: var(--f-body); font-size: 1.1875rem; line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 400; margin: 0; }
h2 { font-family: var(--f-head); font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.15; letter-spacing: .02em; }
h3 { font-family: var(--f-head); font-size: 1.4rem; line-height: 1.25; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold-on-lacquer); color: #111; padding: .6rem 1rem; z-index: 100; font-family: var(--f-label); }
.skip:focus { left: 8px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- labels / type helpers ---------- */
.eyebrow, .label {
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: .22em;
  font-size: .875rem; font-weight: 600; color: var(--gold);
}
.label { letter-spacing: .14em; font-size: .8125rem; }
.muted { color: var(--muted); }
.display { font-family: var(--f-display); font-weight: 400; letter-spacing: .01em; line-height: 1.05; }
.num { font-family: var(--f-display); font-variant-numeric: lining-nums; }

/* ---------- ornaments ---------- */
.orn { display: flex; align-items: center; gap: 14px; color: var(--gold-leaf); margin: 0 auto; max-width: 520px; }
.orn::before, .orn::after { content: ""; flex: 1; height: 5px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.orn i { width: 10px; height: 10px; background: currentColor; transform: rotate(45deg); box-shadow: 0 0 0 3px var(--ground), 0 0 0 4px currentColor; flex: none; }
.chevrons {
  height: 12px; opacity: .9;
  background:
    linear-gradient(135deg, var(--gold-on-lacquer) 25%, transparent 25%) -6px 0/12px 12px,
    linear-gradient(225deg, var(--gold-on-lacquer) 25%, transparent 25%) -6px 0/12px 12px;
}
.fan-bg {
  background-color: var(--lacquer);
  background-image:
    radial-gradient(circle at 50% 100%, transparent 0 9px, rgba(220,184,108,.16) 9px 10px, transparent 10px 17px, rgba(220,184,108,.16) 17px 18px, transparent 18px 25px, rgba(220,184,108,.16) 25px 26px, transparent 26px),
    radial-gradient(circle at 50% 100%, transparent 0 9px, rgba(220,184,108,.16) 9px 10px, transparent 10px 17px, rgba(220,184,108,.16) 17px 18px, transparent 18px 25px, rgba(220,184,108,.16) 25px 26px, transparent 26px);
  background-size: 52px 26px, 52px 26px;
  background-position: 0 0, 26px 13px;
}
.sunburst {
  background:
    radial-gradient(circle at 50% 100%, rgba(220,184,108,.28) 0 14%, transparent 60%),
    repeating-conic-gradient(from -90deg at 50% 100%, rgba(220,184,108,.18) 0 2.5deg, transparent 2.5deg 7.5deg);
}

/* stepped frame: gold outer + inset pseudo surface */
.stepped, .card, .btn, .panel {
  --s: var(--step);
  --clip: polygon(
    calc(var(--s)*2) 0, calc(100% - var(--s)*2) 0, calc(100% - var(--s)*2) var(--s), calc(100% - var(--s)) var(--s), calc(100% - var(--s)) calc(var(--s)*2), 100% calc(var(--s)*2),
    100% calc(100% - var(--s)*2), calc(100% - var(--s)) calc(100% - var(--s)*2), calc(100% - var(--s)) calc(100% - var(--s)), calc(100% - var(--s)*2) calc(100% - var(--s)), calc(100% - var(--s)*2) 100%,
    calc(var(--s)*2) 100%, calc(var(--s)*2) calc(100% - var(--s)), var(--s) calc(100% - var(--s)), var(--s) calc(100% - var(--s)*2), 0 calc(100% - var(--s)*2),
    0 calc(var(--s)*2), var(--s) calc(var(--s)*2), var(--s) var(--s), calc(var(--s)*2) var(--s));
}

/* ---------- buttons ---------- */
.btn {
  --s: 5px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.5rem;
  font-family: var(--f-label); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: .875rem;
  background: var(--gold-on-lacquer); color: #15110a; text-decoration: none; border: 0; cursor: pointer;
  clip-path: var(--clip); transition: background .15s, transform .15s;
}
.btn:hover { background: #f0cf85; color: #15110a; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 0; box-shadow: inset 0 0 0 3px #15110a, inset 0 0 0 5px #f7e7b8; }
.btn.dark { background: var(--lacquer); color: var(--gold-on-lacquer); }
.btn.dark:hover { background: #262d3a; }
.link-2 { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .14em; font-weight: 600; font-size: .875rem; color: inherit; text-decoration: underline; text-decoration-color: var(--gold-on-lacquer); text-underline-offset: 6px; padding: .8rem .2rem; display: inline-block; }
.link-3 { font-family: var(--f-label); letter-spacing: .08em; font-size: .9375rem; color: inherit; opacity: .85; text-decoration: none; padding: .8rem .2rem; display: inline-block; }
.link-3:hover, .link-2:hover { color: var(--gold-on-lacquer); }

/* ---------- header ---------- */
.site-head { background: var(--lacquer); color: var(--on-lacquer); position: sticky; top: 0; z-index: 50; }
.site-head .bar { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--on-lacquer); text-decoration: none; flex: none; }
.brand svg { width: 44px; height: 50px; }
.brand .lock { display: flex; flex-direction: column; line-height: 1; font-family: var(--f-label); text-transform: uppercase; }
.brand .lock small { font-size: .8125rem; letter-spacing: .32em; font-weight: 400; color: var(--on-lacquer-muted); }
.brand .lock b { font-size: 1.15rem; letter-spacing: .24em; color: var(--gold-on-lacquer); margin-top: 4px; }
.brand:hover b { color: #f6d88f; }
.nav { display: flex; align-items: center; gap: .25rem; margin: 0 auto; list-style: none; padding: 0; }
.nav li { display: flex; align-items: center; }
.nav li + li::before { content: ""; width: 5px; height: 5px; background: var(--gold-on-lacquer); transform: rotate(45deg); opacity: .6; margin: 0 .35rem; }
.nav a {
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: .18em; font-size: .875rem; font-weight: 600;
  color: var(--on-lacquer); text-decoration: none; padding: .9rem .55rem; display: inline-block; position: relative;
}
.nav a:hover { color: var(--gold-on-lacquer); }
.nav a[aria-current="page"] { color: var(--gold-on-lacquer); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: .55rem; right: .75rem; bottom: .45rem; height: 4px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.nav a.ai-pill {
  --s: 4px; clip-path: var(--clip); background: linear-gradient(180deg, #e9c983, #b8923f); color: #16110a; padding: .55rem 1rem; margin-left: .2rem;
}
.nav a.ai-pill:hover { background: #f4d993; color: #16110a; }
.nav a.ai-pill[aria-current="page"]::after { display: none; }
.nav a.ai-pill[aria-current="page"] { box-shadow: inset 0 0 0 2px #16110a; }
.tools { display: flex; align-items: center; gap: .5rem; flex: none; }
.search { display: flex; align-items: stretch; border: 1px solid #5b4f33; }
.search input { background: transparent; border: 0; color: var(--on-lacquer); font: inherit; font-size: 1rem; padding: .45rem .7rem; width: 9.5rem; min-height: 44px; }
.search input::placeholder { color: var(--on-lacquer-muted); opacity: 1; }
.search button { background: transparent; border: 0; border-left: 1px solid #5b4f33; color: var(--gold-on-lacquer); font-family: var(--f-label); text-transform: uppercase; letter-spacing: .14em; font-size: .8125rem; font-weight: 700; padding: 0 .8rem; cursor: pointer; min-height: 44px; }
.search button:hover { background: #262d3a; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; background: transparent; border: 1px solid #5b4f33; color: var(--gold-on-lacquer); cursor: pointer; }
.icon-btn:hover { background: #262d3a; }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
.menu-btn { display: none; }
@media (max-width: 1080px) {
  .search input { width: 7rem; }
  .nav a { letter-spacing: .12em; padding-left: .4rem; padding-right: .4rem; }
}
@media (max-width: 940px) {
  .menu-btn { display: inline-grid; }
  .site-head .bar { flex-wrap: wrap; gap: .75rem; min-height: 68px; }
  .tools { margin-left: auto; }
  .tools .search { display: none; }
  .nav-wrap { display: none; width: 100%; padding-bottom: 1rem; }
  .nav-wrap.open { display: block; }
  .nav { flex-direction: column; align-items: stretch; }
  .nav li + li::before { display: none; }
  .nav li { border-top: 1px solid #2b2f38; }
  .nav a { width: 100%; padding: .9rem .2rem; }
  .nav a.ai-pill { margin: .6rem 0 0; text-align: center; }
  .nav-wrap .search { display: flex; margin-top: 1rem; }
  .nav-wrap .search input { flex: 1; width: auto; }
}
@media (min-width: 941px) {
  .nav-wrap { display: contents; }
  .nav-wrap .search { display: none; }
}
.progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; background: linear-gradient(90deg, #b8923f, #f0cf85); z-index: 60; }
.progress-pct { position: fixed; bottom: 16px; right: 16px; z-index: 61; font-family: var(--f-label); font-size: .8125rem; letter-spacing: .1em; color: var(--gold-on-lacquer); background: var(--lacquer); padding: .2rem .5rem; border: 1px solid #5b4f33; }

/* ---------- section headers ---------- */
.section { padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.section + .section { padding-top: 0; }
.sec-head { text-align: center; margin-bottom: 2.75rem; }
.sec-head .eyebrow { display: block; margin-bottom: .75rem; }
.sec-head p { color: var(--muted); margin: .75rem auto 0; max-width: 52ch; font-size: 1.1875rem; }
.sec-head .orn { margin-top: 1.25rem; }
.sec-head .more { display: inline-block; margin-top: .9rem; font-family: var(--f-label); text-transform: uppercase; letter-spacing: .16em; font-size: .875rem; font-weight: 600; padding: .5rem 0; }
.roman { font-family: var(--f-display); font-size: 1.25rem; color: var(--gold); letter-spacing: .1em; }

/* ---------- page marquee (inner pages) ---------- */
.marquee {
  position: relative; color: var(--on-lacquer); background: var(--lacquer); overflow: hidden; text-align: center;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(5rem, 9vw, 7.5rem);
}
.marquee .bgimg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .28; filter: saturate(.6) sepia(.35); }
.marquee .rays { position: absolute; inset: 0; }
.marquee .inner { position: relative; }
.marquee h1 { font-family: var(--f-display); font-size: clamp(2.8rem, 1.6rem + 5vw, 5.6rem); color: #f6ebcf; line-height: 1; letter-spacing: .03em; margin: .8rem 0 1rem; }
.marquee p { max-width: 58ch; margin: 0 auto; font-size: 1.25rem; color: var(--on-lacquer); }
.marquee .eyebrow { color: var(--gold-on-lacquer); }
.skyline { position: absolute; left: 0; right: 0; bottom: -1px; height: 56px; color: var(--ground); }
.skyline svg { width: 100%; height: 100%; display: block; }

/* ---------- hero (home) ---------- */
.hero { position: relative; background: var(--lacquer); color: var(--on-lacquer); overflow: hidden; }
.hero .rays { position: absolute; inset: 0; background-position: 72% 100%; }
.hero .grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: end; padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: 5.5rem; }
.hero h1 { font-family: var(--f-display); color: #f7ecd1; font-size: clamp(2.9rem, 1.4rem + 4.6vw, 5.4rem); line-height: 1.02; letter-spacing: .005em; margin: 1rem 0 1.4rem; }
.hero h1 em { font-style: normal; color: var(--gold-on-lacquer); }
.hero .lede { font-size: 1.3125rem; max-width: 40ch; color: var(--on-lacquer); }
.hero .ctas { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 2rem; }
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #5b4f33; border: 1px solid #5b4f33; margin-top: 2rem; max-width: 560px; }
.stat-strip > div { background: var(--lacquer-2); padding: 1rem 1rem .9rem; text-align: center; }
.stat-strip b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 2.4rem; line-height: 1; color: var(--gold-on-lacquer); }
.stat-strip span { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .14em; font-size: .8125rem; color: var(--on-lacquer-muted); display: block; margin-top: .45rem; }
.portrait-arch { position: relative; justify-self: center; width: min(100%, 440px); }
.portrait-arch .frame {
  aspect-ratio: 4 / 5.2; background: linear-gradient(160deg, #3b3322, #15120c); padding: 6px;
  clip-path: polygon(0 100%, 0 26%, 10% 26%, 10% 16%, 22% 16%, 22% 7%, 36% 7%, 36% 0, 64% 0, 64% 7%, 78% 7%, 78% 16%, 90% 16%, 90% 26%, 100% 26%, 100% 100%);
  background-image: linear-gradient(180deg, #f0cf85, #8e6c28);
}
.portrait-arch .frame > div {
  width: 100%; height: 100%; background: #1d1a14 center/cover no-repeat;
  clip-path: polygon(0 100%, 0 26%, 10% 26%, 10% 16%, 22% 16%, 22% 7%, 36% 7%, 36% 0, 64% 0, 64% 7%, 78% 7%, 78% 16%, 90% 16%, 90% 26%, 100% 26%, 100% 100%);
}
.portrait-arch img { width: 100%; height: 100%; object-fit: cover; object-position: 22% 30%; filter: sepia(.25) contrast(1.05); }
.portrait-arch figcaption { text-align: center; margin-top: .8rem; color: var(--on-lacquer-muted); font-family: var(--f-label); letter-spacing: .2em; text-transform: uppercase; font-size: .8125rem; }
@media (max-width: 860px) {
  .hero .grid { grid-template-columns: 1fr; gap: 2rem; }
  .portrait-arch { width: min(78%, 360px); order: -1; }
  .stat-strip b { font-size: 1.9rem; }
}

/* ---------- cards ---------- */
.card {
  position: relative; background: var(--line); clip-path: var(--clip); display: flex; flex-direction: column;
  transition: transform .18s, background .18s;
}
.card::before { content: ""; position: absolute; inset: 1px; background: var(--surface); clip-path: var(--clip); z-index: 0; }
.card > * { position: relative; z-index: 1; }
.card:hover { background: var(--gold-leaf); transform: translateY(-3px); }
.card:focus-within { background: var(--focus); }
.card .img { aspect-ratio: 16/9; overflow: hidden; margin: 1px 1px 0; background: var(--lacquer) center/cover; position: relative; }
.card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .img img { transform: scale(1.04); }
.card .img::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(240,207,133,.55); pointer-events: none; }
.card .body { padding: 1.3rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
.card h2 a::after, .card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.card h2 a:focus-visible, .card h3 a:focus-visible { outline: none; }
.card h2 a:focus-visible::after, .card h3 a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: -8px; }
.card .desc { color: var(--text); font-size: 1.0625rem; margin: 0; }
.card .meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; }
.card .read { margin-top: auto; padding-top: .6rem; font-family: var(--f-label); text-transform: uppercase; letter-spacing: .16em; font-size: .8125rem; font-weight: 700; color: var(--gold); }
.card .noimg { aspect-ratio: 16/9; margin: 1px 1px 0; display: grid; place-items: center; color: var(--gold-on-lacquer); font-family: var(--f-display); font-size: 2rem; text-align: center; padding: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.chip { display: inline-block; font-family: var(--f-label); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .6rem; border: 1px solid var(--line); color: var(--muted); text-decoration: none; }
a.chip:hover { border-color: var(--gold); color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.badge { display: inline-block; font-family: var(--f-label); font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: .2rem .55rem; background: var(--gold-on-lacquer); color: #15110a; }
.badge.updated { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.tone-ai { --tone: var(--jade); } .tone-garden { --tone: var(--lapis); } .tone-tools { --tone: var(--gold); } .tone-story { --tone: var(--oxblood); }
.coll { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .16em; font-size: .8125rem; font-weight: 700; color: var(--tone, var(--gold)); display: inline-flex; align-items: center; gap: .45rem; }
.coll::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: currentColor; }

/* ---------- programme list (theatre bill rows) ---------- */
.programme { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.programme li { border-bottom: 1px solid var(--line); }
.programme a { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1.5rem; padding: 1.2rem .2rem; text-decoration: none; color: var(--text); }
.programme a:hover { background: var(--surface); }
.programme a:hover .t { color: var(--gold); }
.programme .t { font-family: var(--f-head); font-size: 1.3rem; color: var(--ink); line-height: 1.3; display: flex; align-items: baseline; gap: .8rem; }
.programme .t::after { content: ""; flex: 1; border-bottom: 2px dotted var(--line); min-width: 1.5rem; transform: translateY(-4px); }
.programme .d { font-family: var(--f-label); letter-spacing: .1em; font-size: .875rem; color: var(--muted); align-self: baseline; white-space: nowrap; }
.programme .x { grid-column: 1 / -1; color: var(--muted); font-size: 1.0625rem; margin: 0; }
@media (max-width: 560px) { .programme a { grid-template-columns: 1fr; } .programme .t::after { display: none; } }

/* ---------- panels ---------- */
.panel { position: relative; padding: clamp(1.6rem, 3vw, 2.5rem); background: var(--line); clip-path: var(--clip); --s: 12px; }
.panel::before { content: ""; position: absolute; inset: 1px; background: var(--surface); clip-path: var(--clip); }
.panel > * { position: relative; }
.panel.lacquer { background: #5b4f33; color: var(--on-lacquer); }
.panel.lacquer::before { background: var(--lacquer); }
.panel.lacquer h2, .panel.lacquer h3 { color: #f6ebcf; }
.panel.lacquer .eyebrow, .panel.lacquer .label { color: var(--gold-on-lacquer); }
.panel.lacquer a:not(.btn) { color: var(--gold-on-lacquer); }
.panel.lacquer .muted { color: var(--on-lacquer-muted); }

.exp-icon { width: 64px; height: 64px; color: var(--gold); margin-bottom: .5rem; }
.exp-card { text-align: center; align-items: center; }
.exp-card .body { align-items: center; }

.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .8rem 0; text-decoration: none; color: var(--ink); font-family: var(--f-head); font-size: 1.15rem; }
.link-list a small { font-family: var(--f-label); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.link-list a:hover { color: var(--gold); }
.panel.lacquer .link-list li { border-color: #3a3322; }
.panel.lacquer .link-list a { color: var(--on-lacquer); }
.panel.lacquer .link-list a small { color: var(--on-lacquer-muted); }

/* ---------- footer ---------- */
.site-foot { margin-top: 1rem; color: var(--on-lacquer); }
.site-foot .top { padding: 4rem 0 2.5rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.5fr; gap: 2.5rem; }
.site-foot h2 { font-family: var(--f-label); font-size: .875rem; text-transform: uppercase; letter-spacing: .22em; color: var(--gold-on-lacquer); font-weight: 700; margin-bottom: 1rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li a { color: var(--on-lacquer); text-decoration: none; display: inline-block; padding: .3rem 0; font-size: 1.0625rem; }
.site-foot li a:hover { color: var(--gold-on-lacquer); text-decoration: underline; }
.site-foot p { color: var(--on-lacquer-muted); }
.sub-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.sub-form input { flex: 1 1 180px; min-height: 48px; padding: .5rem .8rem; font: inherit; font-size: 1.0625rem; background: var(--lacquer-2); color: var(--on-lacquer); border: 1px solid #5b4f33; }
.sub-form input::placeholder { color: var(--on-lacquer-muted); opacity: 1; }
.sub-status { min-height: 1.6em; font-size: 1rem; margin-top: .5rem; color: var(--gold-on-lacquer); }
.site-foot .bottom { border-top: 1px solid #3a3322; padding: 1.4rem 0; text-align: center; font-family: var(--f-label); letter-spacing: .14em; font-size: .8125rem; text-transform: uppercase; color: var(--on-lacquer-muted); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- misc layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.jump { position: sticky; top: 76px; z-index: 20; background: var(--ground); border-bottom: 1px solid var(--line); }
.jump .wrap { display: flex; gap: .4rem; align-items: center; overflow-x: auto; padding-top: .6rem; padding-bottom: .6rem; }
.jump span { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .16em; font-size: .8125rem; color: var(--muted); margin-right: .5rem; white-space: nowrap; }
.jump a { white-space: nowrap; font-family: var(--f-label); text-transform: uppercase; letter-spacing: .12em; font-size: .875rem; font-weight: 600; text-decoration: none; padding: .55rem .9rem; border: 1px solid var(--line); color: var(--ink); }
.jump a:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 940px) { .jump { top: 68px; } }

.landscape { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; }
.landscape:nth-child(even) .img { order: 2; }
.landscape .img { aspect-ratio: auto; min-height: 280px; margin: 1px; }
.landscape .body { padding: 2rem 2.2rem; }
@media (max-width: 800px) { .landscape { grid-template-columns: 1fr; } .landscape:nth-child(even) .img { order: 0; } .landscape .img { min-height: 200px; aspect-ratio: 16/9; } }
.stack > * + * { margin-top: 1.75rem; }
.stats-row { display: flex; gap: 1px; background: var(--line); border: 1px solid var(--line); flex-wrap: wrap; }
.stats-row > div { flex: 1 1 110px; background: var(--surface-2); padding: .8rem 1rem; text-align: center; }
.stats-row b { display: block; font-family: var(--f-display); font-size: 1.9rem; color: var(--gold); font-weight: 400; line-height: 1.1; }
.stats-row span { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .12em; font-size: .8125rem; color: var(--muted); }

.notice { border: 1px solid var(--oxblood); border-left-width: 6px; padding: 1rem 1.25rem; background: var(--surface); }
.notice strong { color: var(--oxblood); font-family: var(--f-label); text-transform: uppercase; letter-spacing: .12em; font-size: .875rem; display: block; margin-bottom: .2rem; }

/* ---------- article ---------- */
.art-hero { position: relative; color: #f6ebcf; background: var(--lacquer); overflow: hidden; }
.art-hero .bg { position: absolute; inset: 0; background: center/cover no-repeat; opacity: .45; filter: sepia(.4) saturate(.8); }
.art-hero .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,9,13,.62), rgba(7,9,13,.95) 75%); }
.art-hero .inner { position: relative; padding: clamp(4rem, 9vw, 7rem) 0 5.5rem; text-align: center; }
.art-hero h1 { font-family: var(--f-display); font-size: clamp(2.2rem, 1.5rem + 4.2vw, 5rem); line-height: 1.04; max-width: 17ch; margin: 1rem auto; color: #f7ecd1; }
.art-hero .desc { font-size: 1.3rem; max-width: 46ch; margin: 0 auto 1.4rem; color: #eadfc4; }
.art-hero .crumb { color: var(--gold-on-lacquer); font-family: var(--f-label); text-transform: uppercase; letter-spacing: .22em; font-size: .875rem; font-weight: 700; text-decoration: none; padding: .4rem 0; }
.art-hero .meta { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .2em; font-size: .875rem; color: #d8ccaf; }
.art-hero .chips .chip { color: #eadfc4; border-color: #6a5c3c; }
.art-hero .chips { justify-content: center; margin-bottom: 1rem; }
.art-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 3.5rem; align-items: start; padding-top: 3.5rem; }
.toc { position: sticky; top: 100px; }
.toc .panel { --s: 8px; padding: 1.4rem 1.3rem; }
.toc ol { list-style: none; margin: .8rem 0 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 2rem 1fr; gap: .2rem; padding: .45rem 0; text-decoration: none; color: var(--text); font-size: 1.0625rem; line-height: 1.35; border-left: 2px solid transparent; padding-left: .5rem; }
.toc a::before { content: counter(toc, upper-roman) "."; font-family: var(--f-display); color: var(--gold); }
.toc a:hover { color: var(--gold); }
.toc a.active { border-left-color: var(--gold-leaf); color: var(--ink); font-weight: 600; }
.toc-mobile { display: none; }
@media (max-width: 1100px) {
  .art-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .toc-mobile { display: block; margin-bottom: 2rem; }
}
.toc-mobile summary { cursor: pointer; list-style: none; font-family: var(--f-label); text-transform: uppercase; letter-spacing: .18em; font-weight: 700; font-size: .875rem; color: var(--gold); min-height: 44px; display: flex; align-items: center; justify-content: space-between; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: "+"; font-size: 1.4rem; }
.toc-mobile[open] summary::after { content: "–"; }
.toc-mobile ol { margin: .6rem 0 0; padding-left: 1.6rem; list-style: upper-roman; }
.toc-mobile li { padding: .3rem 0; }
.prose { max-width: 700px; font-size: 1.25rem; line-height: 1.65; color: var(--text); }
.prose > p:first-of-type::first-letter {
  float: left; font-family: var(--f-display); font-size: 4.6rem; line-height: .85; padding: .35rem .7rem .2rem; margin: .15rem .7rem 0 0;
  color: var(--gold-on-lacquer); background: var(--lacquer); border: 3px double var(--gold-leaf);
}
.prose h2 { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.3rem); margin: 3.2rem 0 1rem; display: flex; align-items: center; gap: .8rem; scroll-margin-top: 100px; }
.prose h2::before { content: ""; width: 12px; height: 12px; transform: rotate(45deg); background: var(--gold-leaf); flex: none; }
.prose ul, .prose ol { padding-left: 1.5rem; }
.prose li { margin: .35rem 0; }
.prose li::marker { color: var(--gold); font-family: var(--f-display); }
.prose code { font-family: var(--f-mono); font-size: .85em; background: var(--surface-2); padding: .1em .35em; }
.prose blockquote { margin: 1.8rem 0; padding: 1.1rem 1.4rem; background: var(--surface); border: 1px solid var(--line); position: relative; font-size: 1.1875rem; }
.prose blockquote p { margin: 0; }
.prose blockquote .kind { display: block; font-family: var(--f-label); text-transform: uppercase; letter-spacing: .2em; font-size: .8125rem; font-weight: 700; margin-bottom: .35rem; }
.prose blockquote.why { border-top: 4px solid var(--lapis); }
.prose blockquote.why .kind { color: var(--lapis); }
.prose blockquote.ask { border-top: 4px solid var(--oxblood); }
.prose blockquote.ask .kind { color: var(--oxblood); }
.prose blockquote.skill, .prose blockquote.note { border-top: 4px solid var(--gold-leaf); }
.prose blockquote.skill .kind, .prose blockquote.note .kind { color: var(--gold); }
.code {
  margin: 2rem 0; background: #0d1016; border: 1px solid #4b4128; position: relative;
  box-shadow: 0 0 0 4px var(--ground), 0 0 0 5px #6d5c34;
}
@media (min-width: 1101px) { .code { margin-right: -60px; } }
.code .head { display: flex; justify-content: space-between; align-items: center; padding: .3rem .4rem .3rem 1rem; border-bottom: 1px solid #3a3322; background: #151a23; }
.code .lang { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .24em; font-size: .8125rem; font-weight: 700; color: #dcb86c; }
.copy { background: transparent; border: 1px solid #5b4f33; color: #efe4c8; font-family: var(--f-label); text-transform: uppercase; letter-spacing: .14em; font-size: .8125rem; font-weight: 700; padding: .5rem .8rem; min-height: 40px; cursor: pointer; }
.copy:hover { background: #262d3a; }
.code pre { margin: 0; padding: 1.2rem 1.25rem; overflow-x: auto; font-family: var(--f-mono); font-size: .9375rem; line-height: 1.6; color: #e8dfc8; tab-size: 2; }
.code pre code { background: none; padding: 0; font-size: inherit; }
.tk-k { color: #e5b567; } .tk-s { color: #a8c97f; } .tk-c { color: #8c8574; font-style: italic; } .tk-t { color: #8fb8e0; } .tk-f { color: #f0d9a8; }
.filed { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.share-zone { margin-top: 3rem; }
.share-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.share-row a, .share-row button { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .14em; font-size: .8125rem; font-weight: 700; padding: .7rem 1rem; min-height: 44px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; }
.share-row a:hover, .share-row button:hover { border-color: var(--gold); color: var(--gold); }
.series-banner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ---------- about ---------- */
.about-hero .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .about-hero .grid { grid-template-columns: 1fr; } }
.career-bar { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 1.5rem 0 2rem; }
.career-bar div { flex: 1 1 120px; background: var(--surface-2); padding: .7rem .8rem; }
.career-bar b { font-family: var(--f-head); font-weight: 400; color: var(--ink); display: block; font-size: 1.05rem; }
.career-bar span { font-family: var(--f-label); font-size: .8125rem; letter-spacing: .1em; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 0; bottom: 0; border-left: 3px double var(--gold-leaf); }
.timeline > li { position: relative; padding: 0 0 2.2rem 3.2rem; }
.timeline > li::before { content: ""; position: absolute; left: 8px; top: 8px; width: 17px; height: 17px; background: var(--ground); border: 2px solid var(--gold-leaf); transform: rotate(45deg); }
.timeline h3 { margin-bottom: .2rem; }
.timeline ul { padding-left: 1.2rem; margin: .6rem 0 0; }
.principles { list-style: none; counter-reset: p; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.principles li { counter-increment: p; display: grid; grid-template-columns: 3.5rem 1fr; align-items: baseline; font-size: 1.45rem; font-style: italic; color: #f3e8cc; border-bottom: 1px solid #3a3322; padding-bottom: 1rem; }
.principles li::before { content: counter(p, upper-roman); font-family: var(--f-display); font-style: normal; color: var(--gold-on-lacquer); font-size: 1.6rem; }
details.expander > summary { cursor: pointer; list-style: none; }
details.expander > summary::-webkit-details-marker { display: none; }
details.expander[open] .show { display: none; }
details.expander:not([open]) .hide { display: none; }
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: #3a3322; border: 1px solid #3a3322; margin-top: 2rem; }
.cap-grid > div { background: var(--lacquer); padding: 1.5rem; }
@media (max-width: 760px) { .cap-grid { grid-template-columns: 1fr; } }
.cap-grid .chip { color: var(--on-lacquer); border-color: #5b4f33; }

/* ---------- patterns ---------- */
.three-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 1.5rem 0; }
.three-ways > div { background: var(--surface); padding: 1.3rem 1.4rem; }
@media (max-width: 800px) { .three-ways { grid-template-columns: 1fr; } }
.filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin: 2rem 0 1.5rem; }
.p-search { width: 100%; }
.p-search input { width: 100%; min-height: 54px; font: inherit; font-size: 1.125rem; padding: .7rem 1rem; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-bottom: 3px double var(--gold-leaf); }
.p-search input::placeholder { color: var(--muted); opacity: 1; }
.pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.pills button { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .12em; font-size: .875rem; font-weight: 600; padding: .6rem 1rem; min-height: 44px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.pills button:hover { border-color: var(--gold); }
.pills button[aria-pressed="true"] { background: var(--lacquer); color: var(--gold-on-lacquer); border-color: var(--lacquer); box-shadow: inset 0 -3px 0 var(--gold-leaf); }
.sortbox { display: flex; gap: .6rem; align-items: center; }
.sortbox select { min-height: 44px; font: inherit; font-size: 1rem; background: var(--surface); color: var(--ink); border: 1px solid var(--line); padding: .3rem .6rem; }
.count-line { display: flex; gap: 1rem; align-items: center; }
.clear-btn { background: none; border: 0; color: var(--gold); font: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0 .4rem; }
.mini { aspect-ratio: 16/9; margin: 1px 1px 0; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; position: relative; }
.mini::after { content: ""; position: absolute; inset: 10px; border: 1px solid var(--line); pointer-events: none; }
.mini { grid-template-columns: 1fr 1fr; gap: 0 1rem; padding: 0 1.5rem; }
.mini svg { width: 100%; height: 70%; color: var(--gold); }
.mini .no { font-family: var(--f-display); font-size: 3.4rem; color: var(--ink); line-height: 1; text-align: center; }
.mini .no small { display: block; font-family: var(--f-label); font-size: .8125rem; letter-spacing: .2em; color: var(--muted); margin-bottom: .3rem; }
.empty { text-align: center; padding: 3rem 1rem; }
.empty[hidden] { display: none; }
.p-card[hidden] { display: none; }

.panes { margin-top: 2.5rem; border: 1px solid var(--line); background: var(--surface); }
.pane-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: stretch; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.tabs { display: flex; flex-wrap: wrap; }
.tabs button { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .14em; font-size: .875rem; font-weight: 700; padding: .9rem 1.1rem; min-height: 48px; background: none; border: 0; border-right: 1px solid var(--line); color: var(--muted); cursor: pointer; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--gold); box-shadow: inset 0 3px 0 var(--gold-leaf); }
.pane-actions { display: flex; gap: .4rem; padding: .35rem; align-items: center; }
.pane-actions button { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .12em; font-size: .8125rem; font-weight: 700; padding: .5rem .8rem; min-height: 40px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); cursor: pointer; }
.pane-actions button:hover { border-color: var(--gold); color: var(--gold); }
.pane { padding: 1.5rem; }
.pane[hidden] { display: none; }
.pane pre { margin: 0; font-family: var(--f-mono); font-size: .9375rem; line-height: 1.6; overflow-x: auto; white-space: pre; color: var(--ink); }
.pane .note { background: var(--surface-2); padding: .8rem 1rem; margin-bottom: 1rem; font-size: 1.0625rem; }
.prompt-text { max-width: 70ch; font-size: 1.1875rem; }
.stage { background: var(--ground); padding: 1.5rem; border: 1px dashed var(--line); }
.stage .cap { color: var(--muted); font-size: 1.0625rem; margin: 0 0 .8rem; }
.hss-strip { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: 1fr; margin-bottom: 1.8rem; }
@media (min-width: 21rem) { .hss-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 42rem) { .hss-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .hss-strip.five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.hss-tile { background: var(--surface); padding: .9rem 1rem; text-align: left; min-width: 0; }
.hss-tile .k { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .12em; font-size: .8125rem; color: var(--muted); display: block; overflow-wrap: anywhere; }
.hss-tile .v { font-family: var(--f-display); font-size: 2rem; color: var(--ink); line-height: 1.15; display: block; font-variant-numeric: tabular-nums; }
.hss-tile .v.none { color: var(--muted); }
.hss-tile .u { font-size: 1rem; color: var(--muted); display: block; }
button.hss-tile { border: 0; font: inherit; cursor: pointer; color: inherit; }
button.hss-tile:hover { background: var(--surface-2); }
button.hss-tile[aria-pressed="true"] { background: color-mix(in srgb, var(--gold-leaf) 22%, var(--surface)); box-shadow: inset 0 -3px 0 var(--gold-leaf); }
.dl-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); background: var(--surface); }
.dl-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
.dl-list li:last-child { border-bottom: 0; }
.dl-list .st { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .1em; font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.st.done { color: var(--jade); } .st.failed { color: var(--oxblood); } .st.dl { color: var(--lapis); } .st.queued { color: var(--muted); }
.use-cases { columns: 2; column-gap: 2.5rem; padding-left: 1.2rem; margin: .8rem 0 1.4rem; }
@media (max-width: 600px) { .use-cases { columns: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .card:hover { transform: none; }
}
