/* ══════════════════════════════════════════════
   CanWork Studios — Style Sheet
   ══════════════════════════════════════════════ */

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

:root {
    --black: #111111;
    --surface: #111111;
    --border: #1e1e1e;
    --border2: #2a2a2a;
    --muted: #444444;
    --mid: #888888;
    --light: #c8c8c8;
    --white: #f0ede8;
    --amber: #e8a020;
    --amber-dim: #a06c10;
    --font-display: 'Barlow Condensed', sans-serif;
    --font-body: 'Barlow', sans-serif;
    --font-mono: 'DM Mono', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.65;
    overflow-x: hidden;
    cursor: none;
}

/* ── Custom cursor ── */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--amber);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, opacity 0.2s;
    transform: translate(-50%, -50%);
}

.cursor-ring {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(232, 160, 32, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.08s linear;
}

body:has(a:hover) .cursor {
    transform: translate(-50%, -50%) scale(2);
}

body:has(a:hover) .cursor-ring {
    width: 48px;
    height: 48px;
    border-color: rgba(232, 160, 32, 0.6);
}

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

/* ── Header ── */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 64px;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
}

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

nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

nav a {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mid);
    text-decoration: none;
    transition: color 0.2s;
}

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

.nav-cta {
    font-family: var(--font-mono) !important;
    font-size: 11px !important;
    color: var(--amber) !important;
    border: 1px solid var(--amber-dim) !important;
    padding: 8px 18px !important;
    transition: background 0.2s, color 0.2s !important;
}

.nav-cta:hover {
    background: var(--amber) !important;
    color: var(--black) !important;
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border);
    padding-top: 64px;
    opacity: 0;
    animation: fadeUp 0.9s 0.1s forwards;
}

.hero-left {
    padding: 100px 48px 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--border);
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 32px;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(72px, 9vw, 130px);
    line-height: 0.9;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--white);
}

.hero-title em {
    font-style: italic;
    font-weight: 300;
    color: var(--amber);
}

.hero-descriptor {
    margin-top: 48px;
    font-size: 15px;
    font-weight: 300;
    color: var(--mid);
    max-width: 420px;
    line-height: 1.8;
}

.hero-meta {
    display: flex;
    gap: 32px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

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

.hero-stat-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 28px;
    color: var(--white);
}

.hero-stat-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero-right {
    padding: 100px 48px 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.philosophy-block {
    position: relative;
    padding: 40px;
    border: 1px solid var(--border);
    background: var(--surface);
    margin-bottom: 32px;
}

.philosophy-block::before {
    content: '\201C';
    position: absolute;
    top: -20px;
    left: 32px;
    font-family: var(--font-display);
    font-size: 80px;
    font-weight: 900;
    color: var(--amber);
    line-height: 1;
}

.philosophy-text {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--light);
}

.philosophy-text strong {
    color: var(--white);
    font-weight: 500;
}

.hero-scroll {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero-scroll-line {
    width: 40px;
    height: 1px;
    background: var(--border2);
    position: relative;
    overflow: hidden;
}

.hero-scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--amber);
    animation: scanLine 2s 1s infinite;
}

/* ── Section common ── */
section {
    border-bottom: 1px solid var(--border);
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 24px;
    padding: 48px 48px 40px;
    border-bottom: 1px solid var(--border);
}

.section-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--amber);
    letter-spacing: 0.1em;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--mid);
}

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

.product-card {
    padding: 48px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}

.product-card:last-child {
    border-right: none;
}

.product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--amber);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    background: var(--surface);
}

.product-card:hover::after {
    transform: scaleX(1);
}

.product-index {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin-bottom: 40px;
}

.product-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 28px;
    opacity: 0.8;
}

.product-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 36px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}

.product-tagline {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 24px;
}

.product-desc {
    font-size: 13.5px;
    font-weight: 300;
    color: var(--mid);
    line-height: 1.75;
    flex: 1;
    margin-bottom: 40px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
}

.tag {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--border2);
    padding: 4px 10px;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
}

.product-link:hover {
    color: var(--amber);
}

.product-link svg {
    transition: transform 0.2s;
}

.product-link:hover svg {
    transform: translateX(4px);
}

.product-status {
    position: absolute;
    top: 48px;
    right: 48px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.status-live {
    color: #4caf50;
}

.status-open {
    color: var(--amber);
}

.status-free {
    color: #64b5f6;
}

/* ── Philosophy ── */
.philosophy-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
}

.philosophy-left {
    padding: 64px 48px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.philosophy-right {
    padding: 64px 64px 64px 64px;
}

.big-word {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(60px, 7vw, 100px);
    text-transform: uppercase;
    line-height: 0.9;
    color: var(--border2);
    letter-spacing: -0.02em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    align-self: flex-end;
}

.principles {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.principle {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 24px;
    align-items: start;
}

.principle:first-child {
    padding-top: 0;
}

.principle:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.principle-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--amber);
    padding-top: 4px;
}

.principle-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}

.principle-body {
    font-size: 13.5px;
    font-weight: 300;
    color: var(--mid);
    line-height: 1.75;
}

/* ── Studio ── */
.studio-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
}

.studio-left {
    padding: 64px 64px 64px 48px;
    border-right: 1px solid var(--border);
}

.studio-right {
    padding: 64px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.founder-block {
    padding: 32px;
    border: 1px solid var(--border);
    background: var(--surface);
    margin-bottom: 32px;
}

.founder-label {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 16px;
}

.founder-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 24px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.founder-role {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px;
}

.founder-bio {
    font-size: 13px;
    font-weight: 300;
    color: var(--mid);
    line-height: 1.75;
}

.stack-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.stack-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.stack-item:last-child {
    border-bottom: none;
}

.stack-item-key {
    color: var(--muted);
}

.stack-item-val {
    color: var(--light);
}

.studio-body {
    font-size: 15px;
    font-weight: 300;
    color: var(--mid);
    line-height: 1.85;
    max-width: 560px;
}

.studio-body p+p {
    margin-top: 20px;
}

.studio-body strong {
    color: var(--white);
    font-weight: 400;
}

/* ── Footer ── */
footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.footer-brand {
    padding: 48px;
    border-right: 1px solid var(--border);
}

.footer-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: 16px;
}

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

.footer-tagline {
    font-size: 12px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.7;
    max-width: 240px;
    margin-bottom: 32px;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.1em;
}

.footer-products {
    padding: 48px;
    border-right: 1px solid var(--border);
}

.footer-col-title {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 24px;
}

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

.footer-links a {
    font-size: 13px;
    font-weight: 300;
    color: var(--mid);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.footer-links a::before {
    content: '\2192';
    color: var(--border2);
    font-size: 11px;
    transition: color 0.2s;
}

.footer-links a:hover::before {
    color: var(--amber);
}

.footer-contact {
    padding: 48px;
}

.contact-line {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
}

.contact-label {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-val {
    font-size: 13px;
    font-weight: 300;
    color: var(--light);
}

.contact-val a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ── Marquee ── */
.marquee-wrap {
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
    padding: 20px 0;
    background: var(--surface);
}

.marquee-track {
    display: flex;
    gap: 0;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    padding: 0 40px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.marquee-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--amber);
    flex-shrink: 0;
}

/* ── Keyframes ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scanLine {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ── Scroll reveals ── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ── Responsive ── */
@media (max-width: 900px) {
    header {
        padding: 0 24px;
    }

    nav {
        display: none;
    }

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

    .hero-right {
        border-left: none;
        padding-top: 0;
    }

    .hero-left {
        padding: 80px 24px 48px;
    }

    .hero-right {
        padding: 0 24px 64px;
    }

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

    .product-card {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .product-card:last-child {
        border-bottom: none;
    }

    .philosophy-section {
        grid-template-columns: 1fr;
    }

    .philosophy-left {
        display: none;
    }

    .philosophy-right {
        padding: 48px 24px;
    }

    .studio-section {
        grid-template-columns: 1fr;
    }

    .studio-left {
        padding: 48px 24px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .studio-right {
        padding: 48px 24px;
    }

    footer {
        grid-template-columns: 1fr;
    }

    .footer-brand,
    .footer-products {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .section-header {
        padding: 40px 24px 32px;
    }
}
