/* Limad Global Consultancy — design 03 "Motion"
   Dark cinematic chapters with one light chapter; cobalt accent, a little gold. Motion by GSAP + ScrollTrigger + SplitText, smooth scroll by Lenis. */
:root {
  --ink: #0e0f12;
  --ink-2: #16181d;
  --ink-3: #1f2229;
  --paper: #f3f1ec;
  --paper-2: #e8e5de;
  --text: #f3f1ec;
  --text-2: #a9adb5;
  --dark-text: #121317;
  --dark-text-2: #4b4f57;
  --line: rgba(243, 241, 236, .12);
  --line-dark: rgba(18, 19, 23, .14);
  --accent: #5b82ff;
  --accent-2: #e9c46a;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -80px; z-index: 300; background: var(--paper); color: var(--ink); padding: 12px 18px; border-radius: 8px; }
.skip:focus { top: 16px; }
.display { font-family: var(--display); font-weight: 600; letter-spacing: -.035em; line-height: .95; }
.label { font-size: 14px; color: var(--text-2); display: inline-flex; align-items: center; gap: 10px; }
.label i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.line-mask { overflow: hidden; display: block; padding-bottom: .06em; }

/* Buttons */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; transition: color .35s var(--ease), border-color .35s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease); }
.btn:hover::before { transform: none; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light::before { background: var(--accent); }
.btn--light:hover { color: #fff; }
.btn--line { border-color: var(--line); color: var(--text); }
.btn--line::before { background: var(--paper); }
.btn--line:hover { color: var(--ink); border-color: var(--paper); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark::before { background: var(--accent); }
.btn .arr { display: inline-block; transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px) rotate(-45deg); }

/* Cursor (pointer devices only) */
.cursor { position: fixed; left: 0; top: 0; z-index: 400; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--paper); pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), opacity .3s; }
.cursor.on { opacity: 1; }
.cursor.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* Header */
.head { position: fixed; top: 0; left: 0; right: 0; z-index: 200; transition: top .5s var(--ease), background-color .4s; }
.head.hide { top: -96px; }
.head.solid { background: rgba(14, 15, 18, .86); backdrop-filter: blur(10px); }
.head .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 36px; width: auto; }
.brand .mark { width: 36px; height: 36px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; }
.brand b { font-family: var(--display); font-size: 20px; letter-spacing: -.02em; font-weight: 600; }
.brand b span { color: var(--text-2); font-weight: 500; }
.brand.has-logo .mark, .brand.has-logo b { display: none; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { position: relative; padding: 10px 14px; text-decoration: none; font-size: 15px; font-weight: 500; overflow: hidden; display: inline-block; }
.nav a:not(.btn) span { display: block; transition: transform .45s var(--ease); }
.nav a:not(.btn) span::after { content: attr(data-t); position: absolute; left: 0; top: 100%; color: var(--accent); }
.nav a:not(.btn):hover span { transform: translateY(-100%); }
.nav .btn { min-height: 46px; padding: 0 22px; margin-left: 10px; }
.burger { display: none; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: none; cursor: pointer; font-weight: 600; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-block: 140px 40px; overflow: hidden; }
.hero-grid { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-grid svg { width: 100%; height: 100%; }
.hero-grid .g { stroke: rgba(243, 241, 236, .06); stroke-width: 1; }
.hero-grid .curve { fill: none; stroke: var(--accent); stroke-width: 2; }
.hero-grid .area { fill: url(#fade); }
.hero-grid .dot { fill: var(--accent-2); }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(56px, 11vw, 196px); }
.hero h1 .l2 { color: var(--text-2); }
.hero h1 .l3 { padding-left: 1.2em; }
.hero-foot { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 24px 48px; align-items: end; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-foot p { color: var(--text-2); max-width: 46ch; }
.hero-foot .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.scroll-cue { justify-self: end; display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-2); text-decoration: none; }
.scroll-cue .bar { width: 1px; height: 48px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue .bar::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--paper); animation: cue 2s var(--ease) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* Marquee */
.marquee { border-block: 1px solid var(--line); padding-block: 22px; overflow: hidden; }
.marquee .track { display: flex; gap: 48px; width: max-content; font-family: var(--display); font-size: clamp(28px, 3.4vw, 48px); font-weight: 500; letter-spacing: -.03em; white-space: nowrap; }
.marquee .track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee .track span::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }

/* Intro statement */
.intro { padding-block: clamp(96px, 14vw, 200px); }
.intro .container { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px; }
.intro p.big { font-family: var(--display); font-size: clamp(30px, 3.8vw, 58px); line-height: 1.12; letter-spacing: -.025em; font-weight: 500; }
.intro p.big .w { color: rgba(243, 241, 236, .2); transition: color .2s; }
.intro p.big .w.lit { color: var(--text); }
.no-motion .intro p.big .w, .no-js .intro p.big .w { color: var(--text); }

/* Practices: horizontal pinned scroller */
.practices { position: relative; }
.practices .head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-bottom: 40px; }
.practices h2 { font-size: clamp(44px, 6vw, 96px); }
.practices .count { font-family: var(--display); font-size: clamp(40px, 5vw, 80px); color: var(--text-2); font-variant-numeric: tabular-nums; }
.practices .count b { color: var(--text); font-weight: 600; }
.h-wrap { overflow: hidden; }
.h-track { display: flex; gap: 20px; padding-inline: var(--gutter); width: max-content; }
.card { position: relative; flex: none; width: min(440px, 80vw); min-height: 520px; padding: 32px; border-radius: 28px; background: var(--ink-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; text-decoration: none; overflow: hidden; transition: border-color .4s, background-color .4s; }
.card:hover { border-color: rgba(91, 130, 255, .6); background: var(--ink-3); }
.card .tag { font-size: 13px; color: var(--text-2); display: flex; justify-content: space-between; }
.card .tag em { font-style: normal; color: var(--accent-2); }
.card .ico { width: 64px; height: 64px; border-radius: 18px; background: rgba(91, 130, 255, .12); color: var(--accent); display: grid; place-items: center; margin-top: 20px; transition: transform .6s var(--ease); }
.card:hover .ico { transform: rotate(-8deg) scale(1.08); }
.card .ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-family: var(--display); font-size: clamp(30px, 2.6vw, 38px); line-height: 1.02; letter-spacing: -.03em; font-weight: 600; margin-top: auto; }
.card p { color: var(--text-2); }
.card .go { display: inline-flex; align-items: center; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.card .go span { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background-color .4s, color .4s, transform .5s var(--ease); }
.card:hover .go span { background: var(--paper); color: var(--ink); transform: rotate(-45deg); }
.card.core { background: var(--accent); border-color: var(--accent); }
.card.core p, .card.core .tag { color: rgba(255, 255, 255, .82); }
.card.core .tag em { color: #fff; }
.card.core .ico { background: rgba(255, 255, 255, .18); color: #fff; }
.card.core .go { border-color: rgba(255, 255, 255, .3); }
.card.core .go span { border-color: rgba(255, 255, 255, .4); }
.card.core:hover { background: #4b74f5; }
.h-progress { margin: 36px var(--gutter) 0; height: 2px; background: var(--line); position: relative; }
.h-progress span { position: absolute; inset: 0; background: var(--paper); transform-origin: left; transform: scaleX(0); }

/* Numbers + chart (light chapter) */
.light { background: var(--paper); color: var(--dark-text); }
.light .label { color: var(--dark-text-2); }
.numbers { padding-block: clamp(96px, 12vw, 176px); }
.numbers .top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; }
.numbers h2 { font-size: clamp(44px, 6vw, 96px); margin-top: 20px; }
.numbers .top p { color: var(--dark-text-2); font-size: 19px; }
.chart { margin-top: clamp(48px, 6vw, 80px); position: relative; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid line { stroke: var(--line-dark); }
.chart .path { fill: none; stroke: var(--dark-text); stroke-width: 2.5; }
.chart .marker circle { fill: var(--accent); }
.chart .marker text { font: 600 15px var(--body); fill: var(--dark-text); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 32px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.stat b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(56px, 6vw, 104px); letter-spacing: -.05em; line-height: .9; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 14px; color: var(--dark-text-2); max-width: 24ch; }

/* LIMAD pinned */
.limad { position: relative; min-height: 100svh; display: flex; align-items: center; padding-block: 120px; }
.limad .container { width: 100%; }
.limad .label { margin-bottom: 40px; }
.limad-rows { display: grid; gap: 4px; }
.lrow { display: flex; align-items: baseline; gap: 0; font-family: var(--display); font-size: clamp(56px, 10vw, 168px); line-height: .95; letter-spacing: -.045em; font-weight: 600; white-space: nowrap; }
.lrow b { font-weight: 600; color: var(--accent); }
.lrow span { color: var(--text); display: inline-block; overflow: hidden; vertical-align: bottom; }

/* About */
.about { padding-block: clamp(96px, 12vw, 176px); }
.about .container { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); align-items: center; }
.portrait { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: var(--ink-3); clip-path: inset(0 0 0 0 round 28px); }
.portrait img { position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; }
.portrait .mono { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: clamp(100px, 12vw, 180px); font-weight: 600; letter-spacing: -.06em; color: var(--accent); }
.portrait.has-photo .mono { display: none; }
.portrait .cap { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 16px 18px; border-radius: 16px; background: rgba(14, 15, 18, .78); backdrop-filter: blur(8px); font-size: 14px; color: var(--text-2); }
.portrait .cap b { display: block; color: var(--text); font-family: var(--display); font-size: 22px; letter-spacing: -.02em; }
.about h2 { font-size: clamp(40px, 4.8vw, 76px); margin-top: 20px; }
.about .lead { margin-top: 28px; font-size: 20px; color: var(--text-2); max-width: 52ch; }
.pillars { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pillar { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.pillar:nth-child(odd) { border-right: 1px solid var(--line); }
.pillar:nth-child(even) { padding-left: 24px; }
.pillar h3 { font-family: var(--display); font-size: 22px; letter-spacing: -.02em; font-weight: 600; }
.pillar p { margin-top: 8px; color: var(--text-2); font-size: 15px; }

/* Engage + process */
.engage { padding-block: clamp(96px, 12vw, 176px); }
.engage h2 { font-size: clamp(44px, 6vw, 96px); margin-top: 20px; max-width: 12ch; }
.models { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line-dark); }
.model { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 6fr) minmax(0, 5fr) auto; gap: 24px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--line-dark); text-decoration: none; position: relative; }
.model::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); z-index: 0; }
.model > * { position: relative; z-index: 1; transition: color .4s, transform .6s var(--ease); }
.model:hover::before { transform: none; }
.model:hover > * { color: var(--paper); }
.model:hover h3 { transform: translateX(16px); }
.model .n { font-size: 14px; color: var(--dark-text-2); }
.model h3 { font-family: var(--display); font-size: clamp(30px, 3.4vw, 52px); letter-spacing: -.035em; font-weight: 600; line-height: 1; }
.model p { color: var(--dark-text-2); }
.model .arr { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; font-size: 20px; }
.model:hover .arr { border-color: rgba(243, 241, 236, .4); }
.steps { margin-top: clamp(80px, 10vw, 140px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; position: relative; padding-top: 36px; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line-dark); }
.steps .fill { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.step h3 { font-family: var(--display); font-size: 26px; letter-spacing: -.02em; font-weight: 600; }
.step p { margin-top: 10px; color: var(--dark-text-2); font-size: 15px; }
.step .k { display: block; font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 10px; }

/* CTA + contact */
.cta { padding-block: clamp(96px, 12vw, 176px) 64px; text-align: left; }
.cta h2 { font-size: clamp(60px, 12vw, 220px); }
.cta h2 .l2 { color: var(--accent); }
.cta-grid { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 72px; align-items: start; }
.cta-grid p { color: var(--text-2); font-size: 19px; }
.contacts { margin-top: 32px; display: grid; border-top: 1px solid var(--line); }
.contacts a, .contacts div { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 18px; font-weight: 600; transition: padding .4s var(--ease), color .3s; }
.contacts a:hover { padding-left: 12px; color: var(--accent); }
.contacts small { color: var(--text-2); font-weight: 500; font-size: 14px; }
.form { background: var(--ink-2); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 3.5vw, 44px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.form .full { grid-column: 1 / -1; }
.field { position: relative; }
.field input, .field select, .field textarea { width: 100%; padding: 24px 0 10px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); font: 500 17px var(--body); border-radius: 0; transition: border-color .3s; }
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--ink-2); color: var(--text); }
.field textarea { min-height: 110px; resize: vertical; }
.field label { position: absolute; left: 0; top: 24px; color: var(--text-2); font-size: 16px; pointer-events: none; transform-origin: left top; transition: transform .35s var(--ease), color .3s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label, .field.fixed label { transform: translateY(-22px) scale(.8); color: var(--accent); }
.field .err { display: block; min-height: 1.2em; margin-top: 6px; font-size: 13px; color: #ff8f8f; }
.form .send { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.form .note { font-size: 13px; color: var(--text-2); max-width: 40ch; }

/* Footer */
.foot { padding-block: 40px 32px; border-top: 1px solid var(--line); overflow: hidden; }
.foot .big { font-family: var(--display); font-weight: 600; font-size: clamp(80px, 19vw, 340px); letter-spacing: -.06em; line-height: .8; margin-top: 24px; color: var(--ink-3); white-space: nowrap; }
.foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; font-size: 14px; color: var(--text-2); }
.foot .row a { text-decoration: none; }
.foot .row a:hover { color: var(--text); }
.foot .links { display: flex; flex-wrap: wrap; gap: 24px; }
.foot .legal { margin-top: 28px; font-size: 13px; color: var(--text-2); max-width: 90ch; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 350; transform: translate(-50%, 20px); opacity: 0; background: var(--paper); color: var(--ink); padding: 14px 20px; border-radius: 12px; font-size: 14px; font-weight: 600; transition: opacity .3s, transform .4s var(--ease); pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 960px) {
  .nav { position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; padding: 100px var(--gutter) 40px; background: var(--ink); transform: translateY(-100%); visibility: hidden; transition: transform .6s var(--ease), visibility .6s; }
  .nav a:not(.btn) { font-family: var(--display); font-size: 44px; letter-spacing: -.03em; padding: 6px 0; }
  .nav .btn { margin: 24px 0 0; }
  .head.open .nav { transform: none; visibility: visible; }
  .head.solid { backdrop-filter: none; background: rgba(14, 15, 18, .97); }
  .head.open { top: 0; }
  .burger { display: inline-flex; align-items: center; position: relative; z-index: 2; }
  .hero-foot, .numbers .top, .about .container, .cta-grid, .intro .container { grid-template-columns: minmax(0, 1fr); }
  .scroll-cue { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 0; padding-left: 28px; }
  .steps::before, .steps .fill { left: 0; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .steps .fill { transform-origin: top; transform: scaleY(0); }
  .model { grid-template-columns: minmax(0, 1fr) auto; }
  .model .n { grid-column: 1 / -1; }
  .model p { grid-column: 1 / -1; grid-row: 3; }
}
@media (max-width: 640px) {
  .form, .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillar:nth-child(odd) { border-right: 0; }
  .pillar:nth-child(even) { padding-left: 0; }
  .hero h1 .l3 { padding-left: 0; }
  .card { min-height: 440px; }
  .practices .count { display: none; }
}

/* Without scripted motion (no JS, reduced motion, or small screens): the scroller becomes a grid */
.static-scroll .h-wrap { overflow: visible; }
.static-scroll .h-track { width: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); padding-inline: var(--gutter); max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; }
.static-scroll .card { width: auto; min-height: 400px; }
.static-scroll .h-progress { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .steps .fill { transform: none; }
}
