/* Jorge del Cid Moreno — portfolio */
:root {
  color-scheme: dark;
  --bg: #0b1020;
  --bg-soft: #10172a;
  --panel: rgba(19, 27, 47, .78);
  --panel-solid: #121a2e;
  --panel-hover: #18223a;
  --text: #f3f5fb;
  --muted: #a0abc0;
  --subtle: #75819a;
  --line: rgba(166, 183, 220, .15);
  --line-strong: rgba(166, 183, 220, .25);
  --accent: #8b9cff;
  --accent-bright: #a4b0ff;
  --accent-2: #65e0c2;
  --shadow: 0 24px 70px rgba(0,0,0,.24);
  --radius: 22px;
  --header-bg: rgba(11, 16, 32, .78);
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7fb;
  --bg-soft: #edf0f8;
  --panel: rgba(255,255,255,.8);
  --panel-solid: #ffffff;
  --panel-hover: #f0f2fb;
  --text: #171d30;
  --muted: #535f77;
  --subtle: #7b879e;
  --line: rgba(37, 52, 83, .12);
  --line-strong: rgba(37, 52, 83, .22);
  --accent: #596de8;
  --accent-bright: #4559d5;
  --accent-2: #078e78;
  --shadow: 0 24px 70px rgba(35, 49, 83, .11);
  --header-bg: rgba(246, 247, 251, .84);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Manrope", sans-serif; font-size: 15px; line-height: 1.7; transition: background .25s, color .25s; overflow-x: hidden; }
body, button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { color: #0b1020; background: #a4b0ff; }
.page-noise { pointer-events: none; position: fixed; inset: 0; z-index: 10; opacity: .025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E"); }
.section-shell { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 82px; padding: 0 max(32px, calc((100vw - 1160px)/2)); border-bottom: 1px solid var(--line); background: var(--header-bg); backdrop-filter: blur(18px); }
.wordmark { display: inline-flex; align-items: center; gap: 11px; }
.wordmark-mark { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 11px; font-size: 21px; font-weight: 800; letter-spacing: -2px; }
.wordmark-mark span, .footer-brand span { color: var(--accent); }
.wordmark-name { font-size: 10px; line-height: 1.5; font-weight: 800; letter-spacing: .12em; }
.wordmark-name span { display: block; color: var(--muted); font-weight: 500; }
.desktop-nav { display: flex; gap: 34px; margin-left: 60px; }
.desktop-nav a { font-size: 12px; font-weight: 700; color: var(--muted); transition: color .2s; }
.desktop-nav a:hover, .mobile-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.theme-toggle, .menu-toggle { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--text); background: var(--panel); cursor: pointer; transition: transform .2s, border-color .2s; }
.theme-toggle:hover, .menu-toggle:hover { transform: translateY(-2px); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="dark"] .sun-icon, html[data-theme="light"] .moon-icon { display: none; }
.header-cta { display: inline-flex; align-items: center; gap: 13px; font-size: 12px; font-weight: 800; }
.header-cta span { color: var(--accent); font-size: 17px; }
.menu-toggle, .mobile-nav { display: none; }
.hero { min-height: 670px; padding-top: 105px; padding-bottom: 90px; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; position: relative; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 25px; }
.eyebrow, .section-kicker, .item-type, .project-overline, .visual-caption, .hero-scroll, .timeline-date, .contact-bottom, .credential-level > span { font-family: "DM Mono", monospace; letter-spacing: .11em; font-size: 10px; font-weight: 400; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.status-dot, .live-pulse { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 13%, transparent); }
.eyebrow-line { width: 27px; height: 1px; background: var(--line-strong); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin: 26px 0 24px; font-size: clamp(48px, 5.4vw, 76px); line-height: 1.09; letter-spacing: -.065em; font-weight: 800; }
.text-gradient { color: var(--accent); background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-intro { max-width: 500px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 25px; padding: 0 19px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 800; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-3px); }
.button span { font-size: 16px; }
.button-primary { color: #0b1020; background: linear-gradient(115deg, #a7b1ff, #7ee5cf); }
.button-primary:hover { box-shadow: 0 8px 26px rgba(125, 190, 211, .22); }
.button-ghost { color: var(--text); border-color: var(--line-strong); background: var(--panel); }
.button-ghost:hover { border-color: var(--accent); }
.hero-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 36px; color: var(--subtle); font-size: 10px; font-family: "DM Mono", monospace; letter-spacing: .04em; }
.meta-symbol { color: var(--accent); font-size: 14px; margin-right: 4px; }
.meta-separator { color: var(--line-strong); }
.hero-art { min-height: 420px; position: relative; display: grid; place-items: center; }
.art-glow { position: absolute; width: 330px; height: 330px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 20%, transparent), transparent 68%); filter: blur(8px); }
.orbit { position: absolute; border: 1px solid var(--line); border-radius: 50%; transform: rotate(-27deg); }
.orbit-one { width: 410px; height: 190px; }
.orbit-two { width: 380px; height: 275px; transform: rotate(38deg); }
.orbit-three { width: 330px; height: 330px; border-style: dashed; opacity: .7; }
.code-card { position: relative; z-index: 1; width: min(100%, 390px); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 15px; background: color-mix(in srgb, var(--panel-solid) 92%, transparent); box-shadow: var(--shadow); transform: rotate(-2deg); }
.code-card-top { display: flex; align-items: center; gap: 13px; padding: 14px 17px; border-bottom: 1px solid var(--line); color: var(--subtle); font: 10px "DM Mono", monospace; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 6px; height: 6px; border-radius: 50%; background: #fa7777; }
.window-dots i:nth-child(2) { background: #e6c16d; }
.window-dots i:nth-child(3) { background: #6dd8ae; }
.code-lock { margin-left: auto; color: var(--accent); }
.code-lines { padding: 22px 12px 22px 0; font: 11px/2.1 "DM Mono", monospace; color: var(--text); }
.code-lines > div { white-space: nowrap; }
.ln { display: inline-block; width: 44px; padding-right: 14px; text-align: right; color: var(--subtle); opacity: .7; }
.code-purple { color: #c7a0ff; }.code-green { color: #81dfc1; }.code-orange { color: #f2bb80; }.code-blue { color: #8cb9ff; }
.code-gap { height: 9px; }
.code-card-bottom { display: flex; align-items: center; gap: 10px; padding: 12px 17px; border-top: 1px solid var(--line); color: var(--muted); font: 9px "DM Mono", monospace; }
.live-pulse { width: 6px; height: 6px; }
.floating-chip { position: absolute; z-index: 2; padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--panel-solid); box-shadow: var(--shadow); color: var(--muted); font-size: 10px; font-weight: 700; }
.floating-chip span { color: var(--accent); margin-right: 6px; }
.chip-top { top: 54px; right: -2px; transform: rotate(4deg); }
.chip-bottom { bottom: 55px; left: 0; transform: rotate(-4deg); }
.art-index { position: absolute; bottom: 2px; right: 0; color: var(--subtle); font: 10px "DM Mono", monospace; }
.art-index span { color: var(--accent); padding: 0 5px; }
.hero-scroll { position: absolute; bottom: 0; left: 0; display: flex; align-items: center; gap: 12px; color: var(--subtle); font-size: 9px; }
.scroll-line { display: inline-block; height: 1px; width: 35px; background: var(--accent); }
.intro-strip { padding-top: 90px; padding-bottom: 96px; border-top: 1px solid var(--line); }
.section-kicker { color: var(--subtle); }
.section-kicker > span { color: var(--accent); }
.intro-content { display: grid; grid-template-columns: 1fr .9fr; gap: 70px; margin-top: 27px; align-items: start; }
.intro-content h2, .section-heading h2, .beyond-main h2, .contact-card h2 { margin-bottom: 0; font-size: clamp(34px, 4vw, 49px); line-height: 1.2; letter-spacing: -.055em; font-weight: 800; }
.muted-heading { color: var(--subtle); }
.intro-description p, .section-heading > p { color: var(--muted); line-height: 1.9; font-size: 13px; }
.intro-description p { margin-bottom: 16px; }
.text-link { display: inline-flex; gap: 12px; align-items: center; color: var(--accent); font-size: 12px; font-weight: 800; }
.text-link span { font-size: 16px; transition: transform .2s; }
.text-link:hover span { transform: translate(3px,-3px); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 62px; padding-top: 30px; border-top: 1px solid var(--line); }
.principle { display: flex; gap: 14px; }
.principle-icon { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--accent); font-size: 17px; }
.principle h3 { margin: 1px 0 7px; font-size: 13px; letter-spacing: -.02em; }
.principle p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.section-block { padding-top: 85px; padding-bottom: 85px; border-top: 1px solid var(--line); }
.section-heading { max-width: 650px; margin-bottom: 38px; }
.section-heading h2 { margin-top: 17px; }
.heading-period { color: var(--accent); }
.section-heading > p { margin: 14px 0 0; }
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.skill-card { min-height: 245px; padding: 23px 21px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); transition: transform .25s, border-color .25s, background .25s; }
.skill-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--panel-hover); }
.skill-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.skill-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-size: 16px; font-family: "DM Mono", monospace; }
.skill-number { color: var(--subtle); font: 10px "DM Mono", monospace; }
.skill-card h3 { margin-bottom: 9px; font-size: 14px; letter-spacing: -.025em; }
.skill-card p { min-height: 58px; margin-bottom: 16px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list span { padding: 4px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font: 9px "DM Mono", monospace; line-height: 1.5; }
.skills-note { display: flex; gap: 10px; align-items: center; margin: 22px 0 0; color: var(--subtle); font-size: 11px; }
.note-star { color: var(--accent); font-size: 17px; }
.experience-section { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg-soft) 48%, transparent), transparent); }
.timeline { position: relative; display: grid; gap: 18px; }
.timeline::before { position: absolute; content: ""; top: 9px; bottom: 25px; left: 157px; width: 1px; background: var(--line-strong); }
.timeline-item { display: grid; grid-template-columns: 135px 1fr; gap: 44px; align-items: start; }
.timeline-date { display: flex; align-items: center; gap: 12px; padding-top: 26px; color: var(--subtle); font-size: 9px; white-space: nowrap; }
.timeline-dot { position: relative; z-index: 1; width: 7px; height: 7px; margin-left: auto; margin-right: -48px; border: 2px solid var(--accent); border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 4px var(--bg); }
.timeline-card { padding: 25px 27px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.timeline-card-top { display: flex; justify-content: space-between; gap: 18px; }
.item-type { color: var(--accent); font-size: 9px; }
.timeline-card h3 { margin: 8px 0 3px; font-size: 17px; line-height: 1.45; letter-spacing: -.03em; }
.item-org { margin-bottom: 16px; color: var(--muted); font-size: 11px; }
.item-org span { color: var(--accent); padding: 0 5px; }
.timeline-card > p:not(.item-org) { margin-bottom: 17px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.item-arrow { color: var(--subtle); font-size: 18px; }
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--panel); transition: transform .25s, border-color .25s; }
.project-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.project-visual { position: relative; height: 250px; display: grid; place-items: center; overflow: hidden; }
.spotify-visual { background: radial-gradient(ellipse at 30% 20%, #243f5b, #142038 48%, #0e1525); }
.expense-visual { background: radial-gradient(ellipse at 70% 20%, #3a315a, #1d1c37 55%, #141728); }
.visual-orb { position: absolute; border: 1px solid rgba(166,183,220,.18); border-radius: 50%; }
.orb-a { width: 290px; height: 290px; left: -45px; top: -135px; }
.orb-b { width: 360px; height: 360px; right: -90px; bottom: -250px; }
.music-player { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; width: 80%; max-width: 420px; padding: 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 13px; background: rgba(14,21,37,.72); backdrop-filter: blur(12px); box-shadow: 0 15px 45px rgba(0,0,0,.2); }
.player-cover { display: grid; place-items: center; width: 58px; height: 58px; flex: 0 0 auto; border-radius: 9px; background: linear-gradient(140deg, #9f8cff, #65d7c0); color: #101629; font-size: 31px; }
.player-track { flex: 1; min-width: 0; display: grid; gap: 2px; color: #f3f5fb; font-size: 10px; }
.player-track b { font-size: 11px; }
.player-track > span { color: #9ca9c1; font-size: 9px; }
.track-line { height: 3px; margin-top: 8px; border-radius: 5px; background: rgba(255,255,255,.15); }
.track-line i { display: block; width: 38%; height: 100%; border-radius: inherit; background: #82e0c6; }
.player-controls { color: #c7d0e4; white-space: nowrap; font-size: 13px; }
.visual-caption { position: absolute; bottom: 17px; left: 20px; color: rgba(255,255,255,.6); font-size: 9px; }
.expense-window { position: relative; z-index: 1; width: 72%; max-width: 310px; padding: 17px 19px 13px; border: 1px solid rgba(255,255,255,.17); border-radius: 12px; background: rgba(20,22,43,.8); color: #f4f3ff; box-shadow: 0 15px 45px rgba(0,0,0,.22); }
.expense-window-head { display: flex; justify-content: space-between; color: #aaa9c9; font-size: 9px; }
.expense-total { display: grid; gap: 2px; margin-top: 14px; }
.expense-total small { color: #aaa9c9; font-size: 9px; }
.expense-total strong { font-size: 23px; letter-spacing: -.04em; }
.expense-total > span { color: #80e0c4; font-size: 8px; }
.expense-bars { display: flex; align-items: end; gap: 8px; height: 58px; margin-top: 16px; padding-bottom: 3px; border-bottom: 1px solid rgba(255,255,255,.12); }
.expense-bars i { flex: 1; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, #a39aff, #6469c7); opacity: .9; }
.expense-window-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; color: #b4b4cf; font-size: 7px; }
.expense-window-foot span:first-child { color: #c6baff; }.expense-window-foot span:nth-child(2) { color: #7ddfc1; }
.project-content { padding: 24px 25px 25px; }
.project-overline { display: flex; justify-content: space-between; gap: 12px; color: var(--subtle); font-size: 9px; }
.project-content h3 { margin: 15px 0 8px; font-size: 23px; letter-spacing: -.04em; }
.project-content > p { min-height: 70px; margin-bottom: 18px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.project-links { display: flex; align-items: center; justify-content: space-between; margin-top: 23px; padding-top: 16px; border-top: 1px solid var(--line); }
.project-links a { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 800; }
.project-links a span { color: var(--accent); font-size: 16px; }
.project-links a:hover { color: var(--accent); }
.project-status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.project-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
.project-footnote { margin: 15px 0 0; color: var(--subtle); font-size: 10px; }
.beyond-section { border-top: 1px solid var(--line); }
.beyond-card { display: grid; grid-template-columns: 45px 1fr 145px; gap: 24px; padding: 37px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.beyond-symbol { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--accent); font-size: 20px; }
.beyond-main h2 { margin-top: 16px; font-size: clamp(30px, 3.5vw, 42px); }
.beyond-main > p { max-width: 650px; margin: 18px 0 19px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.beyond-side { display: flex; flex-direction: column; align-items: end; justify-content: space-between; color: var(--subtle); }
.side-number { font: 11px "DM Mono", monospace; }
.side-caption { font: 9px/1.8 "DM Mono", monospace; text-align: right; letter-spacing: .08em; }
.side-decoration { color: var(--accent); font-size: 30px; }
.credentials-section { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.credential-card { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.credential-icon { display: grid; place-items: center; flex: 0 0 43px; height: 43px; border: 1px solid var(--line); border-radius: 12px; color: var(--accent); font-size: 18px; }
.credential-main { flex: 1; min-width: 0; }
.credential-main h3 { margin: 5px 0; font-size: 14px; }
.credential-main p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.credential-divider { color: var(--accent); padding: 0 4px; }
.credential-level { min-width: 57px; text-align: right; }
.credential-level > span { display: block; color: var(--subtle); font-size: 8px; }
.credential-level strong { display: block; margin: 3px 0; font-size: 18px; }
.level-track { width: 52px; height: 3px; margin-left: auto; border-radius: 4px; background: var(--line-strong); }
.level-track i { display: block; width: 80%; height: 100%; background: var(--accent); border-radius: inherit; }
.contact-section { padding-top: 40px; padding-bottom: 80px; }
.contact-card { position: relative; overflow: hidden; padding: 55px 55px 25px; border: 1px solid var(--line-strong); border-radius: 22px; background: linear-gradient(120deg, var(--panel-solid), color-mix(in srgb, var(--accent) 9%, var(--panel-solid))); }
.contact-orb { position: absolute; top: -190px; right: -90px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid var(--line); box-shadow: 0 0 0 35px color-mix(in srgb, var(--accent) 3%, transparent), 0 0 0 80px color-mix(in srgb, var(--accent) 2%, transparent); pointer-events: none; }
.contact-card > *:not(.contact-orb) { position: relative; z-index: 1; }
.contact-card h2 { margin-top: 19px; font-size: clamp(38px, 5vw, 58px); }
.contact-card > p { max-width: 490px; margin: 18px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.contact-button { min-width: 160px; }
.contact-bottom { display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; margin-top: 55px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 9px; }
.contact-bottom > span { display: flex; align-items: center; gap: 9px; }
.contact-bottom .status-dot { width: 6px; height: 6px; }
.contact-bottom a { font-family: "Manrope", sans-serif; font-size: 11px; letter-spacing: 0; color: var(--muted); }
.contact-bottom a:hover { color: var(--accent); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 23px; padding-bottom: 28px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 10px; }
.footer-brand { font-size: 22px; font-weight: 800; letter-spacing: -2px; }
.back-top { color: var(--muted); }
.back-top:hover { color: var(--accent); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } .reveal { opacity: 1; transform: none; } }
@media (max-width: 1000px) {
  .site-header { padding-inline: 28px; }
  .section-shell { width: min(100% - 56px, 900px); }
  .desktop-nav { gap: 20px; margin-left: 20px; }
  .hero { min-height: 610px; grid-template-columns: 1fr .85fr; padding-top: 75px; }
  .hero h1 { font-size: clamp(45px, 6vw, 65px); }
  .hero-art { transform: scale(.9); transform-origin: center right; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .skill-card { min-height: 220px; }
  .skill-card p { min-height: auto; }
  .intro-content { gap: 35px; }
  .principles { gap: 17px; }
  .timeline-item { grid-template-columns: 120px 1fr; gap: 35px; }
  .timeline::before { left: 142px; }
  .timeline-dot { margin-right: -39px; }
  .credential-card { padding: 18px; gap: 11px; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 78px; }
  .site-header { height: 70px; padding-inline: 20px; }
  .section-shell { width: calc(100% - 40px); }
  .desktop-nav, .header-cta { display: none; }
  .header-actions { gap: 10px; }
  .theme-toggle { width: 38px; height: 38px; }
  .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
  .menu-toggle span { display: block; width: 15px; height: 1.5px; background: currentColor; transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .mobile-nav { position: fixed; top: 70px; left: 0; right: 0; z-index: 19; display: flex; flex-direction: column; padding: 8px 20px 18px; border-bottom: 1px solid var(--line); background: var(--header-bg); backdrop-filter: blur(18px); }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a { display: flex; justify-content: space-between; padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
  .mobile-nav a:last-child { border-bottom: 0; }
  .mobile-nav a span { color: var(--subtle); font: 10px "DM Mono", monospace; }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: auto; padding-top: 70px; padding-bottom: 70px; }
  .hero-copy { padding-bottom: 0; }
  .eyebrow { flex-wrap: wrap; font-size: 9px; }
  .hero h1 { margin-top: 22px; font-size: clamp(45px, 11vw, 68px); }
  .hero-intro { font-size: 14px; }
  .hero-art { min-height: 350px; margin-top: 20px; transform: scale(.9); transform-origin: center; }
  .code-card { max-width: 370px; }
  .orbit-one { width: 360px; }.orbit-two { width: 330px; }.orbit-three { width: 300px; height: 300px; }
  .chip-top { right: -5px; top: 30px; }.chip-bottom { left: -5px; bottom: 28px; }
  .hero-scroll { bottom: 20px; }
  .art-index { bottom: 20px; }
  .intro-strip { padding-top: 62px; padding-bottom: 65px; }
  .intro-content { grid-template-columns: 1fr; gap: 20px; }
  .intro-content h2, .section-heading h2 { font-size: 36px; }
  .principles { grid-template-columns: 1fr; gap: 22px; margin-top: 38px; padding-top: 25px; }
  .principle p { max-width: 420px; }
  .section-block { padding-top: 65px; padding-bottom: 65px; }
  .section-heading { margin-bottom: 28px; }
  .skills-grid { gap: 10px; }
  .skill-card { min-height: auto; padding: 17px 15px; }
  .skill-card-head { margin-bottom: 20px; }
  .skill-card h3 { font-size: 13px; }
  .skill-card p { font-size: 10px; }
  .tag-list { gap: 5px; }
  .tag-list span { font-size: 8px; padding: 4px 6px; }
  .skills-note { align-items: flex-start; line-height: 1.8; }
  .timeline { gap: 15px; }
  .timeline::before { left: 4px; top: 4px; bottom: 20px; }
  .timeline-item { display: block; padding-left: 23px; }
  .timeline-date { padding-top: 0; margin-bottom: 10px; }
  .timeline-dot { position: absolute; left: 0; margin: 5px 0 0; }
  .timeline-card { padding: 20px 17px; }
  .timeline-card h3 { font-size: 16px; }
  .timeline-card > p:not(.item-org) { font-size: 11px; }
  .projects-grid { grid-template-columns: 1fr; gap: 15px; }
  .project-visual { height: 225px; }
  .project-content { padding: 21px; }
  .project-content > p { min-height: 0; }
  .beyond-card { grid-template-columns: 38px 1fr; gap: 15px; padding: 24px 20px; }
  .beyond-symbol { width: 36px; height: 36px; }
  .beyond-main h2 { font-size: 31px; }
  .beyond-main > p { font-size: 11px; }
  .beyond-side { display: none; }
  .credentials-section { grid-template-columns: 1fr; gap: 11px; }
  .credential-card { padding: 17px; }
  .contact-section { padding-top: 20px; padding-bottom: 55px; }
  .contact-card { padding: 35px 22px 20px; border-radius: 17px; }
  .contact-card h2 { font-size: clamp(35px, 9vw, 48px); }
  .contact-card > p { font-size: 12px; }
  .contact-orb { right: -260px; }
  .contact-bottom { margin-top: 38px; flex-direction: column; align-items: flex-start; }
  .site-footer { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding-top: 18px; padding-bottom: 23px; }
  .site-footer > span:nth-of-type(1) { text-align: right; }
  .site-footer > span:nth-of-type(2) { grid-column: 1; grid-row: 2; }
  .back-top { grid-column: 2; grid-row: 2; text-align: right; }
}
@media (max-width: 380px) {
  .wordmark-name { font-size: 9px; }
  .hero h1 { font-size: 42px; }
  .hero-art { margin-inline: -15px; transform: scale(.82); }
  .hero-meta { gap: 7px; font-size: 9px; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-card { padding: 20px; }
  .skill-card-head { margin-bottom: 14px; }
  .credential-level { display: none; }
  .music-player { width: 88%; padding: 12px; gap: 10px; }
  .player-cover { width: 46px; height: 46px; }
}
