/* Goldthread, the October 2026 update: the homepage hero and strip, and /updates/goldthread.
   Colours come from the game's own art: the title scene's night sky, its lantern, the Codex parchment and ledger ink. */
:root {
    --gt-night-0: #0b1020;
    --gt-night-1: #121a33;
    --gt-amber: #e8b45a;
    --gt-amber-hi: #f2c879;
    --gt-spark: #fff0b8;
    --gt-parch: #efe0bd;
    --gt-leather: #6b4a2b;
    --gt-hair: #c9a86a;
    --gt-ink: #2b1d12;
    --gt-ink-soft: #5a4632;
    --gt-rust: #8c2f2b;
    --gt-mint: #9be7c0;
    --gt-text: #e9e4d6;
    --gt-muted: #b3ac9c;
}

.gt-kicker {
    margin: 0;
    color: var(--gt-amber);
    font-family: Cinzel, Georgia, serif;
    font-size: .84rem;
    font-variant: small-caps;
    font-weight: 700;
    letter-spacing: .14em;
}

/* ---- Hero: the living title scene ---- */
.gt-hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: min(88vh, 860px);
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    background: var(--gt-night-0);
}

.gt-hero-media,
.gt-hero-shade {
    position: absolute;
    inset: 0;
}

.gt-hero-media { z-index: -2; }
.gt-hero-shade {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(11, 16, 32, .9) 0%, rgba(11, 16, 32, .6) 40%, rgba(11, 16, 32, .06) 74%),
        linear-gradient(180deg, rgba(11, 16, 32, 0) 50%, rgba(11, 16, 32, .94) 100%);
}

.gt-hero-media img,
.gt-hero-media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.gt-hero-media video {
    opacity: 0;
    transition: opacity .9s ease;
}

.gt-hero-media video.is-playing { opacity: 1; }

.gt-hero-inner {
    width: min(1240px, 100%);
    margin: 0 auto;
    padding: 6.5rem clamp(1rem, 4vw, 3rem) 3.25rem;
}

.gt-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .85rem;
    border: 1px solid rgba(232, 180, 90, .45);
    border-radius: 999px;
    background: rgba(11, 16, 32, .6);
    color: var(--gt-spark);
    font-size: .78rem;
    font-weight: 600;
}

.gt-chip::before {
    content: "";
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--gt-mint);
    box-shadow: 0 0 10px var(--gt-mint);
}

.gt-hero .gt-kicker { margin-top: 1.1rem; }

.gt-hero h1 {
    margin: .5rem 0 .2rem;
    color: var(--gt-spark);
    font-family: Cinzel, Georgia, serif;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.1;
}

.gt-display {
    max-width: 11ch;
    margin: 0 0 1rem;
    color: #fff;
    font-size: clamp(2.4rem, 6.2vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.02;
    text-wrap: balance;
}

.gt-display span { color: var(--gt-amber); }

.gt-lede {
    max-width: 52ch;
    margin: 0 0 1.5rem;
    color: var(--gt-text);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.6;
}

.gt-hero .public-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
}

.gt-hero .public-hero-actions .btn { min-height: 50px; }
.gt-hero .public-hero-actions .btn:active { transform: translateY(1px); }

.gt-cue {
    display: inline-block;
    margin-top: 1.2rem;
    color: var(--gt-muted);
    font-size: .88rem;
}

.gt-hero .public-hero-actions .gt-cue {
    flex-basis: 100%;
    margin-top: .35rem;
}

/* The waitlist form left the hero; it now follows the strip on its own band. */
.home-waitlist-band {
    padding: 0 clamp(1rem, 4vw, 3rem) 3.5rem;
    background: var(--gt-night-0);
}

.home-waitlist-band .hero-waitlist {
    width: min(1240px, 100%);
    margin: 0 auto;
}

.gt-cue:hover,
.gt-cue:focus-visible { color: var(--gt-spark); }

.gt-capture {
    position: absolute;
    right: clamp(1rem, 4vw, 3rem);
    bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0;
    color: var(--gt-muted);
    font-size: .74rem;
    letter-spacing: .03em;
}

/* Play and pause controls for every moving element. Hidden until the script takes over the video. */
.gt-toggle {
    display: inline-grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    border: 1px solid rgba(255, 240, 184, .45);
    border-radius: 50%;
    background: rgba(11, 16, 32, .72);
    color: var(--gt-spark);
    cursor: pointer;
}

.gt-toggle[hidden] { display: none; }
.gt-toggle::before {
    content: "";
    width: .7rem;
    height: .7rem;
    background: currentColor;
    clip-path: polygon(15% 0, 100% 50%, 15% 100%);
}

.gt-toggle[data-state="playing"]::before { clip-path: polygon(0 0, 38% 0, 38% 100%, 0 100%, 0 0, 62% 0, 100% 0, 100% 100%, 62% 100%, 62% 0); }
.gt-toggle:focus-visible { outline: 2px solid var(--gt-spark); outline-offset: 2px; }

/* ---- The strip: parchment plates holding the loops ---- */
.gt-strip {
    padding: 3.5rem clamp(1rem, 4vw, 3rem) 4rem;
    background: linear-gradient(180deg, var(--gt-night-0) 0%, var(--gt-night-1) 60%, var(--gt-night-0) 100%);
}

.gt-strip-inner {
    width: min(1240px, 100%);
    margin: 0 auto;
}

.gt-strip-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 1rem 2rem;
    margin-bottom: 1.6rem;
}

.gt-strip h2,
.gt-codex-band h2,
.gt-page h2 {
    margin: .3rem 0 .45rem;
    color: #fff;
    font-family: Cinzel, Georgia, serif;
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.12;
}

.gt-strip-head p:not(.gt-kicker) {
    max-width: 58ch;
    margin: 0;
    color: var(--gt-muted);
    line-height: 1.6;
}

.gt-links {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem 1.4rem;
    font-size: .95rem;
    font-weight: 600;
}

.gt-links a { color: var(--gt-amber); }
.gt-links a:hover,
.gt-links a:focus-visible { color: var(--gt-amber-hi); }

.gt-featured {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.gt-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .9rem;
    margin-top: 1.1rem;
}

.gt-plate {
    margin: 0;
    padding: .55rem .55rem .9rem;
    border: 2px solid var(--gt-leather);
    border-radius: 12px;
    outline: 1px solid var(--gt-hair);
    outline-offset: -5px;
    background: radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .35), transparent 60%), var(--gt-parch);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
    color: var(--gt-ink);
}

.gt-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(43, 29, 18, .35);
    border-radius: 7px;
    background: var(--gt-night-0);
    aspect-ratio: 16 / 10;
}

/* Letterbox, never crop: every capture is framed so that no UI or text sits on its edge. */
.gt-frame img,
.gt-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gt-frame video {
    opacity: 0;
    transition: opacity .45s ease;
}

.gt-frame video.is-playing { opacity: 1; }

.gt-frame .gt-toggle {
    position: absolute;
    right: .45rem;
    bottom: .45rem;
    z-index: 1;
    width: 1.9rem;
    height: 1.9rem;
}

.gt-plate figcaption { padding: .75rem .35rem 0; }

.gt-plate figcaption b {
    display: block;
    color: var(--gt-rust);
    font-family: Cinzel, Georgia, serif;
    font-size: 1rem;
    letter-spacing: .02em;
}

.gt-plate figcaption span {
    display: block;
    margin-top: .2rem;
    color: var(--gt-ink-soft);
    font-size: .92rem;
    line-height: 1.45;
}

.gt-row .gt-plate { padding: .45rem .45rem .7rem; }
.gt-row .gt-plate figcaption b { font-size: .9rem; }
.gt-row .gt-plate figcaption span { font-size: .8rem; }

.gt-disclosure {
    max-width: 82ch;
    margin: 1.3rem 0 0;
    color: var(--gt-muted);
    font-size: .84rem;
    line-height: 1.55;
}

/* ---- The Codex band ---- */
.gt-codex-band {
    padding: 3.5rem clamp(1rem, 4vw, 3rem);
    background: var(--gt-night-0);
}

.gt-codex-band .gt-strip-inner > p:not(.gt-kicker) {
    max-width: 62ch;
    margin: 0 0 1.5rem;
    color: var(--gt-muted);
    line-height: 1.6;
}

.gt-codex {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.gt-codex .gt-frame { aspect-ratio: 16 / 9; }

@media (max-width: 1100px) {
    .gt-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .gt-featured { grid-template-columns: 1fr 1fr; }
    .gt-featured .gt-plate:first-child { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
    /* Phones show the whole scene as a band, so all four characters stay in frame above the copy. */
    .gt-hero { display: block; min-height: auto; padding-top: 65px; }
    .gt-hero-media { position: relative; inset: auto; aspect-ratio: 16 / 9; }
    .gt-hero-shade {
        top: 65px;
        bottom: auto;
        height: 56.25vw;
        background: linear-gradient(180deg, rgba(11, 16, 32, .45) 0%, rgba(11, 16, 32, 0) 32%, rgba(11, 16, 32, 0) 62%, var(--gt-night-0) 100%);
    }
    .gt-hero-inner { padding: .5rem 1rem 1.5rem; }
    .gt-display { max-width: none; }
    .gt-hero .public-hero-actions { flex-direction: column; align-items: stretch; }
    .gt-hero .public-hero-actions .btn { justify-content: center; }
    .gt-capture { position: static; padding: 0 1rem 1rem; }
    .gt-strip,
    .gt-codex-band { padding: 2.5rem 1rem 3rem; }
    .gt-strip-head { grid-template-columns: 1fr; }
    .gt-featured,
    .gt-row,
    .gt-codex {
        display: flex;
        gap: .9rem;
        margin-inline: -1rem;
        padding: 0 1rem .5rem;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
    }
    .gt-featured .gt-plate,
    .gt-codex .gt-plate { flex: 0 0 86%; scroll-snap-align: center; }
    .gt-row .gt-plate { flex: 0 0 62%; scroll-snap-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .gt-hero-media video,
    .gt-frame video { transition: none; }
}

/* ---- /updates/goldthread ---- */
.gt-page {
    display: grid;
    /* One track the width of the page: the phone scroller rows must not widen it to their content. */
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
    color: var(--gt-text);
}

.gt-page section { padding: 0; }

/* The public layout styles every h2 in Inter after this sheet loads, so these need the extra class. */
.public-wrapper .gt-page h2 {
    font-family: Cinzel, Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    letter-spacing: .01em;
}

.gt-page-intro p { max-width: 70ch; color: var(--gt-text); font-size: 1.05rem; line-height: 1.7; }
.gt-page-intro .gt-links { margin-top: 1rem; }

.gt-page-title {
    margin: .4rem 0 .9rem;
    color: #fff;
    font-family: Cinzel, Georgia, serif;
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    font-weight: 700;
    line-height: 1.08;
    text-wrap: balance;
}

.gt-section-lede {
    max-width: 72ch;
    margin: 0;
    color: var(--gt-muted);
    line-height: 1.65;
}

.gt-section-lede a { color: var(--gt-amber); }

.gt-page .gt-codex { margin-top: 1.25rem; }

.gt-footage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
    margin-top: 1.25rem;
}

.gt-video {
    position: relative;
    overflow: hidden;
    border-radius: 7px;
    background: #000;
    aspect-ratio: 1280 / 588;
}

.gt-video button {
    position: absolute;
    inset: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.gt-video img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gt-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.gt-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4rem;
    height: 4rem;
    border: 1px solid rgba(255, 240, 184, .6);
    border-radius: 50%;
    background: rgba(11, 16, 32, .75);
    transform: translate(-50%, -50%);
}

.gt-play-icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    border-top: .75rem solid transparent;
    border-bottom: .75rem solid transparent;
    border-left: 1.15rem solid var(--gt-spark);
    transform: translate(-50%, -50%);
}

.gt-video button:focus-visible { outline: 2px solid var(--gt-spark); outline-offset: -4px; }

.gt-note {
    padding: 1rem 1.15rem;
    border: 1px solid rgba(232, 180, 90, .35);
    border-left: 3px solid var(--gt-amber);
    border-radius: 10px;
    background: rgba(232, 180, 90, .06);
    color: var(--gt-text);
    line-height: 1.6;
}

.gt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
    align-items: start;
    gap: 1.1rem;
    margin-top: 1.25rem;
}

.gt-grid .gt-frame { aspect-ratio: var(--gt-ratio, 16 / 10); }

.gt-list {
    display: grid;
    gap: .65rem;
    max-width: 78ch;
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    line-height: 1.6;
}

.gt-list li::marker { color: var(--gt-amber); }

.gt-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    border: 2px solid var(--gt-leather);
    border-radius: 12px;
    outline: 1px solid var(--gt-hair);
    outline-offset: -5px;
    background: var(--gt-parch);
    color: var(--gt-ink);
}

.gt-cta p { margin: 0; max-width: 52ch; color: var(--gt-ink-soft); line-height: 1.55; }
.gt-cta strong { display: block; color: var(--gt-ink); font-family: Cinzel, Georgia, serif; font-size: 1.15rem; }
.gt-cta-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.gt-cta-actions a { color: var(--gt-rust); font-weight: 700; }
.gt-cta-actions .btn { color: inherit; }

.gt-faq details {
    padding: .9rem 1rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    background: rgba(255, 255, 255, .03);
}

.gt-faq details + details { margin-top: .6rem; }
.gt-faq summary { color: var(--gt-spark); font-weight: 700; cursor: pointer; }
.gt-faq details p { margin: .6rem 0 0; color: var(--gt-text); line-height: 1.6; }

@media (max-width: 1100px) {
    .gt-page .gt-codex { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .gt-footage { grid-template-columns: 1fr; }
    .gt-cta { flex-direction: column; align-items: stretch; }
    .gt-cta-actions .btn { width: 100%; justify-content: center; }
}
