/* ==========================================================================
   burkt.com — aurora over the ridge
   ========================================================================== */

:root {
    --bg: #07090b;
    --bg-2: #0b0f12;
    --raised: rgba(255, 255, 255, 0.035);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #eef2f0;
    --text-dim: #98a39f;
    --text-faint: #56625e;

    --aurora-1: #3dfc9b;
    --aurora-2: #19c6c0;
    --aurora-3: #7a5cff;
    --accent: #6bffb8;

    --radius: 22px;
    --gutter: clamp(16px, 5vw, 64px);
    --max: 1240px;

    --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-serif: "Instrument Serif", ui-serif, Georgia, serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    color-scheme: dark;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

img,
svg {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    background: var(--accent);
    color: #04140c;
}

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

.serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.glow-text {
    background: linear-gradient(100deg, var(--aurora-1), var(--aurora-2) 55%, var(--aurora-3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Night sky (fixed) — darkened photo + grain
   -------------------------------------------------------------------------- */

.sky {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(7, 9, 11, 0.72), var(--bg) 80%),
        url("../images/bg20.webp") center 30% / cover no-repeat;
}

.sky::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.wrap {
    width: 100%;
    max-width: calc(var(--max) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

section {
    position: relative;
    padding: clamp(80px, 12vw, 150px) 0;
}

.label {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 0 0 32px;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.label .n {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 22px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--accent);
}

.label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--line-strong), transparent);
    transform: translateY(-4px);
}

.title {
    font-size: clamp(40px, 6.4vw, 84px);
    line-height: 1;
    letter-spacing: -0.045em;
    font-weight: 500;
    margin: 0 0 56px;
    max-width: 16ch;
}

.title .serif {
    letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.nav.is-scrolled {
    background: rgba(7, 9, 11, 0.6);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom-color: var(--line);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.wordmark {
    font-weight: 600;
    letter-spacing: -0.03em;
    font-size: 19px;
}

.wordmark .serif {
    font-weight: 400;
    font-size: 1.15em;
    color: var(--accent);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 15px;
}

.nav__links a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--text-dim);
    transition: color 0.25s, background 0.25s;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
    color: var(--text);
    background: var(--raised);
}

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

@media (max-width: 680px) {
    .nav__links .hide-sm {
        display: none;
    }

    .nav__links a {
        padding: 8px 10px;
    }
}

/* --------------------------------------------------------------------------
   Buttons, pills, chips
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid var(--line-strong);
    background: rgba(7, 9, 11, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.35s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.35s;
}

.btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.32);
}

.btn--primary {
    background: var(--text);
    color: #050706;
    border-color: transparent;
}

.btn--primary:hover {
    background: #fff;
    border-color: transparent;
    box-shadow: 0 12px 44px -10px rgba(107, 255, 184, 0.6);
}

.btn .arrow {
    transition: transform 0.35s var(--ease);
}

.btn:hover .arrow {
    transform: translateX(4px);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(7, 9, 11, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 14px;
    color: var(--text-dim);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(107, 255, 184, 0.6);
    animation: pulse 2.4s infinite;
    flex: none;
}

@keyframes pulse {
    70% { box-shadow: 0 0 0 9px rgba(107, 255, 184, 0); }
    100% { box-shadow: 0 0 0 0 rgba(107, 255, 184, 0); }
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tags li {
    font-size: 12.5px;
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   Hero: aurora canvas + ridges + name between them
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    height: 100svh;
    min-height: 680px;
    max-height: 1100px;
    overflow: hidden;
    padding: 0;
    isolation: isolate;
}

.aurora {
    position: absolute;
    inset: 0 0 12% 0;
    width: 100%;
    height: 88%;
    z-index: 0;
    mix-blend-mode: screen;
    pointer-events: none;
}

.ridge {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    pointer-events: none;
}

.ridge--far {
    z-index: 1;
    height: clamp(190px, 27vw, 400px);
}

.ridge--near {
    z-index: 1;
    height: clamp(160px, 24vw, 360px);
}

.ridge--front {
    z-index: 3;
    height: clamp(130px, 21vw, 320px);
}

.hero__intro {
    position: relative;
    z-index: 4;
    padding-top: clamp(112px, 16vh, 168px);
    display: grid;
    grid-template-columns: minmax(0, 520px) 1fr;
    gap: 32px;
}

.hero__lede {
    font-size: clamp(19px, 1.9vw, 24px);
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: #b3bdb9;
    margin: 26px 0 32px;
    text-shadow: 0 2px 24px rgba(7, 9, 11, 0.9);
}

.hero__lede strong {
    color: var(--text);
    font-weight: 500;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero__coords {
    justify-self: end;
    align-self: start;
    text-align: right;
    font-size: 13px;
    line-height: 1.9;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.hero__coords b {
    color: var(--text-dim);
    font-weight: 500;
}

.hero__name {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: calc(clamp(130px, 21vw, 320px) * 0.27);
    margin: 0;
    padding: 0 var(--gutter);
    font-size: clamp(104px, 22vw, 360px);
    line-height: 0.8;
    font-weight: 600;
    letter-spacing: -0.065em;
    white-space: nowrap;
    color: var(--text);
    text-shadow: 0 0 80px rgba(107, 255, 184, 0.18);
    will-change: transform;
}

.hero__name .serif {
    font-weight: 400;
    letter-spacing: -0.03em;
    padding-left: 0.04em;
}

.hero__name .ch {
    display: inline-block;
    animation: rise 1.4s var(--ease) both;
    animation-delay: calc(0.25s + var(--i) * 0.07s);
}

@keyframes rise {
    from {
        transform: translateY(60%);
        opacity: 0;
    }
}

.hero__meta {
    position: absolute;
    z-index: 4;
    left: 0;
    right: 0;
    bottom: 22px;
}

.hero__meta .wrap {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    color: var(--text-dim);
}

.hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero__meta .faint {
    color: var(--text-faint);
}

.scroll-line {
    width: 1px;
    height: 22px;
    background: linear-gradient(var(--accent), transparent);
    animation: cue 2.2s var(--ease) infinite;
    transform-origin: top;
}

@keyframes cue {
    0% { transform: scaleY(0); }
    50% { transform: scaleY(1); }
    100% { transform: scaleY(1); opacity: 0; }
}

@media (max-width: 860px) {
    .hero__intro {
        grid-template-columns: 1fr;
    }

    .hero__coords {
        display: none;
    }
}

@media (max-width: 560px) {
    .hero__meta .hide-sm {
        display: none;
    }

    .hero {
        min-height: 720px;
    }
}

/* compact hero (showcase) */
.hero--compact {
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 0 0 clamp(150px, 20vw, 280px);
}

.hero--compact .ridge--far {
    height: clamp(120px, 17vw, 250px);
}

.hero--compact .ridge--near {
    height: clamp(100px, 14vw, 210px);
}

.hero--compact .ridge--front {
    height: clamp(80px, 11vw, 170px);
}

.hero--compact .hero__intro {
    display: block;
}

.page-title {
    font-size: clamp(64px, 13vw, 200px);
    line-height: 0.85;
    letter-spacing: -0.06em;
    font-weight: 600;
    margin: 28px 0 28px;
}

.page-title .serif {
    font-weight: 400;
    letter-spacing: -0.03em;
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

.marquee {
    position: relative;
    overflow: hidden;
    padding: 28px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track {
    display: flex;
    width: max-content;
    animation: marquee 48s linear infinite;
}

.marquee:hover .marquee__track {
    animation-play-state: paused;
}

.marquee__group {
    display: flex;
    align-items: center;
    flex: none;
}

.marquee__group span {
    font-size: clamp(30px, 4.4vw, 60px);
    letter-spacing: -0.035em;
    font-weight: 500;
    white-space: nowrap;
    padding: 0 0.45em;
}

.marquee__group .serif {
    color: var(--text-dim);
}

.marquee__group i {
    font-style: normal;
    color: var(--accent);
    font-size: clamp(16px, 2vw, 26px);
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   About: scroll-lit statement + facts
   -------------------------------------------------------------------------- */

.statement {
    font-size: clamp(28px, 4.2vw, 58px);
    line-height: 1.18;
    letter-spacing: -0.035em;
    font-weight: 500;
    margin: 0 0 clamp(56px, 8vw, 96px);
    max-width: 22ch;
}

.statement .serif {
    letter-spacing: -0.015em;
}

.js .statement .w {
    color: var(--text-faint);
    transition: color 0.5s var(--ease);
}

.js .statement .w.lit {
    color: var(--text);
}

.facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
}

.fact {
    padding: 26px 24px 8px 0;
}

.fact + .fact {
    padding-left: 24px;
    border-left: 1px solid var(--line);
}

.fact dt {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 10px;
}

.fact dd {
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.fact dd small {
    display: block;
    color: var(--text-dim);
    font-size: 15px;
}

@media (max-width: 900px) {
    .facts {
        grid-template-columns: 1fr 1fr;
    }

    .fact:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .fact:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 480px) {
    .facts {
        grid-template-columns: 1fr;
    }

    .fact + .fact {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid var(--line);
    }
}

/* --------------------------------------------------------------------------
   Experience — logo rows
   -------------------------------------------------------------------------- */

.xp {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.xp__row {
    position: relative;
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 32px;
    align-items: center;
    padding: 34px 12px;
    border-bottom: 1px solid var(--line);
    transition: padding 0.5s var(--ease);
}

.xp__row::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(61, 252, 155, 0.08), rgba(25, 198, 192, 0.03) 40%, transparent 75%);
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    pointer-events: none;
}

.xp__row:hover {
    padding-left: 28px;
}

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

.xp__logo {
    height: 40px;
    display: flex;
    align-items: center;
}

.xp__logo img,
.xp__logo svg {
    max-height: 100%;
    max-width: 150px;
    width: auto;
    height: auto;
    opacity: 0.72;
    transition: opacity 0.4s, transform 0.5s var(--ease);
}

.xp__logo .h-sm {
    max-height: 26px;
}

.xp__logo .h-md {
    max-height: 34px;
}

.xp__row:hover .xp__logo img,
.xp__row:hover .xp__logo svg {
    opacity: 1;
    transform: scale(1.04);
}

.xp__org {
    display: block;
    font-size: clamp(22px, 2.4vw, 30px);
    letter-spacing: -0.03em;
    font-weight: 500;
    line-height: 1.2;
}

.xp__role {
    display: block;
    color: var(--text-dim);
    margin-top: 4px;
}

.xp__time {
    text-align: right;
    font-size: 14px;
    color: var(--text-dim);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.xp__time b {
    display: block;
    color: var(--text);
    font-weight: 500;
    font-size: 16px;
}

.sub-label {
    margin: 64px 0 0;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-faint);
    padding-bottom: 14px;
}

@media (max-width: 760px) {
    .xp__row {
        grid-template-columns: 1fr auto;
        gap: 16px;
        padding: 28px 4px;
    }

    .xp__row:hover {
        padding-left: 4px;
    }

    .xp__logo {
        grid-column: 1 / -1;
        height: 30px;
    }

    .xp__time {
        align-self: start;
    }
}

/* --------------------------------------------------------------------------
   Credentials
   -------------------------------------------------------------------------- */

.creds {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.card {
    --mx: 50%;
    --my: 50%;
    position: relative;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--raised);
    overflow: hidden;
    isolation: isolate;
    transition: border-color 0.35s, transform 0.5s var(--ease);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(107, 255, 184, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s;
}

.card:hover {
    border-color: var(--line-strong);
}

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

.cred {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 190px;
}

.cred:hover {
    transform: translateY(-3px);
}

.cred__issuer {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.cred__name {
    font-size: 19px;
    line-height: 1.3;
    letter-spacing: -0.02em;
    font-weight: 500;
    margin: 0;
}

.cred__date {
    margin-top: auto;
    font-size: 14px;
    color: var(--text-faint);
}

.cred--feature {
    grid-column: span 2;
    padding: 30px;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(61, 252, 155, 0.13), transparent 55%),
        radial-gradient(90% 120% at 0% 100%, rgba(122, 92, 255, 0.1), transparent 60%),
        var(--raised);
}

.cred--feature .cred__name {
    font-size: clamp(26px, 2.6vw, 34px);
    line-height: 1.1;
}

.cred--feature ul {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text-dim);
    font-size: 15px;
}

.cred--feature li::before {
    content: "✦";
    color: var(--accent);
    font-size: 11px;
    margin-right: 10px;
    vertical-align: 2px;
}

@media (max-width: 1000px) {
    .creds {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .creds {
        grid-template-columns: 1fr;
    }

    .cred--feature {
        grid-column: auto;
    }

    .cred {
        min-height: 0;
    }
}

/* --------------------------------------------------------------------------
   Home work list with floating preview
   -------------------------------------------------------------------------- */

.worklist {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.worklist a {
    display: grid;
    grid-template-columns: 64px 1fr auto 56px;
    gap: 24px;
    align-items: center;
    padding: clamp(22px, 3vw, 34px) 8px;
    border-bottom: 1px solid var(--line);
    transition: padding 0.5s var(--ease), color 0.3s;
}

.worklist .i {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 22px;
    color: var(--text-faint);
    transition: color 0.3s;
}

.worklist .t {
    font-size: clamp(32px, 5.4vw, 72px);
    letter-spacing: -0.05em;
    font-weight: 500;
    line-height: 1;
    transition: transform 0.5s var(--ease);
}

.worklist .k {
    font-size: 14px;
    color: var(--text-dim);
    text-align: right;
}

.worklist .go {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    justify-self: end;
    transition: background 0.3s, color 0.3s, transform 0.5s var(--ease), border-color 0.3s;
}

.worklist .thumb {
    display: none;
}

.worklist:hover a {
    color: var(--text-faint);
}

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

.worklist a:hover .t {
    transform: translateX(12px);
}

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

.worklist a:hover .go {
    background: var(--text);
    color: var(--bg);
    border-color: transparent;
    transform: rotate(-45deg);
}

.preview {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    width: 340px;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.85);
    transition: opacity 0.35s var(--ease), scale 0.35s var(--ease);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--line-strong);
    background: var(--bg-2);
}

.preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
}

.preview.is-on {
    opacity: 1;
}

@media (hover: none), (max-width: 760px) {
    .preview {
        display: none;
    }

    .worklist a {
        grid-template-columns: 1fr auto;
        gap: 6px 16px;
    }

    .worklist .i,
    .worklist .go {
        display: none;
    }

    .worklist .thumb {
        display: grid;
        grid-column: 2;
        grid-row: 1 / span 2;
        width: 88px;
        height: 66px;
        border-radius: 10px;
        border: 1px solid var(--line);
    }

    .worklist .thumb .ico {
        width: 34px;
    }

    .worklist .t {
        font-size: clamp(26px, 7vw, 40px);
    }

    .worklist .k {
        text-align: left;
        grid-row: 2;
    }
}

.section-foot {
    margin-top: 44px;
    display: flex;
    justify-content: flex-start;
}

/* --------------------------------------------------------------------------
   Showcase: filters + bento groups
   -------------------------------------------------------------------------- */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
}

.filter {
    font: inherit;
    font-size: 15px;
    color: var(--text-dim);
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(7, 9, 11, 0.4);
    cursor: pointer;
    transition: color 0.25s, background 0.25s, border-color 0.25s;
}

.filter:hover {
    color: var(--text);
    border-color: var(--line-strong);
}

.filter[aria-pressed="true"] {
    color: #050706;
    background: var(--text);
    border-color: transparent;
}

.group + .group {
    margin-top: clamp(72px, 10vw, 120px);
}

.group__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.group__head h2 {
    margin: 0;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1;
    letter-spacing: -0.05em;
    font-weight: 500;
}

.group__head p {
    margin: 0;
    color: var(--text-dim);
    font-size: 15px;
    text-align: right;
}

.group__head p .n {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 26px;
    color: var(--accent);
    margin-right: 6px;
}

.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.proj {
    display: flex;
    flex-direction: column;
    scroll-margin-top: 96px;
}

.proj--wide {
    grid-column: span 2;
}

.proj:hover {
    transform: translateY(-4px);
}

.proj__body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.proj__kind {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.proj h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-weight: 500;
}

.proj--wide h3 {
    font-size: clamp(28px, 3vw, 38px);
    letter-spacing: -0.04em;
}

.proj p {
    margin: 0;
    color: var(--text-dim);
    font-size: 15.5px;
    max-width: 52ch;
}

.proj__foot {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 500;
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 2px;
    transition: border-color 0.25s, color 0.25s;
}

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

@media (max-width: 960px) {
    .bento {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .bento {
        grid-template-columns: 1fr;
    }

    .proj--wide {
        grid-column: auto;
    }

    .group__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .group__head p {
        text-align: left;
    }
}

[data-cat].is-hidden {
    display: none;
}

/* --------------------------------------------------------------------------
   Generative project covers (gradient glow + pattern + line icon)
   -------------------------------------------------------------------------- */

.cover {
    --c1: 61, 252, 155;
    --c2: 25, 198, 192;
    position: relative;
    height: clamp(200px, 19vw, 250px);
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #0a0e10;
    border-bottom: 1px solid var(--line);
    isolation: isolate;
}

.cover::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(70% 95% at 12% 115%, rgba(var(--c1), 0.55), transparent 62%),
        radial-gradient(60% 85% at 100% -15%, rgba(var(--c2), 0.42), transparent 60%);
    transition: transform 1.2s var(--ease);
}

.cover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: var(--pattern);
    background-size: var(--ps);
    -webkit-mask-image: radial-gradient(75% 85% at 50% 50%, #000, transparent);
    mask-image: radial-gradient(75% 85% at 50% 50%, #000, transparent);
}

.cover--hw {
    --pattern: linear-gradient(rgba(255, 255, 255, 0.065) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.065) 1px, transparent 1px);
    --ps: 26px 26px;
}

.cover--sw {
    --pattern: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1.6px);
    --ps: 16px 16px;
}

.ico {
    width: clamp(54px, 20%, 92px);
    height: auto;
    aspect-ratio: 1;
    color: #fff;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 16px rgba(var(--c1), 0.9)) drop-shadow(0 0 2px rgba(255, 255, 255, 0.6));
    transition: transform 0.8s var(--ease);
}

.cover__idx {
    position: absolute;
    left: 18px;
    top: 10px;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.55);
}

.cover__peek {
    position: absolute;
    right: 16px;
    bottom: 12px;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    transition: opacity 0.3s;
}

.cover img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 0.6s var(--ease), transform 1.2s var(--ease);
}

.proj:hover .cover img {
    opacity: 1;
    transform: scale(1);
}

.proj:hover .cover::before {
    transform: scale(1.18);
}

.proj:hover .ico {
    transform: scale(1.1) rotate(-4deg);
}

.proj:hover .cover__peek {
    opacity: 0;
}

/* tones — all drawn from the aurora */
.t-green { --c1: 61, 252, 155; --c2: 25, 198, 192; }
.t-teal { --c1: 25, 198, 192; --c2: 122, 92, 255; }
.t-violet { --c1: 122, 92, 255; --c2: 61, 252, 155; }
.t-blue { --c1: 72, 140, 255; --c2: 25, 198, 192; }
.t-mint { --c1: 107, 255, 184; --c2: 72, 140, 255; }
.t-rose { --c1: 255, 105, 150; --c2: 122, 92, 255; }

/* --------------------------------------------------------------------------
   Flags
   -------------------------------------------------------------------------- */

.flags {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    vertical-align: middle;
}

.flag {
    height: 12px;
    width: auto;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.fact .flags {
    margin-left: 8px;
    transform: translateY(-2px);
}

.fact .flag {
    height: 14px;
}

/* --------------------------------------------------------------------------
   Shooting stars (hero)
   -------------------------------------------------------------------------- */

.shoot {
    position: absolute;
    z-index: 0;
    top: var(--y);
    left: var(--x);
    width: 150px;
    height: 1.5px;
    border-radius: 2px;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.4) 30%, transparent);
    opacity: 0;
    pointer-events: none;
    animation: shoot var(--dur) linear infinite;
    animation-delay: var(--delay);
}

@keyframes shoot {
    0% { opacity: 0; transform: rotate(-22deg) translateX(0); }
    1% { opacity: 0.9; }
    5% { opacity: 0; transform: rotate(-22deg) translateX(-460px); }
    100% { opacity: 0; transform: rotate(-22deg) translateX(-460px); }
}

/* --------------------------------------------------------------------------
   Covers inside the home work list (thumb + floating preview)
   -------------------------------------------------------------------------- */

.preview .cover {
    position: absolute;
    inset: 0;
    height: 100%;
    border: 0;
}

.preview .ico {
    width: 26%;
}

.preview img {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.preview.has-img img {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Footer — CTA + giant name
   -------------------------------------------------------------------------- */

.footer {
    position: relative;
    overflow: hidden;
    padding: clamp(96px, 14vw, 180px) 0 0;
    border-top: 1px solid var(--line);
    background: radial-gradient(70% 70% at 50% 110%, rgba(61, 252, 155, 0.16), transparent 70%);
}

.footer__top {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: end;
}

.footer__cta {
    font-size: clamp(48px, 8vw, 116px);
    line-height: 0.95;
    letter-spacing: -0.05em;
    font-weight: 500;
    margin: 0;
}

.footer__side {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
}

.footer__side p {
    margin: 0;
    color: var(--text-dim);
    max-width: 36ch;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer__base {
    margin-top: clamp(64px, 9vw, 120px);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: var(--text-faint);
}

.footer__giant {
    margin: 12px 0 0;
    font-size: clamp(110px, 27vw, 440px);
    line-height: 0.74;
    font-weight: 600;
    letter-spacing: -0.07em;
    text-align: center;
    white-space: nowrap;
    background: linear-gradient(180deg, rgba(238, 242, 240, 0.16), rgba(107, 255, 184, 0.04) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transform: translateY(14%);
    user-select: none;
}

.footer__giant .serif {
    font-weight: 400;
    letter-spacing: -0.03em;
}

@media (max-width: 860px) {
    .footer__top {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Interactive layer: stars, cursor glow, magnetic + tilt
   -------------------------------------------------------------------------- */

.stars {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 560px;
    height: 560px;
    margin: -280px 0 0 -280px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(107, 255, 184, 0.075), rgba(25, 198, 192, 0.03) 35%, transparent 65%);
    opacity: 0;
    transition: opacity 0.6s var(--ease);
    will-change: transform;
}

.cursor-glow.is-on {
    opacity: 1;
}

.hero__name .ch:not(.serif) {
    text-shadow: 0 0 calc(var(--f, 0) * 46px) rgba(107, 255, 184, calc(var(--f, 0) * 0.85));
}

.btn,
.nav__links a,
.filter,
.worklist .go {
    transition-property: transform, background, border-color, box-shadow, color, translate;
}

.btn,
.filter {
    transition-duration: 0.35s;
    transition-timing-function: var(--ease);
}

.tilt {
    transform-style: preserve-3d;
}

/* --------------------------------------------------------------------------
   Contact form (inside the footer)
   -------------------------------------------------------------------------- */

.footer__top {
    grid-template-columns: 1fr 1.05fr;
    align-items: start;
}

@media (max-width: 860px) {
    .footer__top {
        grid-template-columns: 1fr;
    }
}

.footer__lead p {
    margin: 28px 0 26px;
    color: var(--text-dim);
    max-width: 40ch;
}

.contact {
    padding: clamp(22px, 3vw, 32px);
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(61, 252, 155, 0.08), transparent 55%),
        rgba(10, 14, 16, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.contact__body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.contact.is-sent .contact__body {
    opacity: 0;
    transform: scale(0.97);
    pointer-events: none;
}

.topics {
    border: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.topics legend,
.field label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 10px;
    padding: 0;
}

.topic input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.topic span {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 14px;
    color: var(--text-dim);
    cursor: pointer;
    transition: color 0.25s, background 0.25s, border-color 0.25s;
}

.topic span:hover {
    color: var(--text);
    border-color: var(--line-strong);
}

.topic input:checked + span {
    color: #050706;
    background: var(--accent);
    border-color: transparent;
}

.topic input:focus-visible + span {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.field input,
.field textarea {
    width: 100%;
    font: inherit;
    font-size: 16px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 13px 16px;
    outline: none;
    resize: vertical;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.field textarea {
    min-height: 120px;
}

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

.field input:focus,
.field textarea:focus {
    border-color: rgba(107, 255, 184, 0.55);
    background: rgba(107, 255, 184, 0.04);
    box-shadow: 0 0 0 4px rgba(107, 255, 184, 0.1);
}

.hp {
    display: none !important;
}

.contact__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.contact__status {
    margin: 0;
    font-size: 14px;
    color: var(--text-dim);
    flex: 1;
    min-width: 180px;
}

.contact__status.is-error {
    color: #ff8fa3;
}

.contact__status a {
    color: var(--text);
    border-bottom: 1px solid var(--line-strong);
}

.contact button[disabled] {
    opacity: 0.7;
    cursor: progress;
}

.contact__done {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.6s var(--ease) 0.15s, transform 0.6s var(--ease) 0.15s;
}

.contact.is-sent .contact__done {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.contact__done h3 {
    margin: 6px 0 0;
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 500;
    letter-spacing: -0.04em;
}

.contact__done p {
    margin: 0 0 10px;
    color: var(--text-dim);
}

.check {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, rgba(107, 255, 184, 0.25), rgba(107, 255, 184, 0.05) 70%);
    box-shadow: 0 0 60px rgba(107, 255, 184, 0.35), inset 0 0 0 1px rgba(107, 255, 184, 0.5);
}

.check svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
}

.contact.is-sent .check svg {
    animation: draw 0.7s var(--ease) 0.45s forwards;
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

.spark {
    position: fixed;
    z-index: 60;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    pointer-events: none;
    background: var(--c, var(--accent));
    box-shadow: 0 0 12px var(--c, var(--accent));
    animation: spark 0.9s var(--ease) forwards;
}

@keyframes spark {
    to {
        transform: translate(var(--dx), var(--dy)) scale(0.2);
        opacity: 0;
    }
}

@media (max-width: 560px) {
    .row2 {
        grid-template-columns: 1fr;
    }

    .contact__foot .btn {
        width: 100%;
        justify-content: center;
    }
}

/* touch screens can't hover: show project screenshots up front */
@media (hover: none) {
    .cover img {
        opacity: 1;
        transform: none;
    }

    .cover__peek {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Simple centered pages (404 / bots)
   -------------------------------------------------------------------------- */

.solo {
    min-height: 100svh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 40px var(--gutter);
}

.solo h1 {
    font-size: clamp(56px, 12vw, 160px);
    line-height: 0.9;
    letter-spacing: -0.06em;
    font-weight: 600;
    margin: 0 0 24px;
}

.solo p {
    color: var(--text-dim);
    font-size: 18px;
    margin: 0 auto 32px;
    max-width: 40ch;
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

.js .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
    transition-delay: var(--d, 0s);
}

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

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

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

    .js .statement .w {
        color: var(--text);
    }
}
