/* Palette "Cold" from the old site's brand sheet: ice #C0FDFC · cyan #3FDBF0 · periwinkle #78ACF1 · indigo #10029A */
:root {
  --ice: #C0FDFC; --cyan: #3FDBF0; --peri: #78ACF1; --indigo: #10029A;
  --bg: #F6F8FF; --bg-alt: #EDF1FD; --surface: #FFFFFF; --surface-2: #F9FAFF;
  --ink: #0D0F2E; --soft: #474E72; --faint: #80879F; --line: #DFE5F5;
  --link: #2C3BD1; --primary: #10029A; --on-primary: #FFFFFF;
  --chip: #EEF2FF; --chip-ink: #2A2F6B;
  --shadow: 0 1px 2px rgba(16, 2, 154, .05), 0 12px 32px -12px rgba(16, 2, 154, .18);
  --shadow-lg: 0 30px 60px -24px rgba(16, 2, 154, .35);
  --grad: linear-gradient(110deg, #3FDBF0 0%, #78ACF1 45%, #8C7BFF 100%);
  --hero: radial-gradient(1200px 700px at 85% 10%, #1B1580 0%, transparent 60%),
          radial-gradient(900px 600px at 0% 100%, #062C5C 0%, transparent 55%),
          linear-gradient(160deg, #0B0A3A 0%, #06051F 100%);
  --r: 22px; --r-sm: 14px;
  --max: 1160px;
  --head: 'Sora', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070822; --bg-alt: #0B0D2D; --surface: #10133A; --surface-2: #0D1033;
    --ink: #EDF0FF; --soft: #B3B9DD; --faint: #7A81AB; --line: #22285E;
    --link: #7FD8F5; --primary: #78ACF1; --on-primary: #07062A;
    --chip: #171B4A; --chip-ink: #C9D2FF;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070822; --bg-alt: #0B0D2D; --surface: #10133A; --surface-2: #0D1033;
  --ink: #EDF0FF; --soft: #B3B9DD; --faint: #7A81AB; --line: #22285E;
  --link: #7FD8F5; --primary: #78ACF1; --on-primary: #07062A;
  --chip: #171B4A; --chip-ink: #C9D2FF;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.7 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left)); }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: 10px; background: var(--surface); color: var(--ink); }
.skip:focus { top: 12px; }

/* ---------- top bar ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition: background-color .3s ease, box-shadow .3s ease, color .3s ease;
  color: var(--ink);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.top.on-dark { color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.top.on-dark.scrolled {
  background: rgba(8, 7, 40, .72); box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
}
html:not(.js) .top { color: #fff; background: rgba(11, 10, 58, .9); }
.top-in {
  height: 68px; display: flex; align-items: center; gap: 20px; width: 100%;
  padding: 0 max(clamp(20px, 3vw, 56px), env(safe-area-inset-right)) 0 max(clamp(20px, 3vw, 56px), env(safe-area-inset-left));
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; font-family: var(--head); font-weight: 700; }
.logo {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad); color: #07062A; font-size: .82rem; letter-spacing: .02em;
}
.brand-name { white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; padding: 8px 12px; border-radius: 999px; color: inherit; opacity: .78;
  font-size: .92rem; font-weight: 500; transition: opacity .2s, background-color .2s;
}
.nav a:hover { opacity: 1; background: color-mix(in srgb, currentColor 8%, transparent); }
.nav a.is-active { opacity: 1; }
.nav a.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--grad);
}
.top-act { display: flex; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: inherit;
  transition: background-color .2s;
}
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.theme .i-moon { display: none; }
:root[data-theme="dark"] .theme .i-sun { display: none; }
:root[data-theme="dark"] .theme .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme .i-moon { display: block; }
}
.burger { display: none; }
.burger .i-close { display: none; }
.burger[aria-expanded="true"] .i-menu { display: none; }
.burger[aria-expanded="true"] .i-close { display: block; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--hero);
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(100px + env(safe-area-inset-top)) 0 120px;
}
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.hero-glow {
  position: absolute; z-index: -2; width: 60vmax; height: 60vmax; right: -20vmax; top: -25vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 219, 240, .22), transparent 60%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-12vmax, 10vmax) scale(1.1); } }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 4vw, 80px); align-items: center; width: 100%; }
/* home hero spans the screen like the header: same side padding, centred only beyond 2000 px */
.hero-wide { max-width: 2000px; margin: 0 auto; padding: 0 clamp(20px, 3vw, 56px); }
.hero-wide .hero-photo { justify-self: end; margin-right: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hello { font-weight: 500; color: var(--ice); opacity: .9; margin-bottom: .4em; letter-spacing: .02em; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 6.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.role { font-family: var(--head); font-size: clamp(1.25rem, 2.3vw, 2.3rem); font-weight: 600; margin: .45em 0 .25em; }
/* rotating role: every word sits in the same grid cell, so the line never jumps */
.rot { display: inline-grid; vertical-align: bottom; overflow: hidden; padding-bottom: .08em; }
.rot-w { grid-area: 1 / 1; white-space: nowrap; transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .4s ease; }
.rot-w:not(.on) { opacity: 0; transform: translateY(70%); }
.rot-w.off { opacity: 0; transform: translateY(-70%); }
.art { display: inline-block; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.focus { font-size: clamp(1rem, 1.4vw, 1.3rem); color: rgba(255, 255, 255, .78); margin-bottom: 1.1em; min-height: 1.7em; }
/* tag in front of each "I work on" item, one colour per kind */
.ftag {
  --k: #3FDBF0; display: inline-block; margin: 0 .5em 0 .15em; padding: .12em .6em; border-radius: 999px; vertical-align: .08em;
  font-size: .7em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--k); background: color-mix(in srgb, var(--k) 16%, transparent); border: 1px solid color-mix(in srgb, var(--k) 45%, transparent);
  transition: color .3s, background-color .3s, border-color .3s;
}
.ftag.pop { animation: pop .45s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.ftag[data-k="Data"] { --k: #3FDBF0; }
.ftag[data-k="AI"] { --k: #A99BFF; }
.ftag[data-k="Research"] { --k: #FF8FB8; }
.ftag[data-k="Automation"] { --k: #5BE38E; }
.ftag[data-k="Analytics"] { --k: #78ACF1; }
.ftag[data-k="Apps"] { --k: #FFC861; }
.ftag[data-k="Web"] { --k: #7FE3F5; }
.ftag[data-k="Hardware"] { --k: #FFA36B; }
.ftag[data-k="Industrial"] { --k: #C7E86B; }
.type { color: #fff; font-weight: 600; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 3px; vertical-align: -3px; background: var(--cyan); animation: blink 1s steps(1) infinite; }
html:not(.js) .caret { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.lead { max-width: 34em; font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: rgba(255, 255, 255, .72); }
/* home hero: the sentence is the only line under the name, so it is a little larger */
.hero-wide .lead { max-width: 30em; margin-top: .9em; font-size: clamp(1.12rem, 1.75vw, 1.55rem); line-height: 1.5; color: rgba(255, 255, 255, .86); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
/* "currently" badges in the hero */
.now { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.now li {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600;
  color: #fff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
}
.now .at { color: rgba(255, 255, 255, .65); font-weight: 500; }
.now .dot { width: 8px; height: 8px; border-radius: 50%; background: #5BE38E; box-shadow: 0 0 0 0 rgba(91, 227, 142, .6); animation: live 2s ease-out infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(91, 227, 142, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 227, 142, 0); } }
.hero-social, .foot-social { display: flex; gap: 10px; }
.hero-social a, .foot-social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; border: 1px solid rgba(255, 255, 255, .22); transition: transform .2s, background-color .2s, border-color .2s;
}
.hero-social a:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .1); border-color: var(--cyan); }

.hero-photo { position: relative; justify-self: center; width: min(clamp(300px, 30vw, 620px), 100%); aspect-ratio: 1; }
.ring {
  position: absolute; inset: -12px; border-radius: 50%;
  background: conic-gradient(from 0deg, #3FDBF0, #78ACF1, #8C7BFF, #10029A, #3FDBF0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  animation: spin 9s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
.photo {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(63, 219, 240, .45); transform: translateZ(0);
  transition: transform .25s ease-out;
}
.photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 84px; width: 26px; height: 42px; margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, .45); border-radius: 14px;
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .75em 1.35em; border-radius: 999px; font-weight: 600; font-size: .98rem; line-height: 1.2;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); color: #07062A; box-shadow: 0 14px 30px -12px rgba(63, 219, 240, .7); }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .55); }
.btn-soft { background: var(--chip); color: var(--chip-ink); }
.btn-soft:hover { box-shadow: var(--shadow); }
.btn-light { background: #fff; color: #10029A; }
.mail-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-outline { color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.btn-outline:hover { background: rgba(255, 255, 255, .1); }
.btn-icon { width: 48px; padding: 0; color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.btn-icon:hover { background: rgba(255, 255, 255, .12); }

/* ---------- stats ---------- */
.stats { position: relative; z-index: 2; margin-top: -56px; }
.stats-in {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: 8px; max-width: calc(var(--max) - 40px);
}
.stat { position: relative; display: flex; flex-direction: column; align-items: center; padding: 18px 10px; text-align: center; color: inherit; border-radius: 16px; transition: background-color .2s; }
.stat:hover { background: var(--chip); }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.lab-sub { margin-top: 2px; font-size: .74rem; color: var(--faint); }
.num { font-family: var(--head); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root:not([data-theme="dark"]) .num { background: linear-gradient(110deg, #10029A, #4D6FE8); -webkit-background-clip: text; background-clip: text; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .num { background: var(--grad); -webkit-background-clip: text; background-clip: text; } }
.lab { margin-top: 8px; font-size: .85rem; color: var(--soft); font-weight: 500; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 124px) 0; }
.section.alt { background: var(--bg-alt); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--link);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.sec-head h2, .contact-card h2 { font-size: clamp(1.85rem, 3.8vw, 2.7rem); font-weight: 700; }
.sec-sub { margin-top: 12px; color: var(--soft); }
.mini { font-size: 1.05rem; margin: 26px 0 14px; }

/* about */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about-photo { position: relative; margin: 0; }
.about-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: calc(var(--r) + 6px);
  background: var(--grad); opacity: .35; z-index: -1;
}
.about-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--r) + 6px); box-shadow: var(--shadow-lg); }
.about-text p { color: var(--soft); font-size: 1.04rem; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.services a {
  display: flex; align-items: center; gap: 10px; height: 100%; padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .92rem; line-height: 1.3;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.services a:hover { transform: translateY(-3px); border-color: var(--peri); box-shadow: var(--shadow); }
.more-link { margin: 18px 0 0; }
.svc-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--chip); color: var(--link); }

/* tabs */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip-tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--soft); font-weight: 600; font-size: .92rem;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.chip-tab:hover { color: var(--ink); border-color: var(--peri); }
.chip-tab.is-on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.seg { display: none; }
html.js .seg { display: flex; }
html.js .pane-title { display: none; }
.pane-title { font-size: 1.3rem; margin: 48px 0 20px; }

/* skills */
.skill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.skill-group {
  padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  transition: opacity .3s ease, transform .3s ease, box-shadow .2s;
}
.skill-group:hover { box-shadow: var(--shadow); }
.skill-group.is-out { display: none; }
.skill-group h3 { font-size: 1.05rem; margin-bottom: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills li {
  padding: 6px 13px; border-radius: 999px; background: var(--chip); color: var(--chip-ink);
  font-size: .88rem; font-weight: 500; transition: transform .2s, background-color .2s, color .2s;
}
.pills li:hover { transform: translateY(-2px); background: var(--primary); color: var(--on-primary); }

/* research */
.pubs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; align-items: start; }
.pub {
  display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease;
}
.pub:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pub-img { aspect-ratio: 16 / 10; overflow: hidden; }
.pub-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pub-noimg { display: grid; place-items: center; color: rgba(255, 255, 255, .9);
  background: radial-gradient(120% 120% at 20% 10%, #3FDBF0 0%, #4D6FE8 45%, #10029A 100%); }
.pub-noimg .ic { width: 56px; height: 56px; stroke-width: 1.4; transition: transform .6s ease; }
.pub:hover .pub-noimg .ic { transform: scale(1.12) rotate(-4deg); }
.pub:hover .pub-img img { transform: scale(1.06); }
.pub-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.pub-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .84rem; color: var(--faint); font-weight: 500; }
.badge { padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.badge.ok { background: rgba(34, 197, 94, .14); color: #138A43; }
.badge.soon { background: rgba(120, 172, 241, .18); color: #2B4FB8; }
:root[data-theme="dark"] .badge.ok { color: #5BE38E; } :root[data-theme="dark"] .badge.soon { color: #A9C6FF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.ok { color: #5BE38E; } :root:not([data-theme="light"]) .badge.soon { color: #A9C6FF; } }
.pub h3 { font-size: 1.06rem; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
.authors { margin: 0; font-size: .86rem; color: var(--faint); }
.authors b { color: var(--soft); }
details { border-top: 1px dashed var(--line); padding-top: 8px; }
summary {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: .9rem; color: var(--link); min-height: 32px;
}
summary::-webkit-details-marker { display: none; }
.chev { transition: transform .25s ease; }
details[open] .chev { transform: rotate(180deg); }
details p { margin: 8px 0 0; font-size: .93rem; color: var(--soft); }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; }
.link:hover .ic { transform: translate(2px, -2px); }
.link .ic { transition: transform .2s; }
.more { text-align: center; margin: 36px 0 0; }

/* timeline */
.timeline { position: relative; max-width: 820px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px;
  background: linear-gradient(var(--cyan), var(--peri), transparent);
}
.timeline > li { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding-bottom: 22px; }
.tl-mark {
  position: relative; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-family: var(--head); font-weight: 700; font-size: .85rem; color: var(--link);
}
.tl-mark img { width: 34px; height: 34px; object-fit: contain; }
.tl-card {
  padding: 18px 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tl-card:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--peri) 60%, var(--line)); }
.tl-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.when { font-size: .84rem; font-weight: 600; color: var(--faint); }
.tl-card h3 { font-size: 1.12rem; }
.org { margin: 2px 0 0; color: var(--soft); font-weight: 500; }
.tl-meta { margin: 2px 0 0; font-size: .86rem; color: var(--faint); }
.tl-tags { margin-top: 12px; }
.points { margin-top: 10px; display: grid; gap: 6px; }
.points li { position: relative; padding-left: 18px; font-size: .94rem; color: var(--soft); line-height: 1.5; }
.points li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
html.js .pane[hidden] { display: none; }
.pane.is-entering { animation: fadeUp .4s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

/* certifications */
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cert {
  position: relative; padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.cert::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 219, 240, .22), transparent 70%); transition: transform .4s;
}
.cert:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cert:hover::after { transform: scale(1.6); }
.cert-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #07062A; margin-bottom: 14px; }
.cert { display: flex; flex-direction: column; }
.cert h3 { font-size: 1.04rem; line-height: 1.35; margin-bottom: 6px; }
.cert-meta { margin: 0 0 12px; font-size: .86rem; color: var(--faint); font-weight: 500; }
.cert-verify { margin-top: auto; padding-top: 14px; font-size: .88rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 3px 9px; border-radius: 8px; font-size: .78rem; background: var(--chip); color: var(--chip-ink); }

/* contact */
.contact-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
  padding: clamp(28px, 5vw, 56px); border-radius: calc(var(--r) + 8px); color: #fff; background: var(--hero);
  box-shadow: var(--shadow-lg);
}
.contact-card::before {
  content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -120px; bottom: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 219, 240, .35), transparent 65%);
}
.contact-card .eyebrow { color: var(--cyan); }
.contact-text p { color: rgba(255, 255, 255, .75); max-width: 30em; margin-top: 12px; }
.contact-actions { display: grid; gap: 12px; }
.mail-row { display: flex; gap: 10px; }
.mail-row .btn-light { flex: 1; min-width: 0; justify-content: flex-start; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.copy .i-ok { display: none; }
.copy.done .i-copy { display: none; }
.copy.done .i-ok { display: block; color: var(--cyan); }

/* home: one card per page */
.explore { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.explore > .ex-card { flex: 0 1 calc((100% - 48px) / 4); min-width: 0; }
@media (max-width: 1100px) { .explore > .ex-card { flex-basis: calc((100% - 32px) / 3); } }
@media (max-width: 820px) { .explore > .ex-card { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 540px) { .explore > .ex-card { flex-basis: 100%; } }
.ex-card {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 20px 20px 20px 18px;
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ex-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--peri) 55%, var(--line)); }
.ex-ic { width: 50px; height: 50px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--chip); color: var(--link); transition: background .25s, color .25s, transform .25s; }
.ex-ic .ic { width: 22px; height: 22px; }
.ex-card:hover .ex-ic { background: var(--grad); color: #07062A; transform: rotate(-6deg); }
.ex-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ex-txt strong { font-family: var(--head); font-size: 1.08rem; font-weight: 700; }
.ex-txt span { font-size: .88rem; color: var(--soft); line-height: 1.45; }
.ex-go { color: var(--faint); transition: transform .25s, color .25s; }
.ex-card:hover .ex-go { color: var(--link); transform: translateX(4px); }

/* inner pages */
.section.inner { padding-top: clamp(56px, 7vw, 88px); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 8px; padding-bottom: clamp(56px, 7vw, 88px); }
.pg {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.pg:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--peri); }
.pg-next { text-align: right; align-items: flex-end; }
.pg-k { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.pg strong { font-family: var(--head); font-size: 1.2rem; }
.section.alt + .pager { background: transparent; }
.cta.center { justify-content: center; }

/* services page */
.page-hero { min-height: 0; padding: calc(132px + env(safe-area-inset-top)) 0 clamp(72px, 9vw, 110px); text-align: center; }
.page-hero-in { width: 100%; max-width: 860px; min-width: 0; }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 800; letter-spacing: -.035em; }
.page-hero .lead { margin: 18px auto 0; max-width: 40em; }
.eyebrow.on-dark { color: var(--cyan); }
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.jump a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border-radius: 999px;
  color: #fff; font-weight: 600; font-size: .9rem; border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .2s, background-color .2s, border-color .2s;
}
.jump a:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .12); border-color: var(--cyan); }
.jump .ic { color: var(--cyan); }

.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.svc-card {
  position: relative; isolation: isolate; overflow: hidden; scroll-margin-top: 96px;
  display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 34px);
  border-radius: calc(var(--r) + 4px); background: var(--surface); border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.svc-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(63, 219, 240, .16), transparent 60%);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--peri) 55%, var(--line)); }
.svc-card:hover::before { opacity: 1; }
.svc-card:target { border-color: var(--cyan); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 35%, transparent), var(--shadow-lg); }
.svc-top { display: flex; align-items: center; justify-content: space-between; }
.svc-big {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad); color: #07062A; box-shadow: 0 14px 30px -14px rgba(63, 219, 240, .8);
  transition: transform .3s ease;
}
.svc-big .ic { width: 26px; height: 26px; }
.svc-card:hover .svc-big { transform: rotate(-6deg) scale(1.06); }
.svc-num { font-family: var(--head); font-size: 2.6rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line); }
.svc-card h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 700; }
.svc-sum { margin: 0; color: var(--soft); }
.svc-block h3 { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; font-family: var(--body); }
.proof { display: grid; gap: 8px; }
.proof a, .proof li { color: var(--ink); font-size: .94rem; line-height: 1.45; }
.proof a { display: inline; }
.proof a .ic { display: inline-block; vertical-align: -.2em; margin-left: 6px; color: var(--link); transition: transform .2s; }
.proof a:hover { color: var(--link); }
.proof a:hover .ic { transform: translateX(3px); }
.svc-card.slim { justify-content: center; }
.page-services #contact { padding-top: 0; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 26px 0 calc(26px + env(safe-area-inset-bottom)); color: var(--faint); font-size: .9rem; }
.foot-in { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.foot-social a { color: var(--soft); border-color: var(--line); width: 38px; height: 38px; }
.foot-social a:hover { color: var(--link); border-color: var(--peri); }

.to-top {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40;
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* reveal on scroll (only once JS is running; without JS everything is simply visible) */
html.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
html.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- tablet ---------- */
@media (max-width: 960px) {
  .burger { display: grid; }
  .top-act { margin-left: auto; }
  .nav {
    position: fixed; left: 12px; right: 12px; top: calc(76px + env(safe-area-inset-top));
    flex-direction: column; gap: 2px; padding: 10px; border-radius: 20px;
    background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none; visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility 0s .25s;
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .25s ease, transform .25s ease; }
  .nav a { padding: 14px 16px; font-size: 1.05rem; border-radius: 14px; opacity: 1; }
  .nav a.is-active { background: var(--chip); color: var(--chip-ink); }
  .nav a.is-active::after { display: none; }
  .hero-in { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .rot { justify-items: center; }
  .hero-photo { order: -1; width: min(300px, 70vw); }
  .hero-wide .hero-photo { justify-self: center; margin-right: 0; }
  .cta, .hero-social, .now { justify-content: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 520px; margin: 0 auto 8px; }
  .certs { grid-template-columns: repeat(2, 1fr); }
  .contact-card { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .section { padding: 60px 0; }
  .mail-row .btn-light { font-size: .9rem; padding-inline: 1em; }
  .hero { padding-bottom: 96px; }
  .hero-photo { width: min(240px, 64vw); }
  .cta { flex-direction: column; align-items: stretch; }
  .scroll-cue { display: none; }
  .stats { margin-top: -44px; }
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n + 3)::after { content: ""; position: absolute; top: 0; left: 14%; right: 14%; height: 1px; background: var(--line); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .tabs:not(.seg) { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 24px; padding: 2px 20px; scroll-padding-inline: 20px; scroll-snap-type: x proximity; }
  .tabs:not(.seg)::-webkit-scrollbar { display: none; }
  .tabs .chip-tab { flex: none; scroll-snap-align: start; }
  .seg .chip-tab { flex: 1; justify-content: center; }
  .timeline::before { left: 19px; }
  .timeline > li { grid-template-columns: 40px 1fr; gap: 12px; }
  .tl-mark { width: 40px; height: 40px; border-radius: 12px; font-size: .78rem; }
  .tl-mark img { width: 28px; height: 28px; }
  .tl-card { padding: 16px; }
  .tl-card:hover { transform: none; }
  .certs {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin: 0 -20px; padding: 4px 20px 16px; scroll-padding-inline: 20px; scrollbar-width: none;
  }
  .certs::-webkit-scrollbar { display: none; }
  .cert { flex: 0 0 82%; scroll-snap-align: center; }
  .row2 { grid-template-columns: repeat(3, 1fr); }
  .row2 .btn { padding-inline: .6em; font-size: .9rem; }
  .page-hero { padding-top: calc(112px + env(safe-area-inset-top)); }
  .jump { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 28px -20px 0; padding: 2px 20px; scroll-padding-inline: 20px; }
  .jump::-webkit-scrollbar { display: none; }
  .jump a { flex: none; }
  .svc-num { font-size: 2.1rem; }
}

@media (max-width: 370px) { .brand-name { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
}
