/* ===========================================================================
   Flythrough, second pass, 2026-08-04.
   One clean layer for the new page: the studio (prompt, photo, frame count),
   the frame wall, the assembled flight and the frames engine chrome.
   Everything here is scoped to .fy-* or .fw-*, so the older ft-* rules that
   still dress the camera move builder and the demo modal are untouched.
   =========================================================================== */

.fy {
    --fy-ink: #0F0F11;
    --fy-ink-2: #2A2A2E;
    --fy-line: rgba(15, 15, 17, 0.12);
    --fy-card: #FFFFFF;
    --fy-page: #EDECEC;
    --fy-accent: #B4791F;
    --fy-radius: 22px;
    --fy-shadow: 0 1px 2px rgba(15,15,17,0.06), 0 8px 28px rgba(15,15,17,0.08);
    --fy-shadow-lift: 0 2px 4px rgba(15,15,17,0.07), 0 18px 44px rgba(15,15,17,0.14);
    font-family: var(--sc-font, system-ui, -apple-system, "Segoe UI", sans-serif);
    color: var(--fy-ink);
    max-width: 1460px;
    margin: 0 auto;
    padding: 34px 30px 90px;
}

html:not([data-theme="light"]) .fy {
    --fy-ink: #F6F6F7;
    --fy-ink-2: #DCDCDF;
    --fy-line: rgba(255, 255, 255, 0.14);
    --fy-card: #232326;
    --fy-page: #151517;
    --fy-accent: #E0A83F;
    --fy-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 10px 30px rgba(0,0,0,0.35);
    --fy-shadow-lift: 0 2px 6px rgba(0,0,0,0.45), 0 22px 50px rgba(0,0,0,0.5);
}

.fy *, .fy *::before, .fy *::after { box-sizing: border-box; }

/* ------------------------------------------------------------- type scale -- */
.fy-h1 {
    font-size: clamp(38px, 5.2vw, 74px);
    line-height: 0.98;
    letter-spacing: -0.035em;
    font-weight: 700;
    margin: 0 0 18px;
    color: var(--fy-ink);
}

.fy-h1 em { font-style: normal; color: var(--fy-accent); }

.fy-h2 {
    font-size: clamp(26px, 2.8vw, 38px);
    line-height: 1.06;
    letter-spacing: -0.028em;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--fy-ink);
}

.fy-h2 em { font-style: normal; color: var(--fy-accent); }

.fy-lead {
    font-size: 17px;
    line-height: 1.55;
    margin: 0;
    max-width: 60ch;
    color: var(--fy-ink);
    opacity: 0.82;
}

.fy-kicker {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 14px;
    color: var(--fy-ink);
    opacity: 0.55;
}

.fy-sec { margin-bottom: 74px; }
.fy-sec__head { margin-bottom: 26px; }

/* ------------------------------------------------------------------ hero -- */
.fy-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 46px;
    align-items: center;
    margin-bottom: 76px;
}

.fy-facts {
    display: flex;
    gap: 34px;
    flex-wrap: wrap;
    list-style: none;
    margin: 30px 0 0;
    padding: 0;
    font-size: 13.5px;
    color: var(--fy-ink);
}

.fy-facts li { opacity: 0.72; }
.fy-facts strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    opacity: 1;
}

.fy-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* ---------------------------------------------------------------- buttons -- */
.fy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--fy-line);
    background: var(--fy-card);
    color: var(--fy-ink);
    border-radius: 99px;
    padding: 14px 28px;
    font: inherit;
    font-size: 14.5px;
    font-weight: 650;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--fy-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.fy-btn:hover { transform: translateY(-2px); box-shadow: var(--fy-shadow-lift); }
.fy-btn:disabled { opacity: 0.5; cursor: progress; transform: none; }

.fy-btn--go {
    background: var(--fy-ink);
    color: var(--fy-page);
    border-color: transparent;
}

html:not([data-theme="light"]) .fy-btn--go { background: #F6F6F7; color: #151517; }

.fy-btn--sm { padding: 9px 18px; font-size: 13px; }

/* ---------------------------------------------------------- hero scrubber -- */
.fy-scrub {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--fy-radius);
    overflow: hidden;
    background: #05070d;
    box-shadow: var(--fy-shadow-lift);
}

.fy-scrub img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.25s linear;
}

.fy-scrub img.is-on { opacity: 1; }

.fy-scrub__tag {
    position: absolute;
    left: 16px;
    bottom: 18px;
    z-index: 3;
    padding: 8px 15px;
    border-radius: 99px;
    font-size: 12.5px;
    font-weight: 650;
    color: #FFFFFF;
    background: rgba(10, 12, 18, 0.66);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.fy-scrub__bar {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 3;
    height: 3px;
    background: rgba(255, 255, 255, 0.18);
}

.fy-scrub__bar i {
    display: block;
    height: 100%;
    width: 0;
    background: #FFFFFF;
}

/* --------------------------------------------------------------- studio --- */
.fy-studio {
    display: grid;
    grid-template-columns: 400px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.fy-panel {
    background: var(--fy-card);
    border: 1px solid var(--fy-line);
    border-radius: var(--fy-radius);
    box-shadow: var(--fy-shadow);
    padding: 26px;
}

.fy-desk { position: sticky; top: 92px; display: grid; gap: 20px; }

.fy-field { display: grid; gap: 8px; }

.fy-field > span {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--fy-ink);
}

.fy-field textarea,
.fy-field input[type="text"] {
    width: 100%;
    font: inherit;
    font-size: 15px;
    line-height: 1.5;
    color: var(--fy-ink);
    background: var(--fy-page);
    border: 1px solid var(--fy-line);
    border-radius: 16px;
    padding: 14px 16px;
    outline: none;
    resize: vertical;
}

.fy-field textarea::placeholder,
.fy-field input::placeholder { color: var(--fy-ink); opacity: 0.42; }

.fy-field textarea:focus,
.fy-field input:focus { border-color: var(--fy-ink); }

.fy-hint {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--fy-ink);
    opacity: 0.66;
}

/* count and ratio choosers */
.fy-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.fy-chip {
    border: 1px solid var(--fy-line);
    background: var(--fy-page);
    color: var(--fy-ink);
    border-radius: 99px;
    padding: 9px 16px;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.fy-chip:hover { transform: translateY(-1px); }

.fy-chip.is-on {
    background: var(--fy-ink);
    color: var(--fy-page);
    border-color: transparent;
}

html:not([data-theme="light"]) .fy-chip.is-on { background: #F6F6F7; color: #151517; }

.fy-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--fy-page);
    border: 1px solid var(--fy-line);
    font-size: 13.5px;
    font-weight: 650;
}

.fy-price b { font-size: 17px; letter-spacing: -0.02em; }

/* the reference photo */
.fy-ref { display: flex; align-items: center; gap: 14px; }

.fy-ref img {
    width: 92px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--fy-shadow);
}

.fy-link {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    font-size: 13.5px;
    font-weight: 650;
    color: var(--fy-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* --------------------------------------------------------- the frame wall -- */
.fy-wall { min-height: 420px; }

.fy-wall__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.fy-wall__title { font-size: 15px; font-weight: 700; }
.fy-wall__title small { font-weight: 600; opacity: 0.6; }

.fy-grid {
    columns: 3;
    column-gap: 16px;
}

.fy-shot {
    break-inside: avoid;
    margin: 0 0 16px;
    background: var(--fy-card);
    border: 1px solid var(--fy-line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--fy-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.fy-shot:hover { transform: translateY(-3px); box-shadow: var(--fy-shadow-lift); }

.fy-shot.is-out { opacity: 0.34; }

.fy-shot__pic {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(110deg, rgba(120,120,130,0.16), rgba(120,120,130,0.06));
}

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

.fy-shot__n {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 99px;
    background: rgba(10, 12, 18, 0.72);
    color: #FFFFFF;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fy-shot__wait {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 650;
    letter-spacing: 0.02em;
    color: var(--fy-ink);
    opacity: 0.72;
}

.fy-shot__wait::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.28) 50%, transparent 80%);
    animation: fy-sweep 1.5s linear infinite;
}

html:not([data-theme="light"]) .fy-shot__wait::after {
    background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.08) 50%, transparent 80%);
}

@keyframes fy-sweep {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

.fy-shot__foot {
    display: grid;
    gap: 8px;
    padding: 12px 14px 14px;
}

.fy-shot__foot input {
    width: 100%;
    font: inherit;
    font-size: 13.5px;
    color: var(--fy-ink);
    background: var(--fy-page);
    border: 1px solid var(--fy-line);
    border-radius: 12px;
    padding: 9px 12px;
    outline: none;
}

.fy-shot__foot input::placeholder { color: var(--fy-ink); opacity: 0.42; }
.fy-shot__foot input:focus { border-color: var(--fy-ink); }

.fy-shot__tools { display: flex; gap: 6px; flex-wrap: wrap; }

.fy-tool {
    border: 1px solid var(--fy-line);
    background: var(--fy-page);
    color: var(--fy-ink);
    border-radius: 99px;
    padding: 6px 13px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 650;
    cursor: pointer;
}

.fy-tool:hover { background: var(--fy-card); }

.fy-empty {
    display: grid;
    place-items: center;
    text-align: center;
    min-height: 420px;
    padding: 40px;
    border: 1px dashed var(--fy-line);
    border-radius: var(--fy-radius);
    color: var(--fy-ink);
}

.fy-empty h3 { font-size: 19px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.02em; }
.fy-empty p { margin: 0; font-size: 14.5px; opacity: 0.7; max-width: 44ch; }

/* --------------------------------------------------------- assembled flight */
.fy-out { margin-top: 26px; }

.fy-stage {
    position: relative;
    height: min(70vh, 620px);
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: var(--fy-radius);
    background: #05070d;
    box-shadow: var(--fy-shadow-lift);
}

.fy-out__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.fy-embed {
    width: 100%;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--fy-ink);
    background: var(--fy-page);
    border: 1px solid var(--fy-line);
    border-radius: 16px;
    padding: 14px 16px;
    margin-top: 16px;
    resize: vertical;
}

/* -------------------------------------------------------------- how cards -- */
.fy-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.fy-card {
    background: var(--fy-card);
    border: 1px solid var(--fy-line);
    border-radius: var(--fy-radius);
    box-shadow: var(--fy-shadow);
    padding: 26px;
}

.fy-card h3 { font-size: 17px; font-weight: 700; margin: 14px 0 8px; letter-spacing: -0.015em; }
.fy-card p { font-size: 14.5px; line-height: 1.55; margin: 0; opacity: 0.78; }

.fy-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--fy-ink);
    color: var(--fy-page);
    font-size: 14px;
    font-weight: 700;
}

html:not([data-theme="light"]) .fy-num { background: #F6F6F7; color: #151517; }

.fy-final { text-align: center; }
.fy-final .fy-lead { margin: 0 auto; }
.fy-final .fy-cta { justify-content: center; }

.fy-note {
    padding: 16px 20px;
    border-radius: 18px;
    border: 1px solid var(--fy-line);
    background: var(--fy-card);
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 22px;
    box-shadow: var(--fy-shadow);
}

.fy-fold {
    margin-top: 30px;
    border-top: 1px solid var(--fy-line);
    padding-top: 22px;
}

.fy-fold > summary {
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    list-style: none;
    color: var(--fy-ink);
}

.fy-fold > summary::-webkit-details-marker { display: none; }
.fy-fold > summary::before { content: '+ '; font-weight: 700; }
.fy-fold[open] > summary::before { content: '- '; }

/* ------------------------------------------------------------- responsive -- */
@media (max-width: 1240px) {
    .fy-studio { grid-template-columns: 340px minmax(0, 1fr); }
    .fy-grid { columns: 2; }
}

@media (max-width: 980px) {
    .fy-hero { grid-template-columns: 1fr; gap: 30px; }
    .fy-hero__media { order: -1; }
    .fy-studio { grid-template-columns: 1fr; }
    .fy-desk { position: static; }
    .fy-cards { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .fy { padding: 22px 15px 70px; }
    .fy-grid { columns: 1; }
    .fy-sec { margin-bottom: 54px; }
}

/* ===========================================================================
   The frames engine chrome, used by fly-frames.js both in the preview panel
   and on a page of its own.
   =========================================================================== */
.fw { position: relative; width: 100%; }
.fw-track { position: relative; width: 100%; }

.fw-stage {
    position: sticky;
    top: 0;
    width: 100%;
    overflow: hidden;
    background: #05070d;
}

.fw-layer { position: absolute; inset: 0; }

.fw-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    will-change: opacity, transform;
    /* The push goes toward the middle of the frame, a touch above centre,
       which is where a door or a window usually sits. */
    transform-origin: 50% 48%;
}

/* The dark of the opening. It closes over the last part of a push and opens
   again on the next frame, so the picture is changed where nothing is seen. */
.fw-veil {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: #000;
    opacity: 0;
    pointer-events: none;
}

.fw-shade {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(96deg, rgba(5,7,13,0.78) 0%, rgba(5,7,13,0.42) 38%, rgba(5,7,13,0) 68%),
                linear-gradient(0deg, rgba(5,7,13,0.5) 0%, rgba(5,7,13,0) 42%);
}

.fw-copy {
    position: absolute;
    left: clamp(20px, 5%, 64px);
    top: 50%;
    z-index: 4;
    width: min(46%, 520px);
    transform: translateY(-46%);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    color: #FFFFFF;
}

.fw-copy.is-in { opacity: 1; transform: translateY(-50%); }

.fw-copy__eyebrow {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.78;
    margin-bottom: 12px;
}

.fw-copy__title {
    font-size: clamp(24px, 3vw, 42px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.fw-copy__body {
    font-size: clamp(14px, 1.15vw, 17px);
    line-height: 1.55;
    margin: 14px 0 0;
    max-width: 44ch;
    opacity: 0.92;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.fw-rail {
    position: absolute;
    right: 18px;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    display: grid;
    gap: 9px;
}

.fw-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
    transition: all 0.2s ease;
}

.fw-dot.is-on { background: #FFFFFF; height: 20px; }

.fw-hint {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 5;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    transition: opacity 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    .fy-btn, .fy-shot, .fy-chip { transition: none; }
    .fy-btn:hover, .fy-shot:hover, .fy-chip:hover { transform: none; }
}
