/* Tuscan Digital — site styles (neutral design system + Tuscan brand accent) */
:root {
  /* ===== Design system tokens ===== */
  --bg-primary: #ffffff;
  --bg-secondary: #151515;
  --bg-3: #3b2bd9;            /* brand */
  --bg-4: #2e21c4;            /* brand hover */
  --bg-5: #eaeef0;
  --text-primary: #151515;
  --text-secondary: #ffffff;
  --text-3: #1d1d1d;
  --text-4: #3b2bd9;          /* brand text */
  --text-5: #4b4b4b;
  --color-light-gray: #cfd3d4;
  --color-mixed: #9a9a9a;
  --font-primary: "Helvetica Now Display", "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text-xs: 11.1111px;
  --text-sm: 13.3333px;
  --text-base: 15.5556px;
  --text-lg: 16px;
  --text-xl: 16.8889px;
  --text-2xl: 17.7778px;
  --text-3xl: 20px;
  --text-4xl: 22.2222px;
  --radius-sm: 71.1111px;     /* pills */
  --radius-md: 50%;           /* circles */
  --radius-lg: 2.22222px;     /* buttons, cards, media */
  --shadow-sm: rgba(2, 2, 3, 0.28) 0px 6.94445px 20.8333px 0px;
  --shadow-md: rgba(3, 6, 9, 0.26) 0px 13px 27px -5px;


  /* ===== Layout ===== */
  --line: rgba(21, 21, 21, 0.12);
  --line-d: rgba(255, 255, 255, 0.14);
  --pad: clamp(16px, 3.4vw, 56px);
  --max: 1520px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg-primary); color: var(--text-primary); font: 400 var(--text-lg)/1.55 var(--font-primary); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 400; letter-spacing: -0.035em; line-height: 1.04; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 999; background: var(--bg-secondary); color: #fff; padding: 10px 16px; border-radius: var(--radius-lg); }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--bg-3); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.gray { background: var(--bg-5); }
.dark { background: var(--bg-secondary); color: var(--text-secondary); }
.muted { color: var(--text-5); }
.dark .muted { color: rgba(255, 255, 255, 0.6); }
.grad-text, .grad-text .w, .grad-text .wi { color: #5a2fe6; }
.section { padding: clamp(90px, 11vw, 180px) 0; position: relative; }
.h-xl { font-size: clamp(2.8rem, 6.2vw, 6.6rem); }
.h-lg { font-size: clamp(2.4rem, 4.6vw, 4.8rem); }
.h-md { font-size: clamp(1.9rem, 3vw, 3.1rem); }

/* 12-column grid used by most sections */
.g12 { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(14px, 1.6vw, 28px); }

/* Label */
.label { display: inline-flex; align-items: center; gap: 10px; font-size: var(--text-sm); color: var(--text-5); }
.dark .label, .on-media .label { color: rgba(255, 255, 255, 0.72); }
.bars { display: inline-flex; gap: 2px; align-items: center; }
.bars i { display: block; height: 8px; background: #5a2fe6; }
.bars i:nth-child(2) { background: #3b2bd9; } .bars i:nth-child(3) { background: #2a1fae; } .bars i:nth-child(4) { background: #1c138f; }
.bars i:nth-child(1) { width: 10px; } .bars i:nth-child(2) { width: 6px; } .bars i:nth-child(3) { width: 3px; } .bars i:nth-child(4) { width: 1.5px; }

/* Buttons */
.btn { position: relative; display: inline-flex; align-items: center; gap: 14px; padding: 15px calc(18px + var(--tail)) 15px 22px; border-radius: var(--radius-lg); font-size: var(--text-base); font-weight: 500; color: #fff; border: 0; cursor: pointer; transition: color .3s; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--line { padding-right: 22px; background: transparent; border: 1px solid currentColor; }
.btn--line:hover { background: rgba(255,255,255,.08); }
.btn--sm { padding: 11px calc(12px + var(--tail)) 11px 16px; font-size: var(--text-sm); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-base); font-weight: 500; color: var(--text-4); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Stepped slices (from the logo bar) ----------
   A solid body that breaks into four narrower, darker slices with real gaps,
   like the bars after "DIGITAL" in the logo. Gaps are transparent, so the
   surface behind shows through. Used instead of gradients. */
@property --body { syntax: "<color>"; inherits: true; initial-value: #3b2bd9; }
.btn:not(.btn--line), .side-tab, .ck-head, .ck-cta, .hpanel--brand {
  --body: #3b2bd9; --s1: #3326c9; --s2: #2a1fae; --s3: #221892; --s4: #1a1177; --dir: 90deg;
  background: none; isolation: isolate; transition: --body .45s var(--ease), color .3s;
}
.btn:not(.btn--line)::before, .side-tab::before, .ck-head::before, .ck-cta::before, .hpanel--brand::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(var(--dir),
    var(--body) 0 calc(100% - var(--tail)),
    var(--s1) 0 calc(100% - var(--tail) * .62), transparent 0 calc(100% - var(--tail) * .52),
    var(--s2) 0 calc(100% - var(--tail) * .3), transparent 0 calc(100% - var(--tail) * .22),
    var(--s3) 0 calc(100% - var(--tail) * .1), transparent 0 calc(100% - var(--tail) * .055),
    var(--s4) 0 calc(100% - var(--tail) * .015), transparent 0);
}
.btn { --tail: 2.4em; }
.btn:not(.btn--line):hover, .side-tab:hover, .ck-cta:hover { --body: #5a2fe6; }
.btn.btn--dark { --body: #151515; --s1: #3b2bd9; --s2: #2e21c4; --s3: #241a9f; --s4: #1c138f; }
.btn.btn--dark:hover { --body: #2a2a2a; }
.btn.btn--light { --body: #ffffff; --s1: #c9c0fa; --s2: #a596f4; --s3: #8270ee; --s4: #5a2fe6; color: var(--text-primary); }
.btn.btn--light:hover { --body: #eaeef0; }
.side-tab { --dir: 180deg; --tail: 44px; padding-bottom: calc(var(--tail) + 4px); }
.ck-head { --tail: 22%; }
.ck-cta { --tail: 26%; }
.hpanel--brand { --tail: 70px; }

/* ---------- Preloader ---------- */
.loader { display: none; }
.js .loader { display: flex; position: fixed; inset: 0; z-index: 300; background: var(--bg-3); color: #fff; flex-direction: column; justify-content: flex-end; padding: 0 var(--pad) clamp(40px, 8vh, 90px); }
.loader__n { font-size: clamp(5rem, 13vw, 13rem); line-height: .9; letter-spacing: -.05em; }
.loader__n sup { font-size: .32em; vertical-align: top; position: relative; top: .25em; margin-left: .04em; }
.loader__bar { height: 2px; background: rgba(255,255,255,.25); margin: 28px 0 32px; position: relative; overflow: hidden; }
.loader__bar i { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.loader__t { font-size: clamp(2rem, 4.4vw, 4.4rem); line-height: 1.04; letter-spacing: -.035em; max-width: 14ch; }
.js .loader.is-done, .seen .loader { display: none; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 100; color: #fff; pointer-events: none; }
.header__in { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__in > * { pointer-events: auto; }
.header__logo { position: relative; width: 138px; height: 36px; flex: none; }
.header__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left; transition: opacity .4s; }
.header__logo .logo-dark { opacity: 0; }
.header__right { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 40px); }
.nav { display: flex; gap: clamp(20px, 2.6vw, 42px); transition: opacity .4s, transform .5s var(--ease); }
.nav a { font-size: var(--text-base); position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.burger { width: 44px; height: 44px; border: 0; border-radius: var(--radius-lg); background: var(--bg-5); color: var(--text-primary); cursor: pointer; position: relative; display: none; flex: none; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: .4s var(--ease); }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }
.header.is-solid .logo-dark { opacity: 1; }
.header.is-solid .logo-light { opacity: 0; }
.header.is-solid .nav { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.header.is-solid .burger { display: block; }
.header.is-solid.is-dark .logo-dark { opacity: 0; }
.header.is-solid.is-dark .logo-light { opacity: 1; }
.menu-open .header .logo-dark { opacity: 0; } .menu-open .header .logo-light { opacity: 1; }
@media (max-width: 1000px) { .nav { display: none; } .burger { display: block; } }

.menu { position: fixed; inset: 0; z-index: 99; background: var(--bg-secondary); color: #fff; padding: 130px var(--pad) 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-content: start; clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease); overflow-y: auto; }
.menu-open .menu { clip-path: inset(0); }
.menu__main a { display: block; font-size: clamp(2.6rem, 6vw, 5.6rem); line-height: 1.08; letter-spacing: -.04em; transition: color .3s; }
.menu__main a:hover { color: #b9a8ff; }
.menu__side .menu__h { font-size: var(--text-sm); color: rgba(255,255,255,.5); margin: 0 0 14px; line-height: 1.4; }
.menu__side a, .menu__side p { display: block; font-size: var(--text-xl); line-height: 1.8; color: rgba(255,255,255,.85); }
.menu__side a:hover { color: #fff; }
.menu__side > div + div { margin-top: 34px; }
@media (max-width: 760px) { .menu { grid-template-columns: 1fr; } }

/* Vertical side tab */
.side-tab { position: fixed; right: 0; top: 50%; z-index: 90; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; color: #fff; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.side-tab b { width: 42px; height: 42px; display: grid; place-items: center; font-weight: 700; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.25); }
.side-tab span { writing-mode: vertical-rl; transform: rotate(180deg); padding: 16px 0; font-size: var(--text-sm); font-weight: 500; }
@media (max-width: 760px) { .side-tab span { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; color: #fff; overflow: hidden; display: flex; }
.media { position: absolute; inset: 0; overflow: hidden; }
.media video, .media img { width: 100%; height: 100%; object-fit: cover; }
.hero__video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__video.is-on { opacity: 1; }
.media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,21,21,.72) 0%, rgba(21,21,21,.35) 55%, rgba(21,21,21,.15)), linear-gradient(0deg, rgba(21,21,21,.6), transparent 45%); }
.hero__in { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100svh; padding-top: 120px; padding-bottom: clamp(30px, 5vh, 56px); }
.hero h1 { font-size: clamp(2.4rem, 4.4vw, 4.9rem); max-width: 16ch; }
.hero__row { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; margin-top: clamp(30px, 6vh, 70px); }
.hero__trust small { display: block; font-size: var(--text-xs); color: rgba(255,255,255,.7); margin-bottom: 14px; }
.hero__trust ul { display: flex; flex-wrap: wrap; gap: 10px 30px; font-size: var(--text-xl); font-weight: 500; color: rgba(255,255,255,.9); }
.hero__cta { display: grid; gap: 18px; justify-items: start; max-width: 380px; }
.hero__cta p { font-size: var(--text-base); color: rgba(255,255,255,.8); }
@media (max-width: 860px) { .hero__row { grid-template-columns: 1fr; } }

/* Inner page hero */
.phero { position: relative; min-height: 78svh; color: #fff; display: flex; overflow: hidden; }
.phero .container { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 140px; padding-bottom: clamp(36px, 6vh, 64px); }
.crumbs { display: flex; gap: 8px; font-size: var(--text-sm); color: rgba(255,255,255,.7); margin-bottom: 26px; flex-wrap: wrap; }
.crumbs a:hover { color: #fff; }
.phero h1 { font-size: clamp(3rem, 7.4vw, 8rem); max-width: 14ch; }
.phero__row { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; margin-top: 34px; }
.phero__row p { max-width: 560px; font-size: clamp(1.05rem, 1.3vw, 1.25rem); color: rgba(255,255,255,.85); }
@media (max-width: 860px) { .phero__row { grid-template-columns: 1fr; } }

/* ---------- Intro (3-column) ---------- */
.intro .label { grid-column: 1 / 3; align-self: start; padding-top: 14px; }
.intro__title { grid-column: 3 / 8; }
.intro__side { grid-column: 9 / 13; display: grid; gap: 22px; align-content: start; }
.intro__side figure { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-lg); }
.intro__side img { width: 100%; height: 100%; object-fit: cover; }
.intro__side .lead { font-size: var(--text-3xl); line-height: 1.35; font-weight: 500; }
.intro__side p.muted { font-size: var(--text-base); }
@media (max-width: 1000px) {
  .intro .label, .intro__title, .intro__side { grid-column: 1 / -1; }
  .intro__title { margin: 20px 0 40px; }
}

/* ---------- Problem (sticky text, floating images) ---------- */
.problem { min-height: 230vh; padding: 0; }
.problem__sticky { position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; }
.problem .g12 { width: 100%; }
.problem .label { grid-column: 1 / 3; align-self: start; padding-top: 16px; }
.problem__text { grid-column: 3 / 10; font-size: clamp(2.2rem, 4.4vw, 4.6rem); line-height: 1.06; letter-spacing: -.035em; position: relative; z-index: 2; }
.problem__text .w { color: var(--color-light-gray); transition: color .3s; }
.problem__text .w.on { color: var(--text-primary); }
@media (max-width: 1000px) { .problem .label, .problem__text { grid-column: 1 / -1; } .problem .label { margin-bottom: 24px; } }
/* ---------- Service showcase (sticky centre image) ---------- */
.showcase__head { text-align: center; max-width: 900px; margin: 0 auto clamp(60px, 8vw, 120px); }
.showcase__head h2 { margin-top: 18px; }
.showcase__grid { display: grid; grid-template-columns: 1fr minmax(260px, 30vw) 1fr; gap: clamp(24px, 4vw, 70px); }
.showcase__col { display: grid; gap: clamp(120px, 26vh, 280px); padding: 10vh 0 20vh; align-content: start; }
.showcase__col--r { padding-top: 34vh; }
.showcase__col--l .sblock { text-align: right; }
.showcase__col--l .sblock .tags { justify-content: flex-end; }
.showcase__media { position: sticky; top: 12vh; height: 76vh; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-5); }
.showcase__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .8s var(--ease), transform 1.4s var(--ease); }
.showcase__media img.on { opacity: 1; transform: none; }
.showcase__media span { position: absolute; left: 16px; bottom: 16px; z-index: 2; background: #fff; padding: 8px 12px; border-radius: var(--radius-lg); font-size: var(--text-sm); }
.sblock small { display: block; font-size: var(--text-sm); color: var(--text-4); margin-bottom: 12px; }
.sblock h3 { font-size: clamp(1.8rem, 2.6vw, 2.6rem); }
.sblock h3 a:hover { color: var(--text-4); }
.sblock p { margin-top: 16px; font-size: var(--text-base); color: var(--text-5); max-width: 420px; display: inline-block; }
.sblock .tags { margin-top: 18px; }
.sblock .link-arrow { margin-top: 20px; }
.sblock__img { display: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: var(--text-sm); padding: 6px 12px; border-radius: var(--radius-sm); background: var(--bg-5); color: var(--text-3); }
.gray .tags span { background: #fff; }
@media (max-width: 1000px) {
  .showcase__grid { grid-template-columns: 1fr; }
  .showcase__media { display: none; }
  .showcase__col, .showcase__col--r { padding: 0; gap: 70px; }
  .showcase__col--r { margin-top: 70px; }
  .showcase__col--l .sblock { text-align: left; }
  .showcase__col--l .sblock .tags { justify-content: flex-start; }
  .sblock__img { display: block; aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius-lg); margin-bottom: 22px; }
  .sblock__img img { width: 100%; height: 100%; object-fit: cover; }
}

/* ---------- Full-bleed image band ---------- */
.imgband { position: relative; height: 100svh; overflow: hidden; color: #fff; display: flex; align-items: flex-end; }
.imgband .media img { height: 120%; }
.imgband .container { position: relative; z-index: 2; padding-bottom: clamp(40px, 8vh, 90px); }
.imgband h2 { max-width: 16ch; margin-top: 18px; }

/* ---------- Why us: checkerboard ---------- */
.checker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "h h . c1" ". c2 . c3" "c4 . c5 ." ". cta . c6"; }
.ck-head { grid-area: h; position: relative; color: #fff; padding: clamp(28px, 3vw, 48px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.ck-head .label { color: rgba(255,255,255,.8); }
.ck-head h2 { max-width: 12ch; font-size: clamp(2rem, 3.4vw, 3.6rem); }
.ck-card, .ck-cta { aspect-ratio: 1; padding: clamp(22px, 2.4vw, 36px); display: flex; flex-direction: column; justify-content: space-between; }
.ck-card { background: var(--text-3); transition: background .4s; }
.ck-card:hover { background: #262626; }
.ck-ico { width: 48px; height: 48px; align-self: flex-end; color: rgba(255,255,255,.4); transition: color .4s; }
.ck-ico svg { width: 100%; height: 100%; }
.ck-card:hover .ck-ico { color: #b9a8ff; }
.ck-card h3 { font-size: clamp(1.3rem, 1.7vw, 1.75rem); letter-spacing: -.02em; }
.ck-card p { margin-top: 10px; font-size: var(--text-base); color: rgba(255,255,255,.6); }
.ck-cta { grid-area: cta; position: relative; color: #fff; flex-direction: row; align-items: flex-end; font-size: clamp(1.8rem, 2.6vw, 2.8rem); letter-spacing: -.03em; }
.ck-cta svg { width: 36px; height: 36px; transition: transform .4s var(--ease); }
.ck-cta:hover svg { transform: translateX(6px); }
@media (max-width: 1000px) { .checker { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "h h" "c1 c2" "c3 c4" "c5 c6" "cta cta"; } .ck-cta { aspect-ratio: auto; min-height: 160px; } }
@media (max-width: 560px) { .checker { grid-template-columns: 1fr; grid-template-areas: "h" "c1" "c2" "c3" "c4" "c5" "c6" "cta"; } .ck-card { aspect-ratio: auto; min-height: 240px; } }

/* ---------- Feature cards ---------- */
.card { background: var(--bg-5); border-radius: var(--radius-lg); padding: clamp(26px, 2.6vw, 40px); min-height: clamp(300px, 26vw, 400px); display: flex; flex-direction: column; transition: background .4s, color .4s; }
.gray .card { background: #fff; }
.card__ico { width: 54px; height: 54px; color: var(--text-4); }
.card__ico svg { width: 100%; height: 100%; }
.card__n { font-size: var(--text-sm); color: var(--text-4); }
.card h3 { margin-top: auto; padding-top: 40px; font-size: clamp(1.4rem, 1.8vw, 1.9rem); letter-spacing: -.025em; }
.card p { margin-top: 12px; font-size: var(--text-base); color: var(--text-5); }
.card:hover { background: var(--bg-secondary); color: #fff; }
.card:hover p { color: rgba(255,255,255,.65); }
.card:hover .card__ico, .card:hover .card__n { color: #b9a8ff; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.6vw, 24px); }
.cards2 .card { min-height: clamp(320px, 30vw, 460px); }
.cards2 .card h3 { font-size: clamp(2rem, 3.2vw, 3.2rem); }
@media (max-width: 1100px) { .cards4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1000px) { .cards3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards3, .cards4, .cards2 { grid-template-columns: 1fr; } }

/* Section head */
.shead { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(14px, 1.6vw, 28px); margin-bottom: clamp(50px, 6vw, 90px); align-items: end; }
.shead > div { grid-column: 1 / 8; }
.shead > div h2 { margin-top: 18px; }
.shead > p { grid-column: 9 / 13; color: var(--text-5); font-size: var(--text-base); }
.shead--center { display: block; text-align: center; max-width: 920px; margin-left: auto; margin-right: auto; }
.shead--center h2 { margin: 18px 0 30px; }
@media (max-width: 900px) { .shead > div, .shead > p { grid-column: 1 / -1; } .shead > p { margin-top: 20px; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 28px); }
.stat { border-top: 1px solid var(--line); padding-top: 22px; }
.stat b { display: block; font-weight: 400; font-size: clamp(3.4rem, 6.4vw, 7rem); line-height: .95; letter-spacing: -.05em; }
.stat b sup { font-size: .34em; vertical-align: top; position: relative; top: .2em; letter-spacing: 0; color: var(--text-4); }
.stat b .unit { font-size: .3em; letter-spacing: -.01em; margin-left: .18em; color: var(--text-4); }
.stat h3 { font-size: var(--text-3xl); letter-spacing: -.01em; margin-top: 18px; }
.stat p { font-size: var(--text-base); color: var(--text-5); margin-top: 8px; max-width: 300px; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; row-gap: 40px; } }

/* ---------- Tech grid marquee ---------- */
.tech__rows { overflow: hidden; border-top: 1px solid var(--line); }
.tech__row { display: flex; width: max-content; animation: slide 46s linear infinite; }
.tech__row--rev { animation-direction: reverse; animation-duration: 54s; }
.tech__row span { width: clamp(170px, 14vw, 230px); height: clamp(110px, 9vw, 140px); display: grid; place-items: center; text-align: center; padding: 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: var(--text-3xl); font-weight: 500; letter-spacing: -.02em; color: var(--text-3); transition: background .3s, color .3s; }
.tech__row span:hover { background: var(--bg-secondary); color: #fff; }
.tech__row .has-logo { align-content: center; gap: 12px; }
.tech__row .has-logo img { width: 34px; height: 34px; opacity: .72; transition: opacity .3s, filter .3s; }
.tech__row .has-logo em { font-style: normal; font-size: var(--text-sm); font-weight: 500; color: var(--text-5); }
.tech__row .has-logo:hover img { opacity: 1; filter: invert(1); }
.tech__row .has-logo:hover em { color: rgba(255,255,255,.75); }
.tech__rows:hover .tech__row { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- FAQ ---------- */
.faq-sec .g12 { align-items: start; }
.faq-sec__side { grid-column: 1 / 5; position: sticky; top: 140px; }
.faq-sec__side h2 { margin: 22px 0 32px; }
.faq-sec__side h2 .w { opacity: .2; }
.faq { grid-column: 6 / 13; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 28px; gap: 20px; align-items: center; padding: 26px 0; font-size: var(--text-3xl); letter-spacing: -.01em; transition: color .3s; }
.faq summary:hover { color: var(--text-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 28px; height: 28px; position: relative; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 6px; right: 6px; top: 13px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq__a p { padding: 0 48px 28px 0; color: var(--text-5); font-size: var(--text-base); max-width: 760px; }
@media (max-width: 1000px) { .faq-sec__side, .faq { grid-column: 1 / -1; } .faq-sec__side { position: relative; top: 0; margin-bottom: 40px; } }

/* ---------- Footer ---------- */
.footer { background: var(--bg-5); padding-top: clamp(60px, 7vw, 110px); }
.footer__top { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(14px, 1.6vw, 28px); padding-bottom: clamp(50px, 6vw, 90px); }
.fcard { grid-column: 1 / 5; background: var(--bg-secondary); color: #fff; padding: clamp(28px, 3vw, 44px); border-radius: var(--radius-lg); display: grid; gap: 18px; align-content: start; margin-top: clamp(-180px, -10vw, -90px); position: relative; z-index: 2; }
.fcard svg { width: 46px; height: 46px; }
.fcard h3 { font-size: clamp(2rem, 2.8vw, 2.8rem); }
.fcard p { color: rgba(255,255,255,.65); font-size: var(--text-base); }
.fcard .btn { justify-content: space-between; }
.footer__main { grid-column: 6 / 13; display: grid; gap: 50px; align-content: start; }
.footer__nav { display: flex; gap: clamp(18px, 3vw, 48px); flex-wrap: wrap; font-size: var(--text-3xl); }
.footer__nav a:hover, .footer__nav a[aria-current] { color: var(--text-4); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer__cols h4 { font-size: var(--text-sm); font-weight: 600; letter-spacing: 0; margin-bottom: 12px; }
.footer__cols address, .footer__cols li { font-style: normal; font-size: var(--text-sm); color: var(--text-5); line-height: 1.7; }
.footer__cols li a:hover { color: var(--text-4); }
.footer__big a { display: block; font-size: var(--text-4xl); letter-spacing: -.02em; line-height: 1.4; }
.footer__big a:hover { color: var(--text-4); }
.footer__big small { display: block; font-size: var(--text-xs); color: var(--text-5); margin-top: 14px; }
.footer__legal { font-size: var(--text-xs); color: var(--text-5); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__marquee { display: block; background: var(--bg-secondary); color: #fff; overflow: hidden; padding: clamp(24px, 3vw, 44px) 0; white-space: nowrap; }
.footer__marquee span { display: inline-block; font-size: clamp(4rem, 11vw, 11.5rem); line-height: 1; letter-spacing: -.05em; animation: slide 30s linear infinite; color: rgba(255,255,255,.3); transition: color .4s; }
.footer__marquee:hover span { color: #fff; }
.footer__marquee em { font-style: normal; color: #b9a8ff; }
@media (max-width: 1000px) { .fcard, .footer__main { grid-column: 1 / -1; } .fcard { margin-top: 0; margin-bottom: 50px; } .footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__cols { grid-template-columns: 1fr; } }

/* ---------- Services list ---------- */
.slist { border-top: 1px solid var(--line); }
.srow { display: grid; grid-template-columns: 80px 1.3fr 1fr 56px; gap: 24px; align-items: center; padding: clamp(24px, 2.6vw, 38px) 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease); }
.srow__n { font-size: var(--text-sm); color: var(--text-4); }
.srow h2 { font-size: clamp(1.9rem, 3.8vw, 3.8rem); transition: color .3s; }
.srow p { font-size: var(--text-base); color: var(--text-5); }
.srow__go { width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--bg-5); display: grid; place-items: center; transition: background .3s, color .3s; }
.srow__go svg { width: 18px; transition: transform .4s var(--ease); }
.srow:hover { padding-left: 16px; }
.srow:hover h2 { color: var(--text-4); }
.srow:hover .srow__go { background: var(--bg-3); color: #fff; }
.srow:hover .srow__go svg { transform: rotate(-45deg); }
@media (max-width: 800px) { .srow { grid-template-columns: 1fr 44px; } .srow__n { grid-column: 1 / -1; } .srow p { grid-column: 1; } .srow__go { grid-row: 2; grid-column: 2; width: 44px; height: 44px; } } 
/* ---------- Horizontal scroll ---------- */
.hscroll { overflow: hidden; }
.hscroll__pin { height: 100vh; display: flex; align-items: center; }
.hscroll__track { display: flex; gap: clamp(14px, 1.6vw, 24px); padding: 0 var(--pad); width: max-content; will-change: transform; }
.hscroll__intro { width: min(520px, 80vw); flex: none; display: flex; flex-direction: column; justify-content: center; padding-right: 40px; }
.hscroll__intro h2 { margin: 20px 0 22px; }
.hpanel { flex: none; width: min(420px, 78vw); height: min(620px, 74vh); background: #fff; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.hpanel figure { height: 46%; overflow: hidden; }
.hpanel figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hpanel:hover figure img { transform: scale(1.05); }
.hpanel__body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.hpanel__body small { font-size: var(--text-sm); color: var(--text-4); }
.hpanel h3 { font-size: clamp(1.5rem, 2vw, 2rem); }
.hpanel p { font-size: var(--text-base); color: var(--text-5); }
.hpanel__best { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--text-sm); color: var(--text-5); }
.hpanel__best b { display: block; color: var(--text-primary); font-weight: 600; }
.hpanel--brand { position: relative; color: #fff; justify-content: space-between; padding: 30px; }
.hpanel--brand h3 { font-size: clamp(2rem, 2.8vw, 2.8rem); }
.hpanel--brand p { color: rgba(255,255,255,.8); margin: 16px 0 26px; }
@media (max-width: 768px) {
  .hscroll__pin { height: auto; display: block; padding: 90px 0; }
  .hscroll__track { flex-direction: column; width: auto; }
  .hscroll__intro, .hpanel { width: 100%; height: auto; }
  .hpanel figure { height: 220px; }
}

/* ---------- Steps ---------- */
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(14px, 1.6vw, 28px); padding: clamp(28px, 3vw, 44px) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.step__n { grid-column: 1 / 3; font-size: var(--text-sm); color: var(--text-4); }
.step h3 { grid-column: 3 / 8; font-size: clamp(1.8rem, 3vw, 3rem); }
.step p { grid-column: 9 / 13; color: var(--text-5); font-size: var(--text-base); }
@media (max-width: 900px) { .step__n, .step h3, .step p { grid-column: 1 / -1; } .step p { margin-top: 12px; } .step h3 { margin-top: 8px; } }

/* ---------- Related ---------- */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.rcard { display: block; }
.rcard figure { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-lg); }
.rcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.rcard:hover img { transform: scale(1.05); }
.rcard small { display: block; margin-top: 18px; font-size: var(--text-sm); color: var(--text-4); }
.rcard h3 { font-size: clamp(1.5rem, 2vw, 2rem); margin-top: 6px; transition: color .3s; }
.rcard:hover h3 { color: var(--text-4); }
@media (max-width: 900px) { .related { grid-template-columns: 1fr; } }

/* ---------- Timeline ---------- */
.timeline .g12 { align-items: start; }
.timeline__side { grid-column: 1 / 5; position: sticky; top: 140px; }
.timeline__side h2 { margin: 22px 0; }
.timeline__side figure { margin-top: 40px; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-lg); }
.timeline__side img { width: 100%; height: 100%; object-fit: cover; }
.timeline__list { grid-column: 6 / 13; position: relative; padding-left: 40px; }
.timeline__line { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline__line i { position: absolute; inset: 0; background: var(--bg-3); transform-origin: top; transform: scaleY(0); }
.tl { padding-bottom: 90px; position: relative; opacity: .3; transition: opacity .6s; }
.tl:last-child { padding-bottom: 0; }
.tl.is-on { opacity: 1; }
.tl::before { content: ""; position: absolute; left: -45px; top: 8px; width: 11px; height: 11px; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--color-light-gray); transition: .4s; }
.tl.is-on::before { background: var(--bg-3); border-color: var(--bg-3); }
.tl small { font-size: var(--text-sm); color: var(--text-4); }
.tl h3 { font-size: clamp(1.8rem, 2.8vw, 2.8rem); margin: 10px 0 12px; }
.tl p { color: var(--text-5); font-size: var(--text-base); max-width: 520px; }
@media (max-width: 1000px) { .timeline__side, .timeline__list { grid-column: 1 / -1; } .timeline__side { position: relative; top: 0; margin-bottom: 50px; } }

/* ---------- Offices ---------- */
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.6vw, 24px); }
.office { background: var(--bg-5); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.gray .office { background: #fff; }
.office figure { height: 300px; overflow: hidden; }
.office figure img, .office iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.office__body { padding: clamp(24px, 2.6vw, 36px); display: grid; gap: 10px; }
.office__body small { font-size: var(--text-sm); color: var(--text-4); }
.office__body h3 { font-size: clamp(1.8rem, 2.6vw, 2.6rem); }
.office__body address { font-style: normal; color: var(--text-5); font-size: var(--text-base); }
.office__body a { font-weight: 500; }
.office__body a:hover { color: var(--text-4); }
@media (max-width: 800px) { .offices { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact .g12 { align-items: start; }
.contact-info { grid-column: 1 / 5; display: grid; gap: 30px; }
.contact-info h2 { margin: 18px 0 6px; }
.contact-info small { display: block; font-size: var(--text-sm); color: var(--text-5); margin-bottom: 8px; }
.contact-info .big a { font-size: clamp(1.4rem, 2vw, 2rem); letter-spacing: -.02em; }
.contact-info .big a:hover { color: var(--text-4); }
.contact-info address { font-style: normal; font-size: var(--text-base); }
.form { grid-column: 6 / 13; background: var(--bg-5); border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.field { position: relative; border-bottom: 1px solid var(--line); padding: 22px 0 8px; margin: 0; }
.field--full { grid-column: span 2; }
.field label, .field__l { display: block; font-size: var(--text-sm); color: var(--text-5); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; border: 0; background: transparent; padding: 6px 0; font-size: var(--text-2xl); outline: none; resize: vertical; }
.field:focus-within { border-color: var(--bg-3); }
.field:focus-within label { color: var(--text-4); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.chips label { margin: 0; font-size: var(--text-base); color: var(--text-primary); padding: 10px 16px; border-radius: var(--radius-sm); cursor: pointer; background: #fff; transition: .3s; }
.chips input { position: absolute; opacity: 0; pointer-events: none; width: auto; }
.chips input:checked + label { background: var(--bg-3); color: #fff; }
.chips input:focus-visible + label { outline: 2px solid var(--bg-3); outline-offset: 2px; }
.form__foot { grid-column: span 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 32px; flex-wrap: wrap; }
.form__foot p { font-size: var(--text-xs); color: var(--text-5); max-width: 340px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha { grid-column: span 2; margin-top: 28px; min-height: 78px; }
.form__status.is-error { color: #c62828; }
.form__status { grid-column: span 2; margin-top: 14px; font-size: var(--text-sm); color: var(--text-4); min-height: 20px; }
@media (max-width: 1000px) { .contact-info, .form { grid-column: 1 / -1; } .form { margin-top: 50px; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } .field--full, .form__foot, .form__status, .captcha { grid-column: span 1; } }

/* ---------- Image placeholders ---------- */
.ph { display: block; width: 100%; height: 100%; min-height: inherit; background: #dfe3e6 url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23b4bbc0%27 stroke-width=%271.2%27%3E%3Crect x=%273%27 y=%275%27 width=%2718%27 height=%2714%27 rx=%271%27/%3E%3Ccircle cx=%278.5%27 cy=%2710%27 r=%271.6%27/%3E%3Cpath d=%27M3 17l5-4 4 3 3-2 6 4%27/%3E%3C/svg%3E") center / 44px no-repeat; }
.gray .ph { background-color: #d5dadd; }
.media .ph { background-color: #262626; background-image: none; }
.hpanel figure .ph, .office figure .ph { background-color: #d5dadd; }
.gray .hpanel figure .ph { background-color: #dfe3e6; }

/* ---------- Motion helpers ---------- */
.w { display: inline-block; }
.mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.mask > .wi { display: inline-block; }
.js [data-reveal] { opacity: 0; transform: translateY(40px); }
.js [data-clip] { clip-path: inset(100% 0 0 0); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-clip] { clip-path: none; }
  .js .loader { display: none; }
  .tech__row, .footer__marquee span { animation: none; }
  .problem__text .w { color: var(--text-primary); }
  .faq-sec__side h2 .w { opacity: 1; }
}
