/* ==========================================================================
   CRONOUS REBORN — site stylesheet
   Dark, cinematic, gold-on-charcoal. Lockups and plates from /brand and the
   loader-plate kit; palette descends from the 2008 styles-hi.css (gold links,
   parchment copy) and the web client's entry screen (#080704, #e8ddbf).
   ========================================================================== */

:root {
  --bg: #07060a;
  --bg-1: #0b0a10;
  --bg-2: #110f17;
  --surface: #15121c;
  --surface-2: #1c1826;
  --line: rgba(232, 185, 100, .16);
  --line-2: rgba(232, 185, 100, .34);
  --gold: #e4b45c;
  --gold-2: #f7d98f;
  --gold-3: #b98a3a;
  --ember: #ff8c3b;
  --ember-2: #ff5a2c;
  --ink: #f2eadb;
  --parchment: #e3d7bb;
  --muted: #a69b84;
  --dim: #6f6657;
  --ok: #4fd1a1;
  --warn: #f0b35c;
  --bad: #ef6a5a;
  --font-display: "Cinzel", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-lore: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 72px;
  --shadow: 0 20px 50px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--parchment);
  font: 400 16px/1.65 var(--font-body);
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-2); }
button { font: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; color: var(--gold-2); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
::selection { background: rgba(228, 180, 92, .35); color: #fff; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: .02em; }
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 2vw, 24px); }
h4 { font-size: 17px; }
p { margin: 0 0 1em; }
.eyebrow {
  font: 600 12px/1 var(--font-display); letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 14px;
}
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--parchment); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line-2);
  font: 600 13px/1 var(--font-display); letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink); background: rgba(255, 255, 255, .03); cursor: pointer;
  transition: transform .2s, box-shadow .25s, background .25s, border-color .25s, color .2s;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: var(--gold); color: var(--gold-2); }
.btn-lg { padding: 17px 34px; font-size: 15px; }
.btn-sm { padding: 9px 16px; font-size: 11.5px; letter-spacing: .14em; }
.btn-gold {
  color: #1b1206; border-color: transparent;
  background: linear-gradient(180deg, #ffe49a 0%, #e4b45c 48%, #b98a3a 100%);
  box-shadow: 0 0 0 1px rgba(255, 230, 160, .25) inset, 0 10px 30px rgba(228, 180, 92, .25), 0 2px 0 rgba(0, 0, 0, .3);
}
.btn-gold:hover { color: #140d03; box-shadow: 0 0 0 1px rgba(255, 240, 200, .5) inset, 0 14px 40px rgba(255, 170, 70, .45); }
.btn-gold::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s ease;
}
.btn-gold:hover::after { transform: translateX(120%); }
.btn-ghost { background: rgba(7, 6, 10, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn .arrow { font-family: var(--font-body); font-weight: 400; }

/* ------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  background: linear-gradient(180deg, rgba(7, 6, 10, .78), rgba(7, 6, 10, .0));
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled, .nav.open { background: rgba(9, 8, 13, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.nav-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.nav-brand img.word { height: 32px; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 10px 11px; white-space: nowrap; font: 600 12px/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase;
  color: var(--parchment); border-radius: 8px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold-2); background: rgba(228, 180, 92, .08); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(0, 0, 0, .3);
  color: var(--ink); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }

/* ------------------------------------------------------------- hero */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 80px; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scale(1.06); animation: kenburns 36s ease-in-out infinite alternate; will-change: transform; }
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 60% at 50% 45%, rgba(7, 6, 10, 0) 0%, rgba(7, 6, 10, .35) 60%, rgba(7, 6, 10, .75) 100%),
    linear-gradient(180deg, rgba(7, 6, 10, .55) 0%, rgba(7, 6, 10, .05) 28%, rgba(7, 6, 10, .25) 65%, var(--bg) 100%);
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero-logo { width: min(640px, 90vw); margin: 0 auto 18px; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .7)); }
.hero-tag { font-family: var(--font-lore); font-size: clamp(21px, 2.6vw, 30px); font-style: italic; color: var(--ink); margin: 0 auto 10px; max-width: 30ch; line-height: 1.3; }
.hero-sub { color: var(--parchment); font-size: clamp(15px, 1.4vw, 17px); max-width: 52ch; margin: 0 auto 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 24px; }
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line-2);
  border-radius: 14px; opacity: .8;
}
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }

.status-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(7, 6, 10, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 13.5px; color: var(--parchment);
}
.status-pill .sep { color: var(--dim); }
.status-pill { flex-wrap: wrap; max-width: 100%; justify-content: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--warn); color: var(--warn); animation: none; flex: none; }
.dot.ok { background: var(--ok); color: var(--ok); }
.dot.checking { animation: pulse 1.8s ease-out infinite; }
.dot.unknown { background: var(--muted); color: var(--muted); }
.dot.bad { background: var(--bad); color: var(--bad); animation: none; }

/* ------------------------------------------------------------- strip */
.strip { border-block: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-1), var(--bg)); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 22px 0; }
.strip-item { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--parchment); }
.strip-item strong { display: block; font: 600 12px/1.2 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.strip-item .ico { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--gold-2); background: radial-gradient(circle at 30% 30%, rgba(228, 180, 92, .25), rgba(0, 0, 0, .3)); }
.strip-item .ico svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------- sections */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section.tight { padding-block: clamp(44px, 6vw, 72px); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lede { margin-top: 14px; }
.section-head.center .lede { margin-inline: auto; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); margin: 0 auto; }

/* ------------------------------------------------------------- cards */
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; position: relative; transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .35s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card-body { padding: 22px 24px 26px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--parchment); margin-bottom: 0; }
.card-img { aspect-ratio: 16 / 9; overflow: hidden; background: #000; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* steps */
.step { display: flex; flex-direction: column; }
.step .num {
  position: absolute; top: 14px; left: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, #ffe49a, #b98a3a); color: #1b1206; font: 700 16px var(--font-display); box-shadow: 0 6px 18px rgba(0, 0, 0, .5);
}
.step .card-img { aspect-ratio: 16 / 8; }
.step .card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, var(--surface) 100%); }
.step kbd { font: 600 12px/1 var(--font-body); padding: 3px 7px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; background: rgba(0, 0, 0, .35); color: var(--gold-2); }

/* feature split */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.flip > :first-child { order: 2; }
.media-frame { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: #000; }
.media-frame video, .media-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.media-frame .cap { position: absolute; left: 14px; bottom: 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--parchment); background: rgba(0, 0, 0, .55); padding: 5px 9px; border-radius: 6px; backdrop-filter: blur(4px); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; border: 1px solid var(--line-2); background: radial-gradient(circle at 40% 40%, rgba(255, 228, 154, .6), rgba(228, 180, 92, .12)); box-shadow: inset 0 0 0 5px var(--surface); }
.checks strong { color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.stat { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .02); }
.stat b { display: block; font: 600 26px/1 var(--font-display); color: var(--gold-2); margin-bottom: 6px; }
.stat span { font-size: 12.5px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* classes */
.class-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.class-card {
  --glow: #e4b45c; position: relative; aspect-ratio: 3 / 4.3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(80% 60% at 50% 100%, color-mix(in srgb, var(--glow) 32%, transparent), transparent 70%), linear-gradient(180deg, var(--surface-2), #0c0a11);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; color: var(--ink); isolation: isolate;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .4s;
}
.class-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--glow) 60%, transparent); box-shadow: 0 24px 50px rgba(0, 0, 0, .6), 0 0 60px color-mix(in srgb, var(--glow) 25%, transparent); }
.class-card img { position: absolute; left: 50%; top: 2%; height: 70%; width: auto; max-width: none; transform: translateX(-50%); z-index: -1; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .7)); transition: transform .6s ease, filter .4s; }
.class-card:hover img { transform: translateX(-50%) scale(1.05) translateY(-6px); filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .8)) brightness(1.08); }
.class-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 34%, rgba(7, 6, 10, .82) 66%, rgba(7, 6, 10, .97) 100%); }
.class-card h3 { font-size: 22px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.class-card .role { font-size: 13px; color: var(--gold); letter-spacing: .12em; text-transform: uppercase; margin: 4px 0 8px; font-family: var(--font-display); font-weight: 600; }
.class-card p { font-size: 14px; color: var(--parchment); margin: 0; }
.class-card .second { margin-top: 10px; font-size: 12px; color: var(--muted); }
.class-card .second b { color: var(--parchment); font-weight: 500; }

/* plates rail */
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--gutter) 22px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: thin; scrollbar-color: var(--gold-3) transparent; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--gold-3); border-radius: 3px; }
.plate { flex: 0 0 min(420px, 78vw); scroll-snap-align: start; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--line); }
.plate img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.plate:hover img { transform: scale(1.06); }
.plate .label { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 18px 14px; background: linear-gradient(180deg, transparent, rgba(7, 6, 10, .92)); }
.plate .label b { display: block; font: 600 15px var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.plate .label span { font-size: 12.5px; color: var(--parchment); }
.plate-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.plate-grid .plate { flex: none; }

/* news */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: baseline; padding: 15px 4px; border-bottom: 1px solid var(--line); transition: background .25s; }
.news-list li:hover { background: rgba(228, 180, 92, .04); }
.news-list a { color: var(--ink); font-weight: 500; }
.news-list a:hover { color: var(--gold-2); }
.news-list .date { color: var(--muted); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cat { display: inline-block; font: 700 10.5px/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; padding: 6px 8px; border-radius: 4px; color: #1b1206; background: var(--gold); text-align: center; }
.cat.update { background: #8fd3c0; }
.cat.event { background: #ff9d5c; }
.cat.archive { background: #6f6657; color: #fff; }
.news-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.news-item h3 { margin: 8px 0 10px; }
.news-item .meta { font-size: 13px; color: var(--muted); display: flex; gap: 12px; align-items: center; }
.news-item p { color: var(--parchment); margin: 0 0 .6em; }
.news-item pre { white-space: pre-wrap; font: 14px/1.6 var(--font-body); color: var(--parchment); background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 0 0 10px; }

/* quick menu (the four medallions) */
.quick-menu { padding: 22px 0; border-block: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-1), var(--bg)); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick a { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(10, 8, 14, .7); color: var(--ink); backdrop-filter: blur(4px); transition: border-color .3s, transform .3s; }
.quick a:hover { border-color: var(--gold); transform: translateY(-2px); }
.quick img { width: 54px; height: auto; border-radius: 6px; flex: none; }
.quick b { display: block; font: 600 13px var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); }
.quick span { font-size: 12.5px; color: var(--parchment); }

/* duo */
.duo-card { padding: 30px 30px 34px; }
.duo-card h3 { margin-bottom: 8px; }
.duo-card .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ------------------------------------------------------------- page hero (inner pages) */
.page-hero { position: relative; min-height: 46svh; display: grid; align-items: end; padding: calc(var(--nav-h) + 60px) 0 46px; overflow: hidden; isolation: isolate; }
.page-hero.short { min-height: 34svh; }
.page-hero .hero-bg img { animation-duration: 50s; object-position: center 35%; }
.page-hero .hero-veil { background: linear-gradient(180deg, rgba(7, 6, 10, .6) 0%, rgba(7, 6, 10, .15) 40%, var(--bg) 100%); }
.crumbs { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--parchment); }
.crumbs .sep { padding: 0 8px; color: var(--dim); }
.page-hero .lede { margin-top: 14px; }
.page-hero .hero-cta { justify-content: flex-start; margin-top: 22px; margin-bottom: 0; }

/* ------------------------------------------------------------- content layout */
.content { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 20px); }
.toc h4 { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 7px 14px; font-size: 13.5px; color: var(--parchment); border-left: 2px solid transparent; margin-left: -1px; }
.toc li a:hover, .toc li a.active { color: var(--gold-2); border-left-color: var(--gold); }
.toc .btn { margin-top: 18px; width: 100%; }
.prose { max-width: 78ch; }
.prose h2 { margin: 56px 0 16px; padding-top: 10px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 30px 0 10px; scroll-margin-top: calc(var(--nav-h) + 16px); color: var(--gold-2); }
.prose p, .prose li { color: var(--parchment); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose > img, .prose figure img { border-radius: var(--radius-sm); border: 1px solid var(--line); }
.prose figure { margin: 20px 0; }
.prose figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.callout { border: 1px solid var(--line-2); border-left: 3px solid var(--gold); background: linear-gradient(90deg, rgba(228, 180, 92, .08), transparent); padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 22px 0; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }
blockquote.lore { margin: 24px 0; padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(0, 0, 0, .25); font-family: var(--font-lore); font-size: 20px; line-height: 1.5; color: var(--ink); }
blockquote.lore p { color: var(--ink); }
blockquote.lore .speaker { font: 600 12px var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 16px 0 24px; }
.table th, .table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font: 600 11.5px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.table td { color: var(--parchment); }
.table td s { color: var(--dim); }
.table tr:hover td { background: rgba(228, 180, 92, .04); }
.table .k { color: var(--ink); font-weight: 500; white-space: nowrap; }
.table.num td:not(:first-child) { font-variant-numeric: tabular-nums; }
kbd { font: 600 12.5px/1 var(--font-body); padding: 4px 8px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; background: rgba(0, 0, 0, .35); color: var(--gold-2); white-space: nowrap; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 500; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 20px; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--parchment); }

/* status panel */
.status-panel { border: 1px solid var(--line-2); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface-2), var(--surface)); padding: 24px 26px; }
.status-panel .top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.status-panel .top h3 { margin: 0; color: var(--ink); }
.status-panel .top [data-world-host] { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.status-panel .state { display: inline-flex; align-items: center; gap: 8px; font: 600 12px var(--font-display); letter-spacing: .16em; text-transform: uppercase; padding: 7px 12px 7px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--parchment); }
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 20px; margin: 0; }
.status-grid div { padding: 10px 0; border-top: 1px solid var(--line); }
.status-grid dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.status-grid dd { margin: 0; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.status-panel .foot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px; font-size: 13px; color: var(--muted); }
.status-panel .foot .btn { margin-left: auto; }
.status-message { margin: 14px 0 0; color: var(--muted); }
[data-status-refresh]:disabled { opacity: .55; cursor: wait; }
[data-status-refresh]:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.status-panel.is-stale dd { color: var(--muted); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery a { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery span { position: absolute; left: 10px; bottom: 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: rgba(0, 0, 0, .55); padding: 4px 8px; border-radius: 5px; }

/* forum table */
.forum-cat { font: 600 13px var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 30px 0 8px; }
.forum { width: 100%; border-collapse: collapse; font-size: 14px; }
.forum th { text-align: left; font: 600 11px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.forum td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--parchment); }
.forum td.b a { color: var(--ink); font-weight: 500; }
.forum .desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.forum .num { text-align: center; font-variant-numeric: tabular-nums; }
.forum .who { color: var(--muted); font-size: 12px; }

/* zone list */
.zone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; list-style: none; padding: 0; margin: 14px 0 0; }
.zone-grid li { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--parchment); display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.zone-grid li span { color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.zone-grid li span.open { color: var(--ok); }

/* skill lists */
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 22px; list-style: none; padding: 0; margin: 12px 0 0; }
.skills li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--parchment); }
.skills li b { color: var(--ink); font-weight: 500; display: block; }
.skills li i { color: var(--muted); font-style: normal; font-size: 12px; }

/* class page header */
.class-head { display: grid; grid-template-columns: 1fr 1.5fr; gap: 30px; align-items: center; margin: 10px 0 30px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(70% 70% at 30% 70%, color-mix(in srgb, var(--glow, #e4b45c) 22%, transparent), transparent 70%), linear-gradient(180deg, var(--surface-2), var(--surface)); }
.class-head img { max-height: 400px; width: auto; margin-inline: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .7)); border: 0; }
.class-head .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.class-head p { margin-bottom: 0; }
.pill { display: inline-block; padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px; color: var(--parchment); }
.pill b { color: var(--gold-2); font-weight: 600; }

/* ------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), #050408); padding: 50px 0 34px; font-size: 13.5px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 34px; }
.footer h4 { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--parchment); }
.footer a:hover { color: var(--gold-2); }
.footer .brand img { width: 220px; margin-bottom: 14px; }
.footer .legal { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.footer .legal-line { display: inline-flex; align-items: center; gap: 10px; }
.footer .legal-line .cws { height: 1.5em; width: auto; flex: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
/* "Creative Works Studio": a cyan-to-pink shimmer that slides left to right through the letterforms only */
.cws-text {
  font-weight: 500;
  background-image: linear-gradient(90deg, #00f0ff 0%, #ff6ad5 40%, #ff00ff 50%, #ff6ad5 60%, #00f0ff 100%);
  background-size: 200% 100%; background-repeat: repeat-x; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: cws-shimmer 3.2s linear infinite;
}
@keyframes cws-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .cws-text { animation: none; background-position: 50% 0; } }
.footer .gmt { font-variant-numeric: tabular-nums; display: inline-flex; gap: 8px; align-items: center; color: var(--parchment); }
.footer .gmt::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* ------------------------------------------------------------- reveal + motion */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; } .reveal.d4 { transition-delay: .4s; }
@keyframes kenburns { from { transform: scale(1.06) translateY(0); } to { transform: scale(1.14) translateY(-1.5%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 9px rgba(0, 0, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); } }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg img, .page-hero .hero-bg img { animation: none; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dot, .scroll-cue::after { animation: none; }
  .card, .class-card, .btn { transition: none; }
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .class-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .quick { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav-links { display: none; }
  .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; padding: 10px var(--gutter) 18px; background: rgba(9, 8, 13, .97); border-bottom: 1px solid var(--line); }
  .nav.open .nav-links a { padding: 13px 12px; font-size: 13px; }
  .nav-toggle { display: inline-flex; }
  .nav .btn.nav-play { display: none; }
  .grid-3, .grid-2, .grid-4, .gallery, .plate-grid { grid-template-columns: 1fr; }
  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .content { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ul { display: flex; flex-wrap: wrap; gap: 4px; border: 0; }
  .toc li a { border: 1px solid var(--line); border-radius: 999px; margin: 0; padding: 6px 12px; }
  .toc .btn { width: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .news-list li { grid-template-columns: max-content 1fr; gap: 6px 12px; }
  .news-list .date { grid-column: 1 / -1; }
  .zone-grid, .skills { grid-template-columns: 1fr; }
  .class-head { grid-template-columns: 1fr; }
  .class-head img { max-height: 300px; }
  .hero { min-height: 92svh; }
}
@media (max-width: 560px) {
  .hero .eyebrow { letter-spacing: .18em; font-size: 11px; }
  .class-grid { grid-template-columns: 1fr; }
  .class-card { aspect-ratio: 4 / 4.4; }
  .strip-inner { grid-template-columns: 1fr; }
  .quick { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-lg { padding: 15px 26px; font-size: 13.5px; }
  .hero-cta .btn { width: 100%; }
}
