/* The Medium International — main stylesheet */

:root {
  --ink: #12161d;
  --ink-2: #3b4350;
  --muted: #6b7380;
  --paper: #faf8f4;
  --tint: #f1ede5;
  --line: #e2dcd1;
  --navy: #10233a;
  --navy-2: #1b3a5c;
  --brand: #2c5f8a;
  --accent: #c08a3e;
  --accent-2: #a87430;
  --white: #fff;

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 14px;
  --shadow: 0 1px 2px rgb(16 35 58 / .06), 0 12px 32px -12px rgb(16 35 58 / .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.i { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 720px; }

/* Type */
.display { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.015em; line-height: 1.08; font-variation-settings: 'opsz' 144; }
.display-xl { font-size: clamp(2.6rem, 6vw, 4.75rem); line-height: 1.02; }
.display-sm { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.display em { font-style: italic; color: var(--accent); }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 1rem; }
.eyebrow-light { color: #e3b878; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 46ch; }
.muted { color: var(--muted); font-size: .95rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .9em 1.5em; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: .95rem; text-decoration: none; line-height: 1.2; transition: background .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn .i { transition: transform .2s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: #d29b4d; color: var(--navy); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost-light { border-color: rgb(255 255 255 / .3); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.btn-row-center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; font-size: .92rem; color: var(--brand); text-decoration: none; }
.link-arrow .i { transition: transform .2s var(--ease); }
a:hover .link-arrow .i, .link-arrow:hover .i { transform: translateX(4px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(250 248 244 / .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: #e3b878; font: 600 1.35rem/1 var(--serif); font-style: italic; }
.brand-text { display: flex; flex-direction: column; font: 600 1.2rem/1 var(--serif); letter-spacing: -.01em; }
.brand-text small { font: 600 .62rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.brand-light { color: #fff; }
.brand-light .brand-mark { background: var(--accent); color: var(--navy); }
.brand-light .brand-text small { color: rgb(255 255 255 / .55); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav ul a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: .95rem; text-decoration: none; }
.main-nav ul a:hover { color: var(--ink); background: var(--tint); }
.main-nav ul a[aria-current] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-cta { padding: .7em 1.2em; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; position: relative; border-radius: 10px; }
.menu-toggle span:not(.sr) { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), top .25s; }
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px var(--gutter) 28px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; }
  .main-nav ul a { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav ul a[aria-current] { box-shadow: none; color: var(--accent-2); }
  .nav-cta { padding: 1em; }
}

/* Sections */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-tint { background: var(--tint); }
.section-flush-top { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head > div { max-width: 640px; }
.section-intro { color: var(--ink-2); max-width: 44ch; margin: 0; }

.page-head { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px); }
.page-head .display { max-width: 18ch; font-size: clamp(2.3rem, 5vw, 3.9rem); }
.page-head .lead { margin-top: 1.25rem; max-width: 58ch; }
.page-head-dark { background: var(--navy); color: #fff; margin-bottom: 0; }
.page-head-dark .eyebrow { color: #e3b878; }
.page-head-dark .lead { color: rgb(255 255 255 / .75); }

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(48px, 6vw, 88px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy .lead { margin-top: 1.5rem; }
.hero-note { margin-top: 1.75rem; font-size: .85rem; color: var(--muted); letter-spacing: .02em; }
.hero-media { position: relative; margin: 0; }
.hero-media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 22px 22px 22px 120px; box-shadow: var(--shadow); }
.hero-badge { position: absolute; left: -28px; bottom: 36px; max-width: 250px; padding: 18px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.hero-badge strong { font: 500 2.2rem/1 var(--serif); color: var(--navy); }
.hero-badge span { font-size: .85rem; color: var(--ink-2); line-height: 1.4; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media img { aspect-ratio: 4 / 3; border-radius: 18px 18px 18px 72px; }
  .hero-badge { left: 16px; bottom: 16px; }
}

/* Stats */
.stats { border-block: 1px solid var(--line); background: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 32px 20px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { font: 500 clamp(2.2rem, 4vw, 3.2rem)/1 var(--serif); color: var(--navy); font-variant-numeric: tabular-nums; }
.stat-label { font-size: .85rem; color: var(--muted); font-weight: 500; }
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 24px 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Marquee */
.marquee { padding-block: 36px; overflow: hidden; display: grid; gap: 18px; }
.marquee-label { text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 50s linear infinite; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font: 500 1.45rem/1 var(--serif); color: #8a8f98; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Program cards */
.prog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.prog-card { position: relative; display: flex; flex-direction: column; padding: 30px 28px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.prog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.prog-card h3 { font: 500 1.55rem/1.15 var(--serif); margin: 20px 0 12px; }
.prog-card p { color: var(--ink-2); font-size: .98rem; flex: 1; }
.prog-num { font: 500 .85rem/1 var(--sans); letter-spacing: .1em; color: var(--accent-2); }
.prog-meta { font-size: .82rem; color: var(--muted); margin-bottom: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.prog-card-ai { background: var(--navy); border-color: var(--navy); color: #fff; }
.prog-card-ai:hover { color: #fff; }
.prog-card-ai p { color: rgb(255 255 255 / .75); }
.prog-card-ai .prog-meta { color: rgb(255 255 255 / .6); border-color: rgb(255 255 255 / .15); }
.prog-card-ai .prog-num { color: #e3b878; }
.prog-card-ai .link-arrow { color: #e3b878; }
.badge { position: absolute; top: 24px; right: 24px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--accent); color: var(--navy); }
.prog-grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-top { align-items: start; }
.split-media { margin: 0; }
.split-media img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.why-list { margin-top: 2rem; display: grid; gap: 0; }
.why-item { padding: 22px 0; border-top: 1px solid var(--line); }
.why-item h3 { font: 500 1.35rem/1.2 var(--serif); margin-bottom: 8px; }
.why-item p { margin: 0; color: var(--ink-2); }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split-media img { aspect-ratio: 16 / 10; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { padding: 28px 24px; border-top: 2px solid var(--navy); }
.step-num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--tint); font: 600 1rem/1 var(--serif); color: var(--navy); margin-bottom: 18px; }
.step h3 { font: 500 1.4rem/1.2 var(--serif); margin-bottom: 8px; }
.step p { color: var(--ink-2); margin: 0; font-size: .97rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step { padding-inline: 0; } }

/* AI band */
.ai-band { background: var(--navy); color: #fff; padding-block: clamp(64px, 9vw, 112px); position: relative; overflow: hidden; }
.ai-band::before { content: ''; position: absolute; width: 560px; height: 560px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgb(192 138 62 / .22), transparent 65%); }
.ai-band-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.ai-band p { color: rgb(255 255 255 / .75); margin: 1.25rem 0 2rem; max-width: 52ch; }
.ai-band-list { display: grid; gap: 0; }
.ai-band-list li { display: flex; gap: 18px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid rgb(255 255 255 / .12); font: 500 1.2rem/1.3 var(--serif); }
.ai-band-list span { font: 600 .8rem/1 var(--sans); color: #e3b878; letter-spacing: .08em; }
@media (max-width: 880px) { .ai-band-grid { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.gallery figure:first-child { grid-row: span 2; }
.gallery figure:first-child img { aspect-ratio: 4 / 4.2; }
.gallery figure:nth-child(2) img { aspect-ratio: 16 / 10; }
.gallery-quote { margin: 0; padding: 32px; background: var(--tint); border-radius: var(--radius); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.gallery-quote p { font: italic 400 1.3rem/1.45 var(--serif); margin: 0; }
.gallery-quote footer { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); }
.gallery-quote strong { color: var(--ink); font-size: .95rem; }
@media (max-width: 880px) { .gallery { grid-template-columns: 1fr; } .gallery figure:first-child { grid-row: auto; } .gallery figure:first-child img { aspect-ratio: 16 / 11; } }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-wrap .section-intro { margin-top: 1.25rem; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 22px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .i { transition: transform .25s var(--ease); color: var(--accent-2); }
.faq-item[open] summary .i { transform: rotate(45deg); }
.faq-item p { color: var(--ink-2); padding-bottom: 22px; margin: 0; max-width: 60ch; }
@media (max-width: 880px) { .faq-wrap { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; padding-block: clamp(64px, 8vw, 104px); }
.cta-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 88px); align-items: end; }
.cta-inner .display { font-size: clamp(2.1rem, 4.2vw, 3.4rem); max-width: 14ch; }
.cta-side p { color: rgb(255 255 255 / .75); margin: 0; }
.cta-side .btn-row { margin-top: 1.75rem; }
@media (max-width: 880px) { .cta-inner { grid-template-columns: 1fr; } }

/* Program detail */
.crumbs { display: flex; gap: 10px; font-size: .88rem; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 0; margin: 2.5rem 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; max-width: 720px; }
.facts div { flex: 1 1 180px; padding: 18px 22px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts dt { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font: 500 1.15rem/1.3 var(--serif); }
.detail { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 6vw, 80px); align-items: start; }
.detail-block { padding: 32px 0; border-top: 1px solid var(--line); }
.detail-block h2 { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; font-family: var(--sans); }
.detail-block p { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; margin: 0; }
.pull { margin: 16px 0 40px; padding: 4px 0 4px 28px; border-left: 3px solid var(--accent); font: italic 400 clamp(1.35rem, 2.4vw, 1.7rem)/1.4 var(--serif); color: var(--navy); }
.pull-sm { font-size: 1.2rem; margin: 24px 0 0; }
.checks { display: grid; gap: 14px; margin: 1.25rem 0; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks .i { color: #fff; background: var(--brand); border-radius: 50%; padding: 4px; width: 24px; height: 24px; margin-top: 2px; stroke-width: 2.4; }
.detail-aside { position: sticky; top: 100px; }
.aside-card { padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.aside-card h2 { font: 500 1.45rem/1.2 var(--serif); margin-bottom: 10px; }
.aside-card p { color: var(--ink-2); font-size: .97rem; }
.aside-link { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 16px; font-weight: 600; text-decoration: none; font-size: .95rem; }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } .detail-aside { position: static; } }

/* AI page */
.partner-card { padding: clamp(28px, 4vw, 44px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.partner-role { font-weight: 600; color: var(--brand); margin: 8px 0 16px; }
.partner-creds { font-size: .92rem; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.module { padding: 28px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.module h3 { font: 500 1.35rem/1.2 var(--serif); margin: 16px 0 10px; }
.module p { color: var(--ink-2); font-size: .97rem; margin: 0; }
@media (max-width: 960px) { .module-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .module-grid { grid-template-columns: 1fr; } }

/* About */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.about-media { position: sticky; top: 100px; }
.portrait { margin: 0; }
.portrait img { border-radius: 18px 18px 18px 96px; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; width: 100%; }
.about-inset { margin: -72px 0 0 auto; width: 58%; position: relative; }
.about-inset img { border-radius: var(--radius); border: 6px solid var(--paper); aspect-ratio: 16 / 11; object-fit: cover; }
.about-copy .display { font-size: clamp(2.2rem, 4.4vw, 3.5rem); margin-bottom: 1.5rem; }
.about-copy .lead { margin-bottom: 1.5rem; max-width: none; }
.about-copy > p { color: var(--ink-2); }
.tag-block { margin-top: 2rem; }
.tag-block h2 { font: 700 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 14px; border-radius: 999px; background: var(--tint); font-size: .86rem; font-weight: 500; color: var(--ink-2); }
.tags-outline li { background: transparent; border: 1px solid var(--line); }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } .about-media { position: static; max-width: 460px; } }

/* Team */
.team-list { display: grid; gap: 24px; }
.member { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 4vw, 56px); padding: clamp(24px, 3.5vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.member-photo { aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: linear-gradient(150deg, var(--navy), var(--navy-2)); display: grid; place-items: center; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.member-photo span { font: italic 500 3.5rem/1 var(--serif); color: #e3b878; }
.member-role { color: var(--brand); font-weight: 600; margin: 6px 0 16px; }
.member-body > p { color: var(--ink-2); }
.member .tags { margin: 18px 0; }
.creds { border-block: 1px solid var(--line); margin: 18px 0; }
.creds summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: .95rem; }
.creds summary::-webkit-details-marker { display: none; }
.creds[open] summary .i { transform: rotate(45deg); }
.creds ul { padding-bottom: 14px; display: grid; gap: 6px; }
.creds li { padding-left: 18px; position: relative; font-size: .93rem; color: var(--ink-2); }
.creds li::before { content: ''; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 720px) { .member { grid-template-columns: 1fr; } .member-photo { max-width: 200px; } }

/* Clients */
.client-group { padding-block: 36px; border-top: 1px solid var(--line); }
.client-h { font: 500 1.5rem/1.2 var(--serif); margin-bottom: 22px; display: flex; align-items: baseline; gap: 12px; }
.client-h span { font: 600 .8rem/1 var(--sans); color: var(--muted); }
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 10px; }
.client-grid li { padding: 16px 18px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.client-grid strong { font-weight: 600; font-size: .98rem; }
.client-grid span { font-size: .8rem; color: var(--muted); }
.client-grid-featured li { padding: 20px; }
.client-grid-featured strong { font: 500 1.2rem/1.2 var(--serif); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.form { padding: clamp(24px, 4vw, 44px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .88rem; font-weight: 600; }
.field label b { color: var(--accent-2); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); transition: border-color .2s, background .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7380' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.field.has-error input, .field.has-error textarea { border-color: #b42318; }
.field-error { font-size: .82rem; color: #b42318; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.form-status { margin: 0; font-weight: 600; }
.form-status.is-error { color: #b42318; }
.form-status.is-ok { color: #1a7f4b; }
.hp { position: absolute; left: -9999px; }
.contact-aside { display: grid; gap: 32px; }
.contact-aside .aside-card { box-shadow: none; }
.contact-list { display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .i { margin-top: .25em; color: var(--accent-2); }
.contact-list-lg { margin-top: 18px; gap: 16px; }
.contact-list-lg a { font-weight: 600; text-decoration: none; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.center-page { text-align: center; min-height: 60vh; display: grid; align-items: center; }
.center-page .lead { margin-inline: auto; margin-top: 1.25rem; }
.big-check { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--brand); color: #fff; margin-bottom: 28px; }
.big-check .i { width: 34px; height: 34px; stroke-width: 2.2; }

/* Footer */
.site-footer { background: #0b1828; color: rgb(255 255 255 / .7); padding-top: clamp(56px, 7vw, 88px); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer-brand p { margin-top: 20px; max-width: 34ch; }
.footer-h { font: 700 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: rgb(255 255 255 / .7); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .contact-list .i { color: #e3b878; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; border-top: 1px solid rgb(255 255 255 / .1); font-size: .82rem; color: rgb(255 255 255 / .45); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Chat widget */
.chat { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 60; }
.chat-launch { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; box-shadow: 0 10px 30px -8px rgb(16 35 58 / .5); transition: transform .2s var(--ease); }
.chat-launch:hover { transform: translateY(-2px); }
.chat-launch .i { width: 20px; height: 20px; color: #e3b878; }
.chat.is-open .chat-launch { display: none; }
.chat-panel { position: absolute; right: 0; bottom: 0; width: min(390px, calc(100vw - 40px)); height: min(580px, calc(100dvh - 120px)); display: flex; flex-direction: column; background: #fff; border-radius: 18px; box-shadow: 0 24px 64px -16px rgb(16 35 58 / .45); overflow: hidden; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; background: var(--navy); color: #fff; }
.chat-head div { display: flex; flex-direction: column; }
.chat-head strong { font: 500 1.15rem/1.2 var(--serif); }
.chat-head span { font-size: .78rem; color: rgb(255 255 255 / .6); }
.chat-x { border: 0; background: transparent; color: #fff; padding: 6px; border-radius: 8px; display: grid; }
.chat-x:hover { background: rgb(255 255 255 / .1); }
.chat-log { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: var(--paper); }
.msg { max-width: 85%; padding: 11px 15px; border-radius: 16px; font-size: .94rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg-user { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg-error { border-color: #f1c4bf; background: #fdf3f2; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 999px; padding: 7px 12px; font-size: .84rem; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; align-self: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-form input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 999px; }
.chat-form input:focus { outline: none; border-color: var(--brand); }
.chat-form button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; }
.chat-form button:disabled { opacity: .5; cursor: default; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

[hidden] { display: none !important; }
@media (min-width: 720px) { .prog-grid > .prog-card-ai { grid-column: span 2; } .prog-card-ai p { max-width: 60ch; } }
