/* ==========================================================================
   Penny Page — Web Design Agency
   Style System
   ========================================================================== */

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

:root {
    /* Colors */
    --bg: #0A0A0F;
    --bg-elevated: #12121A;
    --bg-card: #16161F;
    --bg-card-hover: #1C1C28;
    --surface: #1E1E2A;
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);

    --text-primary: #F5F5F7;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;

    --accent: #C8FF00;
    --accent-dim: rgba(200, 255, 0, 0.1);
    --accent-glow: rgba(200, 255, 0, 0.15);
    --accent-secondary: #7C3AED;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Noto Sans KR', 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --section-pad: clamp(80px, 12vw, 160px);
    --container: 1280px;

    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

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

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

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

button, input, select, textarea {
    font-family: inherit;
}

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

::selection {
    background: var(--accent);
    color: var(--bg);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
}

/* ---------- Loader ---------- */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease-out-expo),
                visibility 0.6s;
}

.loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    text-align: center;
}

.loader-logo {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 32px;
    letter-spacing: -2px;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 16px;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s var(--ease-out-quart);
}

.loader-text {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ---------- Navigation ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.4s var(--ease-out-expo);
}

.header.scrolled {
    padding: 16px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.logo-mark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    color: var(--accent);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--accent);
    border-radius: 10px;
    letter-spacing: -1px;
}

.logo-text {
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    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-expo);
}

.nav-link:hover {
    color: var(--text-primary);
}

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

.nav-link.active {
    color: var(--text-primary);
}

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

.nav-link--cta {
    color: var(--bg);
    background: var(--accent);
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600;
    transition: transform 0.3s var(--ease-out-expo),
                box-shadow 0.3s;
}

.nav-link--cta::after {
    display: none;
}

.nav-link--cta:hover {
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 8px;
    z-index: 1001;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s var(--ease-out-expo);
    transform-origin: center;
}

.nav-toggle.active span:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

.nav-toggle.active span:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
}

.mobile-link {
    font-family: var(--font-body);
    font-size: clamp(28px, 7vw, 48px);
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s, transform 0.5s var(--ease-out-expo), opacity 0.5s;
    transform: translateY(30px);
    opacity: 0;
}

.mobile-menu.active .mobile-link {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }

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

.mobile-menu-footer {
    position: absolute;
    bottom: 40px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
}

.hero-gradient {
    position: absolute;
    top: -30%;
    right: -20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, var(--accent-dim) 0%, transparent 60%);
    filter: blur(120px);
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
    display: flex;
    flex-direction: column;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeIn 0.8s var(--ease-out-expo) 1.2s forwards;
}

.eyebrow-line {
    width: 40px;
    height: 1px;
    background: var(--accent);
}

.eyebrow-text {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    margin-bottom: 32px;
}

.title-line {
    display: block;
    font-family: var(--font-body);
    font-size: clamp(32px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -2px;
    overflow: hidden;
}

.title-line--accent {
    color: var(--accent);
}

.title-dot {
    color: var(--accent);
}

/* Split text animation — controlled by JS */
.title-line .char {
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out-expo) 2.2s forwards;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out-expo) 2.4s forwards;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

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

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--accent-glow);
}

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

.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

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

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

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

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeIn 0.8s var(--ease-out-expo) 2.8s forwards;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.6); }
}

.hero-scroll-indicator span {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    opacity: 0;
    animation: fadeIn 0.8s var(--ease-out-expo) 2.6s forwards;
}

.stat {
    text-align: left;
}

.stat-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ---------- Marquee ---------- */
.marquee-section {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.marquee {
    overflow: hidden;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 40px;
    white-space: nowrap;
    animation: marqueeScroll 25s linear infinite;
    width: max-content;
}

.marquee-track span {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 3px;
}

.marquee-dot {
    color: var(--accent) !important;
    font-size: 8px !important;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- Section Shared ---------- */
.section {
    padding: var(--section-pad) 0;
    position: relative;
}

.section-header {
    margin-bottom: clamp(48px, 6vw, 80px);
}

.section-number {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-body);
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
}

/* ---------- Portfolio Grid ---------- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.portfolio-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.5s var(--ease-out-expo);
}

.portfolio-card:hover {
    border-color: var(--border-light);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.portfolio-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.portfolio-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.portfolio-card:hover .portfolio-thumbnail img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-expo);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-view {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    padding: 12px 28px;
    border: 1.5px solid var(--accent);
    border-radius: 100px;
    transition: all 0.3s;
}

.portfolio-card:hover .portfolio-view {
    background: var(--accent);
    color: var(--bg);
}

.portfolio-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.portfolio-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 1px;
}

.portfolio-year {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.portfolio-title {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.portfolio-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- Services ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: 20px;
    overflow: hidden;
}

.service-card {
    background: var(--bg-card);
    padding: 40px 32px;
    position: relative;
    transition: background 0.4s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    background: var(--bg-card-hover);
}

.service-icon {
    color: var(--accent);
    margin-bottom: 24px;
}

.service-number {
    font-family: var(--font-mono);
    font-size: 64px;
    font-weight: 700;
    color: var(--surface);
    position: absolute;
    top: 20px;
    right: 20px;
    line-height: 1;
    transition: color 0.4s;
}

.service-card:hover .service-number {
    color: var(--accent-dim);
}

.service-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.service-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.service-list li {
    font-size: 13px;
    color: var(--text-muted);
    padding-left: 16px;
    position: relative;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

.service-price {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-label {
    font-size: 12px;
    color: var(--text-muted);
}

.price-value {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

/* ---------- About ---------- */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: start;
}

.about-left {
    position: sticky;
    top: 120px;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-lead {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 300;
    line-height: 1.5;
    color: var(--text-primary);
}

.about-lead em {
    font-style: italic;
    color: var(--accent);
}

.about-text p:not(.about-lead) {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.value {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.4s var(--ease-out-expo);
}

.value:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.value h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.value p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---------- Process ---------- */
.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.process-step {
    display: flex;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.process-step:last-child {
    border-bottom: none;
}

.step-number {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    width: 80px;
    height: 80px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg);
    position: relative;
    z-index: 1;
    transition: all 0.4s var(--ease-out-expo);
}

.process-step:hover .step-number {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

.step-content {
    flex: 1;
    padding-top: 16px;
}

.step-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.step-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
    max-width: 480px;
}

.step-duration {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 1px;
}

/* ---------- Tech Stack ---------- */
.tech {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.tech-header {
    text-align: center;
    margin-bottom: 32px;
}

.tech-header h3 {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 3px;
}

.tech-marquee {
    overflow: hidden;
}

.tech-track {
    display: flex;
    gap: 48px;
    white-space: nowrap;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
}

.tech-item {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: all 0.3s;
}

.tech-item:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ---------- Contact ---------- */
.contact {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: start;
}

.contact-title {
    font-family: var(--font-body);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.contact-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.3s;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2371717A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 48px;
    cursor: pointer;
}

.form-group select option {
    background: var(--bg);
    color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ---------- Footer ---------- */
.footer {
    padding: 60px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
}

.footer-tagline {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.footer-col a,
.footer-col span {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

.footer-credit {
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

.footer-business {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.8;
    text-align: center;
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll-triggered animation states */
[data-animate] {
    opacity: 0;
    transition: all 0.8s var(--ease-out-expo);
}

[data-animate="fade"] {
    opacity: 0;
}

[data-animate="fade-up"] {
    opacity: 0;
    transform: translateY(40px);
}

[data-animate="scale"] {
    opacity: 0;
    transform: scale(0.95);
}

[data-animate="reveal"] {
    opacity: 0;
    transform: translateY(20px);
}

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

/* Stagger children */
.services-grid [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.services-grid [data-animate]:nth-child(3) { transition-delay: 0.2s; }
.services-grid [data-animate]:nth-child(4) { transition-delay: 0.3s; }

.portfolio-grid [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.portfolio-grid [data-animate]:nth-child(3) { transition-delay: 0.2s; }
.portfolio-grid [data-animate]:nth-child(4) { transition-delay: 0.15s; }
.portfolio-grid [data-animate]:nth-child(5) { transition-delay: 0.25s; }

.process-step[data-animate]:nth-child(2) { transition-delay: 0.1s; }
.process-step[data-animate]:nth-child(3) { transition-delay: 0.2s; }
.process-step[data-animate]:nth-child(4) { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-left {
        position: static;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

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

    .nav-toggle {
        display: flex;
    }

    /* Hero mobile fixes */
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-content {
        padding-top: 20px;
    }

    .hero-eyebrow {
        margin-bottom: 20px;
    }

    .eyebrow-text {
        font-size: 11px;
        letter-spacing: 1.5px;
        white-space: nowrap;
    }

    .title-line {
        font-size: clamp(28px, 9vw, 48px);
        line-height: 1.15;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 32px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .hero-stats {
        gap: 28px;
        margin-top: 32px;
        padding-top: 24px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 11px;
    }

    /* Portfolio mobile */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    /* Services mobile */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* About mobile */
    .about-values {
        grid-template-columns: 1fr;
    }

    /* Process mobile */
    .process-timeline::before {
        display: none;
    }

    .process-step {
        flex-direction: column;
        gap: 20px;
    }

    .step-number {
        width: 60px;
        height: 60px;
    }

    /* Section titles mobile */
    .section-title {
        font-size: clamp(28px, 8vw, 48px);
    }

    .contact-title {
        font-size: clamp(28px, 8vw, 44px);
    }

    /* Footer mobile */
    .footer-top {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .marquee-track, .tech-track {
        animation: none;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
    }

    .title-line .char {
        opacity: 1;
        transform: none;
    }
}
