:root {
  --navy: #0A2744;
  --navy-deep: #061828;
  --navy-mid: #123A5C;
  --blue-light: #8BB8D4;
  --cream: #F3EBD9;
  --cream-deep: #E6DCC6;
  --paper: #F7F1E4;
  --ink: #0C1620;
  --ink-soft: #3A4A58;
  --orange: #C45C26;
  --orange-deep: #9A4518;
  --green: #3D5240;
  --line: rgba(10, 39, 68, 0.16);
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Work Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--navy-deep);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.stamp { font-family: "Special Elite", ui-monospace, monospace; letter-spacing: 0.04em; }
.serif { font-family: "Libre Baskerville", Georgia, serif; }
.serif em { font-style: italic; color: var(--orange); }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  color: var(--cream);
}
.brand { display: flex; align-items: center; gap: 12px; background: none; border: 0; color: inherit; cursor: pointer; text-align: left; padding: 0; }
.brand img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--cream); object-fit: cover; }
.brand strong { display: block; font-family: "Libre Baskerville", serif; font-size: 15px; }
.brand span, .quiet { color: var(--blue-light); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
nav { display: flex; flex-wrap: wrap; gap: 8px 14px; }
nav button {
  background: none; border: 0; color: var(--cream); cursor: pointer; padding: 6px 0; font-size: 14px;
}
.text-btn { background: none; border: 0; color: var(--navy); cursor: pointer; padding: 0; text-decoration: underline; }
nav button[aria-current="page"] { color: var(--orange); }

.sheet {
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px 18px 0 0;
  min-height: calc(100vh - 92px);
  padding: 28px 22px 72px;
}
.sheet-narrow { max-width: var(--max); margin: 0 auto; }

.hero { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 28px; align-items: end; max-width: var(--max); margin: 0 auto 28px; }
.hero h1 { font-family: "Libre Baskerville", serif; font-weight: 400; font-size: clamp(36px, 6vw, 64px); line-height: 1.05; margin: 8px 0 14px; }
.lede { font-size: 18px; max-width: 38rem; color: var(--ink-soft); }
.hero-mark { justify-self: end; text-align: center; }
.hero-mark img { width: min(220px, 46vw); height: auto; border-radius: 50%; border: 8px solid var(--cream); box-shadow: 0 12px 0 rgba(10, 39, 68, 0.08); }

.row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn, .btn-ghost {
  border-radius: 999px; padding: 12px 18px; cursor: pointer; font-weight: 600; border: 2px solid var(--navy);
}
.btn { background: var(--orange); color: var(--cream); border-color: var(--orange-deep); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.band { max-width: var(--max); margin: 0 auto 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card, .ticket {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.ticket { background: white; }
.card h2, .ticket h2, .block h2 { font-family: "Libre Baskerville", serif; font-size: 22px; font-weight: 400; margin: 6px 0 8px; }
.kicker { font-family: "Special Elite", monospace; font-size: 13px; color: var(--green); }
.block { max-width: var(--max); margin: 0 auto 28px; }
.block p { max-width: 40rem; }

.films { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.film {
  aspect-ratio: 16/10;
  border-radius: 12px;
  background:
    linear-gradient(160deg, rgba(10,39,68,0.15), rgba(10,39,68,0.55)),
    repeating-linear-gradient(0deg, transparent, transparent 11px, rgba(243,235,217,0.15) 12px);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  min-height: 140px;
}
.film strong { font-family: "Libre Baskerville", serif; font-size: 20px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line-strong, rgba(10,39,68,0.32));
  background: white;
  border-radius: 10px;
  padding: 10px 12px;
}
textarea { min-height: 110px; resize: vertical; }
.error { color: var(--orange-deep); font-size: 14px; min-height: 1.2em; }
.ok { background: var(--green); color: var(--cream); border-radius: 14px; padding: 16px; }

table { width: 100%; border-collapse: collapse; background: white; border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); background: var(--cream); }
tr.clickable { cursor: pointer; }
tr.clickable:hover { background: #fffaf1; }

.layout { display: grid; grid-template-columns: 210px 1fr; gap: 18px; max-width: 1180px; margin: 0 auto; }
.side { display: flex; flex-direction: column; gap: 4px; }
.side button { text-align: left; background: transparent; border: 0; border-radius: 8px; padding: 8px 10px; cursor: pointer; color: var(--navy); }
.side button[aria-current="page"] { background: var(--navy); color: var(--cream); }
.banner {
  background: var(--orange);
  color: var(--cream);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  margin-bottom: 12px;
}
.money { font-variant-numeric: tabular-nums; font-weight: 650; }
.pill { display: inline-block; border-radius: 999px; padding: 2px 8px; background: var(--cream-deep); font-size: 12px; }
.pill.paid { background: #d7e6d4; }
.pill.partial { background: #f3ddb0; }
.pill.unpaid { background: #f0d2c4; }

.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.swatch { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch button, .seg button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
}
.swatch button[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.note { font-size: 13px; color: var(--ink-soft); }
.choices { display: grid; gap: 8px; margin: 8px 0 18px; }
.choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.choice input { width: auto; margin-top: 4px; }
.table-wrap { overflow-x: auto; }

.office-top, .portal-top { background: var(--navy); color: var(--cream); }
.portal-top { background: #1d3b34; }
.support { background: #7a2e12; color: var(--cream); text-align: center; padding: 8px 12px; font-size: 13px; }

@media (max-width: 800px) {
  .hero, .band, .films, .grid-2, .layout, .catalog { grid-template-columns: 1fr; }
  .hero-mark { justify-self: start; }
  .top { align-items: flex-start; flex-direction: column; }
  .side { flex-direction: row; flex-wrap: wrap; }
}
