:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: #f0f3f8;
  --surface-strong: #e7ecf4;
  --text: #111827;
  --text-soft: #526073;
  --muted: #78869a;
  --line: #dce3ec;
  --line-strong: #c9d3e0;
  --primary: #154ec1;
  --primary-strong: #0d3e9f;
  --primary-soft: #e6efff;
  --accent: #d47b2e;
  --accent-soft: #fff0df;
  --dark: #0c1422;
  --dark-soft: #131f32;
  --white: #ffffff;
  --shadow-sm: 0 8px 30px rgba(18, 32, 53, .07);
  --shadow-md: 0 25px 80px rgba(18, 32, 53, .13);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --shell: 1180px;
}

html[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #111b2b;
  --surface-soft: #162235;
  --surface-strong: #1c2a3f;
  --text: #edf2f9;
  --text-soft: #b6c1d1;
  --muted: #8998ab;
  --line: #26354b;
  --line-strong: #34445b;
  --primary: #77a6ff;
  --primary-strong: #a6c4ff;
  --primary-soft: #152b50;
  --accent: #f2a65f;
  --accent-soft: #3a2819;
  --dark: #07101d;
  --dark-soft: #0d1929;
  --shadow-sm: 0 10px 35px rgba(0, 0, 0, .2);
  --shadow-md: 0 28px 90px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 5% -10%, rgba(21, 78, 193, .09), transparent 33rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
svg { display: block; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: .75rem 1rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 10px;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.section { padding: 105px 0; }
.section-tint { background: var(--surface-soft); border-block: 1px solid var(--line); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  background: color-mix(in srgb, var(--bg) 83%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: max-content; }
.brand-mark {
  width: 38px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--text);
  color: var(--bg);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
}
.brand strong { display: block; font-size: .95rem; line-height: 1.2; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: .72rem; line-height: 1.2; }
.desktop-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.desktop-nav a { color: var(--text-soft); font-size: .88rem; font-weight: 600; text-decoration: none; transition: color .2s ease; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button, .menu-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; }
.icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="light"] .sun-icon, html[data-theme="dark"] .moon-icon { display: none; }
.menu-button { display: none; width: 42px; height: 42px; border-radius: 13px; padding: 11px; }
.menu-button span { display: block; height: 2px; background: currentColor; border-radius: 999px; margin: 4px 0; transition: transform .2s ease, opacity .2s ease; }
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { padding: 0 20px 18px; border-top: 1px solid var(--line); background: var(--bg); }
.mobile-nav a { display: block; padding: 13px 0; text-decoration: none; color: var(--text-soft); font-weight: 650; border-bottom: 1px solid var(--line); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 13px;
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-primary { background: var(--primary); color: #fff; box-shadow: 0 12px 30px color-mix(in srgb, var(--primary) 24%, transparent); }
.button-primary:hover { background: var(--primary-strong); box-shadow: 0 16px 38px color-mix(in srgb, var(--primary) 30%, transparent); }
html[data-theme="dark"] .button-primary { color: #07101d; }
.button-secondary { background: var(--surface); color: var(--text); border-color: var(--line); box-shadow: var(--shadow-sm); }
.button-secondary:hover { border-color: var(--line-strong); }
.button-light { background: #fff; color: #0d1a2d; }

.hero { padding-top: 86px; padding-bottom: 86px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(360px, .84fr); gap: 76px; align-items: center; }
.eyebrow, .kicker { color: var(--primary); text-transform: uppercase; letter-spacing: .13em; font-size: .74rem; font-weight: 800; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 24px; }
.eyebrow span { width: 28px; height: 2px; background: currentColor; border-radius: 999px; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 830px;
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 5.2vw, 5.1rem);
  line-height: 1.03;
  letter-spacing: -.052em;
  font-weight: 780;
}
h1 em { color: var(--primary); font-style: normal; }
.hero-lead { max-width: 760px; color: var(--text-soft); font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.availability { display: flex; align-items: flex-start; gap: 10px; max-width: 700px; margin-top: 28px; color: var(--muted); font-size: .88rem; }
.availability-dot { width: 9px; height: 9px; margin-top: 7px; flex: 0 0 auto; border-radius: 50%; background: #29a36a; box-shadow: 0 0 0 6px rgba(41, 163, 106, .12); }

.profile-panel { position: relative; }
.profile-panel::before { content: ""; position: absolute; inset: 8% -10% -5% 10%; background: linear-gradient(145deg, var(--primary-soft), var(--accent-soft)); filter: blur(2px); border-radius: 44px; transform: rotate(5deg); z-index: -1; }
.portrait-frame { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-md); }
.portrait-frame img { width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; object-position: center 40%; }
.portrait-gradient { position: absolute; inset: auto 0 0; height: 42%; background: linear-gradient(transparent, rgba(5, 14, 28, .88)); }
.portrait-caption { position: absolute; left: 24px; right: 24px; bottom: 22px; color: #fff; }
.portrait-caption span { display: block; opacity: .72; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 5px; }
.portrait-caption strong { display: block; font-size: .96rem; line-height: 1.45; }
.profile-route { position: relative; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; margin: -16px 20px 0; padding: 17px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); font-size: .72rem; color: var(--text-soft); text-align: center; }
.profile-route svg { width: 14px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.metrics-section { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 72%, transparent); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric { min-height: 125px; display: flex; flex-direction: column; justify-content: center; padding: 24px 30px; border-left: 1px solid var(--line); }
.metric:last-child { border-right: 1px solid var(--line); }
.metric strong { color: var(--primary); font-size: 2rem; line-height: 1; letter-spacing: -.04em; }
.metric span { margin-top: 9px; color: var(--text-soft); font-size: .83rem; line-height: 1.4; }

.section-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 60px; align-items: end; margin-bottom: 50px; }
.section-heading.stacked { display: block; margin-bottom: 0; }
.section-heading h2, .about-copy h2, .open-intro h2, .contact-panel h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.section-heading p, .section-heading.stacked p { margin-bottom: 4px; color: var(--text-soft); font-size: 1rem; }

.feature-project { display: grid; grid-template-columns: minmax(0, .92fr) minmax(460px, 1.08fr); gap: 42px; align-items: stretch; padding: 42px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.project-number { display: block; color: var(--primary); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.feature-copy h3, .research-card h3 { margin: 12px 0 16px; line-height: 1.15; letter-spacing: -.03em; }
.feature-copy h3 { font-size: clamp(1.7rem, 3vw, 2.45rem); }
.feature-copy > p, .research-card > p { color: var(--text-soft); }
.clean-list { list-style: none; padding: 0; margin: 25px 0; }
.clean-list li { position: relative; padding: 9px 0 9px 25px; border-bottom: 1px solid var(--line); color: var(--text-soft); font-size: .9rem; }
.clean-list li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.inline-links { display: flex; flex-wrap: wrap; gap: 22px; }
.inline-links a, .text-link { color: var(--primary); text-decoration: none; font-size: .88rem; font-weight: 800; }
.inline-links a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.eis-visual { min-height: 100%; display: flex; flex-direction: column; padding: 24px; border-radius: 24px; background: linear-gradient(145deg, var(--primary-soft), color-mix(in srgb, var(--surface) 55%, var(--primary-soft))); border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--line)); }
.visual-label { display: flex; align-items: center; gap: 8px; color: var(--text-soft); font-size: .78rem; font-weight: 750; }
.visual-label span { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 12%, transparent); }
.eis-visual > svg { width: 100%; height: auto; margin: auto 0; color: var(--primary); }
.grid-lines path { fill: none; stroke: color-mix(in srgb, var(--text) 9%, transparent); stroke-width: 1; }
.axes path { fill: none; stroke: color-mix(in srgb, var(--text) 48%, transparent); stroke-width: 1.5; }
.curve { fill: none; stroke-width: 4; stroke-linecap: round; }
.curve-a { stroke: var(--primary); }
.curve-b { stroke: var(--accent); }
.curve-c { stroke: #31a17c; }
.points circle { fill: var(--surface); stroke-width: 3; }
.points circle:nth-child(1) { stroke: var(--primary); }
.points circle:nth-child(2) { stroke: var(--accent); }
.points circle:nth-child(3) { stroke: #31a17c; }
.axis-labels, .legend { fill: var(--text-soft); font-size: 13px; }
.legend-a { fill: var(--primary); } .legend-b { fill: var(--accent); } .legend-c { fill: #31a17c; }
.visual-footer { display: flex; justify-content: space-between; align-items: center; gap: 7px; padding-top: 15px; border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent); color: var(--text-soft); font-size: .72rem; font-weight: 700; }
.visual-arrow { color: var(--primary); }

.research-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.research-card { position: relative; overflow: hidden; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.research-card::after { content: ""; position: absolute; right: -50px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; background: var(--primary-soft); opacity: .6; }
.card-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 28px; border-radius: 16px; background: var(--primary-soft); color: var(--primary); }
.card-icon svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.edge-icon { background: var(--accent-soft); color: var(--accent); }
.research-card h3 { max-width: 560px; font-size: 1.55rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.tag-row span, .pub-meta span { border: 1px solid var(--line); background: var(--surface-soft); color: var(--text-soft); border-radius: 999px; font-size: .7rem; font-weight: 700; }
.tag-row span { padding: 6px 10px; }


/* Balanced research identity: inertial + chemical sensing */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}
.pillar-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.pillar-copy { padding: 36px 36px 28px; }
.pillar-copy h3 {
  margin: 12px 0 16px;
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.pillar-copy > p { color: var(--text-soft); }
.pillar-card .clean-list { margin-bottom: 24px; }
.pillar-card .inline-links { margin-top: 4px; }
.pillar-motion { border-color: color-mix(in srgb, var(--primary) 28%, var(--line)); }
.pillar-chemical { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.pillar-chemical .project-number { color: var(--accent); }
.pillar-chemical .inline-links a { color: color-mix(in srgb, var(--accent) 82%, var(--text)); }

.motion-visual,
.pillar-card .eis-visual {
  min-height: 395px;
  margin-top: auto;
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.motion-visual {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background:
    radial-gradient(circle at 84% 16%, color-mix(in srgb, var(--primary) 17%, transparent), transparent 13rem),
    linear-gradient(145deg, color-mix(in srgb, var(--primary-soft) 74%, var(--surface)), var(--surface));
}
.motion-visual > svg { width: 100%; height: auto; margin: auto 0; }
.motion-visual .visual-label span { background: var(--primary); }
.imu-grid path { fill: none; stroke: color-mix(in srgb, var(--text) 8%, transparent); stroke-width: 1; }
.imu-axis-labels { fill: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.signal { fill: none; stroke-width: 3.2; stroke-linecap: round; }
.signal-a { stroke: var(--primary); }
.signal-b { stroke: color-mix(in srgb, var(--primary) 72%, #7c4dff); }
.signal-c { stroke: #31a17c; }
.signal-d { stroke: var(--accent); }
.representation-flow path { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.representation-flow rect { fill: var(--surface); stroke: color-mix(in srgb, var(--primary) 35%, var(--line)); stroke-width: 1.4; }
.representation-flow rect:nth-of-type(2) { fill: var(--primary); }
.representation-flow text { fill: var(--text-soft); font-size: 12px; font-weight: 800; }
.representation-flow text:nth-of-type(2) { fill: #fff; font-size: 18px; }
.task-chips rect { fill: color-mix(in srgb, var(--surface) 82%, var(--primary-soft)); stroke: var(--line); }
.task-chips text { fill: var(--text-soft); font-size: 11px; font-weight: 750; }

.research-bridge {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin: 28px 0 76px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(100deg, var(--surface), var(--surface-soft));
}
.research-bridge > span {
  color: var(--primary);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.bridge-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.bridge-tags strong {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: .73rem;
  font-weight: 750;
}
.subsection-heading { margin-bottom: 28px; }
.subsection-heading h3 {
  margin: 8px 0 0;
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -.04em;
}
.project-quartet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project-quartet .research-card { display: flex; flex-direction: column; min-height: 390px; }
.project-quartet .research-card .text-link { margin-top: auto; }
.motion-icon { background: color-mix(in srgb, #31a17c 14%, var(--surface)); color: #27896a; }
.spectrum-icon { background: var(--accent-soft); color: var(--accent); }

.publication-group-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
  margin: 8px 0 18px;
  padding: 0 0 15px;
  border-bottom: 2px solid color-mix(in srgb, var(--accent) 55%, var(--line));
}
.publication-group-heading.wearable-group {
  margin-top: 64px;
  border-bottom-color: color-mix(in srgb, var(--primary) 58%, var(--line));
}
.publication-group-heading span {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.publication-group-heading h3 {
  margin: 0;
  font-size: clamp(1.22rem, 2.2vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -.025em;
  text-align: right;
}

.publication-list { border-top: 1px solid var(--line-strong); }
.publication-item { display: grid; grid-template-columns: 80px minmax(0, 1fr) 52px; gap: 24px; align-items: start; padding: 31px 0; border-bottom: 1px solid var(--line); }
.pub-year { color: var(--primary); font-weight: 850; font-size: .86rem; letter-spacing: .04em; }
.pub-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.pub-meta span { padding: 4px 8px; }
.pub-body h3 { margin: 0; max-width: 900px; font-size: clamp(1.08rem, 2vw, 1.34rem); line-height: 1.38; letter-spacing: -.015em; }
.pub-body > p { max-width: 850px; margin: 10px 0 0; color: var(--text-soft); font-size: .88rem; }
.pub-actions { display: flex; gap: 14px; margin-top: 11px; }
.pub-actions a { color: var(--primary); text-decoration: none; font-size: .78rem; font-weight: 800; }
.pub-actions a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pub-link { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--primary); font-weight: 800; transition: transform .2s ease, border-color .2s ease; }
.pub-link:hover { transform: translate(2px, -2px); border-color: var(--primary); }

.experience-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 90px; }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 9px; bottom: 18px; width: 1px; background: var(--line-strong); }
.timeline-item { position: relative; display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 26px; padding: 0 0 48px 38px; }
.timeline-marker { position: absolute; left: 0; top: 7px; width: 17px; height: 17px; border: 4px solid var(--bg); border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.timeline-date { color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding-top: 3px; }
.role-line { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.role-line h3 { margin: 0; font-size: 1.25rem; line-height: 1.25; }
.role-line span { flex: 0 0 auto; color: var(--primary); font-size: .78rem; font-weight: 800; text-align: right; }
.timeline-content > p { margin: 12px 0 0; color: var(--text-soft); font-size: .9rem; }
.timeline-subroles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.timeline-subroles span { padding: 10px 12px; border-radius: 10px; background: var(--surface-soft); color: var(--text-soft); font-size: .76rem; }
.timeline-subroles.compact { display: flex; flex-wrap: wrap; }
.education-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.education-grid div { padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.education-grid strong { display: block; font-size: .86rem; }
.education-grid span { display: block; margin-top: 4px; color: var(--muted); font-size: .74rem; }

.practice-project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.practice-project-card { display: flex; flex-direction: column; min-width: 0; padding: 36px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.practice-project-topline { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.practice-project-card h3 { margin: 16px 0 13px; font-size: clamp(1.4rem, 2.5vw, 2rem); line-height: 1.18; letter-spacing: -.035em; }
.practice-project-card > p { margin-bottom: 25px; color: var(--text-soft); }
.project-status { flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: .7rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.project-status-progress { background: var(--accent-soft); color: var(--accent); }
.practice-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 4px; }
.practice-metrics span { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); color: var(--muted); font-size: .73rem; line-height: 1.35; }
.practice-metrics strong { display: block; margin-bottom: 3px; color: var(--text); font-size: 1.1rem; letter-spacing: -.025em; }
.practice-project-card .tag-row { margin-top: 20px; }
.practice-links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: auto; padding-top: 8px; }

.section-dark { background: var(--dark); color: #edf4ff; }
.section-dark .kicker { color: #8fb5ff; }
.open-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.open-intro p { max-width: 520px; color: #aebed3; }
.open-intro .button { margin-top: 18px; }
.open-cards { display: grid; gap: 14px; }
.open-card { display: grid; grid-template-columns: 48px minmax(0, 1fr) 32px; gap: 16px; align-items: start; padding: 23px; border: 1px solid #2a3a50; border-radius: 16px; background: var(--dark-soft); text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.open-card:hover { transform: translateY(-3px); border-color: #668dcc; background: #15243a; }
.open-index { color: #8fb5ff; font-size: .76rem; font-weight: 850; letter-spacing: .08em; }
.open-card strong { display: block; font-size: 1rem; }
.open-card p { margin: 5px 0 0; color: #9eafc4; font-size: .84rem; }
.open-arrow { color: #8fb5ff; text-align: right; }

.about-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 90px; align-items: start; }
.about-copy p { color: var(--text-soft); font-size: 1rem; }
.about-copy p:first-of-type { margin-top: 26px; }
.capability-panel { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.capability-panel h3 { margin-bottom: 22px; font-size: 1.2rem; }
.capability-group { padding: 18px 0; border-top: 1px solid var(--line); }
.capability-group > span { color: var(--primary); font-size: .76rem; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }
.capability-group p { margin: 6px 0 0; color: var(--text-soft); font-size: .87rem; }

.contact-section { padding: 0 0 105px; }
.contact-panel { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: center; padding: 52px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--surface), var(--primary-soft)); box-shadow: var(--shadow-md); }
.contact-panel h2 { font-size: clamp(1.9rem, 3.5vw, 3.1rem); }
.contact-panel p { margin: 15px 0 0; color: var(--text-soft); }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.social-row { display: flex; flex-wrap: wrap; gap: 16px; }
.social-row a { color: var(--text-soft); text-decoration: none; font-size: .8rem; font-weight: 800; }
.social-row a:hover { color: var(--primary); }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.footer-inner { min-height: 86px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-inner a { color: var(--primary); text-decoration: none; font-weight: 800; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}


@media (max-width: 1040px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar-card { display: grid; grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr); }
  .motion-visual, .pillar-card .eis-visual { min-height: 100%; border-top: 0; border-left: 1px solid var(--line); }
  .project-quartet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1040px) {
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  .hero-grid { grid-template-columns: 1fr .72fr; gap: 46px; }
  .feature-project { grid-template-columns: 1fr; }
  .eis-visual { min-height: 420px; }
  .experience-layout, .open-grid, .about-layout { gap: 50px; }
  .education-grid { grid-template-columns: 1fr; }
  .practice-project-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .pillar-card { display: flex; }
  .motion-visual, .pillar-card .eis-visual { min-height: 360px; border-left: 0; border-top: 1px solid var(--line); }
  .research-bridge { grid-template-columns: 1fr; gap: 13px; margin-bottom: 58px; }
  .project-quartet { grid-template-columns: 1fr; }
  .publication-group-heading { display: block; }
  .publication-group-heading h3 { margin-top: 5px; text-align: left; }
  .section { padding: 76px 0; }
  .header-contact { display: none; }
  .hero { padding-top: 58px; }
  .hero-grid, .section-heading, .experience-layout, .open-grid, .about-layout, .contact-panel { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .profile-panel { max-width: 560px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: 1px solid var(--line); }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section-heading { gap: 22px; align-items: start; }
  .feature-project { padding: 27px; }
  .research-grid { grid-template-columns: 1fr; }
  .experience-layout { gap: 42px; }
  .role-line { display: block; }
  .role-line span { display: block; margin-top: 5px; text-align: left; }
  .timeline-subroles { grid-template-columns: 1fr; }
  .open-grid { gap: 42px; }
  .practice-project-card { padding: 28px; }
  .contact-panel { gap: 35px; padding: 36px; }
  .footer-inner { flex-wrap: wrap; padding: 24px 0; }
}

@media (max-width: 560px) {
  .pillar-copy { padding: 28px 24px 24px; }
  .motion-visual, .pillar-card .eis-visual { min-height: 315px; padding: 18px; }
  .research-bridge { padding: 20px; }
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .header-inner { min-height: 68px; }
  .brand small { display: none; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.45rem); }
  .hero-actions .button { width: 100%; }
  .profile-route { grid-template-columns: 1fr; }
  .profile-route svg { transform: rotate(90deg); justify-self: center; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric, .metric:last-child, .metric:nth-child(2) { border-right: 1px solid var(--line); }
  .metric:not(:first-child) { border-top: 1px solid var(--line); }
  .feature-project { padding: 21px; }
  .eis-visual { min-height: 0; padding: 15px; }
  .visual-footer { flex-wrap: wrap; justify-content: flex-start; }
  .research-card { padding: 26px; }
  .publication-item { grid-template-columns: 58px minmax(0, 1fr); gap: 14px; }
  .pub-link { display: none; }
  .timeline-item { grid-template-columns: 1fr; gap: 9px; padding-left: 32px; }
  .timeline::before { left: 7px; }
  .timeline-marker { left: -1px; }
  .open-card { grid-template-columns: 35px minmax(0, 1fr) 20px; padding: 18px; }
  .practice-project-topline { align-items: flex-start; }
  .practice-metrics { grid-template-columns: 1fr; }
  .contact-panel { padding: 28px 22px; }
  .contact-actions .button { width: 100%; overflow-wrap: anywhere; }
  .footer-inner { display: grid; }
}


/* Career progression and events */
.career-progression { display: grid; gap: 14px; margin-top: 24px; }
.career-role { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-soft); }
.career-role > div { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; }
.career-role strong { font-size: .96rem; }
.career-role span { color: var(--primary); font-size: .72rem; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.career-role p { margin: 7px 0 0; color: var(--text-soft); font-size: .84rem; }
.nav-current { color: var(--primary) !important; }

.events-hero { padding-top: 92px; padding-bottom: 82px; }
.events-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr); gap: 72px; align-items: end; }
.events-hero h1 { max-width: 900px; font-size: clamp(2.7rem, 5vw, 4.9rem); }
.events-summary { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.events-summary strong { display: block; color: var(--primary); font-size: 2.1rem; letter-spacing: -.04em; }
.events-summary span { display: block; margin-top: 10px; color: var(--text-soft); font-size: .9rem; }
.event-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.event-feature-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.event-feature-card img { width: 100%; height: 330px; object-fit: cover; object-position: center; }
.event-feature-card:nth-child(1) img { object-position: center 37%; }
.event-feature-card:nth-child(2) img { object-position: center 42%; }
.event-card-body { padding: 25px 27px 28px; }
.event-date { color: var(--primary); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.event-card-body h3 { margin: 9px 0 9px; font-size: 1.35rem; line-height: 1.2; letter-spacing: -.025em; }
.event-card-body p { margin: 0 0 18px; color: var(--text-soft); font-size: .9rem; }
.event-location { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: .73rem; font-weight: 800; }
.event-archive { display: grid; gap: 15px; }
.event-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; align-items: center; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.event-row img { width: 160px; height: 112px; object-fit: cover; border-radius: 13px; }
.event-row span { color: var(--primary); font-size: .71rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.event-row h3 { margin: 5px 0 2px; font-size: 1.08rem; line-height: 1.28; letter-spacing: -.015em; }
.event-row p { margin: 0; color: var(--text-soft); font-size: .84rem; }

@media (max-width: 780px) {
  .career-role > div { display: block; }
  .career-role span { display: block; margin-top: 3px; }
  .events-hero-grid, .event-feature-grid { grid-template-columns: 1fr; }
  .events-hero-grid { gap: 35px; }
  .event-feature-card img { height: 300px; }
}
@media (max-width: 560px) {
  .event-feature-card img { height: 250px; }
  .event-card-body { padding: 22px; }
  .event-row { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 12px; }
  .event-row img { width: 92px; height: 92px; }
  .event-row h3 { font-size: .94rem; }
}


/* Integrated sensor-intelligence narrative */
.method-framework {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  margin: 0 0 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(110deg, var(--surface), var(--surface-soft));
  box-shadow: var(--shadow-sm);
}
.method-step {
  min-width: 0;
  padding: 18px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 82%, var(--primary-soft));
}
.method-step span {
  display: block;
  margin-bottom: 13px;
  color: var(--primary);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .14em;
}
.method-step strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1.05rem;
}
.method-step p {
  margin: 0;
  color: var(--text-soft);
  font-size: .8rem;
  line-height: 1.55;
}
.method-arrow {
  align-self: center;
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 500;
}
.modality-intro {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin: 0 0 28px;
  padding: 0 4px;
}
.modality-intro span {
  color: var(--text);
  font-size: .77rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.modality-intro p {
  margin: 0;
  color: var(--text-soft);
  font-size: .9rem;
}

@media (max-width: 980px) {
  .method-framework {
    grid-template-columns: 1fr 1fr;
  }
  .method-arrow { display: none; }
}
@media (max-width: 640px) {
  .method-framework { grid-template-columns: 1fr; padding: 14px; }
  .method-step { padding: 16px; }
  .modality-intro { grid-template-columns: 1fr; gap: 8px; }
}

/* Teaching and Udemy courses — responsive, theme-aware layout */
.teaching-section {
  --teaching-bg: #f0f4fa;
  --teaching-card-bg: #ffffff;
  --teaching-inset-bg: #f3f6fb;
  --teaching-border: #d6e0ed;
  --teaching-accent: #154ec1;
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--primary) 7%, transparent), transparent 42%),
    var(--teaching-bg);
  border-block: 1px solid var(--line);
}
html[data-theme="dark"] .teaching-section {
  --teaching-bg: #0b1628;
  --teaching-card-bg: #111f34;
  --teaching-inset-bg: #192b44;
  --teaching-border: #2b4260;
  --teaching-accent: #9ac0ff;
}
.teaching-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-bottom: 58px;
}
.teaching-copy h2 {
  max-width: 710px;
  margin: 12px 0 22px;
  font-size: clamp(2.2rem, 4.1vw, 3.65rem);
  line-height: 1.1;
  letter-spacing: -.045em;
}
.teaching-copy p {
  max-width: 620px;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.03rem;
  line-height: 1.8;
}
.teaching-overview {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--teaching-border);
  border-radius: var(--radius-md);
  background: var(--teaching-card-bg);
  box-shadow: var(--shadow-sm);
}
.teaching-overview-heading { margin-bottom: 20px; }
.teaching-overview-eyebrow {
  display: block;
  color: var(--teaching-accent);
  font-size: .69rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.teaching-overview h3 {
  margin: 5px 0 0;
  font-size: 1.23rem;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.teaching-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.teaching-overview-item {
  min-width: 0;
  padding: 22px 17px;
  border-radius: 14px;
  border: 1px solid var(--teaching-border);
  background: var(--teaching-inset-bg);
}
.teaching-overview-item strong {
  display: block;
  font-size: clamp(1.55rem, 2.55vw, 2.15rem);
  letter-spacing: -.045em;
  line-height: 1.12;
  color: var(--teaching-accent);
  font-variant-numeric: tabular-nums;
}
.teaching-overview-item strong small { font-size: .5em; }
.teaching-overview-item > span {
  display: block;
  margin-top: 7px;
  color: var(--text-soft);
  font-size: .78rem;
  line-height: 1.4;
}
.teaching-courses-heading { margin-bottom: 24px; }
.teaching-courses-heading h3 {
  margin: 8px 0 0;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -.035em;
}
.teaching-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}
.teaching-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--teaching-border);
  border-radius: var(--radius-md);
  background: var(--teaching-card-bg);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.teaching-card:hover {
  transform: translateY(-3px);
  border-color: var(--teaching-accent);
  box-shadow: var(--shadow-md);
}
.teaching-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.teaching-card .project-number { color: var(--teaching-accent); }
.teaching-platform {
  padding: 5px 10px;
  border: 1px solid var(--teaching-border);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: .71rem;
  font-weight: 750;
}
.teaching-visual {
  min-height: 164px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 17px;
  overflow: hidden;
  padding: 22px 24px;
  border-radius: 17px;
  border: 1px solid var(--teaching-border);
}
.teaching-visual-keras {
  background: linear-gradient(125deg, color-mix(in srgb, var(--primary) 15%, var(--teaching-inset-bg)), var(--teaching-inset-bg));
}
.teaching-visual-linux {
  background: linear-gradient(125deg, color-mix(in srgb, var(--accent) 14%, var(--teaching-inset-bg)), var(--teaching-inset-bg));
}
.teaching-visual-eyebrow,
.teaching-visual-caption {
  font-size: .76rem;
  font-weight: 720;
  color: var(--text-soft);
  line-height: 1.4;
}
.teaching-visual-code {
  display: block;
  color: var(--teaching-accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: clamp(1.1rem, 2.25vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.teaching-card h3 {
  margin: 23px 0 13px;
  font-size: clamp(1.4rem, 2.4vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -.03em;
}
.teaching-card > p {
  margin: 0;
  color: var(--text-soft);
  font-size: .91rem;
  line-height: 1.7;
}
.teaching-card .tag-row {
  margin: 22px 0;
}
.teaching-course-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: auto;
  padding: 17px 0;
  border-block: 1px solid var(--teaching-border);
}
.teaching-course-metrics > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 12px;
  border-radius: 12px;
  background: var(--teaching-inset-bg);
}
.teaching-course-metrics strong {
  color: var(--text);
  font-size: .98rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
.teaching-course-metrics small {
  color: var(--text-soft);
  font-size: .72rem;
  line-height: 1.35;
}
.teaching-link { align-self: flex-start; margin-top: 22px; }
.teaching-note {
  max-width: 1020px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: .79rem;
  line-height: 1.7;
}
.teaching-note a {
  color: var(--teaching-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (min-width: 1041px) and (max-width: 1260px) {
  .desktop-nav { gap: 14px; }
  .header-inner { gap: 15px; }
  .desktop-nav a { font-size: .82rem; }
}
@media (max-width: 990px) {
  .teaching-hero { grid-template-columns: 1fr; gap: 28px; margin-bottom: 44px; }
  .teaching-overview { max-width: 680px; width: 100%; }
}
@media (max-width: 780px) {
  .teaching-grid { grid-template-columns: 1fr; }
  .teaching-visual { min-height: 135px; }
}
@media (max-width: 520px) {
  .teaching-card { padding: 20px; }
  .teaching-hero { margin-bottom: 40px; }
  .teaching-overview { padding: 18px; }
  .teaching-overview-item { padding: 17px 12px; }
  .teaching-overview-item strong { font-size: 1.7rem; }
  .teaching-card-topline { align-items: flex-start; }
  .teaching-course-metrics { gap: 7px; }
  .teaching-course-metrics > div { padding: 12px 7px; }
  .teaching-course-metrics strong { font-size: .85rem; }
  .teaching-course-metrics small { font-size: .67rem; }
}
@media (max-width: 360px) {
  .teaching-overview-grid { gap: 8px; }
  .teaching-course-metrics { grid-template-columns: 1fr; }
}


/* Homepage: discreet GenAI positioning in the hero and dismissible announcement. */
.genai-hero-note {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 100%;
  margin-top: 9px;
  padding: 9px 13px;
  border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary-soft) 58%, var(--surface));
  color: var(--text-soft);
  text-decoration: none;
  font-size: .82rem;
  line-height: 1.45;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.genai-hero-note strong { color: var(--primary); font-weight: 800; }
.genai-hero-note-symbol { color: var(--primary); font-size: 1rem; line-height: 1; }
.genai-hero-note:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-1px); }
.genai-hero-note:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

.genai-announcement {
  position: fixed;
  z-index: 900;
  right: clamp(12px, 2.2vw, 28px);
  bottom: clamp(12px, 2.2vw, 28px);
  width: min(390px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 23px;
  background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--primary-soft) 22%, var(--surface)));
  color: var(--text);
  box-shadow: 0 24px 74px rgba(16, 38, 80, .2), 0 3px 14px rgba(16, 38, 80, .08);
  opacity: 0;
  transform: translateY(22px) scale(.98);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.genai-announcement[hidden] { display: none !important; }
.genai-announcement.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.genai-announcement-close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text-soft);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.genai-announcement-close:hover { background: var(--primary-soft); color: var(--primary); }
.genai-announcement-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.genai-announcement-close:focus-visible,
.genai-announcement-projects a:focus-visible,
.genai-announcement-cta:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.genai-announcement-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 1px 40px 11px 0;
  color: var(--primary);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .14em;
}
.genai-announcement-eyebrow span { font-size: 1.05rem; line-height: 1; }
.genai-announcement h2 {
  margin: 0 28px 11px 0;
  font-size: 1.42rem;
  line-height: 1.2;
  letter-spacing: -.035em;
}
.genai-announcement > p {
  margin: 0 0 17px;
  color: var(--text-soft);
  font-size: .86rem;
  line-height: 1.65;
}
.genai-announcement > p strong { color: var(--text); font-weight: 750; }
.genai-announcement-projects { display: grid; gap: 7px; margin-bottom: 16px; }
.genai-announcement-projects a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 51px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease;
}
.genai-announcement-projects a:hover { border-color: var(--primary); background: var(--primary-soft); }
.genai-announcement-projects a > span:nth-child(2) { flex: 1; min-width: 0; }
.genai-announcement-projects a strong,
.genai-announcement-projects a small { display: block; }
.genai-announcement-projects a strong { font-size: .82rem; line-height: 1.35; }
.genai-announcement-projects a small { margin-top: 2px; color: var(--text-soft); font-size: .72rem; line-height: 1.35; }
.genai-announcement-projects a > span:last-child { color: var(--primary); font-size: .92rem; }
.genai-project-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 750;
}
.genai-announcement-cta {
  display: flex;
  width: 100%;
  min-height: 44px;
  font-size: .83rem;
}
@media (max-width: 480px) {
  .genai-announcement { width: calc(100vw - 24px); padding: 19px; border-radius: 19px; }
  .genai-announcement h2 { font-size: 1.25rem; }
  .genai-announcement > p { font-size: .82rem; }
  .genai-announcement-projects a { min-height: 46px; }
  .genai-hero-note { border-radius: 15px; font-size: .77rem; }
}
@media (prefers-reduced-motion: reduce) {
  .genai-announcement, .genai-hero-note { transition: none; }
}

/* Keep the longer AI-focused homepage headline balanced without changing other headings. */
.hero-copy h1 { font-size: clamp(2.25rem, 3.9vw, 3.8rem); line-height: 1.1; }
@media (max-width: 600px) {
  .hero-copy h1 { font-size: clamp(1.95rem, 8vw, 2.8rem); }
}
