/* ============================================
   Mike Boord — Portfolio
   Dark theme, gold accent (#f5a623)
   ============================================ */

:root {
    --bg: #0a0a0a;
    --bg-deep: #050505;
    --bg-section: #0f1923;
    --bg-card: #1a2530;
    --gold: #f5a623;
    --gold-hot: #ff6b6b;
    --text: #fff;
    --text-dim: #aaa;
    --text-faint: #6f7785;
    --border: rgba(255, 255, 255, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

a { color: var(--text); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--gold); }

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

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 13px 28px;
    background-color: var(--gold);
    color: #0a0a0a;
    border: 2px solid var(--gold);
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
}
.btn:hover { background-color: transparent; color: var(--gold); transform: translateY(-2px); }
.btn-outline { background-color: transparent; color: var(--text); border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { color: var(--gold); border-color: var(--gold); }

.underline { width: 80px; height: 3px; background-color: var(--gold); margin: 0 auto 30px; }

/* ===== Header ===== */
header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 18px 40px;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; letter-spacing: 0.02em; }
.logo a:hover { color: var(--gold); }

nav ul { display: flex; list-style: none; gap: 32px; }
nav ul li a {
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
}
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}
nav ul li a:hover::after { width: 100%; }

/* ===== Video background ===== */
.video-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
.video-background video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}
.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(10,10,10,0.85) 100%);
}
.hero .video-overlay {
    background:
        radial-gradient(ellipse at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.85) 80%),
        linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(10,10,10,0.95) 100%);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px 60px;
}
.hero-content { max-width: 860px; z-index: 1; position: relative; }
.hero h1 {
    font-size: clamp(48px, 8vw, 96px);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.hero h2 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 300;
    color: var(--gold);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 28px;
}
.hero p { font-size: 18px; margin-bottom: 16px; color: rgba(255,255,255,0.9); max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-meta {
    font-size: 13px !important;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim) !important;
    margin-bottom: 36px !important;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px; height: 28px;
    color: rgba(255,255,255,0.6);
    animation: bounce 2.4s infinite;
    z-index: 1;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-12px); }
    60% { transform: translateX(-50%) translateY(-6px); }
}

/* ===== Stats strip (By the Numbers) ===== */
.stats-strip {
    padding: 70px 28px;
    background: linear-gradient(180deg, var(--bg-deep), var(--bg));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stats-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 36px;
    text-align: center;
}
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    letter-spacing: -0.02em;
}
.stat-label {
    font-size: 13px;
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 8px;
}
.stat-sub {
    font-size: 12px;
    color: var(--text-faint);
    font-style: italic;
    letter-spacing: 0.02em;
}

/* ===== Statement section ===== */
.statement {
    padding: 140px 20px;
    background-color: var(--bg-deep);
    text-align: center;
}
.statement-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 100px; }
.small-text {
    font-size: clamp(16px, 1.6vw, 22px);
    font-weight: 300;
    color: rgba(255,255,255,0.85);
    margin: 6px 0;
}
.large-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(64px, 11vw, 140px);
    font-weight: 800;
    line-height: 1;
    color: var(--gold);
    letter-spacing: -0.04em;
    margin: 8px 0;
}
.gradient-text {
    background: linear-gradient(90deg, var(--gold-hot), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== Section headers ===== */
.section-header {
    max-width: 800px;
    margin: 0 auto 70px;
    text-align: center;
    padding: 0 20px;
}
.section-header h2 {
    font-size: clamp(36px, 5vw, 56px);
    margin-bottom: 16px;
}
.section-header p {
    font-size: 17px;
    color: var(--text-dim);
    line-height: 1.7;
}

/* ===== AI Work grid ===== */
.ai-work {
    padding: 120px 0;
    background-color: var(--bg);
}
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 28px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
}
.work-card {
    position: relative;
    background-color: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
}
.work-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.work-card video,
.work-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #000;
    display: block;
}
.work-card[data-aspect="9x16"] video,
.work-card[data-aspect="9x16"] img { aspect-ratio: 9 / 16; max-height: 540px; }
.work-card[data-aspect="1x1"] video,
.work-card[data-aspect="1x1"] img { aspect-ratio: 1 / 1; }

/* Chocolate Love Vodka card with real product inset */
.work-card-clv .work-meta a {
    color: var(--gold);
    text-decoration: underline;
    text-decoration-color: rgba(245, 166, 35, 0.4);
    text-underline-offset: 2px;
}
.work-card-clv .work-meta a:hover {
    text-decoration-color: var(--gold);
}
.clv-product {
    margin: 18px 0 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    transition: border-color 0.3s ease;
}
.clv-product:hover {
    border-color: rgba(245, 166, 35, 0.45);
}
.clv-product a {
    display: block;
    line-height: 0;
    text-decoration: none;
}
.clv-product img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    background: #fff;
}
.clv-product figcaption {
    padding: 10px 14px;
    font-size: 11px;
    line-height: 1.55;
    color: var(--text-faint);
    border-top: 1px solid var(--border);
    letter-spacing: 0.02em;
}

.work-card-feature {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: stretch;
    background: linear-gradient(135deg, rgba(245,166,35,0.05), var(--bg-card));
    border: 1px solid rgba(245,166,35,0.18);
}

/* Singin' in the Rain dual-demo (side-by-side + wipe) */
.singin-feature {
    grid-template-columns: 1fr;
}
.singin-media {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
}
.singin-sxs {
    margin: 0;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}
.singin-sxs video {
    width: 100%;
    aspect-ratio: 32 / 9;
    object-fit: contain;
    background: #000;
    display: block;
}
.singin-sxs figcaption {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 10px 0;
    background: var(--bg-card);
}
.singin-sxs figcaption span {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.singin-sxs .singin-label-right {
    color: var(--gold);
}
.singin-wipe {
    aspect-ratio: 16 / 9;
    margin: 0;
}
.singin-feature .work-meta {
    padding: 0 20px 24px;
}
.work-card-feature video,
.work-card-feature img { aspect-ratio: 16 / 9; width: 100%; }
.work-card-feature .work-meta {
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.work-card-feature .work-meta h3 { font-size: 30px; }
.work-card-feature .work-meta p { font-size: 16px; line-height: 1.75; }
@media (max-width: 900px) {
    .work-card-feature { grid-template-columns: 1fr; }
}
.work-meta { padding: 22px 24px 26px; }
.work-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}
.work-meta h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text);
}
.work-meta p { font-size: 14px; color: var(--text-dim); line-height: 1.65; }

/* ===== Process pairs ===== */
.process {
    padding: 120px 0;
    background-color: var(--bg-section);
}
.process-stack {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    flex-direction: column;
    gap: 90px;
}
.process-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    align-items: start;
}
.process-side {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}
.process-pair-vertical { gap: 28px; justify-content: center; }
.process-pair-vertical .process-side {
    aspect-ratio: 9 / 16;
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
}
.process-side video,
.process-side img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
    cursor: pointer;
}
.process-label {
    position: absolute;
    top: 14px; left: 14px;
    background: rgba(0,0,0,0.75);
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 3px;
    z-index: 2;
}
.process-caption {
    grid-column: 1 / -1;
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}
.process-caption h3 { font-size: 26px; margin-bottom: 12px; }
.process-caption p { color: var(--text-dim); font-size: 16px; line-height: 1.7; }
.process-tags {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.process-tags span {
    background: rgba(245,166,35,0.12);
    color: var(--gold);
    border: 1px solid rgba(245,166,35,0.3);
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ===== Feature: Something Here case study ===== */
.feature {
    position: relative;
    padding: 140px 0 130px;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(245,166,35,0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(255,107,107,0.04) 0%, transparent 55%),
        var(--bg-deep);
    overflow: hidden;
}
.feature .section-header {
    margin-bottom: 90px;
}
.feature .section-header .work-tag {
    display: inline-block;
    color: var(--gold);
    margin: 0;
}
.feature-stack {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    flex-direction: column;
    gap: 110px;
}

.feature-step {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}

/* 50/50 split block */
.feature-block {
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    gap: 60px;
    align-items: center;
}
.feature-block-reverse {
    grid-template-columns: 1fr 0.85fr;
}
.feature-block-reverse .feature-block-text { order: 2; }
.feature-block-reverse .feature-block-media { order: 1; }
.feature-block-text h3 {
    font-size: clamp(28px, 3vw, 38px);
    margin-bottom: 18px;
}
.feature-block-text p {
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 22px;
}
.feature-block-text code {
    background: rgba(245,166,35,0.12);
    color: var(--gold);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 13px;
    letter-spacing: 0.05em;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.feature-tags span {
    background: rgba(245,166,35,0.08);
    color: var(--gold);
    border: 1px solid rgba(245,166,35,0.25);
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Figures */
.feature-figure {
    margin: 0;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.feature-figure img,
.feature-figure video {
    width: 100%;
    height: auto;
    display: block;
}
.feature-figure figcaption {
    padding: 14px 18px;
    font-size: 13px;
    color: var(--text-dim);
    letter-spacing: 0.02em;
    border-top: 1px solid var(--border);
}

/* Row of small figures */
.feature-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.feature-row .feature-figure img { aspect-ratio: 16 / 9; object-fit: cover; }

/* Voice deck */
.voice-deck {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--bg-card);
    padding: 24px;
    border-radius: 10px;
    border: 1px solid var(--border);
}
.voice-line {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.voice-line-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}
.voice-char {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: var(--gold);
    letter-spacing: 0.12em;
    font-weight: 700;
}
.voice-source {
    font-size: 12px;
    color: var(--text-faint);
    letter-spacing: 0.06em;
}
.voice-line audio {
    width: 100%;
    height: 40px;
    border-radius: 6px;
    filter: invert(0.92) hue-rotate(180deg);
}

/* Full-width block (Scenes) */
.feature-block-full { text-align: left; }
.feature-block-full h3 {
    font-size: clamp(28px, 3vw, 38px);
    margin-bottom: 14px;
}
.feature-block-full > p {
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.8;
    max-width: 720px;
    margin-bottom: 36px;
}
.scene-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}
.scene-grid .work-card video { aspect-ratio: 16 / 9; }

/* Tooling ===== */
/* ===== Tooling ===== */
.tooling { padding: 120px 0; background-color: var(--bg); }
.tooling-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
}
.tool-card {
    background-color: var(--bg-card);
    padding: 32px 28px;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.tool-card:hover { border-color: rgba(245,166,35,0.4); transform: translateY(-4px); }
.tool-card h3 { font-size: 20px; color: var(--gold); margin-bottom: 14px; }
.tool-card p { font-size: 14px; color: var(--text-dim); line-height: 1.7; margin-bottom: 18px; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-tags span {
    font-size: 10px;
    background: rgba(255,255,255,0.06);
    color: var(--text-dim);
    padding: 4px 10px;
    border-radius: 3px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ===== Doo Dah Men Stills → Motion progression ===== */
.ddm-progression {
    padding: 120px 0;
    background-color: var(--bg-deep);
}

/* ===== UTCC resolution progression (lo-res Flux → Pixelwave delivery) ===== */
.utcc-progression-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 20px;
}
.utcc-progression-pair {
    margin: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.utcc-progression-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.utcc-progression-side {
    position: relative;
    background: #050505;
    line-height: 0;
}
.utcc-progression-side:first-child {
    border-right: 2px solid var(--gold);
}
.utcc-progression-side img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.utcc-progression-pair figcaption {
    padding: 16px 22px;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.6;
    border-top: 1px solid var(--border);
}
.utcc-progression-pair figcaption strong {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    margin-right: 4px;
}
@media (max-width: 720px) {
    .utcc-progression-images { grid-template-columns: 1fr; }
    .utcc-progression-side:first-child {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}

/* ===== Chocolate Love Vodka feature section ===== */
.clv-feature {
    padding: 120px 0;
    background-color: var(--bg);
    border-top: 1px solid var(--border);
}
.clv-feature .section-header,
.clv-feature .clv-product-feature,
.clv-feature .clv-drafts,
.clv-feature .clv-vertical-wrap {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 28px;
    padding-right: 28px;
}
.clv-feature .section-header a {
    color: var(--gold);
    border-bottom: 1px dotted rgba(245, 166, 35, 0.5);
    text-decoration: none;
}
.clv-feature .section-header a:hover { border-bottom-color: var(--gold); }
.clv-feature .section-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--text);
    margin: 0;
}
.clv-product-feature {
    margin: 48px auto 0;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color 0.3s ease;
}
.clv-product-feature:hover { border-color: rgba(245, 166, 35, 0.45); }
.clv-product-feature a { display: block; line-height: 0; }
.clv-product-feature img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    object-position: center;
    display: block;
}
.clv-product-feature figcaption {
    padding: 16px 22px;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.6;
    border-top: 1px solid var(--border);
}
.clv-drafts {
    margin: 32px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.clv-draft {
    margin: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.clv-draft video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.clv-draft figcaption {
    padding: 14px 18px;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.6;
    border-top: 1px solid var(--border);
}
.clv-draft figcaption strong {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    margin-right: 4px;
}
.clv-vertical-wrap {
    margin: 32px auto 0;
    display: flex;
    justify-content: center;
}
.clv-draft-vertical {
    max-width: 360px;
}
.clv-draft-vertical video {
    aspect-ratio: 9 / 16;
    width: 100%;
    object-fit: cover;
}
@media (max-width: 900px) {
    .clv-drafts { grid-template-columns: 1fr; }
}
.ddm-stack {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}
.ddm-figure {
    margin: 0;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.ddm-figure img,
.ddm-figure video {
    width: 100%;
    height: auto;
    display: block;
}
.ddm-figure figcaption {
    padding: 18px 24px;
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.7;
    border-top: 1px solid var(--border);
}
.ddm-figure figcaption strong {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    margin-right: 6px;
}
.ddm-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.ddm-row .feature-figure img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
@media (max-width: 720px) {
    .ddm-row { grid-template-columns: 1fr 1fr; }
}

.ddm-thumb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
    background: var(--bg);
}
.ddm-thumb-grid .feature-figure {
    margin: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.ddm-thumb-grid .feature-figure video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.ddm-thumb-grid .feature-figure figcaption {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--gold);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    border-radius: 4px;
    pointer-events: none;
}
@media (max-width: 720px) {
    .ddm-thumb-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Brand & Character LoRAs ===== */
.lora-showcase {
    padding: 120px 0;
    background-color: var(--bg);
}
.lora-block {
    max-width: 1280px;
    margin: 0 auto 90px;
    padding: 0 28px;
}
.lora-block:last-child { margin-bottom: 0; }
.lora-block-header {
    max-width: 760px;
    margin-bottom: 36px;
}
.lora-block-header h3 {
    font-size: clamp(28px, 3vw, 38px);
    margin-bottom: 14px;
}
.lora-block-header p {
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 18px;
}
.lora-block-header code {
    background: rgba(245,166,35,0.12);
    color: var(--gold);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 13px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.lora-figure-wide {
    margin: 0 0 24px 0;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.lora-figure-wide img {
    width: 100%;
    height: auto;
    display: block;
}
.lora-figure-wide figcaption {
    padding: 14px 20px;
    font-size: 13px;
    color: var(--text-dim);
    border-top: 1px solid var(--border);
}

.lora-trio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 12px;
}

/* Prim thematic gallery (8 themes) */
.prim-themes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}
.prim-themes .prim-theme {
    margin: 0;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.prim-themes .prim-theme:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 166, 35, 0.4);
}
.prim-themes .prim-theme img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
.prim-themes .prim-theme figcaption {
    padding: 10px 14px;
    font-size: 12px;
    color: var(--gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    border-top: 1px solid var(--border);
    text-align: center;
}

.prim-section-label {
    margin: 32px 0 18px;
    color: var(--text-dim);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

/* ===== Card slideshow (Prim thumbnail) ===== */
.card-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}
.card-slideshow img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.9s ease;
}
.card-slideshow img.active { opacity: 1; }

/* ===== The Stack — interactive models & tools grid ===== */
.stack-section {
    padding: 120px 0;
    background-color: var(--bg-deep);
    border-top: 1px solid var(--border);
}
.stack-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(216px, 1fr));
    gap: 14px;
}
.stack-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 18px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.stack-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 120% at 100% 0%, rgba(245,166,35,0.10), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.stack-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 166, 35, 0.55);
    box-shadow: 0 14px 34px rgba(0,0,0,0.45), 0 0 0 1px rgba(245,166,35,0.15);
}
.stack-tile:hover::after { opacity: 1; }
.stack-glyph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: rgba(245,166,35,0.08);
    border: 1px solid rgba(245,166,35,0.25);
    color: var(--gold);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.stack-cat {
    font-size: 9.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-faint);
}
.stack-name {
    font-family: 'Playfair Display', serif;
    font-size: 19px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.15;
    margin: 0;
}
.stack-role {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-dim);
    margin: 0;
    flex: 1;
}
.stack-dest {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    transition: color 0.25s ease;
}
.stack-tile:hover .stack-dest { color: var(--gold); }
.stack-dest .arrow { transition: transform 0.25s ease; }
.stack-tile:hover .stack-dest .arrow { transform: translate(2px, -2px); }
.stack-tile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* ===== LoRA full-data pipeline ===== */
.lora-dataset-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 22px;
}
.lora-dataset-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    border: 1px solid var(--border);
}
@media (max-width: 720px) {
    .lora-dataset-grid { grid-template-columns: repeat(3, 1fr); }
}
.lora-caption-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.lora-caption-card {
    margin: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.lora-caption-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.lora-caption-text {
    padding: 12px 14px;
    border-top: 1px solid var(--border);
}
.lora-caption-file {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    color: var(--gold);
    background: rgba(245, 166, 35, 0.08);
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}
.lora-caption-text p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-dim);
}
.lora-caption-text p .tok {
    color: var(--gold);
    font-weight: 600;
}
@media (max-width: 900px) {
    .lora-caption-cards { grid-template-columns: 1fr; }
}
.lora-train-row {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin: 0;
}
.lora-train-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lora-train-row figcaption {
    padding: 16px 22px 16px 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-dim);
}
.lora-train-row figcaption strong { color: var(--gold); font-family: 'Playfair Display', serif; }
.lora-train-row code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    color: var(--text);
    background: rgba(255,255,255,0.04);
    padding: 2px 6px;
    border-radius: 3px;
}
@media (max-width: 720px) {
    .lora-train-row { grid-template-columns: 1fr; }
    .lora-train-row figcaption { padding: 0 18px 16px; }
}
.lora-t2i-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.lora-t2i-item {
    margin: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.lora-t2i-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.lora-t2i-prompt {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-dim);
}
.lora-t2i-prompt .tok {
    color: var(--gold);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 600;
}
@media (max-width: 720px) {
    .lora-t2i-grid { grid-template-columns: 1fr; }
}

.prim-anim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}
.prim-anim-grid .feature-figure img,
.prim-anim-grid .feature-figure video {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.prim-anim-grid .feature-figure figcaption {
    padding: 10px 14px;
    font-size: 12px;
    color: var(--text-dim);
    border-top: 1px solid var(--border);
}
.lora-trio .feature-figure { aspect-ratio: auto; }
.lora-trio .feature-figure img,
.lora-trio .feature-figure video {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Before/After grid (now uses compare-slider inside each ba-pair figure) */
.ba-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 28px;
    margin-bottom: 22px;
}
.ba-pair {
    margin: 0;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.ba-pair:hover {
    border-color: rgba(245, 166, 35, 0.45);
    transform: translateY(-3px);
}
.ba-pair .compare-slider {
    border-radius: 0;
    aspect-ratio: 4 / 3;
}
.ba-pair .compare-slider img {
    aspect-ratio: 4 / 3;
}
.ba-pair figcaption {
    padding: 12px 16px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-top: 1px solid var(--border);
}
.ba-note {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.75;
    margin: 8px 0 24px;
    font-style: italic;
    max-width: 760px;
}

/* Garage Force delivery grid (mixed aspect ratios) */
.gf-delivery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.gf-delivery-grid .feature-figure:not(.gf-deliver-vertical) {
    grid-column: span 2;
}
@media (max-width: 720px) {
    .gf-delivery-grid .feature-figure:not(.gf-deliver-vertical) {
        grid-column: span 1;
    }
}
.gf-delivery-grid .feature-figure {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.gf-delivery-grid .feature-figure:hover {
    border-color: rgba(245, 166, 35, 0.4);
    transform: translateY(-3px);
}
.gf-delivery-grid .feature-figure video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #000;
    display: block;
}
.gf-delivery-grid .gf-deliver-vertical video {
    aspect-ratio: 9 / 16;
    max-height: 560px;
    object-fit: contain;
}
.gf-delivery-grid .feature-figure figcaption {
    padding: 10px 14px;
    font-size: 12px;
    color: var(--text-dim);
    border-top: 1px solid var(--border);
    letter-spacing: 0.04em;
}

/* Vertical compare slider (9:16 cases like RW Coolidge) */
.compare-slider-vertical {
    aspect-ratio: 9 / 16;
    max-width: 420px;
    margin: 0 auto;
}
.process-pair-compare {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: stretch;
}
.process-pair-compare .process-caption {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

/* ===== Before/After wipe comparison slider ===== */
.compare-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    border-radius: 10px;
    user-select: none;
    touch-action: none;
}
.compare-before,
.compare-after {
    position: relative;
    inset: 0;
    width: 100%;
}
.compare-after {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
}
.compare-before img,
.compare-before video,
.compare-after img,
.compare-after video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.compare-handle {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 4px;
    margin-left: -2px;
    background: var(--gold);
    cursor: ew-resize;
    z-index: 5;
    box-shadow: 0 0 16px rgba(245,166,35,0.4);
}
.compare-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: var(--gold);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}
.compare-handle::after {
    content: '⟷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0a0a0a;
    font-size: 20px;
    font-weight: 900;
    z-index: 1;
    line-height: 1;
}
.compare-slider.dragging .compare-handle::before {
    background: #fff;
}
.compare-label-before,
.compare-label-after {
    position: absolute;
    top: 14px;
    z-index: 4;
    background: rgba(0,0,0,0.75);
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 3px;
    pointer-events: none;
}
.compare-label-before { left: 14px; }
.compare-label-after  { right: 14px; color: #0a0a0a; background: rgba(245,166,35,0.92); }

/* ===== Inline workflow image (under each process pair / feature card) ===== */
.process-workflow {
    grid-column: 1 / -1;
    margin: 36px 0 0;
    background: #050505;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.process-workflow a {
    display: block;
    line-height: 0;
    background: #050505;
}
.process-workflow img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
    max-height: 900px;
    object-fit: contain;
    background: #050505;
}

/* ===== Workflow lightbox ===== */
.wf-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    z-index: 9999;
    display: none;
    overflow: hidden;
    cursor: grab;
}
.wf-lightbox.open { display: block; }
.wf-lightbox.grabbing { cursor: grabbing; }
.wf-lightbox img {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    image-rendering: -webkit-optimize-contrast;
}
.wf-lightbox-close {
    position: fixed;
    top: 18px;
    right: 24px;
    color: var(--gold);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 18px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    z-index: 10001;
}
.wf-lightbox-close:hover { background: rgba(0, 0, 0, 0.85); }
.wf-lightbox-hint {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-dim);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 6px;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
}
.wf-lightbox-caption {
    position: fixed;
    top: 22px;
    left: 24px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: 0.08em;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 14px;
    border-radius: 6px;
    max-width: 60vw;
    pointer-events: none;
    border: 1px solid var(--border);
}
.wf-lightbox-caption code {
    color: var(--text-dim);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
}
.process-workflow figcaption {
    padding: 12px 18px;
    color: var(--text-faint);
    font-size: 12px;
    letter-spacing: 0.04em;
    border-top: 1px solid var(--border);
}
.process-workflow figcaption strong {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    margin-right: 4px;
}
.process-workflow figcaption code {
    color: var(--text-dim);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    word-break: break-all;
}

/* For feature cards in the AI Work grid, the workflow appears as a full-width banner below */
.work-card-workflow {
    grid-column: 1 / -1;
    margin: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    border-bottom: none;
    border-left: none;
    border-right: none;
}

/* ===== AI-Toolkit install script display ===== */
.aitk-script {
    margin: 24px 0 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.xy-plot-pair {
    margin: 20px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.xy-plot-item {
    margin: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.xy-plot-item a { display: block; line-height: 0; }
.xy-plot-item img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
    background: #050505;
}
.xy-plot-item figcaption {
    padding: 12px 18px;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.6;
    border-top: 1px solid var(--border);
}
.xy-plot-item figcaption strong {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    margin-right: 4px;
}
.xy-plot-credit {
    margin: 14px 0 0;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--text-faint);
    font-style: italic;
}
.xy-plot-credit a {
    color: var(--gold);
    border-bottom: 1px dotted rgba(245, 166, 35, 0.4);
}
.xy-plot-credit a:hover { border-bottom-color: var(--gold); }
@media (max-width: 720px) {
    .xy-plot-pair { grid-template-columns: 1fr; }
}

.aitk-gui {
    margin: 24px 0 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.aitk-gui header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    background: rgba(245,166,35,0.06);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.aitk-gui a { display: block; line-height: 0; }
.aitk-gui img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
    max-height: 720px;
    object-fit: contain;
    background: #050505;
}
.aitk-credit {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}
.aitk-credit a { color: var(--gold); border-bottom: 1px dotted rgba(245, 166, 35, 0.4); }
.aitk-credit a:hover { border-bottom-color: var(--gold); }
.aitk-script header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    background: rgba(245,166,35,0.06);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.aitk-step {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    color: var(--gold);
    font-weight: 600;
}
.aitk-file {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    color: var(--text-dim);
    background: rgba(255,255,255,0.04);
    padding: 4px 10px;
    border-radius: 3px;
    word-break: break-all;
}
.aitk-code {
    margin: 0;
    padding: 20px 24px;
    background: #050505;
    color: #d6d6d6;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    line-height: 1.65;
    overflow-x: auto;
    white-space: pre;
}
.aitk-code code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
}
.aitk-note {
    padding: 14px 20px;
    margin: 0;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.7;
    border-top: 1px solid var(--border);
    font-style: italic;
}

/* ===== Workflows gallery ===== */
.workflows {
    padding: 120px 0;
    background-color: var(--bg-deep);
}
.workflow-list {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    flex-direction: column;
    gap: 56px;
}
.workflow-item {
    margin: 0;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.workflow-item:hover {
    border-color: rgba(245, 166, 35, 0.4);
    transform: translateY(-3px);
}
.workflow-item a {
    display: block;
    background: #0a0a0a;
    line-height: 0;
}
.workflow-item img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
}
.workflow-item figcaption {
    padding: 22px 28px 26px;
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.7;
    border-top: 1px solid var(--border);
}
.workflow-item figcaption strong {
    color: var(--text);
    font-size: 17px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.workflow-item figcaption code {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    color: var(--gold);
    background: rgba(245, 166, 35, 0.08);
    padding: 3px 10px;
    border-radius: 3px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    word-break: break-all;
}
.workflow-meta {
    display: block;
    margin-top: 10px;
    color: var(--text-faint);
    font-size: 13px;
    line-height: 1.6;
}

/* ===== Film/TV credits ===== */
.film-tv {
    padding: 120px 0;
    background-color: var(--bg-section);
}
.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 26px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
}
.credit-item {
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.credit-item:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0,0,0,0.5); }
.credit-item a { display: block; }
.credit-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #1a2530 0%, #050505 100%);
}
.credit-image-container:not(:has(img))::before {
    content: attr(data-title);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: rgba(245,166,35,0.9);
    line-height: 1.3;
    pointer-events: none;
}
.credit-image-container img { position: relative; z-index: 1; }
.credit-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.credit-item:hover .credit-image { transform: scale(1.04); }
.credit-info { padding: 18px 18px 22px; text-align: left; }
.credit-title { font-size: 17px; margin-bottom: 6px; color: var(--text); }
.credit-year { font-size: 13px; color: var(--gold); margin-bottom: 4px; font-weight: 600; letter-spacing: 0.06em; }
.credit-role { font-size: 13px; color: var(--text-dim); }
.credit-episodes { font-size: 12px; color: var(--text-faint); margin-top: 4px; }

/* ===== About ===== */
.about { padding: 120px 0; background-color: var(--bg); }
.about .section-content { max-width: 760px; margin: 0 auto; padding: 0 28px; text-align: center; }
.about h2 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 16px; }
.about p { font-size: 17px; color: rgba(255,255,255,0.85); margin-bottom: 22px; line-height: 1.85; text-align: left; }
.about .affiliations {
    text-align: center !important;
    font-size: 12px !important;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold) !important;
    margin-top: 30px !important;
}

/* ===== Contact ===== */
.contact { padding: 120px 0 100px; background-color: var(--bg-section); }
.contact .section-content { max-width: 600px; margin: 0 auto; padding: 0 28px; text-align: center; }
.contact h2 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 16px; }
.contact > .section-content > p { color: var(--text-dim); margin-bottom: 40px; }
.contact-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    text-align: left;
}
.contact-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--border);
}
.contact-line:last-child { border-bottom: none; }
.contact-line:hover { background: rgba(245,166,35,0.06); color: var(--text); }
.contact-label {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
}
.contact-value { font-size: 16px; color: var(--text); }

/* ===== Footer ===== */
footer {
    padding: 32px 20px;
    background-color: var(--bg-deep);
    text-align: center;
    border-top: 1px solid var(--border);
}
footer p { color: var(--text-faint); font-size: 13px; letter-spacing: 0.08em; }

/* ===== Fade-in ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    header { padding: 14px 20px; }
    header nav ul { gap: 18px; }
    nav ul li a { font-size: 12px; }
    .process-pair { grid-template-columns: 1fr; }
    .work-grid { grid-template-columns: 1fr 1fr; padding: 0 16px; }
    .feature-block, .feature-block-reverse { grid-template-columns: 1fr; gap: 40px; }
    .feature-block-reverse .feature-block-text { order: 1; }
    .feature-block-reverse .feature-block-media { order: 2; }
}
@media (max-width: 640px) {
    header { padding: 12px 16px; flex-wrap: wrap; }
    header nav ul { gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 8px; width: 100%; }
    nav ul li a { font-size: 11px; }
    .logo { font-size: 18px; }
    .hero { padding-top: 130px; }
    .work-grid { grid-template-columns: 1fr; padding: 0 16px; }
    .credits-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .statement-inner { gap: 60px; }
    .ai-work, .process, .tooling, .film-tv, .about, .contact { padding: 80px 0; }
}
