/* CSS Eurasia — redesign v2
   Built on the original identity: Prata for headings, Spectral for text,
   white paper, deep ink, navy from the globe. Made larger, denser in
   content and easier to use. */

:root {
  --paper: #ffffff;
  --paper-soft: #faf9f6;
  --paper-warm: #f3f1ec;
  --ink: #10151e;
  --ink-2: #454b57;
  --ink-3: #636975;
  --line: #e6e2da;
  --line-strong: #d3cdc2;
  --deep: #10151e;
  --deep-2: #1a2130;
  --on-deep: #f2f0eb;
  --on-deep-2: #aeb4bf;
  --accent: #1e3b8a;
  --accent-hover: #162d6d;
  --accent-soft: #e8ecf6;
  --accent-light: #a8bcf0;
  --danger: #b42318;
  --white: #ffffff;
  --scrim: rgba(12, 16, 24, 0.5);

  --display: "Prata", Georgia, serif;
  --text: "Spectral", Georgia, serif;

  --fs-small: 0.9375rem;
  --fs-body: 1.125rem;
  --fs-lead: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-h3: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  --fs-h2: clamp(2rem, 1.4rem + 1.9vw, 3.25rem);
  --fs-h1: clamp(2.75rem, 1.5rem + 4vw, 5.5rem);

  --radius: 0.375rem;
  --margin: clamp(1.25rem, 0.5rem + 3vw, 3.5rem);
  --max: 85rem;
  --gap: clamp(1.25rem, 0.8rem + 1.4vw, 2.25rem);
  --section: clamp(4.5rem, 3rem + 5vw, 8rem);
  --header-h: 4.75rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
/* One scale for every screen: 16px on 13–15" laptops, growing smoothly on 24–32" monitors
   (about 18px at 1920, 22px at 2560 and 28px at 3840) so the layout keeps its proportions. */
@media (min-width: 1600px) { html { font-size: clamp(100%, 0.55rem + 0.5vw, 175%); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-size: var(--fs-body); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.12; letter-spacing: -0.005em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.on-deep :focus-visible, .header--over:not(.is-solid) :focus-visible { outline-color: var(--accent-light); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -80px; z-index: 100; padding: 0.625rem 1rem; background: var(--ink); color: var(--white); border-radius: var(--radius); }
.skip:focus { top: 0.75rem; }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--margin)); margin-inline: auto; padding-inline: var(--margin); }
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.section--soft { background: var(--paper-soft); }
.section--deep { background: var(--deep); color: var(--on-deep); }
.section--soft + .section, .section + .section--soft, .section--deep + .section, .section + .section--deep { padding-top: var(--section); }

/* ---------- Type helpers ---------- */
.h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.012em; }
.h2 { font-size: var(--fs-h2); line-height: 1.08; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); }
.on-deep .lead { color: var(--on-deep-2); }
.meta { font-size: var(--fs-small); line-height: 1.45; color: var(--ink-3); }
.on-deep .meta { color: var(--on-deep-2); }
.kind { color: var(--accent); font-weight: 600; }
.on-deep .kind { color: var(--accent-light); }
.num { font-variant-numeric: lining-nums tabular-nums; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem;
  min-height: 3rem; padding: 0 1.375rem; border: 1px solid transparent; border-radius: 0.25rem;
  background: var(--accent); color: var(--white); font-size: 1rem; font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms, transform 120ms var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.125rem; height: 1.125rem; transition: transform 220ms var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--paper-soft); border-color: var(--ink-3); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--paper-warm); }
.btn--line-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn--line-white:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.more { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--accent); font-weight: 600; text-decoration: none; }
.more svg { width: 1.125rem; height: 1.125rem; transition: transform 220ms var(--ease); }
.more:hover { text-decoration: underline; }
.more:hover svg { transform: translateX(3px); }
.on-deep .more { color: var(--white); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); transition: background-color 240ms, border-color 240ms, color 240ms; }
.header__in { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }
.logo { display: block; flex: none; }
.logo img { width: 10.75rem; height: auto; }
.logo .logo-light { display: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 0.375rem; height: 2.75rem; padding: 0 0.75rem;
  font-size: 1.0625rem; font-weight: 600; text-decoration: none; border-radius: 0.25rem; background: none; border: 0; cursor: pointer; color: inherit;
  transition: background-color 160ms, color 160ms;
}
.nav__link:hover, .nav__item:focus-within > .nav__link { background: var(--paper-soft); }
.nav__link[aria-current="page"] { color: var(--accent); }
.nav__link svg { width: 0.875rem; height: 0.875rem; transition: transform 200ms var(--ease); }
.nav__item:hover > .nav__link svg, .nav__item:focus-within > .nav__link svg { transform: rotate(180deg); }
.menu {
  position: absolute; top: calc(100% + 0.5rem); left: 0; min-width: 16.875rem; padding: 0.5rem;
  background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 0.5rem; box-shadow: 0 1.125rem 2.5rem -18px rgba(16,21,30,0.3);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 160ms, transform 200ms var(--ease), visibility 0s 200ms;
}
.menu::before { content: ""; position: absolute; inset: -12px 0 auto 0; height: 0.75rem; }
.nav__item:hover > .menu, .nav__item:focus-within > .menu { opacity: 1; visibility: visible; transform: none; transition: opacity 160ms, transform 200ms var(--ease); }
.menu a { display: block; padding: 0.625rem 0.75rem; border-radius: 0.25rem; text-decoration: none; font-size: 1.0625rem; line-height: 1.3; }
.menu a:hover { background: var(--paper-soft); color: var(--accent); }
.menu a small { display: block; color: var(--ink-3); font-size: 0.9375rem; margin-top: 2px; }
.header__tools { display: flex; align-items: center; gap: 2px; margin-left: 0.5rem; }
.icon-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 0.25rem; background: none; border: 0; cursor: pointer; color: inherit; text-decoration: none; transition: background-color 160ms; }
.icon-btn:hover { background: var(--paper-soft); }
.icon-btn svg { width: 1.25rem; height: 1.25rem; }
.lang { font-size: 1rem; font-weight: 600; padding: 0 0.625rem; height: 2.75rem; display: inline-flex; align-items: center; text-decoration: none; border-radius: 0.25rem; }
.lang:hover { background: var(--paper-soft); }
.header .btn { margin-left: 0.5rem; min-height: 2.125rem; padding: 0 0.875rem; font-size: 0.875rem; }
.burger { display: none; }

.header--over { position: fixed; inset: 0 0 auto 0; background: transparent; border-color: transparent; color: var(--white); }
.header--over .logo .logo-dark { display: none; }
.header--over .logo .logo-light { display: block; }
.header--over .nav__link:hover, .header--over .nav__item:focus-within > .nav__link, .header--over .icon-btn:hover, .header--over .lang:hover { background: rgba(255,255,255,0.14); }
.header--over .nav__link[aria-current="page"] { color: var(--white); }
.header--over .btn { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.header--over .btn:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.header--over.is-solid { background: var(--paper); border-color: var(--line); color: var(--ink); }
.header--over.is-solid .logo .logo-dark { display: block; }
.header--over.is-solid .logo .logo-light { display: none; }
.header--over.is-solid .nav__link:hover, .header--over.is-solid .icon-btn:hover, .header--over.is-solid .lang:hover, .header--over.is-solid .nav__item:focus-within > .nav__link { background: var(--paper-soft); }
.header--over.is-solid .btn { background: var(--accent); color: var(--white); }

@media (max-width: 1140px) {
  .nav, .header__tools .lang, .header .btn--desk { display: none; }
  .burger { display: inline-grid; }
  .header__tools { margin-left: auto; }
}
.drawer { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--paper); color: var(--ink); overflow-y: auto; padding: 0.5rem var(--margin) 2.5rem; display: none; }
.drawer.is-open { display: block; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary, .drawer > a { display: flex; justify-content: space-between; align-items: center; min-height: 4rem; font-family: var(--display); font-size: 1.625rem; list-style: none; cursor: pointer; text-decoration: none; }
.drawer > a { border-bottom: 1px solid var(--line); }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary svg { width: 1.125rem; height: 1.125rem; transition: transform 200ms; }
.drawer details[open] summary svg { transform: rotate(180deg); }
.drawer details a { display: block; padding: 0.625rem 0; text-decoration: none; color: var(--ink-2); font-size: 1.125rem; }
.drawer details ul { padding-bottom: 0.875rem; }
.drawer .btn { margin-top: 1.75rem; width: 100%; }
body.menu-open { overflow: hidden; }
body.menu-open .header--over { background: var(--paper); color: var(--ink); }
body.menu-open .header--over .logo .logo-dark { display: block; }
body.menu-open .header--over .logo .logo-light { display: none; }

/* ---------- Home hero (video kept) ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; color: var(--white); background: var(--deep); overflow: hidden; text-align: center; }
.hero video, .hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: var(--scrim); }
.hero__in { position: relative; z-index: 2; max-width: 70rem; padding: calc(var(--header-h) + 2.5rem) var(--margin) 7.5rem; }
.hero h1 { font-size: clamp(1.75rem, 3.8vw, 3.25rem); line-height: 1.08; letter-spacing: -0.015em; max-width: 22ch; margin-inline: auto; }
.hero p { margin: 1.25rem auto 0; max-width: 44ch; font-size: clamp(0.9375rem, 0.85rem + 0.3vw, 1.125rem); line-height: 1.55; color: #e7e9ee; }
.hero__actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 2.5rem; }
.hero__toggle { position: absolute; z-index: 3; right: var(--margin); bottom: 1.75rem; display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 1px solid rgba(255,255,255,0.4); border-radius: 0.25rem; background: rgba(12,16,24,0.3); color: var(--white); cursor: pointer; }
.hero__toggle:hover { border-color: var(--white); }
.hero__toggle svg { width: 0.875rem; height: 0.875rem; }
.hero__down { position: absolute; z-index: 3; left: 50%; bottom: 1.5rem; transform: translateX(-50%); width: 2.75rem; height: 2.75rem; display: grid; place-items: center; color: var(--white); border-radius: 50%; }
.hero__down svg { width: 1.375rem; height: 1.375rem; animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(0.375rem); } }
@media (max-width: 640px) { .hero__toggle { left: var(--margin); right: auto; } .hero__down { display: none; } }

/* ---------- Section heads ---------- */
.s-head { display: flex; align-items: end; justify-content: space-between; gap: 1.25rem 3rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.s-head > div { max-width: 47.5rem; }
.s-head p { margin-top: 0.875rem; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.45; }
.on-deep .s-head p { color: var(--on-deep-2); }

/* ---------- Story (shared) ---------- */
.story { display: block; text-decoration: none; color: inherit; }
.story__img { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper-warm); aspect-ratio: 3 / 2; }
.story__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.story:hover .story__img img { transform: scale(1.035); }
.story__body { padding-top: 1rem; }
.story .meta { display: flex; flex-wrap: wrap; gap: 2px 0.625rem; }
.story h3 { margin-top: 0.5rem; font-size: 1.375rem; line-height: 1.25; transition: color 160ms; }
.story:hover h3 { color: var(--accent); }
.story .sum { margin-top: 0.625rem; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Home: latest */
.latest { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.latest__lead { grid-column: 1 / span 7; }
.latest__lead .story__img { aspect-ratio: 16 / 10; }
.latest__lead h3 { font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.375rem); line-height: 1.15; }
.latest__lead .sum { font-size: 1.125rem; -webkit-line-clamp: 4; }
.latest__side { grid-column: 8 / span 5; display: grid; gap: var(--gap); align-content: start; }
.latest__side .story { display: grid; grid-template-columns: 40% 1fr; gap: 1.125rem; align-items: start; }
.latest__side .story__body { padding-top: 0; }
.latest__side h3 { font-size: 1.1875rem; margin-top: 0.375rem; }
.latest__list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); padding-top: var(--gap); border-top: 1px solid var(--line); margin-top: 0.5rem; }
.latest__list h3 { font-size: 1.125rem; }
@media (max-width: 1000px) {
  .latest__lead, .latest__side { grid-column: 1 / -1; }
  .latest__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) { .latest__side .story { grid-template-columns: 1fr; } .latest__list { grid-template-columns: 1fr; } }

/* Home: ways in */
.ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.way { display: flex; flex-direction: column; text-decoration: none; }
.way__img { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; background: var(--paper-warm); }
.way__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease); }
.way:hover .way__img img { transform: scale(1.04); }
.way h3 { margin-top: 1.25rem; font-size: 1.75rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; transition: color 160ms; }
.way h3 svg { width: 1.375rem; height: 1.375rem; flex: none; color: var(--accent); transition: transform 220ms var(--ease); }
.way:hover h3 { color: var(--accent); }
.way:hover h3 svg { transform: translateX(0.25rem); }
.way p { margin-top: 0.625rem; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.55; }
@media (max-width: 1000px) { .ways { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ways { grid-template-columns: 1fr; } .way__img { aspect-ratio: 16 / 10; } }

/* Home: by region (tabs) */
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.25rem; }
.tab { min-height: 2.75rem; padding: 0 1.125rem; border: 1px solid var(--line-strong); border-radius: 62.4375rem; background: var(--white); font-size: 1.0625rem; cursor: pointer; transition: background-color 160ms, border-color 160ms, color 160ms; }
.tab:hover { border-color: var(--ink-3); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.region-panel { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.region-panel__intro { grid-column: 1 / span 4; }
.region-panel__intro h3 { font-size: clamp(1.875rem, 1.4rem + 1.4vw, 2.75rem); line-height: 1.1; }
.region-panel__intro p { margin-top: 1rem; color: var(--ink-2); }
.region-panel__intro .more { margin-top: 1.5rem; }
.region-panel__stories { grid-column: 5 / span 8; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.region-panel__stories h3 { font-size: 1.1875rem; }
@media (max-width: 1000px) { .region-panel__intro, .region-panel__stories { grid-column: 1 / -1; } }
@media (max-width: 700px) {
  .region-panel__stories { grid-template-columns: 1fr; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin); scrollbar-width: none; }
  .tab { flex: none; }
}

/* Home: advisory band */
.band { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: center; }
.band__img { grid-column: 1 / span 6; margin: 0; border-radius: var(--radius); overflow: hidden; }
.band__img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.band__text { grid-column: 8 / span 5; }
.band__text > p { margin-top: 1.25rem; color: var(--on-deep-2); }
.band__list { margin-top: 1.75rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.band__list a { display: block; padding: 0.75rem 0; border-top: 1px solid rgba(255,255,255,0.14); text-decoration: none; font-family: var(--display); font-size: 1.125rem; line-height: 1.3; transition: color 160ms; }
.band__list a:hover { color: var(--accent-light); }
.band__text .btn { margin-top: 2rem; }
@media (max-width: 1000px) { .band__img, .band__text { grid-column: 1 / -1; } }
@media (max-width: 520px) { .band__list { grid-template-columns: 1fr; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-block: clamp(2.25rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5.5rem); background: var(--paper-soft); }
.page-head__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; font-size: var(--fs-small); color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.page-head__text { grid-column: 1 / span 6; }
.page-head__text .lead { margin-top: 1.5rem; max-width: 36ch; }
.page-head__img { grid-column: 7 / span 6; margin: 0; border-radius: var(--radius); overflow: hidden; }
.page-head__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
@media (max-width: 900px) {
  .page-head__text, .page-head__img { grid-column: 1 / -1; }
  .page-head__img { order: 2; }
}

/* ---------- Research index ---------- */
.filters { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: 0.75rem; align-items: end; padding: 1.25rem; background: var(--paper-soft); border-radius: 0.5rem; }
.field { display: flex; flex-direction: column; gap: 0.375rem; font-size: 0.9375rem; color: var(--ink-2); min-width: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; min-height: 3rem; padding: 0 0.875rem; border: 1px solid var(--line-strong); border-radius: 0.25rem; background-color: var(--white); color: var(--ink); font-size: 1rem;
  transition: border-color 160ms, box-shadow 160ms; appearance: none; -webkit-appearance: none;
}
.field select { padding-right: 2.5rem; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2310151e' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.875rem center; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field--search input { padding-left: 2.625rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' fill='none' stroke='%23636975' stroke-width='1.6'/%3E%3Cpath d='M16.5 16.5L21 21' stroke='%23636975' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 0.875rem center; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1.75rem 0 0.75rem; }
.results-bar p { color: var(--ink-2); }
.results-bar b { color: var(--ink); font-weight: 600; }
.reset { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 1rem; }
@media (max-width: 900px) { .filters { grid-template-columns: 1fr 1fr; } .field--search { grid-column: 1 / -1; } }
@media (max-width: 480px) { .filters { grid-template-columns: 1fr; padding: 1rem; } }

.rows { border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); }
.row a { display: grid; grid-template-columns: 8.75rem minmax(0, 1fr) 15rem; gap: var(--gap); padding: 1.75rem 0; text-decoration: none; align-items: start; }
.row .row__date { padding-top: 0.25rem; }
.row h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.625rem); line-height: 1.22; max-width: 40ch; transition: color 160ms; }
.row a:hover h3 { color: var(--accent); }
.row .sum { max-width: 68ch; margin-top: 0.625rem; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row .under { margin-top: 0.75rem; }
.row figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--paper-warm); }
.row figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.row a:hover figure img { transform: scale(1.04); }
@media (max-width: 900px) { .row a { grid-template-columns: minmax(0, 1fr) 11.25rem; } .row .row__date { display: none; } }
@media (max-width: 560px) { .row a { grid-template-columns: 1fr; gap: 0.875rem; } .row figure { order: -1; } }
.empty { padding: 4rem 0; }
.empty h3 { font-size: var(--fs-h3); }
.empty p { margin-top: 0.625rem; color: var(--ink-2); }
.load { display: flex; justify-content: center; margin-top: 2.5rem; }

/* ---------- Article ---------- */
.a-head { padding-block: clamp(2.25rem, 5vw, 4.5rem) 0; }
.a-head__in { max-width: 58.75rem; }
.a-head .kindline { display: flex; flex-wrap: wrap; gap: 0.375rem 0.75rem; font-size: 1.0625rem; }
.a-head h1 { margin-top: 1.125rem; font-size: clamp(2.125rem, 1.4rem + 2.4vw, 3.5rem); line-height: 1.12; }
.a-head .lead { margin-top: 1.5rem; max-width: 62ch; }
.a-meta { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 1.0625rem; }
.a-meta dt { color: var(--ink-3); font-size: 0.9375rem; }
.a-meta dd { margin: 2px 0 0; }
.a-meta a { color: var(--ink); }
.a-meta a:hover { color: var(--accent); }
.a-cover { margin: clamp(2rem, 4vw, 3.5rem) 0 0; }
.a-cover img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius); }
.a-cover figcaption { margin-top: 0.625rem; }
.a-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); padding-block: clamp(2.5rem, 5vw, 4.5rem) var(--section); }
.prose { grid-column: 1 / span 7; font-size: 1.1875rem; line-height: 1.72; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.625rem, 1.35rem + 0.9vw, 2.125rem); line-height: 1.18; margin-top: 2em; }
.prose h3 { font-size: 1.375rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); text-decoration-color: rgba(30,59,138,0.35); }
.prose a:hover { text-decoration-color: currentColor; }
.prose blockquote { margin: 1.6em 0; font-family: var(--display); font-size: 1.5rem; line-height: 1.35; color: var(--accent); }
.a-aside { grid-column: 9 / span 4; }
.a-aside .sticky { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.25rem; }
.box { background: var(--paper-soft); border-radius: 0.5rem; padding: 1.5rem; }
.box h2 { font-size: 1.375rem; margin-bottom: 1rem; }
.box ol { counter-reset: k; display: grid; gap: 0.875rem; }
.box ol li { counter-increment: k; display: grid; grid-template-columns: 1.625rem 1fr; font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.box ol li::before { content: counter(k); font-family: var(--display); color: var(--accent); }
.box--deep { background: var(--deep); color: var(--on-deep); }
.box--deep p { color: var(--on-deep-2); font-size: 1.0625rem; line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags a { padding: 0.375rem 0.75rem; border: 1px solid var(--line-strong); border-radius: 62.4375rem; font-size: 0.9375rem; text-decoration: none; transition: border-color 160ms, color 160ms; }
.tags a:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 1000px) { .prose, .a-aside { grid-column: 1 / -1; } .a-aside .sticky { position: static; } }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 800px) { .related { grid-template-columns: 1fr; } }

/* ---------- Regions & topics ---------- */
.desks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(3rem, 5vw, 5rem) var(--gap); }
.desk__img { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--paper-warm); }
.desk__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease); }
.desk__img:hover img { transform: scale(1.03); }
.desk h2 { margin-top: 1.5rem; font-size: clamp(1.75rem, 1.4rem + 1.1vw, 2.5rem); }
.desk h2 a { text-decoration: none; }
.desk h2 a:hover { color: var(--accent); }
.desk > p { margin-top: 0.75rem; color: var(--ink-2); }
.desk__latest { margin-top: 1.25rem; border-top: 1px solid var(--line); }
.desk__latest a { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 0.875rem 0; border-bottom: 1px solid var(--line); text-decoration: none; align-items: baseline; }
.desk__latest .t { font-size: 1.0625rem; line-height: 1.4; transition: color 160ms; }
.desk__latest a:hover .t { color: var(--accent); }
.desk__latest .meta { white-space: nowrap; }
.desk .more { margin-top: 1.125rem; }
@media (max-width: 860px) { .desks { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .desk__latest a { grid-template-columns: 1fr; gap: 0.25rem; } }

/* ---------- Advisory ---------- */
.intro2 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.intro2 h2 { grid-column: 1 / span 5; }
.intro2 > div { grid-column: 7 / span 6; display: grid; gap: 1em; color: var(--ink-2); }
.intro2 > div p:first-child { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); }
@media (max-width: 900px) { .intro2 h2, .intro2 > div { grid-column: 1 / -1; } }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.service { background: var(--white); border: 1px solid var(--line); border-radius: 0.5rem; padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: 0.875rem; transition: border-color 200ms; }
.service:hover { border-color: var(--line-strong); }
.service h3 { font-size: var(--fs-h3); }
.service .strap { font-family: var(--display); font-size: 1.1875rem; line-height: 1.35; color: var(--accent); }
.service p:last-child { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.6; }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } }
.quote { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; }
.quote blockquote { grid-column: 1 / span 8; margin: 0; font-family: var(--display); font-size: clamp(1.875rem, 1.2rem + 2.2vw, 3.25rem); line-height: 1.15; }
.quote p { grid-column: 9 / span 4; color: var(--on-deep-2); }
@media (max-width: 900px) { .quote blockquote, .quote p { grid-column: 1 / -1; } }
.cta { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: center; }
.cta > div { grid-column: 1 / span 6; }
.cta > div p { margin-top: 1.125rem; color: var(--ink-2); }
.cta > div .btn { margin-top: 1.75rem; }
.cta figure { grid-column: 8 / span 5; margin: 0; border-radius: var(--radius); overflow: hidden; }
.cta figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 900px) { .cta > div, .cta figure { grid-column: 1 / -1; } }

/* ---------- About ---------- */
.feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: center; }
.feature__text { grid-column: 1 / span 5; }
.feature__text p { margin-top: 1rem; color: var(--ink-2); }
.feature__text p:first-of-type { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); margin-top: 1.5rem; }
.on-deep .feature__text p { color: var(--on-deep-2); }
.on-deep .feature__text p:first-of-type { color: var(--on-deep); }
.feature__img { grid-column: 7 / span 6; margin: 0; border-radius: var(--radius); overflow: hidden; }
.feature__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature--flip .feature__text { grid-column: 8 / span 5; grid-row: 1; }
.feature--flip .feature__img { grid-column: 1 / span 6; grid-row: 1; }
@media (max-width: 900px) { .feature .feature__text, .feature .feature__img { grid-column: 1 / -1; grid-row: auto; } }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.figures > div { padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.figures strong { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(2.25rem, 1.6rem + 2vw, 3.5rem); line-height: 1; }
.figures span { display: block; margin-top: 0.75rem; color: var(--ink-2); font-size: 1.0625rem; }
.figures a { display: inline-block; margin-top: 0.625rem; }
@media (max-width: 800px) { .figures { grid-template-columns: 1fr 1fr; row-gap: 2rem; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.contact__info { grid-column: 1 / span 4; display: grid; gap: 1.75rem; margin: 0; }
.contact__info dt { color: var(--ink-3); font-size: 0.9375rem; }
.contact__info dd { margin: 0.25rem 0 0; font-family: var(--display); font-size: 1.375rem; line-height: 1.3; }
.contact__info dd a { color: var(--accent); text-decoration: none; }
.contact__info dd a:hover { text-decoration: underline; }
.contact__info ul { display: grid; gap: 0.375rem; color: var(--ink-2); }
.contact__info h2 { font-size: 1.375rem; margin-bottom: 0.625rem; }
.form { grid-column: 6 / span 7; background: var(--paper-soft); border-radius: 0.5rem; padding: clamp(1.5rem, 3.4vw, 3rem); }
.form h2 { font-size: var(--fs-h2); margin-bottom: 1.75rem; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form .field { margin-bottom: 1.125rem; }
.form textarea { min-height: 10rem; padding: 0.75rem 0.875rem; resize: vertical; }
.form .error { color: var(--danger); font-size: 0.9375rem; }
.form [data-invalid] input, .form [data-invalid] select, .form [data-invalid] textarea { border-color: var(--danger); }
.form .counter { align-self: flex-end; font-size: 0.875rem; color: var(--ink-3); }
.form .counter.over { color: var(--danger); }
.form .submit { display: flex; align-items: center; gap: 1.125rem; flex-wrap: wrap; }
.form .status { color: var(--ink-2); font-size: 0.9375rem; }
@media (max-width: 900px) { .contact__info, .form { grid-column: 1 / -1; } .form .row2 { grid-template-columns: 1fr; } }
.faq { max-width: 56.25rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; min-height: 4.5rem; padding: 1rem 0; cursor: pointer; list-style: none; font-family: var(--display); font-size: clamp(1.1875rem, 1.05rem + 0.45vw, 1.4375rem); line-height: 1.3; transition: color 160ms; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary svg { width: 1.25rem; height: 1.25rem; flex: none; transition: transform 240ms var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.5rem; max-width: 68ch; color: var(--ink-2); }
.faq-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.faq-grid .faq { grid-column: 1 / span 7; }
.faq-grid figure { grid-column: 9 / span 4; margin: 0; border-radius: var(--radius); overflow: hidden; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.faq-grid figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 900px) { .faq-grid .faq, .faq-grid figure { grid-column: 1 / -1; position: static; } .faq-grid figure img { aspect-ratio: 16 / 9; } }

/* ---------- Footer ---------- */
.footer { background: var(--deep); color: var(--on-deep); padding-block: clamp(3.5rem, 7vw, 6rem) 1.75rem; }
.footer__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem var(--gap); }
.footer__brand { grid-column: 1 / span 4; }
.footer__brand img { width: 12.25rem; }
.footer__brand p { margin-top: 1.25rem; color: var(--on-deep-2); font-size: 1.0625rem; max-width: 34ch; }
.footer__brand a { display: inline-block; margin-top: 1rem; color: var(--white); }
.footer__col { grid-column: span 2; }
.footer__col h2, .footer__news h2 { font-family: var(--text); font-size: 1.0625rem; font-weight: 600; margin-bottom: 0.875rem; }
.footer__col ul { display: grid; gap: 0.5rem; }
.footer__col a { color: var(--on-deep-2); text-decoration: none; font-size: 1.0625rem; }
.footer__col a:hover { color: var(--white); text-decoration: underline; }
.footer__news { grid-column: span 2; }
.footer__news p { color: var(--on-deep-2); font-size: 1.0625rem; }
.sub { display: grid; gap: 0.625rem; margin-top: 1rem; }
.sub input { min-height: 2.875rem; padding: 0 0.875rem; border-radius: 0.25rem; border: 1px solid rgba(255,255,255,0.28); background: var(--deep-2); color: var(--white); font-size: 1rem; }
.sub input::placeholder { color: #9198a3; }
.sub input:focus { outline: none; border-color: var(--accent-light); }
.sub .note { font-size: 0.9375rem; color: var(--on-deep-2); min-height: 1.4em; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.14); font-size: 0.9375rem; color: var(--on-deep-2); }
.footer__bottom a { color: inherit; }
@media (max-width: 1100px) { .footer__brand { grid-column: 1 / -1; } .footer__col, .footer__news { grid-column: span 3; } }
@media (max-width: 700px) { .footer__col { grid-column: span 6; } .footer__news { grid-column: 1 / -1; } }

/* ---------- Motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(1.125rem); transition: opacity 700ms var(--ease), transform 800ms var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal-group] > * { opacity: 0; transform: translateY(1.125rem); transition: opacity 700ms var(--ease), transform 800ms var(--ease); }
.js [data-reveal-group].is-in > * { opacity: 1; transform: none; }
.js [data-reveal-group].is-in > *:nth-child(2) { transition-delay: 70ms; }
.js [data-reveal-group].is-in > *:nth-child(3) { transition-delay: 140ms; }
.js [data-reveal-group].is-in > *:nth-child(4) { transition-delay: 210ms; }
.js [data-reveal-group].is-in > *:nth-child(n+5) { transition-delay: 260ms; }
.hero__in > * { animation: rise 1000ms var(--ease) both; }
.hero__in > *:nth-child(2) { animation-delay: 120ms; }
.hero__in > *:nth-child(3) { animation-delay: 240ms; }
@keyframes rise { from { opacity: 0; transform: translateY(1.375rem); } to { opacity: 1; transform: none; } }
.fade-swap { animation: swap 420ms var(--ease) both; }
@keyframes swap { from { opacity: 0; transform: translateY(0.5rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal-group] > * { opacity: 1; transform: none; transition: none; }
  .hero__in > *, .fade-swap, .hero__down svg { animation: none; }
  .story__img img, .way__img img, .desk__img img, .row figure img { transition: none; }
}

.footer__top > * { min-width: 0; }
.sub input, .sub .btn { width: 100%; min-width: 0; }
@media (max-width: 1100px) and (min-width: 701px) { .footer__col { grid-column: span 4; } .footer__news { grid-column: 1 / -1; max-width: 30rem; } }

/* Inner page entrance */
.page-head__text > *, .page-head__img, .a-head__in > *, .a-cover { animation: rise 900ms var(--ease) both; }
.page-head__text > *:nth-child(2), .a-head__in > *:nth-child(2) { animation-delay: 60ms; }
.page-head__text > *:nth-child(3), .a-head__in > *:nth-child(3) { animation-delay: 120ms; }
.a-head__in > *:nth-child(4) { animation-delay: 180ms; }
.page-head__img, .a-cover { animation-delay: 160ms; }
@media (prefers-reduced-motion: reduce) { .page-head__text > *, .page-head__img, .a-head__in > *, .a-cover { animation: none; } }

/* Inner text measure everywhere a paragraph can run wide */
.s-head p, .desk > p, .page-head__text .lead { max-width: 62ch; }

/* Very narrow phones (320–22.5rem) */
@media (max-width: 360px) {
  :root { --margin: 1rem; }
  .logo img { width: 9.25rem; }
  .btn { padding: 0 1rem; }
  .hero__actions .btn { width: 100%; }
}
/* Short laptop screens (13" at 1366×768, 1280×720): keep page headers within the first screen */
@media (min-width: 901px) and (max-height: 820px) {
  .page-head { padding-block: 1.75rem 3rem; }
  .page-head__img img { aspect-ratio: 16 / 9; }
}

.lead, .contact__info dd, .s-head p, .desk > p { text-wrap: balance; }

.menu .menu__all { margin-top: 0.375rem; padding-top: 0.875rem; border-top: 1px solid var(--line); border-radius: 0 0 0.25rem 0.25rem; }

/* ---------- Nav & search, matched to csseurasia.com ---------- */
.nav { gap: clamp(1rem, 2.2vw, 2.25rem); }
.nav__link { height: auto; padding: 0.25rem 0; gap: 0.25rem; border-radius: 0; border-bottom: 2px solid transparent; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; white-space: nowrap; }
.nav__link:hover, .nav__item:focus-within > .nav__link,
.header--over .nav__link:hover, .header--over .nav__item:focus-within > .nav__link,
.header--over.is-solid .nav__link:hover, .header--over.is-solid .nav__item:focus-within > .nav__link { background: none; border-bottom-color: currentColor; }
.nav__link[aria-current="page"] { border-bottom-color: currentColor; }
.nav__link svg { width: 0.75rem; height: 0.75rem; }
@media (max-width: 1280px) { .nav__link { font-size: 0.6875rem; letter-spacing: 0.11em; } }
.search-btn { opacity: 0.75; }
.search-btn:hover, .header--over .search-btn:hover, .header--over.is-solid .search-btn:hover { opacity: 1; background: none; }
.search-btn svg { width: 1.125rem; height: 1.125rem; }

.sm-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(16,21,30,0.6); backdrop-filter: blur(4px); }
.sm { position: fixed; z-index: 91; inset: 0 0 auto; display: flex; justify-content: center; pointer-events: none; }
.sm__box { pointer-events: auto; width: 100%; max-width: 42rem; max-height: 100dvh; display: flex; flex-direction: column; overflow: hidden; background: var(--white); color: var(--ink); border: 1px solid var(--line); }
@media (min-width: 640px) { .sm { top: 5rem; padding: 0 1.5rem; } .sm__box { max-height: 76vh; border-radius: 0.5rem; } }
.sm__bar { display: flex; align-items: center; gap: 0.25rem; padding: 0 1.25rem; border-bottom: 1px solid var(--line); }
.sm__bar > svg { width: 18px; height: 18px; flex: none; color: var(--ink-3, #626b7a); }
.sm__bar input { flex: 1; height: 4rem; padding: 0 1rem; border: 0; background: none; font: inherit; font-size: 1.0625rem; color: var(--ink); outline: none; }
.sm__close { padding: 0.25rem; border: 0; background: none; cursor: pointer; color: #626b7a; }
.sm__close svg { width: 18px; height: 18px; }
.sm__res { flex: 1; overflow-y: auto; padding: 0 1.25rem; }
.sm__empty { padding: 3rem 0; text-align: center; color: #5a6170; font-size: 0.9375rem; }
.sm__group { padding: 1.75rem 0; }
.sm__label { padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: #5f6573; }
.sm__item { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.sm__item .meta { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: #5f6573; }
.sm__item h4 { margin-top: 0.375rem; font-size: 1.3125rem; line-height: 1.3; transition: color 160ms; }
.sm__item:hover h4 { color: var(--accent); }
.sm__item p { margin-top: 0.375rem; font-size: 0.9375rem; color: #5a6170; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm__link { display: flex; justify-content: space-between; padding: 0.875rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.sm__link:hover { color: var(--accent); }
.sm__all { display: inline-block; margin: 0 0 1.75rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.sm__all:hover { color: var(--accent); }
.sm__foot { display: none; gap: 1.5rem; padding: 0.75rem 1.25rem; border-top: 1px solid var(--line); background: var(--paper-soft); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: #5f6573; }
@media (min-width: 640px) { .sm__foot { display: flex; } }

/* ---------- Language switcher, matched to csseurasia.com ---------- */
.lang-sw { position: relative; }
.lang, .header--over .lang, .header--over.is-solid .lang { display: inline-flex; align-items: center; gap: 0.25rem; height: 2.75rem; padding: 0 0.5rem; border: 0; border-radius: 0; background: none; cursor: pointer; color: inherit; font: inherit; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.75; transition: opacity 160ms; }
.lang:hover, .header--over .lang:hover, .header--over.is-solid .lang:hover { opacity: 1; background: none; }
.lang svg { width: 0.75rem; height: 0.75rem; opacity: 0.6; transition: transform 200ms; }
.lang[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: 100%; z-index: 60; width: 11rem; padding: 0.25rem 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 0.5rem; box-shadow: 0 12px 40px rgba(16,21,31,0.10); }
.lang-menu button { display: block; width: 100%; padding: 0.625rem 1rem; border: 0; background: none; text-align: left; font: inherit; font-size: 0.875rem; color: #545b69; cursor: pointer; transition: background-color 160ms, color 160ms; }
.lang-menu button:hover { background: var(--paper-soft); color: var(--ink); }
.lang-menu button[aria-current="true"] { background: var(--paper-soft); color: var(--accent); }

/* ---------- Styled select ---------- */
.dd { position: relative; }
.dd select { position: absolute; inset: auto 0 0; width: 100%; height: 1px; opacity: 0; pointer-events: none; }
.dd__btn { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; width: 100%; height: 3rem; padding: 0 0.875rem 0 1rem; border: 1px solid var(--line-2, #c9c5bc); border-radius: 0.375rem; background: var(--white); font: inherit; font-size: 1rem; color: var(--ink); text-align: left; cursor: pointer; transition: border-color 160ms, box-shadow 160ms; }
.dd__btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd__btn svg { width: 0.75rem; height: 0.75rem; flex: none; transition: transform 200ms; }
.dd__btn:hover { border-color: var(--ink-3, #626b7a); }
.dd__btn:focus-visible, .dd.is-open .dd__btn { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft, rgba(30,59,138,0.12)); }
.dd.is-open .dd__btn svg { transform: rotate(180deg); }
.dd__list { position: absolute; left: 0; right: 0; top: calc(100% + 0.375rem); z-index: 40; max-height: 20rem; overflow-y: auto; margin: 0; padding: 0.25rem 0; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: 0.5rem; box-shadow: 0 12px 40px rgba(16,21,31,0.10); }
.dd__list li { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.625rem 1rem; font-size: 0.9375rem; color: #545b69; cursor: pointer; transition: background-color 120ms, color 120ms; }
.dd__list li.is-active { background: var(--paper-soft); color: var(--ink); }
.dd__list li[aria-selected="true"] { color: var(--accent); }
.dd__list li[aria-selected="true"]::after { content: ""; width: 0.75rem; height: 0.4rem; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg) translateY(-2px); }

/* ---------- People ---------- */
.people { display: grid; gap: 3rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.person { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.person h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.18; color: var(--accent); }
.person .meta { margin-top: 0.75rem; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.75rem; }
.person a { display: inline-block; margin-top: 0.75rem; font-size: 0.9375rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(16,21,30,0.25); overflow-wrap: anywhere; }
.person a:hover { color: var(--accent); border-color: var(--ink); }
.people-cta { border-top: 1px solid var(--line); background: var(--paper-soft); }
.people-cta__in { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 2rem; padding-block: clamp(4rem, 6vw, 5rem); }
.people-cta .h2 { max-width: 42rem; }
.people-cta .btn { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* ---------- Hero buttons: one row ---------- */
.hero__actions { flex-wrap: nowrap; gap: 0.625rem; margin-top: 2rem; }
.hero__actions .btn { min-height: 2.75rem; padding: 0 1.125rem; font-size: 0.9375rem; white-space: nowrap; gap: 0.5rem; border-radius: 0.375rem; }
.hero__actions .btn svg { width: 1rem; height: 1rem; }
@media (max-width: 420px) { .hero__actions .btn { padding: 0 0.875rem; font-size: 0.875rem; } }

/* ---------- Mobile header as on csseurasia.com: logo, search, language, menu ---------- */
@media (max-width: 1140px) {
  .header__tools .lang-sw, .header__tools .lang-sw .lang { display: inline-flex; }
  .header__tools { gap: 0; }
}

/* ---------- Four ways: carousel ---------- */
.eyebrow { margin-bottom: 1rem; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: #5f6573; }
.ways-nav { display: none; gap: 0.5rem; }
.ways-arrow { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border: 1px solid #c9c5bc; border-radius: 0.375rem; background: var(--white); color: var(--ink); cursor: pointer; transition: background-color 160ms, color 160ms, border-color 160ms; }
.ways-arrow svg { width: 1rem; height: 1rem; }
.ways-arrow:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.ways-arrow:disabled { opacity: 0.3; pointer-events: none; }
@media (max-width: 1100px) {
  .ways-nav { display: flex; }
  .ways { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin); scroll-padding-inline: var(--margin); }
  .ways::-webkit-scrollbar { display: none; }
  .way { flex: 0 0 47%; scroll-snap-align: start; }
  .way h3 { padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--accent); }
  .way h3 svg { display: none; }
}
@media (max-width: 640px) { .way { flex-basis: 85%; } .s-head .ways-nav { width: 100%; } }

/* ---------- Hero: actions at the bottom, scroll hint as on csseurasia.com ---------- */
.hero__in { padding-bottom: calc(var(--header-h) + 2.5rem); }
.hero__actions { position: absolute; z-index: 3; left: 50%; bottom: 5.5rem; transform: translateX(-50%); margin: 0; justify-content: center; }
.hero__down { bottom: 1.5rem; width: 3rem; height: 3rem; border: 0; background: none; cursor: pointer; color: rgba(255,255,255,0.9); border-radius: 0; }
.hero__down:hover { color: var(--white); }
.hero__down svg { width: 2rem; height: 2rem; filter: drop-shadow(0 1px 6px rgba(0,0,0,0.35)); animation: scroll-hint 2.2s ease-in-out infinite; }
@keyframes scroll-hint { 0% { transform: translateY(-6px); opacity: 0; } 30%, 70% { opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero__down svg { animation: none; } }
@media (min-width: 640px) { .hero__down { bottom: 2.5rem; } .hero__actions { bottom: 6.75rem; } }
@media (max-width: 640px) { .hero__down { display: grid; } .hero__toggle { bottom: 2rem; } }

/* ---------- Back to top, as on csseurasia.com ---------- */
.to-top { position: fixed; z-index: 40; right: 1.25rem; bottom: 1.25rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; opacity: 0; transform: translateY(0.5rem); pointer-events: none; transition: opacity 300ms, transform 300ms, color 300ms, border-color 300ms, background-color 160ms; }
.to-top svg { width: 18px; height: 18px; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: rgba(16,21,30,0.05); }
.to-top.on-dark { border-color: var(--white); color: var(--white); }
.to-top.on-dark:hover { background: rgba(255,255,255,0.1); }
@media (min-width: 640px) { .to-top { right: 2rem; bottom: 2rem; } }

/* ---------- Page heads: text only ---------- */
.page-head { padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4.5rem); border-bottom: 1px solid var(--line); }
.page-head__text { grid-column: 1 / span 9; }
.page-head__text .lead { max-width: 52ch; }
@media (max-width: 900px) { .page-head__text { grid-column: 1 / -1; } }

/* ---------- Page heads: title left, lead right ---------- */
.page-head__text { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gap); align-items: end; }
.page-head__text > * { grid-column: 1; }
.page-head__text > .lead { grid-column: 2; grid-row: 1 / span 9; align-self: end; margin: 0 0 0.75rem; max-width: 40ch; justify-self: end; }
@media (max-width: 900px) {
  .page-head__text { grid-template-columns: 1fr; }
  .page-head__text > .lead { grid-column: 1; grid-row: auto; justify-self: start; margin: 1.25rem 0 0; }
}

/* ---------- Advisory: photo behind the service cards ---------- */
.svc-bg { position: relative; background: #10151e url("../img/services-grid-1600.webp") center / cover no-repeat; }
.svc-bg::before { content: ""; position: absolute; inset: 0; background: rgba(16,21,30,0.35); pointer-events: none; }
.svc-bg > .container { position: relative; }
.svc-bg .service { background: rgba(255,255,255,0.96); border-color: transparent; box-shadow: 0 10px 40px rgba(16,21,31,0.12); }
@media (max-width: 900px) { .svc-bg { background-image: url("../img/services-grid-800.webp"); } }

/* ---------- No tap residue: no grey fill or focus ring after a click or tap ---------- */
* { -webkit-tap-highlight-color: transparent; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; box-shadow: none; }
.icon-btn, .icon-btn:hover, .icon-btn:focus, .icon-btn:active,
.header--over .icon-btn:hover, .header--over.is-solid .icon-btn:hover { background: none; }
@media (hover: hover) { .icon-btn:hover { opacity: 0.75; } }
html:not(.kbd) :focus-visible { outline: none; }
.section.svc-bg, .svc-bg + .section { padding-top: var(--section); }
.section.svc-bg { padding-bottom: var(--section); }
.svc-bg .services { gap: clamp(1.25rem, 2vw, 2rem); }

/* ---------- Space after text-only page heads ---------- */
.page-head + .section { padding-top: clamp(2rem, 4vw, 3rem); }

/* ---------- Legal ---------- */
.legal { display: grid; grid-template-columns: 16rem minmax(0, 46rem); gap: clamp(2rem, 5vw, 5rem); }
.legal__toc { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; }
.legal__toc ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.legal__toc a { display: block; padding: 0.625rem 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; color: var(--ink-2, #3d4452); text-decoration: none; }
.legal__toc a:hover { color: var(--accent); }
.legal__sec + .legal__sec { margin-top: 2.5rem; }
.legal__sec h2 { margin-top: 0; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.legal__updated { margin-top: 3rem; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .legal__toc { position: static; } }

/* ---------- Research filters: compact on phones ---------- */
.filters-toggle { display: none; }
@media (max-width: 640px) {
  .filters { grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem; padding: 0.75rem; align-items: end; }
  .filters .field--search { grid-column: 1; }
  .filters .field { font-size: 0; gap: 0; }
  .filters .field input, .filters .dd__btn { font-size: 1rem; height: 2.75rem; }
  .filters > .field:not(.field--search) { display: none; grid-column: 1 / -1; }
  .filters.is-open > .field:not(.field--search) { display: block; }
  .filters.is-open { row-gap: 0.5rem; }
  .filters-toggle { display: inline-flex; align-items: center; gap: 0.375rem; height: 2.75rem; padding: 0 0.875rem; border: 1px solid #c9c5bc; border-radius: 0.375rem; background: var(--white); color: var(--ink); font: inherit; font-size: 0.9375rem; cursor: pointer; white-space: nowrap; }
  .filters-toggle svg { width: 1rem; height: 1rem; }
  .filters-toggle b { display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; padding: 0 0.3rem; border-radius: 999px; background: var(--accent); color: var(--white); font-size: 0.75rem; font-weight: 600; }
  .filters-toggle b:empty { display: none; }
  .filters.is-open .filters-toggle { border-color: var(--accent); color: var(--accent); }
}

/* Home, Latest research: the text-only list is dropped on phones */
@media (max-width: 640px) { .latest [data-list] { display: none; } }

/* Tighter vertical rhythm on phones */
@media (max-width: 640px) {
  :root { --section: 3rem; }
  .s-head { margin-bottom: 1.5rem; gap: 1rem; }
  .eyebrow { margin-bottom: 0.625rem; }
}
@media (max-width: 640px) {
  .filters { background: none; padding: 0; align-items: center; }
  .filters .field { display: block; line-height: 0; }
  .filters .field > * { line-height: normal; }
}
.results-bar [data-count] { font-size: 0.875rem; color: var(--ink-3); }
.dd__list { padding: 0; }
.dd__list li:first-child { border-radius: 0.5rem 0.5rem 0 0; }
.dd__list li:last-child { border-radius: 0 0 0.5rem 0.5rem; }

/* Dropdowns: items run to the edges, no strip above or below */
.lang-menu, .menu { padding: 0; }
.menu a { border-radius: 0; padding: 0.75rem 1rem; }
.lang-menu > :first-child, .menu > :first-child { border-radius: 0.5rem 0.5rem 0 0; }
.lang-menu > :last-child, .menu > :last-child { border-radius: 0 0 0.5rem 0.5rem; }
.legal > .legal__toc { grid-column: 1; }
.legal > .legal__body { grid-column: 2; }
@media (max-width: 900px) { .legal > .legal__toc, .legal > .legal__body { grid-column: 1; } }

/* Hero: the video fades in over the photo once it is playing (no dark flash). */
.hero video { opacity: 0; transition: opacity 0.4s linear; background: transparent; }
.hero video.is-on { opacity: 1; }

