/* ============================================================
   VARIABLES & RESET
============================================================ */
:root {
    --black: #000000;
    --red: #d90429;
    --white: #f2f2f2;
    --muted: #777777;
    --fh: 'Oswald', sans-serif;
    --fb: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--fb);
    overflow-x: hidden;
    line-height: 1.6;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

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

ul {
    list-style: none;
}

.c-red {
    color: var(--red);
}

/* ============================================================
   NAVIGATION
============================================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 1.8rem 5%;
    transition: padding 0.4s, background 0.4s, backdrop-filter 0.4s;
}

#navbar.scrolled {
    padding: 1rem 5%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

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

.logo {
    font-family: var(--fh);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo span {
    color: var(--red);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--red);
}

.nav-cta {
    background: var(--red);
    color: #fff !important;
    padding: 0.6rem 1.8rem;
    border-radius: 100px;
    transition: opacity 0.3s !important;
}

.nav-cta:hover {
    opacity: 0.85;
}

/* ============================================================
   SECTIONS — BASE
============================================================ */
.section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 80px;
    position: relative;
    overflow: hidden;
}

/* ============================================================
   HERO SECTION
============================================================ */
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(217, 4, 41, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--fh);
    font-size: clamp(5rem, 22vw, 20rem);
    font-weight: 800;
    letter-spacing: -5px;
    color: var(--red);
    opacity: 0.1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    white-space: nowrap;
}

.hero-body {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    flex-wrap: wrap;
}

.hero-left {
    flex: 1 1 380px;
}

.greeting {
    font-family: 'Allison', cursive;
    font-style: italic;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--muted);
    line-height: 1;
    margin-bottom: -10px;
    display: block;
}

.hero-name {
    font-family: var(--fh);
    font-size: clamp(3rem, 6vw, 7rem);
    line-height: 0.88;
    letter-spacing: -2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-role {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-desc {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.85;
    max-width: 480px;
    margin-bottom: 2.5rem;
}

.hero-available {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--muted);
}

.hero-available svg {
    color: var(--red);
}

.hero-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.stat-card h3 {
    font-family: var(--fh);
    font-size: clamp(2rem, 3vw, 3rem);
    color: var(--red);
    line-height: 1;
}

.stat-card p {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--muted);
    margin-top: 6px;
}

/* ============================================================
   SPLIT SECTIONS
============================================================ */
.split-section {
    gap: 6rem;
    justify-content: center;
}

.split-section .split-a,
.split-section .split-b,
.split-section .split-c {
    flex: 1;
    max-width: 580px;
}

.split-section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

.split-section.flip {
    flex-direction: row-reverse;
}

/* ============================================================
   TYPOGRAPHY HELPERS
============================================================ */
.big-label {
    font-family: var(--fh);
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 0.9;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.lead-line {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 300;
    color: var(--white);
    margin-bottom: 1.2rem;
}

.body-copy {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.85;
}

/* ============================================================
   TAGS
============================================================ */
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 2rem;
}

.tag-row span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    padding: 8px 18px;
    background: #111;
    border-radius: 100px;
}

.tag-row.large span {
    font-size: 0.85rem;
    padding: 10px 22px;
}

/* ============================================================
   FEATURE LIST (SERVICES / WHY ME)
============================================================ */
.feat-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2rem;
}

.feat-list li {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feat-list svg {
    flex-shrink: 0;
    margin-top: 4px;
}

.feat-list h4 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.feat-list p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* ============================================================
   STEPS LIST (PROCESS)
============================================================ */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2rem;
}

.steps-list li {
    display: flex;
    gap: 1.8rem;
    align-items: flex-start;
}

.step-num {
    font-family: var(--fh);
    font-size: 2.2rem;
    color: var(--red);
    line-height: 1;
    opacity: 0.6;
    flex-shrink: 0;
}

.steps-list h4 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.steps-list p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* ============================================================
   PROJECT BOXES
============================================================ */
.proj-num {
    display: block;
    font-family: var(--fh);
    font-size: 4rem;
    opacity: 0.25;
    line-height: 1;
    margin-bottom: 20px;
}

.proj-box {
    width: 100%;
    aspect-ratio: 16/10;
    background: transparent;
    border-radius: 6px;
    overflow: hidden;
}

.proj-box.red-proj {
    background: transparent;
}

.proj-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ============================================================
   CONTACT LINKS
============================================================ */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.c-link {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.1rem;
    color: var(--white);
    transition: color 0.3s;
}

.c-link:hover {
    color: var(--red);
}

.profile-img-wrap {
    width: 100%;
    max-width: 350px;
}

.profile-img {
    width: 100%;
    display: block;
    filter: grayscale(1) brightness(0.85);
    transition: filter 0.5s ease;
    /* NO transform, NO scale, NO shadow on hover */
}

.profile-img:hover {
    filter: grayscale(0) brightness(1);
}

/* ============================================================
   ANIMATIONS — FADE UP / SLIDE IN
============================================================ */
.fade-up,
.fade-right,
.fade-left {
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up {
    transform: translateY(60px);
}

.fade-right {
    transform: translateX(-60px);
}

.fade-left {
    transform: translateX(60px);
}

.fade-up.visible,
.fade-right.visible,
.fade-left.visible {
    opacity: 1;
    transform: translate(0, 0);
}

.d2 { transition-delay: 0.15s; }
.d3 { transition-delay: 0.30s; }
.d4 { transition-delay: 0.45s; }
.d5 { transition-delay: 0.60s; }

/* --- Clip-path Reveal (text slides up from beneath a mask) --- */
.clip-reveal {
    overflow: hidden;
    display: block;
}
.clip-reveal .inner {
    display: block;
    transform: translateY(105%);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.6s ease;
}
.clip-reveal.visible .inner {
    transform: translateY(0);
    opacity: 1;
}

/* --- Char-by-char reveal (applied by JS splitting) --- */
.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.char.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Scale in (for boxes / image) --- */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1200px) {
    .hero-body {
        gap: 3rem;
    }

    .split-section {
        gap: 4rem;
    }
}

@media (max-width: 900px) {
    .big-label {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }

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

    .split-section {
        gap: 3rem;
    }

    .split-section .split-a,
    .split-section .split-b,
    .split-section .split-c {
        max-width: 100%;
        flex: 1;
    }

    .hero-body {
        gap: 2rem;
    }

    .hero-right {
        flex-direction: row;
        gap: 1.5rem;
    }

    .stat-card h3 {
        font-size: clamp(1.5rem, 3vw, 2.5rem);
    }

    .profile-img-wrap {
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 100px 4% 60px;
    }

    .big-label {
        font-size: clamp(2rem, 4.5vw, 3.5rem);
    }

    .hero-name {
        font-size: clamp(2.5rem, 5.5vw, 5rem);
    }

    .split-section {
        gap: 2.5rem;
    }

    .hero-body {
        gap: 1.5rem;
    }

    .hero-right {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .tag-row {
        gap: 8px;
    }

    .tag-row span {
        font-size: 0.65rem;
        padding: 6px 14px;
    }

    .feat-list,
    .steps-list {
        gap: 1.5rem;
        text-align: left;
    }

    .contact-links {
        gap: 1rem;
        align-items: center;
    }

    .profile-img-wrap {
        max-width: 240px;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }

    .nav-inner {
        justify-content: center;
    }

    .section {
        padding: 80px 4% 50px;
        min-height: auto;
        text-align: center;
    }

    .split-section {
        gap: 2rem;
        flex-direction: column !important;
        text-align: center;
    }

    .split-section .split-a,
    .split-section .split-b,
    .split-section .split-c {
        max-width: 100%;
    }

    .hero-body {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        text-align: center;
    }

    .hero-right {
        flex-direction: column;
        gap: 1.5rem;
    }

    .big-label {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .hero-name {
        font-size: clamp(2rem, 9vw, 4rem);
    }

    .greeting {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }

    .hero-role {
        font-size: 0.7rem;
    }

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

    .lead-line {
        font-size: clamp(1rem, 3vw, 1.3rem);
    }

    .body-copy {
        font-size: 0.9rem;
    }

    .stat-card h3 {
        font-size: clamp(1.2rem, 4vw, 2rem);
    }

    .stat-card p {
        font-size: 0.6rem;
    }

    .feat-list h4,
    .steps-list h4 {
        font-size: 0.9rem;
    }

    .feat-list p,
    .steps-list p {
        font-size: 0.85rem;
    }

    .step-num {
        font-size: 1.8rem;
    }

    .proj-num {
        font-size: 3rem;
        margin-bottom: 15px;
    }

    .tag-row span {
        font-size: 0.6rem;
        padding: 5px 12px;
    }

    .profile-img-wrap {
        max-width: 200px;
    }

    .c-link {
        font-size: 0.95rem;
    }
}

@media (max-width: 400px) {
    .section {
        padding: 60px 3% 40px;
    }

    .big-label {
        font-size: clamp(1.2rem, 7vw, 2rem);
    }

    .hero-name {
        font-size: clamp(1.5rem, 10vw, 3rem);
    }

    .hero-right {
        gap: 1rem;
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }

    .profile-img-wrap {
        max-width: 180px;
    }
}