@charset "UTF-8";

:root {
  color-scheme: dark;
  --ink: #08131f;
  --ink-raised: #0d1b29;
  --ink-soft: #132536;
  --panel: #102131;
  --panel-light: #172b3e;
  --text: #eef3f6;
  --muted: #9aabba;
  --muted-bright: #c3cfd8;
  --line: rgba(183, 204, 219, 0.15);
  --mint: #72e3c4;
  --mint-dark: #35bea2;
  --blue: #92bff0;
  --coral: #ff8f78;
  --content: 1160px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
::selection { color: #07151d; background: var(--mint); }
.shell { width: min(var(--content), calc(100% - 56px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 30; top: 12px; left: 12px; padding: 10px 14px; transform: translateY(-160%); background: var(--mint); color: var(--ink); border-radius: 8px; font-weight: 700; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(183, 204, 219, 0.09); background: rgba(8, 19, 31, 0.9); backdrop-filter: blur(18px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(114, 227, 196, 0.55); border-radius: 10px; color: var(--mint); font-size: 12px; font-weight: 800; letter-spacing: -0.06em; }
.brand-name { font-size: 14px; font-weight: 650; letter-spacing: -0.02em; }
.primary-nav { display: flex; align-items: center; gap: clamp(18px, 3.2vw, 40px); font-size: 13px; color: var(--muted-bright); }
.primary-nav a, .hero-links a, .contact-links a, .back-to-top { transition: color 180ms ease; }
.primary-nav a:hover, .hero-links a:hover, .contact-links a:hover, .back-to-top:hover { color: var(--mint); }
.primary-nav .nav-contact { color: var(--text); }
.primary-nav .nav-contact span { color: var(--mint); margin-left: 3px; }
.menu-toggle { display: none; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr); gap: clamp(50px, 8vw, 118px); align-items: center; min-height: 690px; padding-block: 80px 112px; }
.hero::before { content: ""; position: absolute; z-index: -1; width: 54vw; height: 54vw; max-width: 680px; max-height: 680px; top: -270px; left: -280px; border-radius: 50%; background: radial-gradient(circle, rgba(40, 124, 138, 0.12), transparent 67%); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; max-width: 700px; }
.eyebrow { margin: 0; color: var(--mint); font-size: 12px; font-weight: 750; letter-spacing: 0.16em; line-height: 1.5; text-transform: uppercase; }
.hero .eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 28px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 16px rgba(114, 227, 196, 0.75); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 560; letter-spacing: -0.045em; }
h1 { max-width: 760px; margin-bottom: 25px; font-size: clamp(42px, 5.4vw, 72px); line-height: 1.06; }
h1 em, h2 em, .mentorship-heading h2 em, .about-layout h2 em, .contact-panel h2 em { color: var(--mint); font-style: normal; }
.hero-lede { max-width: 570px; margin-bottom: 28px; color: var(--muted-bright); font-size: 17px; line-height: 1.75; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.location { display: inline-flex; align-items: center; gap: 7px; color: var(--muted-bright); }
.location svg { width: 15px; height: 15px; fill: none; stroke: var(--mint); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.meta-divider { width: 3px; height: 3px; border-radius: 50%; background: #607486; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 0 19px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 700; transition: transform 180ms var(--ease), background 180ms ease, border-color 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--mint); color: #07171e; }
.button-primary:hover { background: #91efd6; }
.button-quiet { border-color: var(--line); color: var(--text); }
.button-quiet:hover { border-color: rgba(114, 227, 196, 0.5); }
.button span { font-size: 15px; color: inherit; }
.hero-links { display: flex; flex-wrap: wrap; gap: 23px; margin-top: 34px; color: var(--muted); font-size: 12px; }
.hero-links span { margin-left: 2px; color: var(--mint); }

.hero-visual { position: relative; width: min(100%, 360px); justify-self: end; padding: 24px 0 32px; }
.portrait-frame { position: relative; z-index: 1; padding: 10px; border: 1px solid rgba(183, 204, 219, 0.2); border-radius: 23px; background: linear-gradient(150deg, rgba(255,255,255,0.08), rgba(255,255,255,0.015)); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28); transform: rotate(1.2deg); }
.portrait { width: 100%; aspect-ratio: 0.9; border-radius: 16px; object-fit: cover; object-position: 50% 44%; filter: saturate(0.82); }
.portrait-caption { position: absolute; right: 10px; bottom: 10px; left: 10px; display: flex; align-items: center; gap: 11px; min-height: 72px; padding: 12px 14px; border: 1px solid rgba(255,255,255,0.16); border-radius: 13px; background: rgba(8, 19, 31, 0.82); backdrop-filter: blur(12px); }
.caption-mark { display: grid; width: 34px; height: 34px; flex: none; place-items: center; border-radius: 10px; background: rgba(114,227,196,0.13); color: var(--mint); font-size: 17px; }
.portrait-caption strong, .portrait-caption small { display: block; line-height: 1.4; }
.portrait-caption strong { font-size: 12px; }
.portrait-caption small { color: var(--muted); font-size: 12px; }
.caption-location { margin-left: auto; color: var(--muted-bright); font-size: 12px; letter-spacing: 0.08em; }
.caption-location span { color: var(--mint); }
.hero-scroll { position: absolute; right: 0; bottom: 42px; display: flex; align-items: center; gap: 10px; color: #64788a; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-scroll span { display: block; width: 25px; height: 1px; background: #42586b; }

.proof-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.018); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 26px; }
.proof-item { display: flex; align-items: baseline; gap: 13px; min-height: 43px; padding-inline: 24px; border-right: 1px solid var(--line); }
.proof-item:first-child { padding-left: 0; }
.proof-item:last-child { padding-right: 0; border-right: 0; }
.proof-item strong { color: var(--text); font-size: 29px; font-weight: 560; letter-spacing: -0.06em; line-height: 1; white-space: nowrap; }
.proof-item strong span { color: var(--mint); }
.proof-item > span { max-width: 150px; color: var(--muted); font-size: 12px; line-height: 1.4; }

.section { padding-block: 80px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.engineering-heading { display: grid; grid-template-columns: minmax(190px, 0.38fr) minmax(0, 1.62fr); align-items: center; gap: clamp(28px, 5vw, 68px); }
.engineering-visual { width: min(100%, 260px); margin: 0; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.2)); }
.engineering-visual svg { display: block; width: 100%; height: auto; }
.engineering-heading-copy { min-width: 0; }
.engineering-heading-copy .section-kicker { margin-bottom: 15px; }
.engineering-heading-copy h2 { max-width: 850px; }
.section-kicker { margin-bottom: 17px; }
h2 { margin-bottom: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
.section-intro { max-width: 330px; margin: 0 0 5px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.engineering-heading-copy .section-intro { max-width: 610px; margin: 14px 0 0; }
.project-card { display: grid; grid-template-columns: 0.95fr 1.05fr; overflow: hidden; border: 1px solid rgba(183, 204, 219, 0.16); border-radius: 18px; background: linear-gradient(135deg, #122538, #0d1a27 70%); }
.project-main { display: flex; flex-direction: column; justify-content: flex-start; padding: clamp(26px, 4vw, 50px); }
.project-overline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--mint); font-size: 12px; font-weight: 750; letter-spacing: 0.13em; text-transform: uppercase; }
.project-star { font-size: 14px; }
.project-open { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; }
.project-main h3 { margin: 22px 0 13px; font-size: clamp(34px, 4vw, 50px); line-height: 1; }
.project-summary { max-width: 455px; margin-bottom: 18px; color: var(--muted-bright); font-size: 15px; line-height: 1.7; }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 26px; }
.project-tags span, .about-stack span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted-bright); font-size: 12px; }
code { color: var(--mint); font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 0.93em; }
.project-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 24px; }
.project-links .button { min-height: 43px; padding-inline: 15px; font-size: 13px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted-bright); font-size: 12px; font-weight: 650; transition: color 180ms ease; }
.text-link:hover { color: var(--mint); }
.text-link span { color: var(--mint); }
.project-engineering { display: grid; gap: 11px; margin: 1px 0 12px; padding: 18px 0 0; border-top: 1px solid var(--line); }
.project-engineering-item { display: grid; grid-template-columns: 93px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.project-engineering-item dt { color: var(--mint); font-size: 12px; font-weight: 750; }
.project-engineering-item dd { min-width: 0; margin: 0; color: var(--muted-bright); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.project-engineering-item code { font-size: 0.95em; }
@media (max-width: 420px) {
  .project-engineering-item { grid-template-columns: 1fr; gap: 2px; }
}
.project-gallery { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(12px, 3vw, 34px); overflow: hidden; min-height: 340px; padding: 18px 18px 16px; background: radial-gradient(ellipse at 50% 45%, rgba(77, 166, 172, 0.12), transparent 70%); }
.project-gallery::before { content: "BATTERY EVENT → ALARM"; position: absolute; top: 25px; left: 25px; color: rgba(154, 171, 186, 0.5); font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; letter-spacing: 0.12em; }
.device-shot { position: relative; width: clamp(108px, 12vw, 128px); aspect-ratio: 0.48; margin: 0; padding: 7px; border: 1px solid rgba(195, 207, 216, 0.32); border-radius: 20px; background: #060d14; box-shadow: 0 18px 45px rgba(0,0,0,0.35); }
.device-main { transform: translateY(12px) rotate(-4deg); }
.device-alert { z-index: 2; transform: translateY(-9px) rotate(3deg); }
.device-shot img { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); border-radius: 14px; object-fit: cover; }
.device-shot figcaption { position: absolute; right: 8px; bottom: 8px; left: 8px; padding: 6px 8px; border: 1px solid rgba(255,255,255,0.13); border-radius: 8px; background: rgba(8,19,31,0.82); color: #e8edf0; font-size: 12px; text-align: center; backdrop-filter: blur(8px); }

.section-tint { border-top: 1px solid rgba(183,204,219,0.08); border-bottom: 1px solid rgba(183,204,219,0.08); background: #0b1825; }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.case-card { position: relative; padding: 27px 29px 23px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(145deg, rgba(21, 42, 59, 0.88), rgba(13, 27, 40, 0.9)); }
.case-featured { background: linear-gradient(145deg, rgba(20, 55, 61, 0.68), rgba(13, 27, 40, 0.94)); }
.case-topline { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.case-topline span:first-child { color: var(--mint); font-weight: 800; }
.case-card h3 { max-width: 420px; margin: 19px 0 21px; font-size: 23px; line-height: 1.25; }
.case-block { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 12px; margin-top: 10px; }
.case-block > span, .case-result > span { color: var(--mint); font-size: 12px; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
.case-block p, .case-result p { margin: 0; color: var(--muted-bright); font-size: 13px; line-height: 1.6; }
.case-result { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 12px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.case-result p { color: var(--text); }
.case-stack { margin-top: 17px; color: #7c91a2; font-size: 12px; letter-spacing: 0.04em; }
.case-stack span { padding-inline: 2px; color: var(--mint-dark); }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.product-card { display: flex; min-width: 0; min-height: 218px; flex-direction: column; padding: 22px 20px 19px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, rgba(21, 42, 59, 0.88), rgba(13, 27, 40, 0.9)); }
.product-card-highlight { border-color: rgba(114,227,196,0.25); background: linear-gradient(145deg, rgba(20, 55, 61, 0.68), rgba(13, 27, 40, 0.94)); }
.product-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; }
.product-meta span:first-child { color: var(--mint); font-weight: 800; }
.product-card-heading { display: flex; min-width: 0; align-items: center; gap: 12px; margin: 23px 0 9px; }
.product-card-heading h3 { min-width: 0; margin: 0; font-size: 20px; line-height: 1.2; }
.product-icon-link { display: block; width: 48px; height: 48px; flex: 0 0 auto; overflow: hidden; border: 1px solid rgba(183,204,219,0.2); border-radius: 11px; background: #132638; transition: transform 180ms ease, border-color 180ms ease; }
.product-icon-link:hover { transform: translateY(-2px); border-color: rgba(114,227,196,0.62); }
.product-icon-link:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.product-app-icon { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.product-icon-cluster { display: flex; flex: 0 0 auto; gap: 5px; margin-left: auto; }
.product-icon-cluster .product-icon-link { width: 28px; height: 28px; border-radius: 8px; }
.product-card p { margin: 0; color: var(--muted-bright); font-size: 13px; line-height: 1.65; }
.product-store-links { display: flex; flex-wrap: wrap; gap: 0 15px; margin-top: auto; padding-top: 19px; }
.product-store-link { display: inline-flex; align-items: center; gap: 5px; padding-top: 3px; color: var(--muted-bright); font-size: 12px; font-weight: 700; }
.product-store-link span, .product-note span { color: var(--mint); }
.product-store-link:hover { color: var(--mint); }
.product-note { margin: 17px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.product-note span { margin-right: 5px; }

.apps-heading { display: grid; grid-template-columns: minmax(190px, 0.38fr) minmax(0, 1.62fr); align-items: center; gap: clamp(28px, 5vw, 68px); }
.apps-visual { display: grid; width: 112px; height: 112px; place-items: center; padding: 14px; border: 1px solid rgba(183,204,219,0.18); border-radius: 19px; background: linear-gradient(145deg, rgba(21, 42, 59, 0.92), rgba(13, 27, 40, 0.94)); box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18); }
.apps-store-link { display: grid; width: 64px; height: 64px; place-items: center; border: 1px solid rgba(183,204,219,0.2); border-radius: 17px; background: #fff; transition: transform 180ms ease, border-color 180ms ease; }
.apps-store-link:hover { transform: translateY(-2px); border-color: rgba(114,227,196,0.62); }
.apps-store-link:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.play-store-icon { display: block; width: 43px; height: 43px; }
.apps-heading-copy { min-width: 0; }
.apps-heading-copy .section-kicker { margin-bottom: 15px; }
.apps-heading-copy .section-intro { max-width: 610px; margin: 14px 0 0; }

.learning-heading { display: grid; grid-template-columns: minmax(150px, 0.32fr) minmax(0, 1.68fr); align-items: center; gap: clamp(26px, 5vw, 68px); }
.youtube-visual { width: min(100%, 230px); margin: 0; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.2)); }
.youtube-visual svg { display: block; width: 100%; height: auto; }
.learning-heading-copy { min-width: 0; }
.learning-heading-copy .section-kicker { margin-bottom: 15px; }
.learning-intro { max-width: 570px; margin-top: 14px; }
.learning-intro p { margin-bottom: 10px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.learning-intro p strong { color: var(--text); font-variant-numeric: tabular-nums; }
.course-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.course-table col:first-child { width: 68%; }
.course-table col:nth-child(2) { width: 12%; }
.course-table col:nth-child(3) { width: 20%; }
.course-table thead th { padding: 0 14px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-align: right; text-transform: uppercase; }
.course-table thead th:first-child { text-align: left; }
.course-table tbody tr { border-bottom: 1px solid var(--line); transition: background 160ms ease; }
.course-table tbody tr:hover { background: rgba(255,255,255,0.025); }
.course-table tbody th, .course-table tbody td { padding: 17px 14px; font-size: 13px; }
.course-table tbody th { color: var(--text); font-weight: 650; text-align: left; }
.course-table tbody td { color: var(--muted-bright); text-align: right; font-variant-numeric: tabular-nums; }
.course-table tbody td:last-child { color: var(--mint); font-weight: 750; }
.course-title-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: inherit; line-height: 1.45; }
.course-title-link span { flex: 0 0 auto; color: var(--mint); font-size: 14px; }
.course-title-link:hover { color: var(--mint); }
.course-title-link:focus-visible { border-radius: 3px; outline: 2px solid var(--mint); outline-offset: 4px; }

.mentorship-band { position: relative; overflow: hidden; border-block: 1px solid rgba(114,227,196,0.15); background: linear-gradient(110deg, #102b35, #0d2230 60%, #0b1a27); }
.mentorship-band::after { content: ""; position: absolute; top: -260px; right: -140px; width: 590px; height: 590px; border: 1px solid rgba(114,227,196,0.08); border-radius: 50%; box-shadow: 0 0 0 42px rgba(114,227,196,0.025), 0 0 0 84px rgba(114,227,196,0.02); pointer-events: none; }
.mentorship-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(38px, 6vw, 88px); padding-block: 76px; }
.mentorship-visual { width: min(100%, 420px); justify-self: center; margin: 0; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.2)); }
.mentorship-visual svg { display: block; width: 100%; height: auto; }
.mentorship-content { display: grid; min-width: 0; gap: 19px; align-content: center; }
.mentorship-heading h2 { max-width: 700px; margin-top: 14px; font-size: clamp(35px, 3.8vw, 48px); line-height: 1.11; }
.mentorship-copy { max-width: 560px; }
.mentorship-lede { margin-bottom: 0; color: var(--muted-bright); font-size: 15px; line-height: 1.75; }
.teaching-list { display: grid; gap: 0; margin: 16px 0 21px; padding: 0; list-style: none; }
.teaching-list li { display: flex; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid rgba(183,204,219,0.12); color: var(--muted-bright); font-size: 13px; }
.teaching-list li span { color: var(--mint); font-size: 12px; font-weight: 800; }
.mentorship-result { display: flex; align-items: center; gap: 17px; max-width: 365px; padding: 14px 16px; border: 1px solid rgba(114,227,196,0.23); border-radius: 10px; background: rgba(8,19,31,0.32); }
.mentorship-result strong { color: var(--mint); font-size: 36px; font-weight: 550; letter-spacing: -0.07em; line-height: 1; }
.mentorship-result span { color: var(--text); font-size: 13px; line-height: 1.5; }

.timeline { border-top: 1px solid var(--line); }
.timeline-item { position: relative; display: grid; grid-template-columns: 205px 1fr 35px; gap: 27px; align-items: start; padding: 23px 0; border-bottom: 1px solid var(--line); }
.timeline-date { display: flex; align-items: center; gap: 11px; padding-top: 3px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.timeline-dot { width: 7px; height: 7px; flex: none; border: 1px solid #6d8599; border-radius: 50%; background: var(--ink); }
.timeline-current .timeline-dot { border-color: var(--mint); background: var(--mint); box-shadow: 0 0 10px rgba(114,227,196,0.45); }
.timeline-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.timeline-title h3 { margin: 0; font-size: 18px; }
.timeline-body p { max-width: 680px; margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.timeline-index { padding-top: 3px; color: #53687a; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; text-align: right; }
.experience-layout { display: grid; grid-template-columns: minmax(155px, 0.48fr) minmax(0, 2.4fr); align-items: start; gap: clamp(28px, 4vw, 52px); }
.experience-visual { width: min(100%, 230px); margin: 0; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.2)); }
.experience-visual svg { display: block; width: 100%; height: auto; }
.experience-content { min-width: 0; }
.experience-heading { display: block; margin-bottom: 30px; }
.experience-heading .section-intro { max-width: 600px; margin: 14px 0 0; }

.about-section { padding-block: 90px; border-block: 1px solid var(--line); background: rgba(255,255,255,0.018); }
.about-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 100px; }
.about-layout h2 { margin-top: 18px; font-size: clamp(34px, 4vw, 48px); line-height: 1.13; }
.about-copy { max-width: 600px; }
.about-copy p { color: var(--muted-bright); font-size: 14px; line-height: 1.85; }
.about-stack { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }

.contact-section { padding-block: 94px 72px; }
.contact-panel { position: relative; overflow: hidden; min-height: 345px; padding: clamp(28px, 5vw, 58px); border: 1px solid rgba(114,227,196,0.25); border-radius: 17px; background: linear-gradient(115deg, #112d39, #0f2232 56%, #102437); }
.contact-panel .eyebrow { margin-bottom: 15px; }
.contact-panel h2 { position: relative; z-index: 1; margin-bottom: 14px; font-size: clamp(36px, 4.6vw, 54px); line-height: 1.07; }
.contact-panel > p:not(.eyebrow) { position: relative; z-index: 1; margin-bottom: 20px; color: var(--muted-bright); font-size: 14px; }
.contact-panel .button { position: relative; z-index: 1; min-height: 43px; font-size: 12px; }
.contact-links { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 21px; margin-top: 27px; color: var(--muted); font-size: 12px; }
.contact-links span { color: var(--mint); }
.contact-orbit { position: absolute; top: -155px; right: -32px; width: 455px; height: 455px; border: 1px solid rgba(114,227,196,0.14); border-radius: 50%; }
.contact-orbit span { position: absolute; inset: 39px; border: 1px solid rgba(114,227,196,0.11); border-radius: 50%; }
.contact-orbit span:nth-child(2) { inset: 79px; }
.contact-orbit span:nth-child(3) { inset: 119px; background: radial-gradient(circle, rgba(114,227,196,0.08), transparent 70%); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 78px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-brand .brand-mark { width: 28px; height: 28px; border-radius: 8px; font-size: 12px; }
.footer-brand .brand-name { color: var(--muted-bright); font-size: 12px; }
.footer-dot { color: var(--mint); padding-inline: 3px; }
.back-to-top { color: var(--muted-bright); }

:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(270px, 0.7fr); gap: 45px; min-height: 640px; }
  h1 { font-size: clamp(39px, 6vw, 61px); }
  .proof-item { padding-inline: 16px; gap: 9px; }
  .proof-item strong { font-size: 25px; }
  .project-card { grid-template-columns: 1fr 0.9fr; }
  .project-gallery { gap: 15px; }
  .about-layout { gap: 55px; }
  .mentorship-layout { gap: 28px; }
  .experience-layout { grid-template-columns: minmax(140px, 0.48fr) minmax(0, 2.4fr); gap: 28px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 74px; }
  .shell { width: min(var(--content), calc(100% - 38px)); }
  .header-inner { min-height: 66px; }
  .brand-mark { width: 31px; height: 31px; }
  /* With JavaScript unavailable, show navigation instead of hiding all section links. */
  .header-inner { flex-wrap: wrap; }
  .js-enabled .header-inner { flex-wrap: nowrap; }
  .menu-toggle { display: none; width: 40px; height: 40px; place-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--text); cursor: pointer; }
  .js-enabled .menu-toggle { display: grid; }
  .menu-toggle span { display: block; width: 15px; height: 1px; background: currentColor; transition: transform 180ms ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .primary-nav { position: static; flex-basis: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 19px 15px; border-bottom: 1px solid var(--line); background: rgba(8,19,31,0.98); }
  .js-enabled .primary-nav { position: absolute; top: 65px; right: 0; left: 0; display: none; flex-basis: auto; box-shadow: 0 18px 28px rgba(0,0,0,0.22); }
  .js-enabled .primary-nav[data-open="true"] { display: flex; }
  .primary-nav a { padding: 12px 5px; border-bottom: 1px solid rgba(183,204,219,0.08); }
  .primary-nav .nav-contact { margin-top: 5px; border: 0; }
  .hero { grid-template-columns: 1fr; gap: 38px; min-height: auto; padding-block: 63px 77px; }
  .hero-copy { max-width: 650px; }
  .hero .eyebrow { margin-bottom: 19px; }
  h1 { max-width: 610px; margin-bottom: 18px; font-size: clamp(40px, 9.1vw, 62px); }
  .hero-lede { max-width: 540px; margin-bottom: 20px; font-size: 15px; }
  .hero-actions { margin-top: 26px; }
  .hero-links { margin-top: 25px; }
  .hero-visual { width: min(78%, 360px); justify-self: center; margin: 0 16px 12px; }
  .portrait { aspect-ratio: 1; }
  .hero-scroll { bottom: 28px; font-size: 12px; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); padding-block: 10px; }
  .proof-item { min-height: 67px; padding: 12px 15px; border-bottom: 1px solid var(--line); }
  .proof-item:first-child { padding-left: 15px; }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(3), .proof-item:nth-child(4) { border-bottom: 0; }
  .proof-item:last-child { padding-right: 15px; }
  .proof-item > span { max-width: 130px; font-size: 12px; }
  .section { padding-block: 76px; }
  .section-heading { display: block; margin-bottom: 29px; }
  .section-intro { max-width: 500px; margin-top: 14px; font-size: 14px; }
  .engineering-heading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 21px; }
  .engineering-visual { width: min(100%, 270px); }
  .learning-heading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 21px; }
  .youtube-visual { width: min(100%, 260px); }
  .apps-heading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 21px; }
  .apps-visual { width: 112px; }
  h2 { font-size: clamp(31px, 7vw, 43px); }
  .project-card { grid-template-columns: 1fr; }
  .project-main { padding: 27px 23px; }
  .project-main h3 { font-size: 42px; }
  .project-gallery { min-height: 365px; padding: 26px 18px 18px; }
  .device-shot { width: min(26%, 136px); }
  .case-grid { grid-template-columns: 1fr; gap: 11px; }
  .case-card { padding: 23px 21px 20px; }
  .case-card h3 { font-size: 22px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .product-card { min-height: 205px; padding: 18px 16px 16px; }
  .product-card-heading { margin-top: 20px; gap: 10px; }
  .product-card-heading h3 { font-size: 18px; }
  .product-card p { font-size: 13px; }
  .product-meta { font-size: 12px; }
  .product-card:last-child:nth-child(5) { grid-column: 1 / -1; width: calc((100% - 11px) / 2); justify-self: center; }
  .course-table tbody th, .course-table tbody td { padding: 15px 10px; font-size: 13px; }
  .course-table thead th { padding-inline: 10px; }
  .mentorship-layout { grid-template-columns: 1fr; gap: 26px; padding-block: 69px; }
  .mentorship-visual { width: min(100%, 350px); }
  .experience-layout { grid-template-columns: 1fr; gap: 24px; }
  .experience-visual { width: min(100%, 260px); }
  .mentorship-heading h2 { margin-top: 14px; font-size: 42px; }
  .mentorship-lede { font-size: 15px; }
  .timeline-item { grid-template-columns: 1fr 25px; gap: 6px 15px; padding: 18px 0; }
  .timeline-date { grid-column: 1; font-size: 12px; }
  .timeline-body { grid-column: 1; padding-left: 18px; }
  .timeline-index { grid-column: 2; grid-row: 1 / span 2; padding-top: 0; }
  .timeline-title { gap: 7px; }
  .timeline-title h3 { font-size: 16px; }
  .timeline-body p { font-size: 13px; }
  .about-section { padding-block: 66px; }
  .about-layout { grid-template-columns: 1fr; gap: 23px; }
  .about-layout h2 { margin-top: 14px; font-size: 41px; }
  .about-copy p { font-size: 14px; }
  .contact-section { padding-block: 65px 48px; }
  .contact-panel { min-height: 350px; padding: 29px 23px; }
  .contact-panel h2 { font-size: 41px; }
  .contact-orbit { top: -137px; right: -260px; }
  .contact-links { gap: 14px; max-width: 300px; }
  .site-footer { flex-wrap: wrap; justify-content: space-between; padding-block: 16px; }
  .site-footer > span { order: 3; width: 100%; }
}

@media (max-width: 420px) {
  .shell { width: calc(100% - 32px); }
  .brand-name { font-size: 13px; }
  .hero { padding-top: 52px; }
  h1 { font-size: 39px; }
  .hero-meta { gap: 8px; font-size: 12px; }
  .hero-actions { align-items: stretch; }
  .button { min-height: 46px; padding-inline: 14px; font-size: 12px; }
  .hero-actions .button { flex: 1 1 auto; }
  .hero-links { gap: 17px; }
  .hero-visual { width: min(82%, 320px); }
  .proof-item { gap: 8px; padding-inline: 10px; }
  .proof-item:first-child { padding-left: 10px; }
  .proof-item:last-child { padding-right: 10px; }
  .proof-item strong { font-size: 23px; }
  .proof-item > span { font-size: 12px; }
  .project-main { padding-inline: 19px; }
  .project-open { letter-spacing: 0.04em; }
  .project-links { align-items: flex-start; flex-direction: column; gap: 13px; }
  .project-gallery { min-height: clamp(265px, 76vw, 320px); padding: 24px 18px 16px; }
  .device-shot { width: 34%; }
  .case-block, .case-result { grid-template-columns: 69px minmax(0, 1fr); gap: 8px; }
  .case-block p, .case-result p { font-size: 13px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card:last-child:nth-child(5) { grid-column: auto; width: 100%; justify-self: stretch; }
  .product-card { min-height: 175px; }
  .course-table col:first-child { width: 58%; }
  .course-table col:nth-child(2) { width: 20%; }
  .course-table col:nth-child(3) { width: 22%; }
  .course-table thead th { font-size: 12px; }
  .timeline-title { align-items: flex-start; flex-direction: column; }
  .timeline-title h3 { font-size: 15px; }
  .contact-links { gap: 12px; }
  .site-footer > span { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Keep text legible and long content contained on narrow screens. */
.project-main, .project-overline, .case-card, .case-block p, .case-result p,
.product-card, .course-title-link, .contact-panel { min-width: 0; }
.project-open, .project-summary, .course-title-link, .contact-panel .button,
.contact-links a { overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .project-overline { column-gap: 12px; row-gap: 5px; }
  .case-block, .case-result { grid-template-columns: 76px minmax(0, 1fr); }
  .course-table tbody th, .course-table tbody td { padding-inline: 7px; }
}
