@import url('/assets/fonts/fonts.css');

/* =========================================================================
   MVP — design tokens
   Light is the primary theme; dark is a full re-mapping of the same tokens,
   so every component below is written once and works in both.
   ========================================================================= */

:root {
  /* Brand ------------------------------------------------------------- */
  --brand:          #AB000A;   /* sampled from the MVP wordmark */
  --brand-deep:     #7E0008;
  --brand-bright:   #D7111D;
  --brand-ink:      #FFFFFF;   /* text that sits on --brand */

  /* Surfaces ---------------------------------------------------------- */
  --bg:             #FFFFFF;
  --bg-alt:         #F7F5F4;   /* warm off-white, not grey */
  --bg-sunk:        #EFECEA;
  --card:           #FFFFFF;
  --card-alt:       #FBFAF9;
  --line:           #E4DFDC;
  --line-strong:    #CFC8C4;

  /* Type -------------------------------------------------------------- */
  --ink:            #14110F;
  --ink-2:          #4A4440;
  --ink-3:          #7C736D;
  --ink-invert:     #FFFFFF;

  /* Effects ----------------------------------------------------------- */
  --shadow-sm:  0 1px 2px rgba(20,17,15,.05), 0 2px 8px rgba(20,17,15,.04);
  --shadow-md:  0 2px 6px rgba(20,17,15,.06), 0 12px 32px rgba(20,17,15,.07);
  --shadow-lg:  0 4px 12px rgba(20,17,15,.07), 0 28px 64px rgba(20,17,15,.11);
  --shadow-brand: 0 10px 30px rgba(171,0,10,.22);
  --tint:       rgba(171,0,10,.06);
  --glass:      rgba(255,255,255,.72);

  /* Geometry ---------------------------------------------------------- */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --nav-h: 76px;

  /* Rhythm ------------------------------------------------------------ */
  --s-section: clamp(72px, 9vw, 136px);
  --ease: cubic-bezier(.22, 1, .36, 1);

  color-scheme: light;
}

[data-theme="dark"] {
  --brand:          #F02A33;
  --brand-deep:     #AB000A;
  --brand-bright:   #FF4A52;
  --brand-ink:      #FFFFFF;

  --bg:             #0B0A0A;
  --bg-alt:         #131111;
  --bg-sunk:        #1A1716;
  --card:           #151212;
  --card-alt:       #1B1817;
  --line:           #2B2625;
  --line-strong:    #3D3634;

  --ink:            #F6F3F1;
  --ink-2:          #BFB7B2;
  --ink-3:          #8C827C;
  --ink-invert:     #0B0A0A;

  --shadow-sm:  0 1px 2px rgba(0,0,0,.4);
  --shadow-md:  0 2px 8px rgba(0,0,0,.45), 0 16px 40px rgba(0,0,0,.4);
  --shadow-lg:  0 6px 18px rgba(0,0,0,.5), 0 32px 72px rgba(0,0,0,.55);
  --shadow-brand: 0 10px 30px rgba(240,42,51,.26);
  --tint:       rgba(240,42,51,.11);
  --glass:      rgba(11,10,10,.72);

  color-scheme: dark;
}

/* =========================================================================
   Reset & base
   ========================================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-feature-settings: 'cv05' 1, 'ss01' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}

body.is-locked { overflow: hidden; }

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 {
  font-family: 'Archivo', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.032em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

::selection { background: var(--brand); color: var(--brand-ink); }

/* Arabic pull-quotes fall back to whatever Naskh face the device has; shipping
   an Arabic webfont for two lines is not worth the download. */
[lang="ar"] {
  font-family: 'Noto Naskh Arabic', 'Geeza Pro', 'Segoe UI', Tahoma, 'Arial', sans-serif;
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================================
   Layout primitives
   ========================================================================= */

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

.section { padding-block: var(--s-section); position: relative; }
.section--tight { padding-block: clamp(52px, 6vw, 88px); }
.section--alt  { background: var(--bg-alt); }
.section--sunk { background: var(--bg-sunk); }

.section--ink {
  background: var(--ink);
  color: var(--ink-invert);
}
.section--ink .eyebrow { color: rgba(255,255,255,.62); }
.section--ink .lede,
.section--ink .muted { color: rgba(255,255,255,.72); }

.section--brand {
  background: linear-gradient(145deg, var(--brand-deep), var(--brand) 55%, var(--brand-bright));
  color: var(--brand-ink);
}
.section--brand .eyebrow { color: rgba(255,255,255,.7); }
.section--brand .lede { color: rgba(255,255,255,.86); }

.grid { display: grid; gap: clamp(20px, 2.6vw, 34px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* =========================================================================
   Typography helpers
   ========================================================================= */

.display  { font-size: clamp(2.9rem, 8.2vw, 6.4rem); }
.h1       { font-size: clamp(2.5rem, 6.2vw, 4.6rem); }
.h2       { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.h3       { font-size: clamp(1.35rem, 2.1vw, 1.85rem); letter-spacing: -.024em; }
.h4       { font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 700; letter-spacing: -.018em; }

.serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
}

.accent { color: var(--brand); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 20px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.lede {
  font-size: clamp(1.05rem, 1.45vw, 1.22rem);
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 62ch;
}

.muted { color: var(--ink-3); }
.small { font-size: .9rem; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 68px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head--center .lede { margin-inline: auto; }
.section-head .lede { margin-top: 22px; }

.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}

/* =========================================================================
   Buttons
   ========================================================================= */

.btn {
  --btn-bg: var(--brand);
  --btn-fg: var(--brand-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: 'Archivo', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--brand-deep);
  transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-brand); }
.btn:hover::after { transform: translateY(0); }
.btn:active { transform: translateY(0); }

.btn .arw { transition: transform .4s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost::after { background: var(--ink); }
.btn--ghost:hover { color: var(--bg); border-color: var(--ink); box-shadow: var(--shadow-md); }

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--brand);
}
.btn--light::after { background: rgba(255,255,255,.82); }

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn--outline-light::after { background: #fff; }
.btn--outline-light:hover { color: var(--brand); border-color: #fff; }

.btn--lg { padding: 18px 38px; font-size: 1rem; }
.btn--sm { padding: 11px 22px; font-size: .86rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Text link with an animated rule */
.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--brand);
  position: relative;
  padding-bottom: 2px;
}
.link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.link:hover::after { transform: scaleX(1); transform-origin: left; }
.link .arw { transition: transform .4s var(--ease); }
.link:hover .arw { transform: translateX(4px); }

/* =========================================================================
   Header / navigation
   ========================================================================= */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; flex: 0 0 auto; }

/* The wordmark is a single traced path masked by CSS, so it takes its colour
   from the theme instead of shipping a second bitmap for dark mode. */
.brand__mark {
  display: block;
  width: var(--mark-w, 94px);
  aspect-ratio: 2400 / 1040;
  background-color: var(--brand);
  -webkit-mask: url('/assets/img/logo.svg') no-repeat center / contain;
          mask: url('/assets/img/logo.svg') no-repeat center / contain;
  transition: background-color .35s var(--ease);
}
[data-theme="dark"] .brand__mark { background-color: #fff; }

@supports not (mask-image: url('/assets/img/logo.svg')) {
  .brand__mark {
    background: url('/assets/img/logo.webp') no-repeat center / contain;
  }
  [data-theme="dark"] .brand__mark {
    background-image: url('/assets/img/logo-white.webp');
  }
}

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }

.nav__link {
  font-family: 'Archivo', sans-serif;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 600; }

.header__actions { display: flex; align-items: center; gap: 12px; }

.icon-btn {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .3s var(--ease), transform .3s var(--ease), background-color .3s var(--ease);
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }

.theme-toggle .ico-sun  { display: none; }
[data-theme="dark"] .theme-toggle .ico-sun  { display: block; }
[data-theme="dark"] .theme-toggle .ico-moon { display: none; }

.burger { display: none; }
.burger__close { display: none; }
.burger[aria-expanded="true"] { border-color: var(--brand); color: var(--brand); }
.burger[aria-expanded="true"] .burger__open  { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

/* Mobile drawer ---------------------------------------------------------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  padding: calc(var(--nav-h) + 32px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .5s var(--ease), visibility .5s;
}
.drawer.is-open { transform: translateY(0); visibility: visible; }
.drawer a {
  font-family: 'Archivo', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.03em;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
}
.drawer a .arw { color: var(--brand); opacity: .5; }
.drawer__foot { margin-top: auto; padding-top: 28px; color: var(--ink-3); font-size: .95rem; }
.drawer__foot a { font-size: 1rem; border: 0; padding: 4px 0; font-family: 'Inter', sans-serif; font-weight: 500; }

/* =========================================================================
   Hero
   ========================================================================= */

.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 112px));
  padding-bottom: clamp(48px, 6vw, 88px);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero__glow--a {
  width: min(52vw, 620px); aspect-ratio: 1;
  top: -14%; right: -10%;
  background: radial-gradient(circle, rgba(171,0,10,.17), transparent 68%);
}
.hero__glow--b {
  width: min(40vw, 460px); aspect-ratio: 1;
  bottom: -18%; left: -12%;
  background: radial-gradient(circle, rgba(171,0,10,.1), transparent 70%);
}
[data-theme="dark"] .hero__glow--a { background: radial-gradient(circle, rgba(240,42,51,.22), transparent 68%); }
[data-theme="dark"] .hero__glow--b { background: radial-gradient(circle, rgba(240,42,51,.14), transparent 70%); }

.hero__inner { position: relative; z-index: 1; }

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}
.hero__tag b {
  background: var(--tint);
  color: var(--brand);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .78rem;
}

.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: 28px; font-size: clamp(1.08rem, 1.6vw, 1.3rem); max-width: 56ch; }

.hero__meta {
  margin-top: clamp(48px, 6vw, 76px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.hero__meta div strong {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
}
.hero__meta div span { font-size: .82rem; color: var(--ink-3); display: block; margin-top: 8px; letter-spacing: .02em; }

/* =========================================================================
   Marquee
   ========================================================================= */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-alt);
  padding-block: 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: slide 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink-2);
  white-space: nowrap;
}
.marquee__item::after {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  flex: 0 0 auto;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* =========================================================================
   Media / video cards
   ========================================================================= */

.media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-sunk);
}
.media img { width: 100%; height: 100%; object-fit: cover; }

.media--ratio-16x9 { aspect-ratio: 16 / 9; }
.media--ratio-4x5  { aspect-ratio: 4 / 5; }
.media--ratio-4x3  { aspect-ratio: 4 / 3; }
.media--ratio-3x4  { aspect-ratio: 3 / 4; }
.media--ratio-21x9 { aspect-ratio: 21 / 9; }

.video {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #0B0A0A;
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
}
.video img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease), opacity .4s var(--ease);
}
.video:hover img { transform: scale(1.035); opacity: .88; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.video__play span {
  width: clamp(58px, 7vw, 84px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--brand);
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
  transition: transform .45s var(--ease), background-color .3s var(--ease);
}
.video:hover .video__play span { transform: scale(1.1); background: #fff; }
.video__play svg { width: 34%; height: 34%; margin-left: 10%; }

.video__label {
  position: absolute;
  left: 20px; bottom: 18px;
  z-index: 2;
  color: #fff;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  letter-spacing: -.02em;
  text-shadow: 0 2px 16px rgba(0,0,0,.6);
  pointer-events: none;
}
.video__label small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: .78rem;
  opacity: .78;
  letter-spacing: .02em;
  margin-top: 3px;
}
.video.is-playing .video__play,
.video.is-playing .video__label { display: none; }

/* =========================================================================
   Split / about
   ========================================================================= */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}
.split--rev > :first-child { order: 2; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stat strong {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--brand);
}
.stat span { font-size: .85rem; color: var(--ink-3); display: block; margin-top: 8px; }

/* =========================================================================
   Service cards
   ========================================================================= */

.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

.svc__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--bg-sunk); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.svc:hover .svc__media img { transform: scale(1.07); }

.svc__num {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--brand);
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: .82rem;
}

.svc__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.svc__body h3 { margin-bottom: 12px; }
.svc__body p { color: var(--ink-2); font-size: .97rem; line-height: 1.65; }
.svc__body .link { margin-top: auto; padding-top: 22px; }

/* Numbered list variant used on the services page */
.svc-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
  padding-block: clamp(32px, 4vw, 52px);
  border-top: 1px solid var(--line);
}
.svc-row__num {
  font-family: 'Archivo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .04em;
  padding-top: 6px;
}
.svc-row h3 { margin-bottom: 16px; }
.svc-row p { color: var(--ink-2); max-width: 60ch; }
.svc-row ul {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.svc-row ul li {
  font-size: .83rem;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}
.svc-row .media { border-radius: var(--r-md); }

/* =========================================================================
   Work cards
   ========================================================================= */

.work-card {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-sunk);
  isolation: isolate;
}
.work-card__img { aspect-ratio: 4 / 3; }
.work-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.work-card:hover .work-card__img img { transform: scale(1.06); }

.work-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,8,8,.92) 0%, rgba(10,8,8,.55) 32%, rgba(10,8,8,.08) 68%, rgba(10,8,8,0) 100%);
  z-index: 1;
  transition: opacity .5s var(--ease);
}
.work-card:hover::after { opacity: .92; }

.work-card__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: clamp(22px, 3vw, 34px);
  color: #fff;
}
.work-card__body .cat {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  margin-bottom: 10px;
  display: block;
}
.work-card__body h3 { color: #fff; }
.work-card__body p {
  color: rgba(255,255,255,.8);
  font-size: .95rem;
  margin-top: 10px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .55s var(--ease), opacity .45s var(--ease), margin-top .55s var(--ease);
}
.work-card:hover .work-card__body p { max-height: 8em; opacity: 1; }

.work-card--tall .work-card__img { aspect-ratio: 3 / 4; }
.work-card--wide .work-card__img { aspect-ratio: 16 / 10; }

/* Case study block (work page) ------------------------------------------ */
.case { padding-block: clamp(56px, 7vw, 104px); border-top: 1px solid var(--line); }
.case:first-of-type { border-top: 0; padding-top: 0; }

.case__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.case__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.case__meta span {
  font-size: .8rem;
  font-weight: 500;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--card);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 14px;
}
.gallery__item {
  position: relative;
  border: 0;
  padding: 0;
  margin: 0;
  background: var(--bg-sunk);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 16 / 9;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); opacity: .9; }
.gallery__item--lead { grid-column: 1 / -1; aspect-ratio: 21 / 9; }

/* =========================================================================
   Feature / process list
   ========================================================================= */

.feature {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease), background-color .5s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature__ico {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--tint);
  color: var(--brand);
  margin-bottom: 22px;
}
.feature__ico svg { width: 22px; height: 22px; }
.feature h4 { margin-bottom: 10px; }
.feature p { color: var(--ink-2); font-size: .95rem; line-height: 1.6; }

.step { position: relative; padding-top: 30px; border-top: 2px solid var(--line); }
.step__n {
  font-family: 'Archivo', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--brand);
  display: block;
  margin-bottom: 14px;
}
.step h4 { margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: .94rem; }
.step::before {
  content: '';
  position: absolute;
  top: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--brand);
  transition: width .9s var(--ease);
}
.step.is-visible::before { width: 100%; }

/* =========================================================================
   Team
   ========================================================================= */

.person { position: relative; }
.person__img {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-sunk);
  margin-bottom: 20px;
}
.person__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.02);
  transition: filter .6s var(--ease), transform 1s var(--ease);
}
.person:hover .person__img img { filter: grayscale(0%); transform: scale(1.04); }
.person__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(171,0,10,.3), transparent 55%);
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.person:hover .person__img::after { opacity: 1; }
.person h4 { font-size: 1.1rem; }
.person .role { color: var(--brand); font-size: .85rem; font-weight: 600; margin-top: 4px; }
.person .bio { color: var(--ink-3); font-size: .9rem; margin-top: 12px; line-height: 1.6; }

/* =========================================================================
   Pricing
   ========================================================================= */

.plan {
  display: flex;
  flex-direction: column;
  padding: 34px 30px 36px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--card);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.plan--featured {
  background: linear-gradient(160deg, var(--brand-deep), var(--brand) 58%, var(--brand-bright));
  border-color: transparent;
  color: var(--brand-ink);
  box-shadow: var(--shadow-brand);
}
.plan--featured .plan__desc,
.plan--featured .plan__note { color: rgba(255,255,255,.8); }
.plan--featured .plan__price small { color: rgba(255,255,255,.76); }
.plan--featured .plan__list li { color: rgba(255,255,255,.92); border-color: rgba(255,255,255,.18); }
.plan--featured .plan__list svg { color: #fff; }

.plan__tag {
  align-self: flex-start;
  min-height: 26px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  margin-bottom: 18px;
}
.plan h3 { font-size: 1.3rem; letter-spacing: -.02em; }
.plan__head { min-height: 44px; display: flex; align-items: flex-end; }
.plan__price { min-height: 118px; }
.plan__price {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(2.1rem, 3.4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-top: 18px;
}
.plan__price small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: .84rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-3);
  margin-top: 6px;
}
.plan__from {
  display: block;
  min-height: 1.2em;
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.plan--featured .plan__from { color: rgba(255,255,255,.76); }
.plan__desc { color: var(--ink-2); font-size: .95rem; margin-top: 18px; line-height: 1.6; }
.plan .btn { margin-top: 26px; width: 100%; }
.plan__list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.plan__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .92rem;
  color: var(--ink-2);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.plan__list li:first-child { border-top: 0; padding-top: 0; }
.plan__list svg { width: 16px; height: 16px; color: var(--brand); flex: 0 0 auto; margin-top: 4px; }
.plan__note { margin-top: 22px; font-size: .82rem; color: var(--ink-3); }

/* =========================================================================
   Client wall
   ========================================================================= */

.clients {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
}
.client {
  display: grid;
  place-items: center;
  padding: clamp(24px, 3vw, 40px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card);
  transition: background-color .4s var(--ease);
}
.client:hover { background: var(--bg-alt); }
.client img {
  width: auto;
  max-width: 100%;
  height: clamp(42px, 4.4vw, 62px);
  object-fit: contain;
  filter: grayscale(100%) contrast(1.25) brightness(.78);
  opacity: .78;
  transition: filter .5s var(--ease), opacity .5s var(--ease), transform .5s var(--ease);
}
/* Square marks read smaller than wide wordmarks at the same height. */
.client--square img { height: clamp(52px, 5.4vw, 76px); }
[data-theme="dark"] .client img { filter: grayscale(100%) invert(1) brightness(1.5) contrast(.95); opacity: .7; }
.client:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.04); }

/* =========================================================================
   FAQ / accordion
   ========================================================================= */

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
  transition: color .3s var(--ease);
}
.faq__q:hover { color: var(--brand); }
.faq__q span {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), transform .45s var(--ease);
}
.faq__q span::before,
.faq__q span::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: opacity .3s var(--ease), background-color .3s var(--ease);
}
.faq__q span::before { width: 12px; height: 1.6px; }
.faq__q span::after  { width: 1.6px; height: 12px; }
.faq__item.is-open .faq__q span { background: var(--brand); border-color: var(--brand); color: #fff; transform: rotate(180deg); }
.faq__item.is-open .faq__q span::after { opacity: 0; }

.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { color: var(--ink-2); padding-bottom: 26px; max-width: 72ch; font-size: .98rem; }

/* =========================================================================
   Contact
   ========================================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(32px, 4.5vw, 72px);
  align-items: start;
}

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.info-list li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-list li:first-child { padding-top: 0; }
.info-list .ico {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--tint);
  color: var(--brand);
}
.info-list .ico svg { width: 19px; height: 19px; }
.info-list dt {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 5px;
}
.info-list dd { margin: 0; font-weight: 500; }
.info-list dd a:hover { color: var(--brand); }

.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-2); letter-spacing: .01em; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: .97rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-3); opacity: .75; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--tint);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: var(--brand-bright); }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C736D' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}
.form__note { font-size: .88rem; color: var(--ink-3); }

.map {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-sunk);
  aspect-ratio: 21 / 9;
}
.map iframe { width: 100%; height: 100%; border: 0; }
.map:not([data-loaded]) {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, var(--bg-sunk) 0 12px, var(--bg-alt) 12px 24px);
}
[data-theme="dark"] .map iframe { filter: invert(.92) hue-rotate(180deg) saturate(.7); }

/* =========================================================================
   CTA band
   ========================================================================= */

.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(44px, 6vw, 84px);
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 48%, var(--brand-bright) 100%);
  color: var(--brand-ink);
  text-align: center;
}
.cta::before,
.cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 68%);
  pointer-events: none;
}
.cta::before { width: 420px; aspect-ratio: 1; top: -40%; right: -8%; }
.cta::after  { width: 340px; aspect-ratio: 1; bottom: -46%; left: -6%; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { max-width: 18ch; margin-inline: auto; }
.cta p { color: rgba(255,255,255,.85); max-width: 54ch; margin: 22px auto 0; }
.cta .btn-row { justify-content: center; }

/* =========================================================================
   Footer
   ========================================================================= */

.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding-top: clamp(56px, 6vw, 84px);
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 52px;
}
.footer__brand .brand__mark { --mark-w: 108px; margin-bottom: 22px; }
.footer__brand p { color: var(--ink-2); font-size: .95rem; max-width: 34ch; }
.footer h5 {
  font-family: 'Archivo', sans-serif;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 18px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer ul a { color: var(--ink-2); font-size: .95rem; transition: color .3s var(--ease), padding-left .3s var(--ease); }
.footer ul a:hover { color: var(--brand); padding-left: 4px; }

.footer__bar {
  border-top: 1px solid var(--line);
  padding-block: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: .86rem;
  color: var(--ink-3);
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-2);
  transition: all .35s var(--ease);
}
.socials a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }

/* Floating WhatsApp ------------------------------------------------------ */
.wa {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 90;
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 28px rgba(37,211,102,.38);
  transform: translateY(16px) scale(.9);
  opacity: 0;
  pointer-events: none;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.wa.is-on { transform: none; opacity: 1; pointer-events: auto; }
.wa:hover { transform: scale(1.08); }
.wa svg { width: 27px; height: 27px; }

/* =========================================================================
   Lightbox
   ========================================================================= */

.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(8,6,6,.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.lb.is-open { opacity: 1; visibility: visible; }
.lb img {
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  border-radius: var(--r-md);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  transform: scale(.96);
  transition: transform .4s var(--ease);
}
.lb.is-open img { transform: scale(1); }
.lb__close, .lb__nav {
  position: absolute;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.lb__close:hover, .lb__nav:hover { background: var(--brand); border-color: var(--brand); transform: scale(1.06); }
.lb__close { top: clamp(14px, 3vw, 28px); right: clamp(14px, 3vw, 28px); }
.lb__nav--prev { left: clamp(10px, 2vw, 26px); top: 50%; margin-top: -23px; }
.lb__nav--next { right: clamp(10px, 2vw, 26px); top: 50%; margin-top: -23px; }
.lb__count {
  position: absolute;
  bottom: clamp(14px, 3vw, 28px);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.72);
  font-size: .85rem;
  letter-spacing: .06em;
}
.lb svg { width: 20px; height: 20px; }

/* =========================================================================
   Scroll reveal
   ========================================================================= */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

.progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 101;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--brand), var(--brand-bright));
}

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

@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: repeat(2, 1fr); }
  .svc-row { grid-template-columns: 48px minmax(0, 1fr); }
  .svc-row .media { grid-column: 2; }
}

@media (max-width: 900px) {
  .nav, .header__actions .btn { display: none; }
  .burger { display: grid; place-items: center; }
  .split, .contact-grid, .section-head--split, .case__head { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .hero__meta { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .gallery__item--lead { aspect-ratio: 16 / 9; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 34px; }
  .stat-row { grid-template-columns: 1fr; gap: 22px; }
  .hero__meta { grid-template-columns: 1fr 1fr; }
  .btn-row .btn { width: 100%; }
  .map { aspect-ratio: 4 / 3; }
  .drawer a { font-size: 1.6rem; }
}

/* =========================================================================
   Motion & print
   ========================================================================= */

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

@media print {
  .header, .drawer, .wa, .progress, .marquee, .lb { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 24px; }
}
