/* ============================================================
   MetaCom 2027 — International Conference on Metaverse
   Computing, Networking and Applications
   Color palette follows the IEEE Brand Identity Guidelines:
   IEEE Blue   #00629B   Pantone 3015     (primary)
   Dark Blue   #002855   Pantone 295      (headers, footers)
   Cool Gray   #75787B   Cool Gray 9
   Tints       #477CA7 / #809DBD / #BAC6D9 (IEEE Blue)
   Corners are square throughout by design.
   ============================================================ */

:root {
  --ieee-blue: #00629b;
  --ieee-blue-deep: #002855;
  --blue-t75: #477ca7;
  --blue-t50: #809dbd;
  --blue-t25: #bac6d9;
  --blue-tint: #eaf2f8;
  --gray: #75787b;
  --text: #3a4e5c;
  --muted: #5c707e;
  --head: #002855;
  --rule: #d6e0e8;
  --soft: #f1f5f8;
  --paper: #ffffff;
  /* Dark navigation surfaces (deeper shades of IEEE Dark Blue) */
  --night: #001a38;
  --night-2: #00214a;
  --night-line: rgba(128, 157, 189, .22);
  --nav-text: #cfe0ec;
  --glow: #3b8fd1;
  --max: 1160px;
  --sans: "Open Sans", "Segoe UI", Arial, sans-serif;
  --display: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --chamfer: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
  -webkit-text-size-adjust: 100%;
  /* Reserve space for the scrollbar on every page so the layout
     does not shift when moving between pages with and without one,
     and always paint the (navy) track. */
  scrollbar-gutter: stable;
  overflow-y: scroll;
}
/* Brand the scrollbar itself: a navy track matching the footer
   background, with a lighter blue thumb that stands out on it.
   The standard property covers Firefox and current Chrome/Safari/Edge;
   the -webkit pseudo elements cover older Chromium builds and Safari. */
html { scrollbar-color: var(--blue-t75) var(--ieee-blue-deep); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--ieee-blue-deep); }
::-webkit-scrollbar-thumb {
  border: 3px solid var(--ieee-blue-deep);
  background: var(--blue-t75);
}
::-webkit-scrollbar-thumb:hover { background: var(--blue-t50); }
::-webkit-scrollbar-corner { background: var(--ieee-blue-deep); }

/* Flex column on <body> keeps the footer snapped to the bottom
   of the viewport on short pages and below the content on long ones. */
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

main { position: relative; z-index: 1; flex: 1 0 auto; }

/* Skyline band (drawn by assets/skyline.js): an empty strip above
   the footer. The canvas runs past its bottom so the reflection can
   be drawn on the footer, whose top border is the water line. */
.skyline-band {
  position: relative;
  z-index: 2;
  flex: none;
  height: clamp(190px, 22vw, 320px);
  margin-top: 24px;
  pointer-events: none;
}
.skyline-band canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
}

img { display: block; max-width: 100%; }

a { color: var(--ieee-blue); text-decoration: none; }
a:hover { color: var(--ieee-blue-deep); text-decoration: underline; }

button { font: inherit; }

:focus-visible { outline: 2px solid var(--ieee-blue); outline-offset: 2px; }

::selection { background: var(--blue-t25); }

h1, h2, h3 { color: var(--head); }

.page-width { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.skip-link {
  position: absolute;
  z-index: 1000;
  top: -54px;
  left: 12px;
  padding: 9px 14px;
  color: #fff;
  background: var(--ieee-blue-deep);
  font-size: 14px;
}
.skip-link:focus { top: 10px; }

/* ------------------------------------------------------------
   Header: navy info bar plus white masthead with a blue rule
   ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--night);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(0, 26, 56, .35); }

.topbar { background: #00142c; border-bottom: 1px solid var(--night-line); }
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 0;
}
.topbar-title {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font: 500 11px/1.4 var(--mono);
  letter-spacing: .02em;
}
.topbar-title::before { content: "> "; color: var(--glow); }
.topbar-meta {
  margin: 0;
  color: var(--blue-t50);
  font: 500 11px/1.4 var(--mono);
  white-space: nowrap;
}
.topbar-meta::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  vertical-align: 1px;
  background: var(--glow);
  box-shadow: 0 0 8px var(--glow);
  animation: blink 2.4s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

/* Dark masthead with a faint circuit grid and a scanning light rule */
.masthead {
  position: relative;
  background:
    linear-gradient(var(--night-line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--night-line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}
.masthead::before {
  /* fade the grid towards the middle so it reads as texture */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 26, 56, .2), rgba(0, 26, 56, .92) 30%, rgba(0, 26, 56, .92) 70%, rgba(0, 26, 56, .2));
  pointer-events: none;
}
.masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background:
    linear-gradient(90deg, transparent, var(--glow) 45%, #9fd0f5 50%, var(--glow) 55%, transparent) -40% 0 / 40% 100% no-repeat,
    var(--ieee-blue);
  animation: scan 6s linear infinite;
}
@keyframes scan { to { background-position: 140% 0, 0 0; } }
.masthead-inner { position: relative; z-index: 1; }
.masthead-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: #fff;
}
.brand img {
  width: 40px;
  height: 40px;
  outline: 1px solid rgba(128, 157, 189, .45);
  box-shadow: 0 0 14px rgba(59, 143, 209, .35);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 700 22px/1.1 var(--display); letter-spacing: -.02em; }
.brand-subtitle {
  margin-top: 4px;
  color: var(--blue-t50);
  font: 500 9.5px/1.2 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.brand:hover { color: #fff; text-decoration: none; }

.primary-nav { display: flex; align-items: stretch; gap: 2px; }
.primary-nav > a,
.nav-dropdown > summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  color: var(--nav-text);
  font: 500 12px/1 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color .15s ease, text-shadow .15s ease;
}
.primary-nav > a::after,
.nav-dropdown > summary::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 0;
  z-index: 2;
  height: 3px;
  background: #9fd0f5;
  box-shadow: 0 0 10px var(--glow), 0 0 2px #9fd0f5;
  opacity: 0;
  transform: scaleX(.3);
  transition: opacity .15s ease, transform .2s ease;
}
.primary-nav > a:hover, .primary-nav > a.active, .primary-nav > a[aria-current="page"],
.nav-dropdown > summary:hover, .nav-dropdown[open] > summary, .nav-dropdown.has-active > summary {
  color: #fff;
  text-decoration: none;
  text-shadow: 0 0 12px rgba(59, 143, 209, .8);
}
.primary-nav > a:hover::after, .primary-nav > a.active::after,
.primary-nav > a[aria-current="page"]::after,
.nav-dropdown > summary:hover::after, .nav-dropdown[open] > summary::after,
.nav-dropdown.has-active > summary::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-dropdown { position: relative; display: flex; align-items: stretch; }
.nav-dropdown > summary { list-style: none; }
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-chevron {
  width: 7px;
  height: 7px;
  margin-top: -6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .15s ease;
}
.nav-dropdown[open] .nav-chevron { margin-top: 5px; transform: rotate(225deg); }

.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 120;
  min-width: 228px;
  padding: 6px 0;
  background: rgba(0, 26, 56, .97);
  border: 1px solid var(--night-line);
  border-top: 2px solid var(--ieee-blue);
  box-shadow: 0 16px 32px rgba(0, 20, 44, .45);
}
.nav-dropdown-panel a {
  display: block;
  padding: 9px 15px;
  color: var(--nav-text);
  font: 500 12.5px/1.4 var(--mono);
  letter-spacing: 0;
  text-transform: none;
}
.nav-dropdown-panel a::before { content: "/ "; color: var(--blue-t75); }
.nav-dropdown-panel a:hover {
  color: #fff;
  background: rgba(0, 98, 155, .28);
  text-decoration: none;
}
.nav-dropdown-panel a.active { color: #fff; background: var(--ieee-blue); }
.nav-dropdown-panel a.active::before { color: #9fd0f5; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 40px;
  align-self: center;
  padding: 9px;
  border: 1px solid var(--night-line);
  background: transparent;
  cursor: pointer;
}
.menu-toggle span { width: 100%; height: 2px; background: var(--nav-text); }

/* ------------------------------------------------------------
   Home hero
   ------------------------------------------------------------ */

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 32vw, 400px);
  align-items: end;
  gap: 32px;
  padding: 46px 0 38px;
}

/* Node-graph figure beside the hero copy (drawn by assets/avatar.js).
   The torso fades out at the bottom so it reads as a partial bust. */
.hero-figure {
  position: relative;
  height: clamp(280px, 28vw, 370px);
  margin-bottom: -38px;
  pointer-events: none;
}
.hero-figure canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 5px 10px;
  color: var(--ieee-blue);
  background: rgba(234, 242, 248, .85);
  border: 1px solid var(--blue-t25);
  border-left: 3px solid var(--ieee-blue);
  font: 500 11px/1.2 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.kicker::after {
  content: "";
  width: 7px;
  height: 12px;
  background: var(--ieee-blue);
  animation: blink 1.1s steps(2, start) infinite;
}

h1, h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.035em;
}
.home-hero h1 {
  margin: 0;
  font-size: clamp(44px, 6.4vw, 76px);
  line-height: 1;
  background: linear-gradient(100deg, var(--ieee-blue-deep) 30%, var(--ieee-blue) 70%, var(--blue-t75));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.home-hero .subtitle {
  margin: 14px 0 16px;
  color: #35506a;
  font: 500 clamp(16px, 2vw, 19px)/1.35 var(--mono);
  letter-spacing: -.01em;
}
.home-hero .summary {
  max-width: 720px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Auto-scrolling photo reel (New York and the venue).
   The image set is duplicated so the translation loop is seamless. */
.image-reel {
  overflow: hidden;
  background: var(--soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.image-reel-track {
  display: flex;
  width: max-content;
  animation: reel-scroll 48s linear infinite;
  will-change: transform;
}
.image-reel:hover .image-reel-track,
.image-reel:focus-within .image-reel-track { animation-play-state: paused; }
.reel-set { display: flex; }
.reel-item {
  position: relative;
  flex: 0 0 auto;
  width: clamp(300px, 32vw, 440px);
  height: clamp(190px, 21vw, 290px);
  margin: 0;
}
.reel-item img { width: 100%; height: 100%; object-fit: cover; }
.reel-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 12px;
  color: #fff;
  background: linear-gradient(90deg, rgba(0, 26, 56, .9), rgba(0, 40, 85, .55));
  border-top: 1px solid rgba(59, 143, 209, .5);
  font: 500 11.5px/1.4 var(--mono);
}
.reel-item figcaption::before { content: "◆ "; color: #9fd0f5; font-size: 9px; }
@keyframes reel-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ------------------------------------------------------------
   Buttons — square corners, IEEE Blue
   ------------------------------------------------------------ */

/* Chamfered (cut-corner) buttons with a light sweep on hover */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  overflow: hidden;
  border: 0;
  color: #fff;
  background: var(--ieee-blue);
  clip-path: var(--chamfer);
  font: 500 13px/1 var(--mono);
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.button::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg);
  transition: left .5s ease;
}
.button:hover {
  color: #fff;
  background: var(--ieee-blue-deep);
  text-decoration: none;
}
.button:hover::after { left: 120%; }
.button-secondary {
  color: var(--ieee-blue);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--ieee-blue);
}
.button-secondary::before {
  /* draws the diagonal edge of the cut corner, which the inset border cannot */
  content: "";
  position: absolute;
  top: 4px;
  right: -3px;
  width: 15px;
  height: 1px;
  background: var(--ieee-blue);
  transform: rotate(45deg);
}
.button-secondary:hover {
  color: var(--ieee-blue-deep);
  background: var(--blue-tint);
}
.button-secondary::after { background: linear-gradient(100deg, transparent, rgba(0, 98, 155, .14), transparent); }

/* ------------------------------------------------------------
   Fact strip (Dates / Location / Submissions)
   ------------------------------------------------------------ */

.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, .75);
}
.fact { padding: 15px 18px; border-left: 1px solid var(--rule); }
.fact:first-child { padding-left: 0; border-left: 0; }
.fact-label {
  display: block;
  color: var(--gray);
  font: 500 10.5px/1.4 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.fact-value {
  display: block;
  margin-top: 4px;
  color: var(--head);
  font: 600 15px/1.4 var(--display);
}

/* ------------------------------------------------------------
   Home text sections and info panels
   ------------------------------------------------------------ */

.home-about { margin: 34px 0 8px; }
.home-about h2 { margin: 0 0 12px; font-size: 26px; line-height: 1.2; }
.home-about p { max-width: 880px; margin: 0 0 10px; color: var(--text); font-size: 15px; line-height: 1.68; }

.home-dates { margin: 26px 0 0; }
.home-dates h2 { margin: 0 0 12px; font-size: 26px; line-height: 1.2; }
.home-dates .data-table { margin: 0; }

.home-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 20px 0 38px;
}
/* Glass panels with HUD-style corner brackets */
.info-card {
  position: relative;
  padding: 20px 22px 22px;
  background: rgba(241, 245, 248, .82);
  border: 1px solid var(--blue-t25);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.info-card::before,
.info-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 0 solid var(--ieee-blue);
  pointer-events: none;
}
.info-card::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.info-card::after { right: -1px; bottom: -1px; border-right-width: 2px; border-bottom-width: 2px; }
.info-card:hover { border-color: var(--blue-t50); box-shadow: 0 10px 28px rgba(0, 40, 85, .1); }
.info-card h2 { margin: 0 0 10px; font-size: 20px; line-height: 1.25; }
.info-card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }

.venue-mini { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center; }
.venue-mini img { width: 132px; height: 96px; object-fit: cover; }
.venue-mini .venue-name { margin: 0 0 3px; color: var(--head); font-size: 14.5px; font-weight: 700; }
.venue-mini address {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 12.5px;
  font-style: normal;
  line-height: 1.5;
}

.text-link { color: var(--ieee-blue); font-size: 14px; font-weight: 600; }
.text-link:hover { color: var(--ieee-blue-deep); }

/* ------------------------------------------------------------
   Subpage heading and content
   ------------------------------------------------------------ */

.page-heading { position: relative; padding: 30px 0 18px; border-bottom: 1px solid var(--rule); }
.page-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 96px;
  height: 2px;
  background: var(--ieee-blue);
}
.breadcrumb { margin: 0 0 10px; color: var(--muted); font: 500 11.5px/1.4 var(--mono); letter-spacing: .04em; }
.breadcrumb a { color: var(--ieee-blue); }
.page-heading h1 { margin: 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.08; }
.page-lede { max-width: 800px; margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; }

.page-content { padding: 28px 0 44px; }

.content-section { margin: 0 0 32px; }
.content-section h2 {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  font-size: 22px;
  line-height: 1.25;
}
.content-section h2::before {
  content: "//";
  margin-right: 10px;
  color: var(--ieee-blue);
  font: 500 .75em/1 var(--mono);
  letter-spacing: 0;
  vertical-align: 2px;
}
.content-section h3 { margin: 18px 0 8px; font-size: 16px; font-weight: 700; color: var(--head); }
.content-section h2 + h3 { margin-top: 10px; }
.content-section p, .content-section li { color: var(--text); font-size: 15px; line-height: 1.68; }
.content-section p { margin: 0 0 12px; }
.content-section p:last-child { margin-bottom: 0; }

.content-section ul { margin: 0 0 12px; padding-left: 22px; }
.content-section li { margin-bottom: 6px; }
.content-section li::marker { color: var(--ieee-blue); }

.list-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 36px;
}
.list-two-col li { margin-bottom: 8px; }

/* Tables */
.data-table { width: 100%; margin: 4px 0 12px; border-collapse: collapse; background: rgba(255, 255, 255, .85); }
.data-table th {
  padding: 10px 14px;
  background: var(--ieee-blue-deep);
  border-bottom: 2px solid var(--ieee-blue);
  color: #fff;
  font: 500 11.5px/1.4 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: left;
}
.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  color: var(--text);
  font-size: 14.5px;
}
.data-table tbody tr:nth-child(even) { background: #f7fafc; }
.data-table td.pending { color: var(--muted); }

/* Status chip, notes, links row */
.status {
  display: inline-block;
  padding: 4px 10px;
  color: #00537d;
  background: var(--blue-tint);
  border: 1px solid var(--blue-t25);
  font: 500 10.5px/1.3 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.status::before { content: "● "; color: var(--ieee-blue); animation: blink 1.6s steps(2, start) infinite; }
.note {
  margin: 14px 0;
  padding: 12px 16px;
  border: 1px solid var(--blue-t25);
  border-left: 3px solid var(--ieee-blue);
  color: var(--text);
  background: rgba(234, 242, 248, .9);
  font-size: 14px;
  line-height: 1.6;
}
.link-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }

/* Topics grid (Call for Papers) */
.topic-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 36px;
  margin-top: 8px;
}
.topic-list div {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.55;
}
.topic-list strong { color: var(--head); }

/* Committee rosters */
.content-section ul.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.content-section .person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ieee-blue);
  border-right: 3px solid var(--ieee-blue);
  background: rgba(255, 255, 255, .85);
}
.person-photo {
  flex: none;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--blue-t25);
  background: var(--soft);
}
.person-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.person-name { color: var(--head); font: 600 16px/1.3 var(--display); }
.person-org { color: var(--muted); font-size: 13.5px; line-height: 1.45; }

/* Venue page */
.venue-layout {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) 1.1fr;
  gap: 28px;
  align-items: start;
}
.venue-layout .venue-photo { width: 100%; height: 264px; object-fit: cover; }
.venue-map { position: relative; height: 380px; border: 1px solid var(--rule); overflow: hidden; }
.venue-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.venue-layout h2 { margin-bottom: 8px; padding-bottom: 0; border-bottom: 0; font-size: 26px; }
.venue-layout address {
  margin: 6px 0 12px;
  color: var(--head);
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.6;
}
.venue-layout p { margin: 0 0 10px; }

/* ------------------------------------------------------------
   Footer — pinned to the bottom of the viewport
   ------------------------------------------------------------ */

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  color: #fff;
  background:
    linear-gradient(var(--night-line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--night-line) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--night);
  border-top: 2px solid var(--ieee-blue);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 26, 56, .55), rgba(0, 26, 56, .96) 70%);
  pointer-events: none;
}
.site-footer > * { position: relative; }
.footer-name { font-family: var(--display); }
.footer-legal { font-family: var(--mono); }
.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(0, 2fr);
  gap: 26px;
  align-items: start;
  padding: 30px 0 24px;
}
.footer-name { margin: 0; color: #fff; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.footer-tag { margin: 6px 0 0; max-width: 340px; color: var(--blue-t25); font-size: 12.5px; line-height: 1.55; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 5px; }
.footer-links a { color: #cfe0ec; font-size: 13.5px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 18px;
  padding: 14px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: var(--blue-t50);
  font-size: 12.5px;
}
.footer-legal p { margin: 0; }
.footer-credit { flex-basis: 100%; font-size: 11.5px; opacity: .8; }
.footer-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-credit a:hover { color: #fff; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 1060px) {
  .primary-nav > a, .nav-dropdown > summary { padding: 0 9px; font-size: 11.5px; }
}

@media (max-width: 920px) {
  .menu-toggle { display: flex; }
  .masthead-inner { min-height: 62px; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 10px;
    background: var(--night);
    border-top: 1px solid var(--night-line);
    box-shadow: 0 16px 30px rgba(0, 20, 44, .45);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav > a, .nav-dropdown > summary {
    justify-content: space-between;
    min-height: 46px;
    padding: 0 20px;
    font-size: 13px;
  }
  .primary-nav > a::after, .nav-dropdown > summary::after { display: none; }
  .primary-nav > a:hover, .primary-nav > a.active, .primary-nav > a[aria-current="page"],
  .nav-dropdown > summary:hover, .nav-dropdown[open] > summary {
    color: #fff;
    background: rgba(0, 98, 155, .22);
    box-shadow: inset 3px 0 0 #9fd0f5;
  }
  .nav-dropdown { width: 100%; display: block; }
  .nav-dropdown-panel {
    position: static;
    min-width: 0;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--night-line);
    background: transparent;
    box-shadow: none;
  }
  .nav-dropdown-panel a { padding: 10px 20px 10px 34px; font-size: 13px; }
  .nav-dropdown-panel a.active { background: rgba(0, 98, 155, .22); color: #fff; box-shadow: inset 3px 0 0 #9fd0f5; }
}

@media (max-width: 760px) {
  .home-hero { grid-template-columns: minmax(0, 1fr); }
  .hero-figure { display: none; }
}

@media (max-width: 700px) {
  .topbar { display: none; }
  html { scroll-padding-top: 76px; }
  .home-hero { padding: 26px 0 20px; }
  .reel-item { width: 300px; height: 200px; }
  .fact-strip { grid-template-columns: 1fr; margin-top: 20px; }
  .fact { padding: 10px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .fact:last-child { border-bottom: 0; }
  .home-columns { grid-template-columns: 1fr; gap: 14px; margin-bottom: 28px; }
  .home-about { margin-top: 24px; }
  .page-heading { padding: 22px 0 14px; }
  .page-content { padding: 20px 0 30px; }
  .content-section { margin-bottom: 26px; }
  .list-two-col, .topic-list { grid-template-columns: 1fr; gap: 0; }
  .venue-layout { grid-template-columns: 1fr; gap: 14px; }
  .venue-layout .venue-photo { height: 200px; }
  .venue-map { height: 280px; }
  .data-table { display: block; overflow-x: auto; }
  .footer-main { grid-template-columns: 1fr; gap: 16px; padding: 24px 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  /* The reel is the page's primary visual, so instead of stopping it
     for reduced-motion users, keep it drifting at half speed. */
  .image-reel-track { animation-duration: 96s !important; }
  /* Blinking cursors and the scanning rule stay still. */
  .topbar-meta::before, .kicker::after, .status::before, .masthead::after { animation: none !important; }
}
