/* ============================================================
   Azhar Uddin — one stylesheet for every page.
   Warm ivory ground, navy ink, a cognac accent taken from the portrait.
   ============================================================ */

:root {
  --ivory: #f7f5ef;
  --ivory-2: #efebe2;
  --surface: #ffffff;
  --ink: #101a33;
  --navy: #172f5a;
  --navy-2: #0f2146;
  --cognac: #9b5f34;
  --cognac-soft: #f4e9de;
  --cognac-light: #dcab7c;
  --text: #3d4453;
  --muted: #747a86;
  --line: #e3dfd5;
  --on-dark: #c7cfdd;
  --ok: #2d7650;   --ok-soft: #e4f2ea;
  --warn: #8a5a12; --warn-soft: #fbf0dc;
  --bad: #a23a3a;  --bad-soft: #fbe6e5;

  --head: "Archivo", "Segoe UI", system-ui, -apple-system, "Malgun Gothic", sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --radius: 10px;
  --wrap: 1200px;
  --shadow: 0 1px 2px rgba(16, 26, 51, .04), 0 6px 20px rgba(16, 26, 51, .05);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--ivory); color: var(--text); font: 16px/1.7 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--head); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--cognac); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
body > main { flex: 1 0 auto; }
.icon { width: 1em; height: 1em; flex-shrink: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.local { font-family: var(--body); font-weight: 400; font-size: 0.72em; color: var(--muted); letter-spacing: 0; text-transform: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
  font: 600 0.78rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { border-color: var(--ink); }
.btn .icon { width: 15px; height: 15px; transition: transform .15s; }
.btn:hover .icon { transform: translateX(2px); }
.btn-dark, .btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover, .btn-primary:hover { background: var(--navy); border-color: var(--navy); }
.btn-light { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
.btn-light:hover { background: #fff; border-color: #fff; }
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost-dark:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--muted); }
.btn-quiet:hover { color: var(--bad); border-color: transparent; }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 0.72rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Top bar ---------- */
.utility { background: var(--ink); color: var(--on-dark); font-size: 0.8rem; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.utility-contact { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.utility-contact li { display: flex; align-items: center; gap: 7px; }
.utility-contact .icon { color: var(--cognac-light); width: 13px; height: 13px; }
.utility-contact a:hover { color: #fff; }
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(247, 245, 239, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); transition: box-shadow .25s; }
.topbar.scrolled { box-shadow: 0 6px 24px rgba(16, 26, 51, .08); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-sub { font-size: 0.72rem; color: var(--muted); letter-spacing: .04em; margin-top: 3px; white-space: nowrap; }
.logo-light .logo-name { color: #fff; }
.logo-light .logo-sub { color: var(--on-dark); }
.logo-light .logo-mark { background: var(--ivory); color: var(--ink); }
.topbar-inner { position: relative; display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px;
  background: var(--ink); color: #fff; font: 800 0.92rem var(--head); letter-spacing: .02em;
  box-shadow: inset 0 -3px 0 var(--cognac);
}
.logo-name { font: 700 1.02rem var(--head); color: var(--ink); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.menu { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.menu a:not(.btn) { position: relative; padding: 8px 12px; font-size: 0.9rem; color: var(--text); white-space: nowrap; transition: color .15s; }
.menu a:not(.btn):hover { color: var(--ink); }
.menu a[aria-current="page"]:not(.btn) { color: var(--ink); font-weight: 600; }
.menu a[aria-current="page"]:not(.btn)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--cognac); }
.menu-cta { margin-left: 16px; }
.menu-toggle { display: none; margin-left: auto; width: 42px; height: 42px; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.menu-toggle .icon { width: 22px; height: 22px; }

/* ---------- Page banner ---------- */
.banner {
  color: var(--on-dark); border-bottom: 3px solid var(--cognac);
  background: radial-gradient(800px 420px at 90% -10%, rgba(220, 171, 124, .12), transparent 60%), linear-gradient(160deg, var(--navy), var(--navy-2) 70%);
}
.banner-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-block: 76px 80px; }
.banner h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; text-transform: uppercase; letter-spacing: -0.005em; margin: 14px 0 18px; }
.banner-lead { font-size: 1.08rem; max-width: 40em; color: var(--on-dark); margin: 0; }
.banner-aside { display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; margin-bottom: 26px; }
.crumbs a { color: var(--on-dark); }
.crumbs a:hover { color: #fff; }
.crumbs span:last-child { color: #fff; }

.eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
  font: 600 0.74rem var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--cognac);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; flex-shrink: 0; }
.banner .eyebrow { color: var(--cognac-light); }

/* ---------- Home hero ---------- */
/* The whole hero is painted in the portrait's own charcoal studio tones (sampled from the photo),
   and the photo fades out on every side, so there is no edge where the picture ends. */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background:
    radial-gradient(ellipse 30% 62% at 77% 52%, #3e4246 0%, #33373b 45%, rgba(33, 37, 40, 0) 100%),
    radial-gradient(ellipse 34% 30% at 77% 100%, rgba(72, 80, 84, .7), transparent 75%),
    linear-gradient(90deg, #15181b 0%, #1b1f22 45%, #1f2326 100%);
}
.hero::before { /* warm cognac light from the upper right, echoing the accent colour */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px 320px at 88% -6%, rgba(220, 171, 124, .14), transparent 70%);
}
.hero::after { /* faint film grain so the gradients never band */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: 640px; }
.hero-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 72px 48px 72px max(24px, calc((100vw - var(--wrap)) / 2 + 24px));
}
.hero .eyebrow { letter-spacing: .12em; font-size: 0.7rem; color: var(--cognac-light); }
.hero-name { font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 800; text-transform: uppercase; line-height: 1.02; letter-spacing: -0.01em; color: #fff; }
.hero-local { font-size: 1.05rem; color: #a9b0ba; margin: 10px 0 22px; }
.hero-lead { font-size: 1.12rem; max-width: 32em; margin-bottom: 32px; color: #d3d8df; }
.hero .btn:not(.btn-dark) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero .btn:not(.btn-dark):hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.hero .btn-dark { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
.hero .btn-dark:hover { background: #fff; border-color: #fff; }
.hero-panel { position: relative; display: flex; align-items: flex-end; justify-content: center; padding: 40px 24px 0; }
.hero-photo { position: relative; margin: 0; width: 100%; max-width: 480px; }
.hero-photo img {
  width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 17%, #000 84%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 9%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 17%, #000 84%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 9%, #000 90%, transparent 100%);
  mask-composite: intersect;
}
.hero-facts-bar { background: var(--ink); color: var(--on-dark); }
.hero-facts { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-facts > div { padding: 24px 24px 26px 0; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid rgba(255, 255, 255, .1); }
.hero-facts > div + div { padding-left: 24px; }
.hero-facts > div:last-child { border-right: 0; }
.hero-facts span { font: 600 0.7rem var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--cognac-light); }
.hero-facts strong { color: #fff; font-weight: 500; font-size: 0.95rem; line-height: 1.4; }

/* ---------- Content blocks ---------- */
.block { padding-block: 88px; }
.block + .block { padding-top: 0; }
.block.block-alt { background: var(--ivory-2); padding-top: 88px; }
.block-alt + .block { padding-top: 88px; }
.block-title { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 36px; }
.block-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.block-head .block-title { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.split .block-title { margin-bottom: 14px; }
.split .muted { margin-bottom: 22px; max-width: 26em; }
.stack { display: flex; flex-direction: column; gap: 24px; }

/* Journey */
.journey { list-style: none; border-left: 1px solid var(--line); margin-left: 6px; display: flex; flex-direction: column; gap: 32px; }
.journey li { position: relative; padding-left: 30px; }
.journey li::before { content: ""; position: absolute; left: -6px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--ivory); border: 2px solid var(--cognac); }
.journey-year { font: 600 0.85rem var(--body); letter-spacing: .06em; color: var(--cognac); }
.journey h3 { font-size: 1.15rem; margin: 4px 0 2px; }
.journey p { font-size: 0.9rem; color: var(--muted); }
.journey-head { display: flex; align-items: flex-start; gap: 14px; }
.journey-logo { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; object-fit: cover; flex-shrink: 0; margin-top: 4px; }

/* Featured topics (YouTube) */
.block-dark { background: radial-gradient(800px 360px at 90% 0%, rgba(220, 171, 124, .10), transparent 70%), var(--ink); color: var(--on-dark); padding-top: 88px !important; }
.block-dark + .block { padding-top: 88px; }
.block-dark .block-title { color: #fff; margin-bottom: 12px; }
.block-dark .eyebrow { color: var(--cognac-light); }
.block-intro { max-width: 36em; margin: 0; }
.talks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.talk { display: flex; flex-direction: column; gap: 6px; color: #fff; }
.talk-thumb { position: relative; display: block; aspect-ratio: 9 / 14; border-radius: 12px; overflow: hidden; background: #0b1224; margin-bottom: 8px; }
.talk-thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform .5s ease, opacity .3s; opacity: .9; }
.talk-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 16, 32, .75), transparent 45%); }
.talk-play {
  position: absolute; left: 12px; bottom: 12px; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); transition: transform .25s, background .25s;
}
.talk-play .icon { width: 16px; height: 16px; margin-left: 2px; }
/* Custom thumbnails already carry their own shading and headline: play button sits over the photo instead. */
.talk-thumb-custom::after { display: none; }
.talk-thumb-custom img { opacity: 1; }
.talk-thumb-custom .talk-play { left: 50%; top: 30%; bottom: auto; margin-left: -19px; opacity: 0; transition: opacity .25s, transform .25s, background .25s; }
.talk:hover .talk-thumb-custom .talk-play, .talk:focus-visible .talk-thumb-custom .talk-play { opacity: 1; }
.talk-thumb-custom + .talk-topic { display: none; }
.talk:hover .talk-thumb img { transform: scale(1.08); opacity: 1; }
.talk:hover .talk-play { transform: scale(1.1); background: var(--cognac-light); }
/* Achievements */
.achievements { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.achievement { display: flex; flex-direction: column; }
.achievement-img { display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: #fff; cursor: zoom-in; overflow: hidden; }
.achievement-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.achievement-img:hover img { transform: scale(1.04); }
.achievement-year { display: inline-block; margin-bottom: 8px; font: 600 0.72rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--cognac); }
.achievement h3 { font-size: 1.1rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.gallery-item { margin: 0; }
.gallery-item button { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--ivory-2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .3s; }
.gallery-item button:hover img { transform: scale(1.05); filter: brightness(1.05); }
.gallery-item figcaption { margin-top: 8px; font-size: 0.88rem; color: var(--ink); line-height: 1.4; }
.gallery-item figcaption span { display: block; color: var(--muted); font-size: 0.8rem; }
.doc-noscan { grid-template-columns: 1fr; }

.talk-topic { font: 600 0.68rem var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--cognac-light); }
.talk-title { font-size: 0.9rem; line-height: 1.4; font-weight: 500; }

.journey-pub {
  display: flex; align-items: flex-start; gap: 12px; max-width: 640px; margin-top: 12px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--cognac); border-radius: 8px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.journey-pub:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: var(--cognac); }
.journey-pub .icon { width: 17px; height: 17px; margin-top: 3px; color: var(--cognac); }
.journey-pub .icon:last-child { color: var(--muted); width: 14px; height: 14px; }
.journey-pub span { flex: 1; display: flex; flex-direction: column; }
.journey-pub strong { color: var(--ink); font-weight: 600; font-size: 0.9rem; line-height: 1.45; }
.journey-pub small { color: var(--muted); font-size: 0.8rem; margin-top: 2px; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h2, .card h3 { font-size: 1.2rem; }
.card-role { color: var(--cognac); font-weight: 500; font-size: 0.92rem; margin: 0; }
.card-role a { display: inline-flex; align-items: center; gap: 6px; }
.card-role a:hover { color: var(--ink); }
.card-text { color: var(--text); font-size: 0.92rem; margin-top: 6px; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; font: 600 0.78rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.card-link:hover { color: var(--cognac); }
.card-link-muted { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 6px; font-size: 0.74rem; font-weight: 500; border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.tag-status { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.pill { flex-shrink: 0; padding: 4px 12px; border-radius: 6px; background: var(--ivory-2); color: var(--ink); font-size: 0.8rem; font-weight: 500; white-space: nowrap; height: fit-content; }

.biz-card { display: flex; flex-direction: column; overflow: hidden; }
.biz-cover { height: 190px; display: grid; place-items: center; border-bottom: 1px solid var(--line); overflow: hidden; }
.biz-cover-contain { background: #fff; padding: 28px 40px; }
.biz-cover-contain img { max-height: 110px; width: auto; object-fit: contain; }
.biz-cover-cover img { width: 100%; height: 100%; object-fit: cover; }
.biz-cover-mono { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; }
.biz-cover-mono span { font: 800 1.6rem var(--head); letter-spacing: .06em; text-transform: uppercase; }

/* Research list on home */
.link-list { list-style: none; display: flex; flex-direction: column; }
.link-list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.link-list li:first-child a { border-top: 1px solid var(--line); }
.link-list strong { color: var(--ink); font-family: var(--head); font-weight: 600; line-height: 1.4; }
.link-list span { grid-column: 1; font-size: 0.85rem; color: var(--muted); }
.link-list .icon { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--muted); }
.link-list a:hover strong, .link-list a:hover .icon { color: var(--cognac); }

/* CTA */
.cta {
  text-align: center; color: var(--on-dark); border-radius: 16px; padding: 72px 24px; border-bottom: 3px solid var(--cognac);
  background: radial-gradient(600px 300px at 50% 0%, rgba(220, 171, 124, .14), transparent 70%), linear-gradient(160deg, var(--navy), var(--navy-2));
}
.cta h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; text-transform: uppercase; margin-bottom: 14px; }
.cta p { max-width: 34em; margin: 0 auto 30px; }
.cta .actions { justify-content: center; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 96px; align-items: start; }
.about-main { max-width: 760px; }
.about-main p { font-size: 1.02rem; }
.about-main .lead-text { font-size: 1.1rem; color: var(--ink); }
.about-main .lead-text + h2 { margin-top: 56px; }
.rule-title { font-size: 1.4rem; font-weight: 600; margin-top: 36px; }
.rule-title::after { content: ""; display: block; width: 32px; height: 2px; background: var(--cognac); margin: 14px 0 18px; }
.about-side { position: sticky; top: 108px; display: flex; flex-direction: column; }
.about-side .eyebrow { margin-top: 30px; }
.about-side .eyebrow:first-child { margin-top: 0; }
.about-side > p:not(.eyebrow) { color: var(--ink); }
.plain-list { list-style: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 3px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 0.78rem; font-weight: 500; color: var(--ink); background: var(--surface); }
.side-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Experience */
.timeline { list-style: none; position: relative; display: flex; flex-direction: column; gap: 28px; padding-left: 44px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 18px; bottom: 18px; width: 1px; background: var(--line); }
.timeline-card { position: relative; padding: 28px 30px; }
.timeline-card::before { content: ""; position: absolute; left: -44px; top: 34px; width: 13px; height: 13px; border-radius: 50%; background: var(--ivory); border: 2px solid var(--cognac); }
.timeline-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 14px; }
.timeline-title { flex: 1; min-width: 0; }
.org-logo { width: 56px; height: 56px; border-radius: 10px; border: 1px solid var(--line); object-fit: cover; background: #fff; flex-shrink: 0; }
.org-logo-mono { display: grid; place-items: center; background: var(--ink); color: #fff; font: 800 1.3rem var(--head); border-color: var(--ink); }
.timeline-card h2 { font-size: 1.3rem; font-weight: 600; margin-bottom: 4px; }
.timeline-card .eyebrow { margin-top: 20px; }
.bullets { list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.bullets li::marker { color: var(--cognac); }

.research-card { padding: 30px; }
.research-card .timeline-head { justify-content: space-between; }
.research-card h2 { font-size: 1.3rem; font-weight: 600; line-height: 1.35; margin-bottom: 6px; }
.research-card .card-role { margin-bottom: 14px; }
.research-card .chips { margin-top: 18px; }
.pub-authors { color: var(--ink); font-size: 0.92rem; margin: 2px 0 2px; }
.pub-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.pub-doi { font-size: 0.85rem; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.pub-doi:hover { color: var(--cognac); }
.cv-item h3 a:hover { color: var(--cognac); }

/* Business page: one section per venture */
.subnav { position: sticky; top: 76px; z-index: 20; background: rgba(247, 245, 239, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.subnav-inner { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.subnav a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 0.88rem; font-weight: 500; white-space: nowrap; transition: border-color .2s, background .2s; }
.subnav a:hover { border-color: var(--ink); }
.subnav a span { font: 600 0.72rem var(--body); color: var(--cognac); letter-spacing: .06em; }
.biz-feature { padding-block: 88px; scroll-margin-top: 140px; }
.biz-feature + .biz-feature { border-top: 1px solid var(--line); }
.biz-feature-alt { background: var(--ivory-2); }
.biz-feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 72px; align-items: center; }
.biz-feature-alt .biz-logo { order: 2; }
.biz-logo {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
}
.biz-logo-contain { padding: 12% 14%; }
.biz-logo-contain img { max-height: 100%; width: auto; object-fit: contain; transition: transform .5s ease; }
.biz-logo-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.biz-logo:hover img { transform: scale(1.04); }
.biz-logo-mono { font: 800 2rem var(--head); color: var(--ink); text-transform: uppercase; letter-spacing: .06em; }
.biz-info h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; text-transform: uppercase; }
.biz-tagline { font: 500 1.05rem var(--body); color: var(--cognac); margin: 10px 0 18px; }
.biz-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin: 24px 0; padding-block: 20px; border-block: 1px solid var(--line); }
.biz-facts dt { font-size: 0.7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.biz-facts dd { margin: 2px 0 0; color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.biz-actions { margin-top: 28px; }
.biz-actions span.btn { cursor: default; color: var(--muted); }
.biz-extra { grid-column: 1 / -1; order: 3; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px 72px; padding-top: 36px; border-top: 1px solid var(--line); }
.biz-offices { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.biz-offices li { display: flex; gap: 12px; align-items: flex-start; }
.biz-offices li > .icon { color: var(--cognac); flex: none; margin-top: 3px; }
.biz-offices div { display: flex; flex-direction: column; gap: 2px; font-size: 0.93rem; }
.biz-offices strong { color: var(--ink); font-weight: 600; }
.biz-offices .muted { font-size: 0.85rem; }
.biz-map { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 0.82rem; font-weight: 600; color: var(--navy); }
.biz-map .icon { width: 12px; height: 12px; }
.biz-map:hover { color: var(--cognac); }
.biz-licences { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 170px)); gap: 16px; }
.licence {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding: 12px; cursor: zoom-in;
  font: inherit; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.licence:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(16, 26, 51, .12); }
.licence img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; margin-bottom: 6px; border: 1px solid var(--line); background: #fff; }
.licence-type { font-size: 0.82rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.licence-no { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.licence-type + .licence-no { margin-top: 2px; }

/* Credentials */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 540px), 1fr)); gap: 24px; }
.doc { display: grid; grid-template-columns: 190px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.doc-preview {
  display: grid; place-items: center; padding: 22px 18px; border: 0; border-right: 1px solid var(--line);
  background: var(--ivory-2); cursor: zoom-in;
}
.doc-preview img { max-height: 230px; width: auto; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 8px 18px rgba(16, 26, 51, .12); transition: transform .2s; }
.doc-preview:hover img { transform: translateY(-3px); }
.doc-body { padding: 24px 26px; display: flex; flex-direction: column; min-width: 0; }
.doc-type { font: 600 0.72rem var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--cognac); margin-bottom: 8px; }
.doc h2 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.doc-local { color: var(--muted); font-size: 0.9rem; margin: 4px 0 16px; }
.doc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 0 0 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.doc-meta dt { font-size: 0.7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.doc-meta dd { margin: 2px 0 0; color: var(--ink); font-size: 0.9rem; font-weight: 500; overflow-wrap: anywhere; }
.doc-status { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); }
.doc-status .icon { width: 15px; height: 15px; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.doc-actions .icon { width: 14px; height: 14px; }
.doc-downloads { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 14px 0 0; font-size: 0.85rem; color: var(--muted); }
.doc-downloads .icon { width: 14px; height: 14px; margin-right: 2px; }
.doc-downloads a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.doc-downloads a:hover { color: var(--cognac); text-decoration-color: currentColor; }
.record-list { list-style: none; overflow: hidden; }
.record-list li { display: flex; justify-content: space-between; gap: 24px; padding: 18px 24px; }
.record-list li + li { border-top: 1px solid var(--line); }
.record-list h3 { font-size: 1.02rem; font-weight: 600; }
.record-list p { margin: 2px 0 0; font-size: 0.9rem; }
.record-list > li > span { white-space: nowrap; font-size: 0.9rem; }

/* CV */
.cv { max-width: 820px; }
.cv-contact { padding-bottom: 32px; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.cv-section { padding-block: 36px; border-bottom: 1px solid var(--line); }
.cv-section:last-child { border-bottom: 0; }
.cv-label { font: 600 0.8rem var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--cognac); margin-bottom: 22px; }
.cv-item { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.cv-item:last-child { margin-bottom: 0; }
.cv-item h3 { font-size: 1.05rem; font-weight: 600; }
.cv-item p { margin: 2px 0 0; color: var(--ink); }
.cv-item p.muted { color: var(--muted); font-size: 0.92rem; }
.cv-item > span { white-space: nowrap; font-size: 0.92rem; }
.cv-item .bullets { margin-top: 8px; }
.cv-langs { display: flex; gap: 48px; flex-wrap: wrap; }
.cv-langs h3 { font-size: 1.05rem; font-weight: 600; }
.cv-langs p { margin: 0; }

/* Files */
.file-list { list-style: none; overflow: hidden; }
.file-list li + li { border-top: 1px solid var(--line); }
.file-list a { display: flex; align-items: center; gap: 16px; padding: 18px 22px; }
.file-list a:hover { background: var(--ivory); }
.file-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; background: var(--cognac-soft); color: var(--cognac); flex-shrink: 0; }
.file-icon .icon { width: 20px; height: 20px; }
.file-name { flex: 1; min-width: 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; display: flex; flex-direction: column; }
.file-name small { color: var(--muted); font-weight: 400; font-size: 0.82rem; }
.file-dl { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font: 600 0.75rem var(--body); letter-spacing: .08em; text-transform: uppercase; }
.empty-card { padding: 40px; text-align: center; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  color: var(--on-dark); border-top: 3px solid var(--cognac);
  background: radial-gradient(900px 360px at 85% 0%, rgba(220, 171, 124, .08), transparent 70%), var(--ink);
}
.footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; padding-block: 56px; background: linear-gradient(rgba(255, 255, 255, .1), rgba(255, 255, 255, .1)) no-repeat center bottom / calc(100% - 48px) 1px; }
.footer-cta .footer-label { margin-bottom: 10px; }
.footer-cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; max-width: 22em; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1.1fr 0.9fr 1.1fr; gap: 48px; padding-block: 64px 52px; }
.footer-brand .logo { margin-bottom: 18px; }
.footer-bio { font-size: 0.92rem; max-width: 26em; margin-bottom: 22px; }
.footer-label { font: 600 0.72rem var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--cognac-light); margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 0.93rem; }
.footer-links-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.footer-links a { display: inline-flex; align-items: center; gap: 6px; transition: color .15s, transform .15s; }
.footer-links a .icon { width: 12px; height: 12px; opacity: .6; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-links a:hover { transform: translateX(3px); }
.footer-contact { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 0.93rem; }
.footer-contact li { display: flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.footer-contact .icon { color: var(--cognac-light); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; font-size: 0.82rem; background: linear-gradient(rgba(255, 255, 255, .1), rgba(255, 255, 255, .1)) no-repeat center top / calc(100% - 48px) 1px; }
.footer-bottom a:hover { color: #fff; }

/* Social icon buttons */
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22); color: #fff; transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.social a:hover { background: var(--cognac); border-color: var(--cognac); transform: translateY(-2px); }
.social .icon { width: 17px; height: 17px; }
.social-mini a { width: 28px; height: 28px; border-color: transparent; color: var(--on-dark); }
.social-mini a:hover { background: rgba(255, 255, 255, .1); border-color: transparent; color: #fff; transform: none; }
.social-mini .icon { width: 15px; height: 15px; }
.social-light a { border-color: var(--line); color: var(--ink); background: var(--surface); }
.social-light a:hover { color: #fff; }
.menu-social { display: none; }

/* Admin shortcuts shown to you on public pages while signed in */
.admin-bar {
  position: fixed; left: 50%; bottom: 18px; z-index: 40; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 12px;
  background: rgba(16, 26, 51, .96); box-shadow: 0 12px 30px rgba(0, 0, 0, .25); font-size: 0.85rem;
}
.admin-bar-label { color: var(--cognac-light); font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase; padding: 0 10px; }
.admin-bar a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; color: #fff; white-space: nowrap; }
.admin-bar a:hover { background: rgba(255, 255, 255, .1); }
.admin-bar .icon { width: 15px; height: 15px; }
.admin-bar b { background: var(--cognac); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 0.75rem; }

/* Certificate viewer */
.viewer { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 94vh; overflow: visible; }
.viewer::backdrop { background: rgba(10, 16, 32, .88); }
.viewer img { max-height: 86vh; width: auto; margin: 0 auto; border-radius: 4px; background: #fff; }
.viewer-title { color: #fff; text-align: center; margin-top: 12px; font-size: 0.95rem; }
.viewer-close { position: absolute; top: -16px; right: -16px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.viewer-close .icon { width: 18px; height: 18px; }

/* ---------- Panels & forms (booking + admin) ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.panel h2 { font-size: 1.15rem; margin-bottom: 6px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form label, .form legend { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.form label .muted, .form small { font-weight: 400; }
input, select, textarea {
  font: inherit; font-size: 0.95rem; color: var(--ink); width: 100%;
  background: var(--ivory); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-height: 44px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cognac); box-shadow: 0 0 0 3px var(--cognac-soft); }
textarea { resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; accent-color: var(--ink); }
.form .check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
fieldset { border: 0; padding: 0; margin: 0; }
.radios { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.radios legend { margin-bottom: 8px; width: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: end; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--bad); background: var(--bad-soft); padding: 10px 14px; border-radius: 8px; margin: 0; }

/* Booking */
.book { padding-block: 64px 88px; }
.book-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head h2 { margin: 0; font-size: 1.1rem; }
.icon-btn { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.2rem; cursor: pointer; line-height: 1; }
.icon-btn:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-days span { text-align: center; font-size: 0.75rem; color: var(--muted); padding-bottom: 6px; }
.day { height: 46px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 0.95rem; color: var(--muted); opacity: .5; cursor: default; font-variant-numeric: tabular-nums; }
.day.open { color: var(--ink); font-weight: 600; opacity: 1; cursor: pointer; background: var(--ivory-2); }
.day.open:hover { background: var(--cognac-soft); color: var(--cognac); }
.day.today { box-shadow: inset 0 0 0 1px var(--line); }
.day.selected, .day.selected:hover { background: var(--ink); color: #fff; }
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; margin-top: 16px; }
.slot { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--ivory); font: 600 0.95rem var(--body); color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.slot:hover { border-color: var(--cognac); color: var(--cognac); }
.slot.selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.book-form { margin-top: 24px; }
.chosen { font: 600 1.15rem var(--head); color: var(--cognac); margin: 0; }
.done { max-width: 640px; }
.done h2 { font-size: 1.6rem; margin-bottom: 12px; }
.done .btn { margin-top: 8px; }

/* ---------- Admin ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: var(--ivory); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 64px; flex-wrap: wrap; }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a { padding: 6px 12px; border-radius: 6px; font-size: 0.9rem; color: var(--text); }
.nav-links a[aria-current="page"] { background: var(--ink); color: #fff; }
.admin-main { padding-block: 40px 64px; display: flex; flex-direction: column; gap: 16px; }
.admin-main h1 { font-size: 1.9rem; }
.admin-main a:not(.btn) { color: var(--cognac); }
.admin-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.narrow { max-width: 420px; width: 100%; margin: 40px auto 0; }
.narrow h1 { font-size: 1.6rem; margin-bottom: 8px; }
.narrow .form { margin-top: 18px; }
.narrow-form { max-width: 480px; }
.notice { padding: 12px 16px; border-radius: 8px; margin: 0; }
.notice-ok { background: var(--ok-soft); color: var(--ok); }
.notice-error { background: var(--bad-soft); color: var(--bad); }
.empty { color: var(--muted); padding: 28px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.segmented { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 3px; }
.admin-main .segmented a { padding: 5px 14px; border-radius: 6px; font-size: 0.85rem; color: var(--muted); }
.admin-main .segmented a[aria-current="page"] { background: var(--ink); color: #fff; }
.list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.row { display: grid; gap: 16px; padding: 16px 18px; border-top: 1px solid var(--line); align-items: start; }
.row:first-child { border-top: 0; }
.booking { grid-template-columns: 190px 1fr auto; }
.booking.status-cancelled { opacity: .6; }
.booking-when, .booking-who { display: flex; flex-direction: column; gap: 2px; font-size: 0.92rem; min-width: 0; }
.booking-who a { overflow-wrap: anywhere; }
.booking-msg { margin: 8px 0 0; padding: 10px 12px; background: var(--ivory); border-radius: 8px; }
.badge { display: inline-block; align-self: flex-start; margin-top: 4px; padding: 2px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; background: var(--ivory); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge-pending { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge-confirmed { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge-cancelled { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.row-actions form { margin: 0; }
.file { grid-template-columns: 1fr auto auto; align-items: center; }
.file .badge { margin: 0; }
.file-info { display: flex; flex-direction: column; min-width: 0; }
.admin-main .file-info a { overflow-wrap: anywhere; color: var(--ink); }
.admin-main .file-info a:hover { color: var(--cognac); }
.file-info .muted { font-size: 0.85rem; }
.inline-select select { min-height: 36px; padding: 4px 8px; font-size: 0.85rem; width: auto; }
.group-title { font: 600 0.76rem var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--cognac); margin-top: 12px; }
.group-title .muted { margin-left: 6px; }
.week { display: flex; flex-direction: column; gap: 8px; }
.week legend { margin-bottom: 10px; }
.week-row { display: grid; grid-template-columns: 140px 1fr auto 1fr; gap: 10px; align-items: center; max-width: 520px; }
.week-row input[type="time"] { min-height: 38px; padding: 6px 10px; }
.dropzone { position: relative; border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 28px 20px; text-align: center; align-items: center; cursor: pointer; background: var(--ivory); }
.dropzone:hover, .dropzone:focus-within { border-color: var(--cognac); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.dropzone span { font-weight: 500; overflow-wrap: anywhere; }
.upload-opts { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; }
.upload-opts label:first-child { min-width: 200px; }
.upload-opts .check { min-height: 44px; }
.nav-links .nav-site { color: var(--cognac); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color .2s; }
.admin-main a.stat-card { color: var(--ink); }
.stat-card:hover { border-color: var(--ink); }
.stat-card span { font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat-card strong { font: 800 2rem var(--head); }
.stat-card strong small { font-size: 0.5em; color: var(--muted); font-weight: 600; }
.stat-card strong.ok { color: var(--ok); }
.stat-card strong.warn { color: var(--bad); }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.dash-booking { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.dash-booking > div { display: flex; flex-direction: column; font-size: 0.9rem; }
.dropzone-small { padding: 20px 16px; }
.howto ol { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.howto code { background: var(--ivory); padding: 1px 6px; border-radius: 4px; font-size: 0.85em; }
.smtp { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; background: var(--ivory); }
.smtp summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.smtp[open] summary { margin-bottom: 10px; }
.smtp .grid-2 { margin-top: 12px; }
.admin-main h2 { font-size: 1.15rem; }
.admin-main .form h2 { margin-top: 8px; }

/* ---------- Motion (only when html.anim is set: JS on, reduced motion off) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.anim .hero-text > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.anim .hero-text > :nth-child(2) { animation-delay: .08s; }
.anim .hero-text > :nth-child(3) { animation-delay: .16s; }
.anim .hero-text > :nth-child(4) { animation-delay: .24s; }
.anim .hero-text > :nth-child(5) { animation-delay: .32s; }
.anim .hero-text > :nth-child(6) { animation-delay: .40s; }
.anim .hero-photo { animation: settle 1.2s cubic-bezier(.2, .7, .2, 1) .1s both; }
.anim .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.anim .reveal.in { opacity: 1; transform: none; }
.card, .doc { transition: transform .25s ease, box-shadow .25s ease, opacity .7s cubic-bezier(.2, .7, .2, 1); }
.card:hover, .doc:hover, .anim .card.reveal.in:hover, .anim .doc.reveal.in:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(16, 26, 51, .04), 0 18px 40px rgba(16, 26, 51, .10); }
/* Long cards and lists stay put on hover. */
.timeline-card:hover, .record-list:hover, .file-list:hover, .research-card:hover,
.anim .reveal.in.timeline-card:hover, .anim .reveal.in.record-list:hover, .anim .reveal.in.file-list:hover, .anim .reveal.in.research-card:hover { transform: none; }
.menu a:not(.btn)::after { transition: transform .25s ease; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .menu-toggle { display: grid; }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 24px 20px;
    background: var(--ivory); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(16, 26, 51, .08);
  }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 11px 4px; border-bottom: 1px solid var(--line); }
  .menu a[aria-current="page"]:not(.btn)::after { left: auto; right: 4px; top: 50%; bottom: auto; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-50%); }
  .menu-cta { margin: 14px 0 0; }
  .menu.open .menu-social { display: flex; justify-content: center; margin-top: 14px; }
  .menu-social a { border-color: var(--line); color: var(--ink); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 48px 24px 56px; }
  .hero-panel { order: -1; padding: 32px 24px 0; }
  .hero { background:
      radial-gradient(ellipse 70% 34% at 50% 26%, #3e4246 0%, #33373b 45%, rgba(33, 37, 40, 0) 100%),
      linear-gradient(180deg, #1f2326 0%, #1b1f22 60%, #15181b 100%); }
  .hero-photo { max-width: 320px; }
  .biz-feature { padding-block: 64px; }
  .biz-feature-grid { grid-template-columns: 1fr; gap: 36px; }
  .biz-feature-alt .biz-logo { order: 0; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts > div, .hero-facts > div + div { border-right: 0; padding: 18px 16px 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .split, .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .talks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .utility-contact li:first-child { display: none; }
  .banner-inner { flex-direction: column; align-items: flex-start; padding-block: 56px 60px; }
  .book-grid { grid-template-columns: 1fr; }
  .booking { grid-template-columns: 1fr; }
  .row-actions { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .wrap { padding-inline: 18px; }
  .topbar-inner { min-height: 64px; }
  .subnav { top: 64px; }
  .biz-facts { grid-template-columns: 1fr; }
  .menu { padding-inline: 18px; }
  .logo-name { font-size: 0.92rem; }
  .hero-text { padding-inline: 18px; }
  .block, .block.block-alt, .block-alt + .block { padding-block: 60px; }
  .block + .block { padding-top: 0; }
  .hero-facts { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 26px; }
  .timeline::before { left: 4px; }
  .timeline-card { padding: 22px; }
  .timeline-card::before { left: -28px; }
  .timeline-card .timeline-head { display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; }
  .timeline-card .timeline-head .pill { grid-column: 1 / -1; order: -1; justify-self: start; }
  .org-logo { width: 46px; height: 46px; }
  .doc { grid-template-columns: 1fr; }
  .doc-preview { border-right: 0; border-bottom: 1px solid var(--line); }
  .doc-preview img { max-height: 200px; }
  .cv-item, .record-list li { flex-direction: column; gap: 4px; }
  .cv-item > span, .record-list > li > span { order: -1; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; }
  .footer-cta { padding-block: 44px; }
  .talks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .utility-contact li:nth-child(2) { display: none; }
  .logo-sub { display: none; }
  .admin-bar { bottom: 10px; width: max-content; max-width: calc(100vw - 20px); }
  .admin-bar-label { display: none; }
  .admin-bar a { padding: 7px 9px; }
  .file-dl span { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .file { grid-template-columns: 1fr auto; }
  .file .row-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .week-row { grid-template-columns: 1fr 1fr auto 1fr; }
  .week-row .check { grid-column: 1 / -1; }
  .week-row input:first-of-type { grid-column: 1 / 3; }
  .panel { padding: 18px; }
  .cta { padding: 52px 20px; }
}

/* ---------- Print (CV page) ---------- */
@media print {
  .topbar, .site-footer, .banner-aside, .crumbs, .skip { display: none !important; }
  body { background: #fff; }
  .banner { background: none; color: #000; border: 0; }
  .banner-inner { padding: 0 0 12px; }
  .banner h1 { color: #000; margin: 0 0 6px; font-size: 26pt; }
  .banner .eyebrow { display: none; }
  .banner-lead { color: #333; }
  .block { padding: 0; }
  .cv-section { padding-block: 14px; break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
