/* ============================================================
   FREELANCE STUDIO — yellow / gold palette
   Distinct from recruiter (light emerald) and IDE (navy neon).
   Display: Syne · Body: Outfit
   ============================================================ */

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

:root {
    --fl-bg: #0f0e09;
    --fl-bg-2: #16140d;
    --fl-surface: #1d1a12;
    --fl-surface-2: #262218;
    --fl-ink: #f7f3e8;
    --fl-muted: #b3a98a;
    --fl-faint: #6f684f;
    --fl-copper: #f5d000;
    --fl-copper-2: #ffe56a;
    --fl-ember: #c9a008;
    --fl-line: rgba(247, 243, 232, 0.10);
    --fl-line-strong: rgba(245, 208, 0, 0.48);
    --fl-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    --fl-radius: 18px;
    --fl-radius-sm: 12px;
    --fl-max: 1120px;
    --fl-pad: clamp(18px, 4vw, 40px);
    --font-display: "Syne", system-ui, sans-serif;
    --font-body: "Outfit", system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fl-word,
    .fl-kicker::before,
    .fl-theater-progress i,
    .fl-bg-aurora,
    .fl-bg-mesh,
    .fl-bg-grid,
    .fl-bg-ribbons span,
    .fl-grain {
        animation: none !important;
    }
    .fl-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .fl-bg-dust { display: none; }
}

.fl-body {
    min-height: 100vh;
    background:
        radial-gradient(1200px 640px at 50% -12%, #3a2f0c 0%, transparent 52%),
        radial-gradient(900px 520px at 110% 110%, #1c1608 0%, transparent 48%),
        #0b0a07;
    color: var(--fl-ink);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.55;
    overflow-x: hidden;
}

.fl-bg {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.fl-bg-mesh {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(ellipse 42% 36% at 18% 22%, rgba(245, 208, 0, 0.28), transparent 62%),
        radial-gradient(ellipse 38% 42% at 82% 8%, rgba(255, 229, 106, 0.16), transparent 58%),
        radial-gradient(ellipse 50% 34% at 72% 88%, rgba(201, 160, 8, 0.18), transparent 60%),
        radial-gradient(ellipse 30% 28% at 8% 78%, rgba(245, 208, 0, 0.10), transparent 70%);
    filter: blur(8px);
    animation: flMeshShift 22s ease-in-out infinite alternate;
}

@keyframes flMeshShift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(4%, -3%, 0) scale(1.08); }
}

.fl-bg-aurora {
    position: absolute;
    inset: -30%;
    background:
        conic-gradient(from 180deg at 50% 40%,
            transparent 0deg,
            rgba(245, 208, 0, 0.08) 40deg,
            transparent 90deg,
            rgba(255, 229, 106, 0.10) 150deg,
            transparent 210deg,
            rgba(245, 208, 0, 0.07) 280deg,
            transparent 360deg);
    filter: blur(50px);
    opacity: 0.85;
    animation: flAuroraSpin 48s linear infinite;
}

@keyframes flAuroraSpin {
    to { transform: rotate(360deg); }
}

.fl-bg-ribbons {
    position: absolute;
    inset: 0;
}

.fl-bg-ribbons span {
    position: absolute;
    height: 40vh;
    width: 140%;
    left: -20%;
    border-radius: 50%;
    filter: blur(28px);
    opacity: 0.35;
    animation: flRibbon 16s ease-in-out infinite;
}

.fl-bg-ribbons span:nth-child(1) {
    top: 8%;
    background: linear-gradient(90deg, transparent, rgba(245, 208, 0, 0.45), transparent);
    transform: rotate(-8deg);
}

.fl-bg-ribbons span:nth-child(2) {
    top: 38%;
    background: linear-gradient(90deg, transparent, rgba(255, 229, 106, 0.22), transparent);
    transform: rotate(6deg);
    animation-delay: -5s;
    animation-duration: 22s;
}

.fl-bg-ribbons span:nth-child(3) {
    top: 68%;
    background: linear-gradient(90deg, transparent, rgba(201, 160, 8, 0.28), transparent);
    transform: rotate(-4deg);
    animation-delay: -11s;
    animation-duration: 19s;
}

@keyframes flRibbon {
    0%, 100% { translate: 0 0; opacity: 0.22; }
    50%      { translate: 6% -3%; opacity: 0.42; }
}

.fl-bg-grid {
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -28%;
    height: 78vh;
    background-image:
        linear-gradient(rgba(245, 208, 0, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 208, 0, 0.16) 1px, transparent 1px);
    background-size: 56px 56px;
    transform: perspective(700px) rotateX(64deg);
    transform-origin: center top;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 78%);
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 78%);
    animation: flGridCrawl 24s linear infinite;
}

@keyframes flGridCrawl {
    from { background-position: 0 0; }
    to   { background-position: 0 56px; }
}

.fl-bg-dust {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.fl-bg-spot {
    position: absolute;
    width: 520px;
    height: 520px;
    margin: -260px 0 0 -260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 208, 0, 0.18) 0%, rgba(245, 208, 0, 0.05) 32%, transparent 68%);
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.4s ease;
    will-change: transform;
}

.fl-bg-spot.is-on { opacity: 1; }

.fl-bg-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 42%, rgba(8, 7, 5, 0.72) 100%),
        linear-gradient(180deg, rgba(8, 7, 5, 0.18), transparent 18%, transparent 78%, rgba(8, 7, 5, 0.45));
}

.fl-grain {
    pointer-events: none;
    position: absolute;
    inset: -20%;
    z-index: 1;
    opacity: 0.28;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
    background-size: 160px 160px;
    animation: flGrain 0.8s steps(4) infinite;
}

@keyframes flGrain {
    0%   { background-position: 0 0; }
    25%  { background-position: 40px 20px; }
    50%  { background-position: -30px 50px; }
    75%  { background-position: 20px -40px; }
    100% { background-position: 0 0; }
}

.fl-skip {
    position: absolute;
    left: -999px;
    top: 8px;
    background: var(--fl-copper);
    color: #1a120e;
    padding: 8px 12px;
    border-radius: 8px;
    z-index: 20;
}

.fl-skip:focus {
    left: 12px;
}

/* ---------- nav ---------- */
.fl-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: max(12px, env(safe-area-inset-top)) var(--fl-pad) 12px;
    background: rgba(16, 14, 12, 0.78);
    border-bottom: 1px solid var(--fl-line);
    backdrop-filter: blur(16px);
}

.fl-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.fl-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--fl-copper), var(--fl-ember));
    color: #1a120e;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: -0.04em;
    flex-shrink: 0;
}

.fl-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.fl-brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
}

.fl-brand-sub {
    font-size: 11px;
    color: var(--fl-copper-2);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fl-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.fl-nav-links a {
    color: var(--fl-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 999px;
}

.fl-nav-links a:hover {
    color: var(--fl-ink);
    background: rgba(246, 239, 232, 0.05);
}

.fl-nav-mobile-only {
    display: none;
}

.fl-nav-end {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.fl-nav-ghost,
.fl-nav-cta {
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    padding: 8px 14px;
    white-space: nowrap;
}

.fl-nav-ghost {
    color: var(--fl-muted);
    border: 1px solid var(--fl-line);
}

.fl-nav-ghost:hover {
    color: var(--fl-ink);
    border-color: var(--fl-line-strong);
}

.fl-nav-cta {
    color: #1a120e;
    background: var(--fl-copper);
}

.fl-nav-cta:hover {
    background: var(--fl-copper-2);
}

.fl-nav-burger {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--fl-line);
    background: transparent;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.fl-nav-burger span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--fl-ink);
    transition: transform 0.2s ease;
}

.fl-nav-burger[aria-expanded="true"] span:first-child {
    transform: translateY(3.25px) rotate(40deg);
}

.fl-nav-burger[aria-expanded="true"] span:last-child {
    transform: translateY(-3.25px) rotate(-40deg);
}

/* ---------- hero ---------- */
.fl-hero,
.fl-section {
    position: relative;
    z-index: 1;
    max-width: var(--fl-max);
    margin: 0 auto;
    padding: clamp(40px, 8vw, 88px) var(--fl-pad);
}

.fl-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fl-copper-2);
    margin-bottom: 18px;
}

.fl-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5ad37a;
    box-shadow: 0 0 0 6px rgba(90, 211, 122, 0.16);
    animation: flPulse 2.4s ease-out infinite;
}

@keyframes flPulse {
    0%   { box-shadow: 0 0 0 0 rgba(90, 211, 122, 0.35); }
    70%  { box-shadow: 0 0 0 10px rgba(90, 211, 122, 0); }
    100% { box-shadow: 0 0 0 0 rgba(90, 211, 122, 0); }
}

.fl-headline .fl-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.55em);
    animation: flRise 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--i) * 55ms + 80ms);
}

@keyframes flRise {
    to { opacity: 1; transform: none; }
}

.fl-headline {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.05;
    font-size: clamp(34px, 6.4vw, 72px);
    max-width: 16ch;
    margin-bottom: 18px;
}

.fl-lede {
    max-width: 42rem;
    font-size: clamp(16px, 2vw, 19px);
    color: var(--fl-muted);
    margin-bottom: 28px;
}

.fl-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.fl-btn-primary,
.fl-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    padding: 12px 20px;
}

.fl-btn-primary {
    color: #1a120e;
    background: linear-gradient(180deg, var(--fl-copper-2), var(--fl-copper));
}

.fl-btn-primary:hover {
    filter: brightness(1.06);
}

.fl-btn-primary:disabled {
    opacity: 0.6;
    cursor: wait;
}

.fl-btn-ghost {
    color: var(--fl-ink);
    background: transparent;
    border: 1px solid var(--fl-line);
}

.fl-btn-ghost:hover {
    border-color: var(--fl-copper);
}

.fl-hero-meta {
    font-size: 13px;
    color: var(--fl-faint);
    margin-bottom: 36px;
}

.fl-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding-top: 28px;
    border-top: 1px solid var(--fl-line);
}

.fl-stat {
    padding: 8px 4px 4px 0;
}

.fl-stat-value {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--fl-copper-2);
}

.fl-stat-label {
    font-size: 13px;
    color: var(--fl-muted);
    margin-top: 4px;
}

/* ---------- sections ---------- */
.fl-section {
    padding-top: 12px;
}

.fl-section-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: end;
    margin-bottom: 28px;
}

.fl-section-index {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--fl-copper);
}

.fl-section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 4vw, 40px);
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.fl-section-head p {
    color: var(--fl-muted);
    margin-top: 6px;
    max-width: 40rem;
}

.fl-subhead {
    font-family: var(--font-display);
    font-size: 18px;
    margin: 36px 0 16px;
    letter-spacing: -0.03em;
}

/* ---------- services ---------- */
.fl-services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.fl-service {
    background: linear-gradient(180deg, var(--fl-surface), #1c1713);
    border: 1px solid var(--fl-line);
    border-radius: var(--fl-radius);
    padding: 22px 20px 20px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.25s ease, transform 0.28s ease, box-shadow 0.28s ease;
}

.fl-service:hover {
    border-color: var(--fl-line-strong);
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(245, 208, 0, 0.12);
}

.fl-service-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(245, 208, 0, 0.12);
    color: var(--fl-copper);
    font-size: 15px;
    transition: transform 0.28s ease;
}

.fl-service:hover .fl-service-icon {
    transform: rotate(-8deg) scale(1.08);
}

.fl-service h3 {
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: -0.03em;
}

.fl-service p {
    color: var(--fl-muted);
    font-size: 14px;
    flex: 1;
}

.fl-service ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.fl-service li {
    font-size: 13px;
    color: var(--fl-ink);
    padding-left: 14px;
    position: relative;
}

.fl-service li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 1px;
    background: var(--fl-copper);
}

/* ---------- work stage ---------- */
.fl-work {
    display: block;
}

.fl-stage {
    display: grid;
    grid-template-columns: minmax(180px, 260px) 1fr;
    gap: 16px;
    min-height: 420px;
}

.fl-stage-rail {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fl-rail-btn {
    text-align: left;
    border: 1px solid var(--fl-line);
    background: rgba(29, 26, 18, 0.7);
    color: inherit;
    border-radius: 14px;
    padding: 12px 14px;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.fl-rail-btn:hover {
    border-color: var(--fl-line-strong);
    transform: translateX(4px);
}

.fl-rail-btn.is-active {
    background: linear-gradient(135deg, rgba(245, 208, 0, 0.16), rgba(245, 208, 0, 0.04));
    border-color: var(--fl-copper);
    box-shadow: 0 0 0 1px rgba(245, 208, 0, 0.2);
}

.fl-rail-year {
    display: block;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fl-copper);
    margin-bottom: 4px;
}

.fl-rail-name {
    display: block;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.fl-rail-client {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--fl-muted);
}

.fl-stage-board {
    position: relative;
    border-radius: 22px;
    border: 1px solid var(--fl-line);
    background:
        radial-gradient(800px 280px at 100% 0%, rgba(245, 208, 0, 0.14), transparent 55%),
        var(--fl-surface);
    padding: 22px 24px 24px;
    overflow: hidden;
    min-height: 100%;
}

.fl-stage-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.fl-stage-index {
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0.16em;
    color: var(--fl-copper);
}

.fl-stage-controls {
    display: flex;
    gap: 8px;
}

.fl-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--fl-line);
    background: rgba(0, 0, 0, 0.2);
    color: var(--fl-ink);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.fl-icon-btn:hover {
    border-color: var(--fl-copper);
    background: rgba(245, 208, 0, 0.12);
    transform: scale(1.05);
}

.fl-stage-body {
    animation: flStageIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.fl-stage-body.is-swap {
    animation: flStageIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes flStageIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

.fl-stage-kicker {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fl-muted);
    margin-bottom: 8px;
}

.fl-stage-body h3 {
    font-family: var(--font-display);
    font-size: clamp(22px, 3.2vw, 34px);
    letter-spacing: -0.04em;
    line-height: 1.12;
    margin-bottom: 10px;
}

.fl-stage-summary {
    color: var(--fl-muted);
    max-width: 52ch;
    margin-bottom: 18px;
}

.fl-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.fl-highlight {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(245, 208, 0, 0.08);
    border: 1px solid rgba(245, 208, 0, 0.22);
    color: var(--fl-ink);
}

.fl-stage-outcome {
    font-size: 15px;
    color: var(--fl-copper-2);
    margin-bottom: 16px;
    max-width: 54ch;
}

.fl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fl-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid var(--fl-line);
    color: var(--fl-muted);
}

/* ---------- feedback theater ---------- */
.fl-feedback-section {
    position: relative;
}

.fl-quotes {
    display: block;
}

.fl-theater {
    position: relative;
    border-radius: 28px;
    padding: clamp(28px, 5vw, 48px);
    background:
        radial-gradient(70% 80% at 0% 0%, rgba(245, 208, 0, 0.18), transparent 50%),
        linear-gradient(180deg, #1f1b10 0%, #14120c 100%);
    border: 1px solid rgba(245, 208, 0, 0.28);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 229, 106, 0.12);
    overflow: hidden;
    min-height: 340px;
}

.fl-theater-mark {
    position: absolute;
    top: -18px;
    left: 18px;
    font-family: var(--font-display);
    font-size: clamp(120px, 22vw, 220px);
    line-height: 1;
    color: rgba(245, 208, 0, 0.14);
    pointer-events: none;
    user-select: none;
}

.fl-theater-quote {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: clamp(20px, 3.1vw, 32px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.28;
    max-width: min(40rem, 100%);
    margin: 12px 0 28px;
}

.fl-theater-quote.is-swap {
    animation: flStageIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.fl-theater-who {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.fl-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(245, 208, 0, 0.18);
    color: var(--fl-copper-2);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    border: 1px solid rgba(245, 208, 0, 0.35);
}

.fl-theater-who strong {
    display: block;
    font-size: 16px;
}

.fl-theater-who span {
    font-size: 13px;
    color: var(--fl-muted);
}

.fl-theater-people {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fl-person {
    border: 1px solid var(--fl-line);
    background: rgba(0, 0, 0, 0.18);
    color: var(--fl-muted);
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.fl-person:hover {
    color: var(--fl-ink);
    transform: translateY(-2px);
}

.fl-person.is-active {
    color: #1a1408;
    background: var(--fl-copper);
    border-color: var(--fl-copper);
}

.fl-theater-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(245, 208, 0, 0.12);
}

.fl-theater-progress i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--fl-copper);
    animation: flProgress 8s linear;
    transform-origin: left;
}

.fl-theater:hover .fl-theater-progress i {
    animation-play-state: paused;
}

@keyframes flProgress {
    from { width: 0; }
    to   { width: 100%; }
}

/* ---------- process / engage ---------- */
.fl-process {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.fl-step {
    padding: 18px 16px 16px;
    border-top: 2px solid var(--fl-copper);
    background: rgba(34, 28, 23, 0.6);
}

.fl-step-num {
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.14em;
    color: var(--fl-copper);
    margin-bottom: 10px;
}

.fl-step h3 {
    font-family: var(--font-display);
    font-size: 18px;
    margin-bottom: 8px;
}

.fl-step p {
    font-size: 13px;
    color: var(--fl-muted);
}

.fl-engage {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.fl-engage-card {
    padding: 20px;
    border-radius: var(--fl-radius-sm);
    border: 1px dashed rgba(224, 137, 79, 0.35);
    background: rgba(224, 137, 79, 0.04);
}

.fl-engage-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
}

.fl-engage-card .dur {
    font-size: 12px;
    color: var(--fl-copper-2);
    margin: 4px 0 10px;
}

.fl-engage-card p {
    font-size: 14px;
    color: var(--fl-muted);
}

/* ---------- contact ---------- */
.fl-contact-section {
    padding-bottom: 40px;
}

.fl-contact-eyebrow {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fl-copper);
    font-weight: 600;
    margin-bottom: 6px;
}

.fl-contact-grid {
    display: grid;
    grid-template-columns: minmax(180px, 280px) 1fr;
    gap: 28px;
    align-items: start;
}

.fl-contact-aside {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fl-channel {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--fl-ink);
    text-decoration: none;
    font-size: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--fl-line);
    background: var(--fl-surface);
}

.fl-channel i {
    color: var(--fl-copper);
    width: 16px;
}

.fl-channel:hover {
    border-color: var(--fl-line-strong);
}

.fl-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 22px;
    border-radius: var(--fl-radius);
    background: var(--fl-surface);
    border: 1px solid var(--fl-line);
}

.fl-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--fl-muted);
}

.fl-field-full,
.fl-form-row {
    grid-column: 1 / -1;
}

.fl-field input,
.fl-field select,
.fl-field textarea {
    width: 100%;
    font: inherit;
    font-size: 15px;
    font-weight: 400;
    color: var(--fl-ink);
    background: #161210;
    border: 1px solid var(--fl-line);
    border-radius: 10px;
    padding: 11px 12px;
    outline: none;
}

.fl-field textarea {
    resize: vertical;
    min-height: 120px;
}

.fl-field input:focus,
.fl-field select:focus,
.fl-field textarea:focus {
    border-color: var(--fl-copper);
}

.fl-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.fl-form-status {
    font-size: 13px;
    color: var(--fl-muted);
}

.fl-form-status.ok { color: #7dcc90; }
.fl-form-status.err { color: #e07a6a; }

/* ---------- footer ---------- */
.fl-foot {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    max-width: var(--fl-max);
    margin: 0 auto;
    padding: 18px var(--fl-pad) max(24px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--fl-line);
    color: var(--fl-faint);
    font-size: 13px;
}

.fl-foot-links {
    display: flex;
    gap: 14px;
}

.fl-foot a {
    color: var(--fl-muted);
    text-decoration: none;
}

.fl-foot a:hover {
    color: var(--fl-copper-2);
}

.fl-error {
    color: var(--fl-muted);
    padding: 20px 0;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
    .fl-services,
    .fl-process,
    .fl-engage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fl-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fl-stage {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .fl-stage-rail {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .fl-rail-btn {
        min-width: 200px;
        flex: 0 0 auto;
    }
}

@media (max-width: 820px) {
    .fl-nav-links {
        display: none;
        position: absolute;
        left: var(--fl-pad);
        right: var(--fl-pad);
        top: calc(100% + 8px);
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        border-radius: 14px;
        background: var(--fl-surface);
        border: 1px solid var(--fl-line);
        box-shadow: var(--fl-shadow);
    }

    .fl-nav.is-open .fl-nav-links {
        display: flex;
    }

    .fl-nav-mobile-only {
        display: block;
    }

    .fl-nav-burger {
        display: inline-flex;
    }

    .fl-nav-ghost {
        display: none;
    }

    .fl-contact-grid {
        grid-template-columns: 1fr;
    }

    .fl-headline {
        max-width: none;
    }
}

@media (max-width: 560px) {
    .fl-bg-aurora { animation-duration: 80s; opacity: 0.55; }
    .fl-bg-ribbons span:nth-child(3) { display: none; }
    .fl-bg-grid { opacity: 0.7; }

    .fl-services,
    .fl-process,
    .fl-engage,
    .fl-form {
        grid-template-columns: 1fr;
    }

    .fl-nav-cta {
        padding: 8px 12px;
        font-size: 12px;
    }

    .fl-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .fl-btn-primary,
    .fl-btn-ghost {
        width: 100%;
    }

    .fl-section-head {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .fl-theater-quote {
        max-width: none;
    }
}

@media (max-width: 400px) {
    .fl-brand-text {
        display: none;
    }
}

/* ---------- scroll reveal ---------- */
.fl-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fl-reveal.is-in {
    opacity: 1;
    transform: none;
}

.fl-btn-primary,
.fl-btn-ghost {
    transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.fl-btn-primary:hover,
.fl-btn-ghost:hover {
    transform: translateY(-2px);
}
