[class*="RootLayoutLoader"] {
    transition: opacity .35s ease, visibility .35s ease !important;
}

html.peridot-video-wait [class*="RootLayoutLoader"] {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Let the entrance run once, but hold the exit until the current media is ready. */
html.peridot-video-wait [class*="__RootLayoutLoader"][class*="__loaded"]::before,
html.peridot-video-wait [class*="__RootLayoutLoader"][class*="__loaded"] [class*="__container"],
html.peridot-video-wait [class*="__RootLayoutLoader"][class*="__loaded"] [class*="__top"],
html.peridot-video-wait [class*="__RootLayoutLoader"][class*="__loaded"] [class*="__bottom"] {
    animation-play-state: paused !important;
}

/* Closing the initial gate is permanent, even if hydration replaces the node. */
html.peridot-loaded [class*="__RootLayoutLoader"] {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

#hakkimizda {
    scroll-margin-top: 96px;
}

[class*="RootLayoutHeader"][class*="wrapper"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

[class*="RootLayoutHeader"][class*="primary"] > ul > li:nth-child(n + 4),
[class*="RootLayoutHeader"][class*="contact"],
[class*="RootLayoutHeader"][class*="secondary"],
[class*="RootLayoutHeader"][class*="legals"],
a[class*="Button-module-scss-module__VLzsWq__Button"][class*="RootLayoutHeader-module-scss-module__96vZrq__button"][class*="Button-module-scss-module__VLzsWq__theme-transparent"] {
    display: none !important;
}

[class*="RootLayoutHeader"][class*="logo"] {
    width: min(240px, 56vw) !important;
    height: 48px !important;
    white-space: nowrap;
    /* The animated hero logo uses this slot's measured bounds as its target. */
    display: flex !important;
    visibility: hidden !important;
    pointer-events: none;
}

/* Start at the top center; keep the framework's scroll animation intact. */
[class*="MainHero"][class*="__beacon"] {
    position: absolute;
    top: max(20px, env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
}

[class*="RootLayoutHeader"][class*="logo"] svg {
    width: 100%;
    height: 100%;
}

@media (min-width: 930px) {
    /* The cached framework stylesheet also hides this label with !important. */
    header[class*="RootLayoutHeader"] [class*="__trigger"] [class*="__inner"],
    header[class*="RootLayoutHeader"] [class*="__trigger"] [class*="__menuText"] {
        display: inline-flex !important;
    }

    /* Keep the portrait frame intact inside the existing animated hero mask. */
    [class*="MainHero"] [class*="__media"]::before {
        content: '';
        position: absolute;
        inset: -30px;
        background: #242b20 url('/peridot/hero-desktop-backdrop.jpg') center / cover no-repeat;
        filter: blur(24px) brightness(.6);
        pointer-events: none;
    }

    [class*="MainHero"] [class*="__media"] video {
        position: relative;
        object-fit: contain !important;
        transform: none !important;
    }
}

[class*="LargeQuote"][class*="coin"] canvas:not([data-peridot-gem]) {
    display: none !important;
}

[class*="LargeQuote"][class*="coin"] canvas[data-peridot-gem] {
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 9px rgba(42, 72, 5, 0.32));
}

body.peridot-gallery-open {
    overflow: hidden !important;
}

.peridot-gallery-view {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    overflow-y: auto;
    background: #f5f3ed;
    color: #20231d;
    padding: clamp(18px, 3vw, 48px);
}

.peridot-gallery-logo {
    height: clamp(60px, 10vw, 120px);
    width: auto;
    object-fit: contain;
    display: block;
    margin-left: auto;
    opacity: 0.95;
}

.peridot-gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1440px;
    margin: 0 auto clamp(24px, 4vw, 64px);
}

.peridot-gallery-back {
    appearance: none;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 11px 18px;
}

.peridot-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 1.6vw, 28px);
    max-width: 1440px;
    margin: 0 auto;
}

.peridot-gallery-card {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    overflow: hidden;
}

.peridot-gallery-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform .35s ease, opacity .35s ease;
}

.peridot-gallery-card:hover img,
.peridot-gallery-card:focus-visible img {
    transform: scale(1.035);
    opacity: .86;
}

.peridot-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2147483640;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(18, 20, 15, .92);
    cursor: zoom-out;
}

.peridot-gallery-lightbox img {
    max-width: min(94vw, 1500px);
    max-height: 92vh;
    object-fit: contain;
    cursor: default;
}

.peridot-gallery-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 50%;
    background: transparent;
    color: white;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}

body.peridot-contact-open {
    overflow: hidden !important;
}

.peridot-contact-view {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    overflow-y: auto;
    color: #20231d;
    background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.82) 48%, rgba(255,255,255,.52) 100%), url('/peridot/p6.jpg') center / cover no-repeat;
    padding: clamp(18px, 3vw, 48px);
}

.peridot-contact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1440px;
    margin: 0 auto;
    font-size: clamp(22px, 3vw, 42px);
    letter-spacing: .03em;
}

.peridot-contact-back {
    appearance: none;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: rgba(255,255,255,.35);
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    padding: 11px 18px;
}

.peridot-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    align-items: center;
    gap: clamp(32px, 8vw, 140px);
    max-width: 1440px;
    min-height: calc(100vh - 110px);
    margin: 0 auto;
}

.peridot-contact-copy {
    max-width: 540px;
}

.peridot-contact-eyebrow {
    margin: 0 0 18px;
    font-size: 14px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.peridot-contact-copy h1 {
    margin: 0 0 24px;
    font: inherit;
    font-size: clamp(54px, 9vw, 132px);
    font-weight: 400;
    line-height: .9;
    letter-spacing: -.05em;
}

.peridot-contact-intro {
    max-width: 420px;
    margin: 0 0 42px;
    font-size: clamp(18px, 2vw, 27px);
    line-height: 1.25;
}

.peridot-contact-phones {
    display: grid;
    gap: 10px;
}

.peridot-contact-phones a,
.peridot-contact-map-link {
    color: inherit;
    font-size: clamp(20px, 2.4vw, 32px);
    text-decoration: none;
}

.peridot-contact-phones a:hover,
.peridot-contact-map-link:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.peridot-contact-map {
    width: min(100%, 580px);
    justify-self: end;
    background: rgba(255,255,255,.84);
    padding: 10px;
}

.peridot-contact-map iframe {
    display: block;
    width: 100%;
    min-height: clamp(300px, 48vh, 560px);
    border: 0;
}

.peridot-contact-map-link {
    display: inline-block;
    margin: 16px 4px 5px;
    font-size: 15px;
}

@media (max-width: 800px) {
    .peridot-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .peridot-gallery-header {
        align-items: flex-start;
        flex-direction: column-reverse;
    }
    .peridot-contact-layout {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 36px;
        padding: 54px 0 24px;
    }
    .peridot-contact-map {
        justify-self: stretch;
        width: auto;
    }
    .peridot-contact-map iframe {
        min-height: 300px;
    }
}

/* ── LargeQuote scroll overlap fix ─────────────────────────────────────── */
/* On iOS Safari the LargeQuote scroller uses position:sticky + a scroll-
   driven animation to move the coin div alongside the blockquote. When the
   sticky container's parent has -webkit-overflow-scrolling:touch the coin
   can paint on top of the quote text. Isolating the scroller with its own
   stacking context (isolation:isolate) and capping its z-index fixes this.  */
[class*="LargeQuote"][class*="scroller"] {
    isolation: isolate;
    z-index: 0 !important;
}
[class*="LargeQuote"][class*="quote"] {
    position: relative;
    z-index: 1;
}

/* ── iOS fixes ─────────────────────────────────────────────────────────── */

/* Momentum scrolling for overlay views on iOS Safari */
.peridot-gallery-view,
.peridot-contact-view {
    -webkit-overflow-scrolling: touch;
    overflow-y: scroll; /* 'auto' doesn't trigger momentum scroll on all iOS versions */
}

/* Ensure fixed-position overlays cover the full viewport including the
   iOS safe area / dynamic island notch area */
.peridot-gallery-view,
.peridot-contact-view,
.peridot-gallery-lightbox {
    padding-top: max(env(safe-area-inset-top, 0px), 18px);
    padding-bottom: max(env(safe-area-inset-bottom, 0px), 18px);
}

#peridot-loading-error {
    position: fixed; z-index: 2147483647; bottom: 6vh; left: 50%;
    transform: translateX(-50%); width: min(90vw, 460px); text-align: center;
    color: #fff; background: #23342b; padding: 18px; border-radius: 8px;
}
#peridot-loading-error button { margin-top: 12px; padding: 10px 20px; cursor: pointer; }

/* Remove the opening headline while preserving the hero animation geometry. */
[class*="MainHero"][class*="__title"] {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Desktop entrance. The original mask still owns the scroll transition. */
.peridot-desktop-intro { display: none; }

@media (min-width: 930px) {
    [class*="MainHero"] [class*="__mask"] {
        position: relative;
        background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.82) 48%, rgba(255,255,255,.52) 100%), url('/peridot/p6.jpg') center / cover no-repeat;
    }

    [class*="MainHero"] [class*="__media"] {
        inset: auto;
        top: 50%;
        left: auto;
        right: max(6vw, calc((100vw - 1160px) / 2));
        width: min(35vw, calc((100svh - 150px) * 9 / 16), 420px);
        height: auto;
        aspect-ratio: 9 / 16;
        transform: translateY(-50%);
        border-radius: 32px;
        border: 1px solid rgba(255,255,255,.75);
        box-shadow: 0 28px 70px rgba(39,53,35,.17), 0 3px 12px rgba(39,53,35,.08);
        isolation: isolate;
    }

    [class*="MainHero"] [class*="__media"]::before { content: none; }

    [class*="MainHero"] [class*="__media"] video {
        width: 100%;
        height: 100%;
        object-fit: contain !important;
        transform: none !important;
    }

    [class*="MainHero"] [class*="__media"] [class*="__controls"] { padding: 20px; }
    [class*="MainHero"] [class*="__media"] [class*="__progress"] { width: 100px; }

    .peridot-desktop-intro {
        position: absolute;
        top: 50%;
        left: max(6vw, calc((100vw - 1160px) / 2));
        z-index: 2;
        display: flex;
        width: min(43vw, 510px);
        flex-direction: column;
        align-items: flex-start;
        transform: translateY(-50%);
    }

    .peridot-desktop-intro-logo {
        display: block;
        width: min(100%, 420px, calc((100svh - 140px) * .65));
        height: auto;
        object-fit: contain;
    }

    .peridot-desktop-categories {
        display: flex;
        align-items: center;
        gap: 13px;
        margin: 0 0 24px 4px;
        color: #596650;
        font-family: var(--font-family-content);
        font-size: 12px;
        line-height: 1.5;
        letter-spacing: .11em;
        text-transform: uppercase;
    }
    .peridot-desktop-categories span { color: #8b967e; }
    .peridot-desktop-heading {
        margin: 26px 0 14px 4px;
        color: #425139;
        font-family: var(--font-family-primary);
        font-size: clamp(28px, 2.65vw, 40px);
        font-weight: 400;
        font-style: italic;
        line-height: 1.15;
        letter-spacing: -.015em;
    }
    .peridot-desktop-description {
        max-width: 400px;
        margin: 0 0 0 5px;
        color: #64705b;
        font-size: clamp(15px, 1.12vw, 17px);
        line-height: 1.65;
    }
    .peridot-desktop-explore {
        appearance: none;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        margin: 34px 0 0 5px;
        padding: 4px 0;
        border: 0;
        background: transparent;
        color: #46553d;
        cursor: pointer;
        font: inherit;
        font-size: 13px;
        line-height: 1.5;
        letter-spacing: .025em;
        text-align: left;
    }
    .peridot-desktop-scroll-line {
        position: relative;
        display: block;
        width: 1px;
        height: 50px;
        margin-left: 5px;
        background: linear-gradient(to bottom, rgba(70,85,61,.2), #46553d);
        transform-origin: top;
        transition: transform .35s ease;
    }
    .peridot-desktop-scroll-line::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: -3px;
        width: 7px;
        height: 7px;
        border-right: 1px solid #46553d;
        border-bottom: 1px solid #46553d;
        transform: rotate(45deg);
    }
    .peridot-desktop-explore:hover .peridot-desktop-scroll-line { transform: scaleY(1.15); }
    .peridot-desktop-explore:focus-visible {
        outline: 2px solid #526246;
        outline-offset: 10px;
        border-radius: 3px;
    }

    html.peridot-hero-opening [class*="MainHero"][class*="__logo"],
    html.peridot-hero-opening [class*="MainHero"][class*="__brand"],
    [class*="MainHero"][class*="__scrollCue"] { opacity: 0 !important; }

    html.peridot-hero-opening header[class*="RootLayoutHeader"] [class*="__trigger"] {
        color: #303c2b !important;
    }
}

@media (min-width: 930px) {
    .peridot-desktop-intro {
        opacity: 0;
        translate: 0 12px;
        transition: opacity .8s ease, translate .9s ease;
    }
    html.peridot-loaded .peridot-desktop-intro { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
    .peridot-desktop-intro, .peridot-desktop-scroll-line { transition: none; }
}

@media (min-width: 930px) and (max-height: 720px) {
    .peridot-desktop-categories { margin-bottom: 14px; font-size: 10px; }
    .peridot-desktop-heading { margin-top: 18px; margin-bottom: 10px; font-size: 28px; }
    .peridot-desktop-description { font-size: 14px; max-width: 360px; line-height: 1.5; }
    .peridot-desktop-explore { margin-top: 20px; gap: 12px; font-size: 12px; }
    .peridot-desktop-scroll-line { height: 36px; }
}

@media (min-width: 930px) {
    .peridot-desktop-categories {
        position: relative;
        padding-bottom: 14px;
    }
    .peridot-desktop-categories::after {
        content: '';
        position: absolute;
        left: 0;
        right: -40px;
        bottom: 0;
        height: 1px;
        background: linear-gradient(90deg, rgba(89,102,80,.22), rgba(89,102,80,.06));
    }
    .peridot-desktop-explore { align-items: center; }
    .peridot-desktop-scroll-line { margin-left: 0; }
}

@media (min-width: 930px) {
    html.peridot-hero-opening header[class*="RootLayoutHeader"] [class*="__trigger"] {
        border: 1px solid rgba(0,0,0,.8);
        border-radius: 999px;
        padding: 11px 20px;
        background: rgba(255,255,255,.12);
        translate: 0 var(--peridot-opening-menu-offset, 0px);
    }
    .peridot-desktop-scroll-line {
        width: 32px;
        height: 96px;
        background: url('/peridot/p6.jpg') center / cover fixed;
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2096%22%3E%3Cpath%20d%3D%22M13%200H19V80L28%2071L32%2075L16%2096L0%2075L4%2071L13%2080Z%22%2F%3E%3C%2Fsvg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2096%22%3E%3Cpath%20d%3D%22M13%200H19V80L28%2071L32%2075L16%2096L0%2075L4%2071L13%2080Z%22%2F%3E%3C%2Fsvg%3E");
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        filter: drop-shadow(0 1px 1px rgba(39,53,35,.18));
    }
    .peridot-desktop-scroll-line::after { content: none; }
    .peridot-desktop-explore:hover .peridot-desktop-scroll-line { transform: translateY(5px); }
}
@media (min-width: 930px) and (max-height: 720px) {
    .peridot-desktop-scroll-line { width: 26px; height: 72px; }
}
