/* Qorum. One register throughout: white marble, pale crystal, a thin gold rule, ink text, and
   nothing rounded - the buttons are engraved plates, not pills. Light only: a dark repaint of
   this palette turns every page into one grey slab. */
:root {
  --paper: #f7f5f0;
  --paper-2: #efece4;
  --paper-3: #e6e2d8;
  --ink: #191b1e;
  --ink-2: #4a4f56;
  --muted: #7b8089;
  --crystal: #7c96ad;
  --crystal-2: #cfdae5;
  --gold: #b6a582;
  --line: #ddd8cd;
  --shadow: 0 1px 2px rgba(25,27,30,.04), 0 14px 36px -20px rgba(25,27,30,.25);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.62;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
main a:not(.btn):not(.door):not(.go) { text-decoration: none; border-bottom: 1px solid var(--gold); }
main a:not(.btn):not(.door):not(.go):hover { background: rgba(182,165,130,.14); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em;
  background: var(--paper-2); border: 1px solid var(--line); padding: .06em .36em;
}
.k { font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); display: block; }
.small { font-size: 13px; color: var(--muted); }
p { margin: 0 0 14px; }

/* ---- the plate ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 11.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 15px 28px; border-radius: 0; cursor: pointer; white-space: nowrap;
  color: var(--ink); background: transparent; text-decoration: none;
  border: 1px solid rgba(25,27,30,.26);
  transition: border-color .18s, background .18s, color .18s, box-shadow .18s;
}
.btn:hover { border-color: var(--ink); box-shadow: inset 0 0 0 1px rgba(25,27,30,.1); }
.btn.solid {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(247,245,240,.16);
}
.btn.solid:hover { background: #000; box-shadow: inset 0 0 0 1px rgba(247,245,240,.34); }
.btn.small { padding: 10px 18px; font-size: 10px; letter-spacing: .14em; }
.btn:disabled { opacity: .32; cursor: not-allowed; box-shadow: none; border-color: rgba(25,27,30,.2); }
.btn:disabled:hover { border-color: rgba(25,27,30,.2); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* ---- header ---------------------------------------------------------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px; padding: 13px 26px;
  background: rgba(247,245,240,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: .07em;
}
.phi {
  display: grid; place-items: center; width: 29px; height: 29px;
  background: var(--ink); color: var(--paper); font-size: 16px; line-height: 1;
  font-family: var(--serif);
}
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a {
  font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted);
  text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current] { color: var(--ink); border-bottom-color: var(--gold); }

/* ---- hero (home) ----------------------------------------------------- */
.hero { position: relative; min-height: 86vh; min-height: 86svh; display: flex; align-items: center; overflow: hidden; }
.hero #stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(247,245,240,.97) 0%, rgba(247,245,240,.78) 30%, rgba(247,245,240,.1) 52%, rgba(247,245,240,0) 66%),
    linear-gradient(to bottom, rgba(247,245,240,.35), rgba(247,245,240,0) 20%, rgba(247,245,240,0) 76%, rgba(247,245,240,.55));
}
.hero-copy { position: relative; z-index: 2; padding: 6vh 26px 13vh; max-width: 680px; margin-left: min(6vw, 90px); }
.eyebrow { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
h1 {
  font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 6.2vw, 76px);
  line-height: 1.05; letter-spacing: -.012em; margin: 0 0 22px;
}
.lede { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-2); max-width: 54ch; margin: 0; }

.strip {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); background: rgba(247,245,240,.92); backdrop-filter: blur(8px);
}
.stat { padding: 16px 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { font-family: var(--serif); font-size: 26px; font-weight: 500; }

/* ---- page heads ------------------------------------------------------ */
.pagehead {
  position: relative; padding: clamp(56px, 8vw, 104px) 26px clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.pagehead .lede { margin-top: 18px; }
.pagehead.banner { overflow: hidden; }
.pagehead.banner::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--banner); background-size: cover; background-position: center;
  opacity: .8;
  mask-image: linear-gradient(to right, #000 0%, rgba(0,0,0,.55) 46%, transparent 82%);
  -webkit-mask-image: linear-gradient(to right, #000 0%, rgba(0,0,0,.55) 46%, transparent 82%);
}
.pagehead.banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(247,245,240,.93) 0%, rgba(247,245,240,.6) 44%, rgba(247,245,240,.16) 100%);
}
.pagehead .wrap { position: relative; z-index: 2; }

/* ---- bands ----------------------------------------------------------- */
.band { padding: clamp(50px, 7.5vw, 96px) 26px; border-top: 1px solid var(--line); }
.band:first-child { border-top: 0; }
.band.alt { background: var(--paper-2); }
.wrap { max-width: 1120px; margin: 0 auto; }
.wrap.narrow { max-width: 760px; }
h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3.8vw, 46px); line-height: 1.12; margin: 0 0 22px; }
h3 { font-size: 15px; font-weight: 600; margin: 0 0 10px; letter-spacing: -.01em; }
.big { font-size: clamp(16.5px, 1.6vw, 20px); color: var(--ink-2); max-width: 68ch; margin: 0 0 22px; }

/* ---- the three doors ------------------------------------------------- */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.door {
  background: var(--paper); padding: 34px 28px 28px; text-decoration: none;
  display: flex; flex-direction: column; gap: 8px; transition: background .2s;
}
.door:hover { background: #fff; }
.door .num { font-family: var(--serif); font-size: 13px; letter-spacing: .3em; color: var(--gold); }
.door p { color: var(--ink-2); font-size: 14.5px; margin: 0 0 14px; flex: 1; }
.door .go {
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
  border-bottom: 1px solid var(--gold); align-self: flex-start; padding-bottom: 3px;
}

/* ---- the demo -------------------------------------------------------- */
.demo { display: grid; grid-template-columns: 360px 1fr; gap: 52px; align-items: center; }
.demo-viz { display: grid; place-items: center; }
#pieDemo { width: 100%; max-width: min(360px, 76vw); height: auto; }
.demo-ctl label { font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 14px; }
input[type=range] {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 1px; background: rgba(25,27,30,.3); outline: none; margin: 10px 0 24px;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 14px; height: 24px; border-radius: 0;
  background: var(--ink); cursor: ew-resize; border: 0;
}
input[type=range]::-moz-range-thumb { width: 14px; height: 24px; border-radius: 0; border: 0; background: var(--ink); cursor: ew-resize; }
.demo-read { font-family: var(--serif); font-size: clamp(21px, 2.3vw, 29px); font-weight: 400; margin: 0 0 16px; }
.demo-read b { font-weight: 600; }
.demo-note { font-size: 14.5px; color: var(--ink-2); max-width: 54ch; }

/* ---- columns, lists -------------------------------------------------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid3 article { border-top: 1px solid var(--gold); padding-top: 16px; }
.grid3 p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }

.defs { margin: 0; }
.defs dt {
  font-family: var(--serif); font-size: 24px; font-weight: 500;
  border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px;
}
.defs dd { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: s; position: relative; padding: 20px 0 20px 56px;
  border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px;
}
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 18px;
  width: 32px; height: 32px; border: 1px solid var(--gold); color: var(--ink);
  display: grid; place-items: center; font-family: var(--serif); font-size: 15px;
}
.steps b, .risks b { color: var(--ink); }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  display: grid; grid-template-columns: 120px 1fr; gap: 24px;
  padding: 18px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px;
}
.timeline .t { font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); padding-top: 4px; }
.timeline b { color: var(--ink); }

.risks { counter-reset: r; list-style: none; padding: 0; margin: 0; }
.risks li {
  counter-increment: r; position: relative; padding: 20px 0 20px 56px;
  border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2);
}
.risks li::before {
  content: counter(r, upper-roman); position: absolute; left: 0; top: 20px;
  font-family: var(--serif); font-size: 16px; color: var(--gold); letter-spacing: .08em;
}
.checks { list-style: none; padding: 0; margin: 0 0 18px; }
.checks li { padding: 12px 0 12px 26px; border-top: 1px solid var(--line); position: relative; color: var(--ink-2); font-size: 15px; }
.checks li::before { content: "\2014"; position: absolute; left: 0; color: var(--gold); }

/* ---- cards ----------------------------------------------------------- */
.card { background: var(--paper); border: 1px solid var(--line); padding: 24px; box-shadow: var(--shadow); }
.band.alt .card { background: #fff; }
.card b { font-family: var(--serif); font-size: 30px; font-weight: 500; display: block; line-height: 1.25; }
.countdown b { margin-bottom: 18px; }
.countdown b:last-child { margin-bottom: 0; }

.lines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.line { background: var(--paper); padding: 22px; }
.band.alt .line { background: #fff; }
.line .sym { font-family: var(--serif); font-size: 25px; letter-spacing: .05em; }
.line .nm { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.line .amt { font-family: var(--serif); font-size: 26px; }
.line .bar-wrap { height: 3px; background: var(--paper-3); margin-top: 16px; overflow: hidden; }
.line .bar-fill { height: 100%; background: var(--crystal); width: 0%; transition: width .5s ease; }
.runway { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.runway p { margin: 6px 0 0; }

/* ---- the seat page --------------------------------------------------- */
.seatgrid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: start; }
.tablebox { border: 1px solid var(--line); background: var(--paper-2); }
.tablebox #stage { display: block; width: 100%; height: clamp(320px, 42vw, 480px); }
.caption { padding: 12px 18px; margin: 0; border-top: 1px solid var(--line); }
.seatbox .row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.seatbox .row b { font-size: 21px; }
.field { margin-top: 22px; }
.field label { font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.field input {
  width: 100%; font-family: var(--serif); font-size: 24px; padding: 8px 0;
  border: 0; border-bottom: 1px solid var(--ink); background: transparent; border-radius: 0;
}
.field input:focus { outline: none; border-bottom-color: var(--gold); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.actions .btn { flex: 1 1 auto; padding-left: 16px; padding-right: 16px; }
.seatlist { list-style: none; margin: 14px 0 0; padding: 0; max-height: 340px; overflow: auto; }
.seatlist li { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.seatlist li .n {
  width: 30px; height: 30px; flex: none; border: 1px solid var(--line);
  display: grid; place-items: center; font-family: var(--serif); font-size: 13px; color: var(--ink-2);
}
.seatlist .empty { color: var(--muted); border: 0; }

/* ---- footer ---------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); padding: 52px 26px; background: var(--paper-2); }
.footgrid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: start; }
.footgrid .phi { margin-bottom: 14px; }
.footnav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.footnav a { font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.footnav a:hover { color: var(--ink); }
.footgrid > p:last-child { text-align: right; }

/* ---- responsive ------------------------------------------------------ */
/* A ladder rather than one cliff: the three-column blocks pass through two columns before they
   reach one, and below 700 the home page stops layering text over the hall and stacks instead. */

@media (max-width: 1180px) {
  .wrap { max-width: 960px; }
  .demo { grid-template-columns: 300px 1fr; gap: 40px; }
  .nav { gap: 18px; }
}

@media (max-width: 1080px) {
  /* The nav is not hidden on a six-page site: it becomes one scrollable rail under the brand. */
  .bar { flex-wrap: wrap; gap: 14px; }
  #connect { margin-left: auto; }
  .nav {
    order: 3; width: 100%; margin-left: 0; gap: 20px;
    overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
    border-top: 1px solid var(--line); padding-top: 11px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .two, .seatgrid { grid-template-columns: 1fr; gap: 30px; }
  .demo { grid-template-columns: 280px 1fr; gap: 32px; }
  .hero-copy { margin-left: 0; padding-left: 26px; }
  .runway { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) {
  .doors, .grid3 { grid-template-columns: repeat(2, 1fr); }
  .doors .door:last-child, .grid3 article:last-child { grid-column: 1 / -1; }
  .demo { grid-template-columns: 1fr; gap: 30px; }
  .demo-viz { order: -1; }
  .footgrid { grid-template-columns: 1fr; text-align: left; gap: 24px; }
  .footnav { justify-content: flex-start; }
  .footgrid > p:last-child { text-align: left; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .pagehead.banner::before { mask-image: none; -webkit-mask-image: none; opacity: .3; }
  .pagehead.banner::after { background: linear-gradient(to bottom, rgba(247,245,240,.86), rgba(247,245,240,.7)); }
}

@media (max-width: 700px) {
  .doors, .grid3, .lines { grid-template-columns: 1fr; }
  .doors .door:last-child, .grid3 article:last-child { grid-column: auto; }
  .lines { grid-template-columns: repeat(2, 1fr); }

  /* The home page stops putting the headline on top of the hall: the hall gets its own band and
     the words sit on paper underneath, where they are actually readable on a phone. */
  .hero { display: block; min-height: 0; }
  .hero #stage { position: relative; width: 100%; height: 44svh; min-height: 260px; max-height: 420px; }
  .hero::after {
    inset: 0 0 auto 0; height: 44svh; min-height: 260px; max-height: 420px;
    background: linear-gradient(to bottom, rgba(247,245,240,.55), rgba(247,245,240,0) 38%, rgba(247,245,240,.9));
  }
  .hero-copy { position: relative; z-index: 2; max-width: none; padding: 4px 20px 30px; }
  .strip { position: static; backdrop-filter: none; }
  .stat { padding: 14px 20px; }
  .stat b { font-size: 23px; }
  .cta { margin-top: 24px; }
  .band, .pagehead { padding-left: 20px; padding-right: 20px; }
  .pagehead { padding-top: clamp(38px, 9vw, 64px); padding-bottom: 34px; }
  .card { padding: 20px; }
  .actions .btn { flex: 1 1 calc(50% - 5px); }
  .tablebox #stage { height: 46svh; min-height: 280px; }
}

@media (max-width: 520px) {
  h1 { font-size: clamp(32px, 9.4vw, 44px); }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .risks li, .steps li { padding-left: 40px; }
  .seatbox .row { flex-wrap: wrap; gap: 2px; }
  .seatbox .row b { font-size: 19px; }
}

@media (max-width: 400px) {
  .band, .pagehead, .bar, .hero-copy, .foot { padding-left: 16px; padding-right: 16px; }
  .lines { grid-template-columns: 1fr; }
  .btn { padding: 14px 20px; letter-spacing: .13em; }
  .actions .btn { flex: 1 1 100%; }
  .brand { font-size: 19px; }
  .nav { gap: 16px; }
}

/* A phone held sideways has no vertical room to spare: give the words the screen. */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: 0; display: block; }
  .hero #stage { position: relative; height: 62svh; }
  .hero::after { inset: 0 0 auto 0; height: 62svh; }
  .hero-copy { padding-top: 10px; padding-bottom: 24px; }
  .strip { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
