:root {
  --ink: #0f1b1a; --paper: #f4f8f7; --card: #fff; --line: #d3e1de; --muted: #48625f;
  --teal: #0f766e; --teal-d: #0b3b39; --teal-m: #0f5f5a; --mint: #4fe3b5; --amber: #ffc93c;
  --indigo: #4338ca; --indigo-l: #e5e3fb; --coral: #e4572e; --pink: #d6336c; --sky: #0e7fb8; --emerald: #1f9d5c; --violet: #7048e8;
  --r: 20px; --font-d: "Bricolage Grotesque", system-ui, sans-serif; --font-b: "Hanken Grotesk", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--font-b); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-d); line-height: 1.12; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0 0 1rem; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.ms { font-family: "Material Symbols Outlined"; font-weight: 400; font-style: normal; font-size: 1.25em; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; vertical-align: middle; font-feature-settings: "liga"; -webkit-font-feature-settings: "liga"; }
.wrap { width: min(100% - 2rem, 1200px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 1rem; top: 0; transform: translateY(-300%); background: var(--amber); color: var(--ink); padding: .6rem 1rem; z-index: 100; border-radius: 0 0 .6rem .6rem; }
.skip:focus { transform: none; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244,248,247,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 8px 24px -14px rgba(15,27,26,.4); }
.bar { display: flex; align-items: center; gap: 1.5rem; height: 4.2rem; }
.brand { font: 700 1.1rem var(--font-d); color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .55rem; }
.brand .dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(15,118,110,.18); }
.nav { display: flex; gap: 1.6rem; margin-inline: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .96rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--teal); border-color: var(--teal); }
.bar-end { display: flex; align-items: center; gap: .6rem; }
.menu-btn { display: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; width: 2.8rem; height: 2.8rem; cursor: pointer; color: var(--ink); }
.mobile-nav { display: grid; padding: .5rem 1rem 1rem; border-top: 1px solid var(--line); background: var(--paper); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: .8rem .25rem; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .8rem 1.4rem; border-radius: 999px; font: 700 1rem var(--font-b); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .55rem 1.05rem; font-size: .92rem; }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn-xl { padding: 1.15rem 2rem; font-size: 1.15rem; }
.btn-amber { background: var(--amber); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(255,201,60,.9); }
.btn-amber:hover { background: #ffd666; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--teal-m); }
.btn-outline-ink { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline-ink:hover { background: rgba(15,27,26,.07); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* hero: deep teal with warm glows */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, #0a2f2d 0%, #0b3b39 45%, #0f5f5a 100%); }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; animation: drift 16s ease-in-out infinite alternate; }
.glow.g1 { width: 30rem; height: 30rem; background: var(--mint); opacity: .22; top: -10rem; right: -6rem; }
.glow.g2 { width: 24rem; height: 24rem; background: var(--amber); opacity: .16; bottom: -8rem; left: 30%; animation-duration: 21s; animation-delay: -7s; }
@keyframes drift { to { transform: translate(3rem, 2rem) scale(1.18); } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: center; padding-block: 4.5rem 3rem; }
.hero-copy > * { opacity: 0; transform: translateY(22px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-copy > :nth-child(1) { animation-delay: .05s } .hero-copy > :nth-child(2) { animation-delay: .15s } .hero-copy > :nth-child(3) { animation-delay: .3s }
.hero-copy > :nth-child(4) { animation-delay: .42s } .hero-copy > :nth-child(5) { animation-delay: .52s } .hero-copy > :nth-child(6) { animation-delay: .6s }
@keyframes rise { to { opacity: 1; transform: none; } }
.eyebrow { color: #b7efe0; font-weight: 600; margin-bottom: 1.2rem; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; }
.lead { font-size: 1.2rem; color: #d3ece6; max-width: 36rem; margin: 1.5rem 0 0; }
.lead.dark { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.trust { display: flex; align-items: center; gap: .6rem; margin-top: 1.4rem; color: #b7efe0; font-size: .98rem; }
.pulse { width: .65rem; height: .65rem; border-radius: 50%; background: var(--mint); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(79,227,181,.7); } 100% { box-shadow: 0 0 0 .8rem rgba(79,227,181,0); } }
.sides-links { display: flex; gap: 1.5rem; flex-wrap: wrap; font-weight: 700; }
.sides-links a { color: #fff; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.sides-links a:last-child { text-decoration-color: #9a93ff; }
.portrait { position: relative; margin: 0; max-width: 24rem; margin-inline: auto; animation: photo-in 1s cubic-bezier(.2,.7,.2,1) .25s both; }
.portrait img { position: relative; border-radius: 2rem; width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; background: #0b3b39; }
.portrait figcaption { position: absolute; left: -1.2rem; bottom: -1.2rem; background: #fff; color: var(--ink); border-radius: 1rem; padding: .8rem 1.1rem; box-shadow: 0 18px 40px -18px rgba(0,0,0,.5); max-width: 17rem; line-height: 1.3; }
.portrait figcaption strong { display: block; font-family: var(--font-d); }
.portrait figcaption span { font-size: .85rem; color: var(--muted); }
@keyframes photo-in { from { opacity: 0; transform: translateY(30px) rotate(2deg); } }
.highlights { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin: 0 auto; padding: 2rem 0 3rem; border-top: 1px solid rgba(255,255,255,.16); }
.highlights dt { font: 800 clamp(1.8rem, 4vw, 2.6rem) var(--font-d); }
.highlights dd { margin: .2rem 0 0; color: #b7efe0; font-size: .95rem; line-height: 1.35; }

/* ticker */
.marquee { overflow: hidden; background: var(--ink); color: #fff; }
.marquee-track { display: flex; gap: 2.4rem; width: max-content; padding: 1rem 0; animation: scroll-x 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 2.4rem; font: 600 1.15rem var(--font-d); white-space: nowrap; }
.marquee-track span::after { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--amber); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* sections */
.section { padding-block: 4.5rem; }
.section.tight { padding-block: 2.5rem 3.5rem; }
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; max-width: 22ch; }
.section-title.small { font-size: 1.8rem; }
.section-head { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: flex-end; margin-bottom: 2.2rem; }
.section-head .lead { margin: 0; max-width: 26rem; font-size: 1.1rem; }
.text-link { font-weight: 700; }
.band-soft { background: #e8f1ef; }
.band-dark { background: var(--ink); color: #fff; }

/* two sides */
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.2rem; }
.side { border-radius: 1.8rem; padding: 2.2rem; display: flex; flex-direction: column; gap: 1.2rem; }
.side h3 { font-size: 1.7rem; display: flex; align-items: center; gap: .7rem; }
.side .pitch { font-size: 1.1rem; margin: 0; }
.side li { padding: 1rem 0; border-top: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 18%, transparent); }
.side li p { margin: .2rem 0 0; opacity: .82; font-size: .98rem; }
.side .role { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; opacity: 1; font-size: 1.08rem; }
.side .role strong { font-family: var(--font-d); }
.side .role span { font-size: .88rem; opacity: .65; }
.side-link { margin-top: auto; font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; transition: gap .2s; }
.side-link:hover { gap: .8rem; }
.industry-side { background: var(--teal-d); color: #fff; }
.industry-side .ms:first-child { color: var(--amber); font-size: 1.6rem; }
.industry-side a { color: var(--amber); }
.academic-side { background: var(--indigo-l); color: #1e1b5c; }
.academic-side .ms:first-child { color: var(--indigo); font-size: 1.6rem; }
.academic-side a { color: var(--indigo); }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; display: flex; flex-direction: column; gap: .6rem; color: inherit; text-decoration: none; }
.lift { transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.lift:hover { transform: translateY(-6px); box-shadow: 0 22px 44px -22px rgba(11,59,57,.5); border-color: #9fc6c0; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.svc-head { display: flex; align-items: center; gap: .8rem; }
.svc-head h3 { font-size: 1.3rem; }
.chip { --c: var(--teal); width: 3rem; height: 3rem; border-radius: 1rem; background: var(--c); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; transition: transform .3s; }
.chip.big { width: 3.6rem; height: 3.6rem; border-radius: 1.2rem; margin-bottom: .6rem; }
.chip.alt { --c: var(--indigo); }
.svc:hover .chip { transform: rotate(8deg) scale(1.1); }
.svc p { margin: 0; color: var(--muted); }
.svc ul { display: grid; gap: .35rem; font-size: .95rem; margin-block: .3rem; }
.svc li { display: flex; gap: .55rem; }
.svc li span { font-weight: 800; color: var(--c); }
.svc-cta { margin-top: auto; padding-top: .6rem; font-weight: 700; text-decoration: none; color: var(--c); display: inline-flex; align-items: center; gap: .3rem; transition: gap .2s; }
.svc:hover .svc-cta { gap: .7rem; }
.c-teal { --c: var(--teal) } .c-indigo { --c: var(--indigo) } .c-coral { --c: #d4461d } .c-amber { --c: #b87900 } .c-pink { --c: var(--pink) }
.c-sky { --c: var(--sky) } .c-ink { --c: #1f3b38 } .c-emerald { --c: #17804a } .c-violet { --c: var(--violet) }
.c-amber .chip { background: #e5a200; }
.card.svc .chip { background: var(--c); }
.c-coral .chip { background: var(--coral); } .c-emerald .chip { background: var(--emerald); }

.group { margin-top: 2.6rem; }
.group-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.group-head h2, .group-head h3 { font-size: 1.7rem; }
.group-head p { margin: 0; color: var(--muted); font-size: .95rem; }
.gicon { width: 2.8rem; height: 2.8rem; border-radius: .9rem; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.gicon.industry { background: var(--teal); } .gicon.academic { background: var(--indigo); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.project { border-top: 5px solid var(--teal); }
.project.academic { border-top-color: var(--indigo); }
.project h3, .post h3, .post h2 { font-size: 1.4rem; }
.project p, .post p { margin: 0; color: var(--muted); }
.project .sub { color: var(--ink); font-weight: 600; }
.meta { font-size: .88rem; font-weight: 600; color: var(--muted); }
.academic-text { color: var(--indigo); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 0; }
.tag { padding: .2rem .7rem; border-radius: 999px; background: #e3eeec; font-size: .82rem; color: var(--muted); font-weight: 600; }
.project.academic .tag { background: var(--indigo-l); color: #2b2790; }
.tag.dark { background: rgba(255,255,255,.1); color: #d3ece6; }
.more { margin-top: auto; padding-top: .8rem; font-weight: 700; color: var(--teal); display: inline-flex; align-items: center; gap: .3rem; transition: gap .2s; }
.project.academic .more { color: var(--indigo); }
.project:hover .more { gap: .7rem; }
.post img { border-radius: 12px; margin-bottom: .4rem; aspect-ratio: 2/1; object-fit: cover; width: 100%; }

/* experience */
.exp-grid { display: grid; gap: 2.4rem; }
.exp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.col-title { font-size: 1.4rem; display: flex; align-items: center; gap: .6rem; margin-bottom: 1.6rem; }
.dot-lg { width: .8rem; height: .8rem; border-radius: 50%; } .dot-lg.industry { background: var(--mint); } .dot-lg.academic { background: #9a93ff; }
.tl { position: relative; padding-inline-start: 1.8rem; display: grid; gap: 2rem; }
.tl::before { content: ""; position: absolute; inset-inline-start: .4rem; top: .5rem; bottom: .5rem; width: 2px; background: linear-gradient(var(--amber), #ff7a59, #9a93ff); }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; inset-inline-start: -1.8rem; top: .35rem; width: .95rem; height: .95rem; border-radius: 50%; background: var(--amber); border: 3px solid var(--ink); }
.tl.academic .tl-item::before { background: #9a93ff; }
.tl .when { color: var(--amber); font-weight: 700; font-size: .88rem; margin: 0; }
.tl.academic .when { color: #b9b4ff; }
.tl h4 { font-size: 1.15rem; margin: .2rem 0 .4rem; }
.tl h4 a { color: #fff; text-decoration-color: var(--amber); }
.tl p { color: #bdd3cf; font-size: .98rem; margin: 0 0 .5rem; }

/* research */
.pubs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.pub h3 { font-size: 1.12rem; line-height: 1.3; }
.pub h3 a { color: var(--ink); text-decoration: none; }
.pub h3 a:hover { color: var(--indigo); text-decoration: underline; }
.authors { color: var(--muted); font-size: .92rem; margin: 0; }
.chip-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .9rem; text-decoration: none; margin-top: auto; padding-top: .4rem; }
.cv-row { margin-top: 2rem; }

/* closing CTA */
.band-wrap { padding-block: 1rem 4.5rem; }
.closing, .band { position: relative; overflow: hidden; border-radius: 2rem; background: var(--amber); color: var(--ink); padding: clamp(1.8rem, 5vw, 4rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.2rem; align-items: center; }
.closing::after, .band::after { content: ""; position: absolute; width: 22rem; height: 22rem; border-radius: 50%; background: #fff; opacity: .28; right: -7rem; top: -9rem; pointer-events: none; }
.closing h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
.closing p { font-size: 1.15rem; margin: 1rem 0 0; max-width: 30rem; }
.topic-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; position: relative; z-index: 1; }
.topic-chips a { background: rgba(255,255,255,.7); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .92rem; padding: .5rem 1rem; border-radius: 999px; transition: background .2s, transform .2s; }
.topic-chips a:hover { background: #fff; transform: translateY(-2px); }
.closing-actions, .band-actions { position: relative; z-index: 1; display: grid; gap: .9rem; }
.closing-actions p { text-align: center; margin: 0; font-size: .95rem; opacity: .8; }
.band { background: var(--teal-d); color: #fff; grid-template-columns: 1.5fr 1fr; }
.band::after { background: var(--mint); opacity: .12; }
.band h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.band p { color: #cfe7e2; margin: .8rem 0 0; }
.band .btn-ink { background: var(--amber); color: var(--ink); } .band .btn-ink:hover { background: #ffd666; }
.band .btn-outline-ink { border-color: rgba(255,255,255,.5); color: #fff; } .band .btn-outline-ink:hover { background: rgba(255,255,255,.1); }
.fab { display: none; position: fixed; right: 1rem; bottom: 1rem; z-index: 40; background: var(--amber); color: var(--ink); font-weight: 800; padding: .85rem 1.2rem; border-radius: 999px; text-decoration: none; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); align-items: center; gap: .5rem; }

/* sub pages */
.page-head { background: linear-gradient(160deg, #0a2f2d, #0f5f5a); color: #fff; padding: 3rem 0 3.2rem; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; }
.page-head .lead { margin-top: 1rem; }
.crumbs { display: flex; gap: .6rem; margin-bottom: 1.2rem; font-size: .92rem; font-weight: 600; }
.crumbs a { color: #b7efe0; } .crumbs span { opacity: .5; }
.detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: start; }
.pill { display: inline-block; font-weight: 700; font-size: .88rem; padding: .3rem .9rem; border-radius: 999px; color: #fff; background: var(--teal); }
.pill.academic { background: var(--indigo); }
.points { display: grid; gap: .9rem; margin: 1.6rem 0; }
.points li { padding-inline-start: 1.6rem; position: relative; }
.points li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: .7rem; height: .7rem; border-radius: 50%; background: var(--amber); }
.side-card h2 { font-size: 1.1rem; } .side-card p { margin: 0; }
.link-stack { display: grid; gap: .7rem; margin-top: 1rem; }
.sub-title { font-size: 1.15rem; margin: 2rem 0 1rem; color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem 3rem; }
.pager a { display: block; max-width: 22rem; padding: 1rem 1.3rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; text-decoration: none; color: var(--ink); font-weight: 700; font-family: var(--font-d); transition: border-color .2s, transform .2s; }
.pager a:hover { border-color: var(--teal); transform: translateY(-3px); }
.pager small { display: block; font: 600 .8rem var(--font-b); color: var(--muted); }
.pager .next { text-align: end; margin-inline-start: auto; }
.prose-wrap { max-width: 46rem; padding-block: 2.5rem 1rem; }
.cover { border-radius: 1.2rem; margin-block: 1rem 2rem; width: 100%; }
.project-note { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.1rem; border-radius: 1rem; background: var(--indigo-l); color: #1e1b5c; text-decoration: none; margin-block: 1rem; }
.project-note small { display: block; font-size: .8rem; opacity: .75; }
.prose { font-size: 1.08rem; }
.prose h2 { font-size: 1.8rem; margin: 2.4rem 0 .8rem; } .prose h3 { font-size: 1.3rem; margin: 1.8rem 0 .6rem; }
.prose ul { list-style: disc; padding-inline-start: 1.3rem; margin-bottom: 1rem; } .prose ol { list-style: decimal; padding-inline-start: 1.3rem; margin-bottom: 1rem; }
.prose code { background: #e3eeec; padding: .1rem .4rem; border-radius: 6px; font-size: .92em; }
.prose pre { background: #0f1b1a; color: #e6f2ef; padding: 1.1rem 1.2rem; border-radius: 1rem; overflow-x: auto; font-size: .92rem; line-height: 1.55; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose .highlight { margin-bottom: 1.2rem; } .prose .highlight pre { margin: 0; }
.prose img { border-radius: 1rem; margin-block: 1rem; }
.prose table { border-collapse: collapse; width: 100%; margin-bottom: 1rem; display: block; overflow-x: auto; } .prose th, .prose td { border: 1px solid var(--line); padding: .5rem .8rem; text-align: start; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.contact-card { padding: 2rem; gap: .8rem; } .contact-card h2 { font-size: 1.8rem; } .contact-card p { color: var(--muted); }
.contact-card.book { background: var(--teal-d); color: #fff; border: none; } .contact-card.book p { color: #cfe7e2; }
.contact-card.book .chip { background: var(--amber); color: var(--ink); }
.topic-list { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-block: .6rem; }
.topic-list a { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: .9rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; background: #fff; transition: border-color .2s, background .2s, transform .2s; }
.topic-list a:hover, .topic-list a.active { border-color: var(--teal); background: #e8f6f3; transform: translateY(-2px); }
.topic-list a.active { box-shadow: 0 0 0 3px rgba(15,118,110,.25); }
.small { font-size: .95rem; }
.inline-links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; font-weight: 700; }

/* footer */
.site-footer { background: var(--ink); color: #fff; padding-top: 3.5rem; }
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.site-footer .brand { color: #fff; margin-bottom: .8rem; }
.site-footer h2 { font-size: .95rem; color: #9ec9c1; margin-bottom: .8rem; font-family: var(--font-b); letter-spacing: 0; }
.site-footer li { margin-bottom: .45rem; } .site-footer a { color: #e6f2ef; text-decoration: none; } .site-footer a:hover { color: var(--amber); }
.site-footer .btn-amber { color: var(--ink); } .site-footer .btn-amber:hover { color: var(--ink); }
.muted-on-dark { color: #9ec9c1; max-width: 22rem; }
.legal { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.2rem; color: #7fa8a0; font-size: .9rem; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .nav { display: none; } .menu-btn { display: inline-flex; align-items: center; justify-content: center; } .bar { justify-content: space-between; } .bar-end { margin-inline-start: auto; }
  .hero-grid, .sides, .exp-cols, .detail, .closing, .band, .contact-grid { grid-template-columns: 1fr; }
  .services, .cards.three { grid-template-columns: repeat(2, 1fr); }
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .portrait { max-width: 20rem; margin-block: 1rem 2rem; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .services, .cards, .cards.three, .pubs, .topic-list { grid-template-columns: 1fr; }
  .section { padding-block: 3rem; }
  .fab { display: inline-flex; }
  .bar-end .btn { display: none; }
  .foot { grid-template-columns: 1fr; }
  .portrait figcaption { left: .5rem; }
  .actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero-copy > *, .reveal { opacity: 1; transform: none; }
}
.stat-line { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.6rem 0; }
.stat-line span { background: var(--indigo-l); color: #2b2790; font-weight: 700; padding: .4rem 1rem; border-radius: 999px; font-size: .95rem; }
.side-sub { margin: 0; font-size: .95rem; }
.cv-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.crumbs span:last-child { display: none; }

.lang-switch { font-weight: 700; font-size: .92rem; color: var(--ink); text-decoration: none; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.lang-switch:hover { border-color: var(--teal); }
.english-tag { font-size: .75rem; font-weight: 700; background: #e3eeec; color: var(--muted); padding: .1rem .5rem; border-radius: 999px; margin-inline-start: .4rem; }

/* Arabic / RTL */
[lang="ar"] { --font-d: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif; --font-b: "IBM Plex Sans Arabic", system-ui, sans-serif; }
[lang="ar"] body { line-height: 1.85; }
[lang="ar"] *, [lang="ar"] *::before, [lang="ar"] *::after { letter-spacing: 0 !important; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4 { line-height: 1.3; }
[lang="ar"] .hero h1 { line-height: 1.2; font-weight: 700; }
[dir="rtl"] .arr { transform: scaleX(-1); }
[dir="rtl"] .portrait figcaption { left: auto; right: -1.2rem; }
[dir="rtl"] .glow.g1 { right: auto; left: -6rem; }
[dir="rtl"] .glow.g2 { left: auto; right: 30%; }
[dir="rtl"] .closing::after, [dir="rtl"] .band::after { right: auto; left: -7rem; }
[dir="rtl"] .marquee-track { animation-name: scroll-x-rtl; }
@keyframes scroll-x-rtl { to { transform: translateX(50%); } }
[dir="rtl"] .fab { right: auto; left: 1rem; }
[dir="rtl"] .pager .next { margin-inline-start: auto; }
[dir="rtl"] .prose pre, [dir="rtl"] .prose code { direction: ltr; text-align: left; unicode-bidi: plaintext; }
@media (max-width: 640px) { [dir="rtl"] .portrait figcaption { right: .5rem; left: auto; } }
