/* ========================================
   PROCEDURALABS — STYLES
   Linear / Grotesque / Futuristic
   Black & White Only
   ======================================== */

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

:root {
    --black: #050507;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f0f0f0;
    --gray-200: #e0e0e0;
    --gray-300: #c0c0c0;
    --gray-400: #a0a0a0;
    --gray-500: #808080;
    --gray-600: #606060;
    --gray-700: #404040;
    --gray-800: #2a2a2e;
    --gray-900: #1a1a1c;
    --gray-950: #0a0a0c;

    --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'Space Mono', monospace;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
}

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

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: var(--font);
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

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

button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-family: inherit;
}

/* --- Noise Texture Overlay --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

/* --- Cursor Glow --- */
.cursor-glow {
    position: fixed;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100, 200, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    display: none;
}

@media (hover: hover) {
    .cursor-glow {
        display: block;
    }
}

/* --- Grid Overlay --- */
.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 80px 80px;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 2rem;
    padding-top: calc(1.5rem + env(safe-area-inset-top, 0px));
    padding-left: calc(2rem + env(safe-area-inset-left, 0px));
    padding-right: calc(2rem + env(safe-area-inset-right, 0px));
    transition: all 0.4s var(--ease);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--black);
    z-index: -1;
}

.nav.scrolled {
    padding: 1rem 2rem;
    padding-top: calc(1rem + env(safe-area-inset-top, 0px));
    padding-left: calc(2rem + env(safe-area-inset-left, 0px));
    padding-right: calc(2rem + env(safe-area-inset-right, 0px));
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: opacity 0.4s var(--ease);
}

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

.nav-logo img {
    height: 22px;
    width: auto;
    display: block;
    transition: filter 0.4s var(--ease);
}

.nav-logo:hover img {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
}

.logo-mark {
    font-family: var(--mono);
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 700;
}

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

.nav-link {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray-500);
    transition: color 0.4s var(--ease);
    position: relative;
    font-family: var(--mono);
}

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

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

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

/* --- Dropdown --- */
.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -1rem;
    background: rgba(5, 5, 7, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s var(--ease);
    z-index: 1000;
    pointer-events: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-400);
    transition: all 0.3s var(--ease);
    border-left: 2px solid transparent;
}

.dropdown-link:hover,
.dropdown-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.03);
    border-left-color: var(--white);
    padding-left: 1.75rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--white);
    transition: all 0.3s var(--ease);
}

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

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

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    top: -100px;
    left: -100px;
    right: -100px;
    bottom: -100px;
    z-index: 99;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
    -webkit-overflow-scrolling: touch;
    overflow: hidden;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-link {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-400);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s var(--ease);
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: all 0.4s var(--ease);
    transform: translateX(-50%);
}

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

.mobile-menu.open .mobile-link:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu.open .mobile-link:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-menu.open .mobile-link:nth-child(3) {
    transition-delay: 0.2s;
}

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

.mobile-link:hover::after {
    width: 60%;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 2rem 4rem;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gray-600);
    margin-bottom: 3rem;
    font-family: var(--mono);
}

.label-line {
    width: 60px;
    height: 1px;
    background: var(--gray-500);
}

.hero-title {
    font-size: clamp(3rem, 9vw, 9rem);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.05em;
    margin-bottom: 3rem;
}

.title-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.15em;
    margin-bottom: -0.15em;
}

.title-line span {
    display: inline-block;
}

.title-accent {
    color: var(--gray-400);
    font-style: italic;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: clamp(1rem, 1.35vw, 1.1875rem);
    font-weight: 400;
    color: var(--gray-400);
    max-width: 500px;
    line-height: 1.8;
    margin-bottom: 3.5rem;
    letter-spacing: 0.01em;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1rem 2.25rem;
    border: 1px solid transparent;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    font-family: var(--mono);
}

.btn svg {
    transition: transform 0.4s var(--ease);
}

.btn:hover svg {
    transform: translate(2px, -2px);
}

.btn:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

.btn-primary {
    background: var(--white);
    color: var(--black);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: var(--gray-200);
    letter-spacing: 0.18em;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

.btn-ghost {
    color: var(--gray-400);
    border-color: var(--gray-800);
}

.btn-ghost:hover {
    color: var(--white);
    border-color: var(--gray-500);
    letter-spacing: 0.18em;
}

.btn-outline {
    color: var(--white);
    border-color: var(--gray-700);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

/* --- Scroll indicator --- */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.625rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gray-600);
    font-family: var(--mono);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: var(--gray-800);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gray-400);
    animation: scrollLine 2s var(--ease) infinite;
}

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

    100% {
        top: 100%;
    }
}

/* --- Ticker --- */
.ticker {
    border-top: 1px solid var(--gray-700);
    border-bottom: 1px solid var(--gray-700);
    padding: 2rem 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: tickerScroll 25s linear infinite;
}

.ticker:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    padding-right: 3.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-500);
    white-space: nowrap;
    font-family: var(--mono);
}

.ticker-dot {
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 0;
    background: var(--gray-600);
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- Sections --- */
.section-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.section-number {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--gray-600);
    letter-spacing: 0.15em;
    font-family: var(--mono);
    transition: color 0.4s var(--ease);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.section-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--gray-800), transparent);
}

/* --- Work / Projects --- */
.work {
    padding: 8rem 0;
    position: relative;
    z-index: 1;
}

.project {
    max-width: 1400px;
    margin: 0 auto 6rem;
    padding: 2rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), border-color 0.5s var(--ease), background 0.5s var(--ease);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 0;
    transition: all 0.5s var(--ease);
}

.project.visible {
    opacity: 1;
    transform: translateY(0);
}

.project:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-800);
}

.project-number {
    font-size: 0.6875rem;
    font-family: var(--mono);
    color: var(--gray-600);
    letter-spacing: 0.1em;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
}

.tag {
    font-size: 0.625rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--gray-800);
    color: var(--gray-500);
    font-family: var(--mono);
    transition: all 0.4s var(--ease);
}

.tag-soon {
    border-color: var(--gray-600);
    color: var(--white);
}

.project:hover .tag {
    border-color: var(--gray-700);
    color: var(--gray-400);
}

.project:hover .tag-soon {
    border-color: var(--gray-500);
    color: var(--white);
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.project-content-reverse {
    direction: rtl;
}

.project-content-reverse>* {
    direction: ltr;
}

.project-name {
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    margin-bottom: 1.25rem;
}

.project-desc {
    font-size: 1.0625rem;
    font-weight: 400;
    color: var(--gray-400);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 500px;
}

.project-link {
    display: flex;
    align-items: center;
}

.project-link .btn span {
    position: relative;
}

.project-link .btn span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.4s var(--ease);
}

.project-link .btn:hover span::after {
    width: 100%;
}

.coming-soon-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray-500);
    padding: 0.75rem 1.5rem;
    border: 1px dashed var(--gray-700);
    font-family: var(--mono);
    transition: all 0.4s var(--ease);
}

.project:hover .coming-soon-badge {
    border-color: var(--gray-500);
    color: var(--gray-400);
}

/* --- Phone Mockups --- */
.project-visual {
    display: flex;
    justify-content: center;
}

.project-mockup {
    position: relative;
}

.mockup-screenshot {
    width: 270px;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 60px rgba(255, 255, 255, 0.04));
    transition: filter 0.6s var(--ease), transform 0.6s var(--ease);
}

.project:hover .mockup-screenshot {
    filter: drop-shadow(0 0 80px rgba(255, 255, 255, 0.1));
    transform: translateY(-6px);
}

.project-mockup::before {
    content: '';
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    transition: opacity 0.5s var(--ease);
}

.project:hover .project-mockup::before {
    opacity: 1.5;
}

.mockup-phone {
    width: 270px;
    height: 540px;
    border: 1px solid var(--gray-600);
    border-radius: 4px;
    padding: 12px;
    background: var(--gray-950);
    position: relative;
    box-shadow: 0 0 80px rgba(255, 255, 255, 0.03), inset 0 0 30px rgba(255, 255, 255, 0.02);
    transition: border-color 0.6s var(--ease), box-shadow 0.6s var(--ease), transform 0.6s var(--ease);
}

.project:hover .mockup-phone {
    border-color: var(--gray-400);
    box-shadow: 0 0 100px rgba(255, 255, 255, 0.08), inset 0 0 30px rgba(255, 255, 255, 0.02);
    transform: translateY(-6px);
}

.mockup-phone::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gray-800);
    border-radius: 0;
    z-index: 2;
}

.mockup-screen {
    width: 100%;
    height: 100%;
    border-radius: 2px;
    background: var(--black);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.mockup-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px);
    pointer-events: none;
    z-index: 3;
    border-radius: 2px;
}

/* --- Orbit Mockup UI --- */
.orbit-ui {
    padding: 3rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.orbit-header {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    align-self: flex-start;
}

.orbit-ring {
    width: 120px;
    height: 120px;
    position: relative;
    margin-bottom: 1.5rem;
}

.orbit-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.orbit-progress {
    stroke-dashoffset: 327;
    animation: orbitFill 2s var(--ease) forwards;
    animation-delay: 0.5s;
}

@keyframes orbitFill {
    to {
        stroke-dashoffset: 57;
    }
}

.orbit-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.orbit-habits {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-top: auto;
}

.orbit-habit {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.75rem;
    color: var(--gray-500);
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-900);
    border-radius: 0;
}

.orbit-habit.done {
    color: var(--white);
    border-color: var(--gray-700);
}

.habit-check {
    font-size: 0.625rem;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-700);
    border-radius: 0;
}

.orbit-habit.done .habit-check {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.habit-check.empty {
    border-color: var(--gray-800);
}

/* --- Trace Mockup UI --- */
.trace-ui {
    padding: 3rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.trace-header {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    align-self: flex-start;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trace-header::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--white);
    animation: tracePulse 1.5s ease infinite;
}

@keyframes tracePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.trace-waveform {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100px;
    margin-bottom: 1.5rem;
}

.wave-bar {
    width: 3px;
    height: var(--h);
    background: var(--white);
    border-radius: 0;
    animation: waveAnim 1.2s ease-in-out infinite alternate;
}

.wave-bar:nth-child(odd) {
    animation-delay: 0.1s;
}

.wave-bar:nth-child(3n) {
    animation-delay: 0.3s;
}

.wave-bar:nth-child(4n) {
    animation-delay: 0.5s;
}

@keyframes waveAnim {
    0% {
        transform: scaleY(1);
    }

    100% {
        transform: scaleY(0.5);
    }
}

.trace-time {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    font-family: monospace;
}

.trace-transcript {
    width: 100%;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.transcript-line {
    font-size: 0.6875rem;
    color: var(--gray-400);
    padding: 0.5rem 0.75rem;
    border-left: 2px solid var(--gray-700);
    line-height: 1.5;
}

.transcript-line.faded {
    color: var(--gray-600);
    border-color: var(--gray-800);
}

/* --- Whisk Mockup UI --- */
.whisk-ui {
    padding: 3rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.whisk-header {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.whisk-recipe {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.whisk-image {
    width: 100%;
    height: 100px;
    border: 1px solid var(--gray-800);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-950);
}

.whisk-title {
    font-size: 1.125rem;
    font-weight: 500;
}

.whisk-details {
    font-size: 0.6875rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.05em;
}

.whisk-sep {
    color: var(--gray-700);
}

.whisk-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.whisk-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--gray-400);
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--gray-900);
    border-radius: 0;
}

.step-num {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    border: 1px solid var(--gray-700);
    border-radius: 0;
    color: var(--gray-500);
    flex-shrink: 0;
    font-family: var(--mono);
}

/* --- About --- */
.about {
    padding: 8rem 0;
    border-top: 1px solid var(--gray-800);
    position: relative;
    z-index: 1;
}

.about-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-lead {
    font-size: clamp(1.375rem, 2.75vw, 2.25rem);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    color: var(--white);
    letter-spacing: -0.02em;
}

.about-body {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--gray-400);
    line-height: 1.85;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-top: 0.5rem;
}

.stat {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease);
}

.stat.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    display: block;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-600);
    font-family: var(--mono);
}

/* --- Contact --- */
.contact {
    padding: 8rem 0;
    border-top: 1px solid var(--gray-800);
    position: relative;
    z-index: 1;
}

.contact-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.contact-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-text {
    font-size: clamp(1.0625rem, 1.75vw, 1.375rem);
    font-weight: 400;
    color: var(--gray-400);
    line-height: 1.75;
    max-width: 600px;
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 600px;
}

.contact-form-row {
    display: flex;
    gap: 0;
}

.contact-input,
.contact-textarea {
    width: 100%;
    padding: 1.125rem 1.5rem;
    border: 1px solid var(--gray-600);
    background: rgba(255, 255, 255, 0.05);
    font-family: var(--mono);
    font-size: 0.875rem;
    color: var(--white);
    outline: none;
    transition: all 0.35s var(--ease);
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

.contact-form-row .contact-input {
    flex: 1;
}

.contact-form-row .contact-input:first-child {
    border-right: none;
}

.contact-textarea {
    resize: vertical;
    min-height: 160px;
    border-top: none;
    line-height: 1.7;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
    color: var(--gray-500);
    transition: color 0.3s var(--ease);
}

.contact-input:hover,
.contact-textarea:hover {
    border-color: var(--gray-400);
    background: rgba(255, 255, 255, 0.07);
}

.contact-input:focus,
.contact-textarea:focus {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.contact-input:focus::placeholder,
.contact-textarea:focus::placeholder {
    color: var(--gray-400);
}

.contact-input.error,
.contact-textarea.error {
    border-color: #c0392b;
    animation: shake 0.4s ease;
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.125rem 2.5rem;
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--white);
    font-family: var(--mono);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

.contact-submit:hover {
    background: var(--gray-200);
    border-color: var(--gray-200);
    letter-spacing: 0.22em;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.contact-submit:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

.contact-submit:hover svg {
    transform: translate(3px, -3px);
}

.contact-submit svg {
    transition: transform 0.4s var(--ease);
}

.contact-submit:disabled {
    opacity: 0.5;
    cursor: default;
}

.contact-success {
    display: none;
    font-size: 0.9375rem;
    color: var(--white);
    font-weight: 500;
    margin-top: 1.5rem;
    letter-spacing: -0.01em;
    opacity: 0;
    transform: translateY(8px);
}

.contact-success.visible {
    display: block;
    animation: fadeUp 0.5s ease forwards;
}

/* --- Newsletter --- */
.newsletter {
    padding: 6rem 0;
    border-top: 1px solid var(--gray-800);
    position: relative;
    z-index: 1;
}

.newsletter-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.newsletter-label {
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gray-500);
    font-family: var(--mono);
    display: block;
    margin-bottom: 1.5rem;
}

.newsletter-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.newsletter-desc {
    font-size: 1rem;
    color: var(--gray-400);
    margin-bottom: 2.5rem;
    max-width: 440px;
    line-height: 1.75;
}

.newsletter-form {
    display: flex;
    max-width: 480px;
    gap: 0;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 1px solid var(--gray-800);
    border-right: none;
    background: transparent;
    font-family: var(--mono);
    font-size: 0.8125rem;
    color: var(--white);
    outline: none;
    transition: all 0.35s var(--ease);
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

.newsletter-input::placeholder {
    color: var(--gray-700);
    transition: color 0.3s var(--ease);
}

.newsletter-input:hover {
    border-color: var(--gray-600);
    background: rgba(255, 255, 255, 0.02);
}

.newsletter-input:focus {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.04);
}

.newsletter-input:focus::placeholder {
    color: var(--gray-600);
}

.newsletter-input.error {
    border-color: #c0392b;
    animation: shake 0.4s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-4px);
    }

    40% {
        transform: translateX(4px);
    }

    60% {
        transform: translateX(-3px);
    }

    80% {
        transform: translateX(3px);
    }
}

.newsletter-submit {
    padding: 1rem 1.75rem;
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--white);
    font-family: var(--mono);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.newsletter-submit:hover {
    background: var(--gray-200);
    border-color: var(--gray-200);
    letter-spacing: 0.22em;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.newsletter-submit:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

.newsletter-submit:disabled {
    opacity: 0.5;
    cursor: default;
}

.newsletter-success {
    display: none;
    font-size: 0.9375rem;
    color: var(--white);
    font-weight: 500;
    margin-top: 1.5rem;
    letter-spacing: -0.01em;
    opacity: 0;
    transform: translateY(8px);
}

.newsletter-success.visible {
    display: block;
    animation: fadeUp 0.5s ease forwards;
}

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

@media (max-width: 640px) {
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input {
        border-right: 1px solid var(--gray-800);
        border-bottom: none;
    }
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--gray-800);
    padding: 2rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-logo {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-logo img {
    height: 18px;
    width: auto;
    display: block;
    opacity: 0.7;
    transition: opacity 0.4s var(--ease);
}

.footer-logo:hover img {
    opacity: 1;
}

.footer-copy {
    font-size: 0.6875rem;
    color: var(--gray-600);
    font-family: var(--mono);
    letter-spacing: 0.05em;
}

.footer-right {
    display: flex;
    gap: 2rem;
}

.footer-link {
    font-size: 0.6875rem;
    color: var(--gray-500);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.4s var(--ease);
    font-family: var(--mono);
    font-weight: 600;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.4s var(--ease);
}

.footer-link:hover {
    color: var(--white);
}

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

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .project-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .project-content-reverse {
        direction: ltr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-stats {
        flex-direction: row;
        gap: 3rem;
    }
}

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

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: 100svh;
        padding: 7rem 1.25rem 3rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4.5rem);
    }

    .hero-sub {
        font-size: 0.875rem;
    }

    .hero-scroll {
        display: none;
    }

    .section-header {
        padding: 0 1.25rem;
    }

    .project {
        padding: 0 1.25rem;
        margin-bottom: 4rem;
    }

    .project-content {
        gap: 2rem;
    }

    .project-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .mockup-phone {
        width: 230px;
        height: 460px;
    }

    .mockup-screenshot {
        width: 230px;
    }

    .about-content {
        padding: 0 1.25rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-content {
        padding: 0 1.25rem;
    }

    .contact-form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-form-row .contact-input:first-child {
        border-right: 1px solid var(--gray-600);
        border-bottom: none;
    }

    .footer {
        padding: 2rem 1.25rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .footer-left {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .project-tags {
        flex-wrap: wrap;
    }

    .about-stats {
        gap: 1.5rem;
    }
}

/* --- Coordinate Marker --- */
.coord-marker {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    font-family: var(--mono);
    font-size: 0.5625rem;
    letter-spacing: 0.15em;
    color: var(--gray-700);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 1;
}

.coord-marker::before {
    content: '';
    width: 16px;
    height: 16px;
    border-left: 1px solid var(--gray-700);
    border-bottom: 1px solid var(--gray-700);
    margin-bottom: 0.5rem;
}

/* --- Section Divider --- */
.section-divider {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-divider .divider-line {
    flex: 1;
    height: 1px;
    background: var(--gray-800);
}

.section-divider .divider-label {
    font-family: var(--mono);
    font-size: 0.5625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-700);
}

/* --- Reveal animations --- */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease);
}

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

/* ========================================
   DISCIPLINE CARDS (Hub Page)
   ======================================== */

.disciplines {
    padding: 8rem 0;
    position: relative;
    z-index: 1;
}

.discipline-card {
    max-width: 1400px;
    margin: 0 auto 2rem;
    padding: 3.5rem 3rem;
    border: 1px solid var(--gray-800);
    border-radius: 0;
    background: transparent;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), border-color 0.5s var(--ease), background 0.5s var(--ease);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: start;
}

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

.discipline-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.discipline-card:hover {
    border-color: var(--gray-600);
    background: rgba(255, 255, 255, 0.02);
}

.discipline-card:hover::before {
    opacity: 0.4;
}

.discipline-number {
    font-size: 0.6875rem;
    font-family: var(--mono);
    color: var(--gray-600);
    letter-spacing: 0.15em;
    padding-top: 0.75rem;
    font-weight: 700;
}

.discipline-content {
    max-width: 800px;
}

.discipline-name {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    margin-bottom: 0.75rem;
    transition: color 0.3s var(--ease);
    line-height: 1;
}

.discipline-card:hover .discipline-name {
    color: var(--white);
}

.discipline-tagline {
    font-size: clamp(1rem, 1.3vw, 1.125rem);
    font-weight: 400;
    color: var(--gray-400);
    margin-bottom: 2rem;
    line-height: 1.75;
    max-width: 560px;
}

.discipline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 2.5rem;
}

.tech-tag {
    font-size: 0.625rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.4375rem 0.875rem;
    border: 1px solid var(--gray-800);
    color: var(--gray-500);
    transition: all 0.4s var(--ease);
    font-family: var(--mono);
}

.discipline-card:hover .tech-tag {
    border-color: var(--gray-600);
    color: var(--gray-300);
    background: rgba(255, 255, 255, 0.03);
}

.discipline-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray-500);
    transition: all 0.4s var(--ease);
    font-family: var(--mono);
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-900);
    margin-top: 0.5rem;
    position: relative;
}

.discipline-link span {
    position: relative;
}

.discipline-link span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.4s var(--ease);
}

.discipline-card:hover .discipline-link {
    color: var(--white);
}

.discipline-card:hover .discipline-link span::after {
    width: 100%;
}

.discipline-link svg {
    transition: transform 0.4s var(--ease);
}

.discipline-card:hover .discipline-link svg {
    transform: translate(3px, -3px);
}

/* ========================================
   SUB-PAGE HERO
   ======================================== */

.sub-hero {
    min-height: auto;
    padding: 10rem 2rem 4rem;
}

.sub-hero .hero-content {
    max-width: 1400px;
}

/* ========================================
   NAV ACTIVE STATE
   ======================================== */

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

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

/* ========================================
   PLACEHOLDER (Web/GameDev pages)
   ======================================== */

.placeholder-section {
    padding: 6rem 2rem 8rem;
    position: relative;
    z-index: 1;
}

.placeholder-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.placeholder-inner p {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 400;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* ========================================
   LEGAL PAGES
   ======================================== */

.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 10rem 2rem 6rem;
    position: relative;
    z-index: 1;
}

.legal-title {
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
}

.legal-date {
    font-size: 0.6875rem;
    color: var(--gray-600);
    letter-spacing: 0.15em;
    margin-bottom: 3rem;
    font-family: var(--mono);
    text-transform: uppercase;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.legal-content h3 {
    font-size: 1.125rem;
    font-weight: 500;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--gray-400);
    margin-bottom: 1.25rem;
}

.legal-content ul,
.legal-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--gray-400);
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    font-size: 0.9375rem;
}

.legal-content a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--gray-700);
}

.legal-content a:hover {
    text-decoration-color: var(--white);
}

/* ========================================
   FOOTER EXTENDED (Legal links)
   ======================================== */

.footer-links-group {
    display: flex;
    gap: 2rem;
}

.footer-separator {
    width: 1px;
    height: 14px;
    background: var(--gray-800);
    align-self: center;
}

/* ========================================
   RESPONSIVE — New Components
   ======================================== */

@media (max-width: 1024px) {
    .discipline-card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .discipline-card {
        padding: 2rem 1.25rem;
        margin-left: 1.25rem;
        margin-right: 1.25rem;
    }

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

    .sub-hero {
        padding: 8rem 1.25rem 3rem;
    }

    .legal-page {
        padding: 8rem 1.25rem 4rem;
    }

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

    .footer-links-group {
        gap: 1.5rem;
    }

    .footer-separator {
        display: none;
    }
}