/* ArchitectSaid — public site. Dark, technical, cinematic. */
:root {
  --bg: #05070c;
  --bg-2: #0a0e17;
  --bg-3: #111827;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --text: #e9eef7;
  --muted: #8b95a8;
  --c1: #3cf0ff;
  --c2: #9b6bff;
  --grad: linear-gradient(100deg, var(--c1), var(--c2));
  --glass: rgba(14, 19, 30, .55);
  --radius: 18px;
  --wrap: 1280px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --f-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--f-body);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 7vw, 6.2rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); }
h3 { font-size: 1.35rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
::selection { background: var(--c1); color: #000; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.mono { font-family: var(--f-mono); letter-spacing: .04em; }
.small { font-size: .78rem; }
.muted { color: var(--muted); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { color: var(--c1); font-size: .8rem; margin-bottom: 1.2rem; text-transform: uppercase; }
.lead { font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.5; color: #cfd6e4; font-family: var(--f-display); font-weight: 300; }
.prose p { color: #b7c0d0; font-size: 1.05rem; }
.pt-0 { padding-top: 0 !important; }

/* ---------- ambient FX ---------- */
.fx-noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.fx-glow {
  position: fixed; width: 520px; height: 520px; left: 0; top: 0; z-index: 0; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 240, 255, .09), transparent 65%);
  transform: translate(-50%, -50%); transition: opacity .4s; opacity: 0;
}
body.has-pointer .fx-glow { opacity: 1; }
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--bg); display: grid; place-content: center; gap: 14px;
  justify-items: center; transition: opacity .6s var(--ease), visibility .6s;
}
.loader span { font-size: .7rem; color: var(--muted); }
.loader-bar { width: 180px; height: 2px; background: var(--line); overflow: hidden; position: relative; }
.loader-bar::after { content: ""; position: absolute; inset: 0; background: var(--grad); transform: translateX(-100%); animation: load 1.1s var(--ease) infinite; }
@keyframes load { to { transform: translateX(100%); } }
body.loaded .loader { opacity: 0; visibility: hidden; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em; padding: .85em 1.4em; border-radius: 999px; font: 500 .95rem var(--f-display);
  border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; position: relative;
  transition: transform .3s var(--ease), background .3s, border-color .3s, box-shadow .3s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #04060a; border: 0; box-shadow: 0 10px 40px -10px rgba(60, 240, 255, .55); }
.btn-primary:hover { box-shadow: 0 16px 50px -10px rgba(155, 107, 255, .7); }
.btn-ghost { background: rgba(255, 255, 255, .03); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--c1); }
.btn-lg { padding: 1.05em 1.8em; font-size: 1.05rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 28px;
  padding: 22px max(20px, calc((100vw - var(--wrap)) / 2)); transition: background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(5, 7, 12, .72); backdrop-filter: blur(18px) saturate(1.3); padding-top: 14px; padding-bottom: 14px; border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 1.15rem var(--f-display); letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 30px; color: var(--text); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: .92rem; color: #c2cad8; position: relative; padding: 4px 0; transition: color .2s; }
.nav-links a i { font: normal .62rem var(--f-mono); color: var(--c1); margin-right: 6px; vertical-align: super; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { padding: .6em 1.1em; font-size: .85rem; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; position: relative; cursor: pointer; margin-left: auto; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .3s, top .3s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.nav.open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav.open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 140px 0 120px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -6% 0; background-size: cover; background-position: center; z-index: -3; transform: scale(1.08); animation: heroZoom 18s ease-out forwards; will-change: transform; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(180deg, rgba(5, 7, 12, .55) 0%, rgba(5, 7, 12, .15) 35%, rgba(5, 7, 12, .75) 75%, var(--bg) 100%),
  radial-gradient(ellipse at 20% 80%, rgba(155, 107, 255, .25), transparent 55%); }
.hero-grid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .55; pointer-events: none; }
.hero-inner { position: relative; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; text-transform: uppercase; color: #d4dbe7;
  padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(5, 7, 12, .35); backdrop-filter: blur(8px); margin-bottom: 26px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c1); box-shadow: 0 0 12px var(--c1); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero-title { max-width: 14ch; text-shadow: 0 4px 40px rgba(0, 0, 0, .35); }
.hero-sub { max-width: 560px; font-size: 1.15rem; color: #cbd3e1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hud { position: absolute; display: flex; flex-direction: column; gap: 6px; color: rgba(233, 238, 247, .65); font-size: .68rem; z-index: 2; }
.hud-left { left: max(20px, calc((100vw - var(--wrap)) / 2)); top: 120px; }
.hud-right { right: max(20px, calc((100vw - var(--wrap)) / 2)); top: 120px; text-align: right; align-items: flex-end; }
.hud b { color: var(--c1); font-weight: 500; }
.hud-bar { width: 120px; height: 2px; background: var(--line-2); position: relative; overflow: hidden; }
.hud-bar i { position: absolute; inset: 0; background: var(--grad); animation: hudbar 3.5s ease-in-out infinite alternate; }
@keyframes hudbar { from { transform: translateX(-70%); } to { transform: translateX(0); } }
.scroll-cue { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-size: .65rem; }
.scroll-cue span { width: 1px; height: 46px; background: linear-gradient(var(--c1), transparent); animation: cue 2s infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* split text */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 55ms + 150ms); }
body.loaded [data-split] .w > span { transform: none; }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--bg-2); }
.marquee-track { display: flex; gap: 34px; width: max-content; animation: marq 40s linear infinite; font: 500 clamp(1.3rem, 3vw, 2.2rem) var(--f-display); color: #3b4456; text-transform: uppercase; letter-spacing: -.01em; }
.marquee-track span:nth-child(4n + 1) { color: var(--text); }
.m-sep { color: var(--c1) !important; font-size: .7em; align-self: center; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section-head { margin-bottom: clamp(36px, 6vw, 70px); max-width: 820px; }
.section-head.split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- before/after compare ---------- */
.ba { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2; background: var(--bg-3); user-select: none; touch-action: pan-y; border: 1px solid var(--line); }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before-wrap { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); will-change: clip-path; }
.ba-before { filter: saturate(.85) contrast(1.02); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: linear-gradient(var(--c1), var(--c2)); box-shadow: 0 0 24px rgba(60, 240, 255, .8); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center;
  background: rgba(5, 7, 12, .55); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .35); color: #fff; transition: transform .3s var(--ease); }
.ba-knob svg { width: 24px; height: 24px; }
.ba:hover .ba-knob, .ba.dragging .ba-knob { transform: translate(-50%, -50%) scale(1.12); }
.ba { cursor: ew-resize; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; z-index: 3; pointer-events: none; }
.ba:focus-within { outline: 2px solid var(--c1); outline-offset: 3px; }
.ba-range:focus-visible ~ .ba-handle .ba-knob, .ba-range:focus-visible + .ba-knob { outline: 2px solid var(--c1); }
.ba-tag { position: absolute; top: 18px; z-index: 2; font-size: .7rem; padding: 6px 12px; border-radius: 999px; background: rgba(5, 7, 12, .6); backdrop-filter: blur(8px); border: 1px solid var(--line-2); pointer-events: none; }
.ba-tag-before { left: 18px; } .ba-tag-after { right: 18px; color: var(--c1); }
.ba-corner { position: absolute; width: 18px; height: 18px; border: 1.5px solid rgba(60, 240, 255, .7); z-index: 2; pointer-events: none; }
.ba-corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.ba-corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.ba-corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.ba-corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.ba-big { aspect-ratio: 16 / 9; box-shadow: 0 40px 120px -40px rgba(60, 240, 255, .25); }
.ba.swap .ba-img { animation: fadeImg .6s var(--ease); }
@keyframes fadeImg { from { opacity: 0; filter: blur(8px); } }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.ba-pair figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.ba-pair img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform .8s var(--ease); }
.ba-pair figure:hover img { transform: scale(1.05); }
.ba-pair figcaption { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(5, 7, 12, .7); }

/* showcase */
.showcase { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 34px; align-items: center; }
.showcase-info h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0 30px; border-top: 1px solid var(--line); padding-top: 18px; }
.specs dt { color: var(--muted); font-size: .65rem; } .specs dd { margin: 4px 0 0; font-size: .85rem; color: var(--text); }
.sc-thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 26px; }
.sc-thumb { all: unset; cursor: pointer; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); position: relative; background: var(--bg-2); transition: border-color .3s, transform .3s var(--ease); }
.sc-thumb img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; opacity: .55; transition: opacity .3s; }
.sc-thumb span { display: block; padding: 8px 10px; font-size: .68rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-thumb:hover { transform: translateY(-3px); }
.sc-thumb.active { border-color: var(--c1); box-shadow: 0 0 0 1px var(--c1), 0 10px 30px -10px rgba(60, 240, 255, .5); }
.sc-thumb.active img, .sc-thumb:hover img { opacity: 1; }
.sc-thumb.active span { color: var(--text); }
.sc-thumb:focus-visible { outline: 2px solid var(--c1); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 26px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.card { display: block; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; position: relative;
  transform-style: preserve-3d; transition: border-color .4s, box-shadow .4s, opacity 1s var(--ease), transform 1s var(--ease); }
.card.in { transition: border-color .4s, box-shadow .4s, transform .25s ease-out; }
.card:hover { border-color: rgba(60, 240, 255, .45); box-shadow: 0 30px 80px -30px rgba(60, 240, 255, .35); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .7s var(--ease); }
.card-before { opacity: 0; }
.card:hover .card-img { transform: scale(1.06); }
.card:hover .card-before { opacity: 1; }
.card-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .75rem; }
.chip { position: absolute; top: 14px; left: 14px; font-size: .62rem; padding: 5px 10px; border-radius: 99px; background: rgba(5, 7, 12, .65); backdrop-filter: blur(8px); border: 1px solid var(--line-2); z-index: 2; }
.chip-ba::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--c1); margin-right: 6px; box-shadow: 0 0 8px var(--c1); }
.card-scan { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(60, 240, 255, .18) 50%, transparent 55%); transform: translateY(-100%); pointer-events: none; }
.card:hover .card-scan { animation: scan 1.4s var(--ease); }
@keyframes scan { to { transform: translateY(100%); } }
.card-body { padding: 22px 24px 26px; position: relative; }
.card-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); margin-bottom: 10px; font-size: .68rem; text-transform: uppercase; }
.card-body h3 { font-size: 1.5rem; margin-bottom: .3em; }
.card-body p { font-size: .92rem; margin: 0; padding-right: 40px; }
.card-arrow { position: absolute; right: 22px; bottom: 24px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: background .3s, color .3s, transform .4s var(--ease); }
.card:hover .card-arrow { background: var(--c1); color: #000; border-color: var(--c1); transform: rotate(-45deg); }
.card.hide { display: none; }

/* ---------- stats ---------- */
.stats { padding: 60px 0; border-block: 1px solid var(--line); background:
  radial-gradient(ellipse at 50% 0%, rgba(60, 240, 255, .07), transparent 60%), var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding-left: 18px; border-left: 1px solid var(--line-2); }
.stat-val { font: 600 clamp(2.6rem, 5vw, 4rem) var(--f-display); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- studio ---------- */
.studio-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.studio-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line); }
.studio-media img { width: 100%; height: 100%; object-fit: cover; }
.frame-label { position: absolute; left: 16px; bottom: 16px; padding: 6px 12px; border-radius: 99px; background: rgba(5, 7, 12, .65); backdrop-filter: blur(8px); font-size: .65rem; }
.studio-text .btn { margin-top: 10px; }

/* ---------- services ---------- */
.services-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service { background: var(--bg); padding: 38px 34px 44px; position: relative; overflow: hidden; transition: background .4s; }
.service:hover { background: var(--bg-2); }
.service-no { color: var(--c1); font-size: .75rem; display: block; margin-bottom: 40px; }
.service h3 { font-size: 1.45rem; }
.service p { margin: 0; font-size: .95rem; }
.service-line { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.service:hover .service-line { transform: scaleX(1); }

/* ---------- process ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 22px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--c1), var(--c2), transparent); }
.timeline li { position: relative; padding-top: 70px; }
.tl-node { position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem;
  background: var(--bg); border: 1px solid var(--c1); color: var(--c1); box-shadow: 0 0 0 6px var(--bg), 0 0 24px rgba(60, 240, 255, .35); }

/* ---------- CTA ---------- */
.cta-box { text-align: center; padding: clamp(50px, 8vw, 100px) clamp(20px, 5vw, 80px); border-radius: 28px; border: 1px solid var(--line-2); position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, rgba(155, 107, 255, .35), transparent 60%), radial-gradient(ellipse at 50% -20%, rgba(60, 240, 255, .2), transparent 55%), var(--bg-2); }
.cta-box h2 { max-width: 16ch; margin-inline: auto; }
.cta-box p { max-width: 540px; margin: 0 auto 30px; }

/* ---------- inner pages ---------- */
.page-hero { position: relative; padding: 190px 0 70px; overflow: hidden; }
.page-hero h1 { max-width: 16ch; font-size: clamp(2.4rem, 6vw, 5rem); }
.error-hero { min-height: 80vh; display: flex; align-items: center; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter { font: 500 .85rem var(--f-display); padding: .55em 1.1em; border-radius: 99px; border: 1px solid var(--line-2); background: transparent; color: #c2cad8; cursor: pointer; transition: all .25s; }
.filter:hover { border-color: var(--c1); color: #fff; }
.filter.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.project-hero { position: relative; min-height: 88svh; display: flex; align-items: flex-end; padding: 150px 0 70px; overflow: hidden; isolation: isolate; }
.back { display: inline-block; color: var(--muted); margin-bottom: 26px; transition: color .2s; }
.back:hover { color: var(--c1); }
.specbar { border-block: 1px solid var(--line); background: var(--bg-2); }
.specbar-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.specbar-grid div { padding: 22px 18px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line); }
.specbar-grid div:last-child { border-right: 0; }
.specbar-grid span { font-size: .62rem; } .specbar-grid b { font-weight: 500; font-size: .9rem; }
.story { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 6vw, 90px); }
.masonry { columns: 3 300px; column-gap: 16px; }
.masonry figure { margin: 0 0 16px; break-inside: avoid; border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.masonry img { width: 100%; transition: transform .8s var(--ease); }
.masonry figure:hover img { transform: scale(1.04); }
.next-project { position: relative; display: block; padding: 120px 0; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.next-project .hero-bg { animation: none; transform: scale(1.02); transition: transform 1.2s var(--ease); filter: saturate(.8); }
.next-project:hover .hero-bg { transform: scale(1.08); }
.next-project .hero-shade { background: rgba(5, 7, 12, .7); }
.next-title { font: 600 clamp(2rem, 4.6vw, 3.8rem)/1.05 var(--f-display); letter-spacing: -.02em; margin: 10px 0 0; transition: letter-spacing .6s var(--ease); }
.next-project:hover .next-title { letter-spacing: .01em; }
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(3, 4, 8, .92); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 30px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: 10px; box-shadow: 0 30px 100px rgba(0, 0, 0, .6); }
.lb-close { position: absolute; top: 20px; right: 24px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.contact-list { display: grid; gap: 18px; margin: 30px 0 0; }
.contact-list div { border-top: 1px solid var(--line); padding-top: 14px; }
.contact-list dt { font-size: .65rem; color: var(--muted); } .contact-list dd { margin: 4px 0 0; font-size: .95rem; }
.contact-list a:hover { color: var(--c1); }
.glass { background: var(--glass); backdrop-filter: blur(20px); border: 1px solid var(--line-2); border-radius: 24px; }
.form-card { padding: clamp(24px, 4vw, 44px); }
.form { display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field span { font: .7rem var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(5, 7, 12, .6); color: var(--text);
  font: 400 1rem var(--f-body); transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--c1); box-shadow: 0 0 0 4px rgba(60, 240, 255, .12); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 16px; border-radius: 12px; font-size: .92rem; margin: 0 0 14px; }
.alert-error { background: rgba(255, 80, 110, .1); border: 1px solid rgba(255, 80, 110, .35); color: #ffb3c0; }
.sent { text-align: center; padding: 30px 0; }
.sent-icon { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; background: var(--grad); color: #000; font-size: 2rem; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 70px 0 30px; background: var(--bg-2); position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.foot-h { color: var(--muted); font-size: .68rem; margin-bottom: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.footer-grid a:not(.brand) { display: block; color: #c2cad8; padding: 4px 0; font-size: .95rem; transition: color .2s; }
.footer-grid a:hover { color: var(--c1); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); }

main { position: relative; z-index: 1; }

/* ---------- brand / logo ---------- */
.brand-tile { width: 42px; height: 42px; border-radius: 11px; background: #fff; display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 8px 24px -8px rgba(201, 162, 90, .55); flex: none; }
.brand-tile img { width: 100%; height: 100%; object-fit: contain; }
.brand-word { font: 600 1.12rem var(--f-display); letter-spacing: -.01em; white-space: nowrap; }
.brand-word b { font-weight: 600; margin-inline-start: .22em; background: linear-gradient(100deg, #e9c27a, #b8863b 60%, #e3b464);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.loader img { width: 64px; height: 64px; border-radius: 16px; background: #fff; animation: pulse 1.6s infinite; }
.footer-logo { display: inline-block; background: #fff; border-radius: 16px; padding: 14px 18px; margin-bottom: 18px; }
.footer-logo img { width: 240px; max-width: 100%; height: auto; }
.foot-langs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; }
.footer-grid .foot-langs a { display: flex; align-items: center; gap: 8px; font-size: .88rem; padding: 3px 0; }
.foot-langs img, .lang-menu img, .lang-btn img, .lang-grid img, .other-langs img { border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); flex: none; }
.foot-langs a.on { color: var(--c1); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--c1); color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- language switcher ---------- */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03); color: var(--text); cursor: pointer; font-size: .8rem; transition: border-color .2s; }
.lang-btn:hover, .lang.open .lang-btn { border-color: var(--c1); }
.lang-btn .chev { width: 10px; height: 6px; transition: transform .2s; }
.lang.open .chev { transform: rotate(180deg); }
.lang-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); min-width: 220px; list-style: none; margin: 0; padding: 6px;
  background: rgba(10, 14, 23, .96); backdrop-filter: blur(18px); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .2s var(--ease); z-index: 60; }
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; font-size: .92rem; color: #cfd6e4; }
.lang-menu a span:nth-of-type(1) { flex: 1; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: rgba(255, 255, 255, .06); color: #fff; outline: none; }
.lang-menu a.on { background: rgba(60, 240, 255, .1); color: #fff; }
.lang-grid { display: none; }

/* ---------- crumbs / misc ---------- */
.crumbs { color: var(--muted); margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: #c2cad8; } .crumbs a:hover { color: var(--c1); }
.preview-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: #ffc65a; color: #000; text-align: center; padding: 8px; }
.empty { padding: 40px; text-align: center; border-radius: 20px; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }

/* ---------- news ---------- */
.ncards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.ncard { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line);
  transition: border-color .4s, box-shadow .4s, opacity 1s var(--ease), transform 1s var(--ease); }
.ncard:hover { border-color: rgba(60, 240, 255, .45); box-shadow: 0 30px 80px -30px rgba(60, 240, 255, .3); }
.ncard-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3); }
.ncard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ncard:hover .ncard-media img { transform: scale(1.06); }
.ncard-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ncard-body h3 { font-size: 1.28rem; margin: 2px 0 0; line-height: 1.2; }
.ncard-body p { margin: 0; font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard-more { margin-top: auto; padding-top: 8px; color: var(--c1); }
.news-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 34px; }
.news-tools .filters { margin: 0; }
.search { position: relative; flex: 1 1 280px; max-width: 420px; }
.search svg { position: absolute; inset-inline-start: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; padding: 12px 16px; padding-inline-start: 42px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(5, 7, 12, .6);
  color: var(--text); font: 400 .95rem var(--f-body); }
.search input:focus { outline: none; border-color: var(--c1); box-shadow: 0 0 0 4px rgba(60, 240, 255, .12); }
a.filter { display: inline-block; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 46px; }
.pager a { min-width: 42px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 999px; border: 1px solid var(--line-2); font-size: .85rem; }
.pager a:hover { border-color: var(--c1); } .pager a.on { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- article ---------- */
.article-hero { position: relative; min-height: 72svh; display: flex; align-items: flex-end; padding: 150px 0 60px; overflow: hidden; isolation: isolate; }
.article-head h1 { font-size: clamp(2.1rem, 5.4vw, 4.4rem); max-width: 20ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; color: #c2cad8; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(30px, 5vw, 70px); padding-top: 60px; align-items: start; }
.prose-rich { font-size: 1.08rem; line-height: 1.8; color: #c9d1de; max-width: 74ch; }
.prose-rich h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 1.8em 0 .6em; color: var(--text); }
.prose-rich h3 { font-size: 1.25rem; margin: 1.5em 0 .4em; color: var(--text); }
.prose-rich p { margin: 0 0 1.1em; }
.prose-rich ul, .prose-rich ol { padding-inline-start: 1.3em; margin: 0 0 1.2em; }
.prose-rich li { margin-bottom: .45em; }
.prose-rich li::marker { color: var(--c1); }
.prose-rich a { color: var(--c1); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(60, 240, 255, .4); }
.prose-rich a:hover { text-decoration-color: var(--c1); }
.prose-rich strong { color: var(--text); }
.prose-rich blockquote { margin: 1.4em 0; padding: 4px 22px; border-inline-start: 3px solid var(--c2); color: var(--text); }
.article-side { position: sticky; top: 100px; display: grid; gap: 16px; }
.side-box { padding: 18px; border-radius: 16px; }
.side-box .lead { font-size: 1.1rem; }
.share { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.share a, .share button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: transparent;
  color: var(--text); font: 600 .9rem var(--f-display); cursor: pointer; transition: all .2s; }
.share a:hover, .share button:hover { background: var(--c1); color: #000; border-color: var(--c1); }
.other-langs { display: grid; gap: 4px; margin-top: 10px; }
.other-langs a { display: flex; align-items: center; gap: 10px; padding: 6px 4px; color: #c2cad8; font-size: .92rem; }
.other-langs a:hover { color: var(--c1); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 30px; }
.tag { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--c1); }

/* ---------- RTL (Arabic) ---------- */
.lang-ar { --f-display: "IBM Plex Sans Arabic", "Space Grotesk", system-ui, sans-serif; --f-body: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif; }
.lang-ar h1, .lang-ar h2, .lang-ar h3 { letter-spacing: 0; line-height: 1.25; }
.lang-ar .mono, .lang-ar .eyebrow { letter-spacing: 0; }
[dir=rtl] .arr { display: inline-block; transform: scaleX(-1); }
[dir=rtl] .ba, [dir=rtl] .hud, [dir=rtl] .marquee-track { direction: ltr; }
[dir=rtl] .card-arrow { right: auto; left: 22px; }
[dir=rtl] .card-body p { padding-right: 0; padding-left: 40px; }
[dir=rtl] .card:hover .card-arrow { transform: rotate(45deg); }
[dir=rtl] .stat { border-left: 0; border-right: 1px solid var(--line-2); padding-left: 0; padding-right: 18px; }
[dir=rtl] .tl-node { left: auto; right: 0; }
[dir=rtl] .timeline::before { background: linear-gradient(270deg, var(--c1), var(--c2), transparent); }
[dir=rtl] .nav-links a i { margin-right: 0; margin-left: 6px; }
[dir=rtl] .nav-links a::after { transform-origin: right; }
[dir=rtl] .specbar-grid div { border-right: 0; border-left: 1px solid var(--line); }
[dir=rtl] .frame-label { left: auto; right: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .nav-cta { display: none; }
  .nav-links { gap: 20px; }
}
@media (max-width: 1080px) {
  .showcase, .studio-grid, .story, .contact-grid, .article-layout { grid-template-columns: 1fr; }
  .article-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .specbar-grid { grid-template-columns: repeat(3, 1fr); }
  .specbar-grid div:nth-child(3) { border-right: 0; }
  .hud { display: none; }
}
@media (max-width: 860px) {
  .burger { display: block; margin-left: 0; flex: none; }
  .nav-cta { display: none; }
  .nav-links { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; padding: 0 30px; gap: 8px; background: rgba(5, 7, 12, .97); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
  .nav-links { justify-content: flex-start; padding-top: 100px; overflow-y: auto; }
  .nav-links a { font: 500 1.7rem var(--f-display); padding: 8px 0; }
  .lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
  .nav-links .lang-grid a { font: 400 .95rem var(--f-body); display: flex; align-items: center; gap: 10px; padding: 8px 0; }
  .nav-links .lang-grid a::after { display: none; }
  .nav-links .lang-grid a.on { color: var(--c1); }
  .lang { margin-inline-start: auto; }
  .nav { gap: 12px; }
  .lang-btn span { display: none; }
  .brand-word { font-size: 1rem; }
  .nav.open .nav-links { opacity: 1; visibility: visible; }
  .nav.open { background: transparent; backdrop-filter: none; border-color: transparent; }
  .row2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .ba-big { aspect-ratio: 4 / 3; }
  .ba-knob { width: 46px; height: 46px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .specbar-grid { grid-template-columns: 1fr 1fr; }
  .specbar-grid div { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero { padding-bottom: 100px; }
  .ba-pair { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  [data-split] .w > span { transform: none; }
}
