:root {
  --ink: #050505;
  --panel: #0b0c0c;
  --panel-soft: #111313;
  --line: rgba(255, 255, 255, 0.11);
  --muted: #959a9a;
  --white: #f4f6f5;
  --signal: #ff4d4d;
  --green: #84e1a7;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --page: min(1280px, calc(100vw - 48px));
}

html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { background: var(--ink); }
a, button, input, select, textarea { outline-offset: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--white); }
#nav-sentinel { position: absolute; inset: 24px 0 auto; height: 1px; pointer-events: none; }

.site-nav { position: fixed; inset: 0 0 auto; z-index: 60; padding: 16px 24px; color: var(--white); pointer-events: none; }
.nav-shell { width: var(--page); height: 72px; margin: auto; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; transition: height .45s cubic-bezier(.2,.8,.2,1), width .45s cubic-bezier(.2,.8,.2,1); }
.nav-pill { pointer-events: auto; display: flex; align-items: center; min-height: 48px; border: 1px solid transparent; background: transparent; transition: background .45s, border-color .45s, border-radius .45s, padding .45s, box-shadow .45s, backdrop-filter .45s, transform .45s; }
.nav-brand { gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -.04em; }
.nav-brand img { width: 32px; height: 32px; }
.nav-links { justify-self: center; gap: clamp(22px, 3vw, 42px); padding-inline: 30px; }
.nav-links a, .nav-language a, .nav-cta { font: 500 11px/1 "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.nav-links a, .nav-language a { color: #b6b9b8; transition: color .2s; }
.nav-links a:hover, .nav-language a:hover, .nav-language .active { color: var(--white); }
.nav-links a.active { color: var(--white); }
.nav-language { gap: 7px; padding-inline: 17px; }
.nav-language span { color: #555; }
.nav-cta { justify-content: center; min-width: 142px; padding-inline: 22px; background: var(--white); color: #050505; }
.nav-mobile-actions, .mobile-menu { display: none; }
.site-nav[data-state="scrolled"] .nav-shell { height: 58px; width: min(1120px, calc(100vw - 48px)); }
.site-nav[data-state="scrolled"] .nav-pill { background: rgba(9, 10, 10, .72); border-color: rgba(255,255,255,.13); border-radius: 999px; box-shadow: 0 12px 45px rgba(0,0,0,.34); backdrop-filter: blur(18px) saturate(130%); -webkit-backdrop-filter: blur(18px) saturate(130%); }
.site-nav[data-state="scrolled"] .nav-brand { padding: 8px 18px 8px 10px; }
.site-nav[data-state="scrolled"] .nav-cta { background: rgba(244,246,245,.96); color: #050505; border-color: transparent; }
html[dir="rtl"] .nav-shell { direction: rtl; }

.premium-hero { min-height: 100svh; position: relative; display: grid; align-items: end; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-media, .hero-media video, .hero-fallback, .hero-scrim, .hero-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: 0; }
.hero-media video { object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.55); }
.hero-topology { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; opacity: .88; pointer-events: none; }
.hero-fallback { background: radial-gradient(circle at 72% 35%, rgba(255,77,77,.13), transparent 25%), radial-gradient(circle at 50% 40%, #222 0, #090909 42%, #000 72%); }
.hero-fallback::before, .hero-fallback::after { content: ""; position: absolute; width: 55vw; height: 55vw; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; top: -5vw; right: -8vw; animation: orbit 22s linear infinite; }
.hero-fallback::after { width: 38vw; height: 38vw; top: 4vw; right: .5vw; animation-direction: reverse; animation-duration: 16s; }
.hero-scrim { z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.66) 44%, rgba(0,0,0,.18) 78%), linear-gradient(0deg, #050505 0%, transparent 36%); }
[dir="rtl"] .hero-scrim { transform: scaleX(-1); }
.hero-grid { z-index: 1; opacity: .14; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, transparent, black 32%, black); }
.hero-content { position: relative; z-index: 2; width: var(--page); margin: 0 auto; padding: 190px 0 13vh; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #aaaead; font: 500 11px/1.2 "JetBrains Mono", monospace; letter-spacing: .13em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 5px rgba(255,77,77,.09); }
.hero-content h1 { max-width: 950px; margin: 25px 0; color: var(--white); font-size: clamp(54px, 7.4vw, 112px); line-height: .92; letter-spacing: -.065em; white-space: pre-line; }
.hero-content > p { max-width: 670px; margin-bottom: 38px; color: #adb1b0; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 52px; padding: 0 24px; border: 1px solid var(--line); font: 600 12px/1 "JetBrains Mono", monospace; letter-spacing: .06em; text-transform: uppercase; transition: transform .2s, background .2s, color .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--white); color: #050505; border-color: var(--white); }
.button-primary:hover { background: var(--signal); border-color: var(--signal); color: #fff; }
.button-quiet { background: rgba(10,10,10,.42); color: var(--white); backdrop-filter: blur(10px); }
.button-quiet:hover { border-color: rgba(255,255,255,.35); }
.hero-readout { position: absolute; z-index: 2; right: max(24px, calc((100vw - 1280px)/2)); bottom: 40px; display: flex; gap: 20px; color: #777; font: 500 9px/1 "JetBrains Mono", monospace; letter-spacing: .12em; }
[dir="rtl"] .hero-readout { right: auto; left: max(24px, calc((100vw - 1280px)/2)); }

.expertise-strip { overflow: hidden; border-bottom: 1px solid var(--line); background: #080808; }
.expertise-track { width: var(--page); min-height: 74px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 22px; color: #8e9391; font: 500 10px/1.3 "JetBrains Mono", monospace; letter-spacing: .12em; white-space: nowrap; }
.expertise-track i { width: 3px; height: 3px; background: #3d403f; border-radius: 50%; }

.premium-section { width: var(--page); margin: auto; padding: clamp(92px, 11vw, 160px) 0; }
.section-heading { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; margin-bottom: 72px; }
.section-heading > div { display: flex; align-items: flex-start; gap: 24px; padding-top: 12px; }
.section-index { color: #565a59; font: 500 11px/1 "JetBrains Mono", monospace; }
.section-heading h2 { grid-column: 2; margin: 0; max-width: 850px; color: var(--white); font-size: clamp(40px, 5.3vw, 76px); line-height: 1; letter-spacing: -.05em; white-space: pre-line; }
.section-heading > p { grid-column: 2; max-width: 650px; margin: -2px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
/* Craft cells (section 01 grids) — logical borders so the frame mirrors in RTL */
.craft { display: grid; grid-template-columns: repeat(3, 1fr); border-block-start: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.craft--problems { grid-template-columns: repeat(4, 1fr); }
.craft__cell { min-height: 280px; padding: 30px; border-inline-end: 1px solid var(--line); border-block-end: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 26px; transition: background .35s var(--ease); }
.craft--services::after { content: ""; border-inline-end: 1px solid var(--line); border-block-end: 1px solid var(--line); }
.craft__cell:hover { background: #0d0e0e; }
.craft__num { color: #5d6260; font: 500 10px/1 "JetBrains Mono", monospace; letter-spacing: .14em; }
.craft__name { color: var(--white); font: 500 24px/1.15 "Space Grotesk", "Tajawal", sans-serif; letter-spacing: -.02em; }
.craft__body { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.craft__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.craft__chip { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: #9da19f; font: 500 10px/1.2 "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; transition: color .25s, border-color .25s; }
.craft__cell:hover .craft__chip { color: var(--white); border-color: rgba(255,255,255,.28); }
.services-heading { display: flex; justify-content: space-between; align-items: end; margin: 130px 0 30px; }
.services-heading h3 { color: var(--white); font-size: clamp(30px,4vw,54px); letter-spacing: -.04em; }
.services-heading span { color: #737776; font: 500 10px/1 "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }

.work-section { border-top: 1px solid var(--line); }
/* Selected work grid */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; margin-top: 20px; }
.work-card { position: relative; aspect-ratio: 4/3; border: 1px solid var(--line); overflow: hidden; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; background: #0a0b0b; transition: border-color .5s var(--ease), transform .6s var(--ease); isolation: isolate; }
.work-card:hover { border-color: rgba(255,255,255,.4); transform: translateY(-4px); }
.work-card__bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; filter: grayscale(.35) contrast(1.05); transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.work-card:hover .work-card__bg { transform: scale(1.05); opacity: .6; }
.work-card__content { position: relative; z-index: 1; display: grid; gap: 12px; }
.work-card__num { color: #7c817f; font: 500 10px/1 "JetBrains Mono", monospace; letter-spacing: .2em; }
.work-card__name { color: var(--white); font: 500 clamp(24px, 2.6vw, 36px)/1.05 "Space Grotesk", "Tajawal", sans-serif; letter-spacing: -.02em; }
.work-card__name em { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; color: var(--signal); }
.work-card__foot { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: end; gap: 16px; color: #7c817f; font: 500 10px/1.4 "JetBrains Mono", monospace; }
.work-card__tag { letter-spacing: .14em; text-transform: uppercase; color: #b8bcba; }
.work-card--lg { grid-column: span 7; }
.work-card--md { grid-column: span 5; }
.work-card--full { grid-column: span 12; aspect-ratio: 21/9; }

/* Framed contact */
.contact-frame { border: 1px solid var(--line); background: #080909; padding: clamp(44px, 7vw, 96px); }
.contact-tag { display: flex; align-items: center; gap: 12px; color: #737776; font: 500 11px/1 "JetBrains Mono", monospace; letter-spacing: .28em; text-transform: uppercase; }
.contact-tag::before { content: ""; width: 24px; height: 1px; background: #5d6260; }
.contact__big { max-width: 1100px; margin: 34px 0 0; color: var(--white); font: 500 clamp(42px, 7vw, 100px)/1 "Space Grotesk", "Tajawal", sans-serif; letter-spacing: -.045em; white-space: pre-line; }
.contact__big em { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; color: var(--signal); }
.contact__big a { position: relative; display: inline-block; }
.contact__big a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5%; height: .06em; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .8s var(--ease); }
.contact__big a:hover::after { transform: scaleX(1); transform-origin: left; }
.contact__row { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-top: 64px; flex-wrap: wrap; }
.contact__email { font-family: "Instrument Serif", serif; font-style: italic; font-size: clamp(20px, 2vw, 28px); color: var(--muted); }
.contact__email a:hover { color: var(--signal); }
.contact__small { font-size: 13px; line-height: 1.6; color: var(--muted); display: grid; gap: 8px; }
.contact__small strong { color: var(--white); font-weight: 500; }
.contact__small a { color: #b8bcba; text-decoration: underline; text-underline-offset: 3px; }
.contact__small a:hover { color: var(--white); }

.principles-section { border-top: 1px solid var(--line); }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.principle { min-height: 300px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principle > span { color: #656968; font: 500 10px/1 "JetBrains Mono", monospace; }
.principle h3 { margin: 100px 0 16px; color: var(--white); font-size: 25px; letter-spacing: -.03em; }
.principle p { color: var(--muted); line-height: 1.7; }
.audit-cta { min-height: 680px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 100px 24px; border-top: 1px solid var(--line); text-align: center; background: radial-gradient(circle at 50% 50%, #1b1d1c, #050505 55%); }
.audit-cta h2 { max-width: 920px; margin: 25px 0; color: var(--white); font-size: clamp(45px,7vw,92px); line-height: .98; letter-spacing: -.06em; }
.audit-cta p { max-width: 610px; margin-bottom: 35px; color: var(--muted); font-size: 17px; line-height: 1.65; }

.premium-footer { position: relative; z-index: 10; border-top: 1px solid var(--line); background: #050505; color: var(--white); }
.premium-footer-grid { width: var(--page); margin: auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; padding: 80px 0; }
.premium-footer-brand p { max-width: 390px; margin-top: 24px; color: var(--muted); line-height: 1.65; }
.premium-footer-links { display: flex; flex-direction: column; gap: 14px; font-size: 13px; }
.premium-footer-links > span { margin-bottom: 8px; color: #646866; font: 500 10px/1 "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.premium-footer-links a { color: #a8acab; }.premium-footer-links a:hover { color: var(--white); }
.premium-footer-status { display: flex; align-items: flex-start; gap: 12px; color: #8e9391; font: 500 10px/1.5 "JetBrains Mono", monospace; text-transform: uppercase; }
.premium-footer-bottom { width: var(--page); min-height: 70px; margin: auto; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #5e6261; font: 500 9px/1.4 "JetBrains Mono", monospace; letter-spacing: .08em; }

.audit-page { width: var(--page); min-height: 100svh; margin: auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(60px,9vw,140px); align-items: start; padding: 180px 0 120px; }
.audit-intro { position: sticky; top: 150px; }
.audit-intro h1 { max-width: 580px; margin: 28px 0 24px; color: var(--white); font-size: clamp(48px,6vw,82px); line-height: .96; letter-spacing: -.06em; white-space: pre-line; }
.audit-intro > p { max-width: 540px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.audit-expectation { margin-top: 55px; border-top: 1px solid var(--line); }
.audit-expectation { display: grid; grid-template-columns: 40px 1fr; }
.audit-expectation span,.audit-expectation p { padding: 15px 0; border-bottom: 1px solid var(--line); }
.audit-expectation span { color: #5e6261; font: 500 10px/1.6 "JetBrains Mono", monospace; }.audit-expectation p { color: #a5a9a8; font-size: 13px; line-height: 1.55; }
.audit-panel { min-height: 650px; padding: clamp(25px,4vw,52px); border: 1px solid var(--line); background: #090a0a; }
.form-progress { display: grid; grid-template-columns: repeat(3,1fr); margin-bottom: 58px; border-bottom: 1px solid var(--line); }
.form-progress span { padding: 0 0 16px; color: #555a58; font: 500 9px/1.3 "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.form-progress span.active { color: var(--white); border-bottom: 1px solid var(--signal); }
.form-step { border: 0; padding: 0; }
.form-step + .form-step { margin-top: 65px; padding-top: 55px; border-top: 1px solid var(--line); }
.form-actions [data-next], .form-actions [data-back] { display: none; }
.is-enhanced .form-step + .form-step { margin-top: 0; padding-top: 0; border-top: 0; }
.is-enhanced .form-actions [data-next], .is-enhanced .form-actions [data-back] { display: inline-flex; }
.form-step legend { color: var(--white); font-size: clamp(29px,3.5vw,43px); line-height: 1.1; letter-spacing: -.04em; }
.step-copy { max-width: 540px; margin: 12px 0 38px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.audit-field { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.audit-field > span { color: #aeb2b0; font: 500 10px/1 "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.audit-field input,.audit-field textarea,.audit-field select { width: 100%; min-height: 52px; padding: 14px 15px; border: 1px solid #292c2b; border-radius: 0; background: #050606; color: var(--white); font: 400 14px/1.4 Inter,sans-serif; transition: border-color .2s, background .2s; }
.audit-field textarea { resize: vertical; }.audit-field select { appearance: auto; }
.audit-field input:focus,.audit-field textarea:focus,.audit-field select:focus { border-color: #727775; background: #0a0b0b; outline: 0; }
.audit-field.full { width: 100%; }
.field-error { color: #ff8585; font-size: 12px; }
.consent-field { display: flex; align-items: flex-start; gap: 12px; color: #9da19f; font-size: 13px; line-height: 1.55; }.consent-field input { margin-top: 4px; accent-color: var(--signal); }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 38px; }
.form-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-alert { margin-bottom: 28px; padding: 15px; border: 1px solid rgba(255,77,77,.4); background: rgba(255,77,77,.08); color: #ffc1c1; font-size: 13px; line-height: 1.5; }
.audit-success { min-height: 540px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.audit-success > .material-symbols-outlined { margin-bottom: 35px; color: var(--green); font-size: 48px; }.audit-success h2 { margin: 22px 0 15px; color: var(--white); font-size: clamp(38px,5vw,62px); letter-spacing: -.05em; }.audit-success p { max-width: 540px; color: var(--muted); line-height: 1.65; }.audit-success code { margin: 25px 0; padding: 10px 12px; border: 1px solid var(--line); color: #aeb2b0; font-size: 11px; }

/* Editorial pages */
.inner-hero,.case-hero { position: relative; min-height: 78svh; display: flex; align-items: end; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 82% 30%, rgba(255,77,77,.09), transparent 26%),#050505; }
.inner-hero-grid { position: absolute; inset: 0; opacity: .15; background-image: linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom,transparent,black); }
.inner-hero-content,.case-hero-content { position: relative; z-index: 1; width: var(--page); margin: auto; padding: 190px 0 100px; }
.inner-hero-content > span,.case-hero-content > span,.case-copy > span,.content-heading > span,.disclosure-section > span,.install-section span,.legal-heading > span { color: #777c7a; font: 500 10px/1.3 "JetBrains Mono",monospace; letter-spacing: .13em; text-transform: uppercase; }
.inner-hero-content h1,.case-hero-content h1 { max-width: 1050px; margin: 28px 0; color: var(--white); font-size: clamp(52px,7.2vw,102px); line-height: .95; letter-spacing: -.065em; }
.inner-hero-content p,.case-hero-content p { max-width: 760px; color: var(--muted); font-size: clamp(17px,1.5vw,21px); line-height: 1.7; }
.content-section,.case-section { width: var(--page); margin: auto; padding: clamp(90px,10vw,145px) 0; }
.bordered-section { border-top: 1px solid var(--line); }
.content-heading { display: grid; grid-template-columns: .65fr 1.35fr; gap: 30px; margin-bottom: 70px; }
.content-heading h2 { max-width: 880px; color: var(--white); font-size: clamp(38px,5vw,68px); line-height: 1; letter-spacing: -.05em; }
.service-detail-grid { display: grid; grid-template-columns: repeat(2,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-detail { min-height: 370px; padding: 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(145deg,rgba(255,255,255,.018),transparent); }
.service-detail > span,.service-detail code,.process-step > span,.role-card > span,.security-item > span,.engineering-decision > span { color: #656a68; font: 500 10px/1.3 "JetBrains Mono",monospace; letter-spacing: .08em; }
.service-detail code { float: right; }.service-detail h3 { max-width: 480px; margin: 125px 0 18px; color: var(--white); font-size: clamp(27px,3vw,39px); line-height: 1.05; letter-spacing: -.04em; }.service-detail p { max-width: 610px; color: var(--muted); line-height: 1.7; }
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.process-step { min-height: 270px; padding: 27px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }.process-step h3 { margin: 95px 0 12px; color: var(--white); font-size: 24px; }.process-step p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.internal-cta { width: var(--page); min-height: 560px; margin: auto; padding: 100px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border-top: 1px solid var(--line); text-align: center; }.internal-cta > span { color: #737876; font: 500 10px/1 "JetBrains Mono",monospace; letter-spacing: .12em; }.internal-cta h2 { max-width: 900px; margin: 24px 0 18px; color: var(--white); font-size: clamp(43px,6vw,80px); line-height: 1; letter-spacing: -.055em; }.internal-cta p { max-width: 620px; margin-bottom: 32px; color: var(--muted); font-size: 17px; line-height: 1.65; }

.project-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }.project-card { display: block; border: 1px solid var(--line); background: #080909; transition: transform .25s,border-color .25s; }.project-card:first-child { grid-column: 1/-1; display: grid; grid-template-columns: 1.15fr .85fr; }.project-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.28); }.project-visual { min-height: 360px; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: #0a0b0b; }.project-card:first-child .project-visual { border-bottom: 0; border-inline-end: 1px solid var(--line); }.project-visual.ciri { background: radial-gradient(circle,rgba(255,77,77,.1),transparent 38%),#080909; }.project-visual.ciri img { width: min(38%,220px); filter: grayscale(1) brightness(1.6); }.project-card-copy { padding: clamp(28px,4vw,55px); }.project-card-copy > span { color: #6e7371; font: 500 9px/1.3 "JetBrains Mono",monospace; letter-spacing: .1em; }.project-card-copy h2 { margin: 30px 0 18px; color: var(--white); font-size: clamp(29px,4vw,52px); line-height: 1.05; letter-spacing: -.045em; }.project-card-copy p { color: var(--muted); line-height: 1.7; }.project-card-copy b { display: block; margin-top: 35px; color: #c2c6c4; font: 500 10px/1 "JetBrains Mono",monospace; letter-spacing: .08em; text-transform: uppercase; }.mini-pos { width: 74%; height: 62%; display: grid; grid-template-columns: 80px 1fr; grid-template-rows: repeat(3,1fr); gap: 7px; padding: 15px; border: 1px solid #343736; background: #111; }.mini-pos strong { grid-row: 1/-1; display: grid; place-items: center; color: #d6d8d7; writing-mode: vertical-rl; }.mini-pos i { background: #222625; border-top: 1px solid var(--green); }.mini-trace { width: 78%; display: flex; flex-direction: column; gap: 15px; }.mini-trace i { height: 8px; background: linear-gradient(90deg,#232625 0 15%,var(--green) 15% 52%,#242726 52% 100%); }.mini-trace i:nth-child(2){width:72%;margin-inline-start:12%}.mini-trace i:nth-child(3){width:88%;}.mini-trace i:nth-child(4){width:62%;margin-inline-start:20%}.mini-trace i:nth-child(5){width:78%;margin-inline-start:7%}
.project-visual > img { max-width: 46%; max-height: 46%; object-fit: contain; }.project-visual.mizan { background: linear-gradient(145deg,#f6f2eb,#e7ded0); }.project-visual.sevo { background: radial-gradient(circle at 35% 35%,#e2f5c9,#d2e6f7 55%,#f7ebc9); }

.origin-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: center; }.origin-mark { min-height: 420px; display: grid; place-content: center; justify-items: center; border: 1px solid var(--line); background: radial-gradient(circle,rgba(255,77,77,.12),transparent 55%); }.origin-mark span { color: var(--white); font-size: clamp(46px,6vw,80px); }.origin-mark small { margin-top: 25px; color: #717674; font: 500 10px/1 "JetBrains Mono",monospace; letter-spacing: .15em; }.origin-copy h2 { margin: 24px 0; color: var(--white); font-size: clamp(40px,5vw,70px); line-height: 1; letter-spacing: -.05em; }.origin-copy p { color: var(--muted); font-size: 17px; line-height: 1.75; }.role-grid,.security-grid,.engineering-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }.role-card,.engineering-decision { min-height: 310px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }.role-card h3,.engineering-decision h3 { margin: 115px 0 20px; color: var(--white); font-size: 25px; line-height: 1.1; letter-spacing: -.03em; }.role-card code { color: #767b79; font-size: 10px; line-height: 1.7; }.engineering-decision p { color: var(--muted); line-height: 1.65; }
.compliance-note { max-width: 760px; margin: -25px 0 55px auto; color: var(--muted); font-size: 16px; line-height: 1.75; }.compliance-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }.compliance-grid div { min-height: 190px; display: flex; flex-direction: column; justify-content: end; gap: 13px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }.compliance-grid strong { color: var(--white); font-size: clamp(27px,3vw,40px); letter-spacing: -.04em; }.compliance-grid span { color: #777c7a; font: 500 9px/1.4 "JetBrains Mono",monospace; letter-spacing: .08em; }
.security-grid { grid-template-columns: repeat(2,1fr); }.security-item { min-height: 330px; padding: 35px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }.security-item h2 { margin: 100px 0 18px; color: var(--white); font-size: 31px; letter-spacing: -.04em; }.security-item p { max-width: 560px; color: var(--muted); line-height: 1.7; }.disclosure-section { width: var(--page); min-height: 620px; margin: auto; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--line); }.disclosure-section h2 { margin: 25px 0 18px; color: var(--white); font-size: clamp(42px,6vw,76px); letter-spacing: -.055em; }.disclosure-section p { max-width: 720px; margin-bottom: 32px; color: var(--muted); font-size: 17px; line-height: 1.75; }.disclosure-section .button { width: fit-content; }

.legal-page { width: var(--page); margin: auto; padding: 190px 0 130px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }.legal-heading { position: sticky; top: 150px; align-self: start; }.legal-heading h1 { margin: 25px 0; color: var(--white); font-size: clamp(48px,6vw,80px); line-height: .95; letter-spacing: -.06em; }.legal-heading p { max-width: 480px; color: var(--muted); line-height: 1.7; }.legal-content { border-top: 1px solid var(--line); }.legal-content section { display: grid; grid-template-columns: 55px 1fr; gap: 20px; padding: 42px 0; border-bottom: 1px solid var(--line); }.legal-content section > span { color: #626765; font: 500 10px/1.5 "JetBrains Mono",monospace; }.legal-content h2 { margin-bottom: 15px; color: var(--white); font-size: 25px; }.legal-content p { color: var(--muted); line-height: 1.75; }

/* Case studies */
.case-hero { min-height: 88svh; }.case-hero-content > a { display: block; width: fit-content; margin-bottom: 70px; color: #7c817f; font: 500 10px/1 "JetBrains Mono",monospace; text-transform: uppercase; }.case-hero-content code { display: block; width: fit-content; margin-top: 38px; padding: 11px 14px; border: 1px solid var(--line); color: #8f9492; font-size: 10px; letter-spacing: .08em; }.case-media-wide { width: var(--page); margin: clamp(80px,10vw,140px) auto; border: 1px solid #3a2c29; background: #211412; }.case-media-wide video { display: block; width: 100%; aspect-ratio: 1930/1142; object-fit: cover; }.case-stats { width: var(--page); margin: auto; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }.case-stat { min-height: 190px; display: flex; flex-direction: column; justify-content: end; padding: 25px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }.case-stat strong { color: var(--white); font-size: clamp(29px,4vw,47px); letter-spacing: -.04em; }.case-stat span { margin-top: 8px; color: #777c7a; font: 500 9px/1.4 "JetBrains Mono",monospace; text-transform: uppercase; }.case-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }.case-copy h2 { margin-top: 28px; color: var(--white); font-size: clamp(40px,5vw,68px); line-height: 1; letter-spacing: -.05em; }.case-copy p { margin-bottom: 20px; color: var(--muted); font-size: 17px; line-height: 1.75; }.diagram-frame { display: block; border: 1px solid var(--line); background: #080909; overflow: auto; }.diagram-frame img { display: block; width: 100%; height: auto; }.diagram-frame figcaption { padding: 15px; border-top: 1px solid var(--line); color: #747977; font: 500 9px/1.4 "JetBrains Mono",monospace; text-transform: uppercase; }.diagram-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 25px; padding-top: 0; }.install-section { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: end; border-top: 1px solid var(--line); }.install-section h2 { margin: 22px 0; color: var(--white); font-size: clamp(38px,5vw,68px); letter-spacing: -.05em; }.install-section p { color: var(--muted); line-height: 1.7; }.install-section pre { max-width: 100%; margin-bottom: 18px; padding: 20px; overflow-x: auto; border: 1px solid var(--line); background: #080909; color: #bac0bd; font-size: 12px; }
.case-product-cover { width: var(--page); margin: clamp(80px,10vw,140px) auto; overflow: hidden; border: 1px solid var(--line); background: #0a0b0b; }.case-product-cover img { display: block; width: 100%; max-height: 760px; object-fit: cover; }.case-product-cover figcaption { padding: 15px 18px; border-top: 1px solid var(--line); color: #777c7a; font: 500 9px/1.4 "JetBrains Mono",monospace; text-transform: uppercase; }.sevo-cover img { aspect-ratio: 16/8; object-position: center; }.case-image-pair { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(35px,6vw,90px); align-items: center; }.case-product-image { overflow: hidden; border: 1px solid var(--line); background: #0a0b0b; }.case-product-image img { display: block; width: 100%; height: auto; }.mizan-cover { background: #091d35; }
.matjarak-preview { width: var(--page); min-height: 650px; margin: clamp(80px,10vw,140px) auto; display: grid; grid-template-columns: 210px 1fr; border: 1px solid var(--line); background: #f1eee7; color: #231f1b; direction: rtl; }.mock-sidebar { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: #1e2724; color: #dbe4df; }.mock-sidebar strong { margin-bottom: 35px; font-size: 27px; }.mock-sidebar span { padding: 13px; border-radius: 7px; background: rgba(255,255,255,.04); font-size: 13px; }.mock-dashboard { padding: 28px; }.mock-topbar { display: flex; justify-content: space-between; padding-bottom: 24px; border-bottom: 1px solid #d0ccc3; }.mock-topbar i { width: 35px; height: 35px; border-radius: 50%; background: #c0b9ae; }.mock-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; margin: 35px 0; }.mock-metrics b { min-height: 120px; padding: 22px; border: 1px solid #d4d0c8; background: white; }.mock-chart { height: 300px; display: flex; align-items: end; gap: 18px; padding: 30px; border: 1px solid #d4d0c8; background: white; }.mock-chart i { flex: 1; height: 35%; background: #4e6f63; }.mock-chart i:nth-child(2){height:62%}.mock-chart i:nth-child(3){height:45%}.mock-chart i:nth-child(4){height:78%}.mock-chart i:nth-child(5){height:58%}.mock-chart i:nth-child(6){height:88%}.mock-chart i:nth-child(7){height:70%}.capability-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }.capability-columns ul { border-top: 1px solid var(--line); }.capability-columns li { padding: 22px 0; border-bottom: 1px solid var(--line); color: #b3b8b5; line-height: 1.5; }
.sevo-telemetry-preview { width: var(--page); min-height: 620px; margin: clamp(80px,10vw,140px) auto; display: grid; grid-template-columns: 1.5fr .5fr; gap: 1px; padding: 1px; background: #373b39; }.telemetry-panel { position: relative; min-height: 300px; padding: 25px; overflow: hidden; background: #15191d; }.telemetry-panel.wide { grid-row: span 2; }.telemetry-panel > span { color: #a4aaa7; font: 500 10px/1 "JetBrains Mono",monospace; }.telemetry-panel svg { position: absolute; inset: 20% 2% 8%; width: 96%; height: 72%; }.telemetry-panel path { fill: none; stroke: #b4c500; stroke-width: 2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(180,197,0,.4)); }.telemetry-panel strong { display: block; margin-top: 70px; color: #d9dddb; font-size: 78px; text-align: center; }.telemetry-panel strong span { font-size: 34px; }.telemetry-panel small { display: block; color: #727775; text-align: center; }.histogram-bars { height: 200px; display: flex; align-items: end; gap: 9px; padding-top: 35px; }.histogram-bars i { flex: 1; height: 12%; background: #c64a15; }.histogram-bars i:nth-child(2){height:35%}.histogram-bars i:nth-child(3){height:18%}.histogram-bars i:nth-child(4){height:65%}.histogram-bars i:nth-child(5){height:28%}.histogram-bars i:nth-child(6){height:88%}.histogram-bars i:nth-child(7){height:52%}.histogram-bars i:nth-child(8){height:72%}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes flow { to { stroke-dashoffset: -.085; } }
@keyframes bars { from { transform: scaleY(.72); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }

@media (max-width: 900px) {
  :root { --page: calc(100vw - 32px); }
  .site-nav { padding: 12px 16px; }
  .nav-shell, .site-nav[data-state="scrolled"] .nav-shell { width: 100%; grid-template-columns: auto 1fr; height: 58px; }
  .nav-brand { padding: 7px 13px 7px 7px; border-radius: 999px; }
  .nav-brand span { display: none; }
  .nav-links, .nav-language, .nav-cta { display: none; }
  .nav-mobile-actions { display: flex; justify-self: end; gap: 6px; padding: 5px 7px 5px 14px; border-radius: 999px; font: 500 10px/1 "JetBrains Mono", monospace; }
  .nav-mobile-actions button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--white); }
  .mobile-audit { padding-inline: 9px; color: var(--white); }
  .site-nav .nav-brand, .site-nav .nav-mobile-actions { background: rgba(9,10,10,.58); border-color: rgba(255,255,255,.1); backdrop-filter: blur(14px); }
  .mobile-menu { pointer-events: auto; width: calc(100% - 32px); margin: 8px auto 0; padding: 14px; border: 1px solid var(--line); border-radius: 22px; background: rgba(8,9,9,.9); box-shadow: 0 20px 60px #000; backdrop-filter: blur(20px); }
  .mobile-menu:not([hidden]) { display: flex; flex-direction: column; }
  .mobile-menu a { padding: 15px 12px; border-bottom: 1px solid var(--line); color: #c5c8c7; font: 500 12px/1 "JetBrains Mono", monospace; text-transform: uppercase; }
  .mobile-menu a:last-child { margin-top: 8px; border: 0; border-radius: 999px; background: var(--white); color: #050505; text-align: center; }
  .hero-content { padding: 150px 0 12vh; }
  .hero-content h1 { font-size: clamp(50px,14vw,75px); }
  .hero-readout { display: none; }
  .expertise-track { overflow: hidden; justify-content: flex-start; }
  .section-heading { grid-template-columns: 1fr; }.section-heading h2, .section-heading > p { grid-column: 1; }
  .craft, .craft--problems { grid-template-columns: 1fr 1fr; }
  .work-card--lg, .work-card--md { grid-column: span 12; }
  .work-card--full { aspect-ratio: 16/9; }
  .contact-frame { padding: 40px 26px; }
  .contact__row { flex-direction: column; align-items: flex-start; }
  .architecture-canvas {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    row-gap: 28px;
    padding: 32px 32px 40px;
  }
  .arch-label-in { grid-column: 1; grid-row: 1; }
  .sevo-telemetry-preview { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; }
  .premium-footer-grid { grid-template-columns: 1fr 1fr; }.premium-footer-brand { grid-column: 1/-1; }.premium-footer-bottom { padding: 20px 0; gap: 15px; flex-direction: column; align-items: flex-start; }
  .audit-page { grid-template-columns: 1fr; padding-top: 140px; }.audit-intro { position: static; }.audit-expectation { display: none; }
  .inner-hero,.case-hero { min-height: 72svh; }.content-heading,.origin-section,.legal-page,.case-split,.case-image-pair,.install-section { grid-template-columns: 1fr; }.service-detail-grid,.project-grid,.role-grid,.engineering-grid { grid-template-columns: 1fr; }.project-card:first-child { grid-column: auto; display: block; }.project-card:first-child .project-visual { border-inline-end: 0; border-bottom: 1px solid var(--line); }.process-grid { grid-template-columns: 1fr 1fr; }.compliance-grid { grid-template-columns: 1fr; }.compliance-note { margin-inline: 0; }.origin-section { gap: 45px; }.legal-heading { position: static; }.security-grid { grid-template-columns: 1fr; }.case-stats { grid-template-columns: 1fr 1fr; }.diagram-grid { grid-template-columns: 1fr; }.matjarak-preview { grid-template-columns: 145px 1fr; min-height: 520px; }.mock-dashboard { padding: 18px; }.sevo-telemetry-preview { grid-template-columns: 1fr; }.telemetry-panel.wide { grid-row: auto; }.content-heading h2 { grid-column: auto; }
}

@media (max-width: 580px) {
  .hero-content > p { font-size: 16px; }.hero-actions { flex-direction: column; }.hero-actions .button { width: 100%; }
  .craft, .craft--problems { grid-template-columns: 1fr; }.craft__cell { min-height: 230px; }
  .craft--services::after { display: none; }
  .services-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .premium-footer-grid { grid-template-columns: 1fr; }.premium-footer-brand { grid-column: 1; }
  .audit-panel { padding: 25px 18px; }.field-grid { grid-template-columns: 1fr; gap: 0; }.form-progress span { font-size: 8px; }.form-actions { flex-direction: column-reverse; }.form-actions .button { width: 100%; }
  .inner-hero-content,.case-hero-content { padding-top: 150px; }.process-grid,.case-stats { grid-template-columns: 1fr; }.project-visual { min-height: 280px; }.service-detail { min-height: 310px; }.service-detail h3 { margin-top: 90px; }.legal-page { padding-top: 150px; gap: 65px; }.case-media-wide { width: 100%; border-inline: 0; }.matjarak-preview { grid-template-columns: 1fr; min-height: 650px; }.mock-sidebar { display: none; }.mock-metrics { grid-template-columns: 1fr; }.mock-metrics b { min-height: 75px; }.mock-chart { height: 220px; padding: 20px; gap: 9px; }.capability-columns { grid-template-columns: 1fr; gap: 0; }.case-hero-content > a { margin-bottom: 45px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-topology { display: none; }
  .cursor { display: none; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-nav[data-state="scrolled"] .nav-pill, .mobile-menu, .button-quiet { background: rgba(8,9,9,.96); }
}

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Custom follow cursor */
.cursor { position: fixed; top: 0; left: 0; width: 16px; height: 16px; border: 1px solid #fff; border-radius: 50%; pointer-events: none; z-index: 99; mix-blend-mode: difference; transform: translate(-50%, -50%); transition: width .35s var(--ease), height .35s var(--ease), background .35s var(--ease); }
.cursor.is-hover { width: 48px; height: 48px; background: #fff; }
.cursor__label { position: fixed; top: 0; left: 0; color: #000; font: 500 9px/1 "JetBrains Mono", monospace; letter-spacing: .16em; text-transform: uppercase; pointer-events: none; z-index: 100; transform: translate(-50%, -50%); opacity: 0; transition: opacity .3s var(--ease); }
.cursor.is-hover .cursor__label { opacity: 1; }
@media (pointer: coarse) { .cursor { display: none; } }
