/* ==========================================================
   Jaebets Jn Gilles — Portfolio (multi-page)
   White top bar · whitesmoke fixed sidebar · blue + red (JAEKA)
   Responsive: phone, tablet, desktop, TV
   ========================================================== */
:root {
  --blue: #1d3f9f;
  --blue-700: #162f78;
  --blue-50: #eaf0ff;
  --navy: #16224f;
  --red: #d3112f;
  --red-700: #a90c25;
  --red-50: #fdecef;
  --gold: #c9a24a;
  --bg: #ffffff;
  --side: #f5f5f5;
  --card: #ffffff;
  --card-2: #f6f8fd;
  --topbar: #ffffff;
  --text: #1a2036;
  --muted: #5a647f;
  --border: #e3e6ee;
  --link: #1d3f9f;
  --shadow: 0 1px 2px rgba(22, 34, 79, .06), 0 10px 28px -14px rgba(22, 34, 79, .22);
  --radius: 16px;
  --radius-sm: 10px;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --sbw: 17.5rem;
  --topbar-h: 4.25rem;
  --maxw: 70rem;
  --gutter: clamp(1rem, 3.5vw, 2.5rem);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #2e3238;
  --side: #353a42;
  --card: #3a3f48;
  --card-2: #343942;
  --topbar: #32363d;
  --text: #eceef2;
  --muted: #b9bfcb;
  --border: #4d535e;
  --blue: #6f8fef;
  --blue-700: #93abf4;
  --blue-50: #424a63;
  --red: #f0566f;
  --red-700: #f57d90;
  --red-50: #4a3a42;
  --link: #9db6ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 10px 28px -14px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
body.sb-collapsed { --sbw: 5.25rem; }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, picture, video { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .2em; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-family: var(--font-display); font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: .75rem 1rem; z-index: 300; }
.skip-link:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Icons & buttons ---------- */
.ico { width: 1.25rem; height: 1.25rem; flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .8rem 1.35rem; min-height: 3rem; border-radius: 999px; font: inherit; font-weight: 800; font-size: .98rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background-color .2s, border-color .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 22px -12px var(--red); }
.btn--red:hover { background: var(--red-700); color: #fff; }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 10px 22px -12px var(--blue); }
.btn--blue:hover { background: var(--blue-700); color: #fff; }
:root[data-theme="dark"] .btn--blue, :root[data-theme="dark"] .btn--red { color: #14161a; }
.btn--outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue-50); }
.btn--white { background: #fff; color: var(--blue-700); }
.btn--sm { padding: .55rem 1rem; min-height: 2.5rem; font-size: .9rem; }
.icon-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--card-2); color: var(--text); border: 1px solid var(--border); cursor: pointer; flex: none; transition: background-color .2s, border-color .2s; }
.icon-btn:hover { border-color: var(--blue); background: var(--blue-50); }

/* ---------- Sidebar ---------- */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sbw); background: var(--side); border-right: 1px solid var(--border); display: flex; flex-direction: column; z-index: 80; overflow-x: hidden; overflow-y: auto; transition: width .25s ease, transform .25s ease; }
.sb-brand { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.6rem 1rem 1.2rem; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border); }
.sb-avatar { position: relative; width: 7.5rem; height: 7.5rem; border-radius: 50%; padding: 4px; background: conic-gradient(var(--blue), var(--red), var(--blue)); transition: width .25s, height .25s; flex: none; }
.sb-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 3px solid var(--side); background: var(--side); }
.sb-name { margin-top: .9rem; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.15; color: var(--blue); }
:root[data-theme="dark"] .sb-name { color: #fff; }
.sb-title { margin-top: .35rem; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red); line-height: 1.35; }
.sb-menu { padding: 1rem .75rem; flex: 1; }
.sb-menu li + li { margin-top: .2rem; }
.sb-menu a { display: flex; align-items: center; gap: .9rem; padding: .75rem .9rem; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 700; font-size: .98rem; white-space: nowrap; transition: background-color .2s, color .2s; position: relative; }
.sb-menu a .ico { width: 1.4rem; height: 1.4rem; color: var(--blue); }
.sb-menu a:hover { background: var(--blue-50); }
.sb-menu a[aria-current="page"] { background: var(--blue); color: #fff; }
:root[data-theme="dark"] .sb-menu a[aria-current="page"] { color: #14161a; }
.sb-menu a[aria-current="page"] .ico { color: currentColor; }
.sb-menu a[aria-current="page"]::after { content: ""; position: absolute; right: 0; top: 22%; bottom: 22%; width: 4px; border-radius: 4px 0 0 4px; background: var(--red); }
.sb-foot { padding: 1rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: .8rem; }
.sb-avail { display: flex; align-items: center; gap: .55rem; font-size: .8rem; font-weight: 800; color: var(--muted); }
.sb-avail i { width: .6rem; height: .6rem; border-radius: 50%; background: #20b26b; box-shadow: 0 0 0 4px rgba(32, 178, 107, .2); flex: none; }
.sb-social { display: flex; gap: .5rem; }
.sb-social a { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 10px; background: var(--card); border: 1px solid var(--border); color: var(--blue); }
.sb-social a:hover { border-color: var(--red); color: var(--red); }

/* collapsed (icon-only) sidebar on desktop */
@media (min-width: 961px) {
  body.sb-collapsed .sb-avatar { width: 3.2rem; height: 3.2rem; }
  body.sb-collapsed .sb-brand { padding: 1.2rem .4rem .9rem; }
  body.sb-collapsed .sb-name, body.sb-collapsed .sb-title, body.sb-collapsed .label, body.sb-collapsed .sb-avail span, body.sb-collapsed .sb-social a:not(:first-child) { display: none; }
  body.sb-collapsed .sb-menu a { justify-content: center; padding-inline: 0; }
  body.sb-collapsed .sb-menu a[aria-current="page"]::after { display: none; }
  body.sb-collapsed .sb-avail { justify-content: center; }
  body.sb-collapsed .sb-foot { align-items: center; }
}

/* ---------- Layout / topbar ---------- */
.layout { margin-left: var(--sbw); min-height: 100vh; display: flex; flex-direction: column; transition: margin-left .25s ease; }
.topbar { position: sticky; top: 0; z-index: 70; height: var(--topbar-h); background: var(--topbar); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: .75rem; padding-inline: var(--gutter); }
.topbar__title { font-weight: 800; color: var(--muted); font-size: .95rem; letter-spacing: .02em; margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__brand { display: none; align-items: center; gap: .6rem; font-weight: 800; color: var(--blue); text-decoration: none; margin-right: auto; font-size: 1rem; }
.topbar__brand img { width: 2.3rem; height: 2.3rem; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--red); }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--card-2); }
.seg button { font: inherit; font-weight: 800; font-size: .85rem; padding: 0 .85rem; min-width: 2.7rem; height: 2.65rem; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--blue); color: #fff; }
:root[data-theme="dark"] .seg button[aria-pressed="true"] { color: #14161a; }
.theme-toggle .moon { display: block; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
.scrim { position: fixed; inset: 0; background: rgba(15, 20, 40, .5); z-index: 75; opacity: 0; pointer-events: none; transition: opacity .25s; }
@media (max-width: 960px) {
  .sidebar { transform: translateX(-102%); width: min(19rem, 86vw); box-shadow: 10px 0 40px rgba(0, 0, 0, .25); }
  body.sb-open .sidebar { transform: none; }
  body.sb-open .scrim { opacity: 1; pointer-events: auto; }
  .layout { margin-left: 0; }
  .topbar__title { display: none; }
  .topbar__brand { display: inline-flex; }
}
@media (max-width: 560px) { .topbar .btn { display: none; } .topbar { gap: .5rem; } }

/* ---------- Common blocks ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
main { flex: 1; }
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--tint { background: var(--card-2); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: .6rem; }
.section-head { max-width: 46rem; margin-bottom: clamp(1.5rem, 4vw, 2.6rem); }
.section-head p, .lead { color: var(--muted); font-size: 1.12rem; }
.page-hero { background: linear-gradient(120deg, var(--blue-50), var(--bg) 70%); border-bottom: 1px solid var(--border); padding-block: clamp(2rem, 5vw, 3.5rem); }
.page-hero h1 { margin-bottom: .3em; }
.page-hero .lead { max-width: 46rem; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .88rem; font-weight: 700; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--blue); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { font-size: .8rem; font-weight: 800; padding: .28rem .7rem; border-radius: 8px; background: var(--blue-50); color: var(--blue-700); }
.chip--red { background: var(--red-50); color: var(--red-700); }
.checks li { position: relative; padding-left: 1.7rem; margin-bottom: .5rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .38em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/70% no-repeat; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(2.2rem, 6vw, 4.5rem); background: radial-gradient(900px 400px at 100% 0, var(--blue-50), transparent 70%), var(--bg); }
.hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.hero h1 span { color: var(--red); }
.avail-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 0; }
.pill { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .85rem; border-radius: 999px; font-weight: 800; font-size: .85rem; background: var(--card); border: 1px solid var(--border); }
.pill i { width: .55rem; height: .55rem; border-radius: 50%; background: #20b26b; }
.hero-card { background: linear-gradient(150deg, var(--blue), var(--navy)); color: #fff; padding: 1.8rem; border-radius: 22px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero-card::after { content: ""; position: absolute; right: -3rem; top: -3rem; width: 11rem; height: 11rem; border-radius: 50%; background: var(--red); opacity: .9; }
.hero-card h3 { position: relative; z-index: 1; font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; max-width: 12rem; }
.hero-card ul { position: relative; z-index: 1; margin-top: 3.2rem; }
.hero-card li { display: flex; gap: .8rem; align-items: flex-start; padding: .8rem 0; border-top: 1px solid rgba(255, 255, 255, .22); font-weight: 700; }
.hero-card li .ico { margin-top: .2rem; color: #ffb3bf; }
.hero-card small { display: block; font-weight: 500; opacity: .8; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.stat { padding: 1.6rem 1.4rem; border-radius: var(--radius); color: #fff; background: linear-gradient(150deg, var(--blue), var(--navy)); box-shadow: var(--shadow); }
.stat--red { background: linear-gradient(150deg, var(--red), var(--red-700)); }
:root[data-theme="dark"] .stat { background: linear-gradient(150deg, #4466c8, #2d3f7d); }
:root[data-theme="dark"] .stat--red { background: linear-gradient(150deg, #cf3d55, #92283a); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; margin-bottom: .5rem; }
.stat span { font-weight: 700; opacity: .95; }

.pillar { padding: 1.5rem; border-top: 4px solid var(--blue); }
.pillar:nth-child(2) { border-top-color: var(--red); }
.pillar .ico { width: 2.2rem; height: 2.2rem; color: var(--blue); margin-bottom: .7rem; }
.pillar:nth-child(2) .ico { color: var(--red); }
.pillar p { color: var(--muted); margin: 0 0 1rem; }

/* ---------- Project cards ---------- */
.pcard { display: flex; flex-direction: column; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.pcard:hover { transform: translateY(-4px); }
.pcard__media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(145deg, var(--navy), var(--blue)); display: grid; place-items: center; overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pcard__media svg { width: 78%; max-height: 88%; }
.pcard__num { position: absolute; top: .6rem; left: .9rem; font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; color: rgba(255, 255, 255, .5); line-height: 1; }
.pcard__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.pcard__kicker { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: .4rem; }
.pcard h3 { font-family: var(--font-display); font-size: 1.4rem; }
.pcard p { color: var(--muted); font-size: .98rem; }
.pcard .chips { margin: .2rem 0 1.2rem; }
.pcard .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Detail pages ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.facts { padding: 1.4rem; position: sticky; top: calc(var(--topbar-h) + 1rem); }
.facts h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.facts dl { margin: 0; }
.facts dt { font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-top: .9rem; }
.facts dd { margin: .15rem 0 0; font-weight: 700; }
.facts .btn { width: 100%; margin-top: 1.2rem; }
.prose h2 { font-size: 1.7rem; margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.2rem 0; }
.metric { padding: 1.1rem 1.2rem; border-radius: var(--radius-sm); background: var(--blue-50); }
.metric strong { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--blue-700); line-height: 1.1; }
.metric span { font-size: .88rem; font-weight: 700; color: var(--muted); }
@media (max-width: 1100px) { .detail { grid-template-columns: 1fr; } .facts { position: static; } }
@media (max-width: 640px) { .metrics { grid-template-columns: 1fr; } }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1rem 0; display: block; overflow-x: auto; }
table.data th { background: var(--blue); color: #fff; text-align: left; padding: .6rem .8rem; white-space: nowrap; }
:root[data-theme="dark"] table.data th { color: #14161a; }
table.data td { padding: .55rem .8rem; border-bottom: 1px solid var(--border); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; margin: 1rem 0; }
.gal-item { padding: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--card); cursor: zoom-in; text-align: left; font: inherit; color: inherit; box-shadow: var(--shadow); }
.gal-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; background: #fff; }
.gal-item span { display: block; padding: .6rem .8rem; font-size: .85rem; font-weight: 700; color: var(--muted); }
.gal-note { font-size: .9rem; color: var(--muted); }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(10, 14, 30, .82); }
dialog.lightbox figure { margin: 0; text-align: center; }
dialog.lightbox img { max-height: 84vh; width: auto; max-width: 94vw; border-radius: 12px; background: #fff; margin-inline: auto; }
dialog.lightbox figcaption { color: #fff; padding: .7rem; font-weight: 700; }
dialog.lightbox button { position: absolute; top: .5rem; right: .5rem; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: linear-gradient(145deg, var(--navy), var(--blue)); border: 1px solid var(--border); box-shadow: var(--shadow); }
.video video, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video__soon { position: absolute; inset: 0; display: none; place-items: center; text-align: center; color: #fff; padding: 1.5rem; }
.video.is-missing .video__soon { display: grid; }
.video__soon .ico { width: 3.2rem; height: 3.2rem; margin: 0 auto .6rem; color: #ffb3bf; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.pn a { padding: 1.1rem 1.3rem; border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; color: var(--text); background: var(--card); font-weight: 800; }
.pn a small { display: block; font-size: .75rem; color: var(--red); letter-spacing: .12em; text-transform: uppercase; }
.pn a:hover { border-color: var(--blue); }
.pn a:last-child { text-align: right; }

/* ---------- Timeline / education / skills ---------- */
.timeline { position: relative; padding-left: 1.8rem; }
.timeline::before { content: ""; position: absolute; left: .45rem; top: .4rem; bottom: .4rem; width: 3px; background: linear-gradient(var(--red), var(--blue)); border-radius: 3px; }
.tl-item { position: relative; padding-bottom: 1.6rem; }
.tl-item::before { content: ""; position: absolute; left: -1.78rem; top: .5rem; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--bg); border: 4px solid var(--red); }
.tl-card { padding: 1.4rem 1.6rem; }
.tl-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; justify-content: space-between; color: var(--muted); font-weight: 700; font-size: .9rem; }
.tl-card h3 { margin: .25rem 0 .1rem; }
.tl-org { font-weight: 800; color: var(--blue); margin-bottom: .7rem; }
.tl-card li { position: relative; padding-left: 1.2rem; margin-bottom: .4rem; font-size: .98rem; }
.tl-card li::before { content: ""; position: absolute; left: 0; top: .72em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--red); }
.edu { padding: 1.4rem; border-left: 4px solid var(--blue); }
.edu time { font-size: .82rem; font-weight: 800; color: var(--red); letter-spacing: .06em; }
.edu h3 { margin: .3rem 0 .2rem; }
.edu p { color: var(--muted); margin: 0; font-size: .96rem; }
.cert { padding: 1rem 1.2rem; border-left: 4px solid var(--red); }
.cert strong { display: block; line-height: 1.3; }
.cert span { font-size: .85rem; font-weight: 700; color: var(--muted); }
.skill { padding: 1.4rem; }
.skill h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.05rem; }
.skill h3 .ico { color: var(--red); width: 1.4rem; height: 1.4rem; }

/* ---------- Partners / awards / business / contact ---------- */
.country { padding: 1.1rem 1.2rem; display: flex; align-items: center; gap: .9rem; font-weight: 800; }
.country b { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 12px; background: var(--blue); color: #fff; font-size: .9rem; letter-spacing: .04em; flex: none; }
:root[data-theme="dark"] .country b { color: #14161a; }
.country:nth-child(3n+2) b { background: var(--red); }
:root[data-theme="dark"] .country:nth-child(3n+2) b { color: #14161a; }
.country span { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); }
.award { display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; }
.award__media { position: relative; min-height: 15rem; background: linear-gradient(145deg, var(--navy), var(--blue)); display: grid; place-items: center; color: #fff; text-align: center; padding: 1.5rem; }
.award__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.award__media .ico { width: 3.2rem; height: 3.2rem; margin: 0 auto .6rem; color: var(--gold); }
.award__media strong { display: block; font-family: var(--font-display); font-size: 1.5rem; }
.award__body { padding: clamp(1.3rem, 3vw, 2.2rem); }
blockquote { margin: 1rem 0; padding: .2rem 0 .2rem 1.1rem; border-left: 4px solid var(--red); }
blockquote footer { margin-top: .4rem; color: var(--muted); font-size: .88rem; font-weight: 700; }
.credit { font-size: .8rem; color: var(--muted); margin-top: .8rem; }
@media (max-width: 900px) { .award { grid-template-columns: 1fr; } .award__media { min-height: 11rem; } }
.biz { padding: 1.7rem; border-top: 4px solid var(--blue); display: flex; flex-direction: column; }
.biz:nth-child(2) { border-top-color: var(--red); }
.biz .ico-wrap { width: 3.3rem; height: 3.3rem; border-radius: 14px; display: grid; place-items: center; background: var(--blue); color: #fff; margin-bottom: 1rem; }
:root[data-theme="dark"] .biz .ico-wrap { color: #14161a; }
.biz:nth-child(2) .ico-wrap { background: var(--red); }
.biz p { color: var(--muted); }
.biz .btn { margin-top: auto; align-self: flex-start; }
.banner { background: linear-gradient(120deg, var(--blue), var(--navy)); color: #fff; border-radius: 22px; padding: clamp(1.6rem, 4vw, 3rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: center; box-shadow: var(--shadow); }
:root[data-theme="dark"] .banner { background: linear-gradient(120deg, #4466c8, #2d3f7d); }
.banner h2 { color: #fff; margin-bottom: .4rem; }
.banner p { margin: 0; opacity: .92; }
.banner .cta-row { margin: 0; justify-content: flex-end; }
@media (max-width: 800px) { .banner { grid-template-columns: 1fr; } .banner .cta-row { justify-content: flex-start; } }
.contact-list li { margin-bottom: .8rem; }
.contact-list a, .contact-list .static { display: flex; align-items: center; gap: .9rem; padding: .95rem 1.2rem; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 700; word-break: break-word; }
.contact-list a:hover { border-color: var(--red); }
.contact-list .ico { color: var(--red); width: 1.4rem; height: 1.4rem; }
.form { padding: clamp(1.3rem, 3vw, 2rem); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 800; font-size: .92rem; margin-bottom: .35rem; }
.field input, .field textarea, .field select { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 2px solid var(--border); border-radius: var(--radius-sm); padding: .8rem 1rem; min-height: 3rem; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 22%, transparent); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__hint { font-size: .86rem; color: var(--muted); margin: .8rem 0 0; }
.hp { position: absolute; left: -9999px; }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 860px) { .contact__grid, .form__row { grid-template-columns: 1fr; } }

/* ---------- Footer / misc ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--card-2); padding-block: 1.6rem; font-size: .92rem; color: var(--muted); }
.site-footer .row { display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--blue); font-weight: 700; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- TV / large screens ---------- */
@media (min-width: 1600px) { html { font-size: 112.5%; } }
@media (min-width: 1920px) { html { font-size: 125%; } :root { --maxw: 76rem; } :focus-visible { outline-width: 4px; } }
@media (min-width: 2560px) { html { font-size: 175%; } :root { --maxw: 78rem; } }
@media (min-width: 3400px) { html { font-size: 250%; } :root { --maxw: 80rem; } }
@media (max-height: 480px) and (orientation: landscape) { .sb-brand { padding-block: .8rem; } .sb-avatar { width: 4rem; height: 4rem; } }
@media (hover: none) { .btn:hover, .pcard:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } .js .reveal { opacity: 1; transform: none; } }
@media print { .sidebar, .topbar, .scrim, .site-footer { display: none !important; } .layout { margin: 0; } }

/* v2 fixes */
.detail > * { min-width: 0; }
.prose img, .prose picture { max-width: 100%; }
@media (max-width: 900px) { .detail { grid-template-columns: minmax(0, 1fr); } .facts { position: static; } }
@media (max-width: 640px) { .metrics { grid-template-columns: minmax(0, 1fr); } }
