/* ==========================================================
   Alpha CGI — main stylesheet
   Palette: ~80% black, ~20% orange
   ========================================================== */
@font-face { font-family: "Vazirmatn"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/Vazirmatn-ExtraBold.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/Vazirmatn-Black.woff2") format("woff2"); }

:root {
  --bg: #0A0A0A;
  --bg-2: #111111;
  --bg-3: #171717;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #F2F2F2;
  --muted: #9A9A9A;
  --orange: #F58634;
  --orange-2: #FF9D55;
  --orange-dim: rgba(245, 134, 52, .14);
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --font: "Vazirmatn", system-ui, sans-serif;
  --font-en: "Space Grotesk", "Vazirmatn", sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--orange); color: #000; }

.container { width: min(1240px, 100% - 40px); margin-inline: auto; }

/* subtle film grain */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 999;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-content: center; gap: 28px; justify-items: center;
  background: var(--bg);
  transition: opacity .6s var(--ease), visibility .6s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__logo { width: 84px; animation: pulse 1.4s ease-in-out infinite; }
.preloader__bar { width: 160px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.preloader__bar span { display: block; height: 100%; width: 40%; background: var(--orange); animation: load 1.1s var(--ease) infinite; }
@keyframes load { from { transform: translateX(260%); } to { transform: translateX(-160%); } }
@keyframes pulse { 50% { transform: scale(.92); opacity: .7; } }

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 998;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1.5px solid var(--orange); border-radius: 50%;
  pointer-events: none; opacity: 0;
  transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background .25s, opacity .3s;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-hover { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: var(--orange-dim); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: #0A0A0A; box-shadow: 0 10px 30px -10px rgba(245, 134, 52, .6); }
.btn--primary:hover { background: var(--orange-2); box-shadow: 0 16px 40px -10px rgba(245, 134, 52, .75); }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn--dark { background: #0A0A0A; color: var(--text); }
.btn--dark:hover { background: #000; }
.btn--sm { padding: 9px 20px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 16px;
  font-family: var(--font-en);
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.accent { color: var(--orange); }
/* Outline text. Persian glyphs overlap where letters join, so a plain text-stroke draws
   a seam on every letter. Painting the stroke first and the fill on top hides the inner
   seams and leaves one clean outline around the whole word. */
.outline {
  --outline-fill: var(--bg);
  color: var(--outline-fill);
  -webkit-text-stroke: 3px var(--text);
  paint-order: stroke fill;
}

.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section__head { max-width: 900px; margin-bottom: clamp(40px, 6vw, 64px); }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__title { margin: 0 0 16px; font-size: clamp(32px, 5vw, 56px); line-height: 1.3; font-weight: 900; letter-spacing: -.01em; }
.section__lead { margin: 0; color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(10, 10, 10, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header__logo { display: inline-flex; align-items: center; gap: 12px; }
.header__logo img { height: 44px; width: auto; }
.header__name { font-family: var(--font-en); font-weight: 700; font-size: 18px; letter-spacing: .08em; color: var(--text); direction: ltr; }
.header__name b { color: var(--orange); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav__link { position: relative; font-size: 15px; color: #cfcfcf; transition: color .3s; }
.nav__link::after { content: ""; position: absolute; right: 0; bottom: -4px; width: 0; height: 2px; background: var(--orange); transition: width .35s var(--ease); }
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 18px; height: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h) + 40px) 0 40px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__glow { position: absolute; width: 900px; height: 900px; left: -300px; top: 10%; background: radial-gradient(circle, rgba(245, 134, 52, .22), transparent 60%); filter: blur(30px); pointer-events: none; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 40px; }
.hero__title { margin: 0 0 24px; font-size: clamp(38px, 6.4vw, 84px); line-height: 1.25; font-weight: 900; letter-spacing: -.02em; }
.hero__lead { max-width: 560px; margin: 0 0 36px; color: var(--muted); font-size: clamp(16px, 1.7vw, 19px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__content .reveal:nth-child(2) { transition-delay: .1s; }
.hero__content .reveal:nth-child(3) { transition-delay: .2s; }
.hero__content .reveal:nth-child(4) { transition-delay: .3s; }

.hero__visual { display: grid; place-items: center; transition-delay: .25s; }
.orbit { position: relative; width: min(440px, 80vw); aspect-ratio: 1; display: grid; place-items: center; }
.orbit__ring { position: absolute; inset: 0; border: 1px solid var(--line-2); border-radius: 50%; }
.orbit__ring--1 { animation: spin 26s linear infinite; border-top-color: var(--orange); }
.orbit__ring--2 { inset: 13%; animation: spin 18s linear infinite reverse; border-left-color: var(--orange); border-style: dashed; }
.orbit__ring--3 { inset: 26%; background: radial-gradient(circle, rgba(245, 134, 52, .12), transparent 70%); }
.orbit__logo { width: 38%; position: relative; filter: drop-shadow(0 0 40px rgba(245, 134, 52, .45)); animation: float 6s ease-in-out infinite; }
.orbit__tag { position: absolute; font-family: var(--font-en); font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 999px; background: rgba(17, 17, 17, .85); border: 1px solid var(--line-2); backdrop-filter: blur(6px); animation: float 5s ease-in-out infinite; }
.orbit__tag--a { top: 8%; left: 2%; color: var(--orange); }
.orbit__tag--b { bottom: 14%; left: -2%; animation-delay: -1.6s; }
.orbit__tag--c { top: 46%; right: -4%; animation-delay: -3.2s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-12px); } }

.hero__stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 7vw, 80px); border-top: 1px solid var(--line); }
.stat { padding: 26px 8px 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.stat strong { font-size: clamp(30px, 4vw, 46px); font-weight: 900; color: var(--text); line-height: 1; }
.stat span { color: var(--muted); font-size: 14px; }
.stat + .stat { border-right: 1px solid var(--line); padding-right: 24px; }

.scroll-hint { display: none; position: absolute; left: 50%; bottom: 20px; width: 24px; height: 40px; margin-left: -12px; border: 1.5px solid var(--line-2); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; background: var(--orange); border-radius: 2px; animation: scrollHint 1.8s ease-in-out infinite; }
@keyframes scrollHint { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--orange); color: #0A0A0A; padding: 16px 0; transform: rotate(-1.5deg) scale(1.02); margin: 10px 0; }
.marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 40s linear infinite; font-weight: 900; font-size: clamp(18px, 2.4vw, 26px); white-space: nowrap; }
.marquee__track span:nth-child(4n+1) { font-family: var(--font-en); letter-spacing: .02em; }
.marquee__track i { font-style: normal; font-size: .7em; }
@keyframes marquee { to { transform: translateX(50%); } }

/* ---------- Services ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  position: relative; padding: 36px 32px 34px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .4s, transform .5s var(--ease);
}
.pillar::before { content: ""; position: absolute; inset: auto -40% -60% auto; width: 300px; height: 300px; background: radial-gradient(circle, rgba(245, 134, 52, .18), transparent 65%); opacity: 0; transition: opacity .5s; }
.pillar:hover { border-color: rgba(245, 134, 52, .5); transform: translateY(-6px); }
.pillar:hover::before { opacity: 1; }
.pillar--featured { border-color: rgba(245, 134, 52, .35); }
.pillar__num { position: absolute; top: 24px; left: 28px; font-family: var(--font-en); font-weight: 700; font-size: 14px; color: var(--muted); }
.pillar__icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 16px; background: var(--orange-dim); margin-bottom: 26px; }
.pillar__icon svg { width: 32px; height: 32px; fill: none; stroke: var(--orange); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { margin: 0; font-size: 26px; font-weight: 800; }
.pillar__en { margin: 0 0 22px; font-family: var(--font-en); font-size: 13px; color: var(--orange); letter-spacing: .05em; }
.pillar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pillar li { position: relative; padding: 8px 22px 8px 0; color: #cfcfcf; border-bottom: 1px dashed var(--line); font-size: 15px; }
.pillar li:last-child { border-bottom: 0; }
.pillar li::before { content: ""; position: absolute; right: 2px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border: 2px solid var(--orange); border-radius: 2px; transform: rotate(45deg); }

.mini-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.mini { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); transition: border-color .3s; }
.mini:hover { border-color: rgba(245, 134, 52, .4); }
.mini__icon { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--orange); color: #0A0A0A; }
.mini__icon svg { width: 22px; height: 22px; }
.mini h4 { margin: 0 0 2px; font-size: 17px; }
.mini p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ---------- Portfolio ---------- */
.work { background: var(--bg-2); border-block: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 14px; color: #cfcfcf; transition: all .3s var(--ease); }
.filter:hover { border-color: var(--orange); color: var(--orange); }
.filter.is-active { background: var(--orange); border-color: var(--orange); color: #0A0A0A; font-weight: 700; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; grid-auto-flow: dense; gap: 18px; }
.card {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--radius);
  background: var(--bg-3); cursor: pointer;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.card--wide { grid-column: span 2; }
.card--tall { grid-row: span 2; }
.card.is-hidden { display: none; }
.card.is-filtering { opacity: 0; transform: scale(.96); }
.card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); filter: saturate(.85) brightness(.9); transition: transform 1s var(--ease), filter .6s; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .1) 55%, transparent 100%); transition: opacity .5s; }
.card figcaption { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 24px; transform: translateY(14px); transition: transform .5s var(--ease); }
.card h3 { margin: 6px 0 0; font-size: 20px; font-weight: 800; }
.card p { margin: 0; color: #bdbdbd; font-size: 14px; opacity: 0; transition: opacity .4s; }
.card:hover img { transform: scale(1.08); filter: saturate(1.05) brightness(1); }
.card:hover figcaption { transform: none; }
.card:hover p { opacity: 1; }
.card:hover { outline: 1px solid rgba(245, 134, 52, .55); outline-offset: -1px; }
.tag { display: inline-block; padding: 3px 12px; font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #0A0A0A; background: var(--orange); border-radius: 999px; }

/* ---------- Before / After ---------- */
.breakdown__inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 12px; }
.checks li::before { content: "✓"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--orange-dim); color: var(--orange); font-weight: 900; font-size: 13px; }

.compare { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); user-select: none; direction: ltr; }
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(245, 134, 52, .28) 1px, transparent 1px), linear-gradient(90deg, rgba(245, 134, 52, .28) 1px, transparent 1px); background-size: 34px 34px; mix-blend-mode: multiply; }
.compare__label { position: absolute; top: 16px; padding: 5px 12px; border-radius: 999px; font-family: var(--font-en); font-size: 11px; font-weight: 700; letter-spacing: .08em; background: rgba(10, 10, 10, .75); backdrop-filter: blur(6px); pointer-events: none; }
.compare__label--before { left: 16px; }
.compare__label--after { right: 16px; color: var(--orange); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--orange); pointer-events: none; }
.compare__handle span { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px rgba(245, 134, 52, .25); }
.compare__handle span::before, .compare__handle span::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border: 6px solid transparent; }
.compare__handle span::before { left: 8px; border-right-color: #0A0A0A; }
.compare__handle span::after { right: 8px; border-left-color: #0A0A0A; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }

/* ---------- Process ---------- */
.process { background: var(--bg-2); border-block: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 32px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); transition: border-color .3s, transform .4s var(--ease); }
.step:hover { border-color: rgba(245, 134, 52, .45); transform: translateY(-4px); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 50%; left: -21px; width: 22px; height: 1px; background: var(--orange); }
.step__n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--orange); color: var(--orange); font-weight: 900; font-size: 22px; margin-bottom: 22px; }
.step h3 { margin: 0 0 8px; font-size: 20px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.steps .step:nth-child(2) { transition-delay: .08s; }
.steps .step:nth-child(3) { transition-delay: .16s; }
.steps .step:nth-child(4) { transition-delay: .24s; }

/* ---------- Credits ---------- */
.credits__list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.credit { position: relative; padding: 30px 26px 30px 70px; border-bottom: 1px solid var(--line); overflow: hidden; transition: background .5s var(--ease); }
.credit:not(:nth-child(3n+1)) { border-right: 1px solid var(--line); }
/* a short last row: the last card stretches over the empty cells */
.credit:last-child:nth-child(3n+1) { grid-column: span 3; }
.credit:last-child:nth-child(3n+2) { grid-column: span 2; }
.credit::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 3px; background: var(--orange); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease); }
.credit > * { transition: transform .5s var(--ease), color .5s var(--ease); }
.credit:hover { background: linear-gradient(270deg, var(--orange-dim), transparent 75%); }
.credit:hover::before { transform: scaleY(1); }
.credit:hover h3, .credit:hover p, .credit:hover .credit__type { transform: translateX(-8px); }
.credit:hover h3 { color: var(--orange); }
.credit:hover .credit__year { color: var(--text); }
.credit__type { display: block; font-size: 13px; color: var(--orange); }
.credit h3 { margin: 4px 0; font-size: 22px; font-weight: 800; }
.credit p { margin: 0; color: var(--muted); font-size: 14px; }
.credit__year { position: absolute; left: 24px; top: 30px; font-weight: 700; color: #555; }

/* ---------- About ---------- */
.about__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__media { position: relative; }
.about__media > img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; filter: saturate(.85); }
.about__media::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 1.5px solid var(--orange); border-radius: var(--radius); z-index: -1; }
.about__badge { position: absolute; left: -20px; bottom: 40px; display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-radius: 16px; background: rgba(17, 17, 17, .9); border: 1px solid var(--line-2); backdrop-filter: blur(8px); font-family: var(--font-en); font-size: 13px; line-height: 1.4; color: var(--muted); }
.about__badge img { width: 44px; }
.about__badge b { font-family: var(--font); font-size: 22px; color: var(--text); }
.about__text p { color: #c7c7c7; text-align: justify; text-justify: inter-word; text-align-last: right; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; direction: ltr; justify-content: flex-end; }
.tools span { padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--font-en); font-size: 13px; color: #cfcfcf; transition: all .3s; }
.tools span:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--orange); color: #0A0A0A; padding: clamp(48px, 7vw, 80px) 0; position: relative; overflow: hidden; }
.cta-band::before { content: "CGI"; position: absolute; left: -2%; top: 50%; transform: translateY(-50%); font-family: var(--font-en); font-weight: 700; font-size: 280px; line-height: 1; opacity: .09; pointer-events: none; }
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-size: clamp(26px, 3.6vw, 42px); font-weight: 900; line-height: 1.4; }
.cta-band h2 span { display: block; font-weight: 400; }

/* ---------- Contact ---------- */
.contact__inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .3s; }
.contact__list li:hover { border-color: rgba(245, 134, 52, .4); }
.contact__list small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; }
.contact__list a, .contact__list span:not(.ci) { font-weight: 700; }
.ci { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--orange-dim); color: var(--orange); }
.ci svg { width: 20px; height: 20px; }

.form { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; font-size: 14px; color: #cfcfcf; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--bg); outline: none;
  transition: border-color .3s, box-shadow .3s; resize: vertical;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--orange) 50%), linear-gradient(135deg, var(--orange) 50%, transparent 50%); background-position: 18px 50%, 24px 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-dim); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff4d4d; }
.form__note { margin: 0; min-height: 1.5em; font-size: 14px; color: var(--orange); text-align: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; }
.footer__logo { height: 38px; width: auto; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); color: #cfcfcf; transition: all .3s; }
.footer__social a:hover { color: #0A0A0A; background: var(--orange); border-color: var(--orange); }
.footer__social svg { width: 18px; height: 18px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; color: var(--muted); }
.footer__nav a:hover { color: var(--orange); }
.footer__copy { margin: 0; color: #666; font-size: 13px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 60px 80px; background: rgba(5, 5, 5, .94); backdrop-filter: blur(8px); animation: fade .35s var(--ease); }
.lightbox[hidden] { display: none; }
.lightbox__fig { margin: 0; max-width: 1200px; width: 100%; }
.lightbox__fig img { max-height: 76vh; width: auto; margin-inline: auto; border-radius: var(--radius-sm); }
.lightbox__fig figcaption { margin-top: 16px; text-align: center; color: var(--muted); }
.lightbox__fig figcaption b { color: var(--text); margin-left: 8px; }
.lightbox__close, .lightbox__nav { position: absolute; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(17, 17, 17, .8); cursor: pointer; font-size: 22px; transition: all .3s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--orange); color: #0A0A0A; border-color: var(--orange); }
.lightbox__close { top: 20px; left: 20px; font-size: 18px; }
.lightbox__prev { right: 20px; top: 50%; margin-top: -25px; font-size: 30px; }
.lightbox__next { left: 20px; top: 50%; margin-top: -25px; font-size: 30px; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .mini-services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .credits__list { grid-template-columns: repeat(2, 1fr); }
  .credit:not(:nth-child(3n+1)) { border-right: 0; }
  .credit:nth-child(even) { border-right: 1px solid var(--line); }
  .credit:last-child:nth-child(n) { grid-column: auto; }
  .credit:last-child:nth-child(odd) { grid-column: span 2; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .header__logo img { height: 36px; }
  .header__name { font-size: 15px; }
  .burger { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 24px;
    background: rgba(10, 10, 10, .97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: all .35s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 16px; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .orbit { width: min(260px, 64vw); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-right: 0; padding-right: 8px; }
  .scroll-hint { display: none; }

  .pillars { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .breakdown__inner, .about__inner, .contact__inner { grid-template-columns: 1fr; }
  .about__media { max-width: 520px; }
  .about__badge { left: 12px; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .mini-services, .steps, .credits__list { grid-template-columns: 1fr; }
  .credit:nth-child(even) { border-right: 0; }
  .credit:last-child:nth-child(n) { grid-column: auto; }
  .grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .card--wide { grid-column: auto; }
  .card--tall { grid-row: auto; }
  .card p { opacity: 1; }
  .card figcaption { transform: none; }
  .form__row { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 auto; }
  .filters { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .filter { flex: none; }
  .about__media::before { inset: 14px -10px -14px 10px; }
  .lightbox { padding: 70px 12px; }
  .lightbox__nav { top: auto; bottom: 16px; margin: 0; }
  .footer__inner { flex-direction: column; text-align: center; }
  .cta-band::before { font-size: 160px; }
}

/* ---------- Video play badge on portfolio cards ---------- */
.card__play, .vcard__play {
  position: absolute; z-index: 3; top: 50%; left: 50%;
  width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%;
  background: rgba(10, 10, 10, .55); border: 1.5px solid rgba(255, 255, 255, .7);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .4s var(--ease), background .3s, border-color .3s;
}
.card__play::after, .vcard__play::after {
  content: ""; position: absolute; top: 50%; left: 50%; margin: -11px 0 0 -6px;
  border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff;
}
.card:hover .card__play, .vcard:hover .vcard__play { transform: scale(1.1); background: var(--orange); border-color: var(--orange); }
.card:hover .card__play::after, .vcard:hover .vcard__play::after { border-left-color: #0A0A0A; }

/* ---------- Videos section ---------- */
.vgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.vcard { grid-column: span 6; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); transition: border-color .4s, transform .5s var(--ease); }
.vcard[data-ratio="9:16"] { grid-column: span 4; grid-row: span 2; }
.vcard:hover { border-color: rgba(245, 134, 52, .5); transform: translateY(-4px); }
.vcard__media { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; cursor: pointer; flex: 1; }
.vcard[data-ratio="9:16"] .vcard__media { aspect-ratio: auto; min-height: 420px; }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.vcard:hover .vcard__media img { transform: scale(1.05); }
.vcard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55), transparent 50%); pointer-events: none; }
.vcard__play { border: 1.5px solid rgba(255, 255, 255, .7); cursor: pointer; }
.vcard__soon { position: absolute; z-index: 2; left: 16px; bottom: 16px; padding: 4px 12px; border-radius: 999px; background: rgba(10, 10, 10, .75); font-size: 13px; color: var(--muted); }
.vcard__body { padding: 20px 22px 22px; }
.vcard__body h3 { margin: 8px 0 2px; font-size: 19px; font-weight: 800; }
.vcard__body p { margin: 0; color: var(--muted); font-size: 14px; }
.vcard:not([data-ratio="9:16"]) { grid-column: span 4; }
.vgrid .vcard:first-child:not([data-ratio="9:16"]) { grid-column: span 8; }

/* ---------- Player modal (Plyr + HLS) ---------- */
.player { position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; align-content: center; gap: 14px; padding: 70px 24px 30px; background: rgba(5, 5, 5, .95); backdrop-filter: blur(10px); animation: fade .35s var(--ease); }
.player[hidden] { display: none; }
.player__box { width: min(1200px, 100%); aspect-ratio: 16 / 9; max-height: 80vh; border-radius: var(--radius-sm); overflow: hidden; background: #000; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9); }
.player__box.is-vertical { width: auto; height: min(80vh, 900px); aspect-ratio: 9 / 16; }
.player__box video { width: 100%; height: 100%; }
.player__title { margin: 0; color: var(--muted); font-size: 15px; }
.player .plyr { --plyr-color-main: var(--orange); --plyr-video-background: #000; --plyr-font-family: var(--font); width: 100%; height: 100%; }
.player .plyr__video-wrapper { height: 100%; }
.player .plyr__controls { direction: ltr; }
.player .plyr__menu__container { direction: ltr; }

/* ---------- Before / after tabs ---------- */
.compare-wrap { display: grid; gap: 14px; }
.compare__tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.compare__tab { display: grid; gap: 6px; min-width: 0; padding: 6px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; text-align: right; transition: border-color .3s, background .3s; }
.compare__tab img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; opacity: .6; transition: opacity .3s; }
.compare__tab span { font-size: 12px; color: var(--muted); line-height: 1.5; padding: 0 2px; }
.compare__tab:hover img, .compare__tab.is-active img { opacity: 1; }
.compare__tab.is-active { border-color: var(--orange); background: var(--orange-dim); }
.compare__tab.is-active span { color: var(--text); }

/* ---------- misc ---------- */
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.about__inner--solo { grid-template-columns: 1fr; max-width: 820px; }
.form__note.is-error { color: #ff6b6b; }
.form__note a { color: var(--orange); text-decoration: underline; }
.btn[disabled] { opacity: .6; pointer-events: none; }

@media (max-width: 900px) {
  .vcard, .vcard:not([data-ratio="9:16"]), .vgrid .vcard:first-child:not([data-ratio="9:16"]) { grid-column: span 12; }
  .vcard[data-ratio="9:16"] { grid-column: span 12; grid-row: auto; }
  .vcard[data-ratio="9:16"] .vcard__media { min-height: 0; aspect-ratio: 4 / 5; }
}
@media (min-width: 901px) and (max-width: 1080px) {
  .vcard:not([data-ratio="9:16"]), .vgrid .vcard:first-child:not([data-ratio="9:16"]) { grid-column: span 8; }
}

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