/* ──────────────────────────────────────────────
   Shared styles for individual project pages
   Light theme, modelled on the A24 product page
   ────────────────────────────────────────────── */

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

:root {
    --bg: #efeeec;
    --ink: #111111;
    --muted: #8b8b88;
    --rule: rgba(0, 0, 0, 0.22);
    --rule-soft: rgba(0, 0, 0, 0.12);
    --accent: #2b3ff5;
    --ph: #e2e1de;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

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

/* ── HEADER ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 18px 30px;
    background: rgba(239, 238, 236, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.crumb {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
}

.crumb a { color: var(--ink); text-decoration: none; }
.crumb a:hover { opacity: 0.55; }
.crumb .sep { color: var(--muted); }

.menu-bars {
    display: block;
    width: 24px;
    height: 7px;
    border-top: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transition: transform 0.25s ease;
}

a:hover .menu-bars { transform: scaleX(0.72); }

.wordmark {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-decoration: none;
    color: var(--ink);
    justify-self: center;
    transition: opacity 0.2s ease;
}

.wordmark:hover { opacity: 0.7; }

.header-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
}

.header-right a { color: var(--ink); text-decoration: none; }
.header-right a:hover { opacity: 0.55; }

/* ── HERO ── */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end;
    padding: 130px 30px 0;
    min-height: 92vh;
}

.hero-text { padding-bottom: 40px; }

.eyebrow {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px;
}

.project-title {
    font-size: clamp(40px, 6.4vw, 92px);
    font-weight: 700;
    line-height: 0.94;
    letter-spacing: -0.042em;
    margin-bottom: 26px;
}

/* year + type, sized like the A24 price row */
.title-meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 14px;
}

.meta-lead {
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.meta-sub {
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--muted);
}

.meta-note {
    border-left: 1px solid var(--rule);
    padding-left: 14px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--muted);
}

.meta-note a { color: var(--ink); }

/* ── BODY GRID ── */
.detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 90px 30px 40px;
    align-items: start;
}

.detail-info { position: sticky; top: 96px; }

/* ── FIELD (hairline + micro label) ── */
.field {
    border-top: 1px solid var(--ink);
    padding-top: 7px;
    margin-bottom: 54px;
    max-width: 400px;
}

.field-label {
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.body-copy {
    font-size: 15px;
    line-height: 1.42;
    max-width: 32ch;
}

.body-copy + .body-copy { margin-top: 1.1em; }
.body-copy em { font-style: italic; }
.body-copy a { color: var(--ink); }

.inline-link {
    display: inline-block;
    margin-top: 26px;
    font-size: 15px;
    line-height: 1.42;
    color: var(--accent);
    text-decoration: none;
}

.inline-link:hover { text-decoration: underline; }

/* ── SPEC LIST (the "MORE INFO" stack) ── */
.spec { list-style: none; }

.spec li {
    font-size: 12px;
    letter-spacing: 0.04em;
    line-height: 1;
    margin-bottom: 26px;
}

.spec .k {
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.spec .v {
    display: block;
    color: var(--muted);
}

/* ── TAGS ── */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    color: #555;
    border: 1px solid var(--rule);
    padding: 5px 10px;
}

/* ── CTA (the black PREORDER box) ── */
.cta {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 76px;
    background: var(--ink);
    color: var(--bg);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    max-width: 400px;
    transition: opacity 0.2s ease;
}

.cta:hover { opacity: 0.82; }

.cta.ghost {
    background: none;
    color: var(--ink);
    border: 1px solid var(--ink);
}

/* ── HERO MEDIA ──
   The same asset the index shows for this project.         */
.hero-shot {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: var(--ph);
    border: 1px solid var(--rule-soft);
}

/* ── MEDIA PLACEHOLDERS ──
   Swap .ph for <img>/<video> as real assets arrive.        */
.media-stack { display: grid; gap: 20px; }

.ph {
    position: relative;
    width: 100%;
    aspect-ratio: var(--ar, 4 / 3);
    background: var(--ph);
    border: 1px solid var(--rule-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* faint cross, so an empty slot reads as intentional */
.ph::before,
.ph::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, transparent calc(50% - 0.5px), var(--rule-soft) 50%, transparent calc(50% + 0.5px));
    opacity: 0.7;
}

.ph::after { transform: scaleX(-1); }

.ph-label {
    position: relative;
    z-index: 1;
    background: var(--bg);
    padding: 6px 12px;
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.ph-tall { --ar: 3 / 4; }
.ph-wide { --ar: 16 / 9; }
.ph-square { --ar: 1 / 1; }

/* Real media dropped straight in as <img class="ph-wide"> (etc), replacing a
   .ph div rather than sitting inside one. Without this, aspect-ratio alone
   just sets the box shape — an <img>'s default object-fit is `fill`, which
   stretches the source to that shape instead of cropping it. */
img.ph-tall, img.ph-wide, img.ph-square,
video.ph-tall, video.ph-wide, video.ph-square {
    width: 100%;
    aspect-ratio: var(--ar);
    object-fit: cover;
    display: block;
    border: 1px solid var(--rule-soft);
}

.media-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.caption {
    font-size: 10px;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-top: 10px;
}

/* ── NEXT / FOOTER ── */
.next {
    border-top: 1px solid var(--ink);
    margin: 60px 30px 0;
    padding: 24px 0 90px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    text-decoration: none;
    color: var(--ink);
}

.next-label {
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.next-title {
    font-size: clamp(28px, 4vw, 56px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.next:hover .next-title { opacity: 0.55; }

.site-footer {
    border-top: 1px solid var(--rule-soft);
    padding: 26px 30px 40px;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .site-header { padding: 14px 18px; }
    .crumb .crumb-text { display: none; }
    .header-right .hide-sm { display: none; }

    .hero {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 90px 18px 0;
        min-height: 0;
        align-items: start;
    }

    .hero-media { order: -1; }
    .hero-text { padding-bottom: 0; }

    .detail {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 18px 20px;
    }

    .detail-info { position: static; }
    .field { max-width: none; margin-bottom: 42px; }
    .body-copy { max-width: none; }
    .cta { max-width: none; }
    .next { margin: 40px 18px 0; }
    .site-footer { padding: 22px 18px 36px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition-duration: 0.01ms !important; }
}
