/* igorkhaylov.uz — one hand-written stylesheet, no framework.
   Theme: follows the OS by default; the toggle pins it via <html data-theme="light|dark">. */

:root {
    --bg: #f8f8f6;
    --surface: #ffffff;
    --surface-2: #f1f2ef;
    --border: #e2e4df;
    --text: #15181b;
    --muted: #5b626b;
    --accent: #0c7f57;
    --accent-strong: #096b49;
    --accent-soft: rgba(12, 127, 87, 0.09);
    --on-accent: #ffffff;
    --shadow: 0 1px 2px rgba(16, 24, 32, 0.04), 0 8px 24px rgba(16, 24, 32, 0.05);

    --live: #0c7f57;
    --internal: #2563eb;
    --development: #b45309;
    --open-source: #7c3aed;
    --archived: #6b7280;

    --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "JetBrains Mono", "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

    --radius: 14px;
    --radius-sm: 9px;
    --container: 1160px;
    --gutter: 20px;
    --header-h: 64px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0b0e11;
        --surface: #12161b;
        --surface-2: #181d23;
        --border: #242a31;
        --text: #e8ebee;
        --muted: #98a1ab;
        --accent: #3ad99a;
        --accent-strong: #5ee6ae;
        --accent-soft: rgba(58, 217, 154, 0.11);
        --on-accent: #052a1a;
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.25);
        --live: #3ad99a;
        --internal: #60a5fa;
        --development: #fbbf24;
        --open-source: #b197fc;
        --archived: #8b939c;
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #0b0e11;
    --surface: #12161b;
    --surface-2: #181d23;
    --border: #242a31;
    --text: #e8ebee;
    --muted: #98a1ab;
    --accent: #3ad99a;
    --accent-strong: #5ee6ae;
    --accent-soft: rgba(58, 217, 154, 0.11);
    --on-accent: #052a1a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.25);
    --live: #3ad99a;
    --internal: #60a5fa;
    --development: #fbbf24;
    --open-source: #b197fc;
    --archived: #8b939c;
    color-scheme: dark;
}

/* ------------------------------------------------------------------ Base */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-strong);
}

h1,
h2,
h3 {
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.02em;
}

p {
    margin: 0 0 1em;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.icon {
    width: 1.1em;
    height: 1.1em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow {
    max-width: 860px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 100;
    background: var(--accent);
    color: var(--on-accent);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    left: 12px;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 12px;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}

.dot--live {
    background: var(--live);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--live) 20%, transparent);
}

/* ---------------------------------------------------------------- Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.site-header__inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 650;
    white-space: nowrap;
}

.brand:hover {
    color: var(--text);
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--accent);
    color: var(--on-accent);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.site-nav {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.site-nav a {
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--text);
    background: var(--surface-2);
}

.site-header__tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-switch {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.lang-switch a {
    color: var(--muted);
    padding: 4px 9px;
    border-radius: 999px;
}

.lang-switch a[aria-current="true"] {
    background: var(--text);
    color: var(--bg);
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.icon-button:hover {
    background: var(--surface-2);
}

.icon-button .icon {
    width: 18px;
    height: 18px;
}

/* Show the icon of the theme you would switch TO. */
.icon--moon {
    display: none;
}

:root[data-theme="light"] .icon--sun {
    display: none;
}

:root[data-theme="light"] .icon--moon {
    display: block;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .icon--sun {
        display: none;
    }

    :root:not([data-theme="dark"]) .icon--moon {
        display: block;
    }
}

.nav-toggle,
.icon--close {
    display: none;
}

/* ------------------------------------------------------------------ Hero */

.hero {
    padding: 64px 0 24px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto auto;
    width: 720px;
    height: 720px;
    background: radial-gradient(circle, var(--accent-soft), transparent 65%);
    pointer-events: none;
}

.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.hero__status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 18px;
}

.hero__available {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    white-space: nowrap;
}

.hero__name {
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    font-weight: 750;
    letter-spacing: -0.035em;
    margin: 18px 0 10px;
}

.hero__role {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 18px;
}

.hero__summary {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 60ch;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero__photo {
    justify-self: end;
    width: 100%;
    max-width: 380px;
    border-radius: 28px;
    padding: 10px;
    background: linear-gradient(145deg, var(--accent-soft), transparent 60%), var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.hero__photo img {
    border-radius: 20px;
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
}

/* --------------------------------------------------------------- Buttons */

.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.button:hover {
    color: var(--text);
    border-color: color-mix(in srgb, var(--text) 30%, var(--border));
    transform: translateY(-1px);
}

.button--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
}

.button--primary:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: var(--on-accent);
}

.button--ghost {
    background: transparent;
}

/* ------------------------------------------------------------------ Tags */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.tags li {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.3;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
}

.tags li.is-key {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
    background: var(--accent-soft);
}

.tags--hero li {
    background: var(--accent-soft);
    border-color: transparent;
    color: var(--accent);
    font-weight: 600;
}

.tags--small li {
    font-size: 0.74rem;
    padding: 3px 8px;
}

.tags .tags__more {
    color: var(--muted);
}

/* ----------------------------------------------------------------- Stats */

.stats {
    display: grid;
    gap: 12px;
    margin: 0;
}

.stats--hero {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 56px;
}

.stats--infra {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 28px;
}

.stat {
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.stat__value {
    order: -1;
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.stat__label {
    margin-top: 6px;
    font-weight: 600;
    font-size: 0.93rem;
}

.stat__note {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

/* -------------------------------------------------------------- Sections */

.section {
    padding: 88px 0;
}

.section--band {
    background: var(--surface-2);
    border-block: 1px solid var(--border);
}

.section__head {
    max-width: 760px;
    margin-bottom: 40px;
}

.section__head h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.5rem);
    font-weight: 720;
}

.section__lead {
    margin-top: 14px;
    color: var(--muted);
    font-size: 1.08rem;
}

.grid {
    display: grid;
    gap: 16px;
}

.grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.12rem;
    font-weight: 680;
    margin-bottom: 10px;
}

.card p {
    color: var(--muted);
}

.bullets {
    list-style: none;
    display: grid;
    gap: 6px;
    margin: 4px 0 16px;
    font-size: 0.94rem;
}

.bullets li {
    position: relative;
    padding-left: 18px;
}

.bullets li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--accent);
}

.checklist {
    list-style: none;
    display: grid;
    gap: 10px;
}

.checklist li {
    position: relative;
    padding-left: 28px;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-soft)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2321a36d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
        center / 11px no-repeat;
}

.prose p {
    font-size: 1.05rem;
    color: var(--text);
}

.prose p:last-child {
    margin-bottom: 0;
}

/* ----------------------------------------------------------------- About */

.about {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    margin-bottom: 48px;
}

.now {
    background: linear-gradient(160deg, var(--accent-soft), transparent 55%), var(--surface);
}

.now .checklist {
    font-size: 0.95rem;
}

.area__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 16px;
}

.area__icon .icon {
    width: 22px;
    height: 22px;
}

.area .tags {
    margin-top: auto;
}

.area {
    display: flex;
    flex-direction: column;
}

/* -------------------------------------------------------------- Projects */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.chip {
    font: inherit;
    font-size: 0.9rem;
    font-weight: 550;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
}

.chip:hover {
    color: var(--text);
}

.chip[aria-pressed="true"] {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
}

.projects {
    grid-auto-flow: dense;
}

.project {
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.project:hover {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
    transform: translateY(-2px);
}

.project[hidden] {
    display: none;
}

.project--featured {
    grid-column: span 2;
    background: linear-gradient(150deg, var(--accent-soft), transparent 45%), var(--surface);
}

.project__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}

.project__category {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, currentColor 10%, transparent);
}

.status .dot {
    width: 7px;
    height: 7px;
}

.status--live {
    color: var(--live);
}

.status--internal {
    color: var(--internal);
}

.status--development {
    color: var(--development);
}

.status--open_source {
    color: var(--open-source);
}

.status--archived {
    color: var(--archived);
}

.project__title {
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.project--featured .project__title {
    font-size: 1.4rem;
}

.project__title a {
    color: var(--text);
}

.project__title a:hover {
    color: var(--accent);
}

.project__summary {
    font-size: 0.96rem;
}

.project__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 0.84rem;
    color: var(--muted);
    margin-bottom: 14px;
}

.project__meta span + span::before {
    content: "·";
    margin-right: 14px;
}

.project .tags {
    margin-bottom: 18px;
}

.project__links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
    font-size: 0.9rem;
    font-weight: 600;
}

.project__links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    overflow-wrap: anywhere;
}

.project__links .icon {
    width: 15px;
    height: 15px;
}

/* ---------------------------------------------------------------- Resume */

.resume {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.timeline {
    list-style: none;
    position: relative;
    border-left: 2px solid var(--border);
    padding-left: 28px;
    display: grid;
    gap: 36px;
}

.timeline__item {
    position: relative;
}

.timeline__item::before {
    content: "";
    position: absolute;
    left: -36px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--accent);
}

.timeline__period {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 4px;
}

.timeline__title {
    font-size: 1.15rem;
    font-weight: 700;
}

.timeline__meta {
    color: var(--muted);
    font-size: 0.93rem;
    margin: 2px 0 10px;
}

.resume__side {
    display: grid;
    gap: 16px;
}

.entry + .entry {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.entry p {
    margin: 0;
}

.entry__period {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--accent) !important;
}

.entry__title {
    font-weight: 620;
    color: var(--text) !important;
}

.entry__meta {
    font-size: 0.88rem;
}

/* --------------------------------------------------------------- Contact */

.contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    padding: 40px;
    background: linear-gradient(135deg, var(--accent-soft), transparent 60%), var(--surface);
}

.contact h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.5rem);
    margin-bottom: 14px;
}

.contact__list {
    list-style: none;
    display: grid;
    gap: 10px;
    align-content: center;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
}

.contact__item:hover {
    color: var(--text);
    border-color: var(--accent);
}

.contact__item .icon {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.contact__item span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.contact__item small {
    color: var(--muted);
    font-size: 0.86rem;
    overflow-wrap: anywhere;
}

/* ---------------------------------------------------------- Project page */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 28px;
}

.project-page {
    padding-top: 48px;
}

.project-page__head h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 750;
    margin-bottom: 14px;
}

.project-page__lead {
    font-size: 1.15rem;
    color: var(--muted);
}

.project-page__subtitle {
    font-size: 1.3rem;
    margin: 40px 0 16px;
}

.project-page__cover img {
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.project-page__cover {
    margin: 0 0 32px;
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    margin: 28px 0 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--border);
}

.facts > div {
    background: var(--surface);
    padding: 14px 18px;
}

.facts dt {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.facts dd {
    margin: 4px 0 0;
    font-weight: 600;
}

.facts__links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.facts__links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    overflow-wrap: anywhere;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.gallery figure {
    margin: 0;
}

.gallery img {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.gallery figcaption {
    font-size: 0.86rem;
    color: var(--muted);
    margin-top: 6px;
}

.not-found {
    min-height: 60vh;
    display: grid;
    align-items: center;
}

.not-found h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 24px;
}

.messages {
    padding-top: 16px;
}

.message {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
}

/* ---------------------------------------------------------------- Footer */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
}

.site-footer p {
    margin: 0;
}

/* ------------------------------------------------------------ Responsive */

@media (max-width: 1080px) {
    .stats--infra {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .nav-toggle {
        display: inline-grid;
    }

    .site-nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 2px;
        padding: 12px var(--gutter) 18px;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        display: none;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 12px;
        font-size: 1rem;
    }

    .site-header__tools {
        margin-left: auto;
    }

    .nav-toggle[aria-expanded="true"] .icon--menu {
        display: none;
    }

    .nav-toggle[aria-expanded="true"] .icon--close {
        display: block;
    }

    .hero__grid,
    .about,
    .resume,
    .contact {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero__grid {
        gap: 36px;
    }

    .hero__photo {
        justify-self: start;
        max-width: 260px;
        order: -1;
    }

    .stats--hero {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 40px;
    }
}

@media (max-width: 720px) {
    :root {
        --gutter: 16px;
    }

    .section {
        padding: 64px 0;
    }

    .hero {
        padding-top: 36px;
    }

    .brand__name {
        display: none;
    }

    .grid--2,
    .grid--3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .project--featured {
        grid-column: auto;
    }

    .stats--infra {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card,
    .contact {
        padding: 20px;
    }

    .stat {
        padding: 14px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}
