/* Layout: "two sides of the debate" — split halves (light | navy) carry each argument; one grid, square media. */
:root {
  /* Light-only on purpose: every logo is a white-background JPG that must stay unaltered. */
  color-scheme: light;
  --paper: #ffffff;
  --ink: #0c1a2e;
  --navy: #15366f;     /* logo's dark crescent */
  --blue: #1f6fc0;     /* logo's bright blue, darkened for AA on white; actions only */
  --sky: #9ccdf5;      /* accent on navy fields */
  --field: #edf2f8;    /* tone step, blue-biased neutral */
  --muted: #4a5b73;

  --font: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --t-hero: clamp(3rem, 8.2vw, 8.25rem);
  --t-h2: clamp(2.25rem, 4.6vw, 4.5rem);
  --t-h3: clamp(1.375rem, 1.8vw, 1.75rem);
  --t-statement: clamp(1.25rem, 2.1vw, 2rem);
  --t-body: 1.125rem;

  --gutter: max(16px, min(3vw, 32px));
  --section: clamp(72px, 9vw, 144px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 96px); }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: rgb(31 111 192 / .15); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--font);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  margin: 0;
  font-stretch: 72%;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: .98;
  text-wrap: balance;
}
h1 { font-size: var(--t-hero); letter-spacing: -0.035em; line-height: .92; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.1; letter-spacing: -0.01em; }
p { margin: 0; max-width: 68ch; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
address { font-style: normal; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sel { user-select: all; }
.statement { font-size: var(--t-statement); line-height: 1.3; letter-spacing: -0.01em; max-width: 34ch; }

.wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* Skip link */
.skip { position: absolute; left: 16px; top: -100px; z-index: 50; background: var(--ink); color: var(--paper); padding: 12px 16px; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); color: var(--paper); }

/* Pitch notice above the header */
.concept-bar { margin: 0; max-width: none; background: var(--ink); color: #fff; font-size: .9375rem; font-weight: 500; padding-block: 8px; }
.concept-bar .wrap { display: block; }

/* Header: plain white bar so the logo JPG sits on its own white */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); }
.bar-in {
  max-width: 1440px; margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  padding-block: 14px;
  display: flex; align-items: center; gap: 32px;
}
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; padding-block: 6px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; font-weight: 600; padding: 10px 16px;
  background: var(--field); color: var(--ink);
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--paper); }
.menu nav {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(80vw, 300px);
  background: var(--paper); padding: 8px; display: grid;
  box-shadow: 0 12px 32px rgb(12 26 46 / .18); /* floats over content */
}
.menu nav a { padding: 12px 14px; color: var(--ink); text-decoration: none; font-size: 1.125rem; }
.menu nav a:hover { background: var(--field); }

/* Buttons: square, flat, one fill */
.btn {
  display: inline-block; background: var(--blue); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 1.0625rem; padding: 16px 26px; border: 0; cursor: pointer; font-family: inherit;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-small { padding: 11px 18px; font-size: .9375rem; }
.btn-ghost { background: var(--field); color: var(--ink); padding: 10px 16px; font-size: .9375rem; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.text-link { font-weight: 600; text-decoration-thickness: 2px; transition: color .2s var(--ease); }
.text-link::after { content: " →"; display: inline-block; transition: transform .2s var(--ease); }
.text-link:hover::after { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* Hero: text side | photo side, photo runs to the right edge */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch; }
.hero-text {
  display: grid; align-content: center; gap: 32px;
  padding-block: clamp(48px, 8vw, 120px);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px), calc((100vw - 1440px) / 2 + var(--gutter)));
  padding-right: clamp(24px, 4vw, 64px);
}
.hero-media { overflow: hidden; min-height: 520px; background: var(--navy); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: drift 16s var(--ease) both; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Facts band */
.facts { background: var(--navy); color: #fff; }
.facts-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 40px; }
.facts p { font-size: 1rem; line-height: 1.35; color: #fff; }
.facts strong { display: block; font-size: clamp(2.5rem, 4vw, 3.75rem); font-stretch: 72%; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--sky); margin-bottom: 6px; font-variant-numeric: tabular-nums; }

/* Split: the two sides */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.side { display: grid; align-content: start; gap: 24px; padding-block: var(--section); padding-inline: clamp(16px, 5vw, 96px); }
.side-light { background: var(--paper); }
.side-field { background: var(--field); }
.side-navy { background: var(--navy); color: #fff; }
.split .side { align-content: center; }
.side-navy p { color: #fff; }
.side-navy a, .band-navy a:not(.btn) { color: var(--sky); }
.side-navy a:hover, .band-navy a:not(.btn):hover { color: #fff; }
.side-navy :focus-visible, .band-navy :focus-visible { outline-color: var(--sky); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); padding-block: var(--section); align-items: center; }
.about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-text { display: grid; gap: 22px; }

/* Bands */
.band-navy { background: var(--navy); color: #fff; padding-block: var(--section); }
.band-navy p { color: #fff; }
.band-field { background: var(--field); padding-block: var(--section); }
.services .wrap { display: grid; gap: 40px; }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; }
.svc-list li { font-size: clamp(1.25rem, 1.7vw, 1.625rem); font-stretch: 85%; font-weight: 600; line-height: 1.2; }
.svc-list-light li { background: var(--field); padding: 22px 24px; }
.svc-list-light { gap: 4px; }

/* Destinations */
.dest-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 112px); }
.dest-in > div { display: grid; gap: 24px; align-content: start; }
.big-figure { font-size: 1.125rem; }
.big-figure strong { display: block; font-size: clamp(4rem, 9vw, 8.5rem); font-stretch: 68%; font-weight: 800; letter-spacing: -0.04em; line-height: .9; color: var(--navy); margin-bottom: 8px; }
.criteria { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.criteria li { background: var(--paper); padding: 16px 20px; font-weight: 600; font-size: 1.125rem; }
.criteria-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 960px; }
.criteria-wide li { background: var(--field); }
.cities-title { margin-top: clamp(56px, 7vw, 96px); margin-bottom: 20px; }
.cities { display: flex; flex-wrap: wrap; gap: 4px 22px; max-width: none; font-size: clamp(1.5rem, 3vw, 2.75rem); font-stretch: 70%; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; color: var(--navy); }

/* Congresses */
.congresses { padding-block: var(--section); display: grid; gap: 48px; }
.congresses > div:first-child { display: grid; gap: 20px; }
.upcoming { background: var(--navy); color: #fff; padding: clamp(24px, 3vw, 40px); display: grid; gap: 10px; max-width: 760px; }
.upcoming p { color: #fff; }
.upcoming { max-width: 960px; gap: 20px; }
.upcoming :focus-visible { outline-color: var(--sky); }
.up-item { display: grid; gap: 16px; }
.up-when strong { display: block; font-size: clamp(2rem, 4vw, 3.25rem); font-stretch: 70%; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--sky); }
.up-when { font-size: 1.25rem; font-weight: 600; }
.up-name { font-size: 1.125rem; }
.up-next { color: var(--sky) !important; font-weight: 600; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sky); color: var(--ink); }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 16px; align-items: center; justify-items: center; }
.logos img { width: 120px; height: auto; transition: transform .25s var(--ease); }
.logos a:hover img { transform: translateY(-4px); }
.archive-title { margin-top: 16px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  font: 600 1rem/1 var(--font); padding: 12px 16px; border: 0; cursor: pointer;
  background: var(--field); color: var(--ink); transition: background-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.filters button span { font-weight: 400; color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; }
.filters button:hover { background: #dce6f2; }
.filters button:active { transform: scale(.97); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.filters button[aria-pressed="true"] span { color: var(--sky); }
.archive-count { font-size: 1rem; color: var(--muted); }
.archive { list-style: none; margin: 0; padding: 0; }
.archive li {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 260px) auto; gap: 8px 32px; align-items: baseline;
  padding: 20px 16px;
}
.archive li:nth-child(odd of :not([hidden])) { background: var(--field); }
.a-year { font-size: 2rem; font-stretch: 70%; font-weight: 800; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.a-name { font-weight: 600; line-height: 1.35; }
.a-where { font-size: 1rem; line-height: 1.4; }
.a-link { font-size: .9375rem; font-weight: 600; white-space: nowrap; }

/* Gallery */
.gallery .wrap { display: grid; gap: 40px; }
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 16vw, 250px); gap: 8px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic img:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic img:nth-child(4) { grid-column: span 2; }

/* Contact */
.contact-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.contact-address { font-size: var(--t-statement); line-height: 1.3; }
.email-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 8px; }
.big-email { font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 600; }
.copy-status { font-size: .9375rem; }
.band-navy .btn-ghost { background: #fff; color: var(--ink); }
.band-navy .btn-ghost:hover { background: var(--sky); }

/* Footer */
.foot { background: var(--ink); color: #dbe5f1; padding-top: 72px; }
.foot p, .foot address { color: #dbe5f1; font-size: 1rem; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 40px; }
.foot-in > div { display: grid; gap: 12px; align-content: start; }
.foot-name { font-size: 1.5rem !important; font-stretch: 72%; font-weight: 800; color: #fff !important; }
.foot nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; align-content: start; }
.foot a { color: #fff; text-decoration: none; font-size: 1rem; }
.foot a:hover { color: var(--sky); text-decoration: underline; }
.foot :focus-visible { outline-color: var(--sky); }
.social { display: flex; gap: 20px; }
.foot .social { display: grid; gap: 8px; }
.foot-legal { padding-block: 48px 32px; font-size: .9375rem !important; color: #9fb0c6 !important; max-width: none; }

/* Subpages */
.page-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--paper); }
.page-head.no-media { grid-template-columns: minmax(0, 1fr); }
.page-head-text {
  display: grid; gap: 28px; align-content: center;
  padding-block: clamp(48px, 7vw, 112px);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px), calc((100vw - 1440px) / 2 + var(--gutter)));
  padding-right: clamp(24px, 4vw, 64px);
}
.page-head h1 { font-size: clamp(2.75rem, 6.4vw, 6.5rem); }
.page-head-media { overflow: hidden; min-height: 380px; background: var(--navy); }
.page-head-media img { width: 100%; height: 100%; object-fit: cover; animation: drift 16s var(--ease) both; }
.subnav { display: flex; flex-wrap: wrap; gap: 4px; padding-block: 24px 0; }
.subnav a { padding: 12px 16px; background: var(--field); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; transition: background-color .2s var(--ease); }
.subnav a:hover { background: #dce6f2; }
.subnav a[aria-current="page"] { background: var(--navy); color: #fff; }
.page-body { display: grid; gap: 40px; padding-block: clamp(56px, 7vw, 112px) var(--section); }
.prose { display: grid; gap: 20px; }
.prose h2 { font-size: clamp(1.75rem, 2.6vw, 2.5rem); margin-top: 28px; }
.page-body > h2 { font-size: clamp(1.75rem, 2.6vw, 2.5rem); }
.with-toc { display: grid; grid-template-columns: minmax(0, 68ch) minmax(0, 340px); justify-content: space-between; gap: clamp(40px, 6vw, 120px); }
.with-toc .prose { order: -1; }
.prose h2[id] { scroll-margin-top: 100px; }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 100px); align-self: start; background: var(--navy); padding: 28px; display: grid; gap: 12px; }
.toc p { color: var(--sky); font-weight: 600; font-size: 1rem; }
.toc a { color: #fff; text-decoration: none; font-weight: 600; line-height: 1.3; }
.toc a:hover { color: var(--sky); text-decoration: underline; }
.toc :focus-visible { outline-color: var(--sky); }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gallery-grid a { display: block; overflow: hidden; }
.gallery-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.04); }
.contact-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.contact-page .contact-address { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; font-stretch: 85%; }

/* Entrance motion: only for content below the first screen, and only when main.js runs */
.js [data-reveal] > * { transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].pending > * { opacity: 0; transform: translateY(24px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal].pending > * { opacity: 1; transform: none; }
}

/* Touch: every target at least 44px tall */
@media (pointer: coarse) {
  .filters button, .subnav a, .btn-small, .btn-ghost, .foot a, .toc a, .a-link, .menu summary { min-height: 44px; display: inline-flex; align-items: center; }
  .foot nav { gap: 0 32px; }
}

/* Tablet */
@media (max-width: 1080px) {
  .nav, .bar-cta { display: none; }
  .menu { display: block; }
  .svc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive li { grid-template-columns: 80px minmax(0, 1fr); }
  .a-where, .a-link { grid-column: 2; }
  .contact-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .contact-in h2 { grid-column: 1 / -1; }
  .foot-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Phone: its own composition, one column */
@media (max-width: 760px) {
  .brand img { height: 36px; }
  .hero, .split, .about, .dest-in, .page-head, .contact-in, .contact-page, .with-toc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; order: -2; }
  .hero-text, .page-head-text { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 40px; }
  .hero-media { min-height: 0; aspect-ratio: 4 / 3; }
  .page-head-media { min-height: 0; aspect-ratio: 16 / 9; }
  .side { padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
  .facts-in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .svc-list, .criteria-wide { grid-template-columns: minmax(0, 1fr); }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 140px; }
  .mosaic img:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .mosaic img:nth-child(4) { grid-column: span 2; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive li { grid-template-columns: minmax(0, 1fr); padding: 18px 12px; }
  .a-where, .a-link { grid-column: 1; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
}
