/* فائقة الجودة — site styles */

@font-face { font-family: "Alexandria"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/alexandria-arabic.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Alexandria"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/alexandria-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/outfit-latin.woff2) format("woff2"); }

:root {
  --ink: #1c1e27;
  --ink-2: #242733;
  --ink-3: #2d3140;
  --paper: #f3f4f7;
  --paper-2: #e8eaf0;
  --on-ink: #f3f4f7;
  --on-ink-2: #a9afc2;
  --on-paper: #1c1e27;
  --on-paper-2: #5b6176;
  --c1: #7c7cc8;
  --c2: #6ea6cc;
  --c3: #5fcbdb;
  --grad: linear-gradient(90deg, var(--c1), var(--c2) 50%, var(--c3));
  --line-ink: rgba(255, 255, 255, .1);
  --line-paper: rgba(28, 30, 39, .12);
  --font: "Alexandria", system-ui, sans-serif;
  --wrap: min(1240px, 100% - 2 * var(--gutter));
  --gutter: clamp(16px, 4vw, 48px);
  --hdr-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 18px;
}
html[lang="en"] { --font: "Outfit", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--hdr-h); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0; background: var(--ink); color: var(--on-ink);
  font-family: var(--font); font-size: clamp(16px, 1.05vw + 11px, 18px); line-height: 1.75;
  overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html[lang="en"] body { line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ol, ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--c3); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--c2); color: var(--ink); }

.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .82em; font-weight: 500; letter-spacing: .02em; color: var(--on-ink-2);
}
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .74em; }
.eyebrow::before { content: ""; width: 34px; height: 2px; border-radius: 2px; background: var(--grad); flex: none; }

.btn {
  --b: var(--paper);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 600; font-size: .95em;
  color: var(--ink); background: var(--b); overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), transform .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad);
  transform: scaleX(0); transform-origin: var(--origin, left); transition: transform .5s var(--ease);
}
[dir="rtl"] .btn::before { --origin: right; }
.btn:hover::before { transform: scaleX(1); }
.btn:active { transform: scale(.97); }
.btn--ghost { background: transparent; color: var(--on-ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.btn--ghost:hover { color: var(--ink); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .86em; }

/* ---------- brand lockup ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--on-ink); }
.brand-mark { width: 46px; height: 39px; flex: none; }
.brand-txt { display: flex; flex-direction: column; gap: 5px; }
.brand-word { width: 116px; height: 20px; }
.brand-tag { width: 84px; height: 11px; opacity: .7; }
.brand-txt--en { gap: 2px; line-height: 1; }
.brand-en { font-family: "Outfit", sans-serif; font-weight: 600; letter-spacing: .12em; font-size: 15px; }
.brand-en-tag { font-family: "Outfit", sans-serif; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .65; }
.brand--lg .brand-mark { width: 74px; height: 62px; }
.brand--lg .brand-word { width: 176px; height: 30px; }
.brand--lg .brand-tag { width: 128px; height: 17px; }
.brand--lg .brand-en { font-size: 21px; }
.brand--lg .brand-en-tag { font-size: 12px; }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; transition: transform .5s var(--ease); }
.hdr::before {
  content: ""; position: absolute; inset: 0; background: rgba(28, 30, 39, .72);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-ink); opacity: 0; transition: opacity .4s;
}
.hdr.is-scrolled::before, .hdr.is-open::before { opacity: 1; }
.hdr.is-hidden:not(.is-open) { transform: translateY(-100%); }
.hdr-in { position: relative; height: var(--hdr-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hdr-nav { display: flex; gap: 6px; }
.hdr-link { position: relative; padding: 8px 14px; font-size: .9em; color: var(--on-ink-2); transition: color .3s; }
.hdr-link::after { content: ""; position: absolute; inset-inline: 14px; bottom: 4px; height: 1.5px; background: var(--grad); transform: scaleX(0); transition: transform .4s var(--ease); }
.hdr-link:hover { color: var(--on-ink); }
.hdr-link:hover::after, .hdr-link[aria-current]::after { transform: scaleX(1); }
.hdr-link[aria-current] { color: var(--on-ink); }
.mnav-link[aria-current] { color: var(--c3); }
.hdr-act { display: flex; align-items: center; gap: 14px; }
.lang { font-size: .86em; padding: 8px 4px; color: var(--on-ink-2); transition: color .3s; }
.lang:hover { color: var(--on-ink); }
html[lang="ar"] .lang { font-family: "Outfit", sans-serif; letter-spacing: .04em; }
html[lang="en"] .lang { font-family: "Alexandria", sans-serif; }
.burger { display: none; width: 44px; height: 44px; position: relative; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.burger span:not(.sr-only) { position: absolute; inset-inline-start: 13px; width: 18px; height: 1.6px; background: currentColor; transition: transform .4s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.hdr.is-open .burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.hdr.is-open .burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.mnav { position: fixed; inset: var(--hdr-h) 0 0; background: var(--ink); z-index: -1; }
.mnav[hidden] { display: none; }
.mnav-in { display: flex; flex-direction: column; padding-block: 28px; gap: 4px; }
.mnav-link {
  font-size: clamp(28px, 8vw, 40px); font-weight: 500; padding: 10px 0; border-bottom: 1px solid var(--line-ink);
  opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: calc(var(--i) * 60ms + 80ms);
}
.hdr.is-open .mnav-link { opacity: 1; transform: none; }
.mnav-lang { margin-top: 22px; color: var(--on-ink-2); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--hdr-h) + 40px) 0 110px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow {
  position: absolute; width: 900px; height: 900px; inset-inline-end: -260px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 203, 219, .22), rgba(124, 124, 200, .12) 40%, transparent 68%);
  filter: blur(10px);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line-ink) 1px, transparent 1px), linear-gradient(90deg, var(--line-ink) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000, transparent 75%);
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(24px, 5vw, 80px); }
.hero-title {
  margin-top: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em;
  font-size: clamp(38px, 5.6vw, 84px);
}
html[lang="en"] .hero-title { letter-spacing: -.025em; line-height: 1.05; font-weight: 500; }
.hero-lead { margin-top: 26px; max-width: 34em; color: var(--on-ink-2); font-size: 1.06em; }
.hero-btns { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { position: relative; justify-self: center; width: 100%; max-width: 520px; }
.hero-mark { width: 100%; height: auto; aspect-ratio: 940 / 790; filter: drop-shadow(0 30px 80px rgba(95, 203, 219, .18)); }
.hero-scroll {
  position: absolute; bottom: 30px; inset-inline-start: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: .74em; color: var(--on-ink-2);
}
[dir="rtl"] .hero-scroll { transform: translateX(50%); }
.hero-scroll i { width: 1px; height: 46px; background: linear-gradient(var(--c3), transparent); position: relative; overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; inset: 0; background: var(--paper); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- inner page hero ---------- */
.phero { position: relative; overflow: hidden; padding: calc(var(--hdr-h) + clamp(70px, 10vw, 140px)) 0 clamp(60px, 8vw, 110px); border-bottom: 1px solid var(--line-ink); }
.phero-bg { position: absolute; inset: 0; pointer-events: none; }
.phero-bg .hero-glow { width: 700px; height: 700px; top: -300px; }
.phero-mark { position: absolute; width: min(560px, 70vw); height: auto; aspect-ratio: 940 / 790; inset-inline-end: -60px; bottom: -120px; opacity: .1; }
.phero-in { position: relative; display: grid; gap: 22px; }
.crumbs { display: flex; gap: 10px; font-size: .82em; color: var(--on-ink-2); }
.crumbs a:hover { color: var(--on-ink); }
.crumbs [aria-current] { color: var(--c3); }
.phero-title { font-size: clamp(44px, 7vw, 104px); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
html[lang="en"] .phero-title { line-height: 1; font-weight: 500; letter-spacing: -.03em; }
.phero-lead { max-width: 38em; color: var(--on-ink-2); font-size: 1.08em; }

/* ---------- small pieces ---------- */
.ico, .ico-arrow { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .ico-arrow { transform: scaleX(-1); }
.btn small { font-size: .78em; opacity: .6; font-weight: 400; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--c3); padding-block: 6px; }
.sec--light .link-arrow { color: #3d7fa6; }
.link-arrow .ico-arrow { transition: transform .4s var(--ease); }
.link-arrow:hover .ico-arrow { transform: translateX(5px); }
[dir="rtl"] .link-arrow:hover .ico-arrow { transform: scaleX(-1) translateX(5px); }
.sec-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; max-width: none; }
.sec-head-txt { display: grid; gap: 18px; max-width: 760px; }
.about-side { display: grid; gap: 18px; justify-items: start; }

/* ---------- about page ---------- */
.story-in { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.story-text { display: grid; gap: 22px; }
.story-text p { color: var(--on-ink-2); font-size: 1.05em; max-width: 40em; }
.story-text p:last-child { color: var(--on-ink); font-weight: 500; }
.sister { position: sticky; top: calc(var(--hdr-h) + 30px); display: grid; gap: 12px; justify-items: start; padding: 34px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-ink); overflow: hidden; }
.sister::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); }
.sister-label { font-size: .8em; color: var(--on-ink-2); }
.sister h3 { font-size: 1.25em; font-weight: 600; line-height: 1.5; }
.sister p { color: var(--on-ink-2); font-size: .95em; }
.about--scrub { padding-top: 0; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
.vm-card { position: relative; display: grid; gap: 16px; align-content: end; min-height: 380px; padding: clamp(30px, 4vw, 52px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line-paper); overflow: hidden; }
.vm-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); }
.vm-n { position: absolute; top: 22px; inset-inline-end: 30px; font-family: "Outfit", sans-serif; font-weight: 600; font-size: 110px; line-height: 1; color: var(--c2); opacity: .16; }
.vm-t { font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; }
.vm-card p { color: var(--on-paper-2); font-size: 1.05em; }

/* ---------- projects page ---------- */
.prj--page { padding-top: clamp(60px, 8vw, 110px); }
.prj-all { display: none; margin-top: 48px; }

/* ---------- closing band ---------- */
.ct-btns { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.ct-more { margin-top: 8px; }

/* ---------- contact page ---------- */
.ctp-in { display: grid; grid-template-columns: 1.4fr .8fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.ctp .ct-list { margin-top: 0; justify-content: flex-start; }
.ctp .ct-item { flex: 1 1 260px; }
.ctp .ct-item--wide { flex-basis: 100%; max-width: none; }
.ctp-side { display: grid; gap: 16px; }
.ctp-side .btn { width: 100%; }
.ctp-legal { display: grid; gap: 4px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line-ink); color: var(--on-ink); }
.ctp-legal span { font-size: .8em; color: var(--on-ink-2); }

/* ---------- word split ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .22em .06em .3em; margin: -.22em -.06em -.3em; }
.wi { display: inline-block; will-change: transform; }

/* ---------- marquee ---------- */
.mq { position: relative; overflow: hidden; border-block: 1px solid var(--line-ink); background: var(--ink-2); padding: 22px 0; direction: ltr; }
.mq-track { display: flex; width: max-content; align-items: center; gap: 34px; padding-inline-end: 34px; }
.mq-item { font-size: clamp(22px, 2.6vw, 36px); font-weight: 500; white-space: nowrap; color: var(--on-ink); }
html[lang="ar"] .mq-item { direction: rtl; }
.mq-dot { font-size: 14px; color: var(--c3); }

/* ---------- sections ---------- */
.sec { position: relative; padding-block: clamp(90px, 13vw, 180px); }
.sec--light { background: var(--paper); color: var(--on-paper); }
.sec--light .eyebrow { color: var(--on-paper-2); }
.sec-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(48px, 7vw, 90px); }
.sec-title { font-size: clamp(30px, 4vw, 58px); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
html[lang="en"] .sec-title { line-height: 1.1; font-weight: 500; letter-spacing: -.02em; }

/* about */
.about-in { display: grid; gap: 34px; }
.about-statement { font-size: clamp(26px, 3.6vw, 52px); font-weight: 500; line-height: 1.55; max-width: 22em; }
html[lang="en"] .about-statement { line-height: 1.3; letter-spacing: -.015em; }
.about-statement .sw { color: rgba(243, 244, 247, .16); transition: color .2s; }
.no-js .about-statement .sw, .about-statement .sw.on { color: var(--on-ink); }
.about-foot { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: 40px; align-items: start; margin-top: 30px; }
.about-body { color: var(--on-ink-2); }
.line { display: block; height: 1px; background: var(--grad); margin-top: 16px; transform-origin: var(--origin, left); }
[dir="rtl"] .line { --origin: right; }

/* services */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-paper); }
.svc-card {
  position: relative; padding: 38px 34px 44px; min-height: 300px;
  border-bottom: 1px solid var(--line-paper); border-inline-end: 1px solid var(--line-paper);
  display: flex; flex-direction: column; gap: 14px; overflow: hidden; isolation: isolate;
}
.svc-card:nth-child(3n) { border-inline-end: 0; }
.svc-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: translateY(101%); transition: transform .6s var(--ease);
}
.svc-card::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: var(--origin, left); transition: transform .6s var(--ease); }
[dir="rtl"] .svc-card::after { --origin: right; }
.svc-num { font-family: "Outfit", sans-serif; font-size: .8em; color: var(--on-paper-2); letter-spacing: .1em; transition: color .5s; }
.svc-ico { width: 54px; height: 54px; color: var(--c2); margin: 14px 0 10px; transition: color .5s, transform .6s var(--ease); }
.svc-title { font-size: 1.28em; font-weight: 600; line-height: 1.4; transition: color .5s; }
.svc-desc { color: var(--on-paper-2); font-size: .95em; transition: color .5s; }
@media (hover: hover) {
  .svc-card:hover::before { transform: none; }
  .svc-card:hover::after { transform: scaleX(1); }
  .svc-card:hover .svc-title { color: var(--on-ink); }
  .svc-card:hover .svc-desc, .svc-card:hover .svc-num { color: var(--on-ink-2); }
  .svc-card:hover .svc-ico { color: var(--c3); transform: translateY(-4px); }
}

/* projects */
.prj { background: var(--ink); }
.prj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(20px, 2.6vw, 36px); }
.prj-card { display: grid; gap: 22px; align-content: start; }
.prj-card--wide { grid-column: 1 / -1; }
.prj-open { position: relative; display: block; width: 100%; text-align: start; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.prj-media { display: block; height: 460px; overflow: hidden; background: var(--ink-2); border-radius: var(--radius); }
.prj-card--wide .prj-media { height: 440px; }
.prj-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 1.2s var(--ease), filter .6s; will-change: transform; }
.prj-open::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); background: linear-gradient(180deg, transparent 55%, rgba(28, 30, 39, .55)); pointer-events: none; }
.prj-count {
  position: absolute; z-index: 1; bottom: 18px; inset-inline-start: 18px; padding: 6px 14px; border-radius: 999px;
  font-size: .78em; background: rgba(28, 30, 39, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line-ink);
}
.prj-plus {
  position: absolute; z-index: 1; top: 18px; inset-inline-end: 18px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--paper); transform: scale(.6); opacity: 0; transition: transform .5s var(--ease), opacity .4s;
}
.prj-plus::before, .prj-plus::after { content: ""; position: absolute; inset: 50% 15px auto; height: 1.6px; margin-top: -.8px; background: var(--ink); }
.prj-plus::after { transform: rotate(90deg); }
@media (hover: hover) {
  .prj-open:hover .prj-media img { transform: scale(1.06); }
  .prj-open:hover .prj-plus { transform: none; opacity: 1; }
}
.prj-body { display: grid; gap: 6px; padding-inline: 4px; }
.prj-num { font-family: "Outfit", sans-serif; font-size: .78em; letter-spacing: .1em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prj-title { font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; line-height: 1.4; }
html[lang="en"] .prj-title { line-height: 1.25; font-weight: 500; }
.prj-meta { color: var(--on-ink-2); font-size: .9em; }
.prj-sep { margin-inline: 10px; color: var(--c3); }
.prj-note { color: var(--on-ink-2); font-size: .92em; max-width: 46em; }
.prj-more { margin-top: clamp(60px, 8vw, 110px); border-top: 1px solid var(--line-ink); padding-top: 34px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; }
.prj-more-t { font-size: 1.15em; font-weight: 500; color: var(--on-ink-2); }
.prj-more ul { display: grid; }
.prj-more li { display: grid; gap: 2px; padding: 18px 0; border-bottom: 1px solid var(--line-ink); }
.prj-more li:first-child { padding-top: 0; }
.prj-more-name { font-weight: 500; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(16, 17, 23, .96); display: grid; grid-template-rows: auto 1fr; opacity: 0; transition: opacity .35s; }
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }
.lb-top { display: flex; align-items: center; gap: 18px; padding: 16px var(--gutter); }
.lb-t { flex: 1; font-weight: 500; line-height: 1.4; }
.lb-count { font-family: "Outfit", sans-serif; color: var(--on-ink-2); font-size: .9em; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 0 clamp(16px, 7vw, 110px) 28px; min-height: 0; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 110px); max-height: calc(100svh - 110px); width: auto; height: auto; border-radius: 10px; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid var(--line-ink); transition: background .3s; }
.lb-btn:hover { background: rgba(255, 255, 255, .16); }
.lb-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lb-nav { position: absolute; top: 50%; margin-top: -24px; }
.lb-prev { inset-inline-start: 18px; }
.lb-next { inset-inline-end: 18px; }
[dir="rtl"] .lb-nav svg { transform: scaleX(-1); }
.lb-single .lb-nav, .lb-single .lb-count { display: none; }

/* process */
.proc { position: relative; background: var(--ink); overflow: hidden; }
.proc-pin { padding-block: clamp(90px, 12vw, 160px); }
.proc-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(44px, 6vw, 80px); }
.proc-track { display: flex; gap: 24px; padding-inline: max(var(--gutter), (100% - 1240px) / 2); width: max-content; }
.proc-step {
  position: relative; width: min(420px, 78vw); height: 330px; flex: none; padding: 34px;
  border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-ink);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; overflow: hidden;
}
.proc-step::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--grad); opacity: .7; }
.proc-n {
  position: absolute; top: 18px; inset-inline-end: 26px; font-family: "Outfit", sans-serif; font-weight: 600;
  font-size: 120px; line-height: 1; letter-spacing: -.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .22;
}
.proc-step h3 { font-size: 1.4em; font-weight: 600; line-height: 1.35; }
.proc-step p { color: var(--on-ink-2); }
.proc-bar { margin-top: 44px; height: 2px; background: var(--line-ink); border-radius: 2px; overflow: hidden; }
.proc-bar span { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: var(--origin, left); }
[dir="rtl"] .proc-bar span { --origin: right; }
.proc:not(.is-pinned) .proc-track { width: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-inline: 0; margin-inline: auto; max-width: var(--wrap); width: var(--wrap); }
.proc:not(.is-pinned) .proc-step { width: auto; }
.proc:not(.is-pinned) .proc-bar { display: none; }

/* values */
.vals-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 100px); align-items: start; }
.vals-in .sec-head { position: sticky; top: calc(var(--hdr-h) + 40px); margin-bottom: 0; }
.vals-list { display: grid; }
.val { padding: 34px 0; border-top: 1px solid var(--line-paper); display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; }
.val:last-child { border-bottom: 1px solid var(--line-paper); }
.val h3 { font-size: 1.3em; font-weight: 600; line-height: 1.4; }
.val p { color: var(--on-paper-2); }

/* contact */
.ct { overflow: hidden; text-align: center; }
.ct-bg { position: absolute; inset: auto 0 -14%; display: flex; justify-content: center; pointer-events: none; opacity: .14; }
.ct-mark { width: min(1100px, 130%); height: auto; aspect-ratio: 940 / 790; }
.ct-in { position: relative; display: grid; justify-items: center; gap: 22px; }
.ct-title { font-size: clamp(36px, 6vw, 92px); font-weight: 600; line-height: 1.25; max-width: 14em; }
html[lang="en"] .ct-title { line-height: 1.05; font-weight: 500; letter-spacing: -.025em; }
.ct-lead { color: var(--on-ink-2); max-width: 32em; }
.ct-list { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.ct-item {
  display: grid; gap: 2px; padding: 18px 26px; min-width: 220px; border-radius: 16px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-ink); transition: border-color .3s, background .3s;
}
.ct-item:hover { border-color: var(--c2); background: rgba(255, 255, 255, .07); }
.ct-item--wide { flex-basis: 100%; max-width: 680px; }
.ct-item b { overflow-wrap: anywhere; justify-self: start; }
.ct-item span { font-size: .8em; color: var(--on-ink-2); }
.ct-item b { font-weight: 500; }
.ct-pending { margin-top: 20px; padding: 14px 24px; border-radius: 999px; border: 1px dashed rgba(255, 255, 255, .25); color: var(--on-ink-2); font-size: .9em; }

/* footer */
.ftr { background: var(--ink); border-top: 1px solid var(--line-ink); }
.ftr-in { display: grid; grid-template-columns: 1.1fr .9fr 1.1fr; align-items: start; gap: 40px; padding-block: 64px 44px; }
.ftr-brand { display: grid; gap: 22px; justify-items: start; }
.ftr-profile { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-ink); font-size: .88em; color: var(--on-ink); transition: border-color .3s; }
.ftr-profile:hover { border-color: var(--c2); }
.ftr-profile small { color: var(--on-ink-2); }
.ftr-nav { display: grid; gap: 10px; color: var(--on-ink-2); font-size: .92em; justify-items: start; }
.ftr-contact { display: grid; gap: 10px; color: var(--on-ink-2); font-size: .92em; justify-items: start; }
.ftr-contact a:hover { color: var(--on-ink); }
.ftr-nav a:hover { color: var(--on-ink); }
.ftr-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px 30px; border-top: 1px solid var(--line-ink); font-size: .82em; color: var(--on-ink-2); }
.ftr-top:hover { color: var(--on-ink); }

/* 404 */
.nf-body { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; }
.nf { width: var(--wrap); max-width: 560px; text-align: center; display: grid; justify-items: center; gap: 16px; padding-block: 60px; }
.nf-mark svg { width: 160px; height: 135px; }
.nf-code { font-family: "Outfit", sans-serif; font-size: 72px; font-weight: 600; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf-t { font-size: 28px; }
.nf p { color: var(--on-ink-2); }
.nf-en { margin-top: 24px; font-family: "Outfit", sans-serif; font-size: 14px; }
.nf-en a { text-decoration: underline; }

/* ---------- motion initial states (only when JS runs) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js .hero-mark .mk-fill, .js .hero-mark .mk-stars { opacity: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hdr-nav, .hdr-cta { display: none; }
  .burger { display: block; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-card:nth-child(3n) { border-inline-end: 1px solid var(--line-paper); }
  .svc-card:nth-child(2n) { border-inline-end: 0; }
  .proc:not(.is-pinned) .proc-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vals-in { grid-template-columns: 1fr; }
  .ftr-in { grid-template-columns: 1fr 1fr; }
  .ftr-brand { grid-column: 1 / -1; }
  .prj-media { height: 360px; }
  .vals-in .sec-head { position: static; }
}
@media (max-width: 760px) {
  :root { --hdr-h: 66px; }
  .brand-mark { width: 40px; height: 34px; }
  .brand-word { width: 100px; height: 17px; }
  .brand-tag { width: 72px; height: 10px; }
  .lang { display: none; }
  .hero { padding-bottom: 100px; align-items: flex-start; }
  .hero-in { grid-template-columns: 1fr; gap: 10px; }
  .hero-art { order: -1; width: 62%; max-width: 280px; height: 200px; justify-self: start; }
  .hero-mark { height: 200px; width: auto; }
  .hero-btns .btn { flex: 1 1 auto; }
  .hero-scroll { display: none; }
  .hero { padding-bottom: 64px; }
  .about-foot { grid-template-columns: 1fr; gap: 22px; }
  .svc-grid { grid-template-columns: 1fr; }
  .prj-grid { grid-template-columns: 1fr; gap: 44px; }
  .prj-media, .prj-card--wide .prj-media { height: 260px; }
  .prj-more { grid-template-columns: 1fr; gap: 18px; }
  .lb-nav { top: auto; bottom: 18px; margin-top: 0; }
  .lb-stage { padding: 0 12px 84px; }
  .lb-stage img { max-height: calc(100svh - 170px); }
  .svc-card { border-inline-end: 0 !important; min-height: 0; padding: 30px 4px 34px; }
  .proc:not(.is-pinned) .proc-track { grid-template-columns: 1fr; }
  .proc-step { height: 260px; }
  .val { grid-template-columns: 1fr; gap: 8px; padding: 26px 0; }
  .ct-item { min-width: 0; width: 100%; }
  .ftr-in { grid-template-columns: 1fr; gap: 30px; }
  .story-in, .ctp-in, .vm-grid { grid-template-columns: 1fr; }
  .sister { position: static; }
  .vm-card { min-height: 300px; }
  .ct-btns .btn { width: 100%; }
  .sec-head--row .link-arrow { display: none; }
  .prj-all { display: block; }
  .prj-all .btn { width: 100%; }
  .phero-mark { width: 300px; inset-inline-end: -80px; bottom: -60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero-mark .mk-fill, .js .hero-mark .mk-stars { opacity: 1; }
  .about-statement .sw { color: var(--on-ink); }
}
