/* ==========================================================================
   ICoRD'27 brand layer
   Source: Resources/Icord branding.pdf (palette, shapes, type)
   Circle = Design of AI (magenta) · Triangle = Design by AI (green)
   Rectangle = Design with AI (teal)
   ========================================================================== */

:root {
  /* Brand palette */
  --ink: #231f23;          /* Dark: text, logo, deep contrast areas */
  --magenta: #b72c69;      /* Accent: titles, headers, highlights */
  --paper: #f0eee9;        /* Neutral: main background, cards */
  --teal: #138e9e;         /* Accent 2: section blocks, emphasis */
  --green: #57d333;        /* Accent 3 */
  --lime: #b1ee0b;         /* Contrast */

  /* Text-safe shades of the brand accents (for type on --paper) */
  --green-ink: #3a9a1c;
  --teal-ink: #0f7784;
  --magenta-ink: #9f2259;

  /* Supporting neutrals */
  --card: #fbfaf7;
  --line: #dcd8cf;
  --muted: #5e585c;
  --descin: #0194a4;

  --font-sans: "Figtree", "Avenir Next", "Avenir", "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-title: "Atkinson Hyperlegible", "Figtree", system-ui, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(35, 31, 35, .06), 0 8px 24px rgba(35, 31, 35, .06);
  --header-h: 84px;
  --wrap: 1320px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body.brand {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.brand a { color: var(--magenta); }
body.brand a:hover { color: var(--magenta-ink); }
body.brand ::selection { background: var(--lime); color: var(--ink); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.sr-only-focusable:focus { position: fixed; top: 8px; left: 8px; z-index: 2000; background: var(--ink); color: #fff !important; padding: 8px 14px; border-radius: 8px; }
body.brand :focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* ---------- Shape primitives ---------- */
.shape { display: inline-block; flex: none; }
.shape-circle { width: 1em; height: 1em; border-radius: 50%; background: var(--magenta); }
.shape-triangle { width: 1.1em; height: 1em; background: var(--green); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.shape-rect { width: .7em; height: 1em; background: var(--teal); }

/* ---------- Buttons ---------- */
.btn-brand {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.6em; border-radius: 999px;
  font: 600 1rem/1.2 var(--font-sans); letter-spacing: .01em;
  border: 2px solid transparent; text-decoration: none !important;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.btn-brand svg { width: 1.1em; height: 1.1em; flex: none; transition: transform .15s ease; }
.btn-brand:hover svg.arrow { transform: translateX(3px); }
.btn-brand:active { transform: translateY(1px); }
.btn-primary-brand { background: var(--magenta); color: #fff !important; box-shadow: 0 6px 18px rgba(183, 44, 105, .28); }
.btn-primary-brand:hover { background: var(--magenta-ink); }
.btn-outline-brand { background: transparent; color: var(--ink) !important; border-color: var(--ink); }
.btn-outline-brand:hover { background: var(--ink); color: var(--paper) !important; }
.btn-sm-brand { padding: .55em 1.15em; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(240, 238, 233, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(35, 31, 35, .05); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand-lockup { display: flex; align-items: center; gap: 18px; text-decoration: none !important; color: var(--ink) !important; flex: none; }
.brand-lockup img { height: 54px; width: auto; }
.brand-lockup .divider { width: 1px; align-self: stretch; margin: 14px 0; background: var(--line); }
.brand-title { font-family: var(--font-title); line-height: 1.2; max-width: 272px; white-space: nowrap; }
.brand-title strong { display: block; font-size: 1rem; font-weight: 700; }
.brand-title strong sup { font-size: .6em; top: -.6em; }
.brand-title span { display: block; font-size: .78rem; color: var(--muted); margin-top: 3px; }

.site-nav { flex: 1 1 auto; min-width: 0; display: flex; justify-content: flex-end; }
.site-nav menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav > menu { flex: none; flex-wrap: nowrap; }
.nav-more { position: relative; }
.nav-more[hidden] { display: none !important; }
.nav-more-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 9px; border: 0; background: transparent;
  font: 500 .93rem/1.5 var(--font-sans); color: var(--ink); cursor: pointer; white-space: nowrap; border-radius: 8px;
}
.nav-more-btn svg { width: 16px; height: 16px; transition: transform .2s ease; }
.nav-more.is-open .nav-more-btn svg { transform: rotate(180deg); }
.nav-more-btn:hover, .nav-more.is-open .nav-more-btn { background: rgba(35, 31, 35, .06); }
.nav-more:has(.active-item) .nav-more-btn { font-weight: 700; color: var(--magenta); }
.site-nav .nav-more-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; z-index: 1100;
  display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(35, 31, 35, .14);
}
.nav-more.is-open .nav-more-menu { display: flex; }
.site-nav .nav-more-menu a.nav-link-brand { padding: 10px 12px; border-radius: 8px; }
.site-nav .nav-more-menu a.nav-link-brand:hover { background: var(--paper); }
.site-nav .nav-more-menu a.nav-link-brand::after { display: none; }
.site-nav .nav-more-menu a.nav-link-brand.active-item { color: var(--magenta); }
.site-nav a.nav-link-brand {
  position: relative; display: block; padding: 10px 9px;
  font-size: .93rem; font-weight: 500; color: var(--ink) !important; text-decoration: none !important;
  white-space: nowrap;
}
.site-nav a.nav-link-brand::after {
  content: ""; position: absolute; left: 9px; right: 9px; bottom: 4px; height: 3px; border-radius: 3px;
  background: var(--magenta); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.site-nav a.nav-link-brand:hover::after,
.site-nav a.nav-link-brand.active-item::after { transform: scaleX(1); }
.site-nav a.nav-link-brand.active-item { font-weight: 700; }
.header-cta { flex: none; }
.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--ink); color: var(--paper); align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 28px; position: relative; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 48px; align-items: center; }
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: .8rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow .shapes { display: inline-flex; align-items: flex-end; gap: 6px; font-size: 14px; }
.eyebrow .rule { flex: 1; max-width: 140px; height: 1px; background: var(--line); position: relative; }
.eyebrow .rule::after { content: ""; position: absolute; right: -4px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--magenta); }
.hero h1 {
  font-family: var(--font-sans); font-weight: 800;
  font-size: clamp(2.4rem, 4.7vw, 4.75rem); line-height: 1.06; letter-spacing: -.03em;
  margin: 0 0 22px; padding-bottom: .06em; overflow-wrap: break-word;
}
.hero h1 .line { display: block; }
.hero-copy { min-width: 0; }
.hero h1 .of { color: var(--magenta); }
.hero h1 .by { color: var(--green-ink); }
.hero h1 .with { color: var(--teal); }
.hero-meta { font-size: 1.08rem; color: var(--muted); margin: 0 0 28px; }
.hero-meta .sep { display: inline-block; width: 1px; height: 1em; background: var(--line); margin: 0 12px; vertical-align: -2px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; padding: 4px 0; }
.btn-brand { white-space: nowrap; }
.deadline-pill {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  font-size: .92rem;
}
.deadline-pill .tag { background: var(--lime); color: var(--ink); font-weight: 700; padding: 3px 10px; border-radius: 999px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.deadline-pill strong { font-weight: 700; }

/* Hero art: photo framed by the brand shapes */
.hero-visual { position: relative; min-width: 0; }

/* React carousel (Embla) */
.hero-carousel-root { position: relative; z-index: 1; }
.hero[data-carousel="off"] .hero-carousel-root { display: none; }
.hero[data-carousel="off"] .hero-visual { min-height: 440px; }
.hero[data-carousel="off"] .hero-mural { -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 40%, rgba(0,0,0,.4) 48%, #000 58%); mask-image: linear-gradient(90deg, transparent 0%, transparent 40%, rgba(0,0,0,.4) 48%, #000 58%); }
.hc-viewport { overflow: hidden; border-radius: 22px; background: var(--ink); box-shadow: 0 24px 60px rgba(35,31,35,.22); outline: none; }
.hc-viewport:focus-visible { box-shadow: 0 0 0 4px var(--teal), 0 24px 60px rgba(35,31,35,.22); }
.hc-container { display: flex; touch-action: pan-y pinch-zoom; }
.hc-slide { flex: 0 0 100%; min-width: 0; margin: 0; position: relative; aspect-ratio: 16 / 10.4; user-select: none; }
.hc-media { position: absolute; inset: 0; overflow: hidden; }
.hc-media img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.18); will-change: transform; pointer-events: none; }
.hc-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(35,31,35,.72) 0%, rgba(35,31,35,0) 42%); pointer-events: none; }
.hc-caption {
  position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 1; margin: 0;
  display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 1.02rem; line-height: 1.3;
  opacity: 0; transform: translateY(10px); transition: opacity .5s ease .25s, transform .5s ease .25s;
}
.hc-slide.is-selected .hc-caption { opacity: 1; transform: none; }
.hc-caption .shape { font-size: 12px; }
.hc-caption .shape-circle { background: var(--lime); }


/* Rotating eyebrow text */
.eyebrow .rotator { display: inline-block; overflow: hidden; height: 1.4em; line-height: 1.4em; vertical-align: bottom; min-width: 9em; }
.eyebrow .rotator > span { display: inline-block; white-space: nowrap; }

/* ICoRD mural backdrop (hero) */
.hero { overflow: visible; isolation: isolate; }
.hero-mural {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 45%, rgba(0,0,0,.35) 53%, #000 64%);
          mask-image: linear-gradient(90deg, transparent 0%, transparent 45%, rgba(0,0,0,.35) 53%, #000 64%);
}
.hero .wrap { position: relative; z-index: 1; }

/* Mural accents: CTA band + footer edge */
.cta-mural { position: absolute; inset: 0 0 0 auto; width: 42%; height: 100%; display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%); }
.footer-mural { position: relative; height: 54px; background: var(--ink); }
.footer-mural canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.days-left { font-variant-numeric: tabular-nums; }


/* ---------- Timeline ---------- */
.timeline-brand { padding: 26px 0 10px; }
.timeline-brand ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); position: relative; }
.timeline-brand ol { --line-scale: 1; }
.timeline-brand ol::before { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 1px; background: #b9b4ab; transform: scaleX(var(--line-scale)); transform-origin: left; }
.timeline-brand li { position: relative; padding-right: 10px; }
.timeline-brand .date { display: block; font-size: .9rem; color: var(--muted); height: 26px; white-space: nowrap; }
.timeline-brand .dot { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); border: 3px solid var(--paper); box-sizing: content-box; margin: 0 0 10px -3px; position: relative; z-index: 1; }
.timeline-brand li:nth-child(3n+1) .dot { background: var(--green); }
.timeline-brand li:nth-child(3n+2) .dot { background: var(--teal); }
.timeline-brand li:nth-child(3n) .dot { background: var(--magenta); }
.timeline-brand .label { display: block; font-size: .92rem; line-height: 1.35; }
.timeline-brand li.is-past .dot { background: #b9b4ab; }
.timeline-brand li.is-past .label { color: var(--muted); }
.timeline-brand li.is-now .date { color: var(--ink); font-weight: 700; }
.timeline-brand li.is-now .dot { background: var(--magenta); box-shadow: 0 0 0 5px rgba(183, 44, 105, .2); }
.timeline-brand li.is-now .label { font-weight: 700; }
.timeline-brand li.is-now .now-tag { display: inline-block; margin-top: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--lime); padding: 2px 8px; border-radius: 999px; }
.timeline-brand .now-tag { display: none; }
.timeline-brand li.is-final .date { color: var(--ink); font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .timeline-brand li.is-now .dot { animation: pulse 2s ease-out infinite; }
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(183,44,105,.45); } 100% { box-shadow: 0 0 0 12px rgba(183,44,105,0); } }

/* ---------- Quick links ---------- */
.quick-links { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 22px; }
.quick-links ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.quick-links li + li { border-left: 1px solid var(--line); }
.quick-links a {
  display: flex; align-items: center; gap: 22px; padding: 26px 22px; height: 100%;
  color: var(--ink) !important; text-decoration: none !important; font-size: 1.02rem; line-height: 1.3;
  transition: background-color .15s ease;
}
.quick-links a:hover { background: var(--card); }
.quick-links a .label { flex: 1; }
.quick-links a .arrow { width: 22px; height: 22px; color: var(--magenta); transition: transform .15s ease; flex: none; }
.quick-links a:hover .arrow { transform: translateX(4px); }
.ql-icon { width: 76px; height: 76px; position: relative; flex: none; display: block; }
.ql-svg { width: 100%; height: 100%; overflow: visible; display: block; }
.ql-svg * { transition: transform .45s cubic-bezier(.3,1.6,.5,1); transform-box: fill-box; transform-origin: 50% 50%; }
.quick-links a:hover .fig-a { transform: translateY(-6px) rotate(-6deg); }
.quick-links a:hover .fig-b { transform: translateY(-3px) rotate(6deg); transition-delay: .06s; }
.quick-links a:hover .ai-dot { transform: translateY(-12px); }
.quick-links a:hover .ai-a { transform: rotate(-8deg); }
.quick-links a:hover .ai-i { transform: scaleY(1.08); transform-origin: 50% 100%; }
.quick-links a:hover .cal-hit { transform: scale(1.5); }
.quick-links a:hover .ticket { transform: rotate(-10deg) scale(1.05); }
.ql-svg .tick { stroke-dasharray: 40; stroke-dashoffset: 0; transition: stroke-dashoffset .5s ease; }
.quick-links a:hover .tick { stroke-dashoffset: 40; animation: tick-draw .5s .15s ease forwards; }
@keyframes tick-draw { to { stroke-dashoffset: 0; } }

/* ---------- Content area (loaded sections) ---------- */
.content-area { padding: 56px 0 72px; }
#icord-sections.content-sections {
  max-width: 980px; margin: 0 auto; padding: 0 28px; background: transparent !important;
  min-height: 40vh;
}
#icord-sections .row.featurette { margin: 0; }
#icord-sections .col-md-12 { padding: 0; }
#icord-sections [style*="text-align: justify"], #icord-sections [style*="text-align:justify"] { text-align: left !important; }
#icord-sections p, #icord-sections li { font-size: 1.02rem; }
#icord-sections h2.featurette-heading,
#icord-sections h2 {
  font-family: var(--font-sans); font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.08; color: var(--ink);
  margin: 0 0 24px; text-align: left !important;
  display: flex; align-items: center; gap: 16px;
}
#icord-sections h2.featurette-heading::before,
#icord-sections > .row > .col-md-12 > h2:first-of-type::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--magenta); flex: none;
}
#icord-sections h3, #icord-sections h4, #icord-sections h5, #icord-sections h6 { font-family: var(--font-sans); font-weight: 700; color: var(--ink); }
#icord-sections h4.featurette-heading { font-size: 1.45rem; margin: 36px 0 14px; display: flex; align-items: center; gap: 12px; }
#icord-sections h4.featurette-heading::before { content: ""; width: 12px; height: 16px; background: var(--teal); flex: none; }
#icord-sections h5 { font-size: 1.2rem; margin-top: 28px; color: var(--magenta); }
#icord-sections ul, #icord-sections ul[style*="disc"] { list-style: none !important; padding-left: 0; }
#icord-sections ul[style*="disc"] > li, #icord-sections ul.list-brand > li { position: relative; padding-left: 26px; margin-bottom: 10px; }
#icord-sections ul[style*="disc"] > li::before, #icord-sections ul.list-brand > li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--teal);
}
#icord-sections ul[style*="disc"] > li:nth-child(3n+2)::before { background: var(--green); border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); width: 11px; }
#icord-sections ul[style*="disc"] > li:nth-child(3n)::before { background: var(--magenta); }
#icord-sections ol { padding-left: 1.3em; }
#icord-sections ol > li { margin-bottom: 10px; padding-left: 4px; }
#icord-sections ol > li::marker { color: var(--magenta); font-weight: 700; }
#icord-sections hr, #icord-sections .featurette-divider { border: 0; height: 1px; background: var(--line); margin: 40px 0; padding: 0; }
#icord-sections table { background: var(--card); border-radius: var(--radius-sm); overflow: hidden; }
#icord-sections .table td, #icord-sections .table th { border-top: 1px solid var(--line) !important; padding: .6em .8em; vertical-align: middle !important; }
#icord-sections .table-striped tbody tr:nth-of-type(odd) { background: rgba(19, 142, 158, .05); }
#icord-sections .slidingDiv { background: var(--card); border-left: 4px solid var(--lime); border-radius: var(--radius-sm); padding: 20px; margin-top: 10px; }
#icord-sections .show_hide { display: none; }
#icord-sections .text { line-height: 1.6; color: var(--ink); text-align: left; vertical-align: top; margin-top: 10px; }
#icord-sections .text-heading { line-height: 1.25; }
#icord-sections h6.text-heading { font-size: 1.12rem; color: var(--teal-ink); margin: 28px 0 10px; }
#icord-sections table.tr-space td { padding: 6px 12px; border-top: 1px solid var(--line); font-size: .97rem; }
#icord-sections img { max-width: 100%; height: auto; }

/* Call for papers track cards: re-skin the legacy pastel cards with brand colours */
#icord-sections .container { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; max-width: none; padding: 0; }
#icord-sections #app { margin-left: 0 !important; }
#icord-sections .cardbox {
  border: 0 !important; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow);
  padding: 0 0 6px; overflow: hidden; position: relative;
}
#icord-sections .cardbox .titletext {
  background: transparent !important; color: var(--ink); font-size: 1.05rem; line-height: 1.3; font-weight: 700;
  padding: 22px 22px 8px; margin: 0; border-top: 6px solid var(--teal);
}
#icord-sections .cardbox:nth-child(3n+1) .titletext { border-top-color: var(--magenta); }
#icord-sections .cardbox:nth-child(3n+2) .titletext { border-top-color: var(--green); }
#icord-sections .cardbox .description { padding: 0 22px 16px; font-size: .95rem; color: var(--muted); margin: 0; }

/* Theme cards (overview) */
.theme-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 18px 0 22px; }
.theme-card { position: relative; border-radius: var(--radius); padding: 24px 22px 22px; color: #fff; overflow: hidden; }
.theme-card .shape { font-size: 34px; margin-bottom: 18px; background: #fff; }
.theme-card h3 { font-family: var(--font-sans); font-size: 1.3rem; font-weight: 800; margin: 0 0 6px; color: #fff !important; }
.theme-card p { margin: 0; font-size: .98rem !important; line-height: 1.45; }
.theme-card.t-of { background: var(--magenta); }
.theme-card.t-by { background: var(--green); color: var(--ink); }
.theme-card.t-by h3 { color: var(--ink) !important; }
.theme-card.t-by .shape { background: var(--ink); }
.theme-card.t-with { background: var(--teal); }
.highlight-note { color: var(--magenta-ink); }

/* Call-to-action band */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 40px; padding: 28px 30px; border-radius: var(--radius);
  background: var(--ink); color: var(--paper); position: relative; overflow: hidden;
}
.cta-band > *:not(.cta-mural) { position: relative; z-index: 1; }
.cta-band h3 { color: #fff !important; font-size: 1.4rem; margin: 0 0 4px; }
.cta-band p { margin: 0; color: #d9d5cf; }

/* ---------- Registration page ---------- */
.reg-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: end; margin-bottom: 26px; }
.reg-intro p.lead { font-size: 1.12rem; color: var(--muted); margin: 0; }
.reg-steps { list-style: none; padding: 0 !important; margin: 0 0 34px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: step; }
.reg-steps li { margin: 0 !important; padding: 0 !important; }
.reg-steps a, .reg-steps .step {
  display: flex; flex-direction: column; gap: 10px; height: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  color: var(--ink) !important; text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease;
}
.reg-steps a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.reg-steps .num { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.6rem; line-height: 1; }
.reg-steps .num .shape { font-size: 18px; }
.reg-steps b { font-size: 1.02rem; line-height: 1.3; }
.reg-steps small { color: var(--muted); font-size: .86rem; line-height: 1.4; }

.reg-card {
  background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  padding: 30px; margin-bottom: 26px; box-shadow: var(--shadow);
}
.reg-card > h3.reg-title { display: flex; align-items: center; gap: 12px; font-size: 1.55rem; font-weight: 800; margin: 0 0 6px; }
.reg-card > p.reg-sub { color: var(--muted); margin: 0 0 22px; }
.reg-title .badge-step { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--magenta); color: #fff; font-size: 1rem; }
.reg-title .badge-step.teal { background: var(--teal); }
.badge-step.green { background: var(--green-ink); }
.badge-step.teal { background: var(--teal); }
/* Steps 2 and 3 inside the payment summary panel */
#icord-registration h4.step-head { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; font-weight: 800; margin: 0 0 12px; }
#icord-registration h4.step-head::before { display: none; }
.step-head .badge-step { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--magenta); color: #fff; font-size: .95rem; flex: none; }
.step-head .badge-step.green { background: var(--green-ink); }
.step-head .badge-step.teal { background: var(--teal); }
#icord-registration h4.step-head.step-3 { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.step-wait { display: none; font-size: .88rem; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 6px; }
.calc-summary:has(#paymentMethodSection[style*="none"]) .step-wait { display: block; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.calc-fields .group-label { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-ink); margin: 0 0 10px; }
.calc-fields .group-label + .row { margin-bottom: 22px; }
.calc-fields .row > [class*="col-"] { margin-bottom: 12px; }
.calc-summary { position: sticky; top: calc(var(--header-h) + 16px); background: var(--paper); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.calc-summary .summary-title { font-weight: 800; font-size: 1.1rem; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.calc-summary .table { margin-bottom: 14px; background: var(--card); }
.calc-summary .table tr:last-child td { font-size: 1.15rem; border-top: 2px solid var(--ink) !important; }
#icord-registration label { font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
#icord-registration .form-control {
  border-radius: 12px; border: 1.5px solid var(--line); background-color: #fff; min-height: 46px; font-size: 1rem;
}
#icord-registration .form-control:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(19, 142, 158, .18); }
#icord-registration .form-text.text-muted { color: var(--muted) !important; font-size: .84rem; }
#icord-registration input[type="radio"], #icord-registration input[type="checkbox"] { accent-color: var(--magenta); width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
#icord-registration #descinSection { background: rgba(1, 148, 164, .07); border-left: 4px solid var(--descin); border-radius: 10px; padding: 14px 16px; }
#icord-registration #paymentMethodSection { max-width: none !important; margin: 0 0 14px !important; }
#icord-registration #wireTransferNotice { border-radius: 12px; background: #fff; border: 1px dashed var(--teal); color: var(--ink); font-size: .92rem; }
#icord-registration #wireTransferNotice h4 { font-size: 1.05rem; }
#icord-registration #wireTransferNotice h4::before { display: none; }
#icord-registration #payNow.btn {
  width: 100%; background: var(--magenta); border: 0; border-radius: 999px; padding: .9em 1.4em;
  font-weight: 700; font-size: 1.05rem; box-shadow: 0 6px 18px rgba(183, 44, 105, .28);
}
#icord-registration #payNow.btn:hover { background: var(--magenta-ink); }
.pay-hint { font-size: .84rem; color: var(--muted); margin: 10px 0 0; }
.reg-form-note { display: flex; gap: 12px; align-items: flex-start; background: rgba(177, 238, 11, .25); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; font-size: .95rem; }
.reg-form-note .shape { font-size: 16px; margin-top: 4px; }

.reg-more h3.reg-more-title { font-size: 1.55rem; font-weight: 800; margin: 40px 0 14px; }
.reg-more.reg-rules { margin-bottom: 30px; }
.reg-more.reg-rules h3.reg-more-title { margin-top: 0; font-size: 1.15rem; color: var(--muted); }
.reg-more details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.reg-more details[open] { box-shadow: var(--shadow); }
.reg-more summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 700; position: relative; font-size: 1.02rem;
}
.reg-more summary::-webkit-details-marker { display: none; }
.reg-more summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--magenta); border-bottom: 2.5px solid var(--magenta); transform: rotate(45deg); transition: transform .2s ease;
}
.reg-more details[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.reg-more .details-body { padding: 0 20px 18px; }
.reg-more .faq summary { font-weight: 600; }
.reg-more .faq summary .faq-n { color: var(--magenta); font-weight: 800; margin-right: 6px; }
.reg-more .faq .answer { color: var(--teal-ink); }

/* ---------- Tracks marquee (ScrollVelocity) ---------- */
.tracks-marquee { padding: 26px 0; overflow: hidden; background: var(--ink); color: var(--paper); margin-top: 26px; position: relative; }
.marquee-row { overflow: hidden; white-space: nowrap; }
.marquee-row + .marquee-row { margin-top: 12px; }
.marquee-track { display: inline-flex; gap: 0; will-change: transform; }
.marquee-item { display: inline-flex; align-items: center; gap: 14px; padding: 0 22px; font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
.marquee-row[data-dir="right"] .marquee-item { color: #a9a4a8; font-weight: 500; }
.marquee-item .shape { font-size: 14px; }
.marquee-row[data-dir="right"] .shape-circle { background: var(--lime); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9d5cf; }
.footer-logos { background: var(--card); border-top: 1px solid var(--line); padding: 34px 0; }
.footer-logos .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px 32px; }
.logo-group { display: flex; flex-direction: column; gap: 12px; }
.logo-group small { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.logo-group .logos { display: flex; align-items: center; gap: 16px; }
.logo-tile { height: 58px; display: flex; align-items: center; }
.logo-tile img { height: 100%; width: auto; max-width: 210px; object-fit: contain; mix-blend-mode: multiply; }
.logo-tile.logo-drs img { transform: scale(1.15); transform-origin: left center; }
.footer-main { padding: 48px 0 28px; }
.footer-main .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.footer-main h4 { color: #fff; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 14px; font-weight: 700; }
.footer-main p, .footer-main li { font-size: .95rem; line-height: 1.6; margin: 0 0 6px; }
.footer-main a { color: var(--lime) !important; }
.footer-main ul { list-style: none; padding: 0; margin: 0; }
.footer-main ul a { color: #d9d5cf !important; text-decoration: none; }
.footer-main ul a:hover { color: var(--lime) !important; }
.footer-brand img { height: 60px; width: auto; margin-bottom: 16px; }
.footer-figures { display: flex; align-items: flex-end; gap: 10px; margin-top: 16px; }
.footer-figures .fig { width: 26px; height: 52px; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.footer-figures:hover .fig:first-child { transform: translateY(-6px) rotate(-8deg); }
.footer-figures:hover .fig:last-child { transform: translateY(-4px) rotate(8deg); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: .85rem; color: #a9a4a8; }
.footer-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: #d9d5cf !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1439px) {
  .brand-title span { display: none; }
}
@media (max-width: 1200px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { margin-left: auto; }
  .nav-toggle { margin-left: 10px; }
  .site-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    background: var(--paper); padding: 20px 28px 40px; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  .site-nav { display: block; }
  .site-nav menu { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a.nav-link-brand { font-size: 1.4rem; font-weight: 700; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .site-nav a.nav-link-brand::after { left: 0; right: auto; width: 40px; bottom: 10px; }
  .nav-open { overflow: hidden; }
  /* backdrop-filter would make the header the containing block of the fixed drawer */
  .nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
}
@media (max-width: 1024px) {
  .hero[data-carousel="off"] .hero-visual { min-height: 240px; }
  .hero[data-carousel="off"] .hero-mural { -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 52%, #000 72%); mask-image: linear-gradient(180deg, transparent 0%, transparent 52%, #000 72%); }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-copy, .hero-visual { min-width: 0; }
  .hero-visual { max-width: 760px; }
  .hero-mural { -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 46%, #000 66%); mask-image: linear-gradient(180deg, transparent 0%, transparent 46%, #000 66%); }
  .timeline-brand { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .timeline-brand ol { min-width: 860px; }
  .quick-links ul { grid-template-columns: repeat(2, 1fr); }
  .quick-links li:nth-child(3) { border-left: 0; }
  .quick-links li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-main .wrap { grid-template-columns: 1fr 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-summary { position: static; }
  .reg-steps { grid-template-columns: repeat(2, 1fr); }
  .theme-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 70px; }
  body.brand { font-size: 16px; }
  .wrap { padding: 0 16px; }
  #icord-sections.content-sections { padding: 0 16px; }
  .brand-lockup img { height: 42px; }
  .brand-lockup .divider, .brand-title { display: none; }
  .header-cta .btn-brand { padding: .55em 1em; font-size: .88rem; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: clamp(2.3rem, 11.5vw, 3.2rem); }
  .hero-meta .sep { display: none; }
  .hero-meta span { display: block; }
  .hero-actions .btn-brand { flex: 1 1 100%; justify-content: center; }
  .eyebrow { letter-spacing: .16em; font-size: .72rem; }
  .quick-links ul { grid-template-columns: 1fr; }
  .quick-links li + li { border-left: 0; border-top: 1px solid var(--line); }
  .quick-links a { padding: 18px 4px; }
  .ql-icon { width: 54px; height: 54px; }
  .hc-caption { font-size: .92rem; left: 16px; bottom: 14px; }
  .marquee-item { font-size: 1rem; }
  .footer-main .wrap { grid-template-columns: 1fr; }
  .footer-logos .wrap { justify-content: flex-start; }
  .logo-tile { height: 46px; }
  .logo-tile img { max-width: 160px; }
  .content-area { padding-top: 36px; }
  .deadline-pill { border-radius: 16px; }
  .timeline-brand { overflow: visible; }
  .timeline-brand ol { min-width: 0; grid-template-columns: 1fr; gap: 16px; padding-left: 28px; }
  .timeline-brand ol::before { left: 10px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .timeline-brand li { display: grid; grid-template-columns: 112px 1fr; align-items: baseline; padding: 0; }
  .timeline-brand .date { height: auto; }
  .timeline-brand .dot { position: absolute; left: -28px; top: 5px; margin: 0; }
  .timeline-brand .label br { display: none; }
  .timeline-brand .now-tag { grid-column: 2; justify-self: start; }
  .reg-intro { grid-template-columns: 1fr; }
  .reg-steps { grid-template-columns: 1fr; gap: 8px; }
  .reg-steps a { display: grid; grid-template-columns: 58px 1fr; column-gap: 8px; row-gap: 2px; padding: 14px 16px; }
  .reg-steps .num { grid-row: span 2; font-size: 1.35rem; }
  .reg-steps .num .shape { font-size: 14px; }
  .reg-card { padding: 20px 16px; }
  .cta-band { padding: 24px 20px; }
  .cta-band .btn-brand { width: 100%; justify-content: center; }
}
