:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-soft: #eef1f7;
  --text: #171a29;
  --muted: #697085;
  --line: rgba(30, 37, 60, .10);
  --accent: #7058e8;
  --accent-2: #a18dff;
  --accent-soft: #eeeaff;
  --nav-bg: rgba(246, 247, 251, .82);
  --shadow: 0 24px 70px rgba(36, 38, 73, .10);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #10111a;
  --surface: #191b28;
  --surface-soft: #202334;
  --text: #f4f3fb;
  --muted: #a2a6ba;
  --line: rgba(235, 235, 255, .11);
  --accent: #a18dff;
  --accent-2: #c2b6ff;
  --accent-soft: rgba(161, 141, 255, .14);
  --nav-bg: rgba(16, 17, 26, .84);
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  transition: background .3s ease, color .3s ease;
  overflow-x: hidden;
}
body, button, input, textarea { font-family: "DM Sans", sans-serif; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1001; padding: 10px 14px; background: var(--surface); border-radius: 10px; }
.skip-link:focus { top: 12px; }

/* Navigation */
.site-header { position: fixed; inset: 0 0 auto; z-index: 1000; background: var(--nav-bg); border-bottom: 1px solid transparent; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: border-color .25s, box-shadow .25s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(20, 23, 42, .06); }
.nav-shell { width: min(1240px, calc(100% - 48px)); height: 82px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { display: block; width: 60px; height: 44px; flex-shrink: 0; object-fit: contain; }
.footer-brand span { color: var(--accent-2); }
.brand-name { font: 800 17px/1 "Manrope", sans-serif; letter-spacing: .11em; }
.nav-content { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-size: 13px; font-weight: 700; transition: color .2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.theme-toggle, .menu-toggle { display: grid; place-items: center; padding: 0; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.theme-toggle { width: 42px; height: 42px; border-radius: 14px; }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
[data-theme="dark"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: none; }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; }
.menu-toggle span { width: 18px; height: 2px; margin: 2px 0; background: var(--text); display: block; border-radius: 3px; }

/* Common sections */
.section-pad { padding: 118px 0; }
.section-index { display: flex; gap: 12px; align-items: center; color: var(--accent); font: 800 11px/1.2 "Manrope", sans-serif; letter-spacing: .13em; }
.section-index span { color: var(--muted); font-weight: 700; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 48px; }
.section-heading h2, .intro-heading h2, .contact-copy h2 { margin: 20px 0 0; font: 800 clamp(34px, 4vw, 52px)/1.13 "Manrope", sans-serif; letter-spacing: -.055em; }
.section-heading h2 em, .intro-heading h2 em, .contact-copy h2 em { color: var(--accent); font-style: normal; }
.section-heading > p { width: min(360px, 40%); margin: 0 0 5px; color: var(--muted); font-size: 15px; }

/* Hero */
.hero-section { position: relative; min-height: 770px; padding: 150px 0 44px; overflow: hidden; isolation: isolate; }
.hero-section::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 75% 40%, rgba(161, 141, 255, .16), transparent 30%), radial-gradient(circle at 4% 80%, rgba(112, 88, 232, .08), transparent 26%); }
.hero-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.hero-glow-one { width: 260px; height: 260px; right: 3%; top: 18%; border: 1px solid rgba(112, 88, 232, .13); animation: glow-pulse 8s ease-in-out infinite alternate; }
.hero-glow-two { width: 130px; height: 130px; right: 12%; top: 28%; border: 1px dashed rgba(112, 88, 232, .18); animation: orbit-spin 28s linear infinite; }
.hero-layout { display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 58px; }
.hero-copy { padding: 20px 0 30px; position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.status-dot, .portrait-live i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #59c99a; box-shadow: 0 0 0 4px rgba(89, 201, 154, .12); }
.hero-kicker { margin: 48px 0 0; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .22em; }
.hero-copy h1 { margin: 5px 0 8px; font: 800 clamp(54px, 6vw, 78px)/1.04 "Manrope", sans-serif; letter-spacing: -.075em; }
.hero-copy h1 span { color: var(--accent); }
.role-line { margin-top: 17px; color: var(--muted); font-size: 18px; font-weight: 600; }
.role-rotator { display: inline-block; min-width: 150px; color: var(--accent); font-weight: 800; transition: opacity .2s, transform .2s; }
.role-rotator.is-changing { opacity: 0; transform: translateY(6px); }
.hero-description { max-width: 520px; margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 50px; padding: 0 21px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 1px solid transparent; border-radius: 13px; font-size: 13px; font-weight: 800; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; cursor: pointer; }
.button:hover { transform: translateY(-3px); }
.button span { font-size: 17px; }
.button-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 28px rgba(112, 88, 232, .24); }
.button-primary:hover { color: #fff; background: #5f47d5; box-shadow: 0 16px 34px rgba(112, 88, 232, .30); }
.button-ghost { color: var(--text); background: var(--surface); border-color: var(--line); }
.button-ghost:hover { border-color: var(--accent); }
.hero-meta { display: flex; align-items: center; gap: 25px; margin-top: 47px; }
.hero-meta > div:not(.meta-divider) { display: grid; gap: 2px; }
.meta-number { font: 800 20px/1.2 "Manrope", sans-serif; }
.meta-label { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.meta-divider { height: 34px; width: 1px; background: var(--line); }
.hero-visual { min-height: 510px; position: relative; display: grid; place-items: center; }
.portrait-card { position: relative; z-index: 1; width: min(380px, 78%); height: 440px; overflow: hidden; border: 1px solid rgba(255,255,255,.7); border-radius: 190px 190px 34px 34px; background: linear-gradient(160deg, #e6e2ff 0%, #cfc7ff 48%, #b3a6f7 100%); box-shadow: 0 30px 80px rgba(75, 58, 159, .20); }
.portrait-card::after { content: ""; position: absolute; inset: 48% 0 0; z-index: 1; background: linear-gradient(180deg, transparent 4%, rgba(21, 24, 42, .08) 34%, rgba(21, 24, 42, .76) 100%); pointer-events: none; }
.portrait-topline { position: absolute; top: 24px; left: 26px; right: 26px; z-index: 2; display: flex; align-items: center; justify-content: space-between; color: rgba(43, 34, 96, .65); font: 800 9px/1 "Manrope", sans-serif; letter-spacing: .12em; }
.portrait-live { display: inline-flex; align-items: center; gap: 7px; }
.portrait-live i { width: 6px; height: 6px; box-shadow: none; }
.portrait-image-wrap { position: absolute; inset: 52px 0 0; display: flex; align-items: end; justify-content: center; overflow: hidden; }
.portrait-image { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: drop-shadow(0 18px 18px rgba(40, 34, 88, .13)); }
.portrait-caption { position: absolute; z-index: 3; bottom: 22px; left: 28px; right: 28px; display: flex; flex-direction: column; gap: 4px; color: white; font-size: 10px; letter-spacing: .12em; text-shadow: 0 2px 8px rgba(0,0,0,.25); }
.portrait-caption span { font-weight: 700; text-transform: uppercase; opacity: .82; }
.portrait-caption strong { font: 800 19px/1.25 "Manrope", sans-serif; letter-spacing: -.02em; }
.portrait-orbit { position: absolute; border: 1px solid rgba(112, 88, 232, .16); border-radius: 50%; }
.orbit-one { width: 500px; height: 500px; }
.orbit-two { width: 570px; height: 570px; border-style: dashed; border-color: rgba(112, 88, 232, .12); animation: orbit-spin 38s linear infinite; }
.profession-card { position: absolute; z-index: 4; display: flex; align-items: center; gap: 11px; min-width: 190px; padding: 12px 15px; border: 1px solid rgba(255,255,255,.8); border-radius: 15px; background: rgba(255,255,255,.88); color: #23233a; box-shadow: 0 14px 36px rgba(38, 33, 88, .13); backdrop-filter: blur(12px); animation: float 5s ease-in-out infinite; }
.profession-card strong, .profession-card small { display: block; }
.profession-card strong { font: 800 11px/1.4 "Manrope", sans-serif; }
.profession-card small { margin-top: 2px; color: #77768c; font-size: 9px; }
.profession-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; background: #eeeaff; color: #7058e8; font: 800 14px/1 "Manrope", sans-serif; }
.profession-tech { top: 19%; left: -1%; }
.profession-web { right: -4%; top: 49%; animation-delay: -1.5s; }
.profession-network { left: 2%; bottom: 19%; animation-delay: -3s; }
.visual-spark { position: absolute; color: var(--accent); font-size: 26px; animation: sparkle 2.8s ease-in-out infinite; }
.spark-one { top: 12%; right: 10%; }
.spark-two { bottom: 16%; right: 5%; font-size: 17px; animation-delay: -1.4s; }
.hero-bottom { display: flex; align-items: center; gap: 15px; margin-top: 16px; color: var(--muted); font: 800 9px/1 "Manrope", sans-serif; letter-spacing: .16em; }
.scroll-line { width: 54px; height: 1px; background: var(--accent); }
.hero-bottom span:last-child { margin-left: auto; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes glow-pulse { from { opacity: .45; transform: scale(.94); } to { opacity: .9; transform: scale(1.04); } }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes sparkle { 0%,100% { opacity: .65; transform: scale(.85) rotate(-8deg); } 50% { opacity: 1; transform: scale(1.12) rotate(8deg); } }

/* Intro */
.intro-section { padding: 72px 0 80px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.intro-grid { display: grid; grid-template-columns: .7fr 1.6fr 1fr; align-items: start; gap: 40px; }
.intro-heading h2 { margin-top: -7px; font-size: clamp(27px, 3vw, 38px); }
.intro-text p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.text-link { display: inline-flex; gap: 13px; align-items: center; margin-top: 18px; color: var(--accent); font-size: 12px; font-weight: 800; }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translate(3px,-3px); }

/* Skills */
.skills-section { background: var(--bg); }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.skill-card { min-height: 260px; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: transform .25s, box-shadow .25s, border-color .25s; }
.skill-card:hover { transform: translateY(-6px); border-color: rgba(112, 88, 232, .35); box-shadow: var(--shadow); }
.skill-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 29px; }
.skill-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font: 800 18px/1 "Manrope", sans-serif; }
.skill-number { color: var(--muted); font: 800 10px/1 "Manrope", sans-serif; letter-spacing: .1em; }
.skill-card h3 { margin: 0 0 9px; font: 800 19px/1.3 "Manrope", sans-serif; letter-spacing: -.03em; }
.skill-card p { min-height: 68px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.skill-tags span { padding: 5px 9px; border-radius: 7px; background: var(--surface-soft); color: var(--muted); font-size: 9px; font-weight: 800; }
.skill-card-accent { background: var(--text); color: var(--bg); border-color: transparent; }
.skill-card-accent .skill-icon { background: rgba(161, 141, 255, .18); color: #c2b6ff; }
.skill-card-accent .skill-number { color: rgba(255,255,255,.5); }
.skill-card-accent p { color: rgba(255,255,255,.62); }
.card-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 19px; color: #c2b6ff; font-size: 11px; font-weight: 800; }

/* Selected projects */
.projects-section { background: var(--surface); }
.project-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: -14px 0 25px; }
.project-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.project-filter { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 11px; font-weight: 800; cursor: pointer; transition: color .2s, border-color .2s, background .2s, transform .2s; }
.project-filter:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.project-filter.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.project-count { margin: 0; color: var(--muted); font-size: 11px; white-space: nowrap; }
.project-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.project-card { grid-column: span 2; min-width: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); transition: transform .25s, box-shadow .25s, border-color .25s; }
.project-card:hover { transform: translateY(-5px); border-color: rgba(112, 88, 232, .25); box-shadow: var(--shadow); }
.project-card[hidden] { display: none; }
.project-card.project-enter { animation: project-enter .32s ease both; }
@keyframes project-enter { from { opacity: .45; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
.project-card-featured { grid-column: span 4; display: grid; grid-template-columns: 1.08fr .92fr; }
.project-media { position: relative; display: block; height: 190px; overflow: hidden; background: var(--surface-soft); }
.project-media-featured { height: 100%; min-height: 320px; }
.project-media::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, transparent, rgba(12, 14, 25, .46)); opacity: 0; transition: opacity .3s; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.project-card:hover .project-media img { transform: scale(1.045); }
.project-media-action { position: absolute; right: 14px; bottom: 13px; z-index: 1; display: inline-flex; align-items: center; gap: 9px; color: #fff; font-size: 10px; font-weight: 800; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.project-media-action span { font-size: 15px; }
.project-card:hover .project-media::after, .project-media:focus-visible::after { opacity: 1; }
.project-card:hover .project-media-action, .project-media:focus-visible .project-media-action { opacity: 1; transform: translateY(0); }
.project-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 21px; }
.project-card-featured .project-content { justify-content: center; padding: 28px; }
.project-meta { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font: 800 9px/1.2 "Manrope", sans-serif; letter-spacing: .08em; }
.project-category { color: var(--accent); }
.project-index { white-space: nowrap; }
.project-content h3 { margin: 13px 0 8px; font: 800 18px/1.35 "Manrope", sans-serif; letter-spacing: -.035em; }
.project-card-featured .project-content h3 { font-size: clamp(22px, 2.2vw, 29px); }
.project-content > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.project-tags span { padding: 5px 9px; border-radius: 7px; background: var(--surface-soft); color: var(--muted); font-size: 9px; font-weight: 800; }
.project-text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; color: var(--accent); font-size: 10px; font-weight: 800; }
.project-text-link span { font-size: 15px; transition: transform .2s; }
.project-text-link:hover span { transform: translate(3px, -3px); }

/* Gallery */
.gallery-section { background: var(--bg); }
.gallery-grid { columns: 3 260px; column-gap: 18px; }
.gallery-item { position: relative; margin: 0 0 18px; overflow: hidden; break-inside: avoid; border-radius: 18px; background: var(--surface); box-shadow: 0 8px 24px rgba(26, 29, 51, .06); }
.gallery-item img { display: block; width: 100%; height: auto; }
.gallery-item figcaption { display: flex; flex-direction: column; gap: 4px; padding: 15px 17px 17px; }
.gallery-item figcaption span { color: var(--accent); font: 800 9px/1.2 "Manrope", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.gallery-item figcaption strong { color: var(--text); font: 700 12px/1.4 "Manrope", sans-serif; }

/* Contact */
.contact-section { padding: 100px 0 120px; background: var(--surface); }
.contact-panel { display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--bg); box-shadow: var(--shadow); }
.contact-copy { position: relative; padding: 54px 44px; overflow: hidden; background: #171a29; color: #f6f7fb; }
.contact-copy::after { content: ""; position: absolute; width: 330px; height: 330px; right: -170px; bottom: -160px; border: 1px solid rgba(194, 182, 255, .25); border-radius: 50%; box-shadow: 0 0 0 35px rgba(194, 182, 255, .035), 0 0 0 70px rgba(194, 182, 255, .025); }
.contact-copy .section-index span { color: rgba(255,255,255,.53); }
.contact-overline { margin: 58px 0 0; color: #c2b6ff; font: 800 10px/1.2 "Manrope", sans-serif; letter-spacing: .16em; }
.contact-copy h2 { position: relative; z-index: 1; margin-top: 15px; color: #fff; font-size: clamp(34px, 3.3vw, 45px); }
.contact-copy h2 em { color: #c2b6ff; }
.contact-description { max-width: 380px; margin: 20px 0 28px; color: rgba(255,255,255,.64); font-size: 13px; line-height: 1.9; }
.email-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.25); color: #fff; font-size: 13px; font-weight: 700; }
.email-link span { color: #c2b6ff; }
.social-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 22px; margin-top: 32px; }
.social-row a { color: rgba(255,255,255,.72); font-size: 11px; font-weight: 700; }
.social-row a span { padding-left: 6px; color: #c2b6ff; }
.social-row a:hover, .email-link:hover { color: #c2b6ff; }
.contact-form-wrap { padding: 44px 48px; }
.form-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 23px; border-bottom: 1px solid var(--line); color: var(--muted); font: 800 9px/1.2 "Manrope", sans-serif; letter-spacing: .13em; }
.form-index { color: var(--accent); }
.contact-form-wrap form { padding-top: 22px; }
.form-honeypot { display: none; }
.form-field { margin-bottom: 17px; }
.form-field label { display: block; margin-bottom: 7px; color: var(--text); font-size: 11px; font-weight: 800; }
.form-field input, .form-field textarea { display: block; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; outline: none; background: var(--surface); color: var(--text); font-size: 12px; transition: border-color .2s, box-shadow .2s; resize: vertical; }
.form-field input { min-height: 46px; }
.form-field textarea { min-height: 108px; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted); opacity: .7; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.submit-button { width: 100%; border: 0; }
.form-note { margin: 11px 0 0; color: var(--muted); font-size: 10px; }

/* Footer */
.site-footer { padding: 27px 0; background: var(--bg); border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { font: 800 14px/1 "Manrope", sans-serif; letter-spacing: .11em; }
.footer-inner p, .copyright { margin: 0; color: var(--muted); font-size: 10px; }

/* Motion */
.js .reveal { opacity: 0; translate: 0 22px; transition: opacity .7s ease, translate .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; translate: 0 0; }
.hero-section [data-parallax] { translate: 0 var(--parallax-offset, 0px); }
.js .reveal-delay { transition-delay: .13s; }
.js .reveal-delay-1 { transition-delay: .10s; }
.js .reveal-delay-2 { transition-delay: .20s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; translate: none; }
  .hero-section [data-parallax] { translate: none; }
}

/* Responsive */
@media (max-width: 1000px) {
  .hero-layout { gap: 20px; grid-template-columns: 1fr .9fr; }
  .hero-copy h1 { font-size: clamp(48px, 6.5vw, 68px); }
  .hero-visual { transform: scale(.92); transform-origin: center; }
  .profession-tech { left: -7%; }
  .profession-web { right: -10%; }
  .profession-network { left: -4%; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-heading, .intro-text { grid-column: auto; }
  .contact-copy { padding: 44px 32px; }
  .contact-form-wrap { padding: 38px 32px; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 36px, 560px); }
  .nav-shell { width: calc(100% - 36px); height: 72px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; margin-left: auto; margin-right: 10px; }
  .nav-content { position: absolute; top: 72px; left: 0; right: 0; display: none; align-items: stretch; gap: 16px; padding: 18px 22px 22px; border-bottom: 1px solid var(--line); background: var(--surface); box-shadow: 0 18px 28px rgba(20, 23, 42, .08); }
  .nav-content.is-open { display: flex; flex-direction: column; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { display: block; padding: 11px 4px; }
  .theme-toggle { align-self: flex-start; }
  .hero-section { min-height: auto; padding: 120px 0 30px; }
  .hero-layout { grid-template-columns: 1fr; gap: 12px; }
  .hero-copy { padding: 10px 0 0; }
  .hero-kicker { margin-top: 35px; }
  .hero-copy h1 { font-size: clamp(52px, 12vw, 70px); }
  .hero-description { max-width: 590px; }
  .hero-visual { min-height: 490px; transform: none; margin-top: 12px; }
  .portrait-card { width: min(360px, 80%); height: 415px; }
  .orbit-one { width: 440px; height: 440px; }
  .orbit-two { width: 505px; height: 505px; }
  .profession-tech { left: 2%; top: 17%; }
  .profession-web { right: 0; top: 47%; }
  .profession-network { left: 3%; bottom: 7%; }
  .hero-bottom { margin-top: 0; }
  .section-pad { padding: 84px 0; }
  .intro-section { padding: 66px 0; }
  .intro-grid { grid-template-columns: 1fr; gap: 22px; }
  .intro-heading h2 { margin-top: 0; }
  .intro-text { grid-column: auto; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 32px; }
  .section-heading > p { width: min(100%, 500px); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card, .project-card-featured { grid-column: span 2; }
  .project-card-featured { grid-template-columns: 1fr 1fr; }
  .project-media-featured { min-height: 280px; }
  .project-card-featured .project-content { padding: 25px; }
  .gallery-grid { columns: 2 180px; }
  .contact-panel { grid-template-columns: 1fr; }
  .contact-copy { padding: 43px 32px 48px; }
  .contact-overline { margin-top: 42px; }
  .contact-form-wrap { padding: 35px 32px; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner p { order: 3; width: 100%; }
}
@media (max-width: 500px) {
  .container { width: calc(100% - 32px); }
  .hero-copy h1 { font-size: 49px; }
  .role-line { font-size: 15px; }
  .hero-description { font-size: 13px; }
  .hero-meta { margin-top: 35px; }
  .hero-visual { min-height: 410px; margin-inline: -10px; }
  .portrait-card { width: min(320px, 88%); height: 350px; border-radius: 170px 170px 27px 27px; }
  .portrait-topline { top: 19px; left: 20px; right: 20px; font-size: 7px; }
  .portrait-image-wrap { inset: 48px 0 0; }
  .portrait-caption { left: 21px; right: 21px; bottom: 17px; }
  .portrait-caption strong { font-size: 16px; }
  .orbit-one { width: 360px; height: 360px; }
  .orbit-two { width: 415px; height: 415px; }
  .profession-card { min-width: 155px; padding: 9px 10px; gap: 8px; border-radius: 12px; }
  .profession-icon { width: 30px; height: 30px; font-size: 12px; }
  .profession-card strong { font-size: 9px; }
  .profession-card small { font-size: 8px; }
  .profession-tech { left: 0; top: 15%; }
  .profession-web { right: -1%; top: 47%; }
  .profession-network { left: 1%; bottom: 7%; }
  .hero-bottom { font-size: 8px; }
  .section-pad { padding: 72px 0; }
  .section-heading h2, .intro-heading h2 { font-size: 34px; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-card { min-height: auto; padding: 24px; }
  .skill-card p { min-height: 0; }
  .project-toolbar { align-items: flex-start; flex-direction: column; gap: 12px; margin-top: -4px; }
  .project-grid { grid-template-columns: 1fr; gap: 14px; }
  .project-card, .project-card-featured { grid-column: auto; display: flex; }
  .project-media, .project-media-featured { height: 190px; min-height: 0; }
  .project-content, .project-card-featured .project-content { padding: 20px; }
  .project-card-featured .project-content h3 { font-size: 21px; }
  .gallery-grid { columns: 2 130px; column-gap: 11px; }
  .gallery-item { margin-bottom: 11px; border-radius: 13px; }
  .gallery-item figcaption { padding: 11px 12px 13px; }
  .gallery-item figcaption strong { font-size: 10px; }
  .contact-copy { padding: 36px 24px 40px; }
  .contact-copy h2 { font-size: 35px; }
  .contact-description { font-size: 12px; }
  .email-link { font-size: 11px; }
  .contact-form-wrap { padding: 28px 23px; }
  .footer-inner { gap: 13px; }
  .footer-inner p { font-size: 9px; }
  .copyright { width: 100%; }
}
