/* ============================================================
   ICNDMT 2027 — Tokens
   ============================================================ */
:root {
  /* Official iHub brand colors */
  --brand-blue: #0D569E;
  --accent-orange: #FF6700;
  --paper: #FFFFFF;
  --ink: #111111;

  /* Derived shades (not separate brand colors — tints/shades of the above) */
  --brand-blue-deep: #082F57;
  --blue-tint: #E7F0FA;
  --ink-soft: #33383F;
  --line: #C7D4E1;
  /* Lightened orange for small text on the brand-blue family — #FF6700 direct
     sits too close to the AA line at small sizes; this clears it with margin. */
  --accent-orange-on-dark: #FF9D5C;

  --font-display: 'Manrope', 'Segoe UI', sans-serif;
  --font-body: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-label: 'Manrope', 'Segoe UI', sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-blue);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 999;
  font-family: var(--font-label);
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--accent-orange);
  outline-offset: 3px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-blue);
  background: rgba(13, 86, 158, 0.09);
  padding: 0.4rem 0.85rem;
  border-radius: 2px;
  margin: 0 0 1rem;
}
.eyebrow-light {
  /* White on the tinted chip, not orange-on-orange: verified ~11:1 against the
     hero's navy backdrop, vs. ~4:1 for orange text (failed AA). */
  color: #fff;
  background: rgba(255, 103, 0, 0.24);
}
.section-dark .eyebrow {
  color: #fff;
  background: rgba(255, 103, 0, 0.22);
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 32ch;
  margin-bottom: 1.75rem;
}
.section-dark .section-title { color: #fff; }

/* ============================================================
   Signature element: signal trace (desktop scrollspy)
   ============================================================ */
.signal-trace {
  position: fixed;
  left: 2.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
}
.signal-trace ol {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.1rem;
}
.signal-trace ol::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  bottom: 5px;
  width: 1px;
  background: linear-gradient(var(--line), var(--line));
}
.signal-trace a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}
.signal-trace .node {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--line);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
  flex: none;
}
.signal-trace .node-label {
  /* The nav is fixed and floats over every section, including the dark navy
     ones — text color alone can't stay readable against both, so the label
     carries its own light chip instead of relying on whatever's behind it. */
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.94);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(6, 26, 48, 0.18);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.signal-trace a:hover .node-label,
.signal-trace a:focus-visible .node-label {
  opacity: 1;
  transform: translateX(0);
}
.signal-trace a.active .node {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  transform: scale(1.15);
}
.signal-trace a.active .node-label {
  opacity: 1;
  transform: translateX(0);
  color: var(--brand-blue);
}
@media (max-width: 900px) {
  .signal-trace { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .signal-trace a.active .node { transform: none; }
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.brand-mark { color: var(--ink); }
.brand-year { color: var(--brand-blue); }

.top-nav {
  display: flex;
  gap: 2rem;
  font-family: var(--font-label);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.top-nav a {
  position: relative;
  padding: 0.25rem 0;
}
.top-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.top-nav a:hover::after,
.top-nav a:focus-visible::after,
.top-nav a.active::after {
  transform: scaleX(1);
}
.top-nav a.active { color: var(--brand-blue); }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  margin: 0 calc(-1 * (44px - 22px) / 2);
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
  font-family: var(--font-label);
  text-transform: uppercase;
  font-size: 0.9rem;
}
.mobile-nav a {
  padding: 1rem var(--gutter);
  border-bottom: 1px solid var(--line);
}
.mobile-nav.open { display: flex; }

@media (max-width: 720px) {
  .top-nav { display: none; }
  .nav-toggle { display: flex; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background: radial-gradient(ellipse at 15% 0%, #113f76 0%, var(--brand-blue-deep) 55%, #051d38 100%);
  color: #fff;
  overflow: hidden;
  padding: 7rem 0 6rem;
}
.hero-field {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,0.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 12%, rgba(255,255,255,0.4) 50%, transparent 51%),
    radial-gradient(2px 2px at 62% 68%, rgba(255,255,255,0.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 35% 78%, rgba(255,255,255,0.35) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 90% 55%, rgba(255,103,0,0.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 22% 50%, rgba(255,255,255,0.3) 50%, transparent 51%);
  background-size: 100% 100%;
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero-title {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin: 0.5rem 0 2.5rem;
}
.hero-acronym {
  font-size: clamp(3rem, 9vw, 6.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero-acronym .accent { color: var(--accent-orange); }
.hero-full {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 44ch;
  color: rgba(255,255,255,0.82);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding: 1.75rem 0;
  margin-bottom: 2.25rem;
  border-top: 1px solid rgba(255,255,255,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.hero-meta-label {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.hero-meta-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-label);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-primary {
  background: var(--accent-orange);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-2px); background: #e65c00; }
.btn-ghost {
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
}
.btn-ghost:hover { border-color: #fff; transform: translateY(-2px); }

.hero-logo {
  position: absolute;
  right: var(--gutter);
  bottom: 2.25rem;
  width: clamp(90px, 12vw, 140px);
  height: auto;
  opacity: 0.92;
  z-index: 1;
}
@media (max-width: 720px) {
  .hero-logo { display: none; }
}

/* ============================================================
   Sections (shared)
   ============================================================ */
.section {
  padding: 6rem 0;
}
.section-alt {
  background: var(--blue-tint);
}
.section-dark {
  color: #fff;
}

/* About */
.about {
  position: relative;
  background: var(--paper);
}
.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("Assets/Images/bg-1.png") top center / 100% auto repeat-y;
  opacity: 0.45;
}
.about > .wrap {
  position: relative;
}
.about-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-main {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.about-copy {
  color: var(--ink-soft);
  font-size: 1.08rem;
}
.about-copy p:last-child { margin-bottom: 0; }

.about-note {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-family: var(--font-label);
  font-size: 0.92rem;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1.25rem 1.5rem;
  margin: 0;
}
.about-note p { margin: 0; }
.about-note strong { color: var(--brand-blue); }
.about-note-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 2px;
  background: var(--blue-tint);
  color: var(--brand-blue);
}
.about-note-icon svg { width: 18px; height: 18px; }

/* Vertical numbered timeline
   The connector can't be one line spanning the whole list: each pillar's
   row grows to fit its own body text (align-items: start keeps the marker
   pinned to the row's top), so a taller last item shifts the container's
   bottom edge below the last marker and a fixed offset overshoots it.
   Instead, each non-last pillar draws its own segment anchored to its own
   marker center and reaching into the next row by exactly one gap +
   half a marker — both known constants — so it always lands on the next
   marker's center regardless of how tall any body text is. */
.pillars {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  align-self: start;
}
.pillar {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.25rem;
  align-items: start;
}
.pillar:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 22px;
  bottom: calc(-1 * (2.25rem + 22px));
  width: 1px;
  background: var(--line);
}
.pillar-marker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.86rem;
  transition: background 0.25s var(--ease);
}
.pillar:hover .pillar-marker { background: var(--accent-orange); }
.pillar-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.pillar-body p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin: 0;
}

@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Speakers */
.speaker-network {
  width: 220px;
  max-width: 100%;
  margin: 0 auto 1.75rem;
}
.speaker-network svg {
  width: 100%;
  height: 24px;
  display: block;
}

.speaker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 190px));
  justify-content: center;
  gap: 1.25rem;
}
.speaker-card {
  /* Same dark panel the pillars use — the system's strongest existing move,
     extended here instead of staying the flattest section on the page. */
  background: var(--brand-blue-deep);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.speaker-card:hover {
  transform: translateY(-6px);
  background: #0c3f6f;
  box-shadow: 0 24px 48px -20px rgba(6, 26, 48, 0.55);
}
.speaker-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.94) contrast(1.05);
}
.speaker-info {
  padding: 0.9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.speaker-info h3 {
  color: #fff;
  font-size: 0.94rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  padding-bottom: 0.4rem;
  position: relative;
}
.speaker-info h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: rgba(255, 255, 255, 0.45);
  transform: scaleX(0.6);
  transform-origin: left;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.speaker-card:hover .speaker-info h3::after {
  transform: scaleX(1);
  background: var(--accent-orange);
}
.speaker-affiliation {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.6rem;
  flex: 1;
}
.speaker-link {
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid transparent;
  margin-top: auto;
  align-self: flex-start;
}
.speaker-link:hover,
.speaker-link:focus-visible {
  color: var(--accent-orange);
  border-bottom-color: var(--accent-orange);
}

/* Venue */
.section-dark.venue {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 85% 100%, #0d3f70 0%, var(--brand-blue-deep) 55%, #051d38 100%);
  color: #fff;
}

/* Full-height ambient background graphic, confined to the right side and
   faded — texture behind the section, never competing with the text. */
.venue-graphic {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 45%);
  mask-image: linear-gradient(to right, transparent 0%, black 45%);
}
.venue-graphic svg {
  width: 100%;
  height: 100%;
  display: block;
}
@media (max-width: 860px) {
  .venue-graphic { width: 85%; opacity: 0.22; }
}

.venue-grid {
  position: relative;
  z-index: 1;
}
.venue-copy {
  max-width: 640px;
}
.venue-copy p { color: rgba(255, 255, 255, 0.78); max-width: 52ch; }
.venue-facts {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.venue-facts div {
  display: flex;
  gap: 1.25rem;
  font-family: var(--font-label);
  font-size: 0.9rem;
}
.venue-fact-label {
  color: var(--accent-orange-on-dark);
  min-width: 6.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  align-self: center;
}
.venue-facts div span:last-child { color: #fff; }

/* Organiser */
.organiser-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}
.organiser-copy p { color: var(--ink-soft); max-width: 56ch; }
.organiser-copy p.organiser-tagline {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-orange);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.organiser-logo {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px -24px rgba(13, 86, 158, 0.4);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.organiser-logo img {
  width: 100%;
  height: auto;
}
@media (max-width: 860px) {
  .organiser-grid { grid-template-columns: 1fr; }
  .organiser-logo { order: -1; max-width: 320px; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--brand-blue-deep);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-logo { width: 96px; height: auto; }
.footer-text p { margin: 0 0 0.3rem; font-size: 0.92rem; }
.footer-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}
.cmt-acknowledgment {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.cmt-acknowledgment p {
  margin: 0;
  font-family: var(--font-label);
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  max-width: 68ch;
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover, .speaker-card:hover {
    transform: none;
  }
}
