/* ==========================================================================
   AI STUDIO — THE PICTURE HOUSE
   Cinematic editorial design system. One voice across every page.
   Canvas: near-black. Type: Archivo (expanded, title cards) + Spline Sans
   Mono (slate metadata) + SF system (body). Amber #FF9F0A appears only as
   small marks: the record dot, hovers, live counters. Media does the talking.
   ========================================================================== */

:root {
    --black: #070707;
    --pit: #000;
    --white: #F2F1ED;
    --paper: #D9D7D1;
    --grey: #8E8C86;
    --line: rgba(242, 241, 237, 0.14);
    --line-soft: rgba(242, 241, 237, 0.08);
    --amber: #FF9F0A;
    --font-display: "Archivo", -apple-system, sans-serif;
    --font-mono: "Spline Sans Mono", "SF Mono", monospace;
    --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
    --gutter: clamp(20px, 4vw, 56px);
    --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--amber); color: #000; }

img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

/* ---------- Microtype vocabulary ---------- */

.slate {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--grey);
    display: inline-block;
    max-width: 100%;
}

.slate .rec {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--amber);
    margin-right: 0.55em;
    vertical-align: middle;
}

.display {
    font-family: var(--font-display);
    font-variation-settings: "wdth" 125;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 0.95;
}

/* ---------- Header ---------- */

.hd {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem var(--gutter);
}

.hd-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.hd-logo img { width: 22px; height: 22px; border-radius: 5px; }

.hd-logo span {
    font-family: var(--font-display);
    font-variation-settings: "wdth" 125;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hd-nav { display: flex; gap: 2rem; align-items: center; }

.hd-nav a {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--white);
    position: relative;
    padding: 0.3rem 0;
}

.hd-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out);
}

.hd-nav a:hover::after,
.hd-nav a.on::after { transform: scaleX(1); transform-origin: left; }

/* Mobile: header collapses to logo + menu word */
.hd-burger {
    display: none;
    background: none;
    border: 0;
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0.3rem 0;
}

.mnav {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--pit);
    display: none;
    flex-direction: column;
    justify-content: center;
    padding: 0 var(--gutter);
    gap: 0.5rem;
}

.mnav.open { display: flex; }

.mnav a {
    font-family: var(--font-display);
    font-variation-settings: "wdth" 125;
    font-weight: 600;
    font-size: clamp(2.2rem, 9vw, 3.4rem);
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.15;
    color: var(--white);
    opacity: 0.9;
}

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

.mnav .slate { margin-bottom: 2rem; }

/* ---------- Buttons: small, quiet, bordered ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--white);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--line);
    padding: 0.8rem 1.4rem;
    cursor: pointer;
    transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.btn:hover { background: var(--white); color: #000; border-color: var(--white); }

.btn .arr { transition: transform 0.35s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }

.btn-solid { background: var(--white); color: #000; border-color: var(--white); }
.btn-solid:hover { background: var(--amber); border-color: var(--amber); color: #000; }

/* ---------- Hero: full-bleed film ---------- */

.film-hero {
    position: relative;
    height: 100svh;
    min-height: 560px;
    overflow: hidden;
    background: var(--pit);
}

.film-hero video,
.film-hero .hero-still {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.92;
}

.film-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18) 18%, transparent 34%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.35) 42%, transparent 62%);
}

.hero-plate {
    position: absolute;
    left: var(--gutter); right: var(--gutter); bottom: clamp(2.5rem, 6vh, 4.5rem);
    z-index: 2;
}

.hero-plate .slate { color: rgba(242, 241, 237, 0.75); margin-bottom: 1.4rem; }

.hero-title {
    font-family: var(--font-display);
    font-variation-settings: "wdth" 125;
    font-weight: 650;
    font-size: clamp(2.6rem, 7.2vw, 6.4rem);
    line-height: 0.94;
    text-transform: uppercase;
    letter-spacing: 0.005em;
    max-width: 14em;
}

.hero-sub {
    margin-top: 1.4rem;
    max-width: 34rem;
    color: rgba(242, 241, 237, 0.82);
    font-size: 1.02rem;
}

.hero-actions { display: flex; gap: 0.9rem; margin-top: 2rem; flex-wrap: wrap; }

.hero-foot {
    position: absolute;
    top: 50%;
    right: var(--gutter);
    z-index: 2;
    writing-mode: vertical-rl;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(242, 241, 237, 0.78);
    text-shadow: 0 0 14px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
}

/* ---------- Statement blocks ---------- */

.statement {
    padding: clamp(6rem, 14vh, 11rem) var(--gutter);
    background: var(--black);
}

.statement .slate { margin-bottom: 2.2rem; }

.statement p {
    font-family: var(--font-display);
    font-variation-settings: "wdth" 108;
    font-weight: 420;
    font-size: clamp(1.6rem, 3.4vw, 2.9rem);
    line-height: 1.22;
    letter-spacing: -0.005em;
    max-width: 30em;
    color: var(--paper);
    text-wrap: balance;
}

.statement p em {
    font-style: normal;
    color: var(--white);
    font-weight: 620;
}

.statement p .dim { color: var(--grey); }

/* ---------- The Reel: full-bleed contact sheet ---------- */

.reel-section {
    padding: 3rem 0 5rem;
    background: var(--black);
    overflow: hidden;
}

.reel-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0 var(--gutter);
    margin-bottom: 2rem;
}

.reel {
    display: flex;
    gap: 4px;
    width: max-content;
    animation: reel-roll 90s linear infinite;
}

.reel:hover { animation-play-state: paused; }

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

.cell {
    position: relative;
    flex-shrink: 0;
    height: clamp(300px, 46vh, 460px);
    background: #101010;
    overflow: hidden;
}

.cell img {
    height: 100%;
    width: auto;
    filter: saturate(0.96);
    transition: transform 0.8s var(--ease-out), filter 0.5s ease;
}

.cell:hover img { transform: scale(1.035); filter: saturate(1.05); }

.cell figcaption {
    position: absolute;
    left: 10px; bottom: 8px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(242, 241, 237, 0.85);
    background: rgba(0, 0, 0, 0.45);
    padding: 0.25rem 0.5rem;
    backdrop-filter: blur(6px);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
}

.cell:hover figcaption { opacity: 1; transform: none; }

/* ---------- Full-bleed media panel with plate ---------- */

.panel {
    position: relative;
    min-height: 88svh;
    overflow: hidden;
    background: var(--pit);
    display: flex;
    align-items: flex-end;
}

.panel > video,
.panel > img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 48%);
}

.panel-plate {
    position: relative;
    z-index: 2;
    padding: 0 var(--gutter) clamp(2.5rem, 6vh, 4rem);
    max-width: 640px;
}

.panel-plate .slate { color: rgba(242, 241, 237, 0.75); margin-bottom: 1.1rem; }

.panel-plate h2 {
    font-family: var(--font-display);
    font-variation-settings: "wdth" 125;
    font-weight: 620;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    line-height: 0.98;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.panel-plate p { color: rgba(242, 241, 237, 0.8); max-width: 30rem; }


/* ---------- Viral wall: three vertical films ---------- */

.viral-wall {
    position: relative;
    background: var(--pit);
    overflow: hidden;
}

.wall-films {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    height: 92svh;
    min-height: 520px;
}

.wall-films video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.viral-wall::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 42%);
}

.viral-wall .panel-plate {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
}

/* ---------- Tools index: editorial list with hover reveal ---------- */

.tools-section {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 5vw, 5rem);
    padding: clamp(5rem, 12vh, 9rem) var(--gutter);
    background: var(--black);
    align-items: start;
}

.tools-list { border-top: 1px solid var(--line-soft); }

.tools-head { grid-column: 1 / -1; margin-bottom: 2.5rem; }

.tool-row {
    display: flex;
    align-items: baseline;
    gap: 1.4rem;
    padding: 1.05rem 0;
    border-bottom: 1px solid var(--line-soft);
    text-decoration: none;
    cursor: default;
    transition: padding-left 0.4s var(--ease-out);
}

.tool-row:hover { padding-left: 0.8rem; }

.tool-row .no {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    color: var(--grey);
    min-width: 2em;
}

.tool-row .nm {
    font-family: var(--font-display);
    font-variation-settings: "wdth" 116;
    font-weight: 520;
    font-size: clamp(1.15rem, 2vw, 1.6rem);
    text-transform: uppercase;
    letter-spacing: 0.015em;
    transition: color 0.3s ease;
}

.tool-row:hover .nm { color: var(--amber); }

.tool-row .tag {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--grey);
}

.tools-view {
    position: sticky;
    top: 12vh;
    aspect-ratio: 4 / 5;
    background: #101010;
    overflow: hidden;
}

.tools-view img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.tools-view img.show { opacity: 1; }

.tools-view .slate {
    position: absolute;
    left: 12px; bottom: 10px;
    z-index: 2;
    color: rgba(242, 241, 237, 0.85);
    background: rgba(0, 0, 0, 0.45);
    padding: 0.3rem 0.6rem;
    backdrop-filter: blur(6px);
}

/* ---------- Models line ---------- */

.models-line {
    padding: 4rem var(--gutter) 5.5rem;
    border-top: 1px solid var(--line-soft);
    background: var(--black);
}

.models-line .slate { margin-bottom: 2rem; }

.models-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2.2rem 3rem;
    align-items: center;
}

.model-mark {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    opacity: 0.55;
    filter: grayscale(1);
    transition: opacity 0.35s ease, filter 0.35s ease;
}

.model-mark:hover { opacity: 1; filter: grayscale(0); }

.model-mark img { width: 20px; height: 20px; object-fit: contain; }

.model-mark span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--paper);
}

/* ---------- Credits / download block ---------- */

.credits {
    padding: clamp(6rem, 16vh, 12rem) var(--gutter);
    text-align: center;
    background: var(--pit);
    position: relative;
    overflow: hidden;
}

.credits .slate { margin-bottom: 2rem; }

.credits h2 {
    font-family: var(--font-display);
    font-variation-settings: "wdth" 125;
    font-weight: 650;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 0.96;
    text-transform: uppercase;
    margin-bottom: 1.4rem;
}

.credits > p {
    color: var(--grey);
    max-width: 26rem;
    margin: 0 auto 2.5rem;
}

.credits .actions { display: flex; justify-content: center; gap: 0.9rem; flex-wrap: wrap; }

.credits .fine {
    margin-top: 2.5rem;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--grey);
}

/* ---------- Footer ---------- */

.ft {
    border-top: 1px solid var(--line-soft);
    padding: 3.5rem var(--gutter) 2rem;
    background: var(--black);
}

.ft-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.ft-brand .hd-logo { margin-bottom: 1rem; }

.ft-brand p {
    color: var(--grey);
    font-size: 0.88rem;
    max-width: 20rem;
}

.ft h4 {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 1.1rem;
}

.ft ul { list-style: none; }

.ft li { margin-bottom: 0.55rem; }

.ft li a {
    text-decoration: none;
    color: var(--paper);
    font-size: 0.9rem;
    transition: color 0.25s ease;
}

.ft li a:hover { color: var(--amber); }

.ft-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line-soft);
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--grey);
}

/* ==========================================================================
   INNER PAGES (blog, jobs, legal)
   ========================================================================== */

.page-top {
    padding: clamp(8rem, 18vh, 12rem) var(--gutter) clamp(3rem, 7vh, 5rem);
    background: var(--black);
}

.page-top .slate { margin-bottom: 1.6rem; }

.page-top h1 {
    font-family: var(--font-display);
    font-variation-settings: "wdth" 125;
    font-weight: 650;
    font-size: clamp(2.6rem, 7vw, 5.6rem);
    line-height: 0.94;
    text-transform: uppercase;
}

.page-top .lede {
    margin-top: 1.6rem;
    max-width: 36rem;
    color: var(--grey);
    font-size: 1.05rem;
}

/* ---------- Index rows (blog posts, job openings) ---------- */

.index-list {
    border-top: 1px solid var(--line);
    margin: 0 var(--gutter) clamp(5rem, 12vh, 9rem);
}

.index-row {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: baseline;
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--line-soft);
    text-decoration: none;
    transition: padding-left 0.45s var(--ease-out);
}

.index-row:hover { padding-left: 1rem; }

.index-row .meta {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--grey);
}

.index-row .ttl {
    font-family: var(--font-display);
    font-variation-settings: "wdth" 112;
    font-weight: 520;
    font-size: clamp(1.25rem, 2.6vw, 2rem);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--white);
    transition: color 0.3s ease;
}

.index-row:hover .ttl { color: var(--amber); }

.index-row .arr {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--grey);
    transition: transform 0.4s var(--ease-out), color 0.3s ease;
}

.index-row:hover .arr { transform: translateX(6px); color: var(--amber); }

.index-row .sub {
    grid-column: 2;
    color: var(--grey);
    font-size: 0.92rem;
    max-width: 40rem;
    margin-top: 0.35rem;
}

/* badges on job rows */
.chips { display: flex; gap: 0.5rem; margin-top: 0.6rem; grid-column: 2; flex-wrap: wrap; }

.chipx {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--paper);
    border: 1px solid var(--line);
    padding: 0.28rem 0.7rem;
}

/* ---------- Article (blog post / job description) ---------- */

.article {
    max-width: 46rem;
    margin: 0 auto;
    padding: 0 var(--gutter) clamp(5rem, 12vh, 9rem);
}

.article-hd {
    max-width: 60rem;
    margin: 0 auto;
    padding: clamp(8rem, 18vh, 11rem) var(--gutter) 3rem;
}

.article-hd .slate { margin-bottom: 1.5rem; flex-wrap: wrap; }

.article-hd h1 {
    font-family: var(--font-display);
    font-variation-settings: "wdth" 118;
    font-weight: 620;
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 1.0;
    text-transform: uppercase;
    max-width: 18em;
}

.article-hd .lede {
    margin-top: 1.5rem;
    color: var(--grey);
    font-size: 1.1rem;
    max-width: 38rem;
}

.article { color: #C9C7C1; font-size: 1.06rem; line-height: 1.75; }

.article h2 {
    font-family: var(--font-display);
    font-variation-settings: "wdth" 116;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--white);
    margin: 3rem 0 1rem;
    padding-top: 2.2rem;
    border-top: 1px solid var(--line-soft);
}

.article h3 {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--amber);
    margin: 2rem 0 0.8rem;
}

.article p { margin-bottom: 1.2rem; }

.article ul, .article ol { margin: 0 0 1.4rem 0; list-style: none; }

.article li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.7rem;
}

.article li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--grey);
}

.article li li::before { content: "·"; }

.article li ul { margin: 0.7rem 0 0; }

.article strong { color: var(--white); font-weight: 600; }

.article a:not(.btn) { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--amber); }

.article a:not(.btn):hover { color: var(--amber); }

.article .btn-solid, .article .btn-solid:hover { color: #000; }

.article img { margin: 2rem 0; }

.article blockquote {
    border-left: 2px solid var(--amber);
    padding-left: 1.4rem;
    margin: 2rem 0;
    color: var(--paper);
    font-style: italic;
}

/* apply box (job pages) */
.apply-box {
    border: 1px solid var(--line);
    padding: 2rem;
    margin-top: 3rem;
}

.apply-box .btn { margin-top: 1.4rem; }

/* back link */
.crumb {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--grey);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

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

/* ---------- Scroll reveal ---------- */

.rv {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
    transition-delay: var(--d, 0s);
}

.rv.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .tools-section { grid-template-columns: 1fr; }
    .tools-view { display: none; }
    .ft-grid { grid-template-columns: 1fr 1fr; }
    .index-row { grid-template-columns: minmax(0, 1fr) auto; }
    .index-row .meta { grid-column: 1 / -1; }
    .index-row .sub, .chips { grid-column: 1; }
    .hero-foot { display: none; }
}

@media (max-width: 700px) {
    .hd-nav { display: none; }
    .hd-burger { display: block; }
    .cell { height: clamp(240px, 36vh, 320px); }
    .panel { min-height: 72svh; }
    .article-hd h1 { font-variation-settings: "wdth" 108; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .rv { opacity: 1; transform: none; }
    .reel { animation: none; }
}
