:root {
  color-scheme: dark;
  --bg: #08090c;
  --bg-soft: #0e1014;
  --surface: #131419;
  --surface-raised: #1b1c22;
  --text: #f5f3f4;
  --text-muted: #a6a1a5;
  --text-dim: #777178;
  --line: rgba(226, 213, 218, .12);
  --line-strong: rgba(226, 213, 218, .22);
  --accent: #e34250;
  --accent-ink: #fff;
  --accent-soft: rgba(227, 54, 68, .13);
  --blue: #ff727c;
  --header-bg: rgba(8, 9, 12, .86);
  --shadow: 0 28px 80px rgba(0, 0, 0, .3);
  --max: 1160px;
  --nav-height: 78px;
  --font: 'Space Grotesk', sans-serif;
  --mono: 'DM Mono', monospace;
}

:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f4f1f2;
  --bg-soft: #ece7e9;
  --surface: #fffdfd;
  --surface-raised: #f8f4f5;
  --text: #171114;
  --text-muted: #62575d;
  --text-dim: #857a80;
  --line: rgba(42, 22, 28, .12);
  --line-strong: rgba(42, 22, 28, .22);
  --accent: #bd2636;
  --accent-ink: #fff;
  --accent-soft: rgba(189, 38, 54, .1);
  --blue: #bd2636;
  --header-bg: rgba(244, 241, 242, .88);
  --shadow: 0 28px 80px rgba(22, 36, 46, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: calc(16px + 5px); line-height: 1.65; transition: background-color .35s ease, color .35s ease; }
body, button, input, select, textarea { font-family: var(--font); }
body::before { position: fixed; inset: 0; z-index: -1; pointer-events: none; content: ''; opacity: .2; background-image: radial-gradient(rgba(160, 180, 203, .28) .65px, transparent .65px); background-size: 20px 20px; mask-image: linear-gradient(to bottom, #000 0%, transparent 66%); }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; max-width: 100%; }
::selection { color: var(--accent-ink); background: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.section-wrap { width: min(var(--max), calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 300; padding: 10px 16px; transform: translateY(-150%); border-radius: 8px; color: var(--accent-ink); background: var(--accent); }
.skip-link:focus { transform: translateY(0); }

.preloader { position: fixed; inset: 0; z-index: 250; display: grid; place-content: center; gap: 20px; background: var(--bg); transition: opacity .55s ease, visibility .55s ease; }
.preloader__mark { font-size: calc(36px + 5px); font-weight: 700; letter-spacing: -.08em; text-align: center; }
.preloader__mark span { color: var(--accent); }
.preloader__line { width: 112px; height: 2px; overflow: hidden; background: var(--line-strong); }
.preloader__line i { display: block; width: 100%; height: 100%; transform: translateX(-100%); background: var(--accent); animation: load-line .85s ease forwards; }
.is-ready .preloader { visibility: hidden; opacity: 0; }
@keyframes load-line { to { transform: translateX(0); } }
.scroll-progress { position: fixed; top: 0; left: 0; z-index: 180; width: 100%; height: 2px; pointer-events: none; }
.scroll-progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: var(--accent); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 120; height: var(--nav-height); border-bottom: 1px solid transparent; transition: background .25s ease, border-color .25s ease, box-shadow .25s ease; }
.site-header.is-scrolled { border-color: var(--line); background: var(--header-bg); box-shadow: 0 10px 36px rgba(0,0,0,.08); backdrop-filter: blur(18px); }
.nav-shell { width: min(var(--max), calc(100% - 64px)); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.brand__mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 10px; font-size: calc(12px + 5px); font-weight: 700; letter-spacing: -.1em; }
.brand__mark span { color: var(--accent); }
.brand__text { font-size: calc(15px + 5px); font-weight: 600; letter-spacing: -.035em; }
.brand__dot { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 3vw, 34px); }
.nav-link { position: relative; padding: 8px 0; color: var(--text-muted); font-size: calc(13px + 5px); transition: color .2s ease; }
.nav-link::after { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; content: ''; transform: scaleX(0); transform-origin: left; background: var(--accent); transition: transform .24s ease; }
.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav-link.is-active::after, .nav-link:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.theme-toggle { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; transition: border-color .2s, transform .2s; }
.theme-toggle:hover { transform: rotate(-10deg); border-color: var(--accent); }
.icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.icon-moon { display: none; }
:root[data-theme='light'] .icon-sun { display: none; }
:root[data-theme='light'] .icon-moon { display: block; }
.nav-cta { padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 7px; font-size: calc(12px + 5px); font-weight: 600; transition: color .2s, border-color .2s, background .2s; }
.nav-cta span { margin-left: 8px; color: var(--accent); }
.nav-cta:hover { border-color: var(--accent); background: var(--accent-soft); }
.menu-toggle { display: none; }

.hero { position: relative; min-height: min(880px, 100svh); min-height: max(740px, 100svh); padding-top: calc(var(--nav-height) + 88px); padding-bottom: 90px; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 4%; }
.hero__copy { position: relative; z-index: 2; padding-bottom: 24px; }
.eyebrow, .mono-label { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-family: var(--mono); font-size: calc(10px + 5px); letter-spacing: .13em; }
.eyebrow__line { width: 25px; height: 1px; background: var(--accent); }
.eyebrow__index { margin-left: 4px; color: var(--text-dim); }
.hero__hello { margin: 48px 0 3px; color: var(--text-muted); font-size: calc(clamp(18px, 2vw, 23px) + 5px); }
.hero h1 { margin: 0; font-size: calc(clamp(60px, 8vw, 104px) + 5px); line-height: .97; font-weight: 600; letter-spacing: -.085em; }
.hero h1 span { color: var(--text-muted); font-weight: 400; }
.hero__period { color: var(--accent); font-style: normal; }
.hero__lead { max-width: 450px; margin: 27px 0 0; color: var(--text-muted); font-size: calc(17px + 5px); line-height: 1.75; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; border: 1px solid transparent; border-radius: 6px; font-size: calc(13px + 5px); font-weight: 600; cursor: pointer; transition: transform .22s ease, background .22s ease, border-color .22s ease, color .22s ease; }
.button:hover { transform: translateY(-3px); }
.button span { font-size: calc(16px + 5px); }
.button--primary { color: var(--accent-ink); background: var(--accent); }
.button--primary:hover { background: color-mix(in srgb, var(--accent) 84%, white); box-shadow: 0 8px 28px var(--accent-soft); }
.button--quiet { border-color: var(--line-strong); color: var(--text); background: transparent; }
.button--quiet:hover { border-color: var(--accent); background: var(--accent-soft); }
.hero__socials { display: flex; gap: 22px; margin-top: 39px; }
.hero__socials a, .project-links a { color: var(--text-muted); font-family: var(--mono); font-size: calc(10px + 5px); letter-spacing: .02em; transition: color .2s ease; }
.hero__socials a span { padding-left: 4px; color: var(--accent); }
.hero__socials a:hover, .project-links a:hover { color: var(--accent); }
.hero__visual { position: relative; width: min(100%, 490px); aspect-ratio: .91; justify-self: end; display: grid; place-items: center; }
.hero__image-frame { position: relative; z-index: 2; width: 72%; height: 76%; overflow: hidden; border: 1px solid rgba(225, 236, 248, .2); border-radius: 46% 46% 8px 8px; background: #171216; box-shadow: var(--shadow); }
.hero__image-frame::after { position: absolute; inset: 0; content: ''; background: linear-gradient(180deg, transparent 48%, rgba(8, 12, 18, .26)); pointer-events: none; }
.hero__image-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; filter: saturate(.82); }
.hero__orbit { position: absolute; border: 1px solid var(--line); border-radius: 50%; pointer-events: none; }
.hero__orbit--one { width: 80%; aspect-ratio: 1; animation: orbit-spin 40s linear infinite; }
.hero__orbit--one::before, .hero__orbit--two::after { position: absolute; width: 7px; height: 7px; border-radius: 50%; content: ''; background: var(--accent); box-shadow: 0 0 20px var(--accent); }
.hero__orbit--one::before { top: 13%; left: 17%; }
.hero__orbit--two { width: 88%; aspect-ratio: 1; border-style: dashed; opacity: .52; animation: orbit-spin 60s linear infinite reverse; }
.hero__orbit--two::after { right: 8%; bottom: 24%; width: 5px; height: 5px; background: var(--blue); }
.hero__orbit--three::before, .hero__orbit--four::after, .hero__orbit--five::before, .hero__orbit--six::after { position: absolute; width: 6px; height: 6px; border-radius: 50%; content: ""; background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.hero__orbit--three::before { top: 6%; left: 51%; }
.hero__orbit--four::after { top: 52%; right: 4%; background: var(--blue); box-shadow: 0 0 16px var(--blue); }
.hero__orbit--five::before { bottom: 4%; left: 51%; }
.hero__orbit--six::after { top: 50%; left: 0; }
.hero__orbit--three { width: 96%; aspect-ratio: 1; border-style: dotted; opacity: .38; animation: orbit-spin 32s linear infinite reverse; }
.hero__orbit--four { width: 104%; aspect-ratio: 1; border-style: dashed; opacity: .32; animation: orbit-spin 52s linear infinite; }
.hero__orbit--five { width: 112%; aspect-ratio: 1; opacity: .26; animation: orbit-spin 68s linear infinite reverse; }
.hero__orbit--six { width: 120%; aspect-ratio: 1; border-style: dotted; opacity: .18; animation: orbit-spin 84s linear infinite; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.hero__floating { position: absolute; z-index: 3; padding: 15px 17px; border: 1px solid var(--line-strong); border-radius: 8px; background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: var(--shadow); backdrop-filter: blur(15px); animation: float 6s ease-in-out infinite; }
.hero__floating--code { top: 17%; right: -1%; }
.float-label { display: block; margin-bottom: 5px; color: var(--text-dim); font-family: var(--mono); font-size: calc(8px + 5px); letter-spacing: .13em; }
.hero__floating--code strong { font-size: calc(12px + 5px); line-height: 1.45; font-weight: 500; }
.hero__floating--availability { bottom: 14%; left: -2%; display: flex; align-items: center; gap: 9px; padding: 11px 13px; font-size: calc(10px + 5px); }
.availability-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hero__side-note { position: absolute; right: -5px; bottom: 14%; color: var(--text-dim); font-family: var(--mono); font-size: calc(8px + 5px); letter-spacing: .14em; writing-mode: vertical-rl; }
.hero__bottom { position: absolute; right: 0; bottom: 25px; left: 0; display: flex; align-items: center; gap: 12px; color: var(--text-dim); font-family: var(--mono); font-size: calc(9px + 5px); letter-spacing: .13em; }
.hero__scroll-line { width: 55px; height: 1px; background: var(--line-strong); }
.hero__coordinates { margin-left: auto; }

.intro-band { border-block: 1px solid var(--line); background: var(--bg-soft); }
.intro-band__inner { width: min(var(--max), calc(100% - 64px)); min-height: 142px; margin: auto; display: grid; grid-template-columns: .55fr 1.5fr .8fr; align-items: center; gap: 32px; }
.intro-band .mono-label { white-space: nowrap; }
.intro-band p { max-width: 570px; margin: 0 auto; font-size: calc(clamp(19px, 2.5vw, 28px) - 3px); line-height: 1.35; letter-spacing: -.045em; text-align: center; text-wrap: balance; }
.intro-band p em { color: var(--text-muted); font-style: normal; }
.intro-band__badge { justify-self: end; color: var(--text-muted); font-family: var(--mono); font-size: calc(9px + 5px); letter-spacing: .1em; white-space: nowrap; }
.intro-band__badge b { padding-inline: 5px; color: var(--accent); }

.section { padding-block: 142px; }
.section-heading { margin-bottom: 52px; display: flex; align-items: end; justify-content: space-between; gap: 36px; }
.section-heading h2, .contact-copy h2 { margin: 21px 0 0; font-size: calc(clamp(42px, 6vw, 68px) + 5px); font-weight: 500; line-height: 1.04; letter-spacing: -.075em; }
.section-heading h2 span, .contact-copy h2 span { color: var(--text-muted); }
.section-heading__aside { max-width: 330px; margin: 0 0 5px; color: var(--text-muted); font-size: calc(14px + 5px); line-height: 1.8; }
.section-heading__link { margin-bottom: 8px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { position: relative; min-height: 284px; padding: 27px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(145deg, transparent 42%, var(--accent-soft)); transition: background .25s ease, transform .25s ease; }
.service-card:hover { z-index: 1; transform: translateY(-5px); background-color: var(--surface); }
.service-card__number { position: absolute; top: 26px; right: 23px; color: var(--text-dim); font-family: var(--mono); font-size: calc(10px + 5px); }
.service-card__icon { width: 42px; height: 42px; margin-bottom: 31px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--accent); font-family: var(--mono); font-size: calc(17px + 5px); }
.service-card h3 { margin: 0 0 10px; font-size: calc(17px + 5px); font-weight: 500; letter-spacing: -.04em; }
.service-card p { min-height: 64px; margin: 0 0 21px; color: var(--text-muted); font-size: calc(12px + 5px); line-height: 1.75; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-row span, .skill-pills span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--text-muted); font-family: var(--mono); font-size: calc(9px + 5px); }

.about-section { padding-top: 130px; }
.about-section .section-heading { margin-bottom: 42px; }
.about-layout { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: clamp(50px, 9vw, 120px); }
.about-photo { position: relative; width: 100%; max-width: 420px; aspect-ratio: .9; padding: 14px; border: 1px solid var(--line-strong); }
.about-photo::before { position: absolute; top: -9px; left: -9px; width: 80px; height: 80px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); content: ''; }
.about-photo::after { position: absolute; right: -9px; bottom: -9px; width: 80px; height: 80px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); content: ''; pointer-events: none; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; filter: saturate(.75); }
.about-photo__caption { position: absolute; right: -20px; bottom: 33px; padding: 8px 12px; color: var(--accent-ink); background: var(--accent); font-family: var(--mono); font-size: calc(8px + 5px); letter-spacing: .1em; }
.about-copy__lead { margin: 0 0 22px; font-size: calc(clamp(20px, 2.8vw, 29px) + 5px); line-height: 1.4; letter-spacing: -.04em; }
.about-copy > p:not(.about-copy__lead) { color: var(--text-muted); font-size: calc(13px + 5px); line-height: 1.9; }
.about-facts { margin: 32px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about-facts div { padding-top: 13px; border-top: 1px solid var(--line); }
.about-facts .mono-label { margin-bottom: 7px; font-size: calc(8px + 5px); }
.about-facts strong { font-size: calc(12px + 5px); font-weight: 500; }
.text-link { display: inline-flex; align-items: center; gap: 15px; padding-bottom: 5px; border-bottom: 1px solid var(--line-strong); font-size: calc(12px + 5px); font-weight: 600; transition: color .2s, border .2s; }
.text-link span { color: var(--accent); transition: transform .2s; }
.text-link:hover { border-color: var(--accent); color: var(--accent); }
.text-link:hover span { transform: translate(3px, -3px); }

.stats-band { padding-block: 35px; border-block: 1px solid var(--line); background: var(--bg-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { min-height: 84px; padding: 8px 22px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.stat-item:first-child { padding-left: 0; }
.stat-item:nth-child(3) { border-right: 0; }
.stat-item strong { font-size: calc(36px + 5px); font-weight: 500; line-height: 1.15; letter-spacing: -.07em; }
.stat-item > span { color: var(--text-muted); font-size: calc(11px + 5px); }
.stats-note { padding-left: 44px; flex-direction: row; align-items: center; gap: 12px; border-right: 0; }
.stats-note p { margin: 0; color: var(--text-muted); font-size: calc(12px + 5px); line-height: 1.55; }
.stats-note b { color: var(--text); font-weight: 500; }

.project-toolbar { margin-bottom: 23px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.project-toolbar > p { margin: 0; color: var(--text-muted); font-size: calc(12px + 5px); }
.project-filters { display: flex; flex-wrap: wrap; gap: 5px; }
.filter-button { padding: 8px 11px; border: 1px solid transparent; border-radius: 5px; color: var(--text-muted); background: transparent; font-size: calc(10px + 5px); cursor: pointer; transition: color .2s, background .2s, border .2s; }
.filter-button span { margin-left: 4px; color: var(--text-dim); font-family: var(--mono); font-size: calc(9px + 5px); }
.filter-button:hover, .filter-button.is-active { border-color: var(--line); color: var(--text); background: var(--surface); }
.filter-button.is-active span { color: var(--accent); }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 38px 24px; }
.project-card { min-width: 0; }
.project-card[hidden] { display: none; }
.project-card__visual { position: relative; height: clamp(230px, 31vw, 360px); overflow: hidden; display: block; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.project-card__visual::after { position: absolute; inset: 0; content: ''; pointer-events: none; background: linear-gradient(180deg, transparent 54%, rgba(0,0,0,.32)); }
.project-card__visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s; }
.project-card__visual--shop img { object-position: top center; }
.project-card__visual--style img { object-position: center 44%; }
.project-card:hover .project-card__visual img { transform: scale(1.045); filter: saturate(1.08); }
.project-card__open { position: absolute; top: 15px; right: 15px; z-index: 1; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; color: white; background: rgba(8,9,12,.42); backdrop-filter: blur(10px); transition: transform .2s, background .2s; }
.project-card:hover .project-card__open { transform: rotate(45deg); background: rgba(8,9,12,.78); }
.project-card__meta { margin-top: 18px; display: flex; justify-content: space-between; color: var(--text-dim); font-family: var(--mono); font-size: calc(8px + 5px); letter-spacing: .12em; }
.project-card__title-row { margin: 11px 0 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.project-card__title-row h3 { margin: 0; font-size: calc(19px + 5px); font-weight: 500; letter-spacing: -.04em; }
.project-card__title-row p { margin: 5px 0 0; color: var(--text-muted); font-size: calc(11px + 5px); }
.project-card__arrow { color: var(--accent); font-size: calc(20px + 5px); }
.project-card__footer { padding-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.project-card__footer .tag-row span { font-size: calc(8px + 5px); }
.project-links { display: flex; gap: 15px; white-space: nowrap; }
.projects-empty { padding: 38px; color: var(--text-muted); text-align: center; }
.commerce-preview { position: absolute; inset: 0; padding: 22px 28px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; color: #fff; background: radial-gradient(circle at 86% 22%, rgba(227,54,68,.23), transparent 28%), linear-gradient(135deg, #130a0d, #281015 65%, #3b151c); }
.commerce-preview__top { position: absolute; top: 17px; right: 20px; left: 20px; display: flex; align-items: center; gap: 5px; color: rgba(255,255,255,.62); font-family: var(--mono); font-size: calc(8px + 5px); }
.commerce-preview__top i { width: 6px; height: 6px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; }
.commerce-preview__top b { margin-left: auto; font-weight: 400; letter-spacing: .12em; }
.commerce-preview > strong { font-size: calc(clamp(28px, 4vw, 46px) + 5px); font-weight: 500; line-height: .99; letter-spacing: -.07em; }
.commerce-preview__products { margin-top: 21px; display: flex; gap: 9px; }
.commerce-preview__products i { width: 64px; height: 44px; display: block; border: 1px solid rgba(255,255,255,.17); border-radius: 5px; background: linear-gradient(145deg, rgba(255,255,255,.25), rgba(255,255,255,.04)); }
.commerce-preview__products i:nth-child(2) { background: linear-gradient(145deg, rgba(227,54,68,.45), rgba(255,255,255,.05)); }
.commerce-preview__products i:nth-child(3) { background: linear-gradient(145deg, rgba(255,114,124,.38), rgba(255,255,255,.05)); }
.commerce-preview small { margin-top: 14px; color: rgba(255,255,255,.7); font-family: var(--mono); font-size: calc(8px + 5px); letter-spacing: .1em; }

.achievements-section { padding-top: 20px; }
.achievement-list { border-top: 1px solid var(--line); }
.achievement-row { position: relative; isolation: isolate; min-height: 94px; display: grid; grid-template-columns: 70px 1fr 100px; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); transition: padding .25s ease, background .25s; }
.achievement-row > * { position: relative; z-index: 2; }
.achievement-row::before { position: absolute; inset: 0; z-index: 1; content: ""; pointer-events: none; opacity: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent) 7%, transparent)); clip-path: inset(0 100% 0 0); transition: clip-path 2s ease, opacity .12s ease; }
.achievement-row::after { position: absolute; inset: 0; z-index: 3; border: 1px solid var(--accent); content: ""; pointer-events: none; opacity: 0; transform: scaleX(.04); transform-origin: left center; box-shadow: 0 0 18px var(--accent-soft), inset 0 0 16px var(--accent-soft); transition: transform 2s ease, opacity .12s ease; }
.achievement-row:hover::before { opacity: 1; clip-path: inset(0); }
.achievement-row:hover::after { opacity: 1; transform: scaleX(1); }
.achievement-row:hover { padding-inline: 14px; background: var(--surface); }
.achievement-row > span:first-child, .achievement-row__year { color: var(--text-dim); font-family: var(--mono); font-size: calc(10px + 5px); }
.achievement-row h3 { margin: 0; font-size: calc(15px + 5px); font-weight: 500; }
.achievement-row p { margin: 3px 0 0; color: var(--text-muted); font-size: calc(11px + 5px); }
.achievement-row__year { justify-self: end; }

.skills-groups { border-top: 1px solid var(--line); }
.skill-group { padding: 23px 0; display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 22px; border-bottom: 1px solid var(--line); }
.skill-group h3 { margin: 0; font-size: calc(13px + 5px); font-weight: 500; }
.skill-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-pills span { padding: 8px 11px; font-size: calc(10px + 5px); transition: border-color .2s, color .2s, background .2s; }
.skill-pills span:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.contact-section { padding-block: 110px; border-top: 1px solid var(--line); background: radial-gradient(ellipse at 8% 50%, var(--accent-soft), transparent 38%), var(--bg-soft); }
.contact-inner { display: grid; grid-template-columns: .95fr 1.05fr; align-items: start; gap: clamp(50px, 9vw, 130px); }
.contact-copy h2 { margin-top: 25px; font-size: calc(clamp(48px, 6vw, 74px) + 5px); }
.contact-copy > p:not(.eyebrow) { max-width: 360px; margin: 22px 0 28px; color: var(--text-muted); font-size: calc(13px + 5px); line-height: 1.8; }
.contact-email { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 7px; border-bottom: 1px solid var(--line-strong); font-family: var(--mono); font-size: calc(12px + 5px); }
.contact-email span { color: var(--accent); }
.contact-form { padding: 27px; display: grid; gap: 18px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); }
.contact-form label { display: grid; gap: 7px; color: var(--text-muted); font-size: calc(10px + 5px); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 5px; outline: none; color: var(--text); background: var(--bg); font-size: calc(12px + 5px); transition: border-color .2s, box-shadow .2s; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-dim); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.contact-form select:invalid { color: var(--text-dim); }
.contact-form textarea { min-height: 112px; resize: vertical; }
.contact-submit { justify-self: start; border: 0; }
.form-note { margin: -8px 0 0; color: var(--text-dim); font-size: calc(10px + 5px); }

.site-footer { border-top: 1px solid var(--line); }
.footer-top { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand__image { display: block; width: 60px; height: 60px; flex: 0 0 60px; object-fit: cover; border-radius: 17px; box-shadow: 0 0 22px rgba(191, 26, 58, .16); }
.footer-top > p { color: var(--text-muted); font-size: calc(11px + 5px); }
.back-top { color: var(--text-muted); font-family: var(--mono); font-size: calc(10px + 5px); transition: color .2s; }
.back-top:hover { color: var(--accent); }
.footer-bottom { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); color: var(--text-dim); font-family: var(--mono); font-size: calc(8px + 5px); letter-spacing: .08em; }
.footer-bottom > div { display: flex; gap: 18px; }
.footer-bottom a { transition: color .2s; }
.footer-bottom a:hover { color: var(--accent); }
.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text); background: var(--surface); opacity: 0; visibility: hidden; transform: translateY(8px); cursor: pointer; transition: opacity .2s, visibility .2s, transform .2s, border-color .2s; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { border-color: var(--accent); color: var(--accent); }
.toast { position: fixed; right: 22px; bottom: 76px; z-index: 170; max-width: min(360px, calc(100% - 44px)); padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--text); background: var(--surface-raised); box-shadow: var(--shadow); font-size: calc(12px + 5px); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, visibility .2s, transform .2s; }
.toast.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

@media (max-width: 980px) {
  :root { --nav-height: 70px; }
  .nav-shell, .section-wrap, .intro-band__inner { width: min(var(--max), calc(100% - 44px)); }
  .nav-links { gap: 17px; }
  .nav-link { font-size: calc(11px + 5px); }
  .hero { min-height: 760px; grid-template-columns: 1.05fr .95fr; gap: 1%; }
  .hero h1 { font-size: calc(clamp(57px, 8vw, 78px) + 5px); }
  .hero__floating--code { right: -6%; }
  .hero__orbit--one { width: 75%; }
  .hero__orbit--two { width: 80%; }
  .hero__orbit--three { width: 85%; }
  .hero__orbit--four { width: 90%; }
  .hero__orbit--five { width: 95%; }
  .hero__orbit--six { width: 100%; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { min-height: 250px; }
  .stats-note { padding-left: 22px; }
  .project-card__footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 720px) {
  .nav-shell { gap: 12px; }
  .menu-toggle { width: 40px; height: 40px; margin-left: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 7px; background: transparent; cursor: pointer; }
  .menu-toggle span { width: 16px; height: 1px; display: block; background: var(--text); 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); }
  .nav-links { position: absolute; top: calc(var(--nav-height) - 1px); right: 0; left: 0; padding: 9px 24px 17px; display: flex; align-items: stretch; flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); background: var(--header-bg); backdrop-filter: blur(18px); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, visibility .2s, transform .2s; }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-link { padding: 11px 0; font-size: calc(13px + 5px); }
  .nav-link::after { right: auto; width: 36px; }
  .nav-cta { display: none; }
  .hero { min-height: auto; padding-top: calc(var(--nav-height) + 76px); padding-bottom: 95px; grid-template-columns: 1fr; gap: 24px; }
  .hero__copy { padding-bottom: 0; }
  .hero__hello { margin-top: 31px; }
  .hero h1 { font-size: calc(clamp(59px, 14vw, 84px) + 5px); }
  .hero__lead { max-width: 540px; font-size: calc(15px + 5px); }
  .hero__visual { width: min(100%, 390px); margin: 10px auto 0; justify-self: center; }
  .hero__image-frame { width: 65%; height: 79%; }
  .hero__floating--code { right: -1%; }
  .hero__floating--availability { left: 0; }
  .hero__side-note { right: -2px; }
  .hero__bottom { bottom: 29px; }
  .intro-band__inner { min-height: auto; padding-block: 28px; grid-template-columns: 1fr; gap: 12px; }
  .intro-band__badge { justify-self: start; }
  .section { padding-block: 92px; }
  .section-heading { margin-bottom: 36px; align-items: flex-start; flex-direction: column; gap: 17px; }
  .section-heading h2 { font-size: calc(clamp(42px, 10vw, 58px) + 5px); }
  .section-heading__aside { max-width: 500px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card { min-height: 270px; padding: 20px 16px; }
  .service-card__icon { margin-bottom: 24px; }
  .service-card h3 { font-size: calc(15px + 5px); }
  .service-card p { font-size: calc(11px + 5px); }
  .about-layout { grid-template-columns: 1fr; gap: 42px; }
  .about-photo { width: min(100%, 380px); margin: auto; }
  .about-copy__lead { font-size: calc(23px + 5px); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .stat-item:first-child { padding-left: 16px; }
  .stat-item:nth-child(2) { border-right: 0; }
  .stat-item:nth-child(3) { border-bottom: 0; }
  .stats-note { padding-left: 16px; border-bottom: 0; }
  .project-toolbar { align-items: flex-start; flex-direction: column; }
  .project-grid { grid-template-columns: 1fr; gap: 34px; }
  .project-card__visual { height: clamp(240px, 65vw, 380px); }
  .project-card__footer { align-items: center; flex-direction: row; }
  .achievement-row { grid-template-columns: 34px 1fr 64px; gap: 10px; }
  .achievement-row h3 { font-size: calc(13px + 5px); }
  .achievement-row p { font-size: calc(10px + 5px); }
  .achievement-row__year { font-size: calc(8px + 5px); }
  .skill-group { grid-template-columns: 1fr; gap: 13px; }
  .contact-section { padding-block: 82px; }
  .contact-inner { grid-template-columns: 1fr; gap: 38px; }
  .contact-copy h2 { font-size: calc(clamp(48px, 12vw, 68px) + 5px); }
  .contact-form { padding: 20px; }
  .footer-top { min-height: 95px; flex-wrap: wrap; }
  .footer-top > p { order: 3; width: 100%; margin: -18px 0 17px; }
  .footer-bottom { padding-block: 17px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .footer-bottom > div { gap: 15px; }
}
@media (max-width: 430px) {
  .section-wrap, .nav-shell, .intro-band__inner { width: calc(100% - 36px); }
  .brand__text { font-size: calc(13px + 5px); }
  .nav-actions { gap: 9px; }
  .hero__actions { align-items: stretch; flex-direction: column; }
  .hero__actions .button { width: 100%; justify-content: space-between; }
  .hero__socials { gap: 14px; }
  .hero__socials a { font-size: calc(9px + 5px); }
  .hero__floating--code { right: -3%; padding: 11px 12px; }
  .hero__floating--availability { bottom: 10%; }
  .hero__side-note { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .service-card p { min-height: 0; }
  .project-card__footer { align-items: flex-start; flex-direction: column; }
  .achievement-row { min-height: 86px; grid-template-columns: 25px 1fr; }
  .achievement-row__year { display: none; }
  .back-to-top { right: 13px; bottom: 13px; }
}
@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; }
}
