/* ==========================================================================
   emilpalm.se — Editorial Minimalist Design System (60-30-10)
   ========================================================================== */

@font-face {
    font-family: 'Space Grotesk';
    src: url('/assets/fonts/SpaceGrotesk-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('/assets/fonts/SpaceGrotesk-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('/assets/fonts/PlusJakartaSans-VariableFont_wght.ttf') format('truetype');
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('/assets/fonts/PlusJakartaSans-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 300 800;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('/assets/fonts/JetBrainsMono-VariableFont_wght.ttf') format('truetype');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Shadows Into Light';
    src: url('/assets/fonts/ShadowsIntoLight-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    /* 60% Main */
    --bg-primary: #EEE5D4;
    --bg-surface: #E5DAC6;

    /* 30% Second */
    --text-primary: #1D4A35;
    --text-muted: rgba(29, 74, 53, 0.72);
    --border: rgba(29, 74, 53, 0.22);
    --surface-dark: #1D4A35;
    --text-on-dark: #EEE5D4;

    /* 10% Loud / Accent */
    --accent: #F2462E;
    --accent-hover: #D93821;
    --accent-text: #EEE5D4;

    /* Typografi */
    --font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
    --font-hand: 'Shadows Into Light', cursive;

    /* Layout */
    --radius: 14px;
    --radius-lg: 24px;
    --container-max: 1180px;
    --transition: 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
}

button,
a,
[role="button"] {
    touch-action: manipulation;
}

button,
[role="button"],
.pill-tab,
.slider-arrow,
.cv-card {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

input,
textarea,
select {
    font-size: 16px;
}

body {
    margin: 0;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

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

a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-underline-offset: 3px;
    transition: color var(--transition), text-decoration-color var(--transition), opacity var(--transition);
}

@media (hover: hover) and (pointer: fine) {
    a:hover {
        text-decoration-color: var(--accent);
    }
}

code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: var(--bg-surface);
    color: var(--text-primary);
    padding: 0.12em 0.45em;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: var(--accent-text);
    padding: 0.6rem 1.1rem;
    font-weight: 600;
    text-decoration: none;
    z-index: 200;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

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

.small {
    font-size: 0.875rem;
}

/* Typography Hierarchy */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.12;
    margin: 0 0 0.85rem;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.15rem, 4.4vw, 3.6rem);
}

h2 {
    font-size: clamp(1.85rem, 3.4vw, 2.75rem);
}

h3 {
    font-size: clamp(1.2rem, 1.8vw, 1.45rem);
    font-weight: 600;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
}

.eyebrow-on-dark {
    color: rgba(238, 229, 212, 0.78);
}

.lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 62ch;
    margin: 0 0 1.75rem;
}

.hand-note {
    font-family: var(--font-hand);
    font-size: 1.35rem;
    line-height: 1.25;
    color: var(--text-primary);
    display: inline-block;
    transform: rotate(-1.5deg);
}

.hand-note-light {
    color: var(--text-on-dark);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.78rem 1.4rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 140ms cubic-bezier(0.22, 1, 0.36, 1), background-color var(--transition), border-color var(--transition), color var(--transition);
}

.btn:active {
    transform: scale(0.97);
}

.btn-sm {
    min-height: 40px;
    padding: 0.52rem 1.05rem;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-text);
    border-color: var(--accent);
}

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

.btn-outline-light {
    background: transparent;
    color: var(--text-on-dark);
    border-color: rgba(238, 229, 212, 0.35);
}

@media (hover: hover) and (pointer: fine) {
    .btn:hover {
        text-decoration: none;
        transform: translateY(-2px);
    }

    .btn-primary:hover {
        background: var(--accent-hover);
        border-color: var(--accent-hover);
    }

    .btn-ghost:hover {
        background: var(--bg-surface);
        border-color: var(--text-primary);
    }

    .btn-outline-light:hover {
        background: rgba(238, 229, 212, 0.12);
        border-color: var(--text-on-dark);
    }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(238, 229, 212, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding-top: env(safe-area-inset-top, 0px);
    transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

body.is-subpage main {
    padding-top: 68px;
}

.site-header.is-hidden {
    transform: translateY(-100%);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-decoration: none;
}

.brand:hover {
    text-decoration: none;
}

.brand-mark {
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 500;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-nav a {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}

.site-nav a[aria-current="page"] {
    color: var(--text-primary);
}

.site-nav .nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent);
    color: var(--accent-text);
    padding: 0.48rem 1.05rem;
    border-radius: 999px;
    font-weight: 600;
}

.site-nav .nav-cta:active {
    transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
    .site-nav a:hover {
        color: var(--text-primary);
    }

    .site-nav .nav-cta:hover {
        background: var(--accent-hover);
        color: var(--accent-text);
    }
}

.nav-toggle {
    display: none;
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.42rem 0.95rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
}

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

    .site-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border);
        padding: 1.25rem 1.5rem;
        gap: 0.9rem;
    }

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

/* ==========================================================================
   Stacked Full-Viewport Sections
   ========================================================================== */
.section {
    padding: 5rem 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
}

.stack-section {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stack-section:nth-of-type(1) { z-index: 1; }
.stack-section:nth-of-type(2) { z-index: 2; }
.stack-section:nth-of-type(3) { z-index: 3; }
.stack-section:nth-of-type(4) { z-index: 4; }
.stack-section:nth-of-type(5) { z-index: 5; }
.stack-section:nth-of-type(6) { z-index: 6; }
.stack-section:nth-of-type(7) { z-index: 7; }

.stack-section:not(:first-of-type) {
    box-shadow: 0 -14px 36px rgba(16, 41, 29, 0.14);
}

.stack-sticky {
    position: sticky;
    top: 0;
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-header-split {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
}

.page-header {
    margin-bottom: 2.5rem;
}

/* ==========================================================================
   1. HERO SECTION (Monochrome Parallax + Hover-Reveal Display Letters)
   ========================================================================== */
.hero-section {
    background: var(--surface-dark);
    color: var(--text-on-dark);
    border-top: none;
    overflow: hidden;
    min-height: 100svh;
    padding: calc(68px + clamp(1.75rem, 4vh, 3rem)) 0 clamp(2.5rem, 6vh, 4.5rem);
    justify-content: space-between;
}

@media (min-width: 960px) and (min-height: 700px) {
    .hero-section.stack-sticky {
        top: 0;
        height: 100svh;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg-layer {
    position: absolute;
    inset: -12% 0;
    background-image:
        radial-gradient(ellipse at 70% 25%, rgba(238, 229, 212, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(12, 34, 24, 0.7) 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 900' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%231D4A35'/%3E%3Cstop offset='100%25' stop-color='%2310291D'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1440' height='900' fill='url(%23g)'/%3E%3Cpath d='M0 520 Q 260 410 540 490 T 1080 450 T 1440 500 L 1440 900 L 0 900 Z' fill='%23143626' opacity='0.85'/%3E%3Cpath d='M0 640 Q 340 560 720 620 T 1440 590 L 1440 900 L 0 900 Z' fill='%230D2419' opacity='0.9'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(238, 229, 212, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(238, 229, 212, 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 0 auto;
    gap: clamp(1.5rem, 4vh, 3rem);
}

.hero-top {
    padding-top: clamp(0.75rem, 2.5vh, 1.75rem);
    max-width: 68ch;
}

.hero-headline {
    color: var(--text-on-dark);
    font-size: clamp(1.9rem, 3.6vw, 3.1rem);
    max-width: 18ch;
    margin-bottom: 1rem;
}

.hero-lead {
    color: rgba(238, 229, 212, 0.82);
    font-size: 1.08rem;
    max-width: 52ch;
    margin: 0 0 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero-note {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
}

@media (max-width: 860px) {
    .hero-note {
        align-items: flex-start;
        text-align: left;
    }
}

.hero-meta-line {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: rgba(238, 229, 212, 0.72);
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
}

.hero-display-wrap {
    margin-top: auto;
    padding-top: 1.25rem;
    padding-bottom: clamp(0.5rem, 2vh, 1.5rem);
    border-top: 1px solid rgba(238, 229, 212, 0.16);
}

.hero-display-name {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(3.3rem, 13.5vw, 12.2rem);
    line-height: 0.88;
    letter-spacing: -0.045em;
    user-select: none;
}

.hero-space {
    width: 0.22em;
    flex-shrink: 0;
}

.hero-letter {
    display: inline-block;
    color: var(--text-on-dark);
    cursor: default;
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), color 180ms ease;
    /* Rich warm-forest-vermilion color landscape revealed on hover */
    background-image:
        radial-gradient(circle at 25% 30%, #F2462E 0%, transparent 48%),
        radial-gradient(circle at 75% 70%, #F4A261 0%, transparent 52%),
        linear-gradient(135deg, #F2462E 0%, #E9C46A 38%, #2A9D8F 72%, #1D4A35 100%);
    background-size: 220% 220%;
    background-position: calc(var(--char-index, 0) * 14%) 50%;
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-letter.is-lit {
    color: transparent;
    transform: translateY(-6px) scale(1.03);
}

@media (hover: hover) and (pointer: fine) {
    .hero-letter:hover {
        color: transparent;
        transform: translateY(-6px) scale(1.03);
    }
}

/* ==========================================================================
   2. BENTO SECTION — Vad jag gör / Kompetens
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
}

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

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

.bento-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition), border-color var(--transition);
}

@media (hover: hover) and (pointer: fine) {
    .bento-card:hover {
        transform: translateY(-3px);
        border-color: var(--text-primary);
    }
}

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

@media (max-width: 640px) {
    .bento-wide {
        grid-column: span 1;
    }
}

.bento-dark {
    background: var(--surface-dark);
    color: var(--text-on-dark);
    border-color: var(--surface-dark);
}

.bento-dark h3,
.bento-dark p {
    color: var(--text-on-dark);
}

.bento-dark p {
    color: rgba(238, 229, 212, 0.84);
}

.bento-dark .bento-kicker {
    color: rgba(238, 229, 212, 0.72);
}

.bento-accent-border {
    border-color: rgba(242, 70, 46, 0.45);
}

.bento-content {
    position: relative;
    z-index: 2;
    max-width: 44ch;
}

.bento-kicker {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
}

.bento-content p {
    margin: 0;
    font-size: 0.96rem;
    color: var(--text-muted);
}

.bento-tags {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1.5rem;
}

.bento-tags span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(238, 229, 212, 0.28);
    color: var(--text-on-dark);
}

/* Pure CSS Card Background Animations */
.bento-anim {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.55;
}

.bento-anim-code {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
    gap: 0.55rem;
}

.bento-anim-code .anim-line {
    height: 6px;
    border-radius: 3px;
    background: rgba(238, 229, 212, 0.16);
    animation: codePulse 4s ease-in-out infinite;
}

.bento-anim-code .anim-line:nth-child(1) { width: 38%; }
.bento-anim-code .anim-line:nth-child(2) { width: 26%; animation-delay: 0.5s; }
.bento-anim-code .anim-line:nth-child(3) { width: 44%; animation-delay: 1s; }

.bento-anim-code .anim-cursor {
    width: 10px;
    height: 18px;
    background: var(--accent);
    border-radius: 2px;
    animation: blink 1.1s steps(2, start) infinite;
}

.bento-anim-seo .seo-ring {
    position: absolute;
    right: -28px;
    bottom: -28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    animation: radarExpand 5s ease-out infinite;
}

.bento-anim-seo .seo-ring-1 { width: 120px; height: 120px; }
.bento-anim-seo .seo-ring-2 { width: 180px; height: 180px; animation-delay: 1.8s; }

.bento-anim-seo .seo-node {
    position: absolute;
    right: 26px;
    bottom: 26px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
}

.bento-anim-design .geo-circle {
    position: absolute;
    right: 20px;
    bottom: 18px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    animation: floatSlow 6s ease-in-out infinite;
}

.bento-anim-design .geo-square {
    position: absolute;
    right: 52px;
    bottom: 42px;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--accent);
    border-radius: 6px;
    animation: spinSlow 14s linear infinite;
}

.bento-anim-motion {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 6px;
    padding: 1.25rem 1.5rem;
}

.bento-anim-motion .motion-bar {
    width: 8px;
    height: 28px;
    border-radius: 4px;
    background: var(--border);
    animation: eqBar 2.2s ease-in-out infinite;
}

.bento-anim-motion .motion-bar:nth-child(2) { height: 48px; animation-delay: 0.25s; background: var(--accent); }
.bento-anim-motion .motion-bar:nth-child(3) { height: 34px; animation-delay: 0.5s; }
.bento-anim-motion .motion-bar:nth-child(4) { height: 56px; animation-delay: 0.75s; }

.bento-anim-ai .ai-pulse {
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    border: 1.5px dashed var(--accent);
    animation: spinSlow 18s linear infinite;
}

@keyframes codePulse {
    0%, 100% { opacity: 0.4; transform: scaleX(0.95); }
    50% { opacity: 0.9; transform: scaleX(1); }
}

@keyframes blink {
    to { opacity: 0; }
}

@keyframes radarExpand {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.25); opacity: 0; }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes spinSlow {
    to { transform: rotate(360deg); }
}

@keyframes eqBar {
    0%, 100% { transform: scaleY(0.55); }
    50% { transform: scaleY(1.1); }
}

/* Tech stack bar */
.stack-bar {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.stack-bar-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tag {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.38rem 0.9rem;
    font-size: 0.84rem;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

/* ==========================================================================
   3. PORTFOLIO SECTION (Floating Pill Navbar + Slider + 3D Tilt Artwork Card)
   ========================================================================== */
.portfolio-nav-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.pill-navbar {
    display: inline-flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.35rem;
    padding: 0.38rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.pill-navbar::-webkit-scrollbar {
    display: none;
}

.pill-tab {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    scroll-snap-align: center;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition), transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pill-tab:active {
    transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
    .pill-tab:hover {
        color: var(--text-primary);
    }
}

.pill-tab.is-active {
    background: var(--surface-dark);
    color: var(--text-on-dark);
}

.portfolio-slider-shell {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
}

.slider-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 760px) {
    .portfolio-slider-shell {
        grid-template-columns: 1fr;
    }

    .slider-arrow {
        display: none;
    }
}

.slider-arrow:active {
    transform: scale(0.95);
}

@media (hover: hover) and (pointer: fine) {
    .slider-arrow:hover {
        background: var(--accent);
        border-color: var(--accent);
        color: var(--accent-text);
    }
}

.portfolio-slides {
    touch-action: pan-y;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.portfolio-slide {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.portfolio-slide.enter-next {
    animation: slideInFromRight 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.portfolio-slide.enter-prev {
    animation: slideInFromLeft 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(36px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-36px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.portfolio-slide[hidden] {
    display: none;
}

@media (max-width: 900px) {
    .portfolio-slide {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.75rem;
    }
}

.card-kicker {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 0 0 0.65rem;
}

.slide-summary {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin: 0 0 1.25rem;
}

.case-details {
    margin: 1rem 0 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: grid;
    gap: 0.85rem;
}

.case-details dt {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.case-details dd {
    margin: 0.2rem 0 0;
    font-size: 0.94rem;
    color: var(--text-primary);
}

.slide-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.metric-pill {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--accent);
    color: var(--accent-text);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
}

.slide-stack {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 3D Tilt Artwork Card (portfoliokort2.png + portfoliokort.mp4) */
.slide-visual-stage {
    perspective: 1000px;
    display: flex;
    justify-content: center;
}

.editorial-artwork-card {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 4 / 5;
    background: var(--surface-dark);
    color: var(--text-on-dark);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border);
    transform-style: preserve-3d;
    transition: transform 220ms ease-out;
    will-change: transform;
}

.artwork-frame {
    height: 100%;
    border: 1px solid rgba(238, 229, 212, 0.2);
    border-radius: calc(var(--radius-lg) - 8px);
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.artwork-index {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: rgba(238, 229, 212, 0.7);
}

.artwork-svg-wrap svg {
    width: 100%;
    height: auto;
    max-height: 220px;
}

.artwork-caption {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: rgba(238, 229, 212, 0.82);
    text-align: center;
}

/* ==========================================================================
   4. STATEMENT SECTION (Fluid Interactive Typography)
   ========================================================================== */
.statement-section {
    background: var(--surface-dark);
    border-top: 1px solid var(--border);
    overflow: hidden;
    padding: 0;
}

.statement-clip-svg {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

.statement-layer {
    width: 100%;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.statement-layer-base {
    position: relative;
    z-index: 1;
    background: var(--surface-dark);
    color: var(--text-on-dark);
}

.statement-layer-inv {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: var(--bg-primary);
    color: var(--text-primary);
    pointer-events: none;
    clip-path: url(#statement-blob-clip);
    -webkit-clip-path: url(#statement-blob-clip);
}

.statement-inner {
    max-width: min(94vw, 1340px);
    width: 100%;
    pointer-events: none;
}

.statement-quote {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2.85rem, 8.6vw, 7.8rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.12em;
}

.statement-line {
    display: block;
}

.statement-line-left {
    text-align: left;
}

.statement-line-center {
    text-align: center;
}

.statement-line-right {
    text-align: right;
}

.statement-attribution {
    font-family: var(--font-hand);
    font-size: clamp(1.5rem, 2.5vw, 2.15rem);
    color: inherit;
    margin: 2rem 0 0;
    text-align: center;
}

.statement-layer-base .statement-translation {
    color: rgba(238, 229, 212, 0.72);
}

.statement-layer-inv .statement-translation {
    color: var(--text-muted);
}

.statement-translation {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    margin-left: 0.5rem;
}

/* ==========================================================================
   5. ABOUT SECTION (Personligt & jordnära med Space Marine-video)
   ========================================================================== */
.about-section {
    background: #D34831;
    color: #FFFFFF;
    overflow: hidden;
    padding: clamp(2.5rem, 4.5vh, 3.75rem) 0 clamp(2rem, 4vh, 3rem);
    justify-content: space-between;
}

.about-title {
    transition: opacity 200ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1), filter 200ms ease;
}

.about-title.is-armored {
    font-family: var(--font-hand);
    font-weight: 400;
    font-size: clamp(3rem, 6.4vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: 0.01em;
    transform: rotate(-1deg);
}

.about-title.is-swapping {
    opacity: 0;
    transform: translateY(-6px);
    filter: blur(4px);
}

.about-section h2,
.about-section .about-title,
.about-section .about-role,
.about-section .about-summary,
.about-section .entity-facts-compact dd,
.about-section a {
    color: #FFFFFF;
}

.about-section .entity-facts-compact dt {
    color: rgba(255, 255, 255, 0.78);
}

.about-section code {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.32);
    color: #FFFFFF;
}

.about-video-backdrop {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

.about-video {
    width: min(860px, 98vw);
    max-height: 88svh;
    object-fit: contain;
    object-position: bottom center;
    -webkit-mask-image:
        radial-gradient(ellipse 66% 78% at 50% 64%, #000 44%, rgba(0, 0, 0, 0.55) 66%, transparent 90%);
    mask-image:
        radial-gradient(ellipse 66% 78% at 50% 64%, #000 44%, rgba(0, 0, 0, 0.55) 66%, transparent 90%);
}

.about-stage {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 0 auto;
    gap: clamp(1rem, 2.5vh, 1.75rem);
    padding-top: clamp(2rem, 6vh, 4.5rem);
}

.about-top-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
}

.badge {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-primary);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
}

.about-badge {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.34);
    color: #FFFFFF;
}

.about-centerpiece {
    position: relative;
    display: grid;
    grid-template-columns: minmax(250px, 325px) 1fr minmax(250px, 325px);
    align-items: center;
    gap: 1.5rem;
    margin: auto 0;
    padding-bottom: clamp(1rem, 3vh, 2.5rem);
}

.about-center-spacer {
    min-height: 380px;
}

.about-overlay-left,
.about-overlay-right {
    background: rgba(29, 74, 53, 0.24);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius);
    padding: 1.4rem;
}

.about-role {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 0 0.75rem;
}

.about-summary {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.94rem;
}

.entity-facts-compact {
    display: grid;
    gap: 0.85rem;
    margin: 0 0 1.25rem;
}

.entity-facts-compact dt {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.entity-facts-compact dd {
    margin: 0.15rem 0 0;
    font-size: 0.92rem;
}

@media (max-width: 960px) {
    .about-section {
        padding-bottom: clamp(19rem, 42svh, 24rem);
    }

    .about-centerpiece {
        order: 1;
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding-bottom: 0;
    }

    .about-top-row {
        order: 2;
        justify-content: center;
        text-align: center;
        margin-top: 1.25rem;
    }

    .about-top-row .about-badge {
        display: none;
    }

    .about-center-spacer {
        display: none;
    }

    .about-video {
        width: min(460px, 100vw);
        max-height: 46svh;
    }
}

.aquila-trigger {
    position: absolute;
    right: clamp(1rem, 3vw, 2.25rem);
    bottom: clamp(3rem, 7vh, 5.25rem);
    z-index: 4;
    background: transparent;
    border: none;
    padding: 0.45rem;
    width: clamp(68px, 7.5vw, 96px);
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), color var(--transition), opacity var(--transition);
}

.aquila-trigger svg {
    display: block;
    width: 100%;
    height: auto;
}

.aquila-trigger:active {
    transform: scale(0.94);
}

.aquila-trigger.is-active {
    color: #FFFFFF;
}

@media (hover: hover) and (pointer: fine) {
    .aquila-trigger:hover {
        color: #FFFFFF;
        transform: scale(1.06);
    }
}

/* ==========================================================================
   6. CV SECTION (Expanding Accordion Cards + FAQ)
   ========================================================================== */
.cv-group {
    margin-bottom: 2.5rem;
}

.cv-group-heading {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--text-primary);
}

.cv-accordion {
    display: flex;
    gap: 1rem;
    min-height: 360px;
}

.cv-collapsed-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.cv-card-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.cv-cat-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.cv-cat-badge-dark {
    border-color: rgba(238, 229, 212, 0.28);
    background: rgba(238, 229, 212, 0.12);
    color: var(--text-on-dark);
}

@media (max-width: 860px) {
    .cv-accordion {
        flex-direction: column;
        min-height: auto;
    }
}

.cv-card {
    position: relative;
    flex: 0.7;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    cursor: pointer;
    overflow: hidden;
    transition: flex 420ms cubic-bezier(0.22, 1, 0.36, 1), background-color var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
}

@media (hover: hover) and (pointer: fine) {
    .cv-card:hover {
        border-color: var(--text-primary);
    }
}

.cv-card.is-expanded {
    flex: 2.6;
    background: var(--surface-dark);
    color: var(--text-on-dark);
    border-color: var(--surface-dark);
    cursor: default;
}

.cv-card.is-expanded h3,
.cv-card.is-expanded h4,
.cv-card.is-expanded .timeline-org,
.cv-card.is-expanded .cv-desc,
.cv-card.is-expanded .highlights {
    color: var(--text-on-dark);
}

.cv-card-body h4 {
    font-size: clamp(1.2rem, 1.8vw, 1.45rem);
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.cv-card.is-expanded .timeline-org,
.cv-card.is-expanded .cv-desc,
.cv-card.is-expanded .highlights {
    color: rgba(238, 229, 212, 0.84);
}

.cv-card-collapsed {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 1rem;
}

.cv-card.is-expanded .cv-card-collapsed {
    display: none;
}

.cv-period-vertical {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.cv-role-vertical {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.25;
}

.cv-card-body {
    display: none;
}

.cv-card.is-expanded .cv-card-body {
    display: block;
}

@media (max-width: 860px) {
    .cv-card {
        flex: none;
    }

    .cv-card-collapsed {
        flex-direction: row;
        align-items: center;
    }
}

.cv-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.timeline-period {
    font-family: var(--font-mono);
    font-size: 0.84rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-text);
}

.cv-index {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: rgba(238, 229, 212, 0.6);
}

.timeline-org {
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.highlights {
    margin: 1rem 0 0;
    padding-left: 1.25rem;
    display: grid;
    gap: 0.35rem;
}

/* FAQ Block */
.cv-section {
    padding-bottom: clamp(6rem, 12vh, 9.5rem);
}

.faq-block {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.faq-cta {
    margin-top: 1.75rem;
    display: flex;
    justify-content: flex-start;
}

.faq-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.faq-list {
    display: grid;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.05rem 1.35rem;
}

.faq-item summary {
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    list-style-position: inside;
}

.faq-answer {
    margin-top: 0.85rem;
    color: var(--text-muted);
}

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

/* ==========================================================================
   7. CONTACT SECTION & BENTO FOOTER (footer.mp4)
   ========================================================================== */
.contact-section {
    min-height: 72svh;
    padding: 5.5rem 0 4rem;
    text-align: center;
}

.contact-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-headline {
    font-size: clamp(2.1rem, 5vw, 3.8rem);
    max-width: 18ch;
    margin-bottom: 0.85rem;
}

.contact-sub {
    color: var(--text-muted);
    font-size: 1.08rem;
    margin: 0 0 2rem;
}

.contact-email-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.contact-email-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.65rem, 4.5vw, 3.4rem);
    letter-spacing: -0.03em;
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
    word-break: break-word;
}

@media (hover: hover) and (pointer: fine) {
    .contact-email-link:hover {
        color: var(--accent-hover);
    }
}

/* Rounded Dark Forest-Green Half-Bento Footer */
.site-footer-wrap {
    background: var(--bg-primary);
    padding: 0 1rem;
    position: relative;
    z-index: 8;
}

.site-footer {
    background: var(--surface-dark);
    color: var(--text-on-dark);
    border-radius: 32px 32px 0 0;
    padding: 4rem 0 calc(2rem + env(safe-area-inset-bottom, 0px));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(238, 229, 212, 0.16);
}

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

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

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-on-dark);
    text-decoration: none;
    margin-bottom: 0.75rem;
}

.footer-tagline {
    color: rgba(238, 229, 212, 0.78);
    font-size: 0.92rem;
    max-width: 34ch;
    margin: 0 0 1rem;
}

.footer-hand-note {
    font-family: var(--font-hand);
    font-size: 1.2rem;
    color: rgba(238, 229, 212, 0.85);
    margin: 0;
}

.footer-heading {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(238, 229, 212, 0.6);
    margin: 0 0 1rem;
}

.footer-list,
.footer-social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.footer-list a,
.footer-social a {
    color: var(--text-on-dark);
    text-decoration: none;
    font-size: 0.94rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    opacity: 0.88;
}

@media (hover: hover) and (pointer: fine) {
    .footer-list a:hover,
    .footer-social a:hover {
        opacity: 1;
        color: var(--accent);
    }
}

.footer-bottom {
    padding-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: rgba(238, 229, 212, 0.68);
}

.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.footer-link-btn {
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--text-on-dark);
    opacity: 0.88;
    cursor: pointer;
    text-align: left;
}

@media (hover: hover) and (pointer: fine) {
    .footer-link-btn:hover {
        opacity: 1;
        color: var(--accent);
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 150;
    max-width: 480px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.4rem;
    box-shadow: 0 18px 44px rgba(16, 41, 29, 0.22);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 0.4rem;
}

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

.cookie-prefs {
    display: grid;
    gap: 0.65rem;
    margin: 0 0 1rem;
    padding: 0.85rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.cookie-prefs[hidden] {
    display: none;
}

.cookie-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.cookie-toggle.is-locked {
    opacity: 0.8;
    cursor: default;
}

.cookie-toggle input {
    margin-top: 0.2rem;
    accent-color: var(--accent);
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.cookie-actions [hidden] {
    display: none;
}

/* ==========================================================================
   Subpages (page.php, lab.php, 404.php)
   ========================================================================== */
.page-blocks {
    display: grid;
    gap: 1.75rem;
}

.content-block,
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

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

.card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.card-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.35rem;
}

/* ==========================================================================
   Subtle Reveal Animation & Reduced Motion
   ========================================================================== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 420ms ease, transform 420ms ease;
}

.js-enabled .reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(12px);
}

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

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

    .reveal,
    .js-enabled .reveal:not(.is-visible) {
        opacity: 1;
        transform: none;
    }
}
