/* ========================================
   The White Page — Stylesheet
   Monochrome, modern, responsive
   ======================================== */

/* --- Font Embedding --- */
@font-face {
    font-family: 'Proxima Nova';
    src: url('../fonts/ProximaNovaLight.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* --- Custom Properties --- */
:root {
    --black: #0a0a0a;
    --dark: #1a1a1a;
    --gray-900: #222;
    --gray-800: #333;
    --gray-700: #555;
    --gray-600: #777;
    --gray-500: #999;
    --gray-400: #bbb;
    --gray-300: #d4d4d4;
    --gray-200: #e5e5e5;
    --gray-100: #f0f0f0;
    --light: #f7f7f7;
    --white: #fafafa;
    --pure-white: #fff;

    --font-body: 'Proxima Nova', -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-logo: 'Caveat', cursive;

    --transition: 0.3s ease;
    --transition-slow: 0.6s ease;
}

/* --- Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--dark);
    background: var(--pure-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
}

/* --- Selection --- */
::selection {
    background: var(--dark);
    color: var(--white);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-600);
}

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--dark);
    color: var(--pure-white);
    font-size: 0.875rem;
    border-radius: 0 0 4px 4px;
    z-index: 9999;
    transition: top var(--transition);
}

.skip-link:focus {
    top: 0;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Header / Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: padding var(--transition), background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
    background: var(--pure-white);
    padding: 1rem 0;
    box-shadow: 0 1px 0 var(--gray-200);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    font-family: var(--font-logo);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pure-white);
    letter-spacing: 0.01em;
    transition: color var(--transition);
    z-index: 1001;
}

.header.scrolled .nav__logo {
    color: var(--dark);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1001;
}

.nav__toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--pure-white);
    transition: all var(--transition);
    transform-origin: center;
}

.header.scrolled .nav__toggle span {
    background: var(--dark);
}

.nav__toggle.active span {
    background: var(--pure-white);
}

.nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4.5px, 4.5px);
}

.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4.5px, -4.5px);
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav__link {
    font-size: 0.85rem;
    color: var(--gray-400);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color var(--transition);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width var(--transition);
}

.nav__link:hover,
.nav__link.active {
    color: var(--pure-white);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.header.scrolled .nav__link {
    color: var(--gray-600);
}

.header.scrolled .nav__link:hover,
.header.scrolled .nav__link.active {
    color: var(--dark);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--black);
    color: var(--pure-white);
    text-align: center;
    padding: 6rem 2rem 4rem;
}

.hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__title {
    font-family: var(--font-logo);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

.hero__subtitle {
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    color: var(--gray-500);
    line-height: 1.7;
    max-width: 480px;
    font-weight: 300;
}

.hero__scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-600);
    transition: color var(--transition);
}

.hero__scroll:hover {
    color: var(--gray-400);
}

.hero__scroll-text {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    position: relative;
    overflow: hidden;
    background: var(--gray-800);
}

.hero__scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gray-500);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
    0% {
        top: -100%;
    }
    100% {
        top: 100%;
    }
}

/* --- Sections --- */
.section {
    padding: 7rem 0;
}

.section--light {
    background: var(--pure-white);
}

.section--alt {
    background: var(--light);
}

.section--dark {
    background: var(--black);
    color: var(--pure-white);
}

.section__label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.section--dark .section__label {
    color: var(--gray-600);
}

.section__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 3.5rem;
}

.section__note {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 3rem;
    margin-top: -2rem;
}

.section--dark .section__title {
    color: var(--pure-white);
}

/* --- About --- */
.about {
    display: grid;
    gap: 4rem;
}

.about__text {
    max-width: 640px;
}

.about__text p {
    font-size: 1.05rem;
    color: var(--gray-700);
    margin-bottom: 1.25rem;
}

.about__text p:last-child {
    margin-bottom: 0;
}

.about__values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value {
    padding: 2rem 0;
    border-top: 1px solid var(--gray-200);
}

.value__icon {
    width: 24px;
    height: 24px;
    color: var(--gray-700);
    margin-bottom: 1.25rem;
}

.value h3 {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.value p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* --- Services --- */
.services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service {
    padding: 2.5rem;
    border: 1px solid var(--gray-200);
    background: var(--pure-white);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.service:hover {
    border-color: var(--gray-400);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.service__icon {
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.service h3 {
    font-size: 1.05rem;
    font-weight: 300;
    letter-spacing: 0.01em;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.service p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.65;
}

/* --- Portfolio --- */
.portfolio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project {
    display: flex;
    flex-direction: column;
}

.project__image {
    position: relative;
    width: 100%;
    padding-top: 66%;
    overflow: hidden;
    cursor: pointer;
    border: none;
    display: block;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

.project__mockup {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.project__image--1 {
    background: linear-gradient(160deg, #0a0a0a 0%, #2a2a2a 100%);
}

.project__image--2 {
    background: linear-gradient(200deg, #1a1a1a 0%, #444 100%);
}

.project__image--3 {
    background: linear-gradient(120deg, #333 0%, #777 100%);
}

.project__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity var(--transition);
}

.project__image:hover .project__overlay {
    opacity: 1;
}

.project__overlay span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--pure-white);
    padding: 0.5rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.project__info {
    padding: 1.5rem 0;
}

.project__info h3 {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.project__info p {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project__tags li {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--gray-200);
}

/* --- Contact --- */
.contact {
    max-width: 620px;
}

.contact__text {
    font-size: 1.1rem;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* --- Form --- */
.form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.form__group--full {
    grid-column: 1 / -1;
}

.form__label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray-500);
    margin-bottom: 0.6rem;
}

.form__input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: transparent;
    border: 1px solid var(--gray-800);
    color: var(--pure-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    transition: border-color var(--transition);
    outline: none;
    -webkit-appearance: none;
    border-radius: 0;
}

.form__input::placeholder {
    color: var(--gray-700);
}

.form__input:focus {
    border-color: var(--gray-400);
}

.form__input:invalid:not(:placeholder-shown) {
    border-color: #7a3030;
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form__submit {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    background: var(--pure-white);
    color: var(--black);
    border: none;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), opacity var(--transition);
    justify-self: start;
}

.form__submit:hover {
    background: var(--gray-200);
}

.form__submit:active {
    opacity: 0.8;
}

.form__submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form__submit-icon {
    transition: transform var(--transition);
}

.form__submit:hover .form__submit-icon {
    transform: translateX(3px);
}

.form__status {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    line-height: 1.6;
    min-height: 1.4em;
}

.form__status--success {
    color: var(--gray-300);
}

.form__status--error {
    color: #b05050;
}

.contact__links {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
}

.contact__item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-400);
    font-size: 0.95rem;
    transition: color var(--transition);
}

.contact__item:hover {
    color: var(--pure-white);
}

.contact__item svg {
    flex-shrink: 0;
}

/* --- Business Card --- */
.contact__card {
    margin-top: 2.5rem;
    padding: 2rem;
    border: 1px solid var(--gray-800);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    max-width: 320px;
}

.contact__card-name {
    font-family: var(--font-logo);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--pure-white);
}

.contact__card-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.contact__card-line {
    font-size: 0.8rem;
    color: var(--gray-600);
}

/* --- Pricing Note (Contact) --- */
.contact__pricing {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--gray-800);
    margin-bottom: 2.5rem;
}

.contact__pricing svg {
    flex-shrink: 0;
    color: var(--gray-500);
    margin-top: 0.15rem;
}

.contact__pricing p {
    font-size: 0.85rem;
    color: var(--gray-400);
    line-height: 1.6;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.5rem;
    transition: color var(--transition);
    z-index: 2001;
}

.lightbox__close:hover {
    color: var(--pure-white);
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 1px solid var(--gray-700);
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.75rem;
    transition: color var(--transition), border-color var(--transition);
    z-index: 2001;
}

.lightbox__nav:hover {
    color: var(--pure-white);
    border-color: var(--gray-400);
}

.lightbox__nav--prev {
    left: 1.5rem;
}

.lightbox__nav--next {
    right: 1.5rem;
}

.lightbox__content {
    max-width: 860px;
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.lightbox__content svg {
    width: 100%;
    height: auto;
    display: block;
}

.lightbox__caption {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--gray-400);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* --- Footer --- */
.footer {
    background: #050505;
    color: var(--gray-600);
    padding: 2.5rem 0;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__logo {
    font-family: var(--font-logo);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-500);
}

.footer__copy {
    font-size: 0.75rem;
    letter-spacing: 0.03em;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.about__values .reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.about__values .reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.services .reveal:nth-child(2) {
    transition-delay: 0.08s;
}

.services .reveal:nth-child(3) {
    transition-delay: 0.16s;
}

.services .reveal:nth-child(4) {
    transition-delay: 0.24s;
}

.portfolio .reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.portfolio .reveal:nth-child(3) {
    transition-delay: 0.2s;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero__scroll-line::after {
        animation: none;
    }
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 960px) {
    .portfolio {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio .project:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }

    .nav__list {
        position: fixed;
        inset: 0;
        background: var(--black);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--transition), visibility var(--transition);
    }

    .nav__list.active {
        opacity: 1;
        visibility: visible;
    }

    .nav__list .nav__link {
        font-size: 1.25rem;
        color: var(--gray-400);
    }

    .nav__list .nav__link:hover,
    .nav__list .nav__link.active {
        color: var(--pure-white);
    }

    .section {
        padding: 5rem 0;
    }

    .section__title {
        margin-bottom: 2.5rem;
    }

    .about__values {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .services {
        grid-template-columns: 1fr;
    }

    .portfolio {
        grid-template-columns: 1fr;
    }

    .portfolio .project:last-child {
        grid-column: auto;
        max-width: 100%;
    }

    .form {
        grid-template-columns: 1fr;
    }

    .lightbox__nav--prev {
        left: 0.75rem;
    }

    .lightbox__nav--next {
        right: 0.75rem;
    }

    .footer__inner {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero {
        padding: 5rem 1.25rem 3rem;
    }

    .section {
        padding: 4rem 0;
    }

    .service {
        padding: 1.75rem;
    }

    .hero__scroll {
        bottom: 1.5rem;
    }
}
