/* ==========================================================================
   Istadoor - light theme
   --------------------------------------------------------------------------
   Everything here is scoped to html[data-theme="light"], so dark mode is
   untouched and deleting the require in functions.php fully reverts the site.

   Order of attack:
     1. palette tokens
     2. remap the theme's own :root variables (covers every var() usage)
     3. global components from istadoor.webflow.css
     4. header / navigation
     5. theme toggle + logo
     6. per-template overrides
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Palette
   -------------------------------------------------------------------------- */

html[data-theme="light"] {
    --lt-bg: #f4f4f6;
    --lt-bg-alt: #eaeaee;
    --lt-surface: #ffffff;
    --lt-surface-2: #ffffff;
    --lt-fg: #17171b;
    --lt-fg-soft: rgba(23, 23, 27, .8);
    --lt-muted: #6c6e73;
    --lt-line: rgba(23, 23, 27, .20);
    --lt-line-strong: rgba(23, 23, 27, .38);
    --lt-accent: #17171b;
    --lt-accent-fg: #ffffff;
    --lt-tint: rgba(23, 23, 27, .05);
    --lt-tint-strong: rgba(23, 23, 27, .09);

    /* status colours darkened for contrast on a light background */
    --lt-danger: #c0392b;
    --lt-success: #2e7d52;

    color-scheme: light;
}

/* --------------------------------------------------------------------------
   2. Remap the theme's own :root variables
   -------------------------------------------------------------------------- */

html[data-theme="light"] {
    --dark-charcoal: var(--lt-bg);
    --charcoal-gray: var(--lt-bg-alt);
    --deep-gray: var(--lt-accent);
    --slategray: var(--lt-muted);
    --medium-gray: var(--lt-muted);
    --white: var(--lt-fg);
    --white-text: var(--lt-fg);
}

/* --------------------------------------------------------------------------
   3. Base surfaces and text
   -------------------------------------------------------------------------- */

html[data-theme="light"] body {
    background-color: var(--lt-bg);
    color: var(--lt-fg);
}

html[data-theme="light"] .layer {
    background-color: var(--lt-bg);
}

/* On the projects archive and the project taxonomy, a script writes
   element.style.backgroundColor = "#151519" whenever no project thumbnail is
   showing. An inline style beats any normal rule, so this one is marked
   important. Only the colour is forced - the thumbnail that the script sets as
   background-image still comes through. */
html[data-theme="light"] .page-bg {
    background-color: var(--lt-bg) !important;
}

html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] h5,
html[data-theme="light"] h6 {
    color: var(--lt-fg);
}

html[data-theme="light"] p {
    color: #000;
}

html[data-theme="light"] .text-block-3,
html[data-theme="light"] .door-name-2,
html[data-theme="light"] .center-text.white-in-tablet,
html[data-theme="light"] .menu-text-3,
html[data-theme="light"] .catalog-name {
    color: var(--lt-fg);
}

/* --------------------------------------------------------------------------
   3b. Text colours lifted straight from the source stylesheets
   Generated by scanning istadoor.webflow.css, webflow.css and
   exhibitions.css for every rule that set a white or slate text colour,
   so nothing is missed.
   Element, class and id selectors are kept in separate rules on purpose:
   an id inside :is() would raise the whole list to id specificity and
   stomp the component rules further down.
   -------------------------------------------------------------------------- */

/* was white: bare element selectors (lowest weight, so component rules below win) */
html[data-theme="light"] a,
html[data-theme="light"] body {
    color: var(--lt-fg);
}
html[data-theme="light"] .text-block-5 {
  color: #666 !important;
  background: linear-gradient(to bottom, #000, #989898);
    background-clip: border-box;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html[data-theme="light"] .simple-line-6{
    background-color: #000 !important;
}
html[data-theme="light"] .footer-link-2,
html[data-theme="light"] .number {
  font-weight: 400;
}
/* was white: 106 class selectors */
html[data-theme="light"] .about-hero-heading,
html[data-theme="light"] .about-hero-heading-2,
html[data-theme="light"] .about-hero-sub-heading,
html[data-theme="light"] .accordion-title,
html[data-theme="light"] .accordion-title-2,
html[data-theme="light"] .accordion-title-3,
html[data-theme="light"] .button-primary-2,
html[data-theme="light"] .button-primary-2:hover,
html[data-theme="light"] .categoryname-slide,
html[data-theme="light"] .center-text.white-in-tablet,
html[data-theme="light"] .disclaimer,
html[data-theme="light"] .disclaimer-2,
html[data-theme="light"] .disclaimer-3,
html[data-theme="light"] .disclaimer-4,
html[data-theme="light"] .disclaimer.link,
html[data-theme="light"] .div-block-7,
html[data-theme="light"] .door-name,
html[data-theme="light"] .door-name-2,
html[data-theme="light"] .exh-card__count,
html[data-theme="light"] .exh-media,
html[data-theme="light"] .feature-text,
html[data-theme="light"] .finalized-heading,
html[data-theme="light"] .finalized-heading-2,
html[data-theme="light"] .footer-link-2,
html[data-theme="light"] .heading,
html[data-theme="light"] .heading-2,
html[data-theme="light"] .heading-3,
html[data-theme="light"] .heading-4,
html[data-theme="light"] .heading-5,
html[data-theme="light"] .heading-6,
html[data-theme="light"] .heading-style,
html[data-theme="light"] .image-19,
html[data-theme="light"] .input,
html[data-theme="light"] .left-arrow-hidden:hover,
html[data-theme="light"] .license-link,
html[data-theme="light"] .license-link:hover,
html[data-theme="light"] .light-gray,
html[data-theme="light"] .link,
html[data-theme="light"] .link-3,
html[data-theme="light"] .link-4,
html[data-theme="light"] .link.no-hover:hover,
html[data-theme="light"] .medium-text-2,
html[data-theme="light"] .menu-button.w--open,
html[data-theme="light"] .menu-line,
html[data-theme="light"] .name,
html[data-theme="light"] .nav-link,
html[data-theme="light"] .number,
html[data-theme="light"] .open-logo-line,
html[data-theme="light"] .paganation-number,
html[data-theme="light"] .paragraph-2,
html[data-theme="light"] .paragraph-3,
html[data-theme="light"] .plus-text-menu,
html[data-theme="light"] .plus-text-menu-2,
html[data-theme="light"] .ralated-product-name,
html[data-theme="light"] .right-arrow-hidden:hover,
html[data-theme="light"] .showreel-title.project,
html[data-theme="light"] .slider-arrow-left:hover,
html[data-theme="light"] .slider-arrow-right:hover,
html[data-theme="light"] .social-links,
html[data-theme="light"] .social-links.w--current,
html[data-theme="light"] .tab-link,
html[data-theme="light"] .tab-link-2,
html[data-theme="light"] .tab-pane-tab-2,
html[data-theme="light"] .tab.description.w--current,
html[data-theme="light"] .text-block,
html[data-theme="light"] .text-block-10.white,
html[data-theme="light"] .text-block-11,
html[data-theme="light"] .text-block-12,
html[data-theme="light"] .text-block-13,
html[data-theme="light"] .text-block-14,
html[data-theme="light"] .text-block-18,
html[data-theme="light"] .text-block-19,
html[data-theme="light"] .text-block-20,
html[data-theme="light"] .text-block-21,
html[data-theme="light"] .text-block-22,
html[data-theme="light"] .text-block-23,
html[data-theme="light"] .text-block-24,
html[data-theme="light"] .text-block-25,
html[data-theme="light"] .text-block-26,
html[data-theme="light"] .text-block-27,
html[data-theme="light"] .text-block-28,
html[data-theme="light"] .text-block-29,
html[data-theme="light"] .text-block-3,
html[data-theme="light"] .text-block-30,
html[data-theme="light"] .text-block-31,
html[data-theme="light"] .text-block-32,
html[data-theme="light"] .text-block-33,
html[data-theme="light"] .text-block-34,
html[data-theme="light"] .text-block-37,
html[data-theme="light"] .text-block-38,
html[data-theme="light"] .text-block-39,
html[data-theme="light"] .text-block-40,
html[data-theme="light"] .text-block-5,
html[data-theme="light"] .text-block-7,
html[data-theme="light"] .text-block-8,
html[data-theme="light"] .text-block-9,
html[data-theme="light"] .text-span-3,
html[data-theme="light"] .text-span-5,
html[data-theme="light"] .text-span-6,
html[data-theme="light"] .textstyle,
html[data-theme="light"] .thin-text,
html[data-theme="light"] .title-heading,
html[data-theme="light"] .very-big-text-2,
html[data-theme="light"] .white,
html[data-theme="light"] h2,
html[data-theme="light"] h3 {
    color: var(--lt-fg);
}

/* The gallery lightbox paints its own near-black backdrop (rgba(8,8,8,.97))
   over the whole page, so it stays dark-themed no matter which theme the site
   is in. Its controls and captions therefore keep the white treatment - the
   generated rules above had darkened them, which made them disappear against
   that backdrop. */
html[data-theme="light"] #zf-close,
html[data-theme="light"] #zf-next,
html[data-theme="light"] #zf-prev {
    color: #fff;
}

/* was soft white: 1 class selectors */
html[data-theme="light"] .exh-desc {
    color: var(--lt-fg-soft);
}

html[data-theme="light"] #zf-caption {
    color: rgba(255, 255, 255, .8);
}

html[data-theme="light"] #zf-counter {
    color: rgba(255, 255, 255, .5);
}

/* was slate grey: 27 class selectors */
html[data-theme="light"] .big-paragraph.pale-gray,
html[data-theme="light"] .button-primary-2._w-small,
html[data-theme="light"] .disclaimer.link:hover,
html[data-theme="light"] .footer-link-2:hover,
html[data-theme="light"] .gray-text,
html[data-theme="light"] .gray-text-2,
html[data-theme="light"] .icon,
html[data-theme="light"] .layer-6.top,
html[data-theme="light"] .left-line-link:hover,
html[data-theme="light"] .link-2,
html[data-theme="light"] .link-2.text:hover,
html[data-theme="light"] .link:hover,
html[data-theme="light"] .name:hover,
html[data-theme="light"] .paragraph,
html[data-theme="light"] .ralated-product-name:hover,
html[data-theme="light"] .right-arrow-hidden,
html[data-theme="light"] .right-line-link:hover,
html[data-theme="light"] .slider-arrow-left,
html[data-theme="light"] .slider-arrow-right,
html[data-theme="light"] .small-h3.slate-gray,
html[data-theme="light"] .text,
html[data-theme="light"] .text-block-40 > span,
html[data-theme="light"] .text-hover:hover,
html[data-theme="light"] .text-span-11,
html[data-theme="light"] .text-span-5.gray,
html[data-theme="light"] .text-span-8 {
    color: var(--lt-muted);
}

/* --------------------------------------------------------------------------
   4. Lines, dividers and hairlines
   -------------------------------------------------------------------------- */

html[data-theme="light"] .simple-line,
html[data-theme="light"] .simple-line-3,
html[data-theme="light"] .simple-line-4,
html[data-theme="light"] .simple-line-5,
html[data-theme="light"] .div-block-28,
html[data-theme="light"] .div-block-29,
html[data-theme="light"] .layer-5,
html[data-theme="light"] .slider-nav-inactive {
    background-color: var(--lt-line-strong);
}

html[data-theme="light"] .tabs-menu-2,
html[data-theme="light"] .tab,
html[data-theme="light"] .tab.description.w--current {
    border-top-color: var(--lt-line);
}

html[data-theme="light"] .list,
html[data-theme="light"] .tertiary-button,
html[data-theme="light"] .list.project-item {
    border-bottom-color: var(--lt-line);
}

html[data-theme="light"] .contact-wrapper,
html[data-theme="light"] .right-arrow-hidden,
html[data-theme="light"] .left-arrow-hidden,
html[data-theme="light"] .social-icon-wrapper,
html[data-theme="light"] .tertiary-button.no-border.social {
    border-color: var(--lt-line-strong);
}

html[data-theme="light"] .footer-vertical-wrapper-2 {
    border-top-color: var(--lt-line);
}

/* --------------------------------------------------------------------------
   5. Buttons
   The primary button stays dark: on a light page it carries the accent role
   that white carried on the dark page.
   -------------------------------------------------------------------------- */

html[data-theme="light"] .primary-button {
    background-color: var(--lt-accent);
    color: var(--lt-accent-fg);
}

html[data-theme="light"] .primary-button:hover {
    background-color: #000;
    color: #fff;
}

html[data-theme="light"] .fourthiary-button,
html[data-theme="light"] .fourthiary-button-2,
html[data-theme="light"] .fourthiary-button.change-border-color,
html[data-theme="light"] .link-block-2 {
    border-color: var(--lt-line-strong);
    color: var(--lt-fg);
}

html[data-theme="light"] .fourthiary-button:hover,
html[data-theme="light"] .fourthiary-button-2:hover {
    background-color: var(--lt-tint);
    border-color: var(--lt-line-strong);
}

html[data-theme="light"] .fourthiary-button-2.none-in-mobile-landscape:hover {
    background-color: var(--lt-accent);
    border-color: var(--lt-accent);
    color: var(--lt-accent-fg);
}

/* Buttons laid over a photograph keep the dark-theme treatment, the same as the
   headings beside them. The containers listed here carry the picture:
   .about-section holds the about photo with the text block on top of it, and
   every .project-frame has its own background-image.
   The label inside the button inherits this colour, so it follows along. */
html[data-theme="light"] :is(.about-section, .project-frame) .fourthiary-button,
html[data-theme="light"] :is(.about-section, .project-frame) .fourthiary-button-2 {
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
}

html[data-theme="light"] :is(.about-section, .project-frame) .fourthiary-button:hover,
html[data-theme="light"] :is(.about-section, .project-frame) .fourthiary-button-2:hover {
    background-color: rgba(255, 255, 255, .15);
    border-color: #fff;
    color: #fff;
}

/* --------------------------------------------------------------------------
   6. Tabs
   -------------------------------------------------------------------------- */

html[data-theme="light"] .tab-link {
    border-color: var(--lt-line-strong);
    color: var(--lt-fg);
}

html[data-theme="light"] .tab-link:hover,
html[data-theme="light"] .tab-link-2:hover {
    background-color: var(--lt-bg-alt);
    border-color: var(--lt-line-strong);
}

html[data-theme="light"] .tab-link.w--current,
html[data-theme="light"] .tab-link-2.w--current {
    background-color: var(--lt-accent);
    border-color: var(--lt-accent);
    color: var(--lt-accent-fg);
}

html[data-theme="light"] .tab.w--current,
html[data-theme="light"] .tab.description.w--current,
html[data-theme="light"] .tab.fani.w--current {
    background-color: var(--lt-tint);
}

html[data-theme="light"] .tab-pane-tab-2,
html[data-theme="light"] .tab.fani {
    -webkit-text-stroke-color: var(--lt-fg);
}

/* --------------------------------------------------------------------------
   7. Forms
   -------------------------------------------------------------------------- */

html[data-theme="light"] .input {
    background-color: var(--lt-surface);
    border-color: var(--lt-line-strong);
    color: var(--lt-fg);
}

html[data-theme="light"] .input::placeholder {
    color: var(--lt-muted);
}

html[data-theme="light"] .input:focus {
    border-bottom-color: var(--lt-accent);
}

html[data-theme="light"] .success-message {
    background-color: var(--lt-bg-alt);
    color: var(--lt-fg);
}

/* --------------------------------------------------------------------------
   8. Gradients
   -------------------------------------------------------------------------- */

html[data-theme="light"] .horizontal-wrapper.gradient,
html[data-theme="light"] .horizontal-wrapper-2.gradient {
    background-image: linear-gradient(to right, var(--lt-bg), var(--lt-bg-alt));
}

/* --------------------------------------------------------------------------
   9. Imagery
   Scrims over photographs stay dark - they exist to keep caption text
   readable and the photographs themselves do not change with the theme.
   The preloader also keeps its original dark treatment so the intro stays
   cinematic and the light page is revealed afterwards.
   -------------------------------------------------------------------------- */

html[data-theme="light"] .dark-layer,
html[data-theme="light"] .div-block-9 {
    background-image: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .35));
}

html[data-theme="light"] .layer-3,
html[data-theme="light"] .open-logo-line,
html[data-theme="light"] .open-logo-line-3,
html[data-theme="light"] .open-logo-line-4,
html[data-theme="light"] .open-logo-line-5 {
    background-color: #fff;
}

html[data-theme="light"] .drag-circle-block {
    border-color: #fff;
}

html[data-theme="light"] .drag-circle-block:hover {
    background-color: #fff;
}

/* Nothing inside the preloader follows the page palette: it covers the viewport
   with its own photograph of a wall, in both themes. Its text carries no colour
   of its own and simply inherits, so in light mode it was inheriting the page's
   dark ink - and the language links, being anchors, were caught by the bare
   a rule as well. Colour on the container covers whatever is added here later;
   the anchor selector is only needed to outweigh that bare rule. */
html[data-theme="light"] .preloader,
html[data-theme="light"] .preloader a,
html[data-theme="light"] .preloader .text-block-36 {
    color: #fff;
}

/* Dark mode dims these to slate on hover; light mode has to dim within white
   rather than fall back to the page's grey, which would go muddy on the wall. */
html[data-theme="light"] .preloader .text-hover:hover {
    color: rgba(255, 255, 255, .62);
}

/* Text layered on a photograph keeps the dark-theme treatment. Only heroes
   that actually carry a photo are listed; .pub-hero and .terms-hero are plain
   text headers and correctly go dark. */
html[data-theme="light"] :is(
    .svc-hero,
    .std-hero,
    .fac-hero,
    .csr-hero,
    .csr-hero-inner,
    .exh-hero,
    .exh-hero-title,
    .hero-image-wrapper,
    .hero-texes-wrapper,
    .hero-content-wrapper,
    .about-hero-title,
    .contact-hero-title,
    .fac-shot,
    .contact-card,
    .istd-card,
    .news-card-media
),
html[data-theme="light"] :is(
    .svc-hero,
    .std-hero,
    .fac-hero,
    .csr-hero,
    .csr-hero-inner,
    .exh-hero,
    .exh-hero-title,
    .hero-image-wrapper,
    .hero-texes-wrapper,
    .hero-content-wrapper,
    .about-hero-title,
    .contact-hero-title,
    .fac-shot,
    .contact-card,
    .istd-card
) :is(h1, h2, h3, h4, h5, h6, p, span, a, li, small) {
    color: #fff;
}

/* --------------------------------------------------------------------------
   10. Header / navigation
   -------------------------------------------------------------------------- */

html[data-theme="light"] .istd-nav {
    background: #fff;
    border-color: var(--lt-line);
}

html[data-theme="light"] .istd-link,
html[data-theme="light"] .istd-nav a:not(.istd-cta),
html[data-theme="light"] .istd-sub-btn {
    color: var(--lt-fg);
}

html[data-theme="light"] .istd-item:hover > .istd-link,
html[data-theme="light"] .istd-item:focus-within > .istd-link {
    background: var(--lt-tint);
}

html[data-theme="light"] .istd-cta {
    background: var(--lt-accent);
    color: var(--lt-accent-fg);
}

html[data-theme="light"] .istd-cta:hover {
    color: var(--lt-accent-fg);
}

html[data-theme="light"] .istd-backdrop {
    background: rgba(23, 23, 27, .25);
}

html[data-theme="light"] .istd-panel-inner,
html[data-theme="light"] .istd-links {
    background: var(--lt-surface);
    border-color: var(--lt-line);
}

html[data-theme="light"] .istd-panel-label,
html[data-theme="light"] .istd-sub-desc {
    color: var(--lt-muted);
}

html[data-theme="light"] .istd-panel-label::before {
    background: var(--lt-fg);
}

html[data-theme="light"] .istd-sub {
    color: var(--lt-fg);
}

html[data-theme="light"] .istd-sub:hover {
    background: var(--lt-tint);
    border-inline-start-color: var(--lt-fg);
    color: var(--lt-fg);
}

html[data-theme="light"] .istd-burger {
    border-color: var(--lt-line-strong);
}

html[data-theme="light"] .istd-burger span {
    background: var(--lt-fg);
}

/* .istd-card keeps white text (image card) but its plate goes lighter */
html[data-theme="light"] .istd-card {
    border-color: var(--lt-line);
    background: var(--lt-bg-alt);
}

/* --------------------------------------------------------------------------
   11. Theme toggle
   -------------------------------------------------------------------------- */

.istd-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .07);
    color: #fff;
    cursor: pointer;
    padding: 0;
    flex: 0 0 auto;
    -webkit-appearance: none;
    appearance: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.istd-theme-toggle:hover {
    background: rgba(255, 255, 255, .14);
}

.istd-theme-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.istd-theme-toggle svg {
    width: 17px;
    height: 17px;
    display: block;
}

/* dark mode shows the sun (what clicking will switch you to) */
.istd-theme-toggle .icon-sun {
    display: block;
}
html[data-theme="light"] .bl{
    color:#fff !important;
}
.istd-theme-toggle .icon-moon {
    display: none;
}

html[data-theme="light"] .istd-theme-toggle {
    border-color: var(--lt-line-strong);
    background: var(--lt-tint);
    color: var(--lt-fg);
}

html[data-theme="light"] .istd-theme-toggle:hover {
    background: var(--lt-tint-strong);
}

html[data-theme="light"] .istd-theme-toggle .icon-sun {
    display: none;
}

html[data-theme="light"] .istd-theme-toggle .icon-moon {
    display: block;
}

.istd-end {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 767px) {
    .istd-theme-toggle {
        width: 34px;
        height: 34px;
    }

    .istd-theme-toggle svg {
        width: 15px;
        height: 15px;
    }
}

/* --------------------------------------------------------------------------
   12. Logo
   -------------------------------------------------------------------------- */

img[data-logo="light"] {
    display: none;
}

html[data-theme="light"] img[data-logo="light"] {
    display: block;
}

html[data-theme="light"] .has-light-logo img[data-logo="dark"] {
    display: none;
}

/* No dedicated light logo uploaded: invert the white mark instead. */
html[data-theme="light"] .logo-needs-invert img[data-logo="dark"] {
    filter: invert(1);
}

/* ==========================================================================
   13. Per-template overrides
   ========================================================================== */

/* --- shared: page wrappers ------------------------------------------------ */

html[data-theme="light"] .pub-page,
html[data-theme="light"] .terms-page,
html[data-theme="light"] .news-page,
html[data-theme="light"] .specs-page,
html[data-theme="light"] .std-page {
    background: var(--lt-bg);
    color: var(--lt-fg);
}

/* --- home: the product-category door slider -------------------------------
   Three lighting effects are staged on a dark page: a white cone shining down
   from the lamp, a pale halo behind the active door, and a strip under the
   door that darkens the photo so the white caption reads.
   On a light page all three have to flip, otherwise the cone turns into a grey
   slab and the caption sits straight on the photograph. */

/* The cone is a white PNG. Inverting it turns the light into a shadow, and
   multiply lets it darken what is behind it instead of lying on top as a flat
   rectangle. */
html[data-theme="light"] .lamp {
    filter: invert(1);
    opacity: .22;
    mix-blend-mode: multiply;
}

/* The halo is #d9d9d9, which glows on a dark page and disappears on a light
   one. A soft dark halo gives the same separation. The slider animates the
   element's opacity, so only the colour is touched here. */
html[data-theme="light"] .shadow,
html[data-theme="light"] .shadow.small {
    background-color: rgba(23, 23, 27, .16);
}

/* The floor ellipse is already a dark ring in the artwork, so it needs no
   inversion - it simply reads better on a light page than on a dark one.
   A small blur turns the hard outline into a contact shadow while keeping the
   whole oval visible, and the raised z-index keeps it above the fade below. */
html[data-theme="light"] .door-elipse {
    filter: blur(2.5px);
    z-index: 0;
}

/* The caption sits across the door at roughly three quarters of its height, so
   the dark title needs separating from the photograph.
   A full-width fade does that, but it wipes out the foot of the door and the
   result reads as a cropped image - worse on a short wide door, where the band
   lands across the middle of the panel.
   So the light is pooled behind the caption instead: a soft ellipse centred on
   the title and button, plus a tight halo on the glyphs themselves. The door
   keeps its entire silhouette, frame and base included. */
html[data-theme="light"] .door-detail-block::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    left: -60%;
    right: -60%;
    top: -74px;
    bottom: -30px;
    width: auto;
    height: auto;
    background: radial-gradient(ellipse 46% 50% at 50% 50%,
        rgba(244, 244, 246, .82) 0%,
        rgba(244, 244, 246, .62) 40%,
        rgba(244, 244, 246, .25) 62%,
        rgba(244, 244, 246, 0) 80%);
}

/* Layered short-radius shadows build a solid halo tight around the letters,
   which carries most of the legibility so the pool above can stay faint. */
html[data-theme="light"] .door-name {
    text-shadow:
        0 0 4px #f4f4f6,
        0 0 4px #f4f4f6,
        0 0 6px #f4f4f6,
        0 0 10px #f4f4f6,
        0 0 16px #f4f4f6,
        0 0 24px #f4f4f6;
}

html[data-theme="light"] .door-detail-block .fourthiary-button {
    background: rgba(244, 244, 246, .92);
}

/* --- gallery / exhibitions (assets/css/exhibitions.css) ------------------- */
/* That stylesheet drives everything from its own :root tokens, so remapping
   them here covers the archive, the cards and the single view at once.
   --exh-accent keeps the Istadoor yellow. */

html[data-theme="light"] {
    --exh-text: var(--lt-fg);
    --exh-muted: var(--lt-muted);
    --exh-faint: var(--lt-line);
    --exh-tile: var(--lt-bg-alt);
}

/* This badge sits on the card photo and carries its own dark pill, so it keeps
   white text rather than following the global text colour. */
html[data-theme="light"] .exh-card__count {
    color: #fff;
}

/* --- shared: pagination (archive-product, taxonomy-product_cat/_model) ----- */

html[data-theme="light"] .page-numbers {
    background: var(--lt-surface);
    color: var(--lt-fg) !important;
    border-color: var(--lt-line);
}

html[data-theme="light"] .page-numbers:hover {
    background: var(--lt-bg-alt);
}

html[data-theme="light"] .page-numbers.current {
    background: var(--lt-accent);
    color: var(--lt-accent-fg) !important;
}

/* --- archive-project / taxonomy-project_category -------------------------- */

/* The scrim that sits over a project thumbnail.

   This started life as a white veil, on the reasoning that light mode needs dark
   text so the photo has to be lightened to suit it. That reasoning is wrong on
   two counts. A flat pale wash over a sharp photo is the universal rendering of
   a disabled control, and dark text has no dependable contrast against an
   arbitrary image - these thumbnails run from bright lobbies to dark interiors.

   A dark scrim does have dependable contrast, which is exactly why the dark-mode
   version works. So the hover keeps its dark takeover in light mode too, and the
   text sitting over it flips to white for as long as a photo is up. The navbar
   paints its own background above the scrim, so it needs nothing. */
html[data-theme="light"] .page-bg::before {
    background: rgba(12, 12, 14, .58);
}

html[data-theme="light"] .categories-wrapper.list-type .title-heading,
html[data-theme="light"] .categories-wrapper.list-type .text-block-48,
html[data-theme="light"] .categories-wrapper.list-type .link,
html[data-theme="light"] .categories-wrapper.list-type .text,
html[data-theme="light"] .categories-wrapper.list-type .list,
html[data-theme="light"] .categories-wrapper.list-type .simple-line-6 {
    transition: color .4s ease,
                border-color .4s ease,
                background-color .4s ease;
}

html[data-theme="light"] body.page-bg.active .categories-wrapper.list-type .title-heading,
html[data-theme="light"] body.page-bg.active .categories-wrapper.list-type .link,
html[data-theme="light"] body.page-bg.active .categories-wrapper.list-type .text {
    color: #fff;
}

html[data-theme="light"] body.page-bg.active .categories-wrapper.list-type .link:hover {
    color: rgba(255, 255, 255, .7);
}

/* The hovered row at full white and its siblings held back: with a photo filling
   the screen the list should say which project the photo belongs to. */
html[data-theme="light"] body.page-bg.active .categories-wrapper.list-type .text-block-48 {
    color: rgba(255, 255, 255, .55);
}

html[data-theme="light"] body.page-bg.active .categories-wrapper.list-type .project-item:hover .text-block-48 {
    color: #fff;
}

html[data-theme="light"] body.page-bg.active .categories-wrapper.list-type .list {
    border-bottom-color: rgba(255, 255, 255, .26);
}

/* Marked important only because the resting-state rule for these dividers is
   itself important. */
html[data-theme="light"] body.page-bg.active .categories-wrapper.list-type .simple-line-6 {
    background-color: rgba(255, 255, 255, .5) !important;
}

/* Full-screen mode. The scroll script fades every slide down toward 0.3 opacity
   as it leaves the centre of the viewport. Over a dark page that reads as the
   photo receding into the dark; over a light one it blends toward white and the
   slide looks switched off - the same white-wash problem as the scrim, arriving
   through opacity instead of an overlay. Rather than rewrite the script, the
   strip is given the dark canvas the effect was written against, so the fade
   resolves into dark again and the active slide stays full-blooded. */
html[data-theme="light"] .slide-type,
html[data-theme="light"] .slide-type .slides {
    background-color: #151519;
}

html[data-theme="light"] .slide-type .heading-8 {
    color: #fff;
}

html[data-theme="light"] #projectFilterDropdown {
    background: var(--lt-surface);
    border-color: var(--lt-line);
    box-shadow: 0 20px 50px rgba(23, 23, 27, .14);
}

html[data-theme="light"] #projectFilterDropdown a {
    color: var(--lt-fg-soft);
}

html[data-theme="light"] #projectFilterDropdown a:hover {
    background: var(--lt-tint);
    color: var(--lt-fg);
}

/* --- catalog -------------------------------------------------------------- */
/* The flipbook sits on the page background rather than on a photograph, so its
   controls follow the normal light treatment. */

html[data-theme="light"] .catalog-nav {
    border-color: var(--lt-line-strong);
    color: var(--lt-fg);
}

html[data-theme="light"] .catalog-nav:hover:not(:disabled) {
    background: var(--lt-tint-strong);
    border-color: var(--lt-fg);
}

html[data-theme="light"] .catalog-counter {
    color: var(--lt-muted);
}

/* --- contact -------------------------------------------------------------- */

html[data-theme="light"] .contact-card {
    background: var(--lt-bg-alt);
}

html[data-theme="light"] .contact-card-arrow {
    border-color: rgba(255, 255, 255, .8);
}

html[data-theme="light"] .contact-card:focus-visible {
    outline-color: var(--lt-accent);
}

/* --- cooperation ---------------------------------------------------------- */

html[data-theme="light"] .coop-page {
    --coop-bg: var(--lt-bg);
}

html[data-theme="light"] .coop-page .wpcf7-not-valid {
    border-bottom-color: var(--lt-danger) !important;
}

html[data-theme="light"] .coop-page .wpcf7-not-valid-tip,
html[data-theme="light"] .coop-page .wpcf7 form.invalid .wpcf7-response-output {
    color: var(--lt-danger);
    border-color: var(--lt-danger);
}

html[data-theme="light"] .coop-page .wpcf7 form.sent .wpcf7-response-output {
    color: var(--lt-success);
    border-color: var(--lt-success);
}

html[data-theme="light"] .coop-page .wpcf7 input[type="submit"] {
    background: var(--lt-accent);
    border-color: var(--lt-accent);
    color: var(--lt-accent-fg);
}

html[data-theme="light"] .coop-page .wpcf7 input[type="submit"]:hover {
    background: #000;
    border-color: #000;
}

html[data-theme="light"] .coop-send-inner::after {
    color: var(--lt-accent-fg);
}

/* --- factory-production --------------------------------------------------- */

html[data-theme="light"] .fac-page {
    --fac-bg: var(--lt-bg);
    --fac-panel: var(--lt-bg-alt);
}

html[data-theme="light"] .fac-video-frame {
    background: var(--lt-bg-alt);
}

/* .fac-hero and .fac-shot keep white text (section 9). Their internal
   hairlines stay light so they read against the photograph. */

/* --- front-page ----------------------------------------------------------- */

html[data-theme="light"] .ripple,
html[data-theme="light"] .target-circle {
    border-color: rgba(255, 255, 255, .4);
}

/* --- news (archive) ------------------------------------------------------- */

html[data-theme="light"] .news-page {
    --news-bg: var(--lt-bg);
    --news-panel: var(--lt-bg-alt);
    --news-line: var(--lt-line);
}

html[data-theme="light"] .news-card-media,
html[data-theme="light"] .news-cover {
    background: var(--lt-bg-alt);
}

html[data-theme="light"] .news-card-arrow {
    border-color: rgba(255, 255, 255, .8);
    color: #fff;
}

/* --- publications --------------------------------------------------------- */

html[data-theme="light"] .pub-page {
    --pub-line: var(--lt-line);
    --pub-soft: var(--lt-tint);
    --pub-mute: var(--lt-muted);
    /* The brand gold is too pale to read on a light page, so light mode uses a
       deeper tone of the same hue. It drives .pub-no, .pub-rank td:first-child
       and the .pub-rank-title rule. */
    --pub-accent: #8a6a28;
}

html[data-theme="light"] .pub-hero-rule {
    background: linear-gradient(to left, var(--lt-line-strong), transparent);
}

html[data-theme="light"] .pub-index a.is-active,
html[data-theme="light"] .pub-index a:hover,
html[data-theme="light"] .pub-p.is-lead,
html[data-theme="light"] .pub-rank td:nth-child(3) {
    color: var(--lt-fg);
}

html[data-theme="light"] .pub-index a.is-active {
    border-right-color: var(--lt-fg);
}

html[data-theme="light"] .pub-p,
html[data-theme="light"] .pub-types td:last-child,
html[data-theme="light"] .pub-rank td:nth-child(n+4) {
    color: var(--lt-fg-soft);
}

html[data-theme="light"] .pub-table th {
    border-bottom-color: var(--lt-line-strong);
}

html[data-theme="light"] .pub-criterion {
    background: var(--lt-surface);
    border: 1px solid var(--lt-line);
}

html[data-theme="light"] .pub-criterion:hover {
    background: var(--lt-bg-alt);
}

html[data-theme="light"] .pub-criterion-no {
    -webkit-text-stroke-color: var(--lt-line-strong);
}

html[data-theme="light"] .pub-rank tbody tr:first-child td,
html[data-theme="light"] .pub-rank tbody tr:first-child {
    background: rgba(214, 185, 128, .18);
}

/* --- services ------------------------------------------------------------- */

html[data-theme="light"] .svc-page {
    --svc-bg: var(--lt-bg);
    --svc-panel: var(--lt-bg-alt);
}

html[data-theme="light"] .svc-video-frame {
    background: var(--lt-bg-alt);
}

/* The call-to-action button draws its border from --svc-line, which on a light
   page resolves to the content hairline colour and all but vanishes. It gets a
   proper outline here, plus a lift on hover - the colour transition was
   already defined in the template, this extends it to the movement. */
html[data-theme="light"] .svc-btn {
    border-color: rgba(23, 23, 27, .45);
    transition: background-color .3s ease,
                color .3s ease,
                border-color .3s ease,
                transform .3s ease,
                box-shadow .3s ease;
}

html[data-theme="light"] .svc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(23, 23, 27, .18);
}


/* --- single-product ------------------------------------------------------- */

html[data-theme="light"] .product-price,
html[data-theme="light"] .comment-textarea,
html[data-theme="light"] .comment-submit {
    color: var(--lt-fg);
}

html[data-theme="light"] .product-price-label,
html[data-theme="light"] .comment-textarea::placeholder {
    color: var(--lt-muted);
}

/* Hero meta lines (category / model). In dark mode the label sits at slate grey
   and the value at 60% white, so the value reads brighter than its own label.
   Translated to a light background both tones collapse into the same washed-out
   grey and the line disappears, so the hierarchy is rebuilt the other way up:
   a soft label, a full-strength value. */
html[data-theme="light"] .text-block-10 {
    color: var(--lt-fg-soft);
}

html[data-theme="light"] .text-block-10 a {
    color: var(--lt-fg);
}

html[data-theme="light"] .text-block-10 a:hover {
    color: var(--lt-fg);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Feature badges are white-on-transparent PNGs, so they vanish on a light page.
   brightness(0) forces every opaque pixel to black and leaves the alpha channel
   untouched, which keeps working for any icon uploaded later whatever its
   colour; the opacity lands the result on the same ink as --lt-fg. */
html[data-theme="light"] .feature-icon {
    filter: brightness(0);
    opacity: .88;
}

/* Related products: the shared rule fades the image to 70% on hover. Over a dark
   page that dims it, but over a light one it bleaches it and the card reads as
   disabled. Lift the door instead, with a shadow that follows its silhouette
   rather than a rectangle - it says "clickable" without touching the artwork. */
html[data-theme="light"] .related-product .ralated-product-image {
    transition: transform .45s cubic-bezier(.22, .61, .36, 1),
                filter .45s ease;
}

html[data-theme="light"] .related-product:hover .ralated-product-image {
    opacity: 1;
    transform: translateY(-10px) scale(1.03);
    filter: drop-shadow(0 20px 26px rgba(23, 23, 27, .26));
}

html[data-theme="light"] .related-product:hover .ralated-product-name {
    color: var(--lt-fg);
}

html[data-theme="light"] .comment-textarea {
    background: var(--lt-surface);
    border-color: var(--lt-line);
}

html[data-theme="light"] .comment-submit {
    border-color: var(--lt-line-strong);
}

html[data-theme="light"] .comment-submit:hover {
    background-color: var(--lt-tint-strong);
}

/* --- single-project ------------------------------------------------------- */

html[data-theme="light"] .project-video-frame {
    background: var(--lt-bg-alt);
}

/* --- single (news article) ------------------------------------------------ */

html[data-theme="light"] .news-back:hover,
html[data-theme="light"] .news-content h2,
html[data-theme="light"] .news-content h3,
html[data-theme="light"] .news-content h4,
html[data-theme="light"] .news-content a,
html[data-theme="light"] .news-content blockquote,
html[data-theme="light"] .news-nav-link,
html[data-theme="light"] .news-card {
    color: var(--lt-fg);
}

html[data-theme="light"] .news-back,
html[data-theme="light"] .news-content {
    color: var(--lt-fg-soft);
}

html[data-theme="light"] .news-article-meta,
html[data-theme="light"] .news-content figcaption,
html[data-theme="light"] .news-nav-link small,
html[data-theme="light"] .news-card-meta,
html[data-theme="light"] .news-card-excerpt {
    color: var(--lt-muted);
}

html[data-theme="light"] .news-content a {
    text-decoration-color: var(--lt-line-strong);
}

html[data-theme="light"] .news-content a:hover {
    text-decoration-color: var(--lt-fg);
}

html[data-theme="light"] .news-content blockquote {
    border-right-color: var(--lt-line-strong);
}

html[data-theme="light"] .news-nav-link:hover {
    border-color: var(--lt-line-strong);
    background-color: var(--lt-tint);
}

/* --- social-responsibility ------------------------------------------------ */

html[data-theme="light"] .csr-page {
    --csr-bg: var(--lt-bg);
    --csr-panel: var(--lt-bg-alt);
}

/* .csr-hero keeps white text (section 9) */

/* --- standards ------------------------------------------------------------ */

html[data-theme="light"] .std-page {
    --std-active: var(--lt-accent);
    --std-pill: var(--lt-fg);
}

html[data-theme="light"] .std-tab {
    color: var(--lt-fg);
    border-color: var(--lt-line-strong);
}

html[data-theme="light"] .std-tab:hover {
    background: var(--lt-tint);
}

html[data-theme="light"] .std-tab.is-active {
    background: var(--lt-accent);
    border-color: transparent;
    color: var(--lt-accent-fg);
}

html[data-theme="light"] .std-tab:focus-visible {
    outline-color: var(--lt-fg);
}

html[data-theme="light"] .std-count,
html[data-theme="light"] .std-empty {
    color: var(--lt-muted);
}

html[data-theme="light"] .std-stage::before {
    opacity: 0;
}

html[data-theme="light"] .std-slide img {
    background: var(--lt-surface);
    box-shadow: 0 10px 40px rgba(23, 23, 27, .14);
}

/* --- technical-specs ------------------------------------------------------ */

html[data-theme="light"] .specs-page {
    --sp-bg: var(--lt-bg);
    --sp-active: var(--lt-accent);
    --sp-line: var(--lt-line-strong);
    color: var(--lt-fg);
}

html[data-theme="light"] .specs-title,
html[data-theme="light"] .specs-tab {
    color: var(--lt-fg);
}

/* The active tab is filled with --sp-active, which light mode maps to the dark
   accent, so its label has to flip to the light tone. */
html[data-theme="light"] .specs-tab.is-active {
    color: var(--lt-accent-fg);
}

html[data-theme="light"] .specs-desc {
    color: var(--lt-fg-soft);
}

html[data-theme="light"] .specs-tab:hover {
    background: var(--lt-tint);
}

html[data-theme="light"] .specs-tab:focus-visible {
    outline-color: var(--lt-fg);
}

html[data-theme="light"] .specs-stage::before {
    opacity: 0;
}

html[data-theme="light"] .specs-slide img {
    background: var(--lt-surface);
    box-shadow: 0 10px 40px rgba(23, 23, 27, .14);
}

html[data-theme="light"] .specs-count,
html[data-theme="light"] .specs-empty {
    color: var(--lt-muted);
}

/* --- terms-of-use --------------------------------------------------------- */

html[data-theme="light"] .terms-page {
    --terms-line: var(--lt-line);
}

/* A deliberately faint numeral. --lt-line-strong is tuned for hairlines and
   reads too weakly as text, so this sits a step darker. */
html[data-theme="light"] .terms-num {
    color: rgba(23, 23, 27, .45);
}

html[data-theme="light"] .terms-text {
    color: var(--lt-fg-soft);
}

html[data-theme="light"] .terms-item:hover .terms-num {
    color: var(--lt-fg);
}


/* --- footer ---------------------------------------------------------------
   On the dark page the footer separates itself by tone alone. Carried over to
   a light page every band collapsed into the same near-white and the edges
   disappeared.
   So the footer gets its own tonal ladder, each step darker than the page, and
   the rules and social buttons are strengthened - they were using
   --lt-line-strong, which is tuned for hairlines inside content and is far too
   faint once the surface behind it is already grey. */

html[data-theme="light"] .footer-vertical-wrapper-2 {
    background-color: #ecedf1;
    border-top-color: var(--lt-line);
}

/* The contact / offices band sits one step further down again. */
html[data-theme="light"] .horizontal-wrapper-2.gradient,
html[data-theme="light"] .horizontal-wrapper.gradient {
    background-image: linear-gradient(to right, #e2e4ea, #d8dae2);
}

html[data-theme="light"] .simple-line-4,
html[data-theme="light"] .simple-line-4.vertical-to-down,
html[data-theme="light"] .simple-line-4.right,
html[data-theme="light"] .simple-line-4.left {
    background-color: var(--lt-line-strong);
}

html[data-theme="light"] .tertiary-button.no-border.social,
html[data-theme="light"] .social-icon-wrapper {
    border-color: rgba(23, 23, 27, .42);
    transition: background-color .25s ease, border-color .25s ease;
}

html[data-theme="light"] .tertiary-button.no-border.social:hover,
html[data-theme="light"] .social-icon-wrapper:hover {
    background-color: rgba(23, 23, 27, .07);
    border-color: rgba(23, 23, 27, .72);
}

/* The four footer icons are pure white and fully monochrome - zero saturation,
   luminance 255 - so inverting them yields solid black with nothing else
   affected. Scoped to .small on purpose: the plain .social-icon class is also
   used by the catalogue-download icon on the home page, which is a mid grey
   and does not need this. */
html[data-theme="light"] .social-icon.small {
    filter: invert(1);
}
 
 /* ==========================================================
   ISTADOOR — Light Product Gallery V2
   ========================================================== */

html[data-theme="light"] .slider-doors {
    --gallery-caption-space: 120px;
}


/* Remove spotlight */

html[data-theme="light"] .section:has(.slider-doors) .lamp-image-wrapper {
    display: none !important;
}


/* Remove decorative effects */

html[data-theme="light"] .slider-doors .shadow,
html[data-theme="light"] .slider-doors .door-elipse {
    opacity: 0 !important;
    visibility: hidden !important;
}


/* Remove glow behind caption */

html[data-theme="light"] .slider-doors .door-detail-block::before,
html[data-theme="light"] .slider-doors .door-detail-block::after {
    content: none !important;
    display: none !important;
}

html[data-theme="light"] .slider-doors .door-name {
    text-shadow: none !important;
    background: transparent !important;
}


/* Reserve space for captions */

html[data-theme="light"] .slider-doors {
    box-sizing: content-box;
    padding-bottom: var(--gallery-caption-space);
}


/* Preserve original slide dimensions */

html[data-theme="light"] .slider-doors .swiper-slide.second {
    position: relative;
    overflow: visible !important;
}


/* Keep product title below the original slide */

html[data-theme="light"] .slider-doors .door-name {
    position: absolute !important;

    top: calc(100% + 10px) !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;

    width: 100%;
    margin: 0 !important;
    padding: 0;

    font-size: clamp(20px, 1.6vw, 28px);
    font-weight: 400;
    line-height: 1.5;

    text-align: center;

    color: var(--lt-fg) !important;
    transform: none !important;
}


/* Button container */

html[data-theme="light"] .slider-doors .door-detail-block {
    position: absolute !important;

    top: calc(100% + 68px) !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;

    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: auto;

    margin: 0;
    padding: 0;

    background: transparent !important;
    box-shadow: none !important;

    transform: none !important;
}


/* Category button */

html[data-theme="light"] .slider-doors .door-detail-block .fourthiary-button {
    background: transparent !important;
    color: var(--lt-fg) !important;

    border: 1px solid var(--lt-line-strong);
    border-radius: 100px;

    padding: 10px 24px;
    box-shadow: none !important;
}

html[data-theme="light"] .slider-doors .door-detail-block .fourthiary-button:hover {
    background: var(--lt-fg) !important;
    color: var(--lt-bg) !important;
}


/* Active slide captions */

html[data-theme="light"] .slider-doors .swiper-slide-active .door-name,
html[data-theme="light"] .slider-doors .swiper-slide-active .door-detail-block {
    opacity: 1 !important;
    visibility: visible !important;
}


/* Hide inactive captions */

html[data-theme="light"] .slider-doors .swiper-slide:not(.swiper-slide-active) .door-name,
html[data-theme="light"] .slider-doors .swiper-slide:not(.swiper-slide-active) .door-detail-block {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}


/* Remove pagination */

html[data-theme="light"] .slider-doors .swiper-pagination {
    display: none !important;
}

 
/* Mobile */

@media screen and (max-width: 767px) {

    html[data-theme="light"] .slider-doors {
        --gallery-caption-space: 110px;
    }

    html[data-theme="light"] .slider-doors .door-name {
        top: calc(100% + 12px) !important;
        font-size: 20px;
    }

    html[data-theme="light"] .slider-doors .door-detail-block {
        top: calc(100% + 50px) !important;
    }

    html[data-theme="light"] .slider-doors .door-detail-block .fourthiary-button {
        display: inline-flex !important;
        padding: 8px 18px;
        font-size: 13px;
    }
}
 
html[data-theme="light"] .slider-doors .slider-features-media {
    position: relative;
    isolation: isolate;
    overflow: visible !important;
}

 
html[data-theme="light"] .slider-doors .slider-features-media::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;

    width: 72%;
    height: 72%;

    transform: translate(-50%, -50%);
    border-radius: 999px;

    background: radial-gradient(
        circle at center,
        rgba(23, 23, 27, 0.10) 0%,
        rgba(23, 23, 27, 0.06) 38%,
        rgba(23, 23, 27, 0.025) 58%,
        rgba(23, 23, 27, 0) 78%
    );

    filter: blur(18px);
    z-index: -1;
    pointer-events: none;
}

 
html[data-theme="light"] .slider-doors .swiper-slide-active .slider-features-media::before {
    width: 78%;
    height: 78%;

    background: radial-gradient( circle at center, rgba(23, 23, 27, 0.07) 0%, rgba(23, 23, 27, 0.1) 38%, rgba(23, 23, 27, 0.04) 58%, rgba(23, 23, 27, 0) 80% );

    filter: blur(20px);
}
/* ==========================================================
   ISTADOOR — Light Mode Projects
   Minimal Glass Caption
   ========================================================== */

/* 1) image should stay natural */
html[data-theme="light"] .section.rrrr .project-frame .cover {
    background: transparent !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

html[data-theme="light"] .section.rrrr .project-frame::before,
html[data-theme="light"] .section.rrrr .project-frame::after,
html[data-theme="light"] .section.rrrr .project-frame .text-box::before,
html[data-theme="light"] .section.rrrr .project-frame .text-box::after {
    content: none !important;
    display: none !important;
    background: none !important;
}

/* 2) compact glass caption */
html[data-theme="light"] .section.rrrr .project-frame .text-box {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: 28px !important;
    transform: translateX(-50%) !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: min(480px, calc(100% - 32px)) !important;
    height: auto !important;
    min-height: 0 !important;

    display: flex !important;
    flex-direction: row-reverse !important; /* title on right / arrow on left */
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;

    padding: 10px 12px 10px 20px !important;
    margin: 0 !important;

    background: rgba(244, 244, 246, 0.88) !important;
    border: 1px solid rgba(23, 23, 27, 0.10) !important;
    border-radius: 10px !important;
    box-shadow: none !important;

    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);

    direction: rtl;
    text-align: right;
    z-index: 6;
}

/* 3) title */
html[data-theme="light"] .section.rrrr .project-frame .text-box h3.bl {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    max-width: 320px !important;
    min-height: 0 !important;
    order: 2;
    font-size: clamp(20px, 1.55vw, 24px) !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    color: var(--lt-fg) !important;
    text-align: right !important;
    text-shadow: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 4) description hidden for cleaner caption */
html[data-theme="light"] .section.rrrr .project-frame .text-box p {
    display: none !important;
}

/* 5) button becomes left circular arrow */
html[data-theme="light"] .section.rrrr .project-frame .text-box .fourthiary-button {
    position: relative;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto;

    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;

    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(23, 23, 27, 0.14) !important;
    border-radius: 999px !important;
    box-shadow: none !important;

    color: var(--lt-fg) !important;
    overflow: hidden;

    transition:
        background-color 250ms ease,
        border-color 250ms ease,
        color 250ms ease,
        transform 250ms ease;
}

/* hide current text inside button */
html[data-theme="light"] .section.rrrr .project-frame .text-box .fourthiary-button .text-block-17,
html[data-theme="light"] .section.rrrr .project-frame .text-box .fourthiary-button .text-block-35 {
    display: none !important;
}

/* arrow icon */
html[data-theme="light"] .section.rrrr .project-frame .text-box .fourthiary-button::before {
    content: "←";
    font-size: 18px;
    line-height: 1;
    font-weight: 400;
    color: currentColor;
}

/* hover */
html[data-theme="light"] .section.rrrr .project-frame .text-box .fourthiary-button:hover {
    background: var(--lt-fg) !important;
    border-color: var(--lt-fg) !important;
    color: var(--lt-bg) !important;
    transform: translateX(-2px);
}

/* 6) mobile */
@media screen and (max-width: 767px) {

    html[data-theme="light"] .section.rrrr .project-frame .text-box {
        bottom: 16px !important;
        max-width: calc(100% - 24px) !important;
        gap: 12px !important;
        padding: 8px 10px 8px 16px !important;
        border-radius: 9px !important;
    }

    html[data-theme="light"] .section.rrrr .project-frame .text-box h3.bl {
        max-width: 220px !important;
        font-size: 18px !important;
    }

    html[data-theme="light"] .section.rrrr .project-frame .text-box .fourthiary-button {
        width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
    }

    html[data-theme="light"] .section.rrrr .project-frame .text-box .fourthiary-button::before {
        font-size: 16px;
    }
}
/* ==========================================================
   ISTADOOR — Light Footer
   Architectural Gray
   ========================================================== */

html[data-theme="light"] {
    --lt-footer-bg: #eaeaec;
    --lt-footer-main: #e3e3e6;
    --lt-footer-line: #c9c9cd;
    --lt-footer-text: #17171b;
    --lt-footer-muted: #5d5d62;
}


/* Footer top and bottom */

html[data-theme="light"] .footer-vertical-wrapper-2 {
    background: var(--lt-footer-bg) !important;
    border-color: var(--lt-footer-line) !important;
}


/* Main footer — Remove gradient */

html[data-theme="light"] .horizontal-wrapper-2.gradient,
html[data-theme="light"] .horizontal-wrapper.gradient {
    background: var(--lt-footer-main) !important;
    background-image: none !important;
}


/* Divider lines */

html[data-theme="light"] .footer-vertical-wrapper-2 .simple-line-4,
html[data-theme="light"] .footer-vertical-wrapper-2 .simple-line-4.vertical-to-down,
html[data-theme="light"] .footer-vertical-wrapper-2 .simple-line-5 {
    background-color: var(--lt-footer-line) !important;
}


/* Footer links */

html[data-theme="light"] .footer-link-2 {
    color: var(--lt-footer-text);
}

html[data-theme="light"] .footer-link-2:hover {
    color: var(--lt-footer-muted);
}


/* Social icons */

html[data-theme="light"] .social-icon-wrapper {
    background: transparent !important;
    border-color: var(--lt-footer-line) !important;
    transition: background-color .25s ease,
                border-color .25s ease;
}

html[data-theme="light"] .social-icon-wrapper:hover {
    background: rgba(23, 23, 27, .05) !important;
    border-color: #99999e !important;
}


/* Copyright */

html[data-theme="light"] .footer-vertical-wrapper-2 .disclaimer {
    color: var(--lt-footer-muted);
}

html[data-theme="light"] .svc-hero::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to bottom,
        rgba(10, 10, 12, 0) 0%,
        rgba(10, 10, 12, 0.35) 35%,
        rgba(10, 10, 12, 0.09) 100%
    ), rgba(10, 10, 12, 0.35);
}


/* ==========================================================
   ISTADOOR — Light Factory Hero
   ========================================================== */


/* Hero layout */

html[data-theme="light"] .fac-hero {
    --fac-stats-height: 160px;

    min-height: clamp(680px, 100vh, 1000px);

    padding-top: 0;
    padding-bottom: var(--fac-stats-height);

    justify-content: center;

    background: var(--lt-bg);
}


/* Hero image */

html[data-theme="light"] .fac-hero-img {
    height: calc(100% - var(--fac-stats-height));

    object-fit: cover;
    object-position: center;
}


/* Soft directional overlay */

html[data-theme="light"] .fac-hero::after {
    content: "";
    position: absolute;

    inset: 0 0 var(--fac-stats-height) 0;

    background: linear-gradient(
        to left,
        rgba(10, 10, 12, 0.65) 0%,
        rgba(10, 10, 12, 0.48) 25%,
        rgba(10, 10, 12, 0.15) 55%,
        rgba(10, 10, 12, 0.03) 100%
    );

    pointer-events: none;
}


/* Hero text */

html[data-theme="light"] .fac-hero .fac-title {
    color: #ffffff !important;
}

html[data-theme="light"] .fac-hero .fac-subtitle {
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="light"] .fac-hero .fac-kicker {
    color: rgba(255, 255, 255, 0.8) !important;
}


/* Separate stats strip */

html[data-theme="light"] .fac-hero .fac-stats-wrapper {
    position: absolute;

    bottom: 0;
    left: 0;
    right: 0;

    width: 100%;
    max-width: none;
    height: var(--fac-stats-height);

    display: flex;
    align-items: center;

    padding: 0 5%;

    background: var(--lt-bg);

    z-index: 2;
}


/* Stats grid */

html[data-theme="light"] .fac-stats {
    width: 100%;
    margin: 0;

    border-top: none;

    grid-template-columns: repeat(4, minmax(0, 1fr));
}


/* Individual stats */

html[data-theme="light"] .fac-stat {
    padding: 16px 24px;

    border-color: var(--lt-line);
}


/* Stats numbers */

html[data-theme="light"] .fac-stat-num {
    color: var(--lt-fg) !important;

    font-size: clamp(28px, 3.2vw, 46px);
    font-weight: 400;
    line-height: 1.3;
}


/* Stats labels */

html[data-theme="light"] .fac-stat-label {
    color: var(--lt-muted) !important;

    margin-top: 12px;

    font-size: 14px;
    line-height: 1.8;
}


/* Tablet & Mobile */

@media screen and (max-width: 991px) {

    html[data-theme="light"] .fac-hero {
        --fac-stats-height: 240px;
        min-height: 820px;
    }

    html[data-theme="light"] .fac-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html[data-theme="light"] .fac-stat:nth-child(n+3) {
        border-top: 1px solid var(--lt-line);
    }

    html[data-theme="light"] .fac-stat {
        padding: 20px 12px;
    }
}


@media screen and (max-width: 767px) {

    html[data-theme="light"] .fac-hero {
        --fac-stats-height: 240px;
        min-height: 760px;
    }

    html[data-theme="light"] .fac-hero::after {
        background: linear-gradient(
            to left,
            rgba(10, 10, 12, 0.65),
            rgba(10, 10, 12, 0.25)
        );
    }

    html[data-theme="light"] .fac-stat-num {
        font-size: 30px;
    }

    html[data-theme="light"] .fac-stat-label {
        font-size: 12px;
        margin-top: 8px;
    }

    html[data-theme="light"] .fac-hero .fac-stats-wrapper {
        padding: 0 16px;
    }
}
/* Standards Hero — Light Mode */

html[data-theme="light"] .std-hero::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(10, 10, 12, .48) 0%,
            rgba(10, 10, 12, .30) 35%,
            rgba(10, 10, 12, 0) 65%
        ),
        linear-gradient(
            to left,
            rgba(10, 10, 12, .55) 0%,
            rgba(10, 10, 12, .40) 35%,
            rgba(10, 10, 12, .12) 65%,
            rgba(10, 10, 12, 0) 100%
        );

    pointer-events: none;
}

html[data-theme="light"] .std-hero .std-intro {
    color: #fff !important;
    font-weight: 400;
}

html[data-theme="light"] .std-hero-img {
    filter: brightness(1.10);
}

html[data-theme="light"] .std-hero .std-title {
    color: #fff !important;
}

html[data-theme="light"] .std-hero .std-intro {
    color: rgba(255, 255, 255, 0.95) !important;
}


/* Mobile */

@media screen and (max-width: 767px) {

    html[data-theme="light"] .std-hero::after {
        background: linear-gradient(
            to top,
            rgba(10, 10, 12, 0.78) 0%,
            rgba(10, 10, 12, 0.55) 40%,
            rgba(10, 10, 12, 0.15) 75%,
            rgba(10, 10, 12, 0.05) 100%
        );
    }
}

    html[data-theme="light"] .swiper-slide.second {
  height: 26em;
}
 /* ISTADOOR — Minimal Project Caption */

html[data-theme="light"] .section.rrrr .project-frame .text-box {
    left: 5% !important;
    right: 5% !important;
    bottom: 32px !important;

    transform: none !important;

    width: 90% !important;
    max-width: none !important;

    padding: 0 !important;
    gap: 24px !important;

    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

    flex-direction: row !important;
    direction: rtl;
}

/* Project title */

html[data-theme="light"] .section.rrrr .project-frame .text-box h3.bl {
    color: #fff !important;
    font-size: clamp(20px, 2vw, 32px) !important;
    font-weight: 400 !important;

    max-width: 70% !important;
    order: 0;
}

/* Connecting line */

html[data-theme="light"] .section.rrrr .project-frame .text-box::before {
    content: "" !important;
    display: block !important;

    position: static !important;

    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, .4) !important;

    order: 1;
}

/* Transparent arrow button */

html[data-theme="light"] .section.rrrr .project-frame .text-box .fourthiary-button {
    order: 2;

    width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;

    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, .65) !important;

    color: #fff !important;
    border-radius: 50% !important;
}

/* Arrow hover */

html[data-theme="light"] .section.rrrr .project-frame .text-box .fourthiary-button:hover {
    background: #fff !important;
    color: #17171b !important;
    border-color: #fff !important;
}

/* Local contrast — bottom only */

html[data-theme="light"] .section.rrrr .project-frame::after {
    content: "" !important;
    display: block !important;

    position: absolute;
    inset: auto 0 0;

    height: 22%;

    background: linear-gradient(
        to top,
        rgba(10, 10, 12, .65),
        rgba(10, 10, 12, 0)
    ) !important;

    pointer-events: none;
    z-index: 1;
}

/* Mobile */

@media screen and (max-width: 767px) {

    html[data-theme="light"] .section.rrrr .project-frame .text-box {
        bottom: 20px !important;
        gap: 12px !important;
    }

    html[data-theme="light"] .section.rrrr .project-frame .text-box h3.bl {
        font-size: 18px !important;
        white-space: normal !important;
    }

    html[data-theme="light"] .section.rrrr .project-frame .text-box .fourthiary-button {
        width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
    }
}
 
/* ==================================================
   HOME — LIGHT HERO PARALLAX FIX
   ================================================== */

html[data-theme="light"] .section-2 .hero-image-wrapper {
    overflow: hidden !important;
}

html[data-theme="light"] .section-2 .hero-main-image {
    translate: none !important;

    object-position:
        50% var(--istd-hero-position, 8%) !important;

    will-change: object-position;
}

/* Preserve hero slogan readability */

html[data-theme="light"] .section-2
.hero-texes-wrapper .text-block-3.bl {
    color: #fff !important;
}

/* Preserve second subtitle */

html[data-theme="light"] .section-2
#section-trigger .text-block-3 {
    color: var(--lt-fg, #17171b) !important;
}


/* ==================================================
   CATALOG STRIP
   ================================================== */

html[data-theme="light"] #Solutions.mb-3:has(.catalog-link) {
    position: relative;

    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;

    padding:
        clamp(100px, 10vw, 180px)
        0
        0 !important;
}

html[data-theme="light"] #Solutions.mb-3:has(.catalog-link) > .section-part {
    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;
}

html[data-theme="light"] #Solutions.mb-3:has(.catalog-link) .container.for-slider {
    width: 90% !important;
    max-width: none !important;

    height: auto !important;
    min-height: 0 !important;

    margin: 0 auto !important;
    padding: 0 !important;
}

html[data-theme="light"] #Solutions.mb-3:has(.catalog-link) .horizontal-wrapper-3.title {
    position: relative !important;

    display: flex !important;
    justify-content: space-between;
    align-items: center;

    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 18px 0 !important;

    direction: ltr;

    border-bottom: 1px solid var(--lt-line);
}

html[data-theme="light"] #Solutions.mb-3:has(.catalog-link) .simple-line-6 {
    display: none !important;
}

html[data-theme="light"] #Solutions.mb-3:has(.catalog-link) .gray-text-2 {
    color: var(--lt-muted) !important;
    direction: rtl;
}

html[data-theme="light"] #Solutions.mb-3:has(.catalog-link) .catalog-link {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
}


/* ==================================================
   ABOUT — TYPOGRAPHY ONLY
   ================================================== */

html[data-theme="light"] .istd-about-editorial {
    width: 100%;

    margin: 0 !important;

    padding:
        clamp(80px, 8vw, 130px)
        0
        clamp(80px, 9vw, 140px) !important;

    background: var(--lt-bg);
}

html[data-theme="light"] .istd-about-editorial > .container-2 {
    width: 90% !important;
    max-width: none !important;

    margin: 0 auto !important;
    padding: 0 !important;
}


/* Remove About image completely */

html[data-theme="light"] .istd-about-editorial .about-image-div {
    display: none !important;
}


/* Reset previous layouts */

html[data-theme="light"] .istd-about-editorial .about-section,
html[data-theme="light"] .istd-about-editorial .div-block-3 {
    position: relative !important;
    inset: auto !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    max-width: none !important;

    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    gap: 0 !important;

    background: transparent !important;

    border: none !important;
    box-shadow: none !important;

    transform: none !important;
    opacity: 1 !important;

    overflow: visible !important;

    direction: rtl;
    text-align: center;
}

html[data-theme="light"] .istd-about-editorial .about-section::before,
html[data-theme="light"] .istd-about-editorial .about-section::after {
    display: none !important;
    content: none !important;
}


/* ==================================================
   EXPERIENCE NUMBER
   ================================================== */

html[data-theme="light"] .istd-about-editorial .text-block-5 {
    position: relative !important;
    inset: auto !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: clamp(120px, 16vw, 260px) !important;
    font-weight: 300;
    line-height: .9;
    letter-spacing: -.055em;

    direction: ltr;
    text-align: center;

    color: var(--lt-fg) !important;
    -webkit-text-fill-color: var(--lt-fg) !important;

    background: none !important;
    text-shadow: none !important;

    transform: none !important;
    opacity: 1 !important;
}


/* Experience heading */

html[data-theme="light"] .istd-about-editorial .heading {
    position: relative !important;
    inset: auto !important;

    width: auto !important;

    margin: 24px 0 0 !important;
    padding: 0 !important;

    font-size: clamp(26px, 3vw, 44px) !important;
    font-weight: 400;
    line-height: 1.5;

    color: var(--lt-fg) !important;

    text-align: center !important;
    text-shadow: none !important;

    transform: none !important;
    opacity: 1 !important;
}


/* ==================================================
   ABOUT — CENTERED STATEMENT
   ================================================== */

html[data-theme="light"] .istd-about-editorial .text-block-6 {
    position: relative !important;
    inset: auto !important;

    width: 45% !important;
    max-width: 1150px !important;

    margin: clamp(32px, 4vw, 60px) auto 0 !important;
    padding: 0 !important;

    font-size: clamp(24px, 2.8vw, 24px) !important;
    font-weight: 400;

    line-height: 1.85 !important;

    color: var(--lt-fg) !important;

    text-align: center !important;
    direction: rtl;

    transform: none !important;
    opacity: 1 !important;
}
html[data-theme="light"] .section-2 .big-logo {
    translate: 0 5rem;
}
html[data-theme="light"] .istd-about-editorial .text-block-6 p,
html[data-theme="light"] .istd-about-editorial .text-block-6 span {
    font-size: inherit !important;
    line-height: inherit !important;

    color: inherit !important;
    text-align: inherit !important;

    margin: 0;
}


/* ==================================================
   READ MORE BUTTON
   ================================================== */

html[data-theme="light"] .istd-about-editorial .fourthiary-button {
    position: relative !important;
    inset: auto !important;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: auto !important;
    min-height: 46px;

    margin: 36px auto 0 !important;
    padding: 12px 30px !important;

    background: transparent !important;

    border: 1px solid var(--lt-line-strong) !important;
    border-radius: 999px !important;

    color: var(--lt-fg) !important;

    transform: none !important;
    opacity: 1 !important;

    transition:
        background-color .3s ease,
        color .3s ease,
        border-color .3s ease;
}

html[data-theme="light"] .istd-about-editorial .fourthiary-button .text-block-35 {
    color: inherit !important;
}

html[data-theme="light"] .istd-about-editorial .fourthiary-button:hover {
    background: var(--lt-fg) !important;
    color: var(--lt-bg) !important;
    border-color: var(--lt-fg) !important;
}


/* ==================================================
   TABLET — HERO IMAGE POSITION
   ================================================== */

@media screen and (max-width: 991px) {

    html[data-theme="light"] .section-2 .hero-main-image {
        object-position:
            50% var(--istd-hero-position, 12%) !important;
    }
}


/* ==================================================
   MOBILE
   ================================================== */

@media screen and (max-width: 767px) {

    html[data-theme="light"] #Solutions.mb-3:has(.catalog-link) {
        padding-top: 100px !important;
    }

    html[data-theme="light"] #Solutions.mb-3:has(.catalog-link) .horizontal-wrapper-3.title {
        padding: 14px 0 !important;
        gap: 12px;
    }

    html[data-theme="light"] .istd-about-editorial {
        padding: 64px 0 80px !important;
    }

    html[data-theme="light"] .istd-about-editorial .text-block-5 {
        font-size: clamp(100px, 28vw, 160px) !important;
    }

    html[data-theme="light"] .istd-about-editorial .heading {
        font-size: 26px !important;
        margin-top: 16px !important;
    }

    html[data-theme="light"] .istd-about-editorial .text-block-6 {
        width: 100% !important;
        font-size: clamp(20px, 5vw, 26px) !important;
        margin-top: 28px !important;
    }

    html[data-theme="light"] .istd-about-editorial .fourthiary-button {
        margin-top: 28px !important;
    }
}

@media screen and (max-width: 479px) {

    html[data-theme="light"] .section-2 .hero-main-image {
        object-position:
            50% var(--istd-hero-position, 16%) !important;
    }
}


/* ==================================================
   REDUCED MOTION
   ================================================== */

@media (prefers-reduced-motion: reduce) {

    html[data-theme="light"] .section-2 .hero-main-image {
        translate: none !important;
        will-change: auto;
    }
}
 /* HOME — Fullscreen Hero / Light Mode */

html[data-theme="light"] .section-2,
html[data-theme="light"] .section-2 > .container-2,
html[data-theme="light"] .section-2 .hero-image-wrapper {
    height: 90vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: none !important;
}

html[data-theme="light"] .section-2 .hero-main-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
/* ==================================================
   HOME — HERO CONTENT ALIGNMENT
   LIGHT MODE ONLY
   ================================================== */

html[data-theme="light"] .section-2 {
    position: relative !important;
    overflow: visible !important;
    margin-bottom: clamp(70px, 8vh, 110px) !important;
}

html[data-theme="light"] .section-2 > .container-2 {
    position: relative !important;
}

/* Hero content anchor */

html[data-theme="light"] .section-2 .div-block {
    position: absolute !important;

    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;

    width: 100% !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    z-index: 3;
}
html[data-theme="light"] .section-2 .text-div {
    height: 35% !important;
}
/* Logo and slogan */

html[data-theme="light"] .section-2 .hero-texes-wrapper {
    position: relative !important;

    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;

    width: 100% !important;

    margin: 0 !important;
    padding-bottom: clamp(20px, 3vh, 40px) !important;
}

/* Main slogan */

html[data-theme="light"] .section-2 .text-block-3.bl {
    color: #fff !important;
}

/* Subtitle below the hero image */

html[data-theme="light"] .section-2 #section-trigger {
    position: absolute !important;

    top: 100% !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;

    width: 100% !important;

    margin: 0 !important;
    padding: clamp(24px, 4vh, 48px) 16px 0 !important;

    text-align: center !important;
}

html[data-theme="light"] .section-2 #section-trigger .text-block-3 {
    color: var(--lt-fg, #17171b) !important;
}
html[data-theme="light"] .istd-about-editorial .text-block-5,
html[data-theme="light"] .istd-about-editorial .heading {
    display: none !important;
}

html[data-theme="light"] .istd-about-editorial .text-block-6 {
    margin-top: 0 !important;
}
html[data-theme="light"] .istd-about-editorial .text-block-6::before {
    content: "◆  درباره ایستادُر";
    display: block;

    margin-bottom: 2rem;

    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    word-spacing: .15em;

    color: var(--lt-fg, #17171b);
    text-align: center;
    direction: rtl;
}
/* Mobile */

@media screen and (max-width: 767px) {

    html[data-theme="light"] .section-2 .hero-texes-wrapper {
        padding-bottom: 24px !important;
    }

    html[data-theme="light"] .section-2 #section-trigger {
        padding-top: 24px !important;
    }

    html[data-theme="light"] .section-2 {
        margin-bottom: 60px !important;
    }
}



/* ==================================================
   ISTADOOR — STICKY PROJECT CAPTION
   LIGHT MODE ONLY
   ================================================== */

html[data-theme="light"] .section.rrrr.istd-sticky-projects {
    --project-height: 100svh;
    --caption-inset: 5%;
    --caption-bottom: 2.5rem;

    position: relative !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;

    padding: 0 !important;
}


/* Reset old project wrappers */

html[data-theme="light"] .istd-sticky-projects .section-part,
html[data-theme="light"] .istd-sticky-projects .container.none-padding-x,
html[data-theme="light"] .istd-sticky-projects .frame-parent,
html[data-theme="light"] .istd-sticky-projects .frgrg {
    position: relative !important;

    width: 100% !important;
    max-width: none !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;

    transform: none !important;
    opacity: 1 !important;
}


/* Shared track */

html[data-theme="light"] .istd-sticky-projects .frame-parent {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    isolation: isolate;
}

html[data-theme="light"] .istd-sticky-projects .frgrg {
    grid-area: 1 / 1;

    display: flex !important;
    flex-direction: column !important;

    gap: 0 !important;
}


/* ==================================================
   PROJECT IMAGES
   ================================================== */

html[data-theme="light"] .istd-sticky-projects .project-frame {
    position: relative !important;
    inset: auto !important;

    flex: 0 0 auto !important;

    width: 100% !important;
    max-width: none !important;

    height: var(--project-height) !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    background-size: cover !important;
    background-position: center !important;

    border-radius: 0 !important;

    transform: none !important;
    opacity: 1 !important;

    overflow: hidden !important;
}


/* Hide individual captions */

html[data-theme="light"] .istd-sticky-projects .project-frame .text-box {
    display: none !important;
}


/* Remove old image overlays */

html[data-theme="light"] .istd-sticky-projects .project-frame .cover {
    display: none !important;
}

html[data-theme="light"] .istd-sticky-projects .project-frame::before,
html[data-theme="light"] .istd-sticky-projects .project-frame::after {
    content: none !important;
    display: none !important;
}


/* ==================================================
   STICKY OVERLAY
   ================================================== */

.istd-project-sticky {
    display: none !important;
}

html[data-theme="light"] .istd-sticky-projects .istd-project-sticky {
    display: block !important;

    grid-area: 1 / 1;
    align-self: start;

    position: sticky !important;
    top: 0;

    width: 100%;
    height: var(--project-height);

    pointer-events: none;

    z-index: 20;
}


/* Bottom gradient */

html[data-theme="light"] .istd-project-sticky::before {
    content: "";

    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;

    height: 32%;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, .65) 0%,
        rgba(0, 0, 0, .25) 45%,
        transparent 100%
    );

    pointer-events: none;
}


/* ==================================================
   FIXED CAPTION ROW
   ================================================== */

html[data-theme="light"] .istd-project-caption {
    position: absolute;

    bottom: var(--caption-bottom);
    right: var(--caption-inset);
    left: var(--caption-inset);

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    gap: clamp(16px, 1.8vw, 36px);

    direction: rtl;
    color: #fff;

    pointer-events: none;
}


/* Project title */

html[data-theme="light"] .istd-project-name {
    display: block;

    flex: 0 1 auto;
    min-width: 0;

    margin: 0;
    padding: 0;

    color: #fff !important;

    font-size: clamp(22px, 2vw, 38px);
    font-weight: 400;
    line-height: 1.5;

    text-align: right;

    opacity: 1;

    transform: translateY(0);

    transition:
        opacity 180ms ease,
        transform 180ms ease;
}


/* Text transition */

html[data-theme="light"] .istd-project-name.is-changing {
    opacity: 0;
    transform: translateY(8px);
}


/* Horizontal line */

html[data-theme="light"] .istd-project-line {
    flex: 1 1 0;

    min-width: 16px;
    height: 1px;

    background: rgba(255, 255, 255, .48);
}


/* ==================================================
   PROJECT LINK
   ================================================== */

html[data-theme="light"] .istd-project-arrow {
    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 60px;
    height: 60px;

    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 50%;

    background: rgba(255, 255, 255, .04);

    color: #fff !important;

    font-family: Arial, sans-serif;
    font-size: 24px;
    line-height: 1;

    text-decoration: none !important;

    pointer-events: auto;

    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);

    transition:
        color .25s ease,
        background-color .25s ease,
        border-color .25s ease;
}

html[data-theme="light"] .istd-project-arrow:hover {
    background: #fff;
    border-color: #fff;

    color: #17171b !important;
}

html[data-theme="light"] .istd-project-arrow:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}


/* ==================================================
   MOBILE
   ================================================== */

@media screen and (max-width: 767px) {

    html[data-theme="light"] .section.rrrr.istd-sticky-projects {
        --caption-inset: 5%;
        --caption-bottom: 1.5rem;
    }

    html[data-theme="light"] .istd-project-caption {
        gap: 12px;
    }

    html[data-theme="light"] .istd-project-name {
        font-size: clamp(18px, 4.5vw, 24px);
        max-width: 75%;
    }

    html[data-theme="light"] .istd-project-arrow {
        width: 44px;
        height: 44px;

        font-size: 20px;
    }
}


/* Reduced motion */

@media (prefers-reduced-motion: reduce) {

    html[data-theme="light"] .istd-project-name,
    html[data-theme="light"] .istd-project-arrow {
        transition: none;
    }

    html[data-theme="light"] .istd-project-name.is-changing {
        transform: none;
    }
}
/* ==================================================
   STICKY PROJECTS — REMOVE ALL ORIGINAL CAPTIONS
   LIGHT MODE ONLY
   ================================================== */

/* Completely hide original project content */

html[data-theme="light"]
.section.rrrr.istd-sticky-projects
.project-frame .text-box {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


/* Remove individual image gradients */

html[data-theme="light"]
.section.rrrr.istd-sticky-projects
.project-frame .cover {
    display: none !important;
    visibility: hidden !important;
}


/* Remove all previous decorative layers */

html[data-theme="light"]
.section.rrrr.istd-sticky-projects
.project-frame::before,

html[data-theme="light"]
.section.rrrr.istd-sticky-projects
.project-frame::after,

html[data-theme="light"]
.section.rrrr.istd-sticky-projects
.project-frame .text-box::before,

html[data-theme="light"]
.section.rrrr.istd-sticky-projects
.project-frame .text-box::after {
    content: none !important;
    display: none !important;
}


/* Keep project images clean */

html[data-theme="light"]
.section.rrrr.istd-sticky-projects
.project-frame {
    filter: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
}


/* Keep only the shared sticky caption */

html[data-theme="light"]
.section.rrrr.istd-sticky-projects
.istd-project-sticky {
    z-index: 99 !important;
    pointer-events: none !important;
}

html[data-theme="light"]
.section.rrrr.istd-sticky-projects
.istd-project-arrow {
    pointer-events: auto !important;
}
html[data-theme="light"] .istd-project-name {
    transition:
        opacity 100ms ease,
        transform 100ms ease;
}


html[data-theme="light"] .istd-project-sticky::before {
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,.70), transparent 45%), rgba(0,0,0,0.1);
}

html[data-theme="light"] .istd-project-name {
    font-size: clamp(26px, 2.40vw, 46px) !important;
}

@media (max-width: 767px) {
    html[data-theme="light"] .istd-project-name {
        font-size: clamp(20px, 5vw, 28px) !important;
    }
}
html[data-theme="light"] .istd-project-name {
    opacity: 1;
    transform: translateY(0);

    transition:
        opacity 280ms ease-in-out,
        transform 280ms cubic-bezier(.22, 1, .36, 1);
}

html[data-theme="light"] .istd-project-name.is-changing {
    opacity: 0;
    transform: translateY(4px);
}

@media (prefers-reduced-motion: reduce) {
    html[data-theme="light"] .istd-project-name {
        transition: none;
        transform: none;
    }
}
html[data-theme="light"] .swiper.slider-doors {
    height: 27em !important;
}




/* HOME — Clean Hero to About Transition */

html[data-theme="light"] .section-2 #section-trigger {
    display: none !important;
}

html[data-theme="light"] #Solutions.mb-3:has(.catalog-link) {
    display: none !important;
}

html[data-theme="light"] .section-2 {
    margin-bottom: 0 !important;
}

html[data-theme="light"] .istd-about-editorial {
    margin-top: 0 !important;
    padding-top: clamp(64px, 6vw, 110px) !important;
}

@media screen and (max-width: 767px) {
    html[data-theme="light"] .istd-about-editorial {
        padding-top: 48px !important;
    }
}
html[data-theme="light"] .section-2 .hero-texes-wrapper .text-block-3.bl {
    display: none !important;
}