:root {
  --bg: #071321;
  --bg-deep: #050d18;
  --surface: #0c1b2c;
  --surface-2: #102238;
  --text: #f2f6fc;
  --muted: #a5b4c8;
  --muted-2: #788ba5;
  --line: rgba(173, 196, 224, 0.14);
  --accent: #69bdff;
  --accent-2: #9bd7ff;
  --green: #71d6b1;
  --orange: #ffbd83;
  --font: "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --container: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { color: #06111f; background: var(--accent); }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.section { padding: 112px 0; position: relative; }
.section-shell { position: relative; overflow: hidden; }
.skip-link { position: absolute; z-index: 1000; left: 16px; top: -60px; padding: 10px 14px; color: #071321; background: var(--accent); border-radius: 8px; }
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Navigation */
.site-header { position: sticky; z-index: 100; top: 0; background: rgba(7, 19, 33, .84); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.nav-wrap { height: 78px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; }
.brand-mark { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid rgba(105, 189, 255, .55); border-radius: 11px; font-weight: 800; font-size: 13px; letter-spacing: -.06em; color: var(--text); }
.brand-mark span { color: var(--accent); }
.brand-name { font-weight: 700; letter-spacing: -.025em; font-size: 13px; }
.primary-nav { display: flex; align-items: center; gap: 35px; }
.primary-nav a { color: var(--muted); font-size: 12px; font-weight: 700; transition: color .2s ease; }
.primary-nav a:hover, .primary-nav a.active { color: var(--text); }
.primary-nav .nav-contact { color: var(--accent); padding: 9px 14px; border: 1px solid rgba(105, 189, 255, .32); border-radius: 7px; }
.primary-nav .nav-contact:hover { background: rgba(105, 189, 255, .1); color: var(--accent-2); }
.menu-toggle { display: none; }

/* Type and reusable components */
.eyebrow { margin: 0 0 22px; display: flex; align-items: center; gap: 11px; color: var(--accent); font: 500 10px/1.5 var(--mono); letter-spacing: .15em; }
.eyebrow-line { width: 25px; height: 1px; background: var(--accent); display: inline-block; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.065em; line-height: 1.13; }
h2 { margin-bottom: 0; font-size: clamp(34px, 4.6vw, 55px); font-weight: 700; }
h2 span, h1 span { color: var(--accent); }
.section-intro { max-width: 355px; margin: 0 0 4px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.section-topline { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 52px; }
.section-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 95px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 0 19px; border-radius: 7px; font-size: 11px; font-weight: 800; letter-spacing: .01em; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #061321; background: var(--accent); border: 1px solid var(--accent); }
.button-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.button-secondary { color: var(--text); background: rgba(255,255,255,.015); border: 1px solid rgba(185, 205, 230, .24); }
.button-secondary:hover { border-color: var(--accent); background: rgba(105,189,255,.07); }

/* Hero */
.hero { min-height: 670px; padding: 91px 0 34px; background: radial-gradient(ellipse at 82% 30%, rgba(35, 100, 153, .16), transparent 36%), linear-gradient(180deg, #081727 0%, var(--bg) 100%); }
.hero-grid { min-height: 500px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 42px; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 15px; }
.hero h1 { margin: 0 0 27px; font-size: clamp(43px, 6vw, 70px); font-weight: 800; letter-spacing: -.075em; line-height: 1.08; }
.hero-name { margin: 0 0 2px; font-size: 20px; font-weight: 800; letter-spacing: -.035em; }
.hero-role { margin: 0 0 17px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .015em; }
.hero-summary { max-width: 500px; margin: 0; color: var(--muted); font-size: 13px; line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 29px; }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 42px; color: var(--muted-2); font: 10px var(--mono); }
.meta-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(113,214,177,.6); }
.meta-separator { color: #40536b; }
.hero-visual { position: relative; min-height: 435px; display: grid; place-items: center; isolation: isolate; }
.visual-grid { position: absolute; inset: 15px 5px 20px 10px; opacity: .48; background-image: linear-gradient(rgba(129,165,204,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(129,165,204,.09) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(ellipse, #000 30%, transparent 75%); }
.visual-orbit { position: absolute; border: 1px solid rgba(105,189,255,.23); border-radius: 50%; transform: rotate(-28deg); }
.orbit-one { width: 365px; height: 210px; }
.orbit-two { width: 270px; height: 375px; transform: rotate(42deg); border-color: rgba(141,183,226,.15); }
.visual-core { position: relative; z-index: 2; width: 210px; height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(126,190,239,.5); border-radius: 50%; background: radial-gradient(circle at 50% 35%, rgba(36,108,164,.33), rgba(8,25,43,.96) 66%); box-shadow: 0 0 65px rgba(42,126,188,.16), inset 0 0 36px rgba(91,164,222,.08); }
.core-monogram { font-size: 66px; font-weight: 800; letter-spacing: -.09em; line-height: 1; color: #e8f5ff; }
.core-caption { margin-top: 12px; color: var(--accent); font: 8px var(--mono); letter-spacing: .17em; }
.core-cross { position: absolute; width: 1px; height: 16px; background: var(--accent); opacity: .8; }
.core-cross-top { top: -9px; }
.core-cross-bottom { bottom: -9px; }
.float-tag { position: absolute; z-index: 4; padding: 9px 12px; border: 1px solid rgba(144,180,217,.2); border-radius: 7px; background: rgba(10,27,46,.91); color: #d8e9fa; box-shadow: 0 12px 35px rgba(0,0,0,.24); font: 9px var(--mono); letter-spacing: .04em; white-space: nowrap; }
.tag-icon { margin-right: 7px; color: var(--accent); font-size: 13px; }
.tag-cad { top: 58px; left: 4%; }
.tag-automation { top: 130px; right: 0; }
.tag-embedded { bottom: 68px; left: 1%; }
.visual-index { position: absolute; bottom: 9px; right: 7px; color: var(--muted-2); font: 9px var(--mono); letter-spacing: .12em; }
.visual-index span { color: var(--accent); }
.hero-bottom { display: flex; align-items: center; gap: 15px; padding-top: 37px; color: var(--muted-2); font: 9px var(--mono); letter-spacing: .13em; }
.scroll-line { width: 70px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.hero-bottom-note { margin-left: auto; letter-spacing: .02em; text-transform: none; }

/* About */
.section-about { background: #0a1929; border-block: 1px solid rgba(173,196,224,.07); }
.section-about .section-grid { align-items: start; }
.about-content { padding-top: 4px; }
.lead-text { margin: 0 0 20px; color: #e0eaf5; font-size: 18px; line-height: 1.75; font-weight: 600; letter-spacing: -.025em; }
.body-text { color: var(--muted); font-size: 12px; line-height: 2; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 23px 30px; margin-top: 31px; padding-top: 27px; border-top: 1px solid var(--line); }
.fact-item:last-child { grid-column: 1 / -1; }
.fact-label { display: block; margin-bottom: 6px; color: var(--muted-2); font: 9px var(--mono); letter-spacing: .12em; }
.fact-item strong { font-size: 12px; font-weight: 700; }

/* Interests */
.section-interests { background: var(--bg); }
.interest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.interest-card { min-height: 205px; padding: 24px 22px 20px; border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(145deg, rgba(17,39,62,.72), rgba(9,25,43,.52)); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.interest-card:hover { transform: translateY(-4px); border-color: rgba(105,189,255,.38); background: linear-gradient(145deg, rgba(20,48,75,.84), rgba(9,25,43,.65)); }
.interest-icon { width: 35px; height: 35px; display: grid; place-items: center; margin-bottom: 19px; border-radius: 9px; background: rgba(105,189,255,.1); color: var(--accent); font-size: 20px; }
.icon-purple { color: #c0a8ff; background: rgba(166,135,255,.1); }
.icon-cyan { color: #75d8ef; background: rgba(117,216,239,.1); }
.icon-orange { color: #ffc18b; background: rgba(255,193,139,.1); }
.icon-green { color: #85ddb7; background: rgba(133,221,183,.1); }
.icon-pink { color: #efacd5; background: rgba(239,172,213,.1); }
.interest-card h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: -.02em; }
.interest-card p { min-height: 43px; margin: 0 0 15px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.skill-tags, .project-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tags span, .project-stack span { padding: 4px 8px; border: 1px solid rgba(147,177,210,.16); border-radius: 4px; color: #aec3da; background: rgba(255,255,255,.025); font: 8px var(--mono); }
.skills-note { display: flex; align-items: flex-start; gap: 9px; margin: 21px 0 0; color: var(--muted-2); font-size: 10px; }
.note-mark { display: inline-grid; flex: 0 0 15px; width: 15px; height: 15px; place-items: center; border: 1px solid rgba(105,189,255,.35); border-radius: 50%; color: var(--accent); font: 9px var(--mono); }

/* Projects */
.section-projects { background: #091827; border-block: 1px solid rgba(173,196,224,.07); }
.projects-list { display: grid; gap: 18px; }
.project-card { display: grid; grid-template-columns: .86fr 1.14fr; min-height: 310px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: rgba(11,29,49,.82); }
.project-card-reverse .project-art { order: 2; }
.project-card-reverse .project-info { order: 1; }
.project-art { position: relative; display: grid; place-items: center; min-height: 300px; overflow: hidden; background: radial-gradient(circle at 50% 50%, rgba(44,124,177,.19), transparent 55%), linear-gradient(135deg, #102942, #0a1a2b); border-right: 1px solid var(--line); }
.project-card-reverse .project-art { border-right: 0; border-left: 1px solid var(--line); }
.project-art::before { content: ""; position: absolute; inset: 0; opacity: .45; background-image: linear-gradient(rgba(132,172,211,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(132,172,211,.08) 1px, transparent 1px); background-size: 24px 24px; mask-image: radial-gradient(ellipse, #000, transparent 78%); }
.art-label { position: absolute; bottom: 17px; left: 19px; color: rgba(178,207,234,.62); font: 8px var(--mono); letter-spacing: .13em; }
.machine-outline { position: relative; z-index: 2; width: 132px; height: 205px; padding: 12px 11px 10px; border: 2px solid rgba(158,205,239,.7); border-radius: 12px 12px 8px 8px; background: linear-gradient(145deg, rgba(30,76,112,.76), rgba(7,23,41,.94)); box-shadow: 0 20px 55px rgba(0,0,0,.35), inset 0 0 22px rgba(113,186,234,.08); }
.machine-top { display: flex; gap: 5px; justify-content: center; margin-bottom: 11px; }
.machine-top span { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(105,189,255,.5); }
.machine-screen { display: flex; gap: 5px; justify-content: center; align-items: center; height: 63px; border: 1px solid rgba(123,190,239,.42); border-radius: 5px; background: rgba(3,15,28,.75); }
.machine-screen i { width: 17px; height: 24px; border-radius: 3px; border: 1px solid rgba(110,191,244,.52); background: rgba(79,163,220,.12); }
.machine-cup { position: relative; width: 30px; height: 25px; margin: 16px auto 0; border: 1px solid rgba(150,202,238,.78); border-top: 3px solid var(--accent); border-radius: 2px 2px 9px 9px; }
.machine-base { width: 100%; height: 5px; margin-top: 11px; border-radius: 3px; background: rgba(135,188,226,.35); }
.art-circuit { position: absolute; z-index: 1; width: 95px; height: 50px; border-top: 1px solid rgba(105,189,255,.4); border-right: 1px solid rgba(105,189,255,.4); }
.circuit-a { top: 65px; left: 9%; transform: skewY(-30deg); }
.circuit-b { bottom: 65px; right: 8%; transform: rotate(180deg) skewY(-25deg); }
.pharma-frame { position: relative; z-index: 2; width: 190px; height: 190px; border: 1px solid rgba(145,198,236,.55); border-radius: 8px; background: rgba(6,23,40,.5); box-shadow: 0 20px 45px rgba(0,0,0,.24); }
.pharma-rail { position: absolute; top: 18px; left: 23px; width: 144px; height: 5px; border-radius: 4px; background: #5c9eca; }
.pharma-hopper { position: absolute; top: 29px; left: 67px; width: 56px; height: 48px; border: 1px solid #8fc8ee; background: linear-gradient(180deg, rgba(105,189,255,.22), rgba(105,189,255,.04)); clip-path: polygon(0 0,100% 0,78% 100%,22% 100%); }
.pharma-auger { position: absolute; top: 77px; left: 92px; width: 6px; height: 40px; background: repeating-linear-gradient(180deg, #9bd7ff 0 3px, transparent 3px 7px); }
.pharma-cup { position: absolute; top: 121px; left: 73px; width: 45px; height: 27px; border: 1px solid #9bd7ff; border-top: 3px solid #9bd7ff; border-radius: 2px 2px 11px 11px; background: rgba(105,189,255,.08); }
.pharma-base { position: absolute; bottom: 19px; left: 28px; width: 134px; height: 5px; border-radius: 4px; background: rgba(143,200,238,.5); }
.pharma-measure { position: absolute; z-index: 1; height: 1px; background: rgba(105,189,255,.4); }
.measure-one { width: 75px; top: 75px; right: 8%; transform: rotate(-22deg); }
.measure-two { width: 65px; bottom: 71px; left: 8%; transform: rotate(-15deg); }
.browser-window { position: relative; z-index: 2; width: 82%; max-width: 340px; height: 174px; border: 1px solid rgba(147,196,234,.55); border-radius: 8px; overflow: hidden; background: #071421; box-shadow: 0 22px 48px rgba(0,0,0,.33); transform: perspective(700px) rotateY(-9deg) rotateX(3deg); }
.browser-bar { height: 25px; display: flex; align-items: center; gap: 4px; padding: 0 9px; border-bottom: 1px solid rgba(145,190,225,.17); background: #142a40; }
.browser-bar b { width: 5px; height: 5px; border-radius: 50%; background: #7ea3c4; }
.browser-bar span { margin-left: 8px; color: #8fa9c2; font: 7px var(--mono); }
.browser-content { display: flex; gap: 9px; padding: 12px; }
.browser-side { width: 22%; height: 120px; border-radius: 3px; background: linear-gradient(180deg, rgba(105,189,255,.22) 0 6px, transparent 6px 14px, rgba(105,189,255,.08) 14px 18px, transparent 18px 26px); }
.browser-main { flex: 1; }
.browser-main > i { display: block; width: 62%; height: 5px; margin-bottom: 7px; border-radius: 3px; background: rgba(139,190,231,.22); }
.browser-main > i:first-child { width: 40%; height: 9px; background: rgba(105,189,255,.55); }
.browser-products { display: flex; gap: 7px; margin-top: 12px; }
.browser-products b { flex: 1; height: 59px; border: 1px solid rgba(144,190,226,.2); border-radius: 3px; background: linear-gradient(150deg, rgba(105,189,255,.13), rgba(105,189,255,.025)); }
.mac-orbit { position: absolute; width: 300px; height: 155px; border: 1px solid rgba(105,189,255,.18); border-radius: 50%; transform: rotate(25deg); }
.project-info { display: flex; flex-direction: column; align-items: flex-start; padding: 31px 34px 28px; }
.project-overline { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 15px; color: var(--muted-2); font: 8px var(--mono); letter-spacing: .11em; }
.status { padding: 4px 7px; border-radius: 3px; letter-spacing: .06em; white-space: nowrap; }
.status-progress { color: #9bd7ff; background: rgba(105,189,255,.1); }
.status-design { color: #c9b4ff; background: rgba(171,142,255,.1); }
.status-complete { color: #83dfb8; background: rgba(113,214,177,.1); }
.project-info h3 { max-width: 470px; margin: 0 0 10px; font-size: 18px; line-height: 1.4; letter-spacing: -.045em; }
.project-info > p { margin: 0 0 13px; color: var(--muted); font-size: 10px; line-height: 1.85; }
.project-points { display: grid; gap: 5px; margin: 0 0 17px; padding: 0; list-style: none; color: #c1cedd; font-size: 10px; }
.project-points li { position: relative; padding-left: 15px; }
.project-points li::before { content: "↗"; position: absolute; left: 0; color: var(--accent); font-size: 10px; }
.project-stack { margin-top: auto; padding-top: 6px; }
.text-link { display: inline-flex; gap: 10px; margin-top: 16px; color: var(--accent); font-size: 10px; font-weight: 800; }
.text-link:hover { color: var(--accent-2); }

/* Experience */
.section-experience { background: var(--bg); }
.timeline { position: relative; padding-left: 25px; border-left: 1px solid rgba(105,189,255,.3); }
.timeline-item { position: relative; padding: 0 0 42px 15px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker { position: absolute; top: 3px; left: -31px; width: 11px; height: 11px; border: 2px solid var(--accent); border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 5px rgba(105,189,255,.08); }
.timeline-type { margin: 0 0 9px; color: var(--accent); font: 9px var(--mono); letter-spacing: .13em; }
.timeline-item h3 { margin: 0 0 5px; font-size: 17px; letter-spacing: -.035em; }
.timeline-date { margin: 0 0 12px; color: var(--muted-2); font: 10px var(--mono); }
.timeline-item .body-text { max-width: 650px; margin-bottom: 0; }

/* Education */
.section-education { padding-top: 36px; background: var(--bg); }
.education-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; padding: 45px 50px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(120deg, rgba(17,44,69,.9), rgba(9,25,42,.8)); }
.education-panel h2 { font-size: clamp(32px, 4vw, 46px); }
.education-detail { padding-left: 40px; border-left: 1px solid var(--line); }
.education-level { margin: 0 0 7px; color: var(--accent); font: 9px var(--mono); letter-spacing: .13em; }
.education-detail h3 { margin: 0 0 7px; font-size: 19px; letter-spacing: -.035em; }
.education-detail > p:not(.education-level):not(.alevel-results) { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.education-divider { height: 1px; margin: 21px 0; background: var(--line); }
.alevel-results { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 0; color: var(--muted); font-size: 10px; }
.alevel-results b { margin-left: 5px; color: var(--text); }

/* Contact and footer */
.section-contact { padding-top: 65px; padding-bottom: 80px; }
.contact-panel { position: relative; min-height: 365px; display: flex; align-items: center; overflow: hidden; padding: 56px 65px; border: 1px solid rgba(105,189,255,.24); border-radius: 12px; background: radial-gradient(circle at 85% 48%, rgba(42,123,180,.2), transparent 33%), linear-gradient(115deg, #102942, #0a1a2b 67%); }
.contact-content { position: relative; z-index: 2; max-width: 620px; }
.contact-content h2 { margin-bottom: 17px; font-size: clamp(37px, 5vw, 55px); }
.contact-content > p:not(.eyebrow) { max-width: 500px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 24px; }
.contact-details { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 25px; color: #b9cce0; font: 10px var(--mono); }
.contact-details a:hover { color: var(--accent); }
.contact-orb { position: absolute; right: 8%; top: 50%; width: 245px; height: 245px; transform: translateY(-50%); border: 1px solid rgba(105,189,255,.22); border-radius: 50%; box-shadow: 0 0 0 25px rgba(105,189,255,.025), 0 0 0 55px rgba(105,189,255,.018), inset 0 0 45px rgba(105,189,255,.05); }
.contact-orb::before, .contact-orb::after { content: ""; position: absolute; border: 1px solid rgba(105,189,255,.2); border-radius: 50%; inset: 27px; }
.contact-orb::after { inset: 58px; border-color: rgba(105,189,255,.32); }
.site-footer { border-top: 1px solid var(--line); background: #060f1b; }
.footer-wrap { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand .brand-mark { width: 31px; height: 31px; border-radius: 8px; font-size: 11px; }
.footer-brand .brand-name { font-size: 11px; }
.footer-wrap p { margin: 0; color: var(--muted-2); font-size: 9px; }
.back-top { color: var(--accent); font: 9px var(--mono); }
.back-top:hover { color: var(--accent-2); }

/* Motion */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay { transition-delay: .12s; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }

@media (max-width: 900px) {
  .section { padding: 88px 0; }
  .hero { min-height: auto; padding-top: 70px; }
  .hero-grid { grid-template-columns: 1fr .85fr; gap: 10px; min-height: 470px; }
  .hero h1 { font-size: clamp(43px, 6vw, 58px); }
  .hero-visual { min-height: 355px; transform: scale(.9); }
  .section-grid { gap: 50px; }
  .project-info { padding: 25px 25px 23px; }
  .project-info h3 { font-size: 16px; }
  .education-panel { gap: 35px; padding: 37px; }
  .contact-orb { right: -4%; opacity: .55; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 72px; }
  .container { width: min(100% - 36px, var(--container)); }
  .nav-wrap { height: 68px; }
  .menu-toggle { position: relative; z-index: 102; display: flex; width: 42px; height: 42px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; background: transparent; cursor: pointer; }
  .menu-toggle span { width: 17px; height: 1px; background: var(--text); transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .primary-nav { position: fixed; top: 68px; right: 0; left: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 18px 24px; border-bottom: 1px solid var(--line); background: rgba(7,19,33,.98); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .primary-nav a { padding: 13px 5px; border-bottom: 1px solid rgba(173,196,224,.08); font-size: 13px; }
  .primary-nav .nav-contact { margin-top: 12px; padding: 11px 13px; text-align: center; border: 1px solid rgba(105,189,255,.32); }
  .hero { padding: 65px 0 25px; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { font-size: clamp(43px, 12vw, 60px); }
  .hero-summary { font-size: 12px; }
  .hero-meta { margin-top: 27px; font-size: 9px; }
  .hero-visual { min-height: 295px; margin: -4px 0 -5px; transform: scale(.84); transform-origin: center; }
  .orbit-one { width: 315px; height: 180px; }
  .orbit-two { width: 235px; height: 325px; }
  .visual-core { width: 175px; height: 175px; }
  .core-monogram { font-size: 55px; }
  .tag-cad { left: 0; top: 38px; }
  .tag-automation { right: -2%; top: 101px; }
  .tag-embedded { left: -1%; bottom: 43px; }
  .hero-bottom { padding-top: 14px; font-size: 8px; }
  .hero-bottom-note { display: none; }
  .section { padding: 75px 0; }
  .section-grid { grid-template-columns: 1fr; gap: 30px; }
  .section-topline { display: block; margin-bottom: 35px; }
  .section-intro { margin-top: 18px; max-width: 500px; }
  .lead-text { font-size: 16px; }
  .about-facts { gap: 19px; }
  .fact-item strong { font-size: 11px; }
  .interest-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .interest-card { min-height: 205px; padding: 18px 15px; }
  .interest-card h3 { font-size: 12px; }
  .interest-card p { font-size: 9px; }
  .project-card { grid-template-columns: 1fr; }
  .project-card .project-art, .project-card-reverse .project-art { order: 1; min-height: 230px; border: 0; border-bottom: 1px solid var(--line); }
  .project-card .project-info, .project-card-reverse .project-info { order: 2; padding: 23px 20px 22px; }
  .project-info h3 { font-size: 17px; }
  .project-overline { font-size: 7px; }
  .project-points { font-size: 10px; }
  .timeline { margin-left: 5px; }
  .education-panel { grid-template-columns: 1fr; gap: 28px; padding: 29px 23px; }
  .education-detail { padding: 25px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .alevel-results { gap: 8px 15px; }
  .section-contact { padding-top: 15px; padding-bottom: 65px; }
  .contact-panel { min-height: 0; padding: 38px 24px; }
  .contact-orb { width: 180px; height: 180px; right: -80px; top: 15%; transform: none; opacity: .35; }
  .contact-content h2 { font-size: 42px; }
  .contact-actions { flex-direction: column; align-items: stretch; max-width: 270px; }
  .contact-details { flex-direction: column; gap: 9px; font-size: 9px; }
  .footer-wrap { min-height: 100px; flex-wrap: wrap; justify-content: space-between; padding-block: 19px; }
  .footer-wrap p { order: 3; flex-basis: 100%; }
}

@media (max-width: 390px) {
  .interest-grid { grid-template-columns: 1fr; }
  .interest-card { min-height: 0; }
  .interest-card p { min-height: 0; }
  .button { padding-inline: 13px; gap: 10px; font-size: 10px; }
  .project-overline { align-items: flex-start; flex-direction: column; }
}

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