/* ===== Design Tokens ===== */
:root {
    --bg: #141210;
    --bg-elevated: #1c1916;
    --bg-glass: rgba(28, 25, 22, 0.72);
    --text: #f5f0e8;
    --text-muted: rgba(245, 240, 232, 0.55);
    --accent: #e8a849;
    --accent-soft: rgba(232, 168, 73, 0.15);
    --accent-glow: rgba(232, 168, 73, 0.35);
    --border: rgba(245, 240, 232, 0.08);
    --border-hover: rgba(245, 240, 232, 0.2);
    --ease-framer: cubic-bezier(0.44, 0, 0.56, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --font: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-pixel: 'Press Start 2P', monospace;
    --font-hand: 'Gochi Hand', cursive;
    --nav-height: 64px;
    --section-gap: clamp(80px, 12vw, 140px);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    scroll-padding-top: calc(var(--nav-height) + 40px);
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.loading {
    overflow: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}

.pixel-font { font-family: var(--font-pixel); }
.gochi { font-family: var(--font-hand); }

/* ===== Preloader ===== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transition: opacity 0.6s var(--ease-framer), visibility 0.6s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-sunburst {
    width: 80px;
    height: 80px;
    color: var(--accent);
    animation: sunburstPulse 2s ease-in-out infinite;
}

.preloader-sunburst svg {
    width: 100%;
    height: 100%;
    animation: spin 3s linear infinite;
}

.preloader-text {
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    animation: blink 1.2s step-end infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes spinReverse {
    to { transform: rotate(-360deg); }
}

@keyframes sunburstPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes blink {
    50% { opacity: 0.3; }
}

/* ===== Floating Nav ===== */
.site-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 40px);
    max-width: 860px;
    opacity: 0;
    animation: navSlideIn 0.8s var(--ease-out-expo) 1.2s forwards;
}

@keyframes navSlideIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.floating-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px 10px 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 100px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-logo {
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--accent);
    text-decoration: none;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 100px;
    transition: color 0.3s var(--ease-framer), background 0.3s var(--ease-framer);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.nav-indicator {
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: width 0.3s var(--ease-framer);
}

.nav-link.active .nav-indicator {
    width: 12px;
}

.nav-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: border-color 0.3s, background 0.3s;
}

.nav-toggle:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: var(--accent);
    color: var(--bg);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 100px;
    white-space: nowrap;
    transition: transform 0.3s var(--ease-framer), box-shadow 0.3s;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
}

.lang-btn {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
    opacity: 0.45;
    transition: opacity 0.3s, background 0.3s, transform 0.3s var(--ease-framer);
}

.lang-btn:hover {
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.06);
}

.lang-btn--active {
    opacity: 1;
    background: var(--accent-soft);
    box-shadow: 0 0 0 1px rgba(232, 168, 73, 0.3);
}

/* ===== Social Rails ===== */
.social-rail {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    animation: fadeIn 0.8s var(--ease-out-expo) 1.5s forwards;
}

.social-rail--left { left: 24px; }
.social-rail--right { right: 24px; }

.social-pill {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: transform 0.3s var(--ease-framer), border-color 0.3s, background 0.3s;
}

.social-pill:hover {
    transform: scale(1.1);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.social-tooltip {
    position: absolute;
    left: calc(100% + 12px);
    white-space: nowrap;
    padding: 6px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease-framer);
}

.social-rail--right .social-tooltip {
    left: auto;
    right: calc(100% + 12px);
    transform: translateX(8px);
}

.social-pill:hover .social-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image {
    position: absolute;
    inset: -10%;
    background-size: cover;
    background-position: center top;
    transform: scale(1.1);
    transition: transform 0.1s linear;
    will-change: transform;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(20, 18, 16, 0.3) 0%, rgba(20, 18, 16, 0.7) 60%, var(--bg) 100%),
        radial-gradient(ellipse at 50% 30%, rgba(232, 168, 73, 0.08) 0%, transparent 60%);
}

.hero-sunburst {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

.hero-sunburst--1 {
    top: 10%;
    right: -5%;
    width: clamp(200px, 30vw, 400px);
    height: clamp(200px, 30vw, 400px);
}

.hero-sunburst svg {
    width: 100%;
    height: 100%;
}

.sunburst-spin { animation: spin 20s linear infinite; transform-origin: center; }
.sunburst-spin-reverse { animation: spinReverse 25s linear infinite; transform-origin: center; }

.hero-meta {
    position: absolute;
    z-index: 2;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    animation: metaFadeIn 0.8s var(--ease-out-expo) 0.8s forwards;
}

.hero-meta--left { top: 100px; left: clamp(24px, 5vw, 60px); max-width: min(320px, 42vw); }
.hero-meta--right { top: 100px; right: clamp(24px, 5vw, 60px); text-align: right; }

.hero-time-item {
    display: none;
}

.hero-meta-label {
    color: var(--text-muted);
    margin-bottom: 4px;
}

.hero-meta-value {
    color: var(--text);
    font-weight: 700;
}

@keyframes metaFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 920px;
    text-align: left;
    padding: 0 clamp(24px, 5vw, 60px);
}

.hero-content--business {
    margin-top: 40px;
}

.hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
    opacity: 0;
}

.hero-headline {
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 28px;
    max-width: 16ch;
}

.hero-subheadline {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 54ch;
    margin-bottom: 28px;
}

.hero-location {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-bottom: 36px;
}

.hero-location li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.hero-location-icon {
    font-size: 1rem;
    line-height: 1;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-greeting,
.hero-title-row,
.hero-intro,
.hero-name,
.hero-handwritten {
    display: none;
}

.hero-footer {
    position: absolute;
    bottom: 40px;
    left: clamp(24px, 5vw, 60px);
    right: clamp(24px, 5vw, 60px);
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    opacity: 0;
    animation: metaFadeIn 0.8s var(--ease-out-expo) 1s forwards;
    width: calc(100% - clamp(48px, 10vw, 120px));
    margin-left: clamp(24px, 5vw, 60px);
}

.hero-footer-left p {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.hero-availability {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #6bcf6b;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(107, 207, 107, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(107, 207, 107, 0); }
}

.scroll-down {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    animation: scrollBounce 2.5s ease-in-out 2s infinite;
}

.scroll-down:hover { color: var(--accent); }

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ===== Text Barrel Animation ===== */
.text-barrel {
    display: inline-block;
    overflow: hidden;
}

.text-barrel .char {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.7s var(--ease-out-expo), opacity 0.5s var(--ease-framer);
}

.text-barrel.revealed .char {
    transform: translateY(0);
    opacity: 1;
}

.text-barrel .char-space {
    display: inline-block;
    width: 0.3em;
}

/* ===== Appear Animations ===== */
[data-appear] {
    opacity: 0.001;
    transition:
        opacity 0.8s var(--ease-framer),
        transform 0.8s var(--ease-out-expo);
}

[data-appear="up"] { transform: translateY(60px); }
[data-appear="down"] { transform: translateY(-60px); }
[data-appear="left"] { transform: translateX(-60px); }
[data-appear="right"] { transform: translateX(60px); }
[data-appear="scale"] { transform: scale(0.85); }
[data-appear="fade"] { transform: none; }

[data-appear].is-visible {
    opacity: 1;
    transform: none;
}

/* ===== Trust Strip ===== */
.trust-strip {
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}

.trust-strip-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.trust-divider {
    color: var(--accent);
    opacity: 0.5;
}

.section-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 640px;
    margin: -24px 0 48px;
}

.section-intro--muted {
    margin-top: -16px;
}

/* ===== Services ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    padding: 36px 32px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: transform 0.4s var(--ease-framer), border-color 0.4s, background 0.4s, box-shadow 0.4s;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    background: rgba(232, 168, 73, 0.04);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
}

.service-icon {
    display: block;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ===== Credibility ===== */
.credibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.credibility-card {
    padding: 32px 28px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: transform 0.4s var(--ease-framer), border-color 0.4s;
}

.credibility-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.credibility-icon {
    display: block;
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.credibility-card h3 {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.credibility-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ===== Project extras ===== */
.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-badge {
    padding: 5px 12px;
    background: rgba(232, 168, 73, 0.1);
    border: 1px solid rgba(232, 168, 73, 0.25);
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}

.project-block {
    margin-top: 24px;
}

.project-block-title {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.project-features {
    list-style: none;
    display: grid;
    gap: 8px;
}

.project-features li {
    position: relative;
    padding-left: 18px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.project-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.7;
}

/* ===== Intro Labels ===== */
.intro-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px clamp(24px, 5vw, 60px);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.intro-label {
    display: flex;
    align-items: center;
    gap: 20px;
}

.intro-label--right { flex-direction: row-reverse; }

.intro-number {
    font-size: 0.6rem;
    color: var(--accent);
}

.intro-text {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ===== Sections ===== */
.section {
    padding: var(--section-gap) 0;
    border-bottom: 1px solid var(--border);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
}

.section-num {
    font-size: 0.6rem;
    color: var(--accent);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.section-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.lead-text {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 500;
    line-height: 1.65;
    color: var(--text);
    max-width: 720px;
}

.body-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 640px;
    margin-top: 24px;
}

/* ===== About ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}

.about-highlights {
    display: grid;
    gap: 16px;
}

.highlight-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 28px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: transform 0.4s var(--ease-framer), border-color 0.4s, background 0.4s;
}

.highlight-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    background: rgba(232, 168, 73, 0.04);
}

.highlight-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: var(--accent);
    margin-top: 2px;
}

.highlight-card h3 {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.highlight-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== Tools ===== */
.tools-section {
    padding: clamp(64px, 9vw, 110px) 0;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, transparent 0%, rgba(28, 25, 22, 0.4) 50%, transparent 100%);
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tool-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 100px;
    cursor: default;
    transition: transform 0.35s var(--ease-framer), border-color 0.35s, background 0.35s;
}

.tool-item:hover {
    transform: scale(1.05);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.tool-icon { font-size: 1.1rem; }

.tool-name {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* ===== Work ===== */
.work-lead {
    margin-bottom: 56px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.process-card {
    padding: 36px 32px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: transform 0.4s var(--ease-framer), border-color 0.4s, box-shadow 0.4s;
    position: relative;
    overflow: hidden;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.process-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.process-card:hover::before {
    opacity: 1;
}

.process-num {
    display: block;
    font-size: 0.55rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.process-card h4 {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.process-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== Projects ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
    gap: 32px;
}

.project-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.5s var(--ease-framer), box-shadow 0.5s;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.project-preview {
    position: relative;
    display: block;
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.project-preview-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    display: block;
    transition: transform 0.4s var(--ease-framer);
}

.project-preview:hover .project-preview-logo {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 18, 16, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s var(--ease-framer);
    border-radius: 14px;
}

.project-preview:hover .project-overlay { opacity: 1; }

.project-visit {
    padding: 6px 8px;
    background: var(--accent);
    color: var(--bg);
    font-size: 0.45rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    line-height: 1.3;
    max-width: 72px;
    transform: translateY(6px);
    transition: transform 0.35s var(--ease-out-expo);
    pointer-events: none;
}

.project-preview:hover .project-visit { transform: translateY(0); }

.project-info { padding: 28px 32px; }

.project-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.project-header-text {
    min-width: 0;
}

.project-name {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.project-tag {
    font-size: 0.45rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 0;
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== Contact ===== */
.contact-section {
    text-align: center;
}

.contact-inner {
    max-width: 720px;
    margin: 0 auto;
}

.contact-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.contact-hand {
    display: none;
}

.contact-title {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    line-height: 1.15;
}

.contact-lead {
    margin: 0 auto 36px;
    text-align: center;
}

.contact-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.btn-cta {
    display: inline-block;
    padding: 16px 36px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 100px;
    transition: transform 0.35s var(--ease-framer), box-shadow 0.35s, background 0.35s, border-color 0.35s;
}

.btn-cta--primary {
    background: var(--accent);
    color: var(--bg);
}

.btn-cta--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px var(--accent-glow);
}

.btn-cta--secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-hover);
}

.btn-cta--secondary:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.btn-cta:hover {
    transform: translateY(-3px);
}

/* legacy single btn */
.contact-inner > .btn-cta:not(.btn-cta--primary):not(.btn-cta--secondary) {
    background: var(--accent);
    color: var(--bg);
}

/* ===== Footer ===== */
.site-footer {
    position: relative;
    padding: clamp(80px, 12vw, 160px) 24px 60px;
    overflow: hidden;
    text-align: center;
}

.footer-sunburst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(250px, 40vw, 500px);
    height: clamp(250px, 40vw, 500px);
    opacity: 0.4;
    pointer-events: none;
}

.footer-sunburst svg { width: 100%; height: 100%; }

.footer-thanks {
    display: none;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.footer-logo {
    display: block;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.footer-role {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-copy {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ===== Modals ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
}

.modal-content {
    background: var(--bg-elevated);
    margin: 15% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    text-align: center;
    border: 1px solid var(--border);
    animation: modalIn 0.4s var(--ease-out-expo);
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

.modal-content h3 {
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-buttons button,
.lang-option {
    padding: 14px 28px;
    border: none;
    border-radius: 100px;
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
}

.modal-buttons button:hover,
.lang-option:hover {
    transform: translateY(-2px);
}

#acceptLanguage {
    background: #6bcf6b;
    color: var(--bg);
}

#chooseLanguage {
    background: var(--accent);
    color: var(--bg);
}

.language-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lang-option {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border: 1px solid var(--border);
}

.lang-option:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .social-rail { display: none; }
    .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .site-header {
        max-width: calc(100% - 24px);
        top: 12px;
    }

    .floating-nav {
        padding: 8px 8px 8px 16px;
    }

    .nav-toggle { display: flex; align-items: center; justify-content: center; }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-elevated);
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 8px;
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    }

    .nav-links.open { display: flex; }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 16px;
    }

    .floating-nav { position: relative; }

    .site-header { max-width: calc(100% - 32px); }

    .hero {
        padding: 100px 0 120px;
    }

    .hero-meta {
        display: none;
    }

    .hero-content--business {
        margin-top: 0;
    }

    .hero-time-item {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .hero-content {
        text-align: left;
    }

    .hero-headline {
        max-width: none;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-ctas .btn-cta {
        text-align: center;
    }

    .nav-cta {
        display: none;
    }

    .nav-actions {
        gap: 6px;
    }

    .credibility-grid {
        grid-template-columns: 1fr;
    }

    .hero-location {
        flex-direction: column;
        gap: 10px;
    }

    .language-switcher {
        order: -1;
    }

    .trust-strip-inner {
        font-size: 0.65rem;
        letter-spacing: 0.08em;
    }

    .hero-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .intro-labels {
        flex-direction: column;
        gap: 32px;
        align-items: flex-start;
    }

    .intro-label--right {
        flex-direction: row;
        align-self: flex-end;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-thanks-line {
        font-size: clamp(2.5rem, 15vw, 5rem);
    }
}

@media (max-width: 480px) {
    .hero-name {
        border-width: 2px;
    }

    .process-grid { grid-template-columns: 1fr; }

    .projects-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-appear] {
        opacity: 1;
        transform: none;
    }

    .text-barrel .char {
        transform: none;
        opacity: 1;
    }
}

#about, #services, #work, #projects, #credibility, #stack, #contact {
    scroll-margin-top: calc(var(--nav-height) + 60px);
}
