/* =========================================================================
   MAGNET AGENCY — Design System
   Dark · Monochrome · Editorial · Inspired by the "Reels" Framer template
   ========================================================================= */

/* ------------------------------ Tokens --------------------------------- */
:root {
  /* Surfaces */
  --bg:           #0A0A0A;
  --bg-soft:      #0E0E0F;
  --surface:      #121214;
  --surface-2:    #18181B;
  --surface-3:    #202024;

  /* Lines */
  --line:         rgba(255,255,255,.08);
  --line-2:       rgba(255,255,255,.14);
  --line-3:       rgba(255,255,255,.22);

  /* Type */
  --text:         #F2F0EA;
  --text-dim:     #B6B4AD;
  --text-mute:    #76746E;
  --white:        #FFFFFF;
  --black:        #0A0A0A;

  /* Brand accent — monochrome luxury, white is the accent */
  --accent:       #F2F0EA;

  /* Fonts */
  --f-display: "Clash Display", "Space Grotesk", "Inter", system-ui, sans-serif;
  --f-body:    "Switzer", "Inter", system-ui, -apple-system, sans-serif;
  --f-serif:   "Instrument Serif", Georgia, "Times New Roman", serif;

  /* Rhythm */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .6s;
}

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

* { margin: 0; padding: 0; }

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

::selection { background: var(--text); color: var(--black); }

/* Grain / vignette overlay for depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255,255,255,.05), transparent 60%),
    radial-gradient(100% 60% at 50% 120%, rgba(255,255,255,.025), transparent 70%);
  mix-blend-mode: screen;
}

/* ------------------------------ Layout --------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  z-index: 2;
  padding-block: clamp(72px, 11vw, 160px);
}

.section--tight { padding-block: clamp(56px, 8vw, 110px); }

/* ------------------------------ Type ----------------------------------- */
.display,
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.h-xl {
  font-size: clamp(2.9rem, 8.5vw, 7rem);
  line-height: .98;
  letter-spacing: -0.04em;
}
.h-lg { font-size: clamp(2.3rem, 5.5vw, 4.2rem); }
.h-md { font-size: clamp(1.8rem, 3.5vw, 2.9rem); }
.h-sm { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }

.serif { font-family: var(--f-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 52ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 14px 1px rgba(242,240,234,.6);
}

.muted { color: var(--text-mute); }
.dim { color: var(--text-dim); }

/* ------------------------------ Buttons -------------------------------- */
.btn {
  --btn-pad-y: 14px;
  --btn-pad-x: 26px;
  position: relative;
  overflow: hidden;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--radius-pill);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: .98rem;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
/* modern fill-wipe hover — the button stays put, a fill sweeps up from the bottom */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; }

.btn--primary { background: var(--text); color: var(--black); }
.btn--primary::before { background: #17171c; }
.btn--primary:hover { color: var(--text); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-2);
}
.btn--ghost::before { background: var(--text); }
.btn--ghost:hover { color: var(--black); border-color: var(--text); }

.btn--lg { --btn-pad-y: 17px; --btn-pad-x: 32px; font-size: 1.02rem; }
.btn--sm { --btn-pad-y: 11px; --btn-pad-x: 18px; font-size: .9rem; }

.btn--block { display: flex; width: 100%; }

/* (magnetic effect removed) */
.magnetic { display: inline-flex; }

/* Text link with animated arrow */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text);
  position: relative;
}
.tlink::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.tlink:hover::after { transform: scaleX(1); }
.tlink svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.tlink:hover svg { transform: translate(3px,-3px); }

/* ------------------------------ Navbar --------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 18px var(--gutter);
  transition: padding .4s var(--ease);
}
.nav__inner {
  width: 100%;
  /* align the pill exactly with the body content area (container minus its gutters) */
  max-width: calc(var(--container) - 2 * var(--gutter));
  /* 3-column grid so the menu is perfectly centered regardless of logo / button widths */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 10px 12px 10px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease), box-shadow .4s var(--ease);
}
.nav__logo { justify-self: start; }
.nav__menu { justify-self: center; }
.nav__right { justify-self: end; }
.nav.is-stuck .nav__inner {
  background: rgba(12,12,13,.72);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 12px 40px -20px rgba(0,0,0,.8);
}
.nav__logo img { height: 26px; width: auto; }
.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  font-size: .96rem;
  color: var(--text-dim);
  font-weight: 450;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav__link:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav__right { display: flex; align-items: center; gap: 10px; }

/* Language switcher — a single pill that offers the *other* language only.
   Forced LTR so the EN / FA label reads identically on both sites.
   --ctl-h keeps it exactly as tall as the "Get in touch" button beside it. */
.nav__right { --ctl-h: 38px; }
.nav__right .btn--sm { height: var(--ctl-h); padding-block: 0; }
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--ctl-h, 38px);
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-2);
  direction: ltr;
  flex: none;
  font-family: var(--f-body);
  font-size: .86rem;
  font-weight: 500;
  line-height: 1;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.lang:hover {
  color: var(--text);
  background: rgba(255,255,255,.07);
  border-color: var(--line-3);
}
.lang__flag {
  width: 16px; height: 11px;
  flex: none;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}
.lang__flag svg { width: 100%; height: 100%; display: block; }
.lang__label { letter-spacing: .02em; }

/* In the mobile sheet every <a> is huge display type — put this one back */
.nav__mobile .lang {
  align-self: flex-start;
  margin-top: 24px;
  height: 46px;
  padding: 0 18px;
  font-family: var(--f-body);
  font-size: .95rem;
  /* fa.css bumps every sheet link to 700/1.5 — this one stays a UI control */
  font-weight: 500;
  line-height: 1;
  color: var(--text-dim);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease),
              color .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
body.menu-open .nav__mobile .lang { opacity: 1; transform: none; transition-delay: .38s; }
.nav__mobile .lang:hover { color: var(--text); }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 50%; top: 50%;
  width: 17px; height: 1.5px;
  background: var(--text);
  transform: translate(-50%,-50%);
  transition: transform .35s var(--ease), opacity .2s var(--ease);
}
.nav__burger span:nth-child(1) { transform: translate(-50%, -5px); }
.nav__burger span:nth-child(3) { transform: translate(-50%, 5px); }
body.menu-open .nav__burger span:nth-child(1) { transform: translate(-50%,0) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { transform: translate(-50%,0) rotate(-45deg); }

/* Mobile menu panel */
.nav__mobile {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10,10,10,.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 104px var(--gutter) 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
/* keep the page behind the overlay from scrolling */
body.menu-open { overflow: hidden; }
body.menu-open .nav__mobile { opacity: 1; visibility: visible; }
.nav__mobile a {
  font-family: var(--f-display);
  font-size: clamp(2rem, 9vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  padding: 8px 0;
  color: var(--text);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
body.menu-open .nav__mobile a { opacity: 1; transform: none; }
body.menu-open .nav__mobile a:nth-child(1) { transition-delay: .08s; }
body.menu-open .nav__mobile a:nth-child(2) { transition-delay: .14s; }
body.menu-open .nav__mobile a:nth-child(3) { transition-delay: .2s; }
body.menu-open .nav__mobile a:nth-child(4) { transition-delay: .26s; }
body.menu-open .nav__mobile a:nth-child(5) { transition-delay: .32s; }
/* the CTA is an <a> too, so it inherits the huge display type / cream colour
   above — put the button styling back */
.nav__mobile a.nav__mobile-cta {
  margin-top: 28px;
  align-self: flex-start;
  font-family: var(--f-body);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--black);
  padding: 17px 32px;
}
.nav__mobile a.nav__mobile-cta:hover { color: var(--text); }

/* ------------------------------ Hero ----------------------------------- */
.hero {
  position: relative;
  z-index: 2;
  padding-top: clamp(140px, 20vh, 220px);
  padding-bottom: clamp(40px, 7vw, 90px);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: min(900px, 90vw);
  height: 520px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,255,255,.10), transparent 70%);
  pointer-events: none;
  z-index: -1;
  filter: blur(10px);
}
.hero__top {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(22px, 3vw, 34px);
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  font-size: .85rem;
  color: var(--text-dim);
}
.hero__badge b { color: var(--text); font-weight: 500; }
.hero__badge .pill {
  display: inline-flex; align-items: center; gap: 6px;
  flex: none; white-space: nowrap;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--text); color: var(--black);
  font-size: .78rem; font-weight: 600; letter-spacing: -.01em;
}
.hero h1 {
  text-align: center;
  max-width: 16ch;
  margin-inline: auto;
}
.hero__sub {
  text-align: center;
  margin: clamp(22px,3vw,30px) auto 0;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--text-dim);
  max-width: 56ch;
}
.hero__cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(30px, 4vw, 42px);
}
.hero__avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  color: var(--text-mute);
  font-size: .9rem;
}
.avatars { display: flex; }
.avatars span {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -10px;
  background: linear-gradient(135deg, #2a2a2e, #444448);
  display: grid; place-items: center;
  font-size: .72rem; font-weight: 600; color: var(--text);
}
.avatars span:first-child { margin-left: 0; }
.stars { color: var(--text); letter-spacing: 2px; }

/* ------------------------------ Marquee -------------------------------- */
.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: -0.02em;
  color: var(--text-dim);
  white-space: nowrap;
}
.marquee__item svg { width: 16px; height: 16px; opacity: .5; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ------------------------- Section heading block ----------------------- */
.s-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: clamp(38px, 5vw, 64px);
}
.s-head__text { max-width: 60ch; }
.s-head__text .eyebrow { margin-bottom: 18px; }
.s-head h2 { max-width: 18ch; }
.s-head p { margin-top: 18px; }
@media (max-width: 820px) {
  .s-head { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------ Services ------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.svc {
  position: relative;
  grid-column: span 4;
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0)) ,
    var(--surface);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color .4s var(--ease), transform .5s var(--ease), background .4s var(--ease);
}
.svc:hover { border-color: var(--line-2); transform: translateY(-4px); }
.svc--wide { grid-column: span 6; }
.svc--feature { grid-column: span 12; min-height: 0; }

/* full-width feature service card */
.svc__num--abs { position: absolute; top: 30px; right: 30px; z-index: 2; }
.svc__feature-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.15fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  width: 100%;
}
.svc__feature-text { display: flex; flex-direction: column; max-width: 48ch; }
.svc__feature-text .svc__icon { margin-bottom: 22px; }
.svc__feature-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fstat {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 18px;
  background: rgba(255,255,255,.02);
}
.fstat b { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.7rem, 2.4vw, 2.2rem); letter-spacing: -.03em; display: block; line-height: 1; }
.fstat span { font-size: .8rem; color: var(--text-mute); display: block; margin-top: 8px; line-height: 1.3; }
@media (max-width: 860px) {
  .svc__feature-inner { grid-template-columns: 1fr; }
  .svc__feature-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .svc__feature-stats { grid-template-columns: 1fr; }
}
.svc__num {
  font-family: var(--f-body);
  font-size: .8rem;
  color: var(--text-mute);
  letter-spacing: .05em;
}
.svc__icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  margin-bottom: auto;
  background: rgba(255,255,255,.03);
}
.svc__icon svg { width: 22px; height: 22px; stroke: var(--text); }
.svc__body { margin-top: 26px; }
.svc h3 { font-size: 1.5rem; letter-spacing: -0.025em; margin-bottom: 10px; }
.svc p { color: var(--text-dim); font-size: .98rem; line-height: 1.55; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tag {
  font-size: .8rem;
  color: var(--text-dim);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.svc__glow {
  position: absolute;
  width: 280px; height: 280px;
  right: -80px; top: -80px;
  background: radial-gradient(circle, rgba(255,255,255,.07), transparent 65%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.svc:hover .svc__glow { opacity: 1; }

/* ------------------------- Feature showcase ---------------------------- */
.feature {
  display: grid;
  /* minmax(0,…) instead of 1fr — the mockups below have a wide min-content
     size and would otherwise blow the grid past the container on small phones */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 80px);
  align-items: center;
}
.feature--rev .feature__media { order: 2; }
.feature__text .eyebrow { margin-bottom: 20px; }
.feature__text h2 { margin-bottom: 22px; }
.feature__list { margin-top: 30px; display: grid; gap: 2px; }
.feature__list li {
  display: flex;
  gap: 14px;
  padding: 16px 2px;
  border-top: 1px solid var(--line);
  align-items: flex-start;
}
.feature__list li:last-child { border-bottom: 1px solid var(--line); }
.feature__list .ic {
  flex: none;
  width: 20px; height: 20px;
  margin-top: 2px;
}
.feature__list .ic svg { width: 20px; height: 20px; stroke: var(--text); }
.feature__list b { font-weight: 500; display: block; margin-bottom: 2px; }
.feature__list span { color: var(--text-mute); font-size: .92rem; }
.feature__cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Browser mockup (web design) */
.browser {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 50px 120px -50px rgba(0,0,0,.9);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-3); }
.browser__url {
  margin-left: 10px;
  flex: 1;
  max-width: 320px;
  font-size: .78rem;
  color: var(--text-mute);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}
.browser__viewport {
  aspect-ratio: 16 / 11.4;
  background:
    radial-gradient(120% 120% at 85% -10%, rgba(255,255,255,.07), transparent 45%),
    var(--bg-soft);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bw-nav { display: flex; justify-content: space-between; align-items: center; }
.bw-logo { font-family: var(--f-display); font-weight: 600; font-size: .95rem; letter-spacing: -.02em; }
.bw-pills { display: flex; gap: 16px; align-items: center; }
.bw-pills i { width: 32px; height: 7px; border-radius: 7px; background: var(--surface-3); }
.bw-pills .bw-cta { width: 64px; height: 24px; border-radius: 7px; background: var(--text); }
.bw-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; align-items: center; flex: 1; }
.bw-hero .badge { width: 84px; height: 16px; border-radius: 8px; background: var(--surface-2); margin-bottom: 14px; }
.bw-hero .t1 { height: 18px; width: 92%; border-radius: 5px; background: var(--surface-3); margin-bottom: 8px; }
.bw-hero .t2 { height: 18px; width: 62%; border-radius: 5px; background: var(--surface-3); margin-bottom: 14px; }
.bw-hero .t3 { height: 8px; width: 82%; border-radius: 5px; background: var(--surface-2); margin-bottom: 6px; }
.bw-hero .t4 { height: 8px; width: 64%; border-radius: 5px; background: var(--surface-2); }
.bw-btnrow { display: flex; gap: 9px; margin-top: 18px; }
.bw-btnrow i { height: 30px; border-radius: 9px; }
.bw-btnrow i:first-child { width: 96px; background: var(--text); }
.bw-btnrow i:last-child { width: 80px; background: transparent; border: 1px solid var(--line-2); }
.bw-visual {
  border-radius: 16px;
  height: 100%;
  min-height: 150px;
  background:
    radial-gradient(90% 80% at 30% 10%, rgba(255,255,255,.16), transparent 55%),
    linear-gradient(150deg, #2c2c31, #141416);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.bw-visual::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 16px; height: 34px;
  border-radius: 9px; background: rgba(10,10,10,.55); backdrop-filter: blur(6px);
  border: 1px solid var(--line-2);
}
.bw-cards { display: flex; gap: 10px; }
.bw-cards i { flex: 1; height: 50px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); position: relative; }
.bw-cards i::before { content:""; position:absolute; top:10px; left:10px; width:20px; height:20px; border-radius:6px; background: var(--surface-3); }

/* Browser stage + performance chip */
.browser-stage { position: relative; }
.chip-perf { bottom: -22px; right: -16px; }
.chip-perf b { font-size: .95rem; }
.chip-perf span { font-size: .72rem; color: var(--text-mute); display: block; }
@media (max-width: 900px) {
  .chip-perf { right: 4%; bottom: -20px; }
}

/* Phone mockup (instagram / social) */
.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
}
.phone {
  position: relative;
  width: 270px;
  aspect-ratio: 9 / 19;
  border-radius: 40px;
  border: 1px solid var(--line-2);
  background: #050505;
  padding: 10px;
  box-shadow: 0 50px 130px -40px rgba(0,0,0,.95);
  z-index: 2;
}
.phone::before {
  content: "";
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px;
  border-radius: var(--radius-pill);
  background: #000;
  z-index: 3;
}
.phone__screen {
  width: 100%; height: 100%;
  border-radius: 31px;
  overflow: hidden;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
}
.ig-top {
  display: flex; align-items: center; gap: 10px;
  padding: 30px 14px 12px;
  border-bottom: 1px solid var(--line);
}
.ig-top .ig-ava { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg,#333,#555); flex: none; }
.ig-top .ig-meta { flex: 1; }
.ig-top .ig-meta .l1 { height: 9px; width: 70px; background: var(--surface-3); border-radius: 5px; margin-bottom: 6px; }
.ig-top .ig-meta .l2 { height: 7px; width: 46px; background: var(--surface-2); border-radius: 5px; }
.ig-stats { display: flex; gap: 14px; padding: 12px 14px; }
.ig-stats div { text-align: center; }
.ig-stats b { font-family: var(--f-display); font-size: .95rem; display: block; }
.ig-stats span { font-size: .62rem; color: var(--text-mute); }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 4px; }
.ig-grid i {
  aspect-ratio: 1;
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}
.ig-grid i::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.06), transparent 60%);
}
.ig-grid i:nth-child(3n) { background: var(--surface-3); }
.ig-grid i:nth-child(2) { background: var(--surface); }

/* floating metric chips around phone */
.chip-float {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(18,18,20,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,.9);
}
.chip-float b { font-family: var(--f-display); font-size: 1.05rem; }
.chip-float span { font-size: .72rem; color: var(--text-mute); display: block; }
.chip-float .dot { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.06); display: grid; place-items: center; }
.chip-float .dot svg { width: 16px; height: 16px; stroke: var(--text); }
.chip-1 { top: 16%; left: -6%; }
.chip-2 { bottom: 20%; right: -8%; }
.chip-float--anim { animation: floaty 8s ease-in-out infinite; }
.chip-2.chip-float--anim { animation-delay: -4s; }
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ====================== DATA-VIZ COMPONENTS ============================ */

/* Animated SVG charts (draw-in on reveal) */
.chart-line {
  fill: none;
  stroke: var(--text);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}
[data-reveal].in .chart-line,
.in .chart-line,
.chart-animate .chart-line { animation: draw 1.8s var(--ease-out) .25s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.chart-area { opacity: 0; transition: opacity 1.2s var(--ease) .5s; }
[data-reveal].in .chart-area,
.in .chart-area,
.chart-animate .chart-area { opacity: 1; }

.chart-dot {
  fill: var(--bg);
  stroke: var(--text);
  stroke-width: 2.4;
  opacity: 0;
  transform: scale(0);
  transform-origin: center;
  transform-box: fill-box;
}
[data-reveal].in .chart-dot,
.in .chart-dot,
.chart-animate .chart-dot { animation: pop .5s var(--ease-out) forwards; }
.chart-dot.is-last { animation-delay: 1.7s; r: 5.5; }
@keyframes pop { to { opacity: 1; transform: scale(1); } }

.chart-grid line { stroke: var(--line); stroke-width: 1; }
.chart-x { fill: var(--text-mute); font-size: 9px; font-family: var(--f-body); }

/* Growth dashboard card (Instagram) */
.growth-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #161618, #0f0f10);
  padding: 26px;
  box-shadow: 0 50px 120px -50px rgba(0,0,0,.9);
  overflow: hidden;
}
.growth-card__top { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.growth-card__av {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: conic-gradient(from 210deg, #3a3a3e, #6a6a70, #2c2c30, #3a3a3e);
  padding: 2px;
}
.growth-card__av i { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--surface-2); }
.growth-card__av img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.growth-card__id b { font-family: var(--f-display); font-size: 1.05rem; display: block; letter-spacing: -.02em; }
.growth-card__id span { font-size: .82rem; color: var(--text-mute); }
.growth-card__follow {
  margin-left: auto; text-align: right;
}
.growth-card__follow b { font-family: var(--f-display); font-size: 1.6rem; display: block; letter-spacing: -.03em; line-height: 1; }
.growth-card__follow .delta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .78rem; color: var(--text); margin-top: 5px;
  padding: 2px 8px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.08);
}
.growth-card__follow .delta svg { width: 11px; height: 11px; }
.growth-card__chart { width: 100%; height: auto; display: block; }
.growth-card__foot {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 10px;
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line);
}
.growth-card__foot div b { font-family: var(--f-display); font-size: 1.15rem; display: block; letter-spacing: -.02em; }
.growth-card__foot div span { font-size: .72rem; color: var(--text-mute); }
.growth-card__foot div em {
  font-style: normal; font-size: .68rem; color: var(--text); display: inline-flex; align-items: center; gap: 3px; margin-left: 6px;
}

/* Instagram media stage */
.ig-stage { position: relative; padding: 10px 0; }
.ig-reels { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 16px; }
.chip-ig { bottom: 16%; left: -7%; }
@media (max-width: 900px) {
  .chip-ig { left: auto; right: 4%; bottom: -4%; }
}
/* on phones the chip lands on top of the reel row — park it over the chart card */
@media (max-width: 620px) {
  .chip-ig { right: 10px; bottom: auto; top: 96px; padding: 9px 12px; }
  .chip-ig b { font-size: .95rem; }
  .ig-reels { gap: 8px; }
}

/* Reel thumbnail tiles (filled, with play + views) */
.reel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 9 / 14;
  background: linear-gradient(150deg, #232327, #121214);
}
.reel::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 25% 10%, rgba(255,255,255,.14), transparent 55%);
}
.reel:nth-child(2) { background: linear-gradient(150deg, #2a2a2f, #161618); }
.reel:nth-child(3) { background: linear-gradient(150deg, #1d1d20, #0f0f11); }
.reel:nth-child(4) { background: linear-gradient(150deg, #303036, #18181b); }
.reel__play {
  position: absolute; top: 9px; right: 9px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,0,0,.45); backdrop-filter: blur(4px);
  display: grid; place-items: center;
}
.reel__play svg { width: 9px; height: 9px; fill: #fff; }
.reel__views {
  position: absolute; left: 8px; bottom: 8px;
  display: flex; align-items: center; gap: 4px;
  font-size: .66rem; font-weight: 500; color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.reel__views svg { width: 10px; height: 10px; fill: #fff; }
/* real cover image inside a phone reel tile */
.reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.reel::before { z-index: 0; }
.reel::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.08) 45%, rgba(0,0,0,.6)); }
.reel__play, .reel__views { z-index: 2; }

/* ===================== Reels-style work cards (real covers) ===================== */
.reels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.reel-card {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .4s var(--ease), transform .55s var(--ease);
}
.reel-card:hover { border-color: var(--line-2); transform: translateY(-5px); }
.reel-card img,
.reel-card video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.reel-card:hover img { transform: scale(1.06); }

/* Muted hover preview stacked over the poster */
.reel-card__preview {
  z-index: 1;
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.reel-card.is-previewing .reel-card__preview { opacity: 1; }
.reel-card.is-previewing img { transform: scale(1.06); }
.reel-card__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8,8,8,.45) 0%, rgba(8,8,8,0) 26%, rgba(8,8,8,.08) 52%, rgba(8,8,8,.9) 100%);
}
.reel-card__top {
  position: absolute; z-index: 2;
  top: 14px; left: 14px; right: 14px;
  display: flex; gap: 7px; flex-wrap: wrap;
}
.reel-card__top .tag {
  background: rgba(8,8,8,.5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-color: rgba(255,255,255,.18);
  color: #fff;
}
.reel-card__play {
  position: absolute; z-index: 2; inset: 0; margin: auto;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: scale(.85);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.reel-card:hover .reel-card__play { opacity: 1; transform: scale(1); }
.reel-card__play svg { width: 20px; height: 20px; fill: #fff; margin-left: 3px; }
.reel-card__meta { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 18px; }
.reel-card__meta .cat { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.72); margin-bottom: 6px; }
.reel-card__meta h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.04; color: #fff; }
.reel-card__meta h3 .serif { display: block; font-size: .62em; color: rgba(255,255,255,.7); margin-top: 3px; }
@media (max-width: 1024px) { .reels-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  {
  .reels-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .reel-card__meta h3 { font-size: 1.02rem; }
  .reel-card__meta { left: 13px; right: 13px; bottom: 13px; }
  .reel-card__meta .cat { font-size: .62rem; letter-spacing: .06em; margin-bottom: 4px; }
  .reel-card__top { top: 10px; left: 10px; right: 10px; gap: 5px; }
  .reel-card__top .tag { padding: 5px 9px; font-size: .66rem; }
  .reel-card__play { width: 46px; height: 46px; }
}

/* ===================== Reel lightbox player ===================== */
.reel-lb {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: clamp(16px, 4vh, 48px) var(--gutter);
  background: rgba(6,6,7,.82);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s var(--ease);
}
.reel-lb.is-open { opacity: 1; visibility: visible; }
.reel-lb__stage {
  position: relative;
  height: min(84vh, 900px);
  aspect-ratio: 9 / 16;
  max-width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px rgba(0,0,0,.65);
  transform: scale(.94) translateY(14px);
  transition: transform .55s var(--ease);
}
.reel-lb.is-open .reel-lb__stage { transform: none; }
.reel-lb__stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-lb__caption {
  position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 18px;
  pointer-events: none;
  text-shadow: 0 2px 14px rgba(0,0,0,.7);
}
.reel-lb__caption .cat { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.72); margin-bottom: 5px; }
.reel-lb__caption h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -.02em; color: #fff; }

/* Caption fades away while the reel plays, returns on hover / pause.
   Close + sound stay put — they must always be reachable on touch. */
.reel-lb__caption { transition: opacity .4s var(--ease); }
.reel-lb__stage.is-idle .reel-lb__caption { opacity: 0; }
.reel-lb__stage.is-idle:hover .reel-lb__caption { opacity: 1; }

.reel-lb__btn {
  position: absolute; z-index: 3;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10,10,10,.55);
  border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff; cursor: pointer;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.reel-lb__btn:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }
.reel-lb__btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reel-lb__close { top: 14px; right: 14px; }
.reel-lb__sound { top: 14px; left: 14px; }
.reel-lb__nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
}
.reel-lb__nav:hover { transform: translateY(-50%) scale(1.06); }
.reel-lb__prev { left: clamp(12px, 4vw, 48px); }
.reel-lb__next { right: clamp(12px, 4vw, 48px); }

.reel-lb__bar {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  height: 3px; background: rgba(255,255,255,.16);
}
.reel-lb__bar i { display: block; height: 100%; width: 0; background: var(--accent); }

@media (max-width: 720px) {
  .reel-lb { padding: 0; }
  .reel-lb__stage { height: 100vh; height: 100dvh; width: 100%; border-radius: 0; border: 0; aspect-ratio: auto; }
  .reel-lb__stage video { object-fit: contain; background: #000; }
  .reel-lb__nav { width: 42px; height: 42px; background: rgba(10,10,10,.5); }
  .reel-lb__prev { left: 8px; }
  .reel-lb__next { right: 8px; }
  .reel-lb__caption { bottom: 26px; }
}
body.lb-open { overflow: hidden; }

/* photo avatars in testimonials */
.tcard__who .av { overflow: hidden; }
.tcard__who .av img { width: 100%; height: 100%; object-fit: cover; }

/* clients handle row */
.clients-row { margin-top: clamp(40px, 6vw, 64px); display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.clients-row__label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); }
.clients-row__list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 0; max-width: 860px; }
.clients-row__list a { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.05rem, 1.7vw, 1.45rem); color: var(--text-dim); letter-spacing: -.01em; transition: color .25s var(--ease); }
.clients-row__list a:hover { color: var(--text); }
.clients-row__list a::after { content: "·"; margin: 0 16px; color: var(--text-mute); }
.clients-row__list a:last-child::after { content: ""; margin: 0; }

/* Performance ring (web design) */
.perf-ring { position: relative; width: 64px; height: 64px; flex: none; }
.perf-ring svg { transform: rotate(-90deg); }
.perf-ring__bg { fill: none; stroke: var(--line-2); stroke-width: 5; }
.perf-ring__fg {
  fill: none; stroke: var(--text); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 175.9;
  stroke-dashoffset: 175.9;
}
[data-reveal].in .perf-ring__fg,
.in .perf-ring__fg { animation: ring 1.6s var(--ease-out) .4s forwards; }
@keyframes ring { to { stroke-dashoffset: 6; } }
.perf-ring__val {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--f-display); font-weight: 600; font-size: 1.1rem;
  line-height: 1; letter-spacing: -.02em;
}

/* ------------------------------ Work ----------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.work {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .4s var(--ease), transform .5s var(--ease);
}
.work:hover { border-color: var(--line-2); transform: translateY(-4px); }
.work__media {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
}
.work__viz {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(255,255,255,.08), transparent 55%),
    linear-gradient(160deg, #161618, #0d0d0e);
}
.work__viz .big {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
}
.work__viz .big .serif { display: block; font-size: .55em; color: var(--text-dim); }
.work:hover .work__viz { transform: scale(1.03); transition: transform .8s var(--ease); }
.work__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
}
.work__meta h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
.work__meta .cat { font-size: .85rem; color: var(--text-mute); margin-top: 3px; }
.work__result {
  text-align: right;
  flex: none;
}
.work__result b { font-family: var(--f-display); font-size: 1.5rem; display: block; letter-spacing: -0.03em; }
.work__result span { font-size: .78rem; color: var(--text-mute); }
.work__tagrow { position: absolute; top: 16px; left: 16px; display: flex; gap: 7px; z-index: 3; }
.work__tagrow .tag { background: rgba(10,10,10,.55); backdrop-filter: blur(8px); }

/* Work card visualization */
.work__viz { display: flex; flex-direction: column; padding: 24px; align-items: stretch; justify-content: flex-start; }
.work__viz-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-top: 24px; }
.work__brand { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -.03em; }
.work__brand .serif { display: block; font-size: .6em; color: var(--text-dim); margin-top: 2px; }
.work__kpi {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .74rem; color: var(--text);
  padding: 5px 10px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-2); background: rgba(255,255,255,.04);
}
.work__kpi svg { width: 11px; height: 11px; }
.work__chart { margin-top: auto; width: 100%; height: 96px; display: block; }
/* bar variant */
.work__bars { margin-top: auto; display: flex; align-items: flex-end; gap: 7px; height: 96px; }
.work__bars i {
  flex: 1; border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--text), rgba(242,240,234,.25));
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .9s var(--ease-out);
}
[data-reveal].in .work__bars i,
.in .work__bars i { transform: scaleY(1); }
.work__bars i:nth-child(1){ transition-delay:.05s } .work__bars i:nth-child(2){ transition-delay:.12s }
.work__bars i:nth-child(3){ transition-delay:.19s } .work__bars i:nth-child(4){ transition-delay:.26s }
.work__bars i:nth-child(5){ transition-delay:.33s } .work__bars i:nth-child(6){ transition-delay:.4s }
.work__bars i:nth-child(7){ transition-delay:.47s } .work__bars i:nth-child(8){ transition-delay:.54s }

/* ------------------------------ Process -------------------------------- */
.process {
  display: grid;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 30px;
  align-items: center;
  padding: clamp(26px, 3.4vw, 40px) 6px;
  border-top: 1px solid var(--line);
  transition: padding-left .4s var(--ease);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step:hover { padding-left: 20px; }
.step__num {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  color: var(--text-mute);
  letter-spacing: -0.02em;
}
.step__main h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); letter-spacing: -0.03em; }
.step__main p { color: var(--text-dim); margin-top: 8px; max-width: 60ch; }
.step__tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; max-width: 280px; }
@media (max-width: 760px) {
  .step { grid-template-columns: 54px 1fr; }
  .step__tags { display: none; }
}

/* ------------------------------ Stats ---------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--line);
}
.stat {
  background: var(--bg);
  padding: clamp(28px, 4vw, 46px) clamp(20px,3vw,32px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat b {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat span { color: var(--text-mute); font-size: .95rem; }
.stat__spark { margin-top: 18px; width: 100%; height: 40px; display: block; opacity: .55; }
.stat__spark .chart-line { stroke-width: 2; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ------------------------------ Testimonials --------------------------- */
.tcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tcard {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .4s var(--ease), transform .5s var(--ease);
}
.tcard:hover { border-color: var(--line-2); transform: translateY(-4px); }
.tcard.is-feature { grid-column: span 1; }
.tcard__stars { color: var(--text); letter-spacing: 2px; margin-bottom: 18px; font-size: .9rem; }
.tcard p { font-size: 1.08rem; line-height: 1.5; color: var(--text); letter-spacing: -0.01em; }
.tcard__who { display: flex; align-items: center; gap: 13px; margin-top: auto; padding-top: 26px; }
.tcard__who .av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg,#2c2c30,#48484c); flex: none; display: grid; place-items: center; font-weight: 600; font-size: .9rem; }
.tcard__who b { font-weight: 500; display: block; font-size: .98rem; }
.tcard__who span { font-size: .84rem; color: var(--text-mute); }

/* ------------------------------ FAQ ------------------------------------ */
.faq-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(34px, 5vw, 70px);
  align-items: start;
}
.faq { display: grid; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 4px;
  text-align: left;
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
.faq__icon { position: relative; width: 18px; height: 18px; flex: none; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: var(--text);
  left: 50%; top: 50%;
}
.faq__icon::before { width: 16px; height: 1.6px; transform: translate(-50%,-50%); }
.faq__icon::after { width: 1.6px; height: 16px; transform: translate(-50%,-50%); transition: transform .35s var(--ease); }
.faq__item.is-open .faq__icon::after { transform: translate(-50%,-50%) scaleY(0); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}
.faq__a > div { overflow: hidden; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a p { padding: 0 4px 28px; color: var(--text-dim); max-width: 60ch; }
@media (max-width: 820px) { .faq-wrap { grid-template-columns: 1fr; } }

/* ------------------------------ CTA ------------------------------------ */
.cta {
  position: relative;
  text-align: center;
  border-radius: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  background:
    radial-gradient(100% 120% at 50% 0%, rgba(255,255,255,.08), transparent 60%),
    var(--surface);
  padding: clamp(50px, 8vw, 110px) clamp(24px, 5vw, 80px);
  overflow: hidden;
}
.cta h2 { max-width: 18ch; margin: 0 auto 22px; }
.cta p { max-width: 50ch; margin: 0 auto; color: var(--text-dim); }
.cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.cta__glow {
  position: absolute; left: 50%; top: -40%;
  width: 700px; height: 500px; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,255,255,.1), transparent 70%);
  pointer-events: none;
}

/* ------------------------------ Footer --------------------------------- */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding-top: clamp(56px, 7vw, 90px);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: clamp(48px, 6vw, 80px);
}
.footer__brand img { height: 30px; margin-bottom: 22px; }
.footer__brand p { color: var(--text-dim); max-width: 34ch; }
.footer__brand .socials { display: flex; gap: 10px; margin-top: 26px; }
.footer__brand .socials a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.footer__brand .socials a:hover { background: var(--text); border-color: var(--text); transform: translateY(-3px); }
.footer__brand .socials a:hover svg { stroke: var(--black); }
.footer__brand .socials svg { width: 18px; height: 18px; stroke: var(--text); transition: stroke .3s var(--ease); }
.footer__col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-mute); margin-bottom: 20px; font-weight: 500; }
.footer__col a { display: block; padding: 7px 0; color: var(--text-dim); transition: color .25s var(--ease); }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  color: var(--text-mute);
  font-size: .9rem;
}
.footer__bottom a { color: var(--text-mute); transition: color .25s var(--ease); }
.footer__bottom a:hover { color: var(--text); }
/* ------------------------- Page header (subpages) ---------------------- */
.page-head {
  padding-top: clamp(150px, 18vh, 220px);
  padding-bottom: clamp(30px, 5vw, 60px);
  text-align: center;
}
.page-head .eyebrow { margin-bottom: 22px; }
.page-head h1 { max-width: 18ch; margin: 0 auto; }
.page-head p { margin: 24px auto 0; }

/* ------------------------------ Contact -------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(34px, 5vw, 70px);
  align-items: start;
}
.contact-info .ci-item { padding: 22px 0; border-top: 1px solid var(--line); }
.contact-info .ci-item:last-child { border-bottom: 1px solid var(--line); }
.contact-info .ci-item h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-mute); margin-bottom: 10px; font-weight: 500; }
.contact-info .ci-item a, .contact-info .ci-item p { font-family: var(--f-display); font-size: 1.3rem; letter-spacing: -0.02em; }
.form {
  padding: clamp(28px, 4vw, 42px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .88rem; color: var(--text-dim); margin-bottom: 9px; }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 13px;
  padding: 14px 16px;
  color: var(--text);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--line-3); background-color: var(--surface);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field textarea { resize: vertical; min-height: 130px; }
/* Selects: strip native chrome so they match the text inputs (size, height, color) */
.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2376746E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 16px;
}
/* Show the empty/default option muted, like the inputs' placeholders */
.field select:has(option[value=""]:checked) { color: var(--text-mute); }
.field select option { color: var(--text); background: var(--surface-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__note { font-size: .85rem; color: var(--text-mute); margin-top: 16px; text-align: center; }
.form__ok {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 13px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.04);
  font-size: .92rem;
}
.form__ok.show { display: block; }

.form__err {
  display: none;
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 13px;
  border: 1px solid rgba(255,120,110,.38);
  background: rgba(255,120,110,.08);
  color: #ffb3ac;
  font-size: .92rem;
}
.form__err.show { display: block; }

/* Honeypot — off-screen for bots, invisible to humans and screen readers.
   Logical inset, not `left`: in an RTL document a negative `left` parks it in
   the scrollable direction and drags 10,000px of horizontal overflow along. */
.hp {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ------------------------- Scroll progress bar ------------------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 200;
  background: linear-gradient(90deg, rgba(242,240,234,.4), var(--text));
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* ------------------------- Hero entrance animation --------------------- */
@keyframes lineRise {
  from { transform: translateY(115%); }
  to   { transform: translateY(0); }
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(34px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .1em; }
.hero h1 .line > span { display: block; transform: translateY(115%); }
.hero h1 .line:nth-child(1) > span { animation: lineRise 1s var(--ease-out) .12s forwards; }
.hero h1 .line:nth-child(2) > span { animation: lineRise 1s var(--ease-out) .26s forwards; }

.hero-anim { opacity: 0; animation: heroFade .9s var(--ease-out) forwards; }
.hero__top.hero-anim    { animation-delay: .04s; }
.hero__sub.hero-anim    { animation-delay: .5s; }
.hero__cta.hero-anim    { animation-delay: .62s; }
.hero__avatars.hero-anim{ animation-delay: .74s; }

@media (prefers-reduced-motion: reduce) {
  .hero h1 .line > span { transform: none; animation: none; }
  .hero-anim { opacity: 1; animation: none; }
}

/* ------------------------- Word-by-word reveal ------------------------- */
.w { display: inline-block; }
[data-split] .w {
  opacity: 0;
  transform: translateY(0.55em);
  transition: opacity .7s var(--ease-out), transform .85s var(--ease-out);
}
[data-split].in .w { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-split] .w { opacity: 1; transform: none; }
}

/* ------------------------- Scroll reveal ------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(3px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out);
}
[data-reveal].in { opacity: 1; transform: none; filter: blur(0); }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }
[data-reveal][data-delay="5"] { transition-delay: .4s; }

/* ------------------------------ Responsive ----------------------------- */
@media (max-width: 1080px) {
  .svc { grid-column: span 6; }
  .svc--wide { grid-column: span 6; }
  /* must be restated — the .svc rule above sits later in the file than
     .svc--feature and would otherwise squeeze it into a half-width card */
  .svc--feature { grid-column: span 12; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}
@media (max-width: 900px) {
  .nav__menu { display: none; }
  /* with the centre menu hidden the 3-col grid would leave the actions floating
     mid-pill — drop to logo | actions so they sit on the two edges */
  .nav__inner { grid-template-columns: 1fr auto; gap: 14px; padding: 8px 8px 8px 18px; }
  .nav__right .btn--ghost { display: none; }
  .nav__burger { display: grid; place-items: center; }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature--rev .feature__media { order: 0; }
  .work-grid { grid-template-columns: 1fr; }
  .tcards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .svc, .svc--wide, .svc--feature { grid-column: span 12; min-height: 0; }
  .hero__badge { font-size: .8rem; }

  /* --- nav bar --- */
  .nav { padding: 10px 14px; }
  .nav__inner { padding: 7px 7px 7px 14px; gap: 10px; }
  .nav__logo img { height: 23px; }
  .nav__right { gap: 8px; --ctl-h: 36px; }
  .nav__right .btn--sm { --btn-pad-x: 15px; font-size: .87rem; }
  .nav__burger { width: 40px; height: 40px; }
  .nav__right .lang { padding-inline: 11px; gap: 7px; font-size: .82rem; }

  /* --- hero --- */
  .hero { padding-top: clamp(112px, 15vh, 160px); }
  .hero__badge { padding: 6px 6px 6px 13px; gap: 8px; }
  .hero__badge .pill { font-size: .72rem; padding: 3px 9px; }
  .hero__cta { flex-direction: column; align-items: center; gap: 12px; }
  .hero__cta .btn { width: 100%; max-width: 320px; }
  .hero__avatars { flex-direction: column; gap: 12px; text-align: center; }

  /* --- misc --- */
  .page-head { padding-top: clamp(124px, 16vh, 170px); }
  .stat { padding: 26px 20px; }
  .stat b { font-size: 2.4rem; }
  .stat__spark { height: 32px; margin-top: 14px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 400px) {
  .hero__badge { font-size: .76rem; }
  .page-head { padding-top: 120px; }
  .reel-card__top .tag { padding: 4px 8px; font-size: .62rem; }
  .reel-card__meta h3 { font-size: .95rem; }

  /* --- browser mockup: its nav row is the widest thing on the page --- */
  .browser__bar { padding: 11px 12px; }
  .browser__viewport { padding: 14px; gap: 12px; }
  .bw-pills { gap: 9px; }
  .bw-pills i { width: 22px; }
  .bw-pills .bw-cta { width: 46px; height: 21px; }
  .bw-btnrow i:first-child { width: 76px; }
  .bw-btnrow i:last-child { width: 62px; }

  /* --- growth card: same story with the header row --- */
  .growth-card { padding: 17px; }
  .growth-card__top { gap: 10px; margin-bottom: 16px; }
  .growth-card__av { width: 38px; height: 38px; }
  .growth-card__id b { font-size: .92rem; }
  .growth-card__id span { font-size: .72rem; }
  .growth-card__follow b { font-size: 1.3rem; }
  .growth-card__follow .delta { font-size: .7rem; padding: 2px 7px; }
  .growth-card__foot { margin-top: 14px; padding-top: 14px; }
  /* park the floating chip over the flat left half of the chart instead of
     on top of the follower count */
  .chip-ig { left: 10px; right: auto; top: 128px; }
}

@media (max-width: 360px) {
  .stats { grid-template-columns: 1fr; }
  .nav__logo img { height: 21px; }
  .nav__right { --ctl-h: 34px; }
  .nav__right .btn--sm { --btn-pad-x: 13px; font-size: .84rem; }
  /* last squeeze — flag + 2-letter label still fits beside the CTA */
  .nav__right .lang { padding-inline: 10px; gap: 6px; font-size: .8rem; }
}
