/* Everything is scoped to this homepage preview. */
.scope-home {
    /* Hero tint as RGB channels so it can be used at any opacity.
       Navy is the default; the dev toggle swaps the class. */
    --tint: 17 28 39;               /* navy  #111C27 */
    --ink: #16232e;
    --accent: #f1eee7;              /* light button on the dark hero */
    --accent-hover: #ffffff;
    background: #fff;
}

.scope-home.scope-tint-charcoal {
    --tint: 23 27 31;               /* charcoal #171B1F */
    --ink: #1c2126;
}

.scope-home .scope-wrap {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

.scope-home a:focus-visible,
.scope-home button:focus-visible {
    outline: 3px solid #8fb4d6;
    outline-offset: 5px;
}

.scope-home .scope-label {
    margin: 0 0 1.2rem;
    color: #5b6b78;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* =====================
   HERO
===================== */
.scope-home .scope-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 600px;
    overflow: hidden;
    background: rgb(var(--tint));
    isolation: isolate;
}

/* Photograph as the hero background */
.scope-home .scope-hero-media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.scope-home .scope-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 30% 38%;   /* keeps İpek's face in frame on wide screens */
}

/* Colour grade + right-to-left readability gradient */
.scope-home .scope-hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            to left,
            rgb(var(--tint) / 0.95) 0%,
            rgb(var(--tint) / 0.90) 30%,
            rgb(var(--tint) / 0.60) 48%,
            rgb(var(--tint) / 0.18) 66%,
            rgb(var(--tint) / 0) 80%
        ),
        linear-gradient(
            to top,
            rgb(var(--tint) / 0.45) 0%,
            rgb(var(--tint) / 0) 35%
        ),
        rgb(var(--tint) / 0.22);
}

/* Very faint vertical scan-lines, like a trading screen */
.scope-home .scope-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.035) 0 1px,
        transparent 1px 3px
    );
    pointer-events: none;
}

/* Film grain (if your CSP blocks data: images it simply won't show) */
.scope-home .scope-hero-grain {
    position: absolute;
    inset: 0;
    z-index: 3;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.07;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.scope-home .scope-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr minmax(0, 480px);
}

.scope-home .scope-hero-copy {
    grid-column: 2;
    padding-block: 4.5rem;
}

.scope-home .scope-hero h1 {
    margin: 0 0 1.4rem;
    color: #fff;
    font-size: clamp(2.8rem, 4.6vw, 4.4rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.scope-home .scope-hero-description {
    max-width: 440px;
    margin: 0 0 2.2rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.1rem;
    line-height: 1.7;
}

.scope-home .scope-hero-description strong {
    color: #fff;
    font-weight: 600;
}

.scope-home .scope-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.4rem;
}

.scope-home .scope-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.95rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 5px;
    background: var(--accent);
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.scope-home .scope-button:hover {
    background: var(--accent-hover);
    color: var(--ink);
    text-decoration: none;
}

.scope-home .scope-hero-link {
    color: #fff;
    font-size: 0.95rem;
}

.scope-home .scope-hero-link:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* =====================
   LATEST COMMENTARY
===================== */
.scope-home .scope-latest {
    padding-block: 4.5rem;
}

.scope-home .scope-section-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 2rem;
}

.scope-home .scope-section-heading .scope-label {
    margin: 0;
}

.scope-home .scope-text-link {
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 600;
}

.scope-home .scope-article {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 4rem;
}

.scope-home .scope-article-date {
    margin-bottom: 1rem;
    color: #6b7279;
    font-size: 0.85rem;
}

.scope-home .scope-article h2 {
    margin-bottom: 1.25rem;
    color: #172029;
    font-size: clamp(2rem, 3.3vw, 3.2rem);
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: -0.035em;
}

.scope-home .scope-article h2 a {
    color: inherit;
}

.scope-home .scope-excerpt {
    margin-bottom: 1.75rem;
    color: #59626a;
    font-size: 1.05rem;
    line-height: 1.8;
}

.scope-home .scope-article-image {
    display: block;
}

.scope-home .scope-article-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
}

.scope-home .scope-button-outline {
    background: transparent;
    border-color: #b3bcc4;
}

.scope-home .scope-button-outline:hover {
    background: #eef1f4;
}

/* =====================
   MARKET TALK
===================== */
.scope-home .scope-market {
    padding-block: 4rem;
    background: #f3f4f5;
    border-top: 1px solid #e3e6e9;
}

.scope-home .scope-market-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 4rem;
}

.scope-home .scope-market h2 {
    margin-bottom: 1rem;
    color: #172029;
    font-size: clamp(1.8rem, 2.8vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.scope-home .scope-player {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: rgb(var(--tint));
}

.scope-home .scope-play {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.scope-home .scope-play img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scope-home .scope-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background: rgb(var(--tint) / 0.88);
    color: #fff;
    transform: translate(-50%, -50%);
}

.scope-home .scope-play:hover .scope-play-icon {
    background: rgb(var(--tint));
}

.scope-home .scope-play:focus-visible {
    outline-offset: -6px;
}

.scope-home .scope-player iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =====================
   TABLET + MOBILE: photo on top, copy below
===================== */
@media (max-width: 991.98px) {
    .scope-home .scope-hero {
        display: block;
        min-height: 0;
    }

    .scope-home .scope-hero-media {
        position: relative;
        z-index: 0;
        height: clamp(280px, 58vw, 460px);
    }

    .scope-home .scope-hero-media img {
        object-position: 24% 35%;   /* focus on İpek and the nearest monitors */
    }

    .scope-home .scope-hero-media::before {
        background:
            linear-gradient(
                to bottom,
                rgb(var(--tint) / 0) 45%,
                rgb(var(--tint) / 1) 100%
            ),
            rgb(var(--tint) / 0.2);
    }

    .scope-home .scope-hero-grid {
        display: block;
        position: relative;
        z-index: 1;
        margin-top: -2.5rem;
    }

    .scope-home .scope-hero-copy {
        padding-block: 0 3.25rem;
    }
}

@media (max-width: 767.98px) {
    .scope-home .scope-wrap {
        width: calc(100% - 36px);
    }

    .scope-home .scope-article,
    .scope-home .scope-market-grid {
        grid-template-columns: 1fr;
    }

    .scope-home .scope-hero h1 {
        font-size: clamp(2.4rem, 10vw, 3.4rem);
    }

    .scope-home .scope-latest,
    .scope-home .scope-market {
        padding-block: 2.75rem;
    }

    .scope-home .scope-article,
    .scope-home .scope-market-grid {
        gap: 2rem;
    }

    .scope-home .scope-article-image {
        grid-row: 1;
    }
}

/* =====================
   DEV ONLY: tint toggle (delete before deploying to index.html)
===================== */
.scope-dev-toggle {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.5rem 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    font-size: 0.8rem;
}

.scope-dev-toggle span {
    margin-right: 0.2rem;
    color: #555;
}

.scope-dev-toggle button {
    padding: 0.3rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 999px;
    background: #fff;
    color: #333;
    font-size: 0.8rem;
}

.scope-dev-toggle button[aria-pressed="true"] {
    border-color: #222;
    background: #222;
    color: #fff;
}
