/* AETHRA site, gallery dark.
   A near black ground, one gold accent, hairlines instead of boxes, thin display type with wide letter spacing for the
   name, and monospace for every label and figure. The art is the page: the large stage and the grade row sit on the
   black ground with no chrome around them. The console keeps its tabs but is skinned as a dark instrument panel. */

:root {
  --bg: #0a0b0d;
  --panel: #101216;
  --panelUp: rgba(255, 255, 255, 0.035);
  --ink: #eceef1;
  --dim: #949aa3;
  --faint: #6d747d;
  --gold: #e0a82e;
  --green: #8fe0ab;
  --red: #ff9b8f;
  --line: rgba(255, 255, 255, 0.11);
  --lineSoft: rgba(255, 255, 255, 0.07);
  --line2: rgba(255, 255, 255, 0.22);
  --display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Courier New", monospace;
  --wrap: 1180px;
  --pad: 22px;
  --sec: 60px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--display); font-size: 14.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 26px; }
.mono { font-family: var(--mono); }
.muted { color: var(--dim); }
.break { overflow-wrap: anywhere; word-break: break-word; }
.dot { color: var(--faint); }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3 { margin: 0; font-weight: 400; color: var(--ink); }
h3 { font-size: 16px; font-weight: 500; letter-spacing: 0.02em; }
p { margin: 0; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

/* strip and header */
.strip { border-bottom: 1px solid var(--lineSoft); }
.stripInner { display: flex; align-items: center; gap: 26px; max-width: var(--wrap); margin: 0 auto; padding: 12px 26px; font-size: 11px; letter-spacing: 0.16em; flex-wrap: wrap; }
.stripOpen, .stripClosed { display: inline-flex; align-items: center; gap: 8px; }
.stripOpen::before, .stripClosed::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.stripClosed::before { background: var(--faint); }
.stripOpen { color: var(--gold); }
.stripClosed { color: var(--faint); }
.stripRight { margin-left: auto; color: var(--dim); }
.stripRight a:hover { color: var(--gold); }

.topbar { position: sticky; top: 0; z-index: 50; background: rgba(10, 11, 13, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--lineSoft); }
.barInner { display: flex; align-items: center; gap: 26px; max-width: var(--wrap); margin: 0 auto; padding: 18px 26px; flex-wrap: wrap; }
.brandWord { font-size: 15px; font-weight: 600; letter-spacing: 0.42em; }
.brand:hover { color: var(--ink); }
.menu { display: flex; gap: 26px; margin-left: auto; font-size: 12.5px; letter-spacing: 0.06em; color: var(--dim); flex-wrap: wrap; }
.menu a { padding-bottom: 2px; border-bottom: 1px solid transparent; }
.menu a:hover { color: var(--ink); border-bottom-color: var(--line2); }
.menu a[aria-current="true"] { color: var(--gold); border-bottom-color: var(--gold); }
.burger { display: none; height: 32px; padding: 0 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; color: var(--ink); background: transparent; border: 1px solid var(--line2); cursor: pointer; }

/* hero */
.hero { text-align: center; padding: 92px 26px 34px; }
.serie { font-size: 11px; letter-spacing: 0.3em; color: var(--faint); }
.hero h1 { font-size: clamp(56px, 13vw, 142px); font-weight: 300; letter-spacing: 0.16em; line-height: 0.94; margin: 26px 0 0; text-indent: 0.16em; }
.lede { max-width: 46ch; margin: 28px auto 0; color: var(--dim); font-size: 16.5px; }
.actions { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.ticker { margin-top: 30px; font-size: 11.5px; letter-spacing: 0.16em; color: var(--faint); }
.ticker b { color: var(--gold); font-weight: 600; }
.tickerNote { margin-top: 8px; font-size: 11px; letter-spacing: 0.12em; color: var(--faint); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 26px; border-radius: 2px; font-family: var(--display); font-size: 13.5px; letter-spacing: 0.06em; border: 1px solid var(--line2); background: transparent; color: var(--ink); cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.btn:disabled { color: var(--faint); border-color: var(--lineSoft); cursor: not-allowed; }
.btnSolid { background: var(--ink); color: #0a0b0d; border-color: var(--ink); font-weight: 600; }
.btnSolid:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); color: #0a0b0d; }
.btnLine:hover:not(:disabled) { border-color: var(--ink); }

/* showcase */
.showcase { max-width: var(--wrap); margin: 22px auto 0; padding: 0 26px; }
.stage { position: relative; margin: 0; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; overflow: hidden; }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.stageTags { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; font-size: 10.5px; letter-spacing: 0.2em; color: var(--dim); background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0)); }
.gradeRow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-top: 0; }
.gradeCard { display: flex; flex-direction: column; background: var(--bg); padding: 18px 16px 20px; }
.gradeCard:hover { background: var(--panel); }
.gradeCard:hover .gradeName { color: var(--gold); }
.gradeTop { display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: 0.2em; color: var(--faint); }
.gradeImg { aspect-ratio: 1 / 1; background: #000; display: grid; place-items: center; margin-top: 14px; }
.gradeImg img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gradeName { margin-top: 14px; font-size: 13px; letter-spacing: 0.2em; color: var(--ink); }

/* the gate, three columns under hairlines */
.gateGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: var(--wrap); margin: var(--sec) auto 0; padding: 0 26px; border-top: 1px solid var(--line); }
.gateGrid > div { padding: 34px 26px 36px 0; border-right: 1px solid var(--line); }
.gateGrid > div + div { padding-left: 26px; }
.gateGrid > div:last-child { border-right: 0; }
.gateNo { font-size: 11px; letter-spacing: 0.24em; color: var(--gold); }
.gateGrid h3 { margin: 14px 0 10px; }
.gateGrid p { color: var(--dim); font-size: 14px; }

/* console */
.consoleWrap { max-width: var(--wrap); margin: var(--sec) auto 0; padding: 0 26px; }
.bay { background: var(--panel); border: 1px solid var(--line); border-radius: 2px; }
.bayHead { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs { display: flex; gap: 26px; flex-wrap: wrap; }
.tab { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); background: transparent; border: 0; border-bottom: 1px solid transparent; margin-bottom: -1px; padding: 18px 0; cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.bayNav { display: flex; gap: 8px; }
.bayBtn { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); background: transparent; border: 1px solid var(--line); cursor: pointer; }
.bayBtn:hover { color: var(--ink); border-color: var(--line2); }
.bayId { display: none; }
.bayStatus { font-size: 10.5px; letter-spacing: 0.16em; color: var(--faint); padding: 10px 20px; border-bottom: 1px solid var(--lineSoft); }
.bayBody { display: block; }
.rail { display: none; }
.views { padding: var(--pad); }
.view > .sub { color: var(--dim); font-size: 14px; max-width: 78ch; margin-bottom: 22px; }
body.console-mode .view { display: none; }
body.console-mode .view.active { display: block; }

.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.panel { background: var(--panelUp); border: 1px solid var(--line); padding: 20px 22px 22px; }
.panelHead { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.lamp { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); flex: none; }
.lampGold { background: var(--gold); }
.label { font-size: 10.5px; letter-spacing: 0.2em; color: var(--faint); }
.step.current { border-color: var(--line2); background: rgba(255, 255, 255, 0.06); }
.step.current .lamp { background: var(--gold); }
.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.result { margin-top: 14px; }
.status { font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 26px; margin-top: 18px; }
.fact { display: flex; flex-direction: column; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--lineSoft); }
.fact .k { font-size: 11px; letter-spacing: 0.12em; color: var(--faint); }
.fact .v { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.body { color: var(--dim); font-size: 14px; }
.sub { color: var(--dim); font-size: 14px; }
.fine { color: var(--faint); font-size: 12.5px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--lineSoft); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.steps li { padding: 26px 24px 30px 0; border-right: 1px solid var(--line); }
.steps li + li { padding-left: 24px; }
.steps li:last-child { border-right: 0; }
.stepNo { font-size: 11px; letter-spacing: 0.24em; color: var(--gold); }
.steps h3 { margin: 14px 0 10px; }
.notice { margin-top: 26px; }
.stateGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stateCell { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--lineSoft); padding: 14px 16px; }
.stateKey { font-size: 10.5px; letter-spacing: 0.16em; color: var(--faint); }
.stateVal { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13.5px; color: var(--ink); }
.stateVal::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
.stateOpen { color: var(--green); }
.stateOpen::before { background: var(--green); }
.stateNote { font-size: 12.5px; color: var(--dim); }

/* grades */
.tierGrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tier { display: flex; flex-direction: column; background: var(--bg); }
.tier:hover { background: var(--panel); }
.tierTop { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; font-size: 10.5px; letter-spacing: 0.18em; }
.tierNo { color: var(--tier); }
.tierShare { color: var(--faint); }
.tierMedia { aspect-ratio: 1 / 1; background: #000; display: grid; place-items: center; }
.tierMedia img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tierBody { padding: 16px 16px 20px; }
.tier h3 { font-size: 15px; letter-spacing: 0.14em; color: var(--tier); }
.share { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--faint); margin-top: 8px; }
.proportion { height: 2px; background: var(--line); margin: 12px 0; }
.proportion span { display: block; height: 100%; background: var(--tier); min-width: 3px; }
.tierCopy { font-size: 13px; color: var(--dim); }

/* specimens */
.pieceGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pieceGrid figure { margin: 0; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--lineSoft); }
.pieceGrid figure:hover { border-color: var(--line2); }
.pieceMedia { aspect-ratio: 1 / 1; background: #000; display: grid; place-items: center; }
.pieceMedia img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pieceGrid figcaption { display: flex; gap: 10px; align-items: baseline; padding: 12px 14px; font-size: 11px; letter-spacing: 0.1em; color: var(--dim); }
.pieceGrid figcaption span { color: var(--gold); }

/* cta and footer */
.ctaBand { max-width: var(--wrap); margin: var(--sec) auto 0; padding: 0 26px; }
.ctaInner { display: flex; align-items: center; justify-content: space-between; gap: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 34px 0; flex-wrap: wrap; }
.ctaInner p { font-size: 26px; font-weight: 300; letter-spacing: 0.02em; }
.foot { border-top: 1px solid var(--lineSoft); margin-top: var(--sec); }
.footInner { display: flex; gap: 40px; max-width: var(--wrap); margin: 0 auto; padding: 30px 26px 12px; flex-wrap: wrap; }
.footCol { max-width: 46ch; }
.footCol p { color: var(--dim); font-size: 13.5px; margin-bottom: 8px; }
.brandFoot { font-size: 13px; letter-spacing: 0.42em; color: var(--ink) !important; margin-bottom: 12px !important; }
.footHead { font-size: 10.5px; letter-spacing: 0.2em; color: var(--faint) !important; }
#contractLine { font-size: 12px; overflow-wrap: anywhere; }
.footBase { text-align: center; font-size: 10.5px; letter-spacing: 0.24em; color: var(--faint); padding: 18px 26px 26px; }

@media (max-width: 1040px) {
  .panels, .steps, .stateGrid { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 22px 0 26px; border-right: 0; border-bottom: 1px solid var(--line); }
  .steps li:last-child { border-bottom: 0; }
  .tierGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gradeRow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gateGrid { grid-template-columns: 1fr; }
  .gateGrid > div, .gateGrid > div + div { padding: 26px 0 28px; border-right: 0; border-bottom: 1px solid var(--line); }
  .gateGrid > div:last-child { border-bottom: 0; }
}
@media (max-width: 780px) {
  :root { --sec: 44px; --pad: 16px; }
  .burger { display: inline-flex; margin-left: auto; }
  .menu { display: none; width: 100%; order: 5; flex-direction: column; gap: 12px; padding: 6px 0 12px; margin-left: 0; }
  .menu.open { display: flex; }
  .hero { padding: 62px 22px 26px; }
  .lede { font-size: 15.5px; }
  .stage { aspect-ratio: 4 / 3; }
  .pieceGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs { gap: 18px; }
  .tab { padding: 14px 0; font-size: 11px; }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .tierGrid, .pieceGrid { grid-template-columns: 1fr; }
  .gradeRow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stripClosed { display: none; }
  .actions .btn, .ctaInner .btn { width: 100%; }
  .ctaInner p { font-size: 22px; }
}
