/* ============================================
   SMARTSCALE PORTFOLIO — v2
   Bold. Editorial. No bullshit.
   ============================================ */

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

:root {
    --bg: #0e0e0e;
    --bg-card: #161616;
    --text: #f2ede7;
    --text-dim: rgba(242, 237, 231, 0.50);
    --text-muted: rgba(242, 237, 231, 0.25);
    --accent: #c9b896;
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.15);

    --ff: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    --ff-display: 'Space Grotesk', 'Inter', -apple-system, sans-serif;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --header-h: 64px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-width: thin;
    scrollbar-color: var(--text-muted) transparent;
}

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

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

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

ul,
li {
    list-style: none;
}

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

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

.container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 64px);
}

/* Tags & Labels */
.section-tag {
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-dim);
    margin-bottom: 24px;
}

.section-headline {
    font-family: var(--ff-display);
    font-size: clamp(3rem, 8vw, 7.5rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 0.92;
    color: var(--text);
    margin-bottom: clamp(40px, 6vh, 72px);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.section-headline.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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


/* ============================================
   3D CANVAS
   ============================================ */
#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}


/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    padding: 0 clamp(20px, 5vw, 64px);
    transition: background 0.4s, backdrop-filter 0.4s;
}

.logo {
    font-family: var(--ff-display);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.6;
}

.header-center {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

.menu-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.menu-btn-lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.menu-btn-lines span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--text);
    transition: transform 0.3s var(--ease);
}

.menu-btn:hover .menu-btn-lines span:first-child {
    transform: translateX(4px);
}

.menu-btn:hover .menu-btn-lines span:last-child {
    transform: translateX(-4px);
}

.menu-btn-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
}


/* ============================================
   MENU OVERLAY
   ============================================ */
.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(8, 8, 8, 0.97);
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.menu-inner {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 64px);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 80px;
}

.menu-nav {
    display: flex;
    flex-direction: column;
}

.menu-link {
    font-family: var(--ff-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--text);
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.5s var(--ease), opacity 0.5s, color 0.3s;
    padding: 4px 0;
}

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

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

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

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

.menu-overlay.open .menu-link:nth-child(4) {
    transition-delay: 0.20s;
}

.menu-overlay.open .menu-link:nth-child(5) {
    transition-delay: 0.24s;
}

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

.menu-meta {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-bottom: 8px;
}

.menu-meta-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-meta-links a {
    font-size: 0.85rem;
    color: var(--text-dim);
    transition: color 0.3s;
}

.menu-meta-links a:hover {
    color: var(--text);
}

.menu-meta-contact .label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.menu-meta-contact a {
    font-size: 0.85rem;
    color: var(--text-dim);
    transition: color 0.3s;
}

.menu-meta-contact a:hover {
    color: var(--text);
}

.menu-close {
    position: absolute;
    top: 20px;
    right: clamp(20px, 5vw, 64px);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: opacity 0.3s;
}

.menu-close:hover {
    opacity: 0.5;
}


/* ============================================
   HERO
   ============================================ */
.s-hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-end;
    padding-bottom: clamp(48px, 8vh, 100px);
    padding-top: var(--header-h);
}

.hero-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-dim);
    margin-bottom: clamp(20px, 4vh, 40px);
}

.hero-name {
    font-family: var(--ff-display);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 0.88;
    margin-bottom: clamp(20px, 3vh, 36px);
}

.reveal-line {
    display: block;
    overflow: hidden;
}

.reveal-word {
    display: inline-block;
    font-size: clamp(5rem, 15vw, 16rem);
    transform: translateY(105%);
    animation: revUp 1s var(--ease) forwards;
}

.reveal-line:nth-child(2) .reveal-word {
    animation-delay: 0.12s;
}

@keyframes revUp {
    to {
        transform: translateY(0);
    }
}

.hero-info {
    display: flex;
    gap: clamp(16px, 3vw, 36px);
    align-items: baseline;
    font-size: clamp(0.85rem, 1.2vw, 1.05rem);
    color: var(--text-dim);
    margin-bottom: clamp(48px, 8vh, 96px);
}

.hero-info .accent {
    font-weight: 600;
    font-size: clamp(0.9rem, 1.3vw, 1.1rem);
}

.hero-services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(16px, 3vw, 40px);
    width: 100%;
}

.service-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    transition: border-color 0.4s;
}

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

.srv-no {
    font-size: 0.65rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    font-family: var(--ff);
}

.srv-title {
    font-family: var(--ff-display);
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.05em;
}

@media (max-width: 900px) {
    .hero-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 500px) {
    .hero-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ============================================
   ABOUT
   ============================================ */
.s-about {
    position: relative;
    z-index: 1;
    padding: clamp(80px, 14vh, 180px) 0;
}

.about-grid {
    display: flex;
    gap: clamp(40px, 6vw, 120px);
}

.about-left {
    min-width: 140px;
}

.about-right {
    max-width: 720px;
}

.big-statement {
    font-family: var(--ff-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin-bottom: clamp(20px, 3vh, 36px);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.big-statement.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-text {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: var(--text-dim);
    line-height: 1.8;
    font-weight: 350;
    max-width: 560px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s var(--ease) 0.15s, transform 0.6s var(--ease) 0.15s;
}

.about-text.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================
   REEL / SHOWCASE
   ============================================ */
.s-reel {
    position: relative;
    z-index: 1;
    padding: clamp(40px, 6vh, 80px) 0 clamp(80px, 14vh, 180px);
}

.reel-header {
    margin-bottom: clamp(32px, 5vh, 56px);
}

.reel-title {
    font-family: var(--ff-display);
    font-size: clamp(3.5rem, 9vw, 9rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 0.9;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reel-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.reel-sub {
    font-size: 0.85rem;
    color: var(--text-dim);
    letter-spacing: 0.02em;
}

.reel-placeholder {
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease) 0.1s, transform 0.7s var(--ease) 0.1s;
}

.reel-placeholder.visible {
    opacity: 1;
    transform: translateY(0);
}

.reel-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: border-color 0.4s, background 0.4s;
}

.reel-box:hover {
    border-color: var(--border-hover);
    background: #1a1a1a;
}

.play-icon {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    transition: color 0.3s, transform 0.4s var(--ease);
}

.reel-box:hover .play-icon {
    color: var(--accent);
    transform: scale(1.1);
}

.reel-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}


/* ============================================
   WORK
   ============================================ */
.s-work {
    position: relative;
    z-index: 1;
    padding: clamp(80px, 14vh, 180px) 0;
}

.work-top {
    margin-bottom: clamp(40px, 6vh, 72px);
}

.work-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.work-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

.work-card-media {
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
}

.work-card-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    transition: border-color 0.4s, transform 0.5s var(--ease);
}

.work-card:hover .work-card-placeholder {
    border-color: var(--border-hover);
    transform: scale(1.02);
}

.work-card-title {
    font-family: var(--ff-display);
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
    transition: color 0.3s;
}

.work-card:hover .work-card-title {
    color: var(--accent);
}

.work-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}


/* ============================================
   SERVICES
   ============================================ */
.s-services {
    position: relative;
    z-index: 1;
    padding: clamp(80px, 14vh, 180px) 0;
}

.services-list {
    display: flex;
    flex-direction: column;
}

.service-row {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 40px);
    padding: clamp(24px, 3.5vh, 40px) 0;
    border-bottom: 1px solid var(--border);
    cursor: default;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.service-row.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-row:first-child {
    border-top: 1px solid var(--border);
}

.service-row:hover {
    border-color: var(--border-hover);
}

.service-num {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    min-width: 32px;
}

.service-name {
    font-family: var(--ff-display);
    font-size: clamp(1.5rem, 3vw, 2.8rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    flex: 0 0 auto;
    min-width: clamp(200px, 30vw, 360px);
    transition: color 0.3s;
}

.service-row:hover .service-name {
    color: var(--accent);
}

.service-desc {
    font-size: clamp(0.78rem, 1vw, 0.9rem);
    color: var(--text-muted);
    flex: 1;
    letter-spacing: 0.02em;
}

.service-arrow {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: transform 0.4s var(--ease), color 0.3s;
}

.service-row:hover .service-arrow {
    transform: translateX(8px);
    color: var(--accent);
}


/* ============================================
   GALLERY
   ============================================ */
.s-gallery {
    position: relative;
    z-index: 1;
    padding: clamp(80px, 14vh, 180px) 0;
}

.gallery-header {
    margin-bottom: clamp(40px, 6vh, 72px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gallery-item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item--wide {
    grid-column: span 2;
}

.gallery-item--tall {
    grid-row: span 2;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    transition: border-color 0.4s, transform 0.5s var(--ease);
    overflow: hidden;
}

.gallery-item:hover .gallery-placeholder {
    border-color: var(--border-hover);
    transform: scale(1.01);
}


/* ============================================
   CONTACT
   ============================================ */
.s-contact {
    position: relative;
    z-index: 1;
    padding: clamp(80px, 14vh, 180px) 0;
}

.contact-layout {
    display: flex;
    gap: clamp(40px, 6vw, 120px);
}

.contact-left {
    min-width: 140px;
}

.contact-right {
    flex: 1;
}

.contact-big {
    font-family: var(--ff-display);
    font-size: clamp(3.5rem, 9vw, 9rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 0.9;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.contact-big.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-sub {
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    color: var(--text-dim);
    margin-bottom: clamp(40px, 6vh, 64px);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s var(--ease) 0.1s, transform 0.6s var(--ease) 0.1s;
}

.contact-sub.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s var(--ease) 0.2s, transform 0.6s var(--ease) 0.2s;
}

.contact-links.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.3s;
}

.contact-item:first-child {
    border-top: 1px solid var(--border);
}

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

.contact-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

.contact-val {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    transition: color 0.3s;
}

a.contact-item:hover .contact-val {
    color: var(--accent);
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    z-index: 1;
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-left {
    display: flex;
    gap: 10px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.footer-right {
    display: flex;
    gap: 20px;
}

.footer-right a {
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.03em;
    transition: color 0.3s;
}

.footer-right a:hover {
    color: var(--text);
}


/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page {
    position: relative;
    z-index: 1;
    padding-top: calc(var(--header-h) + 60px);
    padding-bottom: 100px;
    min-height: 100vh;
}

.legal-page h1 {
    font-family: var(--ff-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 48px;
}

.legal-page h2 {
    font-family: var(--ff-display);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text);
}

.legal-page h3 {
    font-family: var(--ff-display);
    font-size: 1rem;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 10px;
    color: var(--text);
}

.legal-page p {
    font-size: 0.92rem;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 16px;
    max-width: 720px;
}

.legal-page a {
    color: var(--accent);
    transition: opacity 0.3s;
}

.legal-page a:hover {
    opacity: 0.7;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    transition: color 0.3s;
}

.legal-back:hover {
    color: var(--text);
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {

    .about-grid,
    .contact-layout {
        flex-direction: column;
        gap: 24px;
    }

    .work-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .service-row {
        flex-wrap: wrap;
    }

    .service-name {
        min-width: unset;
    }

    .service-desc {
        flex-basis: 100%;
        padding-left: 32px;
        margin-top: -4px;
    }

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

    .gallery-item--wide {
        grid-column: span 2;
    }

    .gallery-item--tall {
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 52px;
    }

    .header-center {
        display: none;
    }

    .hero-name .reveal-word {
        font-size: clamp(3.5rem, 16vw, 6rem);
    }



    .menu-inner {
        flex-direction: column;
        gap: 40px;
        align-items: flex-start;
    }

    .menu-link {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .work-list {
        grid-template-columns: 1fr;
    }

    .service-name {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }

    .service-desc {
        padding-left: 32px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .gallery-item--wide {
        grid-column: span 2;
    }

    .gallery-placeholder {
        min-height: 160px;
    }

    .contact-big {
        font-size: clamp(2.8rem, 12vw, 5rem);
    }

    .section-headline {
        font-size: clamp(2.5rem, 11vw, 5rem);
    }

    .reel-title {
        font-size: clamp(2.8rem, 13vw, 5rem);
    }
}

@media (max-width: 480px) {
    .hero-name .reveal-word {
        font-size: clamp(2.8rem, 17vw, 4.5rem);
    }

    .hero-info {
        flex-direction: column;
        gap: 4px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item--wide {
        grid-column: span 1;
    }
}