/* Original NSNI landing styles, ported from app/globals.css. */
:root {
  --navy: #0c2559;
  --navy-deep: #08183a;
  --navy-mid: #173a73;
  --gold: #b08b4f;
  --gold-light: #d3a562;
  --sky: #dde5ef;
  --sky-light: #eef3f9;
  --paper: #fff;
  --muted: #55698f;
  --line: rgba(12, 37, 89, 0.14);
  --danger: #a43434;
  --success: #1f6a50;
  --display: "Manrope", "Segoe UI", sans-serif;
  --serif: "Literata", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 82px; }
body { overflow-x: clip; margin: 0; color: var(--navy); background: var(--paper); font-family: var(--display); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h2 { max-width: 860px; margin-bottom: 0; color: var(--navy); font-size: clamp(2.15rem, 4vw, 3.65rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; }
.content-wrap { width: min(100%, var(--wrap)); margin-inline: auto; padding-inline: 32px; }
.eyebrow { margin-bottom: 22px; color: var(--gold); font-family: var(--mono); font-size: 0.73rem; letter-spacing: 0.22em; text-transform: uppercase; }
.lede { color: #2c4270; font-family: var(--serif); font-size: 1.06rem; line-height: 1.75; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 1px solid transparent; padding: 14px 28px; font-weight: 700; transition: transform .18s ease, background-color .18s ease, border-color .18s ease; }
.button svg { width: 19px; height: 19px; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .language:focus-visible, .menu-button:focus-visible, .primary-nav a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(211, 165, 98, .62); outline-offset: 3px; }
.button-gold { color: white; background: var(--gold); }
.button-gold:hover { background: #9f7c43; }
.button-outline { border-color: rgba(12, 37, 89, .32); background: transparent; color: var(--navy); }
.button-outline:hover { border-color: var(--navy); background: rgba(12, 37, 89, .04); }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); }
.nav-shell { width: min(100%, var(--wrap)); height: 82px; margin-inline: auto; padding-inline: 32px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: 11px; }
.brand img { width: 58px; height: 47px; object-fit: contain; }
.brand span { color: var(--navy); font-size: 0.64rem; font-weight: 700; letter-spacing: .105em; line-height: 1.48; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.primary-nav a { position: relative; padding: 8px 0; color: #33497a; font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.primary-nav a::after { position: absolute; right: 100%; bottom: 3px; left: 0; height: 2px; background: var(--gold); content: ""; transition: right .2s ease; }
.primary-nav a:hover::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 15px; }
.nav-register { min-height: 48px; padding: 11px 22px; font-size: .84rem; }
.language { display: flex; align-items: center; gap: 8px; padding-left: 16px; border-left: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: .67rem; letter-spacing: .12em; }
.language b { color: var(--navy); }
.language span { opacity: .45; }
.account-link { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); color: var(--navy); }
.menu-button, .mobile-account { display: none; }

.hero { overflow: hidden; padding: 0; background: linear-gradient(160deg, #f3f7fb, var(--sky)); }
.hero-grid { min-height: 660px; display: grid; grid-template-columns: 1.12fr .88fr; }
.hero-copy { align-self: center; padding: 92px 48px 88px 0; transform: translateY(-28px); }
.hero h1 { max-width: 650px; margin-bottom: 0; color: var(--navy); font-size: clamp(2.65rem, 3.6vw, 2.875rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; text-transform: uppercase; }
.short-rule { width: 64px; height: 3px; display: block; margin: 30px 0; background: var(--gold); }
.hero-subtitle { margin-bottom: 30px; color: #2e4676; font-size: 1.15rem; font-weight: 500; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 25px; margin-bottom: 34px; }
.hero-meta > div { width: 100%; min-width: 225px; display: flex; align-items: center; gap: 11px; }
.meta-icon { width: 38px; height: 38px; display: grid; flex: none; place-items: center; border: 1px solid rgba(176, 139, 79, .5); color: var(--gold); }
.meta-icon svg { width: 18px; height: 18px; stroke-width: 1.55; }
.hero-meta small { display: block; margin-bottom: 2px; color: var(--muted); font-family: var(--mono); font-size: .62rem; letter-spacing: .15em; text-transform: uppercase; }
.hero-meta b { display: block; font-size: .93rem; line-height: 1.35; }
.hero-note { max-width: 455px; margin: 32px 0 0; padding-left: 16px; border-left: 2px solid rgba(176, 139, 79, .55); color: var(--muted); font-family: var(--serif); font-size: .84rem; line-height: 1.6; }
.hero-visual { position: relative; min-width: 0; margin-right: -50vw; }
.hero-visual::after { position: absolute; inset: 0; box-shadow: inset 44px 0 60px -34px rgba(221, 229, 239, .9); content: ""; pointer-events: none; }
.hero-visual img { object-fit: cover; object-position: center; }

.countdown { color: white; background: var(--navy); }
.countdown-inner { min-height: 100px; display: flex; align-items: center; gap: 40px; }
.countdown-inner > p { margin: 0; color: rgba(255,255,255,.65); font-family: var(--mono); font-size: .69rem; letter-spacing: .2em; text-transform: uppercase; }
.countdown-values { display: flex; gap: 38px; margin-left: auto; }
.countdown-values div { min-width: 50px; text-align: center; }
.countdown-values b { display: block; font-size: 1.8rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown-values span { color: rgba(255,255,255,.58); font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; }
.facts { border-bottom: 1px solid var(--line); background: var(--sky-light); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.facts-grid > div { min-width: 0; padding: 32px 25px; background: var(--sky-light); }
.facts-grid b { display: block; overflow-wrap: anywhere; margin-bottom: 5px; font-size: 1.45rem; }
.facts-grid span { display: block; color: var(--muted); font-family: var(--mono); font-size: .63rem; letter-spacing: .13em; line-height: 1.55; text-transform: uppercase; }

.section-shell { position: relative; padding: 104px 0; }
.section-content { position: relative; padding-left: 108px; }
.section-spine { position: absolute; top: 6px; bottom: 0; left: 31px; width: 1px; background: rgba(176, 139, 79, .36); }
.section-spine svg { position: absolute; top: -1px; left: -6px; fill: var(--gold); stroke: var(--gold); transform: rotate(45deg); }
.section-dark { color: white; background: var(--navy-deep); }
.section-dark h2 { color: white; }
.section-dark .section-spine { background: rgba(211,165,98,.28); }
.section-dark .section-spine svg { fill: var(--gold-light); stroke: var(--gold-light); }
.about-section { overflow: hidden; }
.skyline { position: absolute; z-index: -1; top: 0; right: 0; left: 0; height: 230px; background-image: linear-gradient(to bottom, rgba(255,255,255,.45), white), url("/assets/sofia-skyline.jpg"); background-position: center top; background-size: cover; opacity: .55; }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; margin-top: 45px; }
.quote { color: var(--navy); font-family: var(--serif); font-size: 1.55rem; line-height: 1.55; }
.about-grid .lede { margin-bottom: 20px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 58px; }
.pillars article { padding-top: 22px; border-top: 2px solid var(--gold); }
.pillars article > p { margin-bottom: 11px; color: var(--gold); font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; }
.pillars h3 { margin-bottom: 10px; font-size: 1.1rem; }
.pillars span { color: #3a4f7d; font-family: var(--serif); font-size: .9rem; line-height: 1.65; }
.audience { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 52px; }
.audience b { margin-right: 8px; color: var(--muted); font-family: var(--mono); font-size: .64rem; letter-spacing: .15em; text-transform: uppercase; }
.audience span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: #33497a; font-size: .78rem; font-weight: 600; }

.program-section .lede { max-width: 580px; margin-top: 22px; color: rgba(255,255,255,.7); }
.agenda { margin-top: 50px; border-top: 1px solid rgba(255,255,255,.14); }
.agenda article { min-height: 118px; display: grid; grid-template-columns: 150px 1fr 30px; align-items: center; gap: 28px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.14); transition: padding-left .2s ease; }
.agenda article:hover { padding-left: 10px; }
.agenda article > p { margin: 0; color: var(--gold-light); font-family: var(--mono); font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; }
.agenda h3 { margin-bottom: 5px; font-size: 1.2rem; }
.agenda span { color: rgba(255,255,255,.6); font-family: var(--serif); font-size: .86rem; line-height: 1.6; }
.agenda svg { color: rgba(255,255,255,.35); }
.program-note { margin-top: 24px; color: rgba(255,255,255,.42); font-family: var(--mono); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }

.speaker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 50px; }
.speaker-grid article { min-height: 285px; display: flex; flex-direction: column; justify-content: space-between; padding: 21px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(238,243,249,.35), rgba(221,229,239,.83)); }
.speaker-grid article > span { color: var(--gold); font-family: var(--mono); font-size: .61rem; letter-spacing: .16em; text-transform: uppercase; }
.speaker-grid b { display: block; color: rgba(12,37,89,.42); font-size: .95rem; }
.speaker-grid p { margin: 3px 0 0; color: var(--muted); font-family: var(--serif); font-size: .82rem; }
.speaker-after { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 40px; }
.speaker-after p { max-width: 480px; margin: 0; color: var(--muted); font-family: var(--serif); font-size: .9rem; }

.sponsor-section { min-height: 680px; overflow: hidden; }
.sponsor-bg { position: absolute; z-index: 0; inset: 0; background: linear-gradient(90deg, rgba(6,18,44,.97) 0%, rgba(6,18,44,.9) 55%, rgba(6,18,44,.45) 100%), url("/assets/sponsor-background.jpg") center / cover; }
.sponsor-section .section-spine, .sponsor-copy { z-index: 1; }
.sponsor-copy { position: relative; max-width: 650px; }
.sponsor-copy h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
.sponsor-copy .lede { max-width: 570px; margin-top: 24px; color: rgba(255,255,255,.72); }
.sponsor-copy ul { max-width: 570px; padding: 0; margin: 30px 0 36px; list-style: none; }
.sponsor-copy li { position: relative; padding: 13px 0 13px 28px; border-bottom: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.84); }
.sponsor-copy li::before { position: absolute; top: 22px; left: 4px; width: 7px; height: 7px; background: var(--gold-light); content: ""; transform: rotate(45deg); }

.packages-section { padding: 100px 0; background: white; }
.package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.package-grid article { display: flex; min-height: 360px; flex-direction: column; padding: 34px; border: 1px solid var(--line); }
.package-grid article.featured { color: white; border-color: var(--navy); background: var(--navy); transform: translateY(-12px); }
.package-grid article > p { color: var(--gold); font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.package-grid h3 { margin: 0 0 25px; font-size: 1.9rem; }
.package-grid ul { padding-left: 20px; color: var(--muted); font-family: var(--serif); }
.package-grid .featured ul { color: rgba(255,255,255,.72); }
.package-grid li { margin-bottom: 10px; }
.package-grid a { display: inline-flex; align-items: center; gap: 12px; margin-top: auto; color: var(--gold); font-weight: 700; }
.package-grid a svg { width: 18px; }

.registration-band { padding: 106px 0; text-align: center; background: var(--sky-light); }
.registration-band h2 { max-width: 760px; margin-inline: auto; font-size: 2.75rem; text-transform: uppercase; }
.registration-band .lede { max-width: 640px; margin: 22px auto 34px; }
.registration-band .button-row { justify-content: center; }
.fine-print { margin: 25px 0 0; color: var(--muted); font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; }

.venue-card { display: grid; grid-template-columns: 1fr 1fr; margin-top: 38px; border: 1px solid var(--line); }
.venue-card > div { padding: 52px; }
.venue-card h3 { font-size: 1.35rem; }
.venue-card dl { margin: 25px 0 0; }
.venue-card dl div { display: grid; grid-template-columns: 125px 1fr; gap: 15px; margin-bottom: 13px; }
.venue-card dt { color: var(--muted); font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
.venue-card dd { margin: 0; font-size: .9rem; font-weight: 600; }
.venue-map { position: relative; min-height: 380px; overflow: hidden; background-position: center; background-size: cover; }
.venue-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.78) contrast(.96); }
.venue-map::after { position: absolute; inset: 0; pointer-events: none; background: rgba(8,24,58,.08); content: ""; }
.venue-map .map-cta { position: absolute; z-index: 1; right: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 10px; padding: 13px 17px; color: white; background: var(--navy); box-shadow: 0 8px 24px rgba(8,24,58,.28); font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
.venue-map .map-cta svg { width: 21px; height: 21px; }

footer { padding: 70px 0 28px; color: rgba(255,255,255,.68); background: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 50px; }
.footer-brand { display: flex; align-items: center; gap: 14px; color: white; font-size: .69rem; letter-spacing: .1em; line-height: 1.45; text-transform: uppercase; }
.footer-brand img { object-fit: contain; filter: brightness(1.25); }
.footer-grid > div:first-child > p { max-width: 360px; margin-top: 20px; font-family: var(--serif); font-size: .87rem; }
.footer-grid h3 { margin-bottom: 15px; color: var(--gold-light); font-family: var(--mono); font-size: .68rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; }
.footer-grid a { display: block; padding: 4px 0; font-size: .86rem; }
.footer-grid a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.45); font-size: .75rem; }

@media (max-width: 1080px) {
  .primary-nav { gap: 16px; }
  .primary-nav a { font-size: .75rem; }
  .nav-register { display: none; }
  .section-content { padding-left: 32px; }
  .section-spine { display: none; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 70px; }
  .content-wrap, .nav-shell { width: 100%; padding-inline: 20px; }
  .nav-shell { height: 70px; }
  .brand img { width: 47px; height: 40px; }
  .brand span { font-size: .55rem; }
  .primary-nav { position: fixed; top: 70px; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 16px 20px 28px; border-bottom: 1px solid var(--line); background: white; box-shadow: 0 20px 35px rgba(8,24,58,.12); }
  .primary-nav.is-open { display: flex; flex-direction: column; }
  .primary-nav a { padding: 13px 5px; border-bottom: 1px solid var(--line); font-size: .9rem; }
  .primary-nav a::after { display: none; }
  .primary-nav .mobile-account { display: flex; align-items: center; gap: 9px; }
  .menu-button { display: grid; width: 40px; height: 40px; padding: 0; place-items: center; border: 1px solid var(--line); color: var(--navy); background: white; }
  .menu-button svg { width: 22px; height: 22px; }
  .account-link { display: none; }
  .language { border-left: 0; padding-left: 0; }
  .hero-grid { width: 100%; min-height: 0; grid-template-columns: 1fr; }
  .hero-grid { padding-inline: 0; }
  .hero-copy { width: 100%; margin-inline: auto; padding: 64px 20px 58px; }
  .hero-copy { transform: none; }
  .hero-visual { margin-right: 0; }
  .hero-visual { min-height: 470px; }
  .hero-visual::after { box-shadow: inset 0 42px 50px -38px rgba(221,229,239,.95); }
  .hero h1 { max-width: 620px; font-size: clamp(2.5rem, 9vw, 3.4rem); }
  .countdown-inner { padding: 20px 0; flex-direction: column; align-items: flex-start; gap: 16px; }
  .countdown-values { width: 100%; justify-content: space-between; gap: 10px; margin-left: 0; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .section-shell { padding: 82px 0; }
  .section-content { padding-left: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .pillars { grid-template-columns: 1fr; }
  .agenda article { grid-template-columns: 120px 1fr 24px; gap: 20px; }
  .speaker-grid { grid-template-columns: repeat(2, 1fr); }
  .sponsor-section { min-height: 0; }
  .package-grid { grid-template-columns: 1fr; }
  .package-grid article.featured { transform: none; }
  .venue-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  body { font-size: 15px; }
  .content-wrap, .nav-shell, .hero-copy { width: 100%; padding-inline: 16px; }
  .brand span { display: none; }
  .nav-actions { margin-left: auto; gap: 11px; }
  .language { font-size: .61rem; }
  .hero-copy { padding: 54px 0 48px; }
  .hero h1 { font-size: clamp(2.35rem, 11.5vw, 3rem); }
  .hero-subtitle { font-size: 1.02rem; }
  .hero-meta { display: grid; gap: 15px; }
  .hero-meta > div { min-width: 0; }
  .button-row .button { width: 100%; }
  .hero-visual { min-height: 390px; }
  .countdown-values div { min-width: 0; }
  .countdown-values b { font-size: 1.45rem; }
  .facts-grid { grid-template-columns: 1fr; }
  .facts-grid > div { padding: 25px 22px; }
  .section-shell, .packages-section, .registration-band { padding: 70px 0; }
  h2 { font-size: 2.25rem; }
  .quote { font-size: 1.3rem; }
  .agenda article { grid-template-columns: 1fr 22px; gap: 12px; }
  .agenda article > p { grid-column: 1 / -1; margin-bottom: 2px; }
  .speaker-grid { grid-template-columns: 1fr; }
  .speaker-grid article { min-height: 220px; }
  .sponsor-copy li { padding-left: 22px; }
  .package-grid article { min-height: 320px; padding: 28px; }
  .venue-card > div { padding: 30px 24px; }
  .venue-card dl div { grid-template-columns: 1fr; gap: 3px; margin-bottom: 16px; }
  .venue-map { min-height: 300px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .agenda article { transition: none; }
  .button:hover { transform: none; }
}

/* next/image fill positioning, rendered as a normal PHP image. */
.hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; color: transparent; }
.landing-flash { position: fixed; z-index: 99; right: 20px; top: 20px; max-width: 420px; padding: 14px 18px; border: 1px solid var(--line); background: white; }

/* Paint the final button colours immediately, even in a suspended Safari tab.
   Colour transitions are only needed when the user interacts with a button. */
.button:not(:hover) { transition-property: transform; }
.menu-button > span:not([hidden]) { display: flex; }
