/* ==========================================================================
   Euclidz — main stylesheet
   Desktop values are measured from the 1440px PDF mockup.
   Breakpoint adaptations live in responsive.css.
   ========================================================================== */

/* ---------- Fonts (supplied files) ---------- */
@font-face {
    font-family: "BDO Grotesk";
    src: url("../fonts/bdo-grotesk-var.woff2") format("woff2-variations"),
         url("../fonts/bdo-grotesk-var.woff2") format("woff2"),
         url("../fonts/bdo-grotesk-var.ttf") format("truetype");
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Moonspace";
    src: url("../fonts/moonspace.woff2") format("woff2"),
         url("../fonts/moonspace.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
    --yellow: #fbc711;
    --yellow-2: #ffd43b;
    --black: #050706;
    --dark: #080808;
    --card: #141414;
    --card-2: #111111;
    --line-dark: #1e1e1e;
    --light: #ededed;
    --white: #ffffff;
    --ink: #0d0d0d;
    --muted-dark: #9a9a9a;
    --muted-light: #5f5f5f;

    --font: "BDO Grotesk", "Helvetica Neue", Arial, sans-serif;
    --font-display: "Moonspace", "BDO Grotesk", sans-serif;

    --gutter: 65px;
    --container: 1440px;
    --aside: 514px;      /* right column that starts at x=861 */
    --aside-sm: 407px;   /* right column that starts at x=968 */
    --header-h: 105px;

    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
body {
    margin: 0;
    background: var(--black);
    color: var(--white);
    font-family: var(--font);
    font-size: 15px;
    line-height: 26px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: #000; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 2px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; background: var(--yellow); color: #000; padding: 10px 16px; border-radius: 4px; transition: top .2s; }
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.display {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 48px;
    line-height: 56px;
    letter-spacing: 0;
    text-transform: uppercase;
    font-kerning: normal;
}
.display .line { display: block; overflow: hidden; padding-bottom: 2px; margin-bottom: -2px; }
.display .line > span { display: inline-block; }
.display .dot { font-style: normal; color: var(--yellow); }

.eyebrow, .pill {
    font-size: 11px;
    line-height: 14px;
    letter-spacing: .14em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.sq { display: inline-block; width: 6px; height: 6px; background: var(--yellow); flex: 0 0 auto; }
.pill {
    height: 32px;
    padding: 0 18px 0 16px;
    border: 1px solid currentColor;
    border-radius: 999px;
}
.pill i { font-style: normal; opacity: .6; margin: 0 2px; }
.pill--dark { background: #111; border-color: #222; color: #b7b7b6; }
.pill--solid { background: #111; border-color: #111; color: #b7b7b6; }
.pill--glass { background: rgba(14, 14, 14, .9); border-color: rgba(255, 255, 255, .12); color: #b7b7b6; }

.lead { font-size: 15px; line-height: 26px; }
.section-sub { font-size: 15px; line-height: 26px; margin-top: 32px; }

/* ---------- Text roll (hover) ---------- */
.roll { position: relative; display: inline-block; flex-shrink: 0; overflow: hidden; vertical-align: top; line-height: inherit; }
.roll > span { display: inline-block; transition: transform .5s var(--ease-out); }
.roll::after {
    content: attr(data-text);
    position: absolute; left: 0; top: 100%;
    transition: transform .5s var(--ease-out);
    white-space: nowrap;
}
a:hover .roll > span, button:hover .roll > span,
a:focus-visible .roll > span { transform: translateY(-100%); }
a:hover .roll::after, button:hover .roll::after,
a:focus-visible .roll::after { transform: translateY(-100%); }

/* ---------- Buttons ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 48px;
    padding: 0 17px 0 19px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 16px;
    overflow: hidden;
    isolation: isolate;
    transition: color .45s var(--ease-out), border-color .45s var(--ease-out), box-shadow .45s var(--ease-out);
    white-space: nowrap;
}
.btn__icon { display: inline-flex; transition: transform .5s var(--ease-out); }
.btn__icon svg { width: 7px; height: 7px; }
.btn:hover .btn__icon { transform: rotate(45deg); }
.btn--yellow { background: var(--yellow); color: #0b0b0b; }
.btn--yellow:hover { box-shadow: 0 10px 34px -10px rgba(251, 199, 17, .6); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, .42); color: #fff; }
.btn--ghost:hover { color: #0b0b0b; border-color: #fff; }
.btn--lg { height: 49px; font-size: 14px; padding: 0 22px 0 23px; gap: 22px; }
.btn--lg .btn__icon svg { width: 10.5px; height: 10.5px; }

/* mouse-position fill (spawned by JS) */
.btn .fill, .btn-pill .fill {
    position: absolute; z-index: -1;
    width: 0; height: 0; border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width .6s var(--ease-out), height .6s var(--ease-out);
    pointer-events: none;
}
.btn--yellow .fill { background: #fff; }
.btn--ghost .fill, .btn-pill .fill { background: #fff; }
.btn:hover .fill, .btn-pill:hover .fill { width: 520px; height: 520px; }

.btn-pill {
    position: relative;
    display: inline-flex; align-items: center; gap: 26px;
    height: 57px; padding: 0 20px 0 20px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    font-size: 14px;
    overflow: hidden; isolation: isolate;
    transition: color .45s var(--ease-out), border-color .45s;
}
.btn-pill:hover { color: #0b0b0b; border-color: #fff; }
.btn-pill__icon { display: inline-flex; transition: transform .5s var(--ease-out); }
.btn-pill__icon svg { width: 12.5px; height: 12.5px; }
.btn-pill:hover .btn-pill__icon { transform: rotate(45deg); }

.link-line {
    position: relative;
    display: inline-flex; align-items: center; gap: 14px;
    font-size: 14px; line-height: 20px;
    padding-bottom: 10px;
}
.link-line::before, .link-line::after {
    content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
    background: currentColor;
}
.link-line::after { background: var(--yellow); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out); }
.link-line:hover::after { transform: scaleX(1); transform-origin: left; }
.link-line svg { width: 8px; height: 8px; transition: transform .5s var(--ease-out); }
.link-line:hover svg { transform: rotate(45deg); }

/* ---------- Preloader ---------- */
.preloader { display: none; }
.js .preloader {
    display: block;
    position: fixed; inset: 0; z-index: 900;
    pointer-events: none;
}
.preloader__panel { position: absolute; inset: 0; background: var(--black); z-index: 0; }
.preloader__inner {
    position: absolute; inset: 0; z-index: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
}
.preloader__logo { width: 174px; }
.preloader__bar { width: 220px; height: 1px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: left; }
.preloader__meta { width: 220px; display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #8a8a8a; line-height: 1; }
.preloader__count { color: #fff; font-variant-numeric: tabular-nums; }
.is-loaded .preloader { visibility: hidden; }

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
    .has-cursor .cursor { display: block; }
    .cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; z-index: 950; pointer-events: none; border-radius: 50%; will-change: transform; }
    .cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--yellow); }
    .cursor__ring {
        width: 38px; height: 38px; margin: -19px 0 0 -19px;
        border: 1px solid rgba(255, 255, 255, .45);
        display: flex; align-items: center; justify-content: center;
        transition: width .4s var(--ease-out), height .4s var(--ease-out), margin .4s var(--ease-out), background-color .4s, border-color .4s, opacity .3s;
    }
    .cursor__label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #000; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .4s var(--ease-out); }
    .cursor.is-link .cursor__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(251, 199, 17, .1); border-color: rgba(251, 199, 17, .75); }
    .cursor.is-label .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--yellow); border-color: transparent; }
    .cursor.is-label .cursor__label { opacity: 1; transform: none; }
    .cursor.is-label .cursor__dot, .cursor.is-link .cursor__dot { opacity: 0; }
    .cursor.is-hidden .cursor__ring, .cursor.is-hidden .cursor__dot { opacity: 0; }
    .has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
    .has-cursor input, .has-cursor textarea, .has-cursor select { cursor: text; }
}

/* ---------- Header ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--header-h);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    background: rgba(4, 6, 5, 1);
    transition: transform .6s var(--ease-out), background-color .4s, height .4s var(--ease-out), border-color .4s;
}
.site-header.is-scrolled { background: rgba(4, 6, 5, .9); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.site-header__inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; padding-left: 68px; padding-right: 66px; }
.site-logo { display: block; width: 174px; flex: 0 0 auto; }
.site-logo img { width: 100%; }
.main-nav { position: absolute; left: calc(50% - 178px); top: 50%; transform: translateY(-50%); }
.main-nav ul { display: flex; gap: 25px; }
.nav-link { position: relative; display: block; font-size: 14px; line-height: 20px; color: #bfc1c0; padding: 6px 0; transition: color .3s; }
.nav-link:hover, .nav-link.is-active { color: #fff; }
.nav-link::after {
    content: ""; position: absolute; left: 50%; top: calc(100% + 1px);
    width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%;
    background: var(--yellow);
    transform: scale(0); transition: transform .4s var(--ease-out);
}
.nav-link.is-active::after, .nav-link:hover::after { transform: scale(1); }
.menu-toggle { display: none; }

/* Mobile menu (shown < 1100px) */
.mobile-menu { position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none; }
.mobile-menu__bg { position: absolute; inset: 0; background: #070707; clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io); }
.mobile-menu__inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-top: 130px; padding-bottom: 40px; }
.mobile-menu__links a { display: flex; align-items: baseline; gap: 16px; font-family: var(--font-display); font-size: clamp(30px, 8vw, 54px); line-height: 1.25; text-transform: uppercase; color: #fff; overflow: hidden; }
.mobile-menu__links a small { font-family: var(--font); font-size: 11px; color: var(--yellow); letter-spacing: .1em; }
.mobile-menu__links a.is-active { color: var(--yellow); }
.mobile-menu__links li { overflow: hidden; }
.mobile-menu__links li a { transform: translateY(110%); transition: transform .7s var(--ease-out); }
.mobile-menu__foot { color: #8a8a8a; font-size: 14px; opacity: 0; transition: opacity .5s; }
.mobile-menu__foot a { color: #fff; display: inline-block; margin-bottom: 6px; }
.menu-open .mobile-menu { visibility: visible; pointer-events: auto; }
.menu-open .mobile-menu__bg { clip-path: inset(0 0 0 0); }
.menu-open .mobile-menu__links li a { transform: none; }
.menu-open .mobile-menu__foot { opacity: 1; transition-delay: .5s; }
.menu-open .mobile-menu__links li:nth-child(1) a { transition-delay: .25s; }
.menu-open .mobile-menu__links li:nth-child(2) a { transition-delay: .3s; }
.menu-open .mobile-menu__links li:nth-child(3) a { transition-delay: .35s; }
.menu-open .mobile-menu__links li:nth-child(4) a { transition-delay: .4s; }
.menu-open .mobile-menu__links li:nth-child(5) a { transition-delay: .45s; }
.menu-open .mobile-menu__links li:nth-child(6) a { transition-delay: .5s; }
.menu-open .mobile-menu__links li:nth-child(7) a { transition-delay: .55s; }

/* ---------- Generic sections ---------- */
.section { position: relative; }
.theme-light { background: var(--light); color: var(--ink); }
.theme-light .lead, .theme-light .section-sub { color: #545454; }
.theme-dark { background: var(--dark); color: #fff; }
.theme-dark .lead, .theme-dark .section-sub { color: #a7a8a7; }
.theme-dark .display, .closer .display, .cta .display { color: #f6f7f3; }

.split-head { display: grid; grid-template-columns: 1fr var(--aside); align-items: start; }
.split-head__aside .lead { max-width: 480px; }
.split-head__aside .link-line { margin-top: 36px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; background: #020202; }
.hero__stage { position: relative; min-height: clamp(640px, 100svh, 959px); overflow: hidden; display: flex; flex-direction: column; padding-top: var(--header-h); }
.hero__media { position: absolute; left: 0; right: 0; top: var(--header-h); bottom: 20px; z-index: 0; isolation: isolate; }
.hero__img { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.hero__img.is-active { opacity: 1; visibility: visible; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform-origin: 65% 50%; }
.hero__img.is-euclid img { object-position: 50% 0%; }
.hero__img.is-photo img { object-position: 70% 50%; }
.hero__img:nth-child(2) img { object-position: 62% 78%; }
.hero__img.is-photo::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 2, 2, .96) 0%, rgba(2, 2, 2, .86) 32%, rgba(2, 2, 2, .3) 62%, rgba(2, 2, 2, .15) 100%),
        linear-gradient(0deg, rgba(2, 2, 2, .9) 0%, rgba(2, 2, 2, 0) 30%);
}
.hero__shade { position: absolute; left: 0; right: 0; bottom: -20px; height: 140px; background: linear-gradient(0deg, #020202 15%, rgba(2, 2, 2, 0)); pointer-events: none; }

.hero__content { position: relative; z-index: 1; flex: 1 0 auto; display: grid; grid-template-areas: "slide" "actions"; align-content: center; justify-items: start; padding-bottom: 7px; pointer-events: none; }
.hero__slide { grid-area: slide; align-self: start; width: 620px; max-width: 100%; visibility: hidden; }
.hero__slide.is-active { visibility: visible; }
/* Chapter 1 sets the layout (as in the PDF); later chapters overlay it on desktop. */
@media (min-width: 901px) { .hero__slide + .hero__slide { position: absolute; top: 0; left: 0; } }
.hero__slide .eyebrow { font-size: 10.7px; letter-spacing: .145em; gap: 14px; color: #fff; }
.hero__slide .eyebrow .sq { width: 7px; height: 7px; }
.hero__title { margin-top: 30px; }
.hero__text { margin-top: 29px; max-width: 410px; color: #a8a8a8; font-size: 15px; line-height: 26px; }
.hero__actions { grid-area: actions; margin-top: 45px; display: flex; gap: 13px; pointer-events: auto; }
.hero__actions .btn { gap: 20px; padding: 0 15px 0 19px; }
.hero__actions .btn--yellow { min-width: 180px; }
.hero__actions .btn--ghost { min-width: 144px; }

.hero__bottom { position: relative; z-index: 1; flex: 0 0 auto; height: 113px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; }
.hero__hints { display: flex; gap: 46px; padding-top: 36px; }
.hero__hint { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; line-height: 14px; color: #7b7b7d; letter-spacing: .02em; transition: color .3s; }
.hero__hint:hover { color: #fff; }
.hero__hint-icon { display: inline-flex; color: var(--yellow); }
.hero__hint-icon svg { width: 6px; height: 12px; }
.hero__hint:last-child { color: #aeaeb0; }
.hero__hint:last-child .hero__hint-icon { color: #aaa9ae; }
.hero__hint:last-child .hero__hint-icon svg { width: 7px; height: 7px; }
.bob { animation: bob 1.8s var(--ease-io) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

.hero__tabs { display: flex; gap: 5px; margin-top: 0; margin-right: -1px; }
.hero__tab {
    position: relative;
    width: 181px; height: 45px;
    display: flex; align-items: center; gap: 11px;
    padding: 0 9px;
    border-radius: 4px;
    border: 1px solid transparent;
    color: #8f8f8f; text-align: left;
    transition: background-color .5s var(--ease-out), border-color .5s, color .4s;
    overflow: hidden;
}
.hero__tab small { font-family: Arial, var(--font); font-size: 9px; color: #6f6f6f; transition: color .4s; }
.hero__tab span { font-size: 12px; }
.hero__tab:hover { color: #fff; }
.hero__tab.is-active { background: #151515; border-color: rgba(255, 255, 255, .06); color: #fff; }
.hero__tab.is-active small { color: var(--yellow); }
.hero__tab-bar { position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: left; opacity: .9; }

/* ==========================================================================
   ABOUT (light)
   ========================================================================== */
.about { padding: 67px 0 65px; }
.about .pill { color: #111; padding-left: 17px; padding-right: 26px; }
.about .split-head { margin-top: 37px; }
.about .split-head__aside { padding-top: 0; margin-top: -4px; }
.about .split-head__aside .link-line { color: #555555; margin-left: 7px; margin-top: 50px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 42px; margin-top: 55px; padding: 0 1px 0 3px; }
.stat__line { display: block; height: 1px; background: #2a2a2a; transform-origin: left; }
.stat__num { margin-top: 20px; font-size: 48px; line-height: 56px; font-weight: 650; letter-spacing: -.01em; color: #0b0b0b; font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 10px; font-size: 12px; line-height: 16px; color: #1c1c1c; }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 64px; }
.pillar {
    position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 20px;
    height: 100px; padding: 0 24px;
    border-radius: 8px;
    background: linear-gradient(110deg, #1b1b1b 0%, #101010 45%, #0d0d0d 100%);
    border: 1px solid #262626;
    color: #fff;
    transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
    transform-style: preserve-3d;
}
.pillar:hover { box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .55); }
.pillar__icon {
    flex: 0 0 auto; width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: 8px;
    border: 1px solid #3a3a3a;
    background: linear-gradient(160deg, #2a2a2a, #161616);
    color: #e9e9e9;
    transition: border-color .4s, color .4s;
}
.pillar__icon svg { width: 30px; height: 30px; }
.pillar:hover .pillar__icon { border-color: rgba(251, 199, 17, .6); color: var(--yellow); }
.pillar__title { font-size: 16px; line-height: 20px; font-weight: 400; }
.pillar__text { margin-top: 8px; font-size: 12px; line-height: 16px; color: #8d8d8d; }
.pillar__glow, .dim-card__glow {
    position: absolute; inset: 0; pointer-events: none; opacity: 0;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(251, 199, 17, .12), transparent 70%);
    transition: opacity .4s;
}
.pillar:hover .pillar__glow { opacity: 1; }

/* ==========================================================================
   DIMENSIONS (dark)
   ========================================================================== */
.dimensions { padding: 68px 0 65px; background: var(--dark); }
.dimensions .pill { padding: 0 18px 0 16px; letter-spacing: .15em; }
.dimensions .display { margin-top: 36px; }
.dimensions .section-sub { margin-top: 30px; }

.dim-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 59px; }
.dim-card {
    position: relative; display: flex; flex-direction: column;
    height: 478px; padding: 15px;
    border: 1px solid #1c1c1c; border-radius: 16px;
    background: #0a0a0a;
    transition: border-color .5s, transform .6s var(--ease-out), background-color .5s;
    overflow: hidden;
}
.dim-card::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .06), transparent 60%);
}
.dim-card:hover { border-color: #333; }
.dim-card:hover::before { opacity: 1; }
.dim-card__head { display: flex; justify-content: space-between; align-items: flex-start; padding: 7px 13px 0 12px; }
.dim-card__title { font-size: 32px; line-height: 40px; font-weight: 400; letter-spacing: -.005em; }
.dim-card__arrow { margin-top: 12px; display: inline-flex; color: #acacac; transition: transform .6s var(--ease-out), color .4s; }
.dim-card__arrow svg { width: 11.3px; height: 11.3px; }
.dim-card:hover .dim-card__arrow { transform: rotate(45deg); color: var(--yellow); }
.dim-card__text { padding: 0 12px; margin-top: 16px; font-size: 13.3px; line-height: 20px; color: #9b9b9b; }
.dim-card__media { position: relative; margin-top: 23px; height: 281px; border-radius: 12px; overflow: hidden; background: #151515; }
.dim-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.dim-card:hover .dim-card__media img { transform: scale(1.06); }
.dim-card__foot { margin-top: auto; padding: 0 13px 22px 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 10px; line-height: 14px; color: #a9a9a7; }
.dim-card__foot svg { width: 9px; height: 9px; flex: 0 0 auto; transition: transform .6s var(--ease-out), color .4s; }
.dim-card:hover .dim-card__foot svg { transform: rotate(45deg); color: var(--yellow); }

/* ==========================================================================
   SOLUTIONS / REQUIREMENTS (dark)
   ========================================================================== */
.solutions { padding: 58px 0 67px; background: #050706; }
.solutions .eyebrow { color: #b6b8b6; letter-spacing: .145em; }
.solutions .split-head { margin-top: 20px; }
.solutions .split-head__aside { margin-top: -4px; }
.solutions .split-head__aside .lead { max-width: none; }
.solutions .split-head__aside .link-line { margin-top: 25px; color: #d6d8d5; }

.req { display: grid; grid-template-columns: 495px 1fr; column-gap: 119px; margin-top: 58px; }
.req__list { border-top: 1px solid #1d1d1d; margin-left: 1px; }
.req__item {
    position: relative; width: 100%;
    display: flex; align-items: center; gap: 0;
    height: 85px;
    border-bottom: 1px solid #1d1d1d;
    text-align: left;
    color: #e9e9e9;
}
.req__num { width: 38px; font-size: 11px; color: #a8aaa9; transition: color .4s; }
.req__label { flex: 1; font-size: 24px; line-height: 30px; color: #f8f8f5; transition: transform .6s var(--ease-out), color .4s; }
.req__arrow { display: inline-flex; color: #fff; transition: transform .6s var(--ease-out), color .4s; }
.req__arrow svg { width: 15px; height: 7.5px; overflow: visible; }
.req__item:hover .req__label { transform: translateX(10px); }
.req__item:hover .req__num { color: #fff; }
.req__item.is-active .req__arrow { transform: rotate(90deg); color: var(--yellow); }
.req__progress { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: left; }
.req__item:not(.is-active) .req__progress { transform: scaleX(0) !important; }

.req__panel { padding-top: 27px; }
.req__media { position: relative; height: 316px; border-radius: 12px; overflow: hidden; background: #111; }
.req__media img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    clip-path: inset(0 0 0 100%);
    transform: scale(1.12);
    transition: clip-path 1.1s var(--ease-io), transform 1.6s var(--ease-out);
}
.req__media img.is-active { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 1; }
.req__media img.is-leaving { clip-path: inset(0 0 0 0); z-index: 0; }
.req__copy { position: relative; margin-top: 28px; max-width: 470px; min-height: 100px; }
.req__text { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .7s var(--ease-out); pointer-events: none; }
.req__text.is-active { position: relative; opacity: 1; transform: none; transition-delay: .25s; pointer-events: auto; }
.req__text p { font-size: 14px; line-height: 23.3px; color: #a9aaaa; }
.req__text strong { color: #aaabab; font-weight: 400; }

/* ==========================================================================
   PROCESS (light)
   ========================================================================== */
.process { padding: 66px 0 66px; }
.process .pill { padding: 0 20px 0 21px; letter-spacing: .15em; }
.process .display { margin-top: 25px; color: #1b1b1b; }
.process .section-sub { margin-top: 16px; padding-left: 3px; }
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 46px; }
.process-card {
    position: relative; aspect-ratio: 1 / 1; min-height: 300px;
    padding: 38px 28px 26px;
    border-radius: 12px;
    background: var(--card);
    color: #fff;
    display: flex; flex-direction: column;
    transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out);
    --face: var(--card);
}
.process-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.process-card__num { font-size: 11px; line-height: 14px; color: var(--yellow); }
.process-card__title { margin-top: 26px; font-size: 24px; line-height: 30px; font-weight: 400; }
.process-card__text { margin-top: 15px; max-width: 225px; font-size: 12px; line-height: 19px; color: #a9a9a9; }
.process-card__icon { position: absolute; left: 50%; bottom: 29px; transform: translateX(-50%); display: block; line-height: 0; color: #9a9a9a; }
.process-card__icon svg { overflow: visible; }
.process-card--understand .process-card__icon svg { width: 75.4px; height: 86.5px; }
.process-card--create .process-card__icon svg { width: 86.4px; height: 82.5px; }
.process-card--connect .process-card__icon svg { width: 88px; height: 87px; }
.process-card--enable .process-card__icon svg { width: 114.5px; height: 52px; }
.process-card__icon .face { fill: var(--face); }
.process-card__icon .ac { color: var(--yellow); }
.process-card__icon path.ac { stroke: var(--yellow); }
.process-card .knob { transition: transform .9s var(--ease-out); }
.process-card .orbit, .process-card .spin { transform-box: fill-box; transform-origin: center; transition: transform 1.2s var(--ease-out); }
.process-card .orbit { transform-origin: 60px 64px; transform-box: view-box; }
.process-card:hover .orbit { transform: rotate(120deg); }
.process-card:hover .spin { transform: rotate(90deg); }
.process-card--enable .knob { transform: translateX(-54px); }
.process-card--enable.is-in .knob, .no-anim .process-card--enable .knob { transform: none; }
.process-card--enable:hover .knob { transform: translateX(-6px); }
.process-card--understand .ac { transition: filter .4s; }
.process-card:hover .ac { filter: drop-shadow(0 0 6px rgba(251, 199, 17, .9)); }

/* ==========================================================================
   CLOSER CONNECTION
   ========================================================================== */
.closer { position: relative; height: 400px; overflow: hidden; background: #2d2b39; }
.closer__bg { position: absolute; inset: 0; }
.closer__bg img { position: absolute; left: 26.6%; top: -3.4%; width: 74.2%; height: 106.8%; object-fit: cover; will-change: transform; }
.closer__bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, #150f0f 0%, #1b1718 14%, rgba(31, 29, 34, .92) 28%, rgba(31, 29, 34, .35) 42%, rgba(20, 15, 15, 0) 58%);
}
.closer__inner { position: relative; z-index: 1; padding-top: 55px; }
.closer .eyebrow { color: #bab6b6; letter-spacing: .145em; }
.closer .display { margin-top: 16px; }
.closer__text { margin-top: 17px; color: #a9a7a8; }
.closer .btn { margin-top: 29px; margin-left: 1px; width: 241px; }

/* ==========================================================================
   CLIENTS
   ========================================================================== */
.clients { position: relative; height: 600px; overflow: hidden; background: #032653; color: #fff; }
.clients__bg { position: absolute; inset: 0; background: url("../images/clients-map.jpg") center 58% / cover no-repeat; }
.clients__bg::after {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 62% 85% at 50% 48%, rgba(4, 52, 105, .25) 0%, rgba(4, 45, 92, .55) 55%, rgba(2, 17, 40, .95) 100%),
        linear-gradient(90deg, rgba(2, 15, 34, .85) 0%, rgba(2, 15, 34, 0) 22%, rgba(2, 15, 34, 0) 78%, rgba(2, 15, 34, .85) 100%);
}
.clients__marquees { position: absolute; left: 0; right: 0; top: 88px; z-index: 1; display: flex; flex-direction: column; gap: 19px;
    -webkit-mask-image: linear-gradient(90deg, transparent 6%, #000 30%, #000 70%, transparent 94%);
            mask-image: linear-gradient(90deg, transparent 6%, #000 30%, #000 70%, transparent 94%);
}
.marquee { overflow: hidden; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; gap: 62px; padding-right: 62px; height: 84px; }
.client-logo { flex: 0 0 auto; display: flex; align-items: center; height: 100%; }
.client-logo img { height: var(--h, 44px); width: auto; opacity: .82; transition: opacity .4s, transform .5s var(--ease-out); }
.client-logo:hover img { opacity: 1; transform: scale(1.06); }
.client-logo--adityaram { --h: 44px; } .client-logo--brigade { --h: 66px; } .client-logo--casagrand { --h: 33px; }
.client-logo--husqvarna { --h: 74px; } .client-logo--kg { --h: 78px; } .client-logo--lifestyle { --h: 71px; }
.client-logo--lml-homes { --h: 76px; } .client-logo--navin-s { --h: 62px; } .client-logo--rwd { --h: 40px; }
.client-logo--sameera { --h: 33px; } .client-logo--sobha { --h: 40px; } .client-logo--spr { --h: 37px; }
.client-logo--thermax { --h: 27px; } .client-logo--thermofisher { --h: 30px; } .client-logo--urban-tree { --h: 60px; }

.clients__copy { position: relative; z-index: 2; text-align: center; padding-top: 299px; }
.clients__copy .pill { letter-spacing: .14em; padding: 0 19px 0 18px; height: 33px; }
.clients__copy .display { margin-top: 25px; }
.clients__text { margin-top: 16px; font-size: 15px; line-height: 26px; font-weight: 400; color: #fdfeff; }

/* ==========================================================================
   TESTIMONIALS (light)
   ========================================================================== */
.testimonials { padding: 56px 0 69px; }
.testimonials .display { color: #1e1b1c; }
.testimonials .eyebrow { color: #1c1c1c; letter-spacing: .14em; }
.testimonials .split-head { margin-top: 13px; align-items: end; }
.testimonials .split-head__aside { padding-bottom: 6px; }
.t-slider { margin: 55px auto 0; max-width: 982px; }
.t-slider .swiper { overflow: hidden; border-radius: 12px; }
.t-card {
    height: 309px !important;
    padding: 22px 20px 20px;
    border-radius: 12px; background: #fff; color: #111;
    display: flex; flex-direction: column;
    transition: box-shadow .5s var(--ease-out);
    user-select: none;
}
.t-card__name { font-size: 16px; line-height: 20px; font-weight: 600; letter-spacing: -.005em; }
.t-card__role { margin-top: 3px; font-size: 12px; line-height: 16px; color: #1c1b1b; }
.t-card__stars { margin-top: 15px; display: flex; gap: 2.6px; color: var(--yellow); }
.t-card__stars svg { width: 12px; height: 12px; }
.t-card__quote { margin-top: 51px; max-width: 240px; }
.t-card__quote p { font-size: 14px; line-height: 21.3px; color: #2e2e2e; }
.t-slider__dots { display: flex; justify-content: center; gap: 11px; margin-top: 40px; height: 5px; }
.t-slider__dots button { width: 5px; height: 5px; background: #2b2b2b; border-radius: 0; transition: background-color .3s, width .5s var(--ease-out); }
.t-slider__dots button.is-active { background: var(--yellow); width: 22px; }

/* ==========================================================================
   PERSPECTIVES (dark)
   ========================================================================== */
.perspectives { padding: 56px 0 73px; background: #050706; }
.perspectives .eyebrow { color: #b6b8b6; letter-spacing: .15em; }
.split-head--blog { grid-template-columns: 1fr var(--aside-sm); margin-top: 13px; align-items: end; }
.split-head--blog .link-line { margin-top: 0; margin-bottom: 7px; color: #d7d8d6; }
.theme-dark .link-line::before { background: #474948; }
.theme-dark .link-line svg { color: #aaacab; }
.theme-light .link-line::before { background: #484848; }
span.link-line, span.post-card__more { cursor: default; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; margin-top: 48px; }
.post-card { border-radius: 12px; background: #121212; border: 1px solid #1a1a1a; transition: border-color .5s, transform .7s var(--ease-out); }
.post-card:hover { border-color: #2c2c2c; transform: translateY(-6px); }
.post-card__link { display: flex; flex-direction: column; height: 100%; padding: 32px 28px 30px 27px; }
.post-card__title { font-size: 18.7px; line-height: 27px; font-weight: 600; letter-spacing: -.005em; min-height: 54px; }
.post-card__media { margin-top: 29px; aspect-ratio: 350 / 252; border-radius: 12px; overflow: hidden; background: #1a1a1a; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; }
.post-card:hover .post-card__media img { transform: scale(1.07); }
.post-card__excerpt { margin-top: 33px; font-size: 14px; line-height: 20px; color: #a6a6a6; white-space: normal; height: 20px; overflow: hidden; }
.post-card__more { margin-top: 36px; display: inline-flex; align-items: center; gap: 15px; font-size: 14px; line-height: 20px; color: #fff; }
.post-card__more svg { width: 10px; height: 10px; transition: transform .5s var(--ease-out), color .4s; }
.post-card:hover .post-card__more svg { transform: rotate(45deg); color: var(--yellow); }

/* ==========================================================================
   CTA + FOOTER
   ========================================================================== */
.cta { background: #080808; border-top: 1px solid #1c1c1c; border-bottom: 1px solid #1c1c1c; }
.cta__inner { display: grid; grid-template-columns: 1fr var(--aside-sm); align-items: center; min-height: 222px; padding-top: 4px; }
.cta .btn { width: 242px; height: 50px; margin-top: 30px; }

.site-footer { background: #050706; color: #fff; padding-top: 66px; }
.site-footer__grid { display: grid; grid-template-columns: 437px 382px 250px 1fr; }
.site-footer__brand p { margin-top: 28px; font-size: 13px; line-height: 18px; color: #8a8a8a; }
.site-footer__head { font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: .17em; text-transform: uppercase; color: #8d8d8d; margin-top: -3px; }
.site-footer address { margin-top: 22px; font-size: 13px; line-height: 21px; color: #898a88; }
.site-footer address a:hover { color: #e1e2e1; }
.site-footer__mail { margin-top: 10px; font-size: 14px; line-height: 20px; color: #e1e2e1; padding-bottom: 2px; }
.site-footer__mail::before { display: none; }
.site-footer__mail::after { width: 100%; }
.site-footer__col ul { margin-top: 23px; }
.site-footer__col li { line-height: 22.2px; }
.site-footer__col li { font-size: 14px; color: #e1e2e2; }
.site-footer__bottom { margin-top: 60px; border-top: 1px solid #1f1f1f; padding: 24px 0 27px; }
.site-footer__bottom p { font-size: 11px; line-height: 14px; letter-spacing: .06em; color: #8a8a8a; }

/* Back to top */
.to-top {
    position: fixed; right: 26px; bottom: 26px; z-index: 80;
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(12, 12, 12, .75); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: #fff;
    opacity: 0; transform: translateY(16px); pointer-events: none;
    transition: opacity .4s, transform .5s var(--ease-out), color .3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: var(--yellow); }
.to-top svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke-width: 1.5; }
.to-top__track { stroke: rgba(255, 255, 255, .14); }
.to-top__bar { stroke: var(--yellow); stroke-dasharray: 138.2; stroke-dashoffset: 138.2; }
.to-top > svg:last-child { width: 15px; height: 15px; }

/* ==========================================================================
   Reveal / animation initial states (only when JS animations run)
   ========================================================================== */
.anim [data-reveal]:not(.is-in-view) { opacity: 0; transform: translateY(40px); }
.anim .img-reveal:not(.is-in-view) { clip-path: inset(100% 0 0 0); }
.anim .stat__line { transform: scaleX(0); }
.anim [data-split] { visibility: hidden; }
.split-line { overflow: hidden; padding-bottom: 2px; margin-bottom: -2px; }

/* ==========================================================================
   INNER PAGES
   ========================================================================== */
.page-hero { position: relative; padding: calc(var(--header-h) + 110px) 0 90px; background: #050706; overflow: hidden; border-bottom: 1px solid #1a1a1a; }
.page-hero__bg { position: absolute; inset: 0; opacity: .38; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #050706 0%, rgba(5, 7, 6, .85) 40%, rgba(5, 7, 6, .3) 100%), linear-gradient(0deg, #050706 0%, transparent 50%); }
.page-hero .container { position: relative; }
.page-hero .display { margin-top: 30px; max-width: 900px; }
.page-hero__text { margin-top: 26px; max-width: 520px; color: #a3a3a3; }
.crumbs { display: flex; gap: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8a8a8a; margin-top: 46px; }
.crumbs a:hover { color: var(--yellow); }

.exec-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 340px; gap: 24px; margin-top: 51px; }
.exec-item { position: relative; grid-column: span 4; border-radius: 16px; overflow: hidden; background: #111; }
.exec-item--wide { grid-column: span 8; }
.exec-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.exec-item:hover img { transform: scale(1.06); }
.exec-item__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 22px; background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent); display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.exec-item__cap h3 { font-size: 20px; line-height: 26px; font-weight: 500; }
.exec-item__cap span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.filters button { height: 38px; padding: 0 18px; border-radius: 999px; border: 1px solid #2a2a2a; font-size: 13px; color: #cfcfcf; transition: background-color .3s, color .3s, border-color .3s; }
.filters button:hover { border-color: #555; color: #fff; }
.filters button.is-active { background: var(--yellow); border-color: var(--yellow); color: #000; }
.exec-item.is-filtered { display: none; }

/* Forms */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 90px; }
.contact-info h3 { font-size: 12px; letter-spacing: .17em; text-transform: uppercase; font-weight: 400; color: #8d8d8d; }
.contact-info__item { padding: 28px 0; border-bottom: 1px solid #1d1d1d; }
.contact-info__item:first-child { padding-top: 0; }
.contact-info__item p, .contact-info__item a { margin-top: 12px; display: block; font-size: 16px; line-height: 26px; color: #e6e6e6; }
.contact-info__item a:hover { color: var(--yellow); }
.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 24px; }
.form__field { position: relative; display: flex; flex-direction: column; gap: 10px; }
.form__field--full { grid-column: 1 / -1; }
.form label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #9a9a9a; }
.form input, .form textarea, .form select {
    width: 100%; height: 52px; padding: 0 16px;
    background: #0e0e0e; border: 1px solid #242424; border-radius: 6px;
    color: #fff; font-size: 15px;
    transition: border-color .3s, background-color .3s;
    appearance: none;
}
.form select { background-image: linear-gradient(45deg, transparent 50%, #aaa 50%), linear-gradient(135deg, #aaa 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 17px) 23px; background-size: 5px 5px; background-repeat: no-repeat; }
.form textarea { height: 150px; padding: 14px 16px; resize: vertical; line-height: 24px; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--yellow); background: #111; }
.form .is-invalid { border-color: #e5484d !important; }
.form__error { font-size: 12px; color: #ff6b6b; min-height: 0; }
.form__hp { position: absolute !important; left: -9999px !important; }
.form__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 6px; }
.form__status { font-size: 14px; color: #bdbdbd; }
.form__status.is-ok { color: #7bd88f; }
.form__status.is-err { color: #ff6b6b; }
.btn.is-loading { pointer-events: none; opacity: .7; }

.prose-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 51px; }
.prose-card { padding: 34px 30px; border-radius: 12px; background: #121212; border: 1px solid #1c1c1c; }
.prose-card h3 { font-size: 22px; line-height: 28px; font-weight: 500; margin-top: 18px; }
.prose-card p { margin-top: 12px; color: #a3a3a3; font-size: 14px; line-height: 22px; }
.prose-card .sq { width: 8px; height: 8px; }

.not-found { min-height: 100svh; display: flex; align-items: center; padding: 160px 0 100px; }
.not-found .display { font-size: clamp(64px, 14vw, 180px); line-height: 1; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Menu labels without a page yet: same look as links, not interactive */
.nav-link--label { cursor: default; }
.nav-link--label:hover { color: #bfc1c0; }
.nav-link--label:hover::after { transform: scale(0); }
.mobile-menu__links .mobile-menu__label { display: flex; align-items: baseline; gap: 16px; font-family: var(--font-display); font-size: clamp(30px, 8vw, 54px); line-height: 1.25; text-transform: uppercase; color: #fff; transform: translateY(110%); transition: transform .7s var(--ease-out); cursor: default; }
.mobile-menu__links .mobile-menu__label small { font-family: var(--font); font-size: 11px; color: var(--yellow); letter-spacing: .1em; }
.menu-open .mobile-menu__links li .mobile-menu__label { transform: none; }
.menu-open .mobile-menu__links li:nth-child(1) .mobile-menu__label { transition-delay: .25s; }
.menu-open .mobile-menu__links li:nth-child(2) .mobile-menu__label { transition-delay: .3s; }
.menu-open .mobile-menu__links li:nth-child(3) .mobile-menu__label { transition-delay: .35s; }
.menu-open .mobile-menu__links li:nth-child(4) .mobile-menu__label { transition-delay: .4s; }
.menu-open .mobile-menu__links li:nth-child(5) .mobile-menu__label { transition-delay: .45s; }
.menu-open .mobile-menu__links li:nth-child(6) .mobile-menu__label { transition-delay: .5s; }
