/* BREAKOWT: a dark one-pager. The farm loops behind the title, then the trailer and a collage. */
:root {
    --bg: #13100d;
    --tile: #221c18;
    --cream: #fbf0d9;
    --cream-dim: rgba(251, 240, 217, 0.72);
    --gold: #f5c330;
    --barn: #b2372b;
    --barn-hi: #c8432f;
    --display: "Fraunces", "Cooper Black", Georgia, serif;
    --body: "Nunito", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--cream);
    font-family: var(--body);
    font-weight: 700;
    font-size: 1.08rem;
    line-height: 1.55;
}

a { color: var(--cream); }

/* ------------------------------------------------------------ hero: the farm behind the title */
.hero {
    position: relative;
    min-height: min(92vh, 860px);
    display: grid;
    place-items: center;
    overflow: hidden;
    text-align: center;
    isolation: isolate;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 50% 45%, rgba(19, 16, 13, 0.25), rgba(19, 16, 13, 0.6) 70%),
        linear-gradient(180deg, rgba(19, 16, 13, 0.1) 55%, var(--bg));
}
.hero-in { padding: 48px 16px 64px; }

.sign {
    display: inline-block;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45));
    -webkit-tap-highlight-color: transparent;
}
.sign img { display: block; width: clamp(110px, 22vw, 160px); height: auto; }
.sign.wobble img { animation: wobble 0.7s ease-out; }
@keyframes wobble {
    0% { transform: rotate(0); }
    20% { transform: rotate(-9deg) scale(1.04); }
    45% { transform: rotate(7deg); }
    70% { transform: rotate(-3deg); }
    100% { transform: rotate(0); }
}

h1 {
    margin: 8px 0 0;
    font-family: var(--display);
    font-weight: 900;
    font-variation-settings: "SOFT" 100, "opsz" 144;
    font-size: clamp(3.2rem, 14vw, 8rem);
    line-height: 0.95;
    letter-spacing: 0.01em;
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.55);
}
.subtitle {
    margin: 10px 0 0;
    color: var(--gold);
    font-weight: 900;
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.premise {
    margin: 22px auto 0;
    max-width: 24em;
    font-weight: 800;
    font-size: clamp(1.15rem, 3.6vw, 1.5rem);
    line-height: 1.35;
    text-wrap: balance;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}
.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 999px;
    border: 2px solid transparent;
    background: var(--barn);
    color: var(--cream);
    font-weight: 900;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: background 0.15s ease, transform 0.15s ease;
}
.button:hover, .button:focus-visible { background: var(--barn-hi); transform: translateY(-2px); }
.button svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.button.ghost { background: rgba(19, 16, 13, 0.35); border-color: rgba(251, 240, 217, 0.8); }
.button.ghost:hover, .button.ghost:focus-visible { background: rgba(251, 240, 217, 0.12); }

main { width: min(1100px, 100% - 32px); margin-inline: auto; container-type: inline-size; }

/* ------------------------------------------------------------ trailer */
.trailer { scroll-margin-top: 24px; }
.frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 92px;
    height: 92px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: var(--cream);
    color: var(--barn);
    cursor: pointer;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
    transition: transform 0.15s ease;
}
.play:hover, .play:focus-visible { transform: scale(1.07); }
.play svg { width: 54%; height: 54%; fill: currentColor; display: block; margin: auto; }
.frame.playing .play { display: none; }

/* ------------------------------------------------------------ collage: clips and stills, no captions */
.collage {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 150px;
    /* rows as tall as a 16:9 tile is wide, so 1x1, 2x2 and 2x1 tiles keep the footage's shape */
    grid-auto-rows: calc((100cqw - 30px) / 4 * 0.5625);
    grid-auto-flow: dense;
    gap: 10px;
    margin-top: 56px;
}
.tile {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    background: var(--tile);
    cursor: zoom-in;
}
.tile.big { grid-column: span 2; grid-row: span 2; }
.tile.tall { grid-row: span 2; }
.tile.wide { grid-column: span 2; }
.tile video, .tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.tile.top img { object-position: 50% 12%; }
.tile:hover video, .tile:hover img { transform: scale(1.04); }

/* ------------------------------------------------------------ the bottom: what it is, where to get it */
.get {
    margin: 88px auto 0;
    max-width: 640px;
    text-align: center;
}
.get h2 {
    margin: 0;
    font-family: var(--display);
    font-weight: 900;
    font-variation-settings: "SOFT" 100, "opsz" 144;
    font-size: clamp(2.2rem, 7vw, 3.4rem);
    line-height: 1.05;
}
.get p { margin: 14px 0 0; color: var(--cream-dim); }
.get .button { margin-top: 26px; }
.get .small { margin-top: 16px; font-size: 0.92rem; letter-spacing: 0.04em; }

footer {
    padding: 72px 16px 40px;
    text-align: center;
    color: var(--cream-dim);
    font-size: 0.92rem;
}
footer p { margin: 0; }
footer a { text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* ------------------------------------------------------------ lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(8, 6, 5, 0.92);
    cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox .stage { max-width: min(1400px, 100%); }
.lightbox .stage img, .lightbox .stage video {
    display: block;
    max-width: 100%;
    max-height: 86vh;
    border-radius: 10px;
}
.lightbox .close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: none;
    color: var(--cream);
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
}

/* ------------------------------------------------------------ narrow screens: two columns */
@media (max-width: 700px) {
    body { font-size: 1.02rem; }
    .hero { min-height: 88svh; }
    .frame { border-radius: 10px; }
    .play { width: 70px; height: 70px; }
    .collage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: calc((100cqw - 8px) / 2 * 0.5625);
        gap: 8px;
        margin-top: 36px;
    }
    .get { margin-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .sign.wobble img { animation: none; }
    .tile video, .tile img, .button, .play { transition: none; }
}
