:root {
  --navy: #0c1a2e;
  --navy-mid: #12243d;
  --navy-light: #1a3354;
  --gold: #c9a227;
  --gold-bright: #e8c547;
  --cream: #f3ead6;
  --cream-dark: #e8dcc0;
  --ink: #1c1915;
  --muted: #6b6254;
  --paper: #fffdf8;
  --line: #d9d0c3;
  --danger: #7f1d1d;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
h1, h2, strong { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 650; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 0 0 12px; }
h2 { font-size: 28px; margin: 0 0 12px; }
a { color: var(--navy-light); }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.top {
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--gold);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.brand-mark { height: 18px; width: 18px; display: block; flex-shrink: 0; }
.brand-logo { height: 26px; width: auto; display: block; }
.brand em { display: block; font-style: normal; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-bright); }
.nav { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px 8px; }
.nav a {
  color: #e8dcc0; text-decoration: none; font-size: 14px;
  padding: 4px 8px; background: rgba(255,255,255,.08);
}
.nav > a { display: inline-flex; align-items: center; }
.nav a.is-on, .nav a:hover, .nav-drop.is-on > a { background: var(--gold); color: var(--navy); }
.nav-drop { position: relative; display: flex; align-items: stretch; }
.nav-drop > a { display: inline-flex; align-items: center; }
.nav-drop-list {
  display: none; position: absolute; top: 100%; left: 0; z-index: 20;
  min-width: 200px; margin: 4px 0 0; padding: 6px 0; list-style: none;
  background: var(--navy); border: 1px solid var(--gold); box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.nav-drop:hover .nav-drop-list, .nav-drop:focus-within .nav-drop-list { display: block; }
.nav-drop-list a { display: block; background: transparent; padding: 8px 12px; white-space: nowrap; }
.nav-drop-list a:hover { background: var(--gold); color: var(--navy); }

@media (max-width: 800px) {
  .brand { flex-wrap: nowrap; white-space: nowrap; gap: 4px; width: 100%; }
  .brand-mark { height: 14px; width: 14px; }
  .brand-logo { height: 18px; }
  .brand em { font-size: 8px; letter-spacing: .05em; white-space: nowrap; }
  .nav { flex-wrap: nowrap; gap: 3px; width: 100%; }
  .nav > a,
  .nav > .nav-drop > a {
    font-size: 10px;
    padding: 3px 4px;
    white-space: nowrap;
  }
}

.flash { margin: 16px auto; padding: 10px 14px; }
.flash-ok { background: #ecfdf5; border: 1px solid #a7f3d0; }
.flash-err { background: #fef2f2; border: 1px solid #fecaca; color: var(--danger); }

.hero { background: linear-gradient(160deg, var(--navy) 0%, #163153 55%, #1f3d5c 100%); color: #fff; padding: 48px 0 56px; }
.home-slides { position: relative; height: 340px; overflow: hidden; background: #e8dcc0; }
.about-hero { position: relative; padding: 18px 0 22px; overflow: hidden; min-height: 260px; max-height: 340px; display: flex; align-items: center; }
.about-below { padding-top: 28px; }
.about-below .about-copy { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.about-below .about-panel { width: 100%; }
.about-bg { position: absolute; inset: 0; z-index: 0; background: #f3ead6; }
.about-bg-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; }
.about-bg-slide.is-on { opacity: 1; }
.about-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,253,248,.28) 0%, rgba(255,253,248,0) 42%, rgba(255,253,248,0) 100%);
}
.about-copy { position: relative; z-index: 1; width: 100%; display: flex; align-items: flex-start; gap: 16px; }
.about-panel {
  width: min(460px, 100%);
  background: linear-gradient(165deg, rgba(255,248,232,.92) 0%, rgba(255,253,248,.82) 100%);
  backdrop-filter: blur(10px);
  color: var(--ink);
  padding: 16px 20px;
  box-shadow: 0 18px 50px rgba(28,25,21,.14);
  border: 1px solid rgba(201,162,39,.45);
  border-top: 4px solid var(--gold);
}
.about-kicker { margin: 0 0 2px; letter-spacing: .16em; text-transform: uppercase; font-size: 11px; color: #9a3412; }
.about-date { margin: 0 0 4px; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; color: var(--gold); }
.about-panel h1 { color: var(--navy); font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 6px; }
.about-lede { font-size: 15px; line-height: 1.4; color: #3f372f; margin: 0 0 6px; }
.about-meta { color: var(--muted); margin: 0 0 10px; font-size: 13px; }
.zone-pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.zone-pills a {
  display: inline-block; text-decoration: none; padding: 5px 9px; font-size: 13px; border: 1px solid transparent;
}
.zone-pill-european { background: #e8eef8; color: #1a3354; border-color: #b8c7de !important; }
.zone-pill-chinese { background: #fde8e4; color: #9a3412; border-color: #f0b8a8 !important; }
.zone-pill-asia { background: #e6f7f3; color: #115e59; border-color: #99d6c8 !important; }
.zone-pill-india { background: #fff3dc; color: #9a5800; border-color: #efc98a !important; }
.zone-pill-middle-east { background: #f8efe4; color: #7c4a1a; border-color: #e0c8a4 !important; }
.zone-pill-americas { background: #e8f1fb; color: #1d4ed8; border-color: #b6d0f0 !important; }
.zone-pills a:hover { filter: brightness(.96); border-color: var(--gold) !important; }
.about-stats {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, #fff4d4 0%, #fffdf8 55%);
  border: 1px solid rgba(201,162,39,.5);
  border-top: 4px solid var(--gold);
  padding: 8px 12px;
  text-align: left;
}
.about-dots { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2; display: flex; gap: 8px; }
.about-dots button {
  width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,253,248,.7); box-shadow: 0 0 0 1px rgba(28,25,21,.15);
}
.about-dots button.is-on { background: var(--gold); }
.about-stats-lead { display: flex; align-items: baseline; gap: 6px; flex: 0 0 auto; }
.about-stats p { margin: 0; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; color: #9a3412; }
.about-stats-lead strong { font-size: 28px; line-height: 1; color: #9a3412; }
.about-stats-lead span { color: #8a7040; font-size: 13px; }
.about-stats ul {
  list-style: none; padding: 0; margin: 0; border: 0;
  display: flex; flex: 1; gap: 8px;
}
.about-stats li { color: #3f372f; padding: 6px 10px; font-size: 13px; flex: 1; text-align: center; }
.about-stats b { font-family: "Cormorant Garamond", Georgia, serif; font-size: 18px; }
.stat-stalls { background: #e8eef8; }
.stat-stalls b { color: #1a3354; }
.stat-occupied { background: #fde8e4; }
.stat-occupied b { color: #9a3412; }
.stat-vacant { background: #e6f7f3; }
.stat-vacant b { color: #115e59; }
.hero-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 32px; align-items: center; }
.eyebrow { letter-spacing: .16em; text-transform: uppercase; font-size: 12px; color: var(--gold); margin: 0 0 8px; }
.lede { font-size: 18px; line-height: 1.5; color: #e8dcc0; margin: 0 0 16px; }
.hero-meta { color: #c4b8a8; margin: 0 0 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-block; text-decoration: none; border: 0; cursor: pointer;
  padding: 10px 16px; font: inherit; letter-spacing: .04em;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }

.stat-card { background: rgba(255,255,255,.06); border: 1px solid rgba(201,162,39,.35); padding: 22px; }
.stat-kicker { margin: 0; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: var(--gold-bright); }
.stat-card h2 { color: #fff; }
.stats { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats li { background: rgba(0,0,0,.2); padding: 10px; text-align: center; }
.stats strong { display: block; font-size: 28px; color: var(--gold-bright); }
.stats span { font-size: 12px; color: #c4b8a8; }
.stat-note { color: #c4b8a8; font-size: 14px; margin: 0; }
.admin-stats { max-width: 640px; grid-template-columns: repeat(4, 1fr); }
.admin-stats li { background: var(--paper); border: 1px solid var(--line); }

.meet-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 18px 20px;
  margin: 0 0 16px;
}
.meet-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.meet-card .form-card { max-width: none; margin-top: 12px; padding: 16px; }
.meet-arrange { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; }
.meet-arrange button { justify-self: start; }
.meet-status {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--line);
}
.meet-status-requested { color: var(--navy); }
.meet-status-arranged { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.meet-status-done { color: var(--muted); }
.meet-status-cancelled { color: #8a2a2a; }

.support-aims {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.support-aims li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 16px 18px;
}
.support-aims strong { display: block; margin-bottom: 6px; }
.support-aims span { color: var(--muted); font-size: 14px; }
.support-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr);
  gap: 28px;
  align-items: start;
}
.support-aside {
  background: var(--navy);
  color: #fff;
  padding: 22px 22px 24px;
}
.support-aside .eyebrow { color: var(--gold-bright); }
.support-aside h2 { color: #fff; margin: 0 0 12px; }
.support-aside ul { margin: 0 0 16px; padding-left: 18px; }
.support-aside li { margin: 0 0 8px; }
.support-aside .hint { color: #c4b8a8; }
.support-aside .hint a { color: var(--gold-bright); }
.support-aside .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
@media (max-width: 800px) {
  .support-aims { grid-template-columns: 1fr; }
  .support-split { grid-template-columns: 1fr; }
}

.section { padding: 36px 0 48px; }
#zones .zone-pills { margin-top: 8px; }
#zones .about-meta { margin: 0 0 12px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 20px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.home-eight { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .home-eight { grid-template-columns: repeat(2, 1fr); } }

.home-slider { position: relative; height: min(52vh, 480px); min-height: 260px; background: #0a1524; overflow: hidden; }
.home-slider-track { position: absolute; inset: 0; }
.home-slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .8s ease; }
.home-slide.is-on { opacity: 1; visibility: visible; z-index: 1; pointer-events: auto; }
.home-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-slide-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,26,46,.75), rgba(12,26,46,.15)); }
.home-slide-copy { position: absolute; left: 32px; bottom: 36px; color: #fff; z-index: 2; }
.home-slide-copy em { display: block; color: var(--gold-bright); font-style: normal; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
.home-slide-copy strong { display: block; font-size: clamp(28px, 4vw, 44px); }
.home-slider-note { position: absolute; right: 16px; bottom: 10px; z-index: 2; margin: 0; color: #c4b8a8; font-size: 12px; }
.ex-card {
  display: flex; flex-direction: column; gap: 6px; background: var(--paper);
  border: 1px solid var(--line); padding: 16px; text-decoration: none; color: inherit;
  box-shadow: 0 8px 0 var(--cream-dark);
}
.ex-card:hover { border-color: var(--gold); }
.ex-stall { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.ex-card strong { font-size: 22px; }
.ex-card-photo { padding: 0 0 16px; overflow: hidden; }
.ex-face { width: 100%; height: 148px; object-fit: cover; display: block; background: var(--cream-dark); }
.ex-card-photo .ex-stall, .ex-card-photo strong, .ex-card-photo span { padding: 0 16px; }
.ex-card-photo .ex-stall { padding-top: 12px; }

.search-bar { display: flex; gap: 8px; margin: 0 0 22px; }
.search-bar input { flex: 1; padding: 10px 12px; border: 1px solid var(--line); font: inherit; }
.search-bar button, .inline-form button { background: var(--navy); color: #fff; border: 0; padding: 10px 14px; cursor: pointer; }

.form-card { background: var(--paper); border: 1px solid var(--line); padding: 22px; max-width: 560px; display: grid; gap: 12px; }
.form-card label { display: grid; gap: 6px; font-size: 14px; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; padding: 10px; border: 1px solid var(--line); font: inherit; background: #fff;
}
.check { display: flex !important; align-items: center; gap: 8px; }
.check input { width: auto; }
.hint { color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); }

.profile { padding: 36px 0 56px; }
.crumb { margin: 0 0 16px; }
.profile-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.profile-logo {
  width: 84px; height: 84px; background: var(--navy); color: var(--gold);
  display: grid; place-items: center; font-size: 36px; flex: 0 0 auto;
}
.profile-logo img { width: 100%; height: 100%; object-fit: cover; }
.profile-about { font-size: 18px; line-height: 1.55; max-width: 68ch; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 16px 0 28px; }
.photo-grid figure { margin: 0; background: var(--paper); border: 1px solid var(--line); }
.photo-grid img { display: block; width: 100%; height: auto; aspect-ratio: 800 / 520; object-fit: cover; }
.photo-grid figcaption { padding: 8px 10px; font-size: 13px; color: var(--muted); }
.photo-link { color: inherit; text-decoration: none; }
.photo-link:hover figure { border-color: var(--gold); }
.product-slider { position: relative; height: 340px; margin: 18px 0 28px; overflow: hidden; background: var(--navy); border: 1px solid var(--line); }
.product-slider-track { position: absolute; inset: 0; }
.product-slide {
  position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden;
  color: #fff; text-decoration: none; transition: opacity .8s ease;
}
.product-slide.is-on { opacity: 1; visibility: visible; z-index: 1; }
.product-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-slide-copy {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px 18px 28px;
  background: linear-gradient(transparent, rgba(12,26,46,.82));
}
.product-slide-copy em { display: block; color: var(--gold-bright); font-style: normal; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; }
.product-slide-copy strong { display: block; font-size: clamp(22px, 3vw, 32px); color: #fff; }
.product-slider .about-dots { bottom: 10px; }
.machine-tagline { color: #3f372f; }
.machine-split { display: grid; grid-template-columns: 220px 1fr 240px; gap: 20px; align-items: stretch; margin: 8px 0 20px; }
.machine-card-sm { margin: 0; background: #fff; border: 1px solid var(--line); }
.machine-card-sm img { display: block; width: 100%; height: 100%; min-height: 160px; object-fit: cover; }
.machine-spec .profile-about { margin: 0; font-size: 16px; }
.machine-spec h1 { font-size: clamp(24px, 3vw, 34px); }
.machine-facts {
  display: flex; flex-direction: column; justify-content: stretch; gap: 0;
  margin: 0; padding: 0; height: 100%;
  background: #fffdf8; border: 1px solid var(--line); border-left: 4px solid var(--gold);
}
.machine-facts > div { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.machine-facts > div:last-child { border-bottom: 0; }
.machine-facts dt {
  margin: 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.machine-facts dd { margin: 3px 0 0; font-size: 17px; color: var(--navy); }
.machine-video {
  position: relative; width: 100%; max-width: 960px; margin: 0 0 22px;
  aspect-ratio: 16 / 9; background: #0c1a2e; border: 1px solid var(--line);
}
.machine-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) {
  .machine-split { grid-template-columns: 200px 1fr; }
  .machine-facts { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  .machine-split { grid-template-columns: 1fr; }
  .machine-card-sm { max-width: 240px; }
}
.machine-shot { display: block; background: var(--paper); border: 1px solid var(--line); }
.machine-shot img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; background: #fff; }
.machine-shot:hover { border-color: var(--gold); }
.profile-logo a { display: block; height: 100%; }
.zone-card { min-height: 140px; }
.visit-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0 0 22px; }
.visit-dl dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.visit-dl dd { margin: 4px 0 0; font-size: 18px; }

.desk-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0 0; }
.desk-nav a { text-decoration: none; border: 1px solid var(--line); background: var(--paper); padding: 8px 12px; color: inherit; }
.desk-nav a.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.table { width: 100%; border-collapse: collapse; background: var(--paper); }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.inline-form select { padding: 6px; }

.hall-page { padding-bottom: 40px; }
.hall-intro { padding: 28px 0 8px; }
.hall-intro h1 span { color: var(--gold); font-size: 0.7em; }
.hall-shell { background: #0a1524; padding: 12px 0 28px; }
.hall-toolbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 0 14px; }
.hall-toolbar button {
  background: var(--navy-light); color: #fff; border: 1px solid var(--gold);
  padding: 8px 12px; cursor: pointer; font: inherit;
}
.hall-walk { display: flex; gap: 8px; flex-wrap: wrap; }
.hall-viewport {
  overflow-x: auto; overflow-y: hidden;
  background:
    linear-gradient(180deg, rgba(12,26,46,.2), rgba(12,26,46,.55)),
    repeating-linear-gradient(90deg, #c9b48a 0 28px, #b89d6e 28px 56px);
  border-top: 4px solid var(--gold);
  border-bottom: 4px solid var(--gold);
}
.hall-floor {
  width: 100%; min-width: 720px; padding: 28px 24px 40px;
  display: grid;
  gap: 16px 12px;
  align-content: start;
}
.hall-loading { color: var(--navy); grid-column: 1 / -1; }
.booth {
  min-height: 132px; padding: 12px; text-decoration: none; color: #fff;
  background: linear-gradient(#1a3354, #12243d);
  border: 2px solid var(--gold);
  box-shadow: 0 10px 0 #081018, 0 16px 22px rgba(0,0,0,.35);
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
}
.booth::before {
  content: ""; position: absolute; left: 8px; right: 8px; top: -10px; height: 10px;
  background: #8b1e1e; border: 1px solid #5c1212;
}
.booth-num { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-bright); }
.booth-name { font-family: "Cormorant Garamond", Georgia, serif; font-size: 22px; line-height: 1.15; }
.booth-cat { font-size: 12px; color: #c4b8a8; }
.booth.is-vacant {
  background: repeating-linear-gradient(45deg, #1a2230, #1a2230 8px, #151c28 8px, #151c28 16px);
  border-style: dashed; border-color: #7a6a4a; color: #c4b8a8;
}
.booth.is-vacant::before { background: #3a3a3a; border-color: #222; }
.hall-hint { color: #c4b8a8; font-size: 13px; margin: 12px auto 0; }

.foot { background: var(--navy); color: #c4b8a8; margin-top: auto; }
.foot-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0; }
.foot strong { color: #fff; display: block; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px; }
.foot-links a { color: var(--gold-bright); }

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 32px 0 36px; }
  .home-slides { height: 240px; }
  .about-hero { padding: 16px 0 20px; min-height: 220px; max-height: 280px; }
  .about-copy { flex-direction: column; }
  .about-panel, .about-stats { width: 100%; margin-left: 0; }
  .about-panel { padding: 24px 22px; }
  .hall-floor { min-width: 640px; padding: 18px 12px 28px; gap: 12px 8px; }
  .booth { min-height: 110px; }
  .table { display: block; overflow-x: auto; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}
