:root {
  color-scheme: dark;
  --bg: #080b16;
  --surface: #101528;
  --text: #f5f6ff;
  --muted: #a5aec6;
  --dim: #7e8aa8;
  --line: rgba(168, 183, 230, .13);
  --blue: #6385ff;
  --purple: #b174ff;
  --cyan: #67dcff;
  --gradient: linear-gradient(110deg, #6385ff 5%, #a96bff 65%, #d782fb);
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --mono: Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body { margin: 0; min-width: 280px; isolation: isolate; color: var(--text); background: var(--bg); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
main { overflow: clip; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(ellipse 55% 45% at 85% 12%, rgba(73, 50, 153, .12), transparent 75%); pointer-events: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, [tabindex="0"]:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }
button:disabled { opacity: .5; cursor: wait; }
::selection { color: white; background: #7047c8; }
[hidden] { display: none !important; }
.container { width: min(1200px, calc(100% - 112px)); margin-inline: auto; }
.icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 100; padding: 12px 18px; color: white; background: #4260d5; border-radius: 8px; }
.skip-link:focus { top: 15px; }
#ambient { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .65; pointer-events: none; }

/* Navigation */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(8, 11, 22, .83); border-bottom: 1px solid var(--line); backdrop-filter: blur(20px); }
.header-inner { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; font-size: 17px; font-weight: 700; letter-spacing: -.035em; }
.brand-mark { display: block; width: 37px; height: 37px; flex: none; }
.brand-dot { color: var(--purple); }
.site-nav { display: flex; align-items: center; gap: 33px; }
.site-nav a { color: var(--muted); font-size: 13px; font-weight: 550; transition: color .2s; }
.site-nav a:hover { color: white; }
.site-nav .nav-contact { display: flex; align-items: center; gap: 14px; color: #e1defc; padding: 11px 16px; border: 1px solid rgba(153, 130, 255, .35); border-radius: 8px; background: rgba(136, 101, 255, .08); }
.nav-contact .icon { width: 15px; height: 15px; }
.menu-toggle { display: none; }

/* Hero */
.hero { min-height: min(780px, calc(100svh - 82px)); display: grid; grid-template-columns: .9fr 1.1fr; gap: 62px; align-items: center; padding-block: 74px 86px; position: relative; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0 -40px; background-image: radial-gradient(rgba(134, 151, 224, .18) .65px, transparent .65px); background-size: 24px 24px; mask-image: radial-gradient(ellipse at 72% 42%, black, transparent 70%); pointer-events: none; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 24px; color: #a8b5e6; font: 600 10px/1.5 var(--mono); letter-spacing: .15em; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #8aa2ff; box-shadow: 0 0 14px #6c7cff; }
h1 { margin: 0; font-size: clamp(62px, 6.5vw, 88px); line-height: .99; font-weight: 750; letter-spacing: -.065em; }
h1 .gradient-text { display: block; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-roles { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #b8c1dc; font-size: 13px; margin: 23px 0 0; }
.role-divider { width: 3px; height: 3px; background: var(--purple); border-radius: 50%; }
.hero-statement { margin: 28px 0 0; font-size: clamp(20px, 2vw, 25px); font-weight: 550; line-height: 1.4; letter-spacing: -.025em; }
.hero-description { max-width: 410px; margin: 15px 0 0; font-size: 14px; color: var(--muted); line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { min-height: 48px; padding: 0 20px; display: inline-flex; justify-content: center; align-items: center; gap: 15px; border-radius: 9px; font-size: 13px; font-weight: 650; transition: transform .2s, box-shadow .2s, border-color .2s, background .2s; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: white; border: 1px solid rgba(188, 167, 255, .5); background: linear-gradient(115deg, #4466e8, #8d4ee8); box-shadow: 0 6px 28px rgba(105, 74, 238, .23), inset 0 1px rgba(255, 255, 255, .13); }
.button-primary:hover { box-shadow: 0 8px 34px rgba(116, 80, 255, .4); }
.button-secondary { border: 1px solid var(--line); background: rgba(255, 255, 255, .025); color: #ccd3e8; }
.button-secondary:hover { border-color: rgba(160, 174, 239, .5); background: rgba(255, 255, 255, .05); }
.button .icon { width: 18px; height: 18px; }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; margin-top: 25px; color: var(--dim); font-size: 11px; }
.hero-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .icon { width: 13px; height: 13px; }
.hero-meta .meta-divider { width: 1px; height: 12px; background: var(--line); }

/* Interactive editor */
.code-stage { min-width: 0; position: relative; perspective: 1200px; }
.code-aura { position: absolute; z-index: -1; inset: -85px -55px; pointer-events: none; mask-image: radial-gradient(ellipse, black 10%, transparent 70%); background: radial-gradient(ellipse at 35% 30%, rgba(48, 89, 240, .25), transparent 60%), radial-gradient(ellipse at 75% 72%, rgba(142, 50, 245, .22), transparent 65%); }
.code-card { position: relative; isolation: isolate; min-width: 0; border: 1px solid rgba(128, 139, 239, .32); border-radius: 14px; background: rgba(14, 18, 38, .91); box-shadow: 0 22px 70px rgba(0, 0, 0, .38), 0 0 0 6px rgba(119, 91, 242, .025); backdrop-filter: blur(20px); transform: rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg)); transition: transform .18s ease-out, border-color .25s, box-shadow .25s; overflow: hidden; }
.code-card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: .22; background: radial-gradient(380px circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(105, 105, 255, .22), transparent 75%); transition: opacity .25s; }
.code-card.is-interacting { border-color: rgba(151, 136, 255, .68); box-shadow: 0 26px 75px rgba(0, 0, 0, .42), 0 0 35px rgba(110, 91, 244, .16); }
.code-card.is-interacting::before { opacity: 1; }
.editor-chrome { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 45px; padding: 0 19px; border-bottom: 1px solid var(--line); color: #75819e; font: 10px var(--mono); }
.editor-chrome .icon { width: 17px; height: 17px; color: #8c82bf; }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #ff718e; }
.window-dots i:nth-child(2) { background: #e8bd68; }
.window-dots i:nth-child(3) { background: #64d9bc; }
.editor-tabs { display: flex; align-items: center; justify-content: space-between; height: 45px; padding-right: 12px; border-bottom: 1px solid var(--line); background: rgba(5, 8, 20, .28); }
.editor-tabs [role="tablist"] { display: flex; align-self: stretch; }
.editor-tabs [role="tab"] { display: flex; align-items: center; gap: 8px; padding: 0 17px; border: 0; border-right: 1px solid rgba(168, 183, 230, .07); border-bottom: 2px solid transparent; color: #7f8ba6; background: transparent; font: 11px var(--mono); }
.editor-tabs [aria-selected="true"] { color: #d7dcf5; background: rgba(130, 126, 255, .07); border-bottom-color: #8d79ff; }
.file-icon { font: 700 8px var(--mono); }
.file-icon.ts { color: #78aeff; }.file-icon.py { color: #ecc176; }
.copy-code { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 5px; color: #8c99bd; background: transparent; transition: color .2s, background .2s; }
.copy-code:hover { color: #e3dcff; background: rgba(142, 118, 255, .14); }
.copy-code .icon { width: 15px; height: 15px; }
.code-panel { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #3a3e66 transparent; min-height: 356px; }
pre { margin: 0; padding: 21px 18px 21px 0; font: 12px/22px var(--mono); color: #c8cee8; width: max-content; min-width: 100%; }
code { font: inherit; counter-reset: line; }
.code-line { display: block; min-height: 22px; padding-right: 12px; }
.code-line::before { counter-increment: line; content: counter(line); display: inline-block; width: 46px; padding-right: 17px; text-align: right; color: #4f5b78; font-size: 10px; user-select: none; }
.token-keyword { color: #c594ff; }.token-string { color: #9bdfc5; }.token-comment { color: #8392b2; }.token-function { color: #83b6ff; }.token-variable { color: #f0c37d; }
.copy-feedback { position: absolute; bottom: 41px; right: 12px; max-width: calc(100% - 24px); padding: 8px 11px; border: 1px solid rgba(153, 143, 255, .4); border-radius: 6px; background: #252043; color: #e4ddff; font: 10px/1.5 var(--sans); pointer-events: none; transition: opacity .2s; }
.copy-feedback:empty { opacity: 0; }
.code-card.is-interacting .code-line:last-child { background: rgba(126, 111, 255, .07); }
.code-caret { display: inline-block; width: 6px; height: 14px; margin-left: 3px; vertical-align: -2px; background: #ae90ff; animation: caret 1.2s steps(1) infinite; }
.editor-status { display: flex; justify-content: space-between; align-items: center; padding: 10px 17px; border-top: 1px solid var(--line); color: #7888b1; font: 8px var(--mono); letter-spacing: .08em; background: rgba(112, 87, 219, .07); }
.editor-status i { display: inline-block; width: 4px; height: 4px; margin-right: 6px; border-radius: 50%; background: #86e4c1; }
.code-caption { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; font: 9px var(--mono); color: #7681a2; }
.caption-line { width: 24px; height: 1px; background: #635495; }
@keyframes caret { 50% { opacity: 0; } }

/* About */
.section { padding-block: 90px; position: relative; }
.about-section { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(18, 23, 47, .25), transparent); }
.section-heading { margin-bottom: 42px; }
.section-eyebrow { margin-bottom: 17px; color: #8f9bd3; font-size: 10px; }
h2 { margin: 0; font-size: clamp(32px, 3.4vw, 44px); font-weight: 680; line-height: 1.18; letter-spacing: -.045em; }
.about-layout { display: grid; grid-template-columns: minmax(200px, .65fr) minmax(0, 1.35fr); gap: clamp(48px, 7vw, 105px); align-items: start; }
.about-layout .section-heading { margin-bottom: 0; }
.about-story p { color: var(--muted); font-size: 14px; line-height: 1.85; margin: 0 0 19px; }
.about-story .large-copy { color: #e5e8f6; font-size: 19px; line-height: 1.6; letter-spacing: -.015em; margin-bottom: 22px; }
.inline-link { display: inline-flex; align-items: center; gap: 10px; color: #b6a9ff; font-size: 12px; font-weight: 600; padding-block: 6px; transition: color .2s, gap .2s; }
.inline-link:hover { color: #e1d6ff; gap: 14px; }
.inline-link .icon { width: 15px; height: 15px; }
h3 { margin: 0; font-size: 16px; line-height: 1.4; letter-spacing: -.02em; font-weight: 650; }

/* Results */
.achievements-section { background: radial-gradient(ellipse 55% 75% at 50% 60%, rgba(69, 47, 140, .1), transparent); padding-top: 45px; }
.heading-row { display: flex; align-items: end; justify-content: space-between; gap: 45px; }
.heading-row > p { max-width: 255px; color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0 0 4px; }
.achievements-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.achievement-card { position: relative; overflow: hidden; padding: 23px 23px 25px; border: 1px solid rgba(168, 183, 230, .16); border-radius: 12px; background: linear-gradient(145deg, rgba(26, 32, 55, .65), rgba(13, 17, 32, .7)); transition: border-color .25s, transform .25s; }
.achievement-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--award), transparent); opacity: .6; }
.achievement-card::after { content: ""; position: absolute; z-index: -1; width: 140px; height: 140px; right: -70px; top: -60px; background: var(--award); filter: blur(70px); opacity: .15; pointer-events: none; }
.achievement-card:hover { transform: translateY(-4px); border-color: var(--award); }
.gold { --award: #ffd889; }.silver { --award: #bfcefa; }.violet { --award: #b995ff; }.electric { --award: #79adff; }
.achievement-top { color: var(--award); display: flex; align-items: center; gap: 9px; font: 10px/1.5 var(--mono); letter-spacing: .04em; min-height: 23px; }
.achievement-top .icon { width: 18px; height: 18px; }
.achievement-result { color: var(--award); font-size: 65px; letter-spacing: -.06em; line-height: 1; font-weight: 650; margin: 24px 0 17px; min-height: 68px; }
.achievement-result > span { font-size: 22px; letter-spacing: -.02em; margin-left: 3px; }
.achievement-result.result-text { font-size: 33px; line-height: 1.05; letter-spacing: -.035em; }
.achievement-card h3 { font-size: 14px; }
.achievement-card > p:not(.achievement-result) { color: var(--muted); margin: 7px 0 20px; font-size: 11px; line-height: 1.5; }
.achievement-year { color: var(--dim); font: 10px var(--mono); }

/* Personal photo gallery */
.gallery-section { border-top: 1px solid var(--line); background: radial-gradient(ellipse 60% 65% at 75% 70%, rgba(82, 52, 151, .08), transparent); }
.gallery-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.gallery-heading > p { max-width: 260px; margin: 0 0 3px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.gallery-grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 14px; }
.gallery-card { position: relative; display: block; height: 340px; min-width: 0; overflow: hidden; border: 1px solid rgba(168, 183, 230, .17); border-radius: 14px; background: #17203a; isolation: isolate; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.gallery-card:hover { transform: translateY(-5px); border-color: rgba(157, 137, 255, .62); box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }
.gallery-card img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .55s ease; }
.gallery-card:first-child img { object-position: center 46%; }
.gallery-card:nth-child(2) img { object-position: center 42%; }
.gallery-card:nth-child(4) img { object-position: center 38%; }
.gallery-card:hover img { transform: scale(1.045); }
.gallery-card::after { content: ""; position: absolute; inset: 35% 0 0; z-index: 0; background: linear-gradient(transparent 8%, rgba(5, 8, 20, .82)); pointer-events: none; }
.gallery-caption { position: absolute; z-index: 1; left: 20px; bottom: 20px; display: grid; gap: 5px; text-shadow: 0 1px 8px rgba(0, 0, 0, .55); }
.gallery-caption small { color: #cad4ff; font: 10px var(--mono); letter-spacing: .08em; }
.gallery-caption strong { font-size: 18px; letter-spacing: -.025em; }
.gallery-expand { position: absolute; z-index: 1; top: 14px; right: 14px; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(255, 255, 255, .32); border-radius: 50%; background: rgba(10, 13, 28, .58); font-size: 17px; line-height: 1; }
.gallery-swipe-hint { display: none; }
.gallery-dialog { width: min(900px, calc(100vw - 36px)); max-height: calc(100dvh - 36px); padding: 0; overflow: hidden; border: 1px solid rgba(175, 161, 255, .35); border-radius: 16px; color: var(--text); background: #0e1323; box-shadow: 0 30px 90px rgba(0, 0, 0, .65); }
.gallery-dialog::backdrop { background: rgba(3, 5, 14, .88); backdrop-filter: blur(9px); }
.gallery-dialog img { display: block; width: 100%; max-height: calc(100dvh - 125px); object-fit: contain; background: #090d19; }
.gallery-close { position: absolute; z-index: 2; top: 12px; right: 12px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; color: white; background: rgba(7, 10, 24, .72); font-size: 27px; line-height: 1; }
.gallery-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 69px; padding: 12px 20px; }
.gallery-dialog-footer > div:first-child { display: flex; align-items: center; gap: 14px; min-width: 0; }
.gallery-dialog-footer span { color: #aaa0e5; font: 10px var(--mono); white-space: nowrap; }
.gallery-dialog-footer strong { overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.gallery-dialog-controls { display: flex; gap: 8px; }
.gallery-dialog-controls button { width: 35px; height: 35px; padding: 0; border: 1px solid var(--line); border-radius: 8px; color: white; background: rgba(255, 255, 255, .05); }
.gallery-dialog-controls button:hover, .gallery-close:hover { background: rgba(132, 111, 237, .25); }

/* Closing */
.contact-section { display: flex; justify-content: space-between; align-items: center; gap: 40px; border: 1px solid rgba(139, 121, 241, .25); border-radius: 18px; padding: 48px 52px; margin-block: 15px 75px; background: radial-gradient(ellipse at 90% 50%, rgba(123, 63, 223, .14), transparent 70%), linear-gradient(110deg, rgba(36, 44, 84, .38), rgba(21, 23, 47, .45)); }
.contact-section h2 { font-size: clamp(27px, 3vw, 36px); }
.contact-copy > p:last-child { max-width: 340px; margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.contact-actions { display: flex; flex-direction: column; flex: 0 1 365px; gap: 10px; min-width: 0; }
.contact-method { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(12, 17, 36, .4); transition: border-color .2s, background .2s; }
.contact-method:hover { border-color: rgba(155, 132, 255, .55); background: rgba(65, 55, 114, .19); }
.contact-method > span { color: #9ba6cd; font: 10px/1.3 var(--mono); letter-spacing: .06em; }
.contact-method strong { grid-column: 1; font-size: 14px; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.contact-method .icon { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 18px; height: 18px; color: #b6a9ff; }
.contact-actions .inline-link { align-self: flex-start; margin-top: 4px; font-size: 11px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; border-top: 1px solid var(--line); padding-block: 28px; color: var(--dim); font-size: 10px; }
.site-footer .brand { color: #c2cae2; font-size: 15px; }
.reveal { transition: opacity .6s ease, transform .6s ease; }
.reveal-ready .reveal:not(.is-visible) { opacity: 0; transform: translateY(18px); }

/* Responsive layouts */
@media (min-width: 1500px) { .hero { padding-block: 100px; } }
@media (max-width: 1100px) {
  .container { width: calc(100% - 72px); }
  .hero { gap: 35px; grid-template-columns: .9fr 1.1fr; }
  .hero-roles { font-size: 11px; gap: 7px; }
  .about-layout { gap: 40px; }
  .achievement-card { padding-inline: 18px; }
  .achievement-top { font-size: 9px; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-block: 65px; gap: 55px; }
  .hero-copy { max-width: 620px; }
  h1 .gradient-text { display: inline; }
  h1 { font-size: 70px; }
  .hero-roles { font-size: 13px; }
  .hero-description { max-width: 500px; }
  .code-stage { width: 100%; max-width: 620px; justify-self: center; }
  .about-layout { grid-template-columns: 1fr; gap: 28px; }
  .about-story { max-width: 700px; }
  .achievements-grid { grid-template-columns: 1fr 1fr; }
  .achievement-top { font-size: 10px; }
  .gallery-grid { grid-template-columns: repeat(4, minmax(225px, 1fr)); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px; scrollbar-width: none; }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .gallery-card { height: 320px; scroll-snap-align: start; }
  .gallery-swipe-hint { display: block; margin: 10px 2px 0; color: var(--dim); font-size: 11px; }
  .contact-section { padding: 36px; }
}
@media (max-width: 768px) {
  .container { width: calc(100% - 40px); }
  .header-inner { height: 72px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 33px; height: 33px; }
  .header-inner { flex-wrap: wrap; position: relative; }
  .site-nav { width: 100%; gap: 22px; justify-content: center; padding-bottom: 15px; }
  .site-header:has(.site-nav) .header-inner { height: auto; min-height: 72px; padding-block: 16px; }
  .js-ready .header-inner { flex-wrap: nowrap; }
  .js-ready .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: rgba(255, 255, 255, .025); }
  .menu-toggle span { display: block; height: 1px; background: #d3d9ef; width: 18px; transition: transform .2s; }
  .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); }
  .js-ready .site-nav { display: none; position: absolute; top: calc(100% + 1px); right: 0; width: 240px; padding: 12px; border: 1px solid var(--line); border-radius: 0 0 12px 12px; background: #101427; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }
  .js-ready .site-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
  .js-ready .site-nav a { padding: 13px; }
  .js-ready .site-nav .nav-contact { margin-top: 6px; justify-content: space-between; }
  .section { padding-block: 65px; }
  .achievements-section { padding-top: 25px; }
  .section-heading { margin-bottom: 32px; }
  .heading-row { align-items: start; flex-direction: column; gap: 17px; }
  .heading-row > p { max-width: 400px; }
  .gallery-heading { align-items: start; flex-direction: column; gap: 14px; }
  .gallery-heading > p { max-width: 450px; }
  .contact-section { margin-bottom: 45px; }
  .site-footer { flex-wrap: wrap; gap: 15px; }
  .site-footer > span:nth-child(2) { display: none; }
}
@media (max-width: 520px) {
  .hero { padding-top: 48px; padding-bottom: 55px; gap: 42px; }
  .hero::before { inset-inline: -20px; }
  .eyebrow { font-size: 8px; letter-spacing: .1em; }
  h1 { font-size: clamp(49px, 12.6vw, 66px); line-height: 1.08; letter-spacing: -.065em; }
  h1 .gradient-text { display: inline; }
  .hero-roles { font-size: 11px; gap: 7px; margin-top: 18px; }
  .hero-statement { font-size: 23px; margin-top: 25px; }
  .hero-description { font-size: 13px; }
  .hero-meta { gap: 11px; font-size: 10px; }
  .button { padding-inline: 17px; font-size: 12px; }
  .code-aura { inset-inline: -15px; }
  .editor-chrome { padding-inline: 14px; height: 40px; font-size: 9px; }
  .editor-tabs [role="tab"] { padding-inline: 12px; font-size: 10px; }
  .editor-tabs { padding-right: 6px; }
  pre { font-size: 10px; line-height: 21px; padding-block: 17px; }
  .code-line { min-height: 21px; }
  .code-line::before { width: 33px; padding-right: 11px; font-size: 9px; }
  .code-panel { min-height: 328px; }
  .code-caption { font-size: 8px; margin-top: 17px; }
  h2 { font-size: 32px; }
  .about-story .large-copy { font-size: 18px; }
  .about-story p { font-size: 13px; }
  .achievements-grid { gap: 10px; }
  .achievement-card { padding: 17px 14px; }
  .achievement-top { font-size: 10px; line-height: 1.35; gap: 6px; align-items: start; min-height: 34px; }
  .achievement-top .icon { width: 15px; height: 15px; }
  .achievement-result { font-size: 56px; min-height: 60px; margin-block: 17px 13px; }
  .achievement-result.result-text { font-size: 28px; }
  .achievement-result > span { font-size: 18px; }
  .achievement-card h3 { font-size: 12px; }
  .achievement-card > p:not(.achievement-result) { font-size: 11px; min-height: 30px; }
  .gallery-grid { grid-template-columns: repeat(4, minmax(225px, 78%)); }
  .gallery-card { height: 315px; }
  .gallery-caption { left: 16px; bottom: 16px; }
  .gallery-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .gallery-dialog img { max-height: calc(100dvh - 95px); }
  .gallery-dialog-footer { padding-inline: 13px; }
  .contact-section { flex-direction: column; align-items: start; gap: 30px; padding: 29px 25px; border-radius: 13px; }
  .contact-section h2 { font-size: 27px; }
  .contact-actions { width: 100%; flex-basis: auto; }
  .site-footer { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .code-card { transform: none !important; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
}
