/* ==========================================================================
   The Code Wolf - Alex Wolf
   Dark theme, turquoise accent. Single page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Surfaces - deep ink base, slightly cool */
    --bg: #080b10;
    --bg-alt: #0c1017;
    --surface: #111722;
    --surface-2: #161d2a;
    --line: rgba(146, 180, 200, .14);
    --line-strong: rgba(146, 180, 200, .26);

    /* Text */
    --text: #e8eef5;
    --text-muted: #93a3b5;
    --text-dim: #6c7c8e;

    /* Accent - turquoise into baby blue */
    --accent: #3ddad7;
    --accent-soft: #7ae7e3;
    --accent-blue: #7cc9f0;
    --accent-grad: linear-gradient(120deg, #3ddad7 0%, #7cc9f0 100%);
    --accent-glow: rgba(61, 218, 215, .28);

    /* Status */
    --ok: #4ade80;
    --err: #f87171;

    /* Type */
    --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* Metrics */
    --nav-h: 76px;
    --radius: 16px;
    --radius-sm: 10px;
    --maxw: 1140px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.13rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    /* defeats the width/height attribute presentational hints */
    display: block;
}

svg {
    display: block;
}

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

h1,
h2,
h3 {
    font-family: var(--font-display);
    line-height: 1.12;
    letter-spacing: -.02em;
    margin: 0;
}

p {
    margin: 0 0 1rem;
}

strong {
    color: var(--text);
    font-weight: 600;
}

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

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

.accent {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--accent);
    color: #04161a;
    padding: .6rem 1rem;
    font-weight: 600;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    left: 0;
}

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.btn {
    --btn-pad: .85rem 1.6rem;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: var(--btn-pad);
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 1.01rem;
    font-weight: 600;
    letter-spacing: .01em;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease),
        background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}

.btn svg {
    width: 17px;
    height: 17px;
    transition: transform .25s var(--ease);
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn--primary {
    background: var(--accent-grad);
    color: #042024;
    box-shadow: 0 8px 28px -10px var(--accent-glow);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px -10px var(--accent-glow);
}

.btn--ghost {
    background: rgba(255, 255, 255, .03);
    border-color: var(--line-strong);
    color: var(--text);
}

.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn--small {
    --btn-pad: .68rem 1.25rem;
    font-size: .92rem;
    background: rgba(61, 218, 215, .08);
    border-color: rgba(61, 218, 215, .3);
    color: var(--accent);
}

.btn--small:hover {
    background: rgba(61, 218, 215, .16);
    border-color: var(--accent);
}

.btn[disabled] {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

/* --------------------------------------------------------------------------
   4. Nav
   -------------------------------------------------------------------------- */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    transition: background-color .35s var(--ease), border-color .35s var(--ease),
        backdrop-filter .35s var(--ease);
    border-bottom: 1px solid transparent;
}

.nav.is-stuck {
    background: rgba(8, 11, 16, .82);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom-color: var(--line);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav__brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-display);
    font-size: 1.16rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -.01em;
}

.nav__brand strong {
    font-weight: 700;
    color: var(--accent);
}

.nav__mark {
    width: 30px;
    height: 30px;
    color: var(--accent);
    flex: none;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.nav__link {
    position: relative;
    padding: .5rem .9rem;
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 1.02rem;
    font-weight: 500;
    transition: color .22s var(--ease), background-color .22s var(--ease);
}

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

.nav__link.is-active {
    color: var(--accent);
}

.nav__link.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: .15rem;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: translateX(-50%);
}

.nav__link--cta {
    margin-left: .6rem;
    border: 1px solid var(--line-strong);
    color: var(--text);
}

.nav__link--cta:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.nav__link--cta.is-active::after {
    display: none;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 10px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
}

.nav__toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform .3s var(--ease), opacity .2s var(--ease);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    /* cap the height so tall monitors don't strand the text in empty space */
    min-height: min(100svh, 800px);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: calc(var(--nav-h) + .5rem) 0 3.5rem;
}

/* Hero background resolution ladder.
   A `cover` background needs roughly (viewport width x DPR) real pixels, so the
   tier is chosen by both. The 4K file is 627 KB and only ever reaches screens
   that can actually resolve it; a 1x laptop gets 233 KB.
   NOTE: the preload <link> tags in index.html mirror these exact breakpoints -
   change both together or the hero downloads twice. */
.hero__bg {
    position: absolute;
    inset: 0;
    background-position: center 35%;
    background-size: cover;
    background-repeat: no-repeat;
    /* fallback for no image-set support */
    background-image: url("../images/city-1920.webp");
    background-image: -webkit-image-set(url("../images/city-1920.webp") 1x,
            url("../images/city-2560.webp") 2x);
    background-image: image-set(url("../images/city-1920.webp") 1x,
            url("../images/city-2560.webp") 2x);
    filter: grayscale(.55) saturate(.7) brightness(.3) contrast(1.05);
    transform: scale(1.06);
}

@media (min-width: 1024px) {
    .hero__bg {
        background-image: -webkit-image-set(url("../images/city-1920.webp") 1x,
                url("../images/city-3840.webp") 2x);
        background-image: image-set(url("../images/city-1920.webp") 1x,
                url("../images/city-3840.webp") 2x);
    }
}

@media (min-width: 1600px) {
    .hero__bg {
        background-image: -webkit-image-set(url("../images/city-2560.webp") 1x,
                url("../images/city-3840.webp") 2x);
        background-image: image-set(url("../images/city-2560.webp") 1x,
                url("../images/city-3840.webp") 2x);
    }
}

@media (min-width: 2100px) {
    .hero__bg {
        background-image: url("../images/city-3840.webp");
    }
}

/* Teal-tinted wash so the bright daytime photo reads as a dark surface */
.hero__veil {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(90% 70% at 50% 0%, rgba(61, 218, 215, .16) 0%, transparent 62%),
        linear-gradient(180deg, rgba(8, 11, 16, .72) 0%, rgba(8, 11, 16, .82) 45%, var(--bg) 100%);
}

.hero__grid {
    position: absolute;
    inset: 0;
    opacity: .5;
    background-image:
        linear-gradient(rgba(146, 180, 200, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(146, 180, 200, .06) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(70% 60% at 50% 45%, #000 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(70% 60% at 50% 45%, #000 0%, transparent 100%);
}

.hero__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 880px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    max-width: 100%;
    margin: 0 0 1.4rem;
    padding: .45rem 1rem .45rem .75rem;
    border: 1px solid rgba(61, 218, 215, .3);
    border-radius: 999px;
    background: rgba(61, 218, 215, .07);
    color: var(--accent-soft);
    font-size: .88rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hero__dot {
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 var(--accent-glow);
    animation: pulse 2.4s infinite;
}

@keyframes pulse {
    70% {
        box-shadow: 0 0 0 9px rgba(61, 218, 215, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(61, 218, 215, 0);
    }
}

.hero__title {
    font-size: clamp(2.7rem, 7.6vw, 5.3rem);
    font-weight: 700;
    margin-bottom: 1.15rem;
    min-height: 1.2em;
}

/* The article ("a" / "an") stays in the heading colour; only the role is tinted. */
.typed__role {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.caret {
    display: inline-block;
    width: 3px;
    height: .95em;
    margin-left: .06em;
    vertical-align: text-bottom;
    background: var(--accent);
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

.hero__desc {
    max-width: 660px;
    margin: 0 auto 1.9rem;
    color: var(--text-muted);
    font-size: 1.22rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    justify-content: center;
}

.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 1.75rem;
    z-index: 2;
    transform: translateX(-50%);
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--text-muted);
    animation: bob 2.6s ease-in-out infinite;
    transition: color .25s var(--ease), border-color .25s var(--ease);
}

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

.hero__scroll svg {
    width: 20px;
    height: 20px;
}

@keyframes bob {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 7px);
    }
}

/* --------------------------------------------------------------------------
   6. Section scaffolding
   -------------------------------------------------------------------------- */
.section {
    position: relative;
    padding: clamp(5rem, 11vw, 8.5rem) 0;
}

.section--alt {
    background: var(--bg-alt);
    border-block: 1px solid var(--line);
}

.section__head {
    max-width: 680px;
    margin: 0 auto clamp(2.75rem, 6vw, 4rem);
    text-align: center;
}

.section__eyebrow {
    margin: 0 0 .9rem;
    color: var(--accent);
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.section__title {
    font-size: clamp(2.25rem, 4.9vw, 3.5rem);
    font-weight: 700;
}

.section__sub {
    margin: 1.1rem 0 0;
    color: var(--text-muted);
    font-size: 1.16rem;
}

.lede {
    font-size: 1.32rem;
    line-height: 1.6;
    color: var(--text);
}

/* --------------------------------------------------------------------------
   7. About
   -------------------------------------------------------------------------- */
.about {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}

.about__media {
    position: relative;
}

.about__frame {
    position: relative;
    border-radius: 24px;
    padding: 10px;
    background: linear-gradient(145deg, rgba(61, 218, 215, .45), rgba(124, 201, 240, .12) 45%, transparent 75%);
}

.about__frame::after {
    /* soft glow behind the portrait */
    content: "";
    position: absolute;
    inset: 12% 12% -8%;
    z-index: -1;
    border-radius: 50%;
    background: var(--accent-glow);
    filter: blur(60px);
}

.about__frame picture {
    display: block;
}

.about__frame img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 18px;
    background: var(--surface);
}

.about__badge {
    position: absolute;
    right: -10px;
    bottom: -18px;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1.2rem;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: rgba(17, 23, 34, .9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9);
}

.about__badge-num {
    font-family: var(--font-display);
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about__badge-label {
    font-size: .88rem;
    line-height: 1.35;
    color: var(--text-muted);
}

.about__body .section__eyebrow {
    text-align: left;
}

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

.about__body .lede {
    color: var(--text);
}

.about__tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
}

.about__tags li {
    padding: .35rem .8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .025);
    color: var(--text-muted);
    font-size: .94rem;
    font-weight: 500;
}

.social {
    display: flex;
    gap: .6rem;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
}

.social a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
    color: var(--text-muted);
    transition: color .25s var(--ease), border-color .25s var(--ease),
        transform .25s var(--ease), background-color .25s var(--ease);
}

.social a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(61, 218, 215, .08);
    transform: translateY(-3px);
}

.social svg {
    width: 20px;
    height: 20px;
}

.social--sm a {
    width: 38px;
    height: 38px;
}

.social--sm svg {
    width: 17px;
    height: 17px;
}

/* --------------------------------------------------------------------------
   7b. AI band - deliberately NOT the 3-up card grid, so it reads as a
       headline statement rather than another row of features.
   -------------------------------------------------------------------------- */
#ai {
    position: relative;
    overflow: hidden;
}

#ai::before {
    /* accent bloom anchored to the left intro column */
    content: "";
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 120%;
    background: radial-gradient(closest-side, rgba(61, 218, 215, .1), transparent 70%);
    pointer-events: none;
}

.ai {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(2.5rem, 6vw, 4.5rem);
    align-items: center;
}

.ai__intro .section__title {
    margin-bottom: 1.25rem;
}

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

.ai__intro .lede {
    color: var(--text);
}

.ai__intro .btn {
    margin-top: .75rem;
}

.ai__list {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ai__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}

.ai__item:hover {
    transform: translateX(6px);
    border-color: rgba(61, 218, 215, .4);
    background: var(--surface-2);
}

.ai__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    border: 1px solid rgba(61, 218, 215, .25);
    background: rgba(61, 218, 215, .07);
    color: var(--accent);
    flex: none;
}

.ai__icon svg {
    width: 25px;
    height: 25px;
}

.ai__title {
    font-size: 1.32rem;
    font-weight: 600;
    margin-bottom: .35rem;
}

.ai__text {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.07rem;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   8. Cards (Skills) + Work
   -------------------------------------------------------------------------- */
.cards {
    display: grid;
    gap: 1.5rem;
}

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

.card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.card::before {
    /* top hairline that lights up on hover */
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: var(--accent-grad);
    opacity: 0;
    transition: opacity .3s var(--ease);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--line-strong);
    box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .95);
}

.card:hover::before {
    opacity: 1;
}

.card {
    padding: 2.25rem 1.75rem;
    text-align: center;
}

.card__icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 1.4rem;
    border: 1px solid rgba(61, 218, 215, .25);
    border-radius: 18px;
    background: rgba(61, 218, 215, .07);
    color: var(--accent);
}

.card__icon svg {
    width: 28px;
    height: 28px;
}

.card__title {
    font-size: 1.55rem;
    font-weight: 600;
    margin-bottom: .75rem;
}

.card__title::after {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    margin: .7rem auto 0;
    border-radius: 2px;
    background: var(--accent-grad);
}

.card__text {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.09rem;
}

/* Experience rows: industry | company+role+blurb | dates */
.exp {
    display: grid;
    gap: 1rem;
    margin: 0 0 2.25rem;
    padding: 0;
    list-style: none;
}

.exp__row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: start;
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--line);
    border-left: 2px solid rgba(61, 218, 215, .35);
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: border-left-color .3s var(--ease), background-color .3s var(--ease),
        transform .3s var(--ease);
}

.exp__row:hover {
    border-left-color: var(--accent);
    background: var(--surface-2);
    transform: translateX(4px);
}

.exp__industry {
    justify-self: start;
    margin-top: .15rem;
    padding: .2rem .7rem;
    border-radius: 999px;
    background: rgba(61, 218, 215, .1);
    color: var(--accent);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    white-space: nowrap;
}

.exp__company {
    font-family: var(--font-display);
    font-size: 1.22rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: .2rem;
}

.exp__former {
    font-family: var(--font-body);
    font-size: .82rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-dim);
    white-space: nowrap;
}

.exp__role {
    margin: 0 0 .45rem;
    color: var(--accent-soft);
    font-size: .98rem;
    font-weight: 500;
}

.exp__text {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.55;
}

.exp__dates {
    margin-top: .2rem;
    color: var(--text-dim);
    font-size: .95rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.work-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
}

/* --------------------------------------------------------------------------
   9. Contact form
   -------------------------------------------------------------------------- */
.contact {
    max-width: 820px;
    margin-inline: auto;
}

.form {
    padding: clamp(1.75rem, 4vw, 2.75rem);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 30px 70px -45px rgba(0, 0, 0, 1);
}

.form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.field {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.form__row .field {
    margin-bottom: 1.25rem;
}

.field label {
    font-size: .86rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.field input,
.field textarea {
    width: 100%;
    padding: .9rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .025);
    color: var(--text);
    font-family: inherit;
    font-size: 1.08rem;
    line-height: 1.6;
    transition: border-color .22s var(--ease), box-shadow .22s var(--ease), background-color .22s var(--ease);
}

.field textarea {
    resize: vertical;
    min-height: 140px;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--text-dim);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(61, 218, 215, .04);
    box-shadow: 0 0 0 3px rgba(61, 218, 215, .14);
}

.field.is-invalid input,
.field.is-invalid textarea {
    border-color: var(--err);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, .12);
}

.field__error {
    margin: 0;
    color: var(--err);
    font-size: .78rem;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.form__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: .5rem;
}

.form__status {
    margin: 0;
    font-size: 1.02rem;
    color: var(--text-muted);
}

.form__status.is-ok {
    color: var(--ok);
}

.form__status.is-err {
    color: var(--err);
}

/* --------------------------------------------------------------------------
   10. Footer + back to top
   -------------------------------------------------------------------------- */
.footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--line);
    background: var(--bg);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.footer__copy {
    margin: 0;
    color: var(--text-dim);
    font-size: 1rem;
}

.to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent-grad);
    color: #042024;
    box-shadow: 0 10px 30px -10px var(--accent-glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.to-top svg {
    width: 22px;
    height: 22px;
}

/* --------------------------------------------------------------------------
   11. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

/* Stagger siblings inside a card grid */
.cards .reveal:nth-child(2) {
    transition-delay: .1s;
}

.cards .reveal:nth-child(3) {
    transition-delay: .2s;
}

.exp .reveal:nth-child(2) {
    transition-delay: .07s;
}

.exp .reveal:nth-child(3) {
    transition-delay: .14s;
}

.exp .reveal:nth-child(4) {
    transition-delay: .21s;
}

.exp .reveal:nth-child(5) {
    transition-delay: .28s;
}

/* --------------------------------------------------------------------------
   12. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .cards--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about {
        grid-template-columns: 1fr;
        max-width: 620px;
        margin-inline: auto;
        text-align: center;
    }

    .about__media {
        max-width: 360px;
        margin-inline: auto;
    }

    .about__tags,
    .social {
        justify-content: center;
    }

    .ai {
        grid-template-columns: 1fr;
    }

    .ai__intro {
        max-width: 680px;
        margin-inline: auto;
        text-align: center;
    }

    .ai__item {
        text-align: left;
    }

    .exp__row {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 1rem 1.25rem;
        text-align: left;
    }

    /* dates drop beneath the company block rather than squeezing a third column */
    .exp__dates {
        grid-column: 2;
        margin-top: 0;
    }
}

@media (max-width: 520px) {
    .ai__item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .exp__row {
        grid-template-columns: 1fr;
        gap: .85rem;
    }

    .exp__dates {
        grid-column: 1;
    }

    .exp__former {
        white-space: normal;
    }
}

@media (max-width: 860px) {
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        inset: var(--nav-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: .25rem;
        padding: 1rem 1.25rem 1.5rem;
        background: rgba(8, 11, 16, .97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--line);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: transform .35s var(--ease), opacity .3s var(--ease), visibility .3s;
    }

    .nav__menu.is-open {
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .nav__link {
        padding: .85rem 1rem;
        border-radius: 10px;
        font-size: 1rem;
    }

    .nav__link.is-active {
        background: rgba(61, 218, 215, .08);
    }

    .nav__link.is-active::after {
        display: none;
    }

    .nav__link--cta {
        margin: .5rem 0 0;
        text-align: center;
    }
}

@media (max-width: 700px) {
    .cards--3 {
        grid-template-columns: 1fr;
    }

    .cards .reveal:nth-child(n) {
        transition-delay: 0s;
    }

    .form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form__foot {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .form__foot .btn {
        justify-content: center;
    }

    .form__status {
        text-align: center;
    }

    .hero__actions .btn {
        flex: 1 1 100%;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .about__badge {
        right: 50%;
        transform: translateX(50%);
    }
}

/* --------------------------------------------------------------------------
   13. Motion / print preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
