/* ============================================================
   AXERY STUDIO — Home Page Styles
   Palette: Near-black · Near-white · Mid-grays
   Layout: Full-viewport, no scroll
============================================================ */

:root {
    --ink:        #000000;
    --ink-mid:    #0A0A0A;
    --ink-soft:   #111111;
    --ash:        #888888;
    --ash-dim:    #444444;
    --ash-bright: #BBBBBB;
    --paper:      #F2F0EA;
    --paper-dim:  #C8C5BE;

    --font-display:   'Bebas Neue', sans-serif;
    --font-condensed: 'Barlow Condensed', sans-serif;
    --font-body:      'Barlow', sans-serif;

    --nav-h:    90px;
    --ticker-h: 36px;
}

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

html, body { width: 100%; height: 100%; overflow: hidden; }

a { text-decoration: none; }

body {
    background-color: var(--ink);
    font-family: var(--font-body), sans-serif;
    color: var(--paper);
    cursor: crosshair;
}

/* ============================================================
   BACKGROUND — pure black, no image
============================================================ */

.bg-layer { display: none; }
.bg-overlay { display: none; }

.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 2;
    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='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)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px;
    animation: grainShift 0.35s steps(1) infinite;
}

@keyframes grainShift {
    0% {
        background-position: 0 0;
    }
    20% {
        background-position: -42px 17px;
    }
    40% {
        background-position: 30px -25px;
    }
    60% {
        background-position: -18px 40px;
    }
    80% {
        background-position: 55px -10px;
    }
    100% {
        background-position: 0 0;
    }
}

/* ============================================================
   TIMECODE BAR
============================================================ */

.timecode-bar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 101;
    display: flex; align-items: center; justify-content: center;
    gap: 12px; padding-top: 6px; pointer-events: none;
}
.timecode-text {
    font-family: var(--font-condensed), sans-serif;
    font-size: 0.63rem; font-weight: 700;
    letter-spacing: 0.18em; color: var(--ash);
    text-transform: uppercase;
}
.timecode-divider { color: var(--ash-dim); font-size: 0.55rem; }

/* ============================================================
   NAVBAR
============================================================ */

.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex; align-items: flex-start;
    justify-content: space-between;
    padding: 28px 52px 0;
    border-top: 1px solid rgba(242,240,234,0.12);
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
}

.nav-logo { display: flex; flex-direction: column; line-height: 1; margin-top: 10px; }
.logo-line { display: flex; align-items: baseline; }
.logo-apex {
    font-family: var(--font-display), sans-serif;
    font-size: 2.1rem; letter-spacing: 0.12em; color: var(--paper);
}
.logo-frame {
    font-family: var(--font-display), sans-serif;
    font-size: 2.1rem; letter-spacing: 0.12em; color: var(--ash);
}
.logo-tagline {
    font-family: var(--font-condensed), sans-serif;
    font-size: 0.6rem; font-weight: 300;
    letter-spacing: 0.3em; color: var(--ash);
    margin-top: 4px; text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 6px; margin-top: 6px; }

.nav-btn {
    font-family: var(--font-condensed), sans-serif;
    font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--ash-bright);
    padding: 7px 22px;
    border: 1px solid rgba(242,240,234,0.14);
    position: relative; overflow: hidden;
    transition: color 0.2s, border-color 0.2s;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
    display: inline-block;
}
a.nav-btn::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--paper);
    transform: translateX(-105%);
    transition: transform 0.26s cubic-bezier(0.22,1,0.36,1);
    clip-path: inherit; z-index: 0;
}
a.nav-btn span { position: relative; z-index: 1; }
a.nav-btn:hover { color: var(--ink); border-color: var(--paper); }
a.nav-btn:hover::before { transform: translateX(0); }

.nav-btn--active {
    color: var(--paper);
    border-color: rgba(242,240,234,0.5);
    background: rgba(242,240,234,0.07);
    cursor: default; pointer-events: none;
}

/* ============================================================
   HERO
============================================================ */

.hero {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: var(--nav-h);
    padding-bottom: var(--ticker-h);
    padding-left: 35px;
}

.hero-content {
    width: 100%; max-width: 1100px;
    padding: 0 52px;
    display: flex; flex-direction: column;
    gap: clamp(14px, 2.2vh, 28px);
    opacity: 0;
    animation: heroReveal 1.1s cubic-bezier(0.22,1,0.36,1) 0.1s forwards;
}
@keyframes heroReveal {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow { display: flex; align-items: center; gap: 14px; }
.eyebrow-bar {
    display: block; width: 40px; height: 1px;
    background: var(--paper); opacity: 0.5;
    transform-origin: left; transform: scaleX(0);
    animation: barGrow 0.8s 0.5s ease forwards;
}
.eyebrow-label {
    font-family: var(--font-condensed), sans-serif;
    font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.32em; color: var(--ash);
    text-transform: uppercase;
    opacity: 0; animation: fadeUp 0.6s 0.5s ease forwards;
}
@keyframes barGrow { to { transform: scaleX(1); } }

.hero-title { display: flex; flex-direction: column; line-height: 0.9; gap: 2px; }
.title-line {
    font-family: var(--font-display), sans-serif;
    font-size: clamp(3rem, 8.5vw, 9.5rem);
    letter-spacing: 0.04em; color: var(--paper);
    display: block; opacity: 0;
    animation: lineSlide 0.9s cubic-bezier(0.22,1,0.36,1) both;
}
.line-1 { animation-delay: 0.18s; }
.line-2 { animation-delay: 0.32s; }
@keyframes lineSlide {
    from { opacity: 0; transform: translateX(-22px); }
    to   { opacity: 1; transform: translateX(0); }
}

.title-accent {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--paper);
    position: relative; display: inline-block;
}
.title-accent::after {
    content: '';
    position: absolute; bottom: 6px; left: 0; right: 0;
    height: 1px; background: var(--ash);
    transform: scaleX(0); transform-origin: left;
    animation: accentUnderline 0.5s 0.9s ease forwards;
}
@keyframes accentUnderline { to { transform: scaleX(1); } }

.hero-sub {
    font-family: var(--font-body), sans-serif;
    font-size: clamp(0.78rem, 1.2vw, 1.02rem);
    font-weight: 300; line-height: 1.75;
    color: var(--ash-bright); max-width: 520px;
    opacity: 0; animation: fadeUp 0.8s 0.65s ease forwards;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-cta {
    display: flex; align-items: center; gap: 24px;
    opacity: 0; animation: fadeUp 0.8s 0.82s ease forwards;
}
.cta-primary {
    font-family: var(--font-condensed), sans-serif;
    font-size: 0.82rem; font-weight: 700;
    letter-spacing: 0.26em; text-transform: uppercase;
    color: var(--ink); background: var(--paper);
    padding: 12px 36px; position: relative; overflow: hidden;
    transition: color 0.22s;
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
}
.cta-primary::before {
    content: ''; position: absolute; inset: 0;
    background: var(--ash);
    transform: translateX(-105%);
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.cta-primary span { position: relative; z-index: 1; }
.cta-primary:hover::before { transform: translateX(0); }

.cta-secondary {
    font-family: var(--font-condensed), sans-serif;
    font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--ash-bright);
    display: flex; align-items: center; gap: 10px;
    transition: color 0.2s;
}
.cta-arrow {
    width: 28px; height: 1px; background: currentColor;
    position: relative; transition: width 0.24s ease;
}
.cta-arrow::after {
    content: ''; position: absolute; right: 0; top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 6px; height: 6px;
    border-right: 1px solid currentColor;
    border-top: 1px solid currentColor;
}
.cta-secondary:hover { color: var(--paper); }
.cta-secondary:hover .cta-arrow { width: 40px; }

.hero::before, .hero::after {
    content: ''; position: absolute;
    width: 36px; height: 36px;
    z-index: 15; pointer-events: none; opacity: 0.22;
}
.hero::before {
    bottom: calc(var(--ticker-h) + 16px); right: 60px;
    border-right: 1px solid var(--paper);
    border-bottom: 1px solid var(--paper);
}
.hero::after {
    bottom: calc(var(--ticker-h) + 16px); left: 60px;
    border-left: 1px solid var(--paper);
    border-bottom: 1px solid var(--paper);
}

.hero-rule {
    position: absolute; left: 52px;
    top: calc(var(--nav-h) + 8%);
    bottom: calc(var(--ticker-h) + 8%);
    width: 1px;
    background: linear-gradient(to bottom,
    transparent,
    rgba(242,240,234,0.10) 30%,
    rgba(242,240,234,0.10) 70%,
    transparent);
    z-index: 5; pointer-events: none;
}

/* ============================================================
   TICKER
============================================================ */

.ticker-wrap {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 20;
    background: rgba(0,0,0,0.88);
    border-top: 1px solid rgba(242,240,234,0.08);
    overflow: hidden; height: var(--ticker-h);
    display: flex; align-items: center;
    backdrop-filter: blur(6px);
}
.ticker-label {
    font-family: var(--font-condensed), sans-serif;
    font-size: 0.6rem; font-weight: 700;
    letter-spacing: 0.28em; color: var(--ash-dim);
    text-transform: uppercase;
    padding: 0 18px; white-space: nowrap;
    border-right: 1px solid rgba(242,240,234,0.08);
    flex-shrink: 0;
}
.ticker-track {
    display: flex; align-items: center;
    gap: 28px; white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
    padding-left: 28px;
}
@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.ticker-item {
    font-family: var(--font-condensed), sans-serif;
    font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.28em; color: var(--ash);
    text-transform: uppercase;
}
.ticker-dot { color: rgba(242,240,234,0.18); font-size: 0.38rem; }

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

@media (max-width: 1024px) {
    :root { --nav-h: 84px; }
    .navbar { padding: 22px 36px 0; }
    .logo-apex, .logo-frame { font-size: 1.85rem; }
    .hero-content { padding: 0 36px; max-width: 900px; }
    .hero-rule { left: 36px; }
}

@media (max-width: 900px) {
    :root { --nav-h: 78px; }
    .navbar { padding: 18px 28px 0; }
    .logo-apex, .logo-frame { font-size: 1.65rem; }
    .logo-tagline { font-size: 0.54rem; }
    .nav-btn { padding: 7px 16px; font-size: 0.76rem; }
    .hero-content { padding: 0 28px; }
    .hero-sub { font-size: clamp(0.76rem, 1.4vw, 0.98rem); }
    .hero-rule { display: none; }
    .hero::before, .hero::after { width: 26px; height: 26px; }
}

@media (max-width: 700px) {
    :root { --nav-h: 118px; --ticker-h: 32px; }
    .navbar { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 20px 0; }
    .nav-logo { margin-top: 10px; }
    .nav-links { gap: 5px; }
    .nav-btn { padding: 6px 13px; font-size: 0.70rem; letter-spacing: 0.16em; }
    .hero-content { padding: 0 20px; gap: clamp(10px, 1.8vh, 22px); }
    .hero-sub { font-size: 0.88rem; }
    .hero::before, .hero::after { display: none; }
    .ticker-item { font-size: 0.62rem; }
}

@media (max-height: 500px) {
    :root { --nav-h: 68px; }
    .title-line { font-size: clamp(2.2rem, 7vw, 5rem); }
    .hero-content { gap: 10px; }
    .hero-sub { display: none; }
    .hero-cta { gap: 16px; }
    .cta-primary { padding: 9px 28px; }
}

@media (max-width: 480px) {
    :root { --nav-h: 112px; --ticker-h: 28px; }
    .navbar { padding: 12px 16px 0; gap: 9px; }
    .nav-logo { margin-top: 10px; }
    .logo-apex, .logo-frame { font-size: 1.4rem; }
    .logo-tagline { font-size: 0.48rem; }
    .nav-btn { padding: 5px 11px; font-size: 0.66rem; }
    .hero-content { padding: 0 16px; gap: clamp(10px, 2vh, 20px); }
    .hero-sub { font-size: 0.83rem; line-height: 1.65; }
    .cta-secondary { display: none; }
    .ticker-item { font-size: 0.58rem; }
    .ticker-label { padding: 0 12px; }
}

@media (max-width: 360px) {
    .logo-apex, .logo-frame { font-size: 1.25rem; }
    .nav-btn { padding: 5px 9px; font-size: 0.62rem; letter-spacing: 0.12em; }
    .title-line { font-size: clamp(2.5rem, 9vw, 4rem); }
}