/* ============================================
   Stefan Hurzlmeier — Portfolio
   Dark Editorial Design
   ============================================ */

/* --- Self-hosted Fonts --- */

/* Cormorant Garamond */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url(fonts/cg-300-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url(fonts/cg-300-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(fonts/cg-400-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(fonts/cg-400-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(fonts/cg-500-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(fonts/cg-500-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(fonts/cg-600-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(fonts/cg-600-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(fonts/cg-700-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(fonts/cg-700-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* DM Sans */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url(fonts/dm-300-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url(fonts/dm-300-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(fonts/dm-400-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(fonts/dm-400-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(fonts/dm-500-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(fonts/dm-500-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(fonts/dm-700-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(fonts/dm-700-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Variables --- */
:root {
    --bg: #0a0a0a;
    --bg-alt: #0f0f0f;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --accent: #c9a87c;
    --accent-light: #e0c9a6;
    --accent-dim: rgba(201, 168, 124, 0.12);
    --text: #ece7e1;
    --text-muted: #7a756f;
    --text-dim: #3d3935;
    --border: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(201, 168, 124, 0.25);
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
}

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

img, svg {
    display: block;
}

/* --- Grain Texture --- */
.grain {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.035;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: overlay;
}

/* --- Container --- */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: background 0.4s var(--ease-smooth), padding 0.4s var(--ease-smooth);
}

.nav.is-scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
    transition: opacity 0.3s;
}

.nav-logo:hover {
    opacity: 0.7;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease-out);
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--text);
}

.nav-link.is-active::after,
.nav-link:hover::after {
    width: 100%;
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 0;
    width: 28px;
    height: 28px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.nav-toggle-line {
    display: block;
    width: 28px;
    height: 1.5px;
    background: var(--text);
    transition: transform 0.3s var(--ease-out), opacity 0.3s;
    transform-origin: center;
}

.nav-toggle.is-active .nav-toggle-line:first-child {
    transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-line:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(201, 168, 124, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(180, 140, 90, 0.04) 0%, transparent 50%),
        var(--bg);
}

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

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    will-change: transform;
}

.hero-orb--1 {
    width: 500px;
    height: 500px;
    background: rgba(201, 168, 124, 0.12);
    top: 5%;
    right: 10%;
    animation: orbDrift1 25s ease-in-out infinite alternate;
}

.hero-orb--2 {
    width: 350px;
    height: 350px;
    background: rgba(160, 120, 70, 0.1);
    top: 50%;
    left: 5%;
    animation: orbDrift2 30s ease-in-out infinite alternate;
}

.hero-orb--3 {
    width: 280px;
    height: 280px;
    background: rgba(201, 168, 124, 0.08);
    bottom: 15%;
    right: 25%;
    animation: orbDrift3 22s ease-in-out infinite alternate;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
}

.hero-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.hero-name-line {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text);
    opacity: 0;
    transform: translateY(50px);
    animation: heroReveal 1s var(--ease-out) forwards;
}

.hero-name-line:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-name-line:nth-child(2) {
    animation-delay: 0.4s;
    color: var(--accent);
}

.hero-divider {
    width: 0;
    height: 1px;
    background: var(--accent);
    margin: 1.5rem auto;
    animation: dividerDraw 0.8s var(--ease-out) 0.7s forwards;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.8s var(--ease-out) 0.9s forwards;
}

.hero-intro {
    max-width: 540px;
    margin: 1.5rem auto 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.8s var(--ease-out) 1.1s forwards;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    animation: heroReveal 0.8s var(--ease-out) 1.4s forwards;
}

.hero-scroll-text {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.hero-scroll-line {
    width: 1px;
    height: 50px;
    position: relative;
    overflow: hidden;
    background: var(--text-dim);
}

.hero-scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 8rem 0;
    position: relative;
}

.section--alt {
    background: var(--bg-alt);
}

.section--contact {
    padding: 10rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-num {
    display: block;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
    opacity: 0.7;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 300;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* ============================================
   Cards
   ============================================ */
.cards {
    display: grid;
    gap: 1.5rem;
}

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

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

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.25rem;
    transition: transform 0.4s var(--ease-out),
                border-color 0.4s,
                box-shadow 0.4s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 40px rgba(201, 168, 124, 0.06);
}

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

.card-icon {
    color: var(--accent);
    margin-bottom: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s var(--ease-out);
}

.card:hover .card-icon {
    transform: translateY(-2px);
}

.card-icon--img img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 10px;
}

.card-icon--light-bg img {
    background: #fff;
    padding: 6px;
    border-radius: 10px;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.card-title a {
    color: inherit;
    text-decoration: none;
}

.card-title a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.card:has(.card-title a) {
    cursor: pointer;
}

.card-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.card-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Compact card variant (projects) */
.card--compact {
    padding: 1.75rem;
}

.card--compact .card-icon {
    margin-bottom: 1rem;
}

.card--compact .card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card--compact .card-text {
    font-size: 0.85rem;
}

/* ============================================
   Contact
   ============================================ */
.contact-content {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 300;
    color: var(--text);
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

.contact-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--bg);
    background: var(--accent);
    padding: 1rem 2rem;
    border-radius: 100px;
    transition: transform 0.3s var(--ease-out),
                box-shadow 0.3s,
                background 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    background: var(--accent-light);
    box-shadow: 0 10px 40px rgba(201, 168, 124, 0.2);
}

.btn svg {
    display: inline-block;
    transition: transform 0.3s var(--ease-out);
}

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

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.8rem;
    color: var(--text-dim);
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: var(--text-muted);
}

@media (max-width: 480px) {
    .footer-inner {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ============================================
   Legal Pages
   ============================================ */
.legal {
    padding: 8rem 0 4rem;
}

.legal .container {
    max-width: 720px;
}

.legal-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 300;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.legal-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

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

.legal-section h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.legal-section p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.legal-section a {
    color: var(--accent);
    transition: opacity 0.3s;
}

.legal-section a:hover {
    opacity: 0.7;
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin-bottom: 0.75rem;
}

.legal-section ul li {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-muted);
    padding-left: 1.25rem;
    position: relative;
}

.legal-section ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ============================================
   Scroll Reveal
   ============================================ */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out),
                transform 0.8s var(--ease-out);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger cards within a section */
.cards [data-reveal]:nth-child(1) { transition-delay: 0s; }
.cards [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.cards [data-reveal]:nth-child(3) { transition-delay: 0.2s; }
.cards [data-reveal]:nth-child(4) { transition-delay: 0.3s; }
.cards [data-reveal]:nth-child(5) { transition-delay: 0.4s; }
.cards [data-reveal]:nth-child(6) { transition-delay: 0.5s; }
.cards [data-reveal]:nth-child(7) { transition-delay: 0.6s; }

/* ============================================
   Keyframe Animations
   ============================================ */
@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dividerDraw {
    from { width: 0; }
    to { width: 80px; }
}

@keyframes scrollPulse {
    0% { top: -100%; }
    100% { top: 100%; }
}

@keyframes orbDrift1 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-60px, 40px); }
}

@keyframes orbDrift2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, -30px); }
}

@keyframes orbDrift3 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-40px, -50px); }
}

/* ============================================
   Responsive — Tablet (768px)
   ============================================ */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 10, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }

    .nav-links.is-open {
        opacity: 1;
        visibility: visible;
    }

    .nav-links .nav-link {
        font-size: 1.1rem;
        letter-spacing: 0.15em;
    }

    .hero-name-line {
        font-size: clamp(3rem, 12vw, 5rem);
    }

    .section {
        padding: 5rem 0;
    }

    .section--contact {
        padding: 6rem 0;
    }

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

    .cards--2,
    .cards--3 {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 2rem;
    }

    .hero-orb--1 {
        width: 300px;
        height: 300px;
    }

    .hero-orb--2 {
        width: 200px;
        height: 200px;
    }

    .hero-orb--3 {
        width: 180px;
        height: 180px;
    }
}

/* ============================================
   Responsive — Mobile (480px)
   ============================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero-name-line {
        font-size: clamp(2.5rem, 14vw, 3.5rem);
    }

    .hero-tagline {
        font-size: 0.8rem;
        letter-spacing: 0.15em;
    }

    .hero-intro {
        font-size: 0.9rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .card {
        padding: 1.5rem;
    }

    .card--compact {
        padding: 1.25rem;
    }

    .btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.85rem;
    }
}
