/* World Longevity Summit 2027 — shared stylesheet
   Implements WLS2027 Web Design System v1.0 */

:root {
  --wls-petrol-900: #052E2C;
  --wls-petrol-800: #0B403D;
  --wls-petrol-700: #14524E;
  --wls-petrol-600: #1E645F;
  --wls-petrol-400: #4C8B85;

  --wls-gold-400: #F3CC5C;
  --wls-gold-500: #E8B429;
  --wls-gold-600: #C4901A;

  --wls-shu-500: #C0462C;
  --wls-shu-600: #9E3720;

  --wls-mineral-050: #EDF1EE;
  --wls-mineral-100: #DDE5E1;
  --wls-mineral-300: #B4C2BC;
  --wls-ink-900: #0A211F;

  --surface: var(--wls-mineral-050);
  --surface-raised: var(--wls-mineral-100);
  --text: var(--wls-ink-900);
  --text-muted: #4A5F5A;
  --accent: var(--wls-shu-600);
  --rule: var(--wls-mineral-300);

  --surface-inverse: var(--wls-petrol-700);
  --surface-inverse-deep: var(--wls-petrol-900);
  --text-inverse: #FFFFFF;
  --text-inverse-muted: #A8C2BE;
  --accent-inverse: var(--wls-gold-500);
  --rule-inverse: rgba(76,139,133,.45);

  --font-display: "IBM Plex Sans", "IBM Plex Sans JP", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "IBM Plex Sans JP", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --fs-display: clamp(3rem, 7.5vw, 6rem);
  --fs-h1: clamp(2.25rem, 4.5vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 3vw, 2.5rem);
  --fs-h3: 1.375rem;
  --fs-lead: 1.1875rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.75rem;
  --fs-time: 0.9375rem;

  --s1: 4px;  --s2: 8px;   --s3: 12px;  --s4: 16px;
  --s5: 24px; --s6: 32px;  --s7: 48px;  --s8: 64px;
  --s9: 96px; --s10: 128px;

  --page-max: 1240px;
  --radius-control: 3px;
  --hairline: 1px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; text-wrap: pretty; }

.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-display);
  letter-spacing: -0.035em;
  line-height: 1.0;
}

.h1 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -0.028em; }
.h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h2); line-height: 1.18; letter-spacing: -0.022em; }
.h3 { font-family: var(--font-body); font-weight: 600; font-size: var(--fs-h3); line-height: 1.3; }

.lead { font-size: var(--fs-lead); line-height: 1.6; max-width: 60ch; }
.small { font-size: var(--fs-small); line-height: 1.55; }
.muted { color: var(--text-muted); }
.muted-inverse { color: var(--text-inverse-muted); }

p { margin: 0 0 var(--s4); max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--wls-shu-500); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s5);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--wls-gold-600); flex: none; }
.eyebrow.on-dark { color: var(--accent-inverse); }
.eyebrow.on-dark::before { background: var(--wls-gold-500); }

.page { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--s5); }
.band { padding: var(--s9) 0; }
.band--dark { background: var(--surface-inverse); color: var(--text-inverse); }
.band--raised { background: var(--surface-raised); }

.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s5); }
.split__narrative { grid-column: 1 / 8; max-width: 66ch; }
.split__structure { grid-column: 9 / 13; }

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--surface-inverse-deep);
  color: var(--text-inverse);
  border-bottom: var(--hairline) solid var(--rule-inverse);
}
.nav__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  min-height: 72px;
  padding: var(--s3) var(--s5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3) var(--s6);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s4);
  min-height: 44px;
  color: var(--wls-gold-500);
  transition: color 180ms var(--ease);
}
.brand:hover { color: var(--wls-gold-400); }
.brand:focus-visible { outline: 2px solid var(--wls-gold-400); outline-offset: 2px; }
.brand__mark { width: 50px; height: 40px; flex: none; }
.brand__rule { width: 1.5px; height: 34px; background: rgba(168,194,190,.55); flex: none; }
.brand__lockup { display: flex; flex-direction: column; gap: 2px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.1;
  color: var(--text-inverse);
}
.brand__edition {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-inverse-muted);
}

.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s6); }
.nav__link {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-inverse);
  padding: var(--s2) 0;
  border-bottom: 2px solid transparent;
  transition: border-color 180ms var(--ease), color 180ms var(--ease);
}
.nav__link:hover { color: var(--wls-gold-400); border-bottom-color: var(--wls-gold-400); }
.nav__link[aria-current="page"] { border-bottom-color: var(--wls-gold-500); color: var(--wls-gold-500); }
.nav__link:focus-visible { outline: 2px solid var(--wls-gold-400); outline-offset: 2px; }
.nav__lang { font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: .12em; color: var(--text-inverse-muted); }
.nav__lang strong { color: var(--wls-gold-500); font-weight: 500; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-body);
  line-height: 1;
  padding: 14px 28px;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}
.btn:focus-visible { outline: 2px solid var(--wls-gold-400); outline-offset: 2px; }
.btn--primary { background: var(--wls-gold-500); color: var(--wls-petrol-900); }
.btn--primary:hover { background: var(--wls-gold-400); color: var(--wls-petrol-900); }
.btn--secondary { border-color: var(--wls-gold-500); color: var(--wls-gold-500); background: transparent; }
.btn--secondary:hover { border-color: var(--wls-gold-400); color: var(--wls-gold-400); }
.btn--secondary-light { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn--secondary-light:hover { border-color: var(--wls-shu-500); color: var(--wls-shu-500); }
.btn__arrow { font-family: var(--font-mono); font-weight: 400; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s4); }

/* Place band */

.place-band { width: 100%; max-width: 1600px; margin: 0 auto; }
.place-band svg { width: 100%; height: auto; fill: none; stroke-width: 1.25; stroke-linejoin: round; stroke-linecap: round; }
.place-band--dark svg { stroke: var(--wls-petrol-400); opacity: .35; }
.place-band--light svg { stroke: var(--wls-mineral-300); }
.place-band__reveal { animation: band-wipe 1800ms var(--ease) both; }
@keyframes band-wipe {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* Hero */

.hero { background: var(--surface-inverse); color: var(--text-inverse); overflow: hidden; }
.hero__inner { padding-top: var(--s9); padding-bottom: var(--s7); }
.hero .display { color: var(--wls-gold-500); max-width: 20ch; }
.hero__sub {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.2;
  color: var(--wls-gold-400);
  margin: var(--s5) 0 var(--s6);
  max-width: 32ch;
}
.hero__lead { color: var(--text-inverse); }

/* Facts */

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s5); }
.fact { border-top: var(--hairline) solid var(--rule); padding-top: var(--s4); }
.fact__label {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s2);
}
.fact__value { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.012em; }
.fact__value a { color: inherit; text-decoration: underline; text-decoration-color: var(--wls-gold-600); text-underline-offset: 3px; }
.fact__value a:hover { color: var(--accent); }
.fact__figure { width: 100%; margin-top: var(--s4); display: block; }
.fact__caption { font-family: var(--font-mono); font-size: 11px; line-height: 1.5; color: var(--text-muted); margin-top: var(--s2); }

/* Pillars */

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s5); }
.pillar { background: var(--wls-petrol-600); border-top: var(--hairline) solid var(--wls-gold-500); padding: var(--s6); }
.pillar h3 { margin-bottom: var(--s3); }

/* Locations */

.locations { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s6); }
.location { border-top: var(--hairline) solid var(--rule); padding-top: var(--s5); }
.location img { width: 100%; height: 280px; object-fit: cover; margin-bottom: var(--s5); }
.location__meta {
  font-family: var(--font-mono);
  font-size: var(--fs-time);
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: var(--s3);
}
.location__name { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.012em; }
.location__name a { color: inherit; text-decoration: underline; text-decoration-color: var(--wls-gold-600); text-underline-offset: 3px; }
.location__name a:hover { color: var(--accent); }

/* Programme time rail */

.day { margin-bottom: var(--s9); }
.day:last-child { margin-bottom: 0; }
.day__head { border-top: 2px solid var(--wls-gold-600); padding-top: var(--s4); margin-bottom: var(--s6); }
.day__date {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s3);
}
.day__venue { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--text-muted); margin-top: var(--s2); }

.rail { display: flex; flex-direction: column; }
.row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--s5);
  border-top: var(--hairline) solid var(--rule);
  padding: 20px 0;
}
.row__time {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-time);
  font-variant-numeric: tabular-nums;
  color: var(--wls-gold-600);
  padding-left: var(--s3);
}
.row--jp .row__time { border-left: 3px solid var(--wls-shu-500); }
.row__title { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; line-height: 1.3; }
.row__title a { color: inherit; text-decoration: underline; text-decoration-color: var(--wls-gold-600); text-underline-offset: 3px; }
.row__title a:hover { color: var(--accent); }
.row__note { margin-top: var(--s2); color: var(--text-muted); }

.speakers { margin-top: var(--s4); display: flex; flex-direction: column; gap: var(--s3); }
.speaker-line { max-width: 74ch; }
.speaker-line__name { font-weight: 600; }
.speaker-line__aff { font-style: italic; color: var(--text-muted); }
.speaker-line__talk { font-family: var(--font-display); }
.tbc { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--text-muted); }

/* Speaker cards */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s7) var(--s6); }
.card { border-top: var(--hairline) solid var(--rule); padding-top: var(--s5); }
.card__portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 25%;
  background: var(--wls-mineral-100);
  margin-bottom: var(--s5);
}
.card__rule { width: 40px; height: 2px; background: var(--wls-gold-600); margin-bottom: var(--s4); }
.card__name { font-family: var(--font-body); font-weight: 600; font-size: var(--fs-h3); line-height: 1.3; }
.card__aff { font-style: italic; color: var(--text-muted); margin: var(--s1) 0 var(--s3); }
.card__talk { font-family: var(--font-display); margin-bottom: var(--s3); }

/* Stats */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s5); }
.stat { border-top: var(--hairline) solid var(--rule-inverse); padding-top: var(--s4); }
.stat__value { font-family: var(--font-display); font-weight: 700; font-size: 2.5rem; line-height: 1; color: var(--wls-gold-500); margin-bottom: var(--s3); }

/* Notice */

.notice {
  border: var(--hairline) solid var(--rule);
  border-top: 2px solid var(--wls-gold-600);
  background: var(--surface-raised);
  padding: var(--s8) var(--s6);
  text-align: center;
}
.notice p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: 1.2;
  max-width: 32ch;
  margin: 0 auto;
}

/* Footer */

.footer { background: var(--surface-inverse-deep); color: var(--text-inverse); padding: var(--s8) 0 var(--s6); }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s6); }
.footer__label {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--wls-gold-500);
  margin-bottom: var(--s3);
}
.footer__list { font-size: var(--fs-small); line-height: 1.9; color: var(--text-inverse-muted); }
.footer a { color: var(--wls-gold-500); }
.footer a:hover { color: var(--wls-gold-400); }
.footer__edition {
  margin-top: var(--s7);
  padding-top: var(--s4);
  border-top: var(--hairline) solid var(--rule-inverse);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: .06em;
  color: var(--text-inverse-muted);
}

/* Responsive */

@media (max-width: 1023px) {
  .brand__rule, .brand__lockup { display: none; }
  .brand__mark { width: 40px; height: 32px; }
}

@media (max-width: 900px) {
  .band { padding: var(--s8) 0; }
  .split { display: flex; flex-direction: column; gap: var(--s7); }
  .split__narrative, .split__structure { max-width: none; }
  .row { grid-template-columns: 1fr; gap: var(--s2); }
  .row__time { padding-left: 0; }
  .row--jp .row__time { border-left: 0; padding-left: var(--s3); box-shadow: inset 3px 0 0 var(--wls-shu-500); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand { transition: none; }
  .place-band__reveal { animation: none; }
}

/* Partner logos */

.band--logos { background: #FFFFFF; }

.logo-marquee {
  margin-top: var(--s6);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.logo-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: logo-scroll 50s linear infinite;
}
.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }

.logo-marquee__item {
  flex: none;
  height: 64px;
  margin-right: var(--s8);
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-marquee__item img { max-height: 100%; width: auto; object-fit: contain; }

@keyframes logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee { overflow-x: auto; }
  .logo-marquee__track { animation: none; }
}
