/* ==========================================================================
   Zephryx Labs · site styles
   ========================================================================== */

:root {
  --bg: #0a0b0b;
  --surface: #141516;
  --surface-2: #1a1b1d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f3f1;
  --muted: #8b8c90;
  --dim: #5a5b5f;
  --lime: #a8f04e;
  --green: #4be68a;
  --teal: #2fe0c4;
  --cyan: #28d7f0;
  --brand-gradient: linear-gradient(96deg, #28d7f0 0%, #2fe0c4 38%, #4be68a 70%, #a8f04e 100%);

  --gutter: clamp(16px, 2.5vw, 40px);
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 68px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--lime); color: #000; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container { padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 12vw, 160px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }

/* ---------- Type ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }

.display {
  font-size: clamp(34px, 4.6vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.h2 {
  font-size: clamp(30px, 3.4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.h3 {
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.lead { font-size: clamp(15px, 1.1vw, 17px); color: var(--muted); max-width: 34ch; line-height: 1.5; }
.muted { color: var(--muted); }

/* ---------- Links & buttons ---------- */

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; white-space: nowrap;
}
.link-arrow span { position: relative; }
.link-arrow span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform-origin: left; transition: transform .5s var(--ease);
}
.link-arrow:hover span::after { transform: scaleX(0); transform-origin: right; }
.link-arrow svg { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: 8px;
  background: var(--text); color: #0a0a0a; font-size: 14px; font-weight: 500;
  transition: background .3s, transform .3s var(--ease);
}
.btn:hover { background: var(--lime); }
.btn svg { width: 14px; height: 14px; }

.big-link {
  display: inline-flex; flex-direction: column; gap: 14px;
  font-size: clamp(22px, 2.2vw, 34px); letter-spacing: -0.03em; line-height: 1;
}
.big-link::after {
  content: ""; width: 22px; height: 2px; background: currentColor;
  transition: width .5s var(--ease);
}
.big-link:hover::after { width: 100%; }

/* ---------- Header ---------- */

.top-blur {
  position: fixed; inset: 0 0 auto 0; height: 110px; z-index: 40; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10,11,11,.92) 0%, rgba(10,11,11,.6) 45%, rgba(10,11,11,0) 100%);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 35%, transparent 100%);
}

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; }
.brand svg { width: 22px; height: 22px; }
.brand-name { font-size: 15px; opacity: 0; transform: translateX(-6px); transition: opacity .4s, transform .4s var(--ease); }
.brand:hover .brand-name, .menu-open .brand-name { opacity: 1; transform: none; }

.menu-btn {
  width: 40px; height: 40px; display: grid; place-content: center; gap: 5px; justify-items: end;
}
.menu-btn i {
  display: block; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s;
}
.menu-btn i:nth-child(1) { width: 22px; }
.menu-btn i:nth-child(2) { width: 16px; }
.menu-btn i:nth-child(3) { width: 22px; }
.menu-btn:hover i:nth-child(2) { width: 22px; }
.menu-open .menu-btn i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn i:nth-child(2) { opacity: 0; }
.menu-open .menu-btn i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Menu overlay ---------- */

.menu {
  position: fixed; inset: 0; z-index: 50; background: #0d0e0f;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 40px) var(--gutter) var(--gutter);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .8s var(--ease), visibility 0s .8s;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease); }
.menu-open { overflow: hidden; }

.menu-links { display: flex; flex-direction: column; }
.menu-links a {
  display: flex; align-items: baseline; gap: 18px;
  font-size: clamp(44px, 8vw, 120px); line-height: 1; letter-spacing: -0.05em;
  padding-block: 6px; color: var(--muted);
  transform: translateY(30px); opacity: 0;
  transition: color .3s, transform .8s var(--ease), opacity .8s var(--ease);
}
.menu-links a .mono { color: var(--dim); font-size: 12px; letter-spacing: 0; }
.menu-links a:hover, .menu-links a[aria-current="page"] { color: var(--text); }
.menu-open .menu-links a { transform: none; opacity: 1; }
.menu-open .menu-links a:nth-child(2) { transition-delay: .05s; }
.menu-open .menu-links a:nth-child(3) { transition-delay: .1s; }
.menu-open .menu-links a:nth-child(4) { transition-delay: .15s; }
.menu-open .menu-links a:nth-child(5) { transition-delay: .2s; }

.menu-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px;
  border-top: 1px solid var(--line); padding-top: 22px; color: var(--muted); font-size: 14px;
}
.menu-foot a:hover { color: var(--text); }

/* ---------- Reveal animations ---------- */

[data-reveal] {
  opacity: 0; filter: blur(10px); transform: translateY(24px);
  transition: opacity 1s var(--ease), filter 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; filter: none; transform: none; }

.words .w { opacity: .14; transition: opacity .25s linear; }

/* ==========================================================================
   Home · Hero
   ========================================================================== */

.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; isolation: isolate;
}
.collage {
  position: absolute; inset: -10% -10%; z-index: -2;
  will-change: transform, filter;
}
.collage-plane {
  position: absolute; left: 50%; top: 50%;
  display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 24px);
  transform: translate(-50%, -50%) rotate(-17deg);
}
.collage-row { display: flex; width: max-content; animation: drift var(--dur, 80s) linear infinite; }
.collage-row.rev { animation-direction: reverse; }
.collage-set { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 24px); padding-right: clamp(14px, 1.6vw, 24px); }
@keyframes drift { to { transform: translateX(-50%); } }

.tile {
  position: relative; flex: none; overflow: hidden; background: var(--surface);
  width: var(--w, clamp(130px, 15vw, 250px));
  height: var(--h, clamp(170px, 20vw, 330px));
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile--arch { border-radius: 999px 999px 22px 22px; }
.tile--drop { border-radius: 22px 22px 999px 999px; }
.tile--pill { border-radius: 999px; }
.tile--soft { border-radius: 28px; }
.tile--leaf { border-radius: 999px 22px 999px 22px; }
.tile--wide { --w: clamp(190px, 22vw, 360px); }
.tile--tall { --h: clamp(210px, 25vw, 400px); }
.tile--short { --h: clamp(120px, 13vw, 220px); }
.tile--slim { --w: clamp(100px, 11.5vw, 190px); --h: clamp(180px, 20.5vw, 340px); }
.tile--square { --h: var(--w); }
.tile--poster { --w: clamp(140px, 16vw, 260px); --h: clamp(175px, 20vw, 325px); border-radius: 18px; }
.tile--banner { --w: clamp(300px, 34vw, 560px); --h: clamp(60px, 6.8vw, 112px); border-radius: 16px; }
.tile--landscape { --w: clamp(220px, 26vw, 420px); --h: clamp(150px, 17.5vw, 285px); border-radius: 18px; }
.tile--strip { --w: clamp(280px, 32vw, 520px); --h: clamp(118px, 13.5vw, 220px); border-radius: 18px; }
.tile-dot {
  position: absolute; right: 14%; bottom: 14%; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: grid; place-items: center;
}
.tile-dot::before {
  content: ""; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px;
}

.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 48%, rgba(10,11,11,0) 0%, rgba(10,11,11,.35) 55%, rgba(10,11,11,.92) 100%),
    linear-gradient(to bottom, rgba(10,11,11,0) 70%, var(--bg) 100%);
}

.hero-inner {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding-inline: var(--gutter); will-change: transform, opacity, filter;
}
.hero-title { position: relative; line-height: .8; }
.hero-word {
  display: block; font-weight: 600; letter-spacing: -0.065em;
  font-size: clamp(76px, 19vw, 330px);
  color: rgba(255,255,255,.9);
  text-shadow: 0 10px 60px rgba(0,0,0,.25);
}
.hero-word sup { font-size: .14em; vertical-align: top; position: relative; top: .55em; margin-left: .06em; font-weight: 500; letter-spacing: 0; }
.hero-tag {
  margin-top: clamp(16px, 2vw, 28px);
  font-size: clamp(17px, 1.8vw, 28px); line-height: 1.25; letter-spacing: -0.025em;
  max-width: 20ch; margin-inline: auto; color: rgba(255,255,255,.92);
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 22px; height: 34px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 12px;
}
.scroll-cue::before {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ---------- Intro statement ---------- */

.intro { padding-block: clamp(90px, 14vw, 200px) clamp(70px, 10vw, 140px); }
.intro .display { max-width: 19ch; margin-left: clamp(0px, 22vw, 340px); }

/* ---------- Logo marquee ---------- */

.marquee {
  position: relative; overflow: hidden; border-block: 1px solid var(--line);
  padding-block: 26px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: drift 120s linear infinite; }
.marquee-set { display: flex; align-items: center; gap: clamp(28px, 3.4vw, 52px); padding-right: clamp(28px, 3.4vw, 52px); }
.logo-item { display: inline-flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 600; letter-spacing: -0.03em; color: rgba(255,255,255,.6); white-space: nowrap; transition: color .3s; }
.logo-item:hover { color: #fff; }
.logo-item svg { width: 22px; height: 22px; }
.logo-item + .logo-item::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-gradient); margin-right: clamp(28px, 3.4vw, 52px); opacity: .9; }
.marquee-set > .logo-item:first-child::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-gradient); margin-right: clamp(28px, 3.4vw, 52px); opacity: .9; }
.marquee-label { text-align: center; margin-bottom: 22px; }
.marquee--bright .logo-item { color: rgba(255,255,255,.95); }

/* ---------- Section heads ---------- */

.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 3.4vw, 48px);
}
.sec-head .lead { margin-top: 18px; }

/* ---------- Project stack ---------- */

.stack { display: flex; flex-direction: column; gap: 0; }
.stack-card {
  position: sticky; top: calc(var(--header-h) + 8px);
  height: min(78vh, 62vw); min-height: 340px;
  border-radius: var(--radius); overflow: hidden; background: var(--surface);
  margin-bottom: 24px; transform-origin: center top; will-change: transform;
}
.stack-card:last-child { margin-bottom: 0; }
.stack-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.stack-card:hover img { transform: scale(1.03); }
.stack-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.05) 45%, rgba(0,0,0,.25));
}
.stack-shade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 2; }
.chip {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  padding: 5px 11px; border-radius: 999px; font-size: 12px;
  background: rgba(255,255,255,.18); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.stack-name {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 14px;
  font-size: clamp(28px, 3.4vw, 54px); font-weight: 500; letter-spacing: -0.04em; color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,.55), 0 0 2px rgba(0,0,0,.35);
}
.stack-name svg { width: .9em; height: .9em; }
.stack-meta {
  position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1;
  display: flex; justify-content: space-between; color: rgba(255,255,255,.8);
}

/* ---------- Services ---------- */

.services { display: flex; flex-direction: column; gap: 10px; }
.service {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1fr minmax(0, 340px); align-items: center; gap: 24px;
  min-height: 92px; padding: 22px clamp(18px, 2vw, 28px);
  background: var(--surface); border-radius: var(--radius-sm);
  transition: background .4s;
}
.service:hover { background: var(--surface-2); }
.service canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity .5s; }
.service:hover canvas { opacity: 1; }
.service-title { display: flex; align-items: baseline; gap: 10px; font-size: clamp(19px, 1.6vw, 24px); letter-spacing: -0.03em; }
.service-title .mono { color: var(--dim); font-size: 11px; }
.service p { color: var(--muted); font-size: 13px; line-height: 1.55; }

/* ---------- Showreel ---------- */

.reel-title { max-width: 22ch; margin-bottom: clamp(28px, 3.4vw, 48px); }
.reel {
  position: relative; aspect-ratio: 16 / 9; max-height: 86vh; width: 100%;
  border-radius: var(--radius); overflow: hidden; background: var(--surface);
  display: grid; place-items: center; isolation: isolate;
}
.reel .mesh { z-index: -2; transform: scale(1.12); will-change: transform; }
.reel-mark {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: -1;
  font-size: clamp(60px, 15vw, 250px); font-weight: 600; letter-spacing: -0.065em;
  color: rgba(255,255,255,.4); mix-blend-mode: overlay; pointer-events: none;
}
.play {
  width: clamp(56px, 5vw, 76px); aspect-ratio: 1; border-radius: 50%;
  background: rgba(0,0,0,.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: grid; place-items: center; transition: transform .5s var(--ease), background .3s;
}
.play::before { content: ""; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.reel:hover .play { transform: scale(1.1); background: rgba(0,0,0,.55); }

.modal {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: var(--gutter);
  background: rgba(0,0,0,.85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s;
}
.modal.is-open { opacity: 1; visibility: visible; transition: opacity .4s; }
.modal-box { position: relative; width: min(1100px, 100%); aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; display: grid; place-items: center; }
.modal-box video { width: 100%; height: 100%; object-fit: cover; }
.modal-box p { position: absolute; color: var(--muted); }
.modal-close { position: absolute; top: 18px; right: var(--gutter); font-size: 14px; color: var(--muted); }
.modal-close:hover { color: var(--text); }

/* ---------- Stats ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.stat-num { font-size: clamp(30px, 2.8vw, 44px); letter-spacing: -0.04em; line-height: 1; margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.stat p { color: var(--muted); font-size: 13px; max-width: 24ch; }

/* ---------- Testimonials ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px); align-items: start; }
.split-sticky { position: sticky; top: calc(var(--header-h) + 40px); }
.split-sticky .eyebrow { margin-bottom: 18px; }
.quotes { display: flex; flex-direction: column; gap: 28px; }
.quote { border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.quote img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.quote-body { padding: clamp(20px, 2vw, 28px); }
.quote blockquote { margin: 0 0 28px; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.35; letter-spacing: -0.02em; }
.quote cite { font-style: normal; font-size: 13px; display: block; }
.quote cite span { display: block; color: var(--muted); margin-top: 3px; }

/* ---------- FAQ ---------- */

.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-block: 18px; font-size: 15px; transition: color .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #fff; }
.faq summary::after {
  content: "+"; font-size: 20px; line-height: 1; color: var(--muted); font-weight: 300;
  transition: transform .4s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-answer { overflow: hidden; }
.faq-answer p { padding: 0 40px 22px 0; color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 56ch; }

/* ---------- Card grid (capabilities / work) ---------- */

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 1.2vw, 18px); }
.card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: background .4s; }
.card:hover { background: var(--surface-2); }
.card-media { overflow: hidden; aspect-ratio: 4 / 3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 20px clamp(18px, 1.6vw, 24px) 24px; display: flex; flex-direction: column; gap: 10px; }
.card-body .mono { color: var(--muted); font-size: 11px; }
.card-title { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.35; letter-spacing: -0.02em; max-width: 34ch; }
.card-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: 13px; }

/* ---------- Footer ---------- */

.site-footer {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(160px, 26vw, 380px) var(--gutter) var(--gutter);
  border-top: 1px solid var(--line);
}
.footer-mark {
  position: absolute; left: 50%; top: -0.12em; transform: translateX(-50%); z-index: -1;
  font-size: 22vw; font-weight: 600; letter-spacing: -0.065em; line-height: 1; white-space: nowrap;
  color: rgba(255,255,255,.035); pointer-events: none;
}
.footer-glow {
  position: absolute; z-index: -2; left: 50%; top: 18%; width: min(1100px, 120vw); aspect-ratio: 1.6; transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 34% 38%, rgba(40,215,240,.42), transparent),
    radial-gradient(closest-side at 62% 34%, rgba(47,224,196,.38), transparent),
    radial-gradient(closest-side at 50% 70%, rgba(75,230,138,.38), transparent),
    radial-gradient(closest-side at 72% 64%, rgba(168,240,78,.26), transparent);
  filter: blur(40px); animation: glow 14s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: translateX(-46%) scale(1.08) rotate(6deg); } }

.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding-bottom: clamp(32px, 4vw, 52px); }
.footer-cta h3 { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -0.03em; }
.footer-cta .mono { color: var(--muted); display: block; margin: 8px 0 26px; font-size: 11px; }
.inline-form { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line-strong); width: min(360px, 100%); padding-bottom: 10px; }
.inline-form input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 14px; }
.inline-form input::placeholder { color: var(--muted); }
.inline-form button { font-size: 14px; font-weight: 500; }
.inline-form button:hover { color: var(--lime); }
.form-note { font-size: 13px; color: var(--lime); margin-top: 10px; min-height: 1em; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 22px; font-size: 14px; color: var(--muted);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-nav a:hover, .footer-nav a[aria-current="page"] { color: var(--text); }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.footer-meta a:hover { color: var(--text); }
.socials { display: flex; align-items: center; gap: 8px; }
.socials a {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--muted);
  transition: color .3s, border-color .3s, background .3s, transform .4s var(--ease);
}
.socials a:hover { color: #020504; background: var(--brand-gradient); border-color: transparent; transform: translateY(-2px); }
.socials svg { width: 16px; height: 16px; }

/* ==========================================================================
   Inner pages
   ========================================================================== */

.page-top { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 90px)); }

/* About hero card */
.about-hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: calc(var(--header-h) + 4px);
  min-height: min(88vh, 900px); border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(24px, 3vw, 44px) clamp(20px, 3vw, 44px) 0;
}
.about-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.about-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(2,5,4,.42), rgba(2,5,4,0) 45%, rgba(2,5,4,.4)); }
.about-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.about-hero h1 { max-width: 13ch; }
.about-hero-side { text-align: right; max-width: 34ch; font-size: 14px; color: rgba(255,255,255,.85); }
.about-hero-side .socials { justify-content: flex-end; margin-top: 12px; }
.about-hero .marquee { border: 0; margin-inline: calc(-1 * clamp(20px, 3vw, 44px)); }

.manifesto { max-width: 640px; margin-inline: auto; }
.badge { width: 104px; height: 104px; position: relative; margin-bottom: 30px; }
.badge svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.badge svg.globe { position: absolute; inset: 26px; width: 52px; height: 52px; }
@keyframes spin { to { transform: rotate(360deg); } }
.manifesto p.big { font-size: clamp(18px, 1.6vw, 23px); line-height: 1.4; letter-spacing: -0.02em; }
.manifesto .stats { grid-template-columns: repeat(2, 1fr); margin-top: clamp(40px, 5vw, 64px); row-gap: 36px; }

.team-head { max-width: 22ch; }
.team-head .eyebrow { margin-bottom: 18px; }
.person { border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.person img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; filter: saturate(.92); }
.person-body { padding: 16px 18px 18px; font-size: 14px; }
.person-body span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

/* Team intro: heading on the left, group poster on the right */
.team-intro { display: grid; grid-template-columns: 1fr minmax(0, 440px); align-items: center; gap: clamp(28px, 5vw, 80px); max-width: 1080px; margin: 0 auto clamp(48px, 6vw, 90px); }
.team-intro .team-head { max-width: none; }
.team-intro .h2 { max-width: 15ch; }
.team-intro-media { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.team-intro-media:hover .team-poster img { transform: scale(1.03); }
@media (max-width: 760px) {
  .team-intro { grid-template-columns: 1fr; }
}

/* Team posters: Malik leads on his own row, the rest three across */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); max-width: 1080px; margin-inline: auto; }
.team-card--lead { grid-column: 1 / -1; justify-self: center; width: min(100%, 560px); margin-bottom: clamp(10px, 2vw, 28px) !important; }
.team-card--lead .person-body { font-size: 16px; padding: 20px 22px 22px; }
.team-card--lead .person-body span { font-size: 14px; }
.team-poster { display: block; width: 100%; padding: 0; overflow: hidden; cursor: zoom-in; }
.team-poster img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; filter: none; transition: transform 1.2s var(--ease); }
.team-card:hover .team-poster img { transform: scale(1.03); }
.team-empty { position: relative; aspect-ratio: 4 / 5; display: grid; place-items: center; isolation: isolate; cursor: default; }
.team-empty .mesh { z-index: -1; opacity: .55; }
.team-empty .mesh::before { animation-duration: 26s; }
@media (max-width: 760px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-card--lead { width: 100%; }
}
/* Founder card: 20% smaller than the group poster, still the largest portrait */
.team-card--founder { width: min(80%, 448px); }

.list-table { border-top: 1px solid var(--line-strong); }
.list-row {
  display: grid; grid-template-columns: 1fr auto 70px; gap: 24px; align-items: center;
  padding-block: 18px; border-bottom: 1px solid var(--line-strong);
  transition: padding .5s var(--ease), color .3s;
}
.list-row:hover { padding-inline: 12px; }
.list-row h3 { font-size: clamp(16px, 1.3vw, 19px); letter-spacing: -0.02em; }
.list-row span { color: var(--muted); font-size: 13px; text-align: right; }

/* Work page */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 90px); }
.page-title { font-size: clamp(48px, 7vw, 120px); line-height: .95; letter-spacing: -0.055em; max-width: 9ch; }
.page-head p { max-width: 32ch; text-align: right; color: var(--muted); font-size: 15px; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 2.4vw, 36px); align-items: start; }
.contact-media { border-radius: var(--radius); overflow: hidden; height: 100%; min-height: 420px; }
.contact-media img { width: 100%; height: 100%; object-fit: cover; }
.form-title { font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -0.02em; }
.avatars { display: flex; margin: 16px 0 26px; }
.avatars img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; border: 2px solid var(--bg); margin-right: -6px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13px; }
.field input, .field textarea {
  width: 100%; background: var(--surface); border: 1px solid transparent; border-radius: 8px;
  color: var(--text); font: inherit; font-size: 14px; padding: 13px 14px; outline: 0; transition: border-color .3s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { border-color: var(--line-strong); }
.contact-form .btn { width: 100%; }
.contact-direct { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: clamp(20px, 2.4vw, 36px); }
.contact-direct a { background: var(--surface); border-radius: var(--radius-sm); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; transition: background .3s; }
.contact-direct a:hover { background: var(--surface-2); }
.contact-direct .eyebrow { font-size: 10px; }
.hp { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .intro .display { margin-left: 0; }
  .service { grid-template-columns: 1fr; gap: 8px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .split, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .split-sticky { position: static; }
  .contact-media { min-height: 300px; height: 300px; }
  .about-hero-side { text-align: left; }
  .about-hero-side .socials { justify-content: flex-start; }
  .page-head p { text-align: left; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .cards { grid-template-columns: 1fr; }
  .stack-card { height: 64vh; min-height: 300px; }
  .contact-direct { grid-template-columns: 1fr; }
  .list-row { grid-template-columns: 1fr auto; }
  .list-row span:last-child { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; filter: none; transform: none; }
  .words .w { opacity: 1; }
}

/* Capabilities cards (reuse the sticky split layout) */
.split-sticky .link-arrow { display: inline-flex; }
a.quote { display: block; transition: background .4s; }
a.quote:hover { background: var(--surface-2); }
a.quote img { transition: transform 1.2s var(--ease); }
a.quote:hover img { transform: scale(1.03); }
a.quote { overflow: hidden; }
.cap-title { margin-top: 14px; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.35; letter-spacing: -0.02em; }

/* Brand gradient (cyan, teal, green, lime from the original Zephryx site) */
.mesh { position: absolute; inset: 0; overflow: hidden; background: var(--brand-gradient); }
.mesh::before, .mesh::after { content: ""; position: absolute; inset: -20%; }
.mesh::before {
  background:
    radial-gradient(40% 50% at 18% 28%, rgba(40,215,240,1), transparent 70%),
    radial-gradient(38% 48% at 52% 22%, rgba(150,242,255,.75), transparent 70%),
    radial-gradient(44% 54% at 74% 40%, rgba(75,230,138,.95), transparent 70%),
    radial-gradient(40% 50% at 86% 78%, rgba(168,240,78,.95), transparent 70%),
    radial-gradient(36% 46% at 30% 80%, rgba(47,224,196,.9), transparent 70%),
    radial-gradient(28% 36% at 58% 62%, rgba(4,33,28,.45), transparent 70%);
  filter: blur(34px);
  animation: mesh-drift 18s ease-in-out infinite alternate;
}
.mesh::after {
  background: linear-gradient(165deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 45%, rgba(2,5,4,.12) 100%);
}
@keyframes mesh-drift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(4%, -3%, 0) rotate(8deg) scale(1.08); }
  100% { transform: translate3d(-3%, 3%, 0) rotate(-6deg) scale(1.04); }
}
.about-hero > .mesh { z-index: -2; }
.text-gradient { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn:hover { background: var(--brand-gradient); }

/* Social icons on the bright About hero gradient */
.about-hero-side .socials a {
  color: #fff; background: rgba(2,5,4,.55); border-color: rgba(255,255,255,.35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.about-hero-side .socials a:hover { color: #020504; background: #fff; border-color: #fff; }

/* ==========================================================================
   Category pages
   ========================================================================== */

.cat-back { display: inline-flex; margin-bottom: 26px; color: var(--muted); }
.cat-back:hover { color: var(--text); }
.cat-back svg { transform: rotate(180deg); }
.cat-back:hover svg { transform: rotate(180deg) translateX(4px); }
.cat-tags { margin-top: 14px; }
.cat-grid { display: grid; gap: clamp(12px, 1.4vw, 20px); margin-bottom: clamp(60px, 8vw, 120px); }

/* YouTube cards */
.cat-grid--youtube { grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2.4vw, 32px); max-width: 1000px; margin-inline: auto; }
.vid {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius); background: var(--surface); text-align: left; isolation: isolate;
}
.vid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.vid:hover img { transform: scale(1.04); }
.vid::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(2,5,4,.7) 0%, rgba(2,5,4,0) 38%, rgba(2,5,4,0) 70%, rgba(2,5,4,.35) 100%);
}
.vid-meta { position: absolute; z-index: 2; top: clamp(14px, 1.6vw, 22px); left: clamp(14px, 1.6vw, 22px); right: 20px; display: flex; align-items: center; gap: 12px; }
.vid-meta strong { display: block; font-size: clamp(16px, 1.5vw, 22px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.vid-meta div > span { display: block; font-size: 13px; color: rgba(255,255,255,.75); margin-top: 2px; }
.vid-avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #020504; color: var(--green); border: 1px solid rgba(255,255,255,.12);
}
.vid-avatar svg { width: 16px; height: 16px; }
.vid-play {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(58px, 5.4vw, 78px); aspect-ratio: 1; border-radius: 50%;
  background: rgba(2,5,4,.45); border: 1px solid rgba(255,255,255,.3);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: grid; place-items: center; transition: transform .5s var(--ease), background .3s, border-color .3s;
}
.vid-play::before { content: ""; border-left: 15px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; transition: border-left-color .3s; }
.vid:hover .vid-play { transform: translate(-50%, -50%) scale(1.1); background: var(--brand-gradient); border-color: transparent; }
.vid:hover .vid-play::before { border-left-color: #020504; }
.vid iframe { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; }
.vid.is-playing { cursor: default; }

/* Instagram reels (9:16 cover cards + pop-up player) */
.cat-grid--instagram { grid-template-columns: repeat(5, 1fr); gap: clamp(14px, 2.4vw, 36px); max-width: 1020px; margin-inline: auto; }
.ig-card {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; isolation: isolate;
  border-radius: clamp(16px, 1.6vw, 24px); background: var(--surface);
}
.ig-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.ig-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(2,5,4,.32); transition: background .5s; }
.ig-card:hover img { transform: scale(1.04); }
.ig-card:hover::after { background: rgba(2,5,4,.12); }
.ig-card.no-cover img { display: none; }
.ig-card.no-cover { background: radial-gradient(120% 80% at 30% 20%, rgba(40,215,240,.35), transparent 60%), radial-gradient(120% 80% at 80% 90%, rgba(168,240,78,.3), transparent 60%), var(--surface); }
.ig-play {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(52px, 4.8vw, 72px); aspect-ratio: 1; border-radius: 50%;
  background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  display: grid; place-items: center; transition: transform .5s var(--ease), background .3s;
}
.ig-play::before { content: ""; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 5px; }
.ig-card:hover .ig-play { transform: translate(-50%, -50%) scale(1.1); background: rgba(255,255,255,.32); }
.ig-cap { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px; text-align: left; font-size: 14px; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.ig-cap span { display: block; font-size: 12px; color: rgba(255,255,255,.75); margin-top: 2px; }

.ig-pop {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; gap: clamp(12px, 3vw, 40px);
  padding: 64px var(--gutter) var(--gutter); background: rgba(2,5,4,.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s;
}
.ig-pop.is-open { opacity: 1; visibility: visible; transition: opacity .35s; }
.ig-pop-frame { width: min(400px, 100%); height: min(760px, calc(100svh - 110px)); border-radius: 14px; overflow: hidden; background: #fff; }
.ig-pop-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 1100px) { .cat-grid--instagram { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px) { .cat-grid--instagram { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) {
  .cat-grid--instagram { grid-template-columns: repeat(2, 1fr); }
  .ig-pop .lb-nav { position: absolute; bottom: 18px; }
  .ig-pop .lb-prev { left: 18px; } .ig-pop .lb-next { right: 18px; }
  .ig-pop-frame { height: min(700px, calc(100svh - 150px)); }
}

/* Image galleries */
.cat-grid--images { display: block; columns: 3 300px; column-gap: clamp(12px, 1.4vw, 20px); }
.shot {
  position: relative; display: block; width: 100%; margin-bottom: clamp(12px, 1.4vw, 20px); break-inside: avoid;
  border-radius: var(--radius); overflow: hidden; background: var(--surface); cursor: zoom-in;
}
.shot img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.shot:hover img { transform: scale(1.03); }
.shot-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; text-align: left; font-size: 14px;
  background: linear-gradient(to top, rgba(2,5,4,.8), rgba(2,5,4,0)); opacity: 0; transform: translateY(8px);
  transition: opacity .4s, transform .5s var(--ease);
}
.shot:hover .shot-cap, .shot:focus-visible .shot-cap { opacity: 1; transform: none; }
.shot-cap span { display: block; color: rgba(255,255,255,.7); font-size: 13px; margin-top: 2px; }

.lightbox {
  position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 64px var(--gutter) var(--gutter); background: rgba(2,5,4,.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .35s; }
.lightbox figure { margin: 0; grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 0; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100svh - 140px); object-fit: contain; border-radius: 10px; }
.lightbox figcaption { color: var(--muted); font-size: 14px; }
.lb-close { position: absolute; top: 18px; right: var(--gutter); font-size: 14px; color: var(--muted); }
.lb-close:hover { color: var(--text); }
.lb-nav { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 26px; line-height: 1; color: var(--text); transition: background .3s, color .3s; }
.lb-prev { grid-column: 1; } .lb-next { grid-column: 3; }
.lb-nav:hover { background: var(--brand-gradient); color: #020504; border-color: transparent; }

/* Empty state */
.cat-empty { position: relative; overflow: hidden; border-radius: var(--radius); display: grid; place-items: center; isolation: isolate; opacity: .55; }
.cat-grid--youtube .cat-empty { aspect-ratio: 16 / 9; }
.cat-grid--instagram .cat-empty { aspect-ratio: 9 / 16; }
.cat-grid--images { }
.cat-grid--images .cat-empty { aspect-ratio: 4 / 3; margin-bottom: clamp(12px, 1.4vw, 20px); break-inside: avoid; }
.cat-empty .mesh { z-index: -1; }
.cat-empty .mesh::before { animation-duration: 26s; }
.cat-empty-label { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #020504; background: rgba(255,255,255,.75); padding: 6px 12px; border-radius: 999px; }

@media (max-width: 760px) {
  .cat-grid--youtube { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 1fr; padding-inline: 12px; }
  .lightbox figure { grid-column: 1; }
  .lb-nav { position: absolute; bottom: 20px; }
  .lb-prev { left: 20px; } .lb-next { right: 20px; }
}

/* Project cards (branding: one card per client) */
.cat-grid--projects { grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); max-width: 880px; margin-inline: auto; }
.proj { display: flex; flex-direction: column; text-align: left; border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: background .4s; }
.proj:hover { background: var(--surface-2); }
.proj-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.proj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.proj:hover .proj-media img { transform: scale(1.04); }
.proj-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.proj-body strong { font-weight: 500; font-size: 14px; line-height: 1.3; letter-spacing: -0.01em; }
.proj-body span { color: var(--muted); font-size: 11px; font-family: var(--mono); white-space: nowrap; }
@media (max-width: 560px) { .cat-grid--projects { grid-template-columns: repeat(2, 1fr); } }

/* Design posts (Instagram-style grid per client) */
.cat-grid--posts-wrap { display: block; max-width: 1100px; margin-inline: auto; }
.post-group + .post-group { margin-top: clamp(48px, 6vw, 80px); }
.post-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(16px, 2vw, 24px); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.post-head h2 { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -0.03em; }
.post-head span { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.post-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 1.6vw, 22px); }
.post { position: relative; display: block; aspect-ratio: var(--ratio, 4 / 5); overflow: hidden; border-radius: 12px; background: var(--surface); cursor: zoom-in; }
.post img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .5s; }
.post:hover img { transform: scale(1.04); }
.post::after { content: ""; position: absolute; inset: 0; background: rgba(2,5,4,0); transition: background .4s; }
.post:hover::after { background: rgba(2,5,4,.12); }
.post-badge {
  position: absolute; z-index: 1; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 7px; border-radius: 999px; font-size: 11px; font-family: var(--mono); color: #fff;
  background: rgba(2,5,4,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.post-badge svg { width: 12px; height: 12px; }
@media (max-width: 1100px) { .post-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }

/* Masonry variant for mixed-shape designs (Others) */
.post-grid--masonry { display: block; columns: 5 160px; column-gap: clamp(10px, 1.6vw, 22px); }
.post-grid--masonry .post { aspect-ratio: auto; break-inside: avoid; margin-bottom: clamp(10px, 1.6vw, 22px); width: 100%; }
.post-grid--masonry .post img { height: auto; display: block; }

/* Client logo wall (white marks on black, scrolling rows) */
.marquee-track { animation-duration: var(--dur, 120s); }
.marquee-track.rev { animation-direction: reverse; }
.logo-wall { display: flex; flex-direction: column; gap: clamp(10px, 2vw, 28px); padding-block: clamp(12px, 2vw, 28px); }
.marquee--logos { border: 0; padding-block: clamp(14px, 1.8vw, 26px); --ls: 1; }
.marquee--logos .marquee-set { gap: clamp(48px, 6vw, 110px); padding-right: clamp(48px, 6vw, 110px); }
.marquee--logos .logo-item::before { display: none !important; }
.marquee--logos .logo-item { color: #fff; }
.marquee--logos .logo-item img { display: block; width: auto; height: calc(var(--h) * var(--ls) * 1px); max-width: 260px; opacity: .92; transition: opacity .3s; }
.marquee--logos .logo-item:hover img { opacity: 1; }
.logo-word { font-weight: 700; font-size: clamp(15px, 1.5vw, 21px); letter-spacing: 0.04em; text-transform: uppercase; opacity: .92; }
@media (max-width: 640px) { .marquee--logos { --ls: .7; } }
.marquee--logos .has-logo { display: inline-flex; align-items: center; gap: clamp(10px, 1vw, 16px); }
.marquee--logos .logo-name { font-weight: 700; font-size: clamp(14px, 1.3vw, 19px); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; opacity: .92; }

/* Smooth, never-pausing marquees: GPU layer + fixed-size logos */
.marquee-track { will-change: transform; }
.marquee--logos .logo-item img { flex: none; }
.marquee--logos .logo-item { flex: none; }
/* main.js moves logo rows in whole pixels; the CSS animation is only the no-JS fallback */
.marquee-track.is-js { animation: none; }
/* Reduced motion: rows stand still, so let people swipe through every client */
@media (prefers-reduced-motion: reduce) {
  .marquee--logos { overflow-x: auto; scrollbar-width: none; }
  .marquee--logos::-webkit-scrollbar { display: none; }
}

/* ==========================================================================
   Website showcase
   ========================================================================== */
.cat-grid--showcase { grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 64px) clamp(20px, 3vw, 48px); max-width: 1180px; margin-inline: auto; }
.site-card { position: relative; display: block; text-align: left; padding-bottom: 6px; }
.bw { display: block; border-radius: 12px; overflow: hidden; background: #1b1c1e; border: 1px solid var(--line-strong); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); transition: transform .6s var(--ease), border-color .4s; }
.site-card:hover .bw { transform: translateY(-4px); border-color: rgba(255,255,255,.28); }
.bw-bar { display: flex; align-items: center; gap: 12px; height: 32px; padding: 0 12px; background: #232426; border-bottom: 1px solid rgba(255,255,255,.06); }
.bw-dots { display: inline-flex; gap: 6px; flex: none; }
.bw-dots i { width: 9px; height: 9px; border-radius: 50%; background: #4a4b4f; }
.bw-dots i:nth-child(1) { background: #ff5f57; } .bw-dots i:nth-child(2) { background: #febc2e; } .bw-dots i:nth-child(3) { background: #28c840; }
.bw-url { flex: 1; min-width: 0; max-width: 340px; margin: 0 auto; height: 20px; border-radius: 6px; background: #151618; color: var(--muted);
  font-size: 11px; line-height: 20px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 10px; }
.bw-view { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.bw-view img { width: 100%; height: auto; display: block; transform: translateY(0); transition: transform .9s var(--ease); }
.site-card:hover .bw-view img { transform: translateY(var(--dist, 0)); transition: transform var(--dur, 6s) linear; }
.pw { position: absolute; right: -10px; bottom: 52px; width: 22%; aspect-ratio: 9 / 19.5; border-radius: 18px; padding: 5px; background: #0d0e0f;
  border: 1px solid var(--line-strong); box-shadow: 0 24px 40px -16px rgba(0,0,0,.85); transition: transform .6s var(--ease); }
.site-card:hover .pw { transform: translateY(-10px) rotate(-1.5deg); }
.pw-view { display: block; width: 100%; height: 100%; border-radius: 13px; overflow: hidden; background: #fff; }
.pw-view img { width: 100%; height: auto; display: block; }
.site-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 4px 0; }
.site-meta strong { font-weight: 500; font-size: clamp(15px, 1.3vw, 18px); letter-spacing: -0.02em; }
.site-meta span { color: var(--muted); font-family: var(--mono); font-size: 11px; white-space: nowrap; }

.site-viewer { position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; background: rgba(6,7,7,.97);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.site-viewer.is-open { opacity: 1; visibility: visible; transition: opacity .35s; }
.sv-top { display: flex; align-items: center; gap: 16px; padding: 14px var(--gutter); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sv-title { font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.sv-tabs { display: flex; gap: 4px; flex: 1; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.sv-tabs::-webkit-scrollbar { display: none; }
.sv-tabs button, .sv-devices button { padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--muted); white-space: nowrap; transition: color .3s, background .3s; }
.sv-tabs button:hover, .sv-devices button:hover { color: var(--text); }
.sv-tabs button.is-on { color: #020504; background: var(--brand-gradient); }
.sv-devices { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-strong); }
.sv-devices button.is-on { color: var(--text); background: var(--surface-2); }
.sv-close { font-size: 13px; color: var(--muted); } .sv-close:hover { color: var(--text); }
.sv-stage { flex: 1; min-height: 0; display: flex; justify-content: center; padding: clamp(14px, 2.4vw, 32px) var(--gutter); }
.sv-frame { display: flex; flex-direction: column; width: min(1240px, 100%); height: 100%; border-radius: 12px; overflow: hidden;
  background: #1b1c1e; border: 1px solid var(--line-strong); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); transition: width .5s var(--ease), border-radius .5s; }
.sv-frame.is-mobile { width: min(400px, 100%); border-radius: 36px; padding: 10px; background: #0d0e0f; }
.sv-frame.is-mobile .bw-bar { display: none; }
.sv-scroll { flex: 1; min-height: 0; overflow-y: auto; background: #fff; overscroll-behavior: contain; }
.sv-frame.is-mobile .sv-scroll { border-radius: 26px; scrollbar-width: none; }
.sv-frame.is-mobile .sv-scroll::-webkit-scrollbar { display: none; }
.sv-scroll img { width: 100%; height: auto; display: block; }
@media (max-width: 860px) {
  .cat-grid--showcase { grid-template-columns: 1fr; }
  .sv-tabs { order: 3; flex-basis: 100%; justify-content: flex-start; }
}

/* ==========================================================================
   Brand: hex-Z mark + wordmark
   ========================================================================== */
.brand-mark { display: inline-block; flex: none; width: 26px; aspect-ratio: 924 / 1056; background: #fff;
  -webkit-mask: url("../img/logo-mark.png") center / contain no-repeat; mask: url("../img/logo-mark.png") center / contain no-repeat; }
.brand { gap: 12px; }
.brand-name { opacity: 1 !important; transform: none !important; display: inline-flex; align-items: baseline; gap: 7px;
  font-family: "Unbounded", var(--font); letter-spacing: 0.02em; line-height: 1; }
.bn-1 { font-weight: 700; font-size: 16px; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bn-2 { font-weight: 500; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.brand:hover .brand-mark { filter: drop-shadow(0 0 10px rgba(255,255,255,.4)); }
@media (max-width: 420px) { .bn-2 { display: none; } }

/* watermarks */
.footer-mark { width: min(54vw, 640px); aspect-ratio: 924 / 1056; top: -6%; font-size: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  -webkit-mask: url("../img/logo-mark.png") center / contain no-repeat; mask: url("../img/logo-mark.png") center / contain no-repeat; }
.reel-mark { inset: auto; left: 50%; top: 50%; width: clamp(140px, 24vw, 340px); aspect-ratio: 924 / 1056; transform: translate(-50%, -50%);
  display: block; font-size: 0; background: rgba(255,255,255,.34);
  -webkit-mask: url("../img/logo-mark.png") center / contain no-repeat; mask: url("../img/logo-mark.png") center / contain no-repeat; }
.vid-avatar .brand-mark { width: 18px; }
