/* ==========================================================================
   AdEC — Modern Engineering Editorial
   ========================================================================== */

/* Self-hosted Cairo (Arabic pages) — avoids relying on Google Fonts being
   reachable at runtime; a single variable-weight file per subset. */
@font-face{
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/cairo-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face{
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/cairo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/cairo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root{
  /* Brand */
  --purple-900: #34123A;
  --purple-800: #4A1B50;
  --purple-700: #69256E;
  --purple-600: #832A8A;
  --purple-500: #A24AA9;
  --purple-100: #F4EBF6;
  --purple-050: #FBF7FC;

  /* Accents pulled from the logo mark */
  --leaf:    #5C9A44;
  --gold:    #D6A13B;
  --magenta: #C21C6E;

  /* Neutrals */
  --ink:     #16131A;
  --ink-70:  rgba(22,19,26,.7);
  --ink-45:  rgba(22,19,26,.45);
  --paper:   #FAF8FB;
  --white:   #FFFFFF;
  --line:    #E6E0EA;

  /* Type */
  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Rhythm */
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(64px, 10vw, 140px);
  --radius: 6px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

html[dir="rtl"]{
  --font-display: 'Cairo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Cairo', 'Helvetica Neue', Arial, sans-serif;
}
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4{
  font-weight: 700;
  letter-spacing: 0;
}
html[dir="rtl"] .eyebrow, html[dir="rtl"] .hero__eyebrow{ letter-spacing: 0; }

/* `ch` is measured off the Latin "0" glyph — for Cairo/Arabic it makes
   headings of different lengths wrap into wildly different numbers of
   lines, which reads as inconsistent sizing. Let these wrap against their
   real container width instead. */
html[dir="rtl"] .hero h1,
html[dir="rtl"] .story__lede,
html[dir="rtl"] .section-head h2,
html[dir="rtl"] .footer__cta h2,
html[dir="rtl"] .page-header h1,
html[dir="rtl"] .service-detail__title,
html[dir="rtl"] .inline-cta h3,
html[dir="rtl"] .project-card__title,
html[dir="rtl"] .project-card__desc{
  max-width: none;
}

/* Justify long body copy on the Arabic site only. */
html[dir="rtl"] .story__body,
html[dir="rtl"] .hero__sub,
html[dir="rtl"] .page-header p,
html[dir="rtl"] .cert__sub,
html[dir="rtl"] .footer__desc,
html[dir="rtl"] .pillar p,
html[dir="rtl"] .value-card p,
html[dir="rtl"] .project-card__desc p{
  text-align: justify;
}

/* Cairo renders visually larger than Space Grotesk at the same px size —
   scale headings down a couple of steps for RTL. */
html[dir="rtl"] .hero h1{ font-size: clamp(34px, 5.6vw, 80px); }
html[dir="rtl"] .page-header h1{ font-size: clamp(28px, 4.2vw, 54px); }
html[dir="rtl"] .story__lede{ font-size: clamp(21px, 2.3vw, 30px); }
html[dir="rtl"] .section-head h2{ font-size: clamp(24px, 3.2vw, 40px); }
html[dir="rtl"] .footer__cta h2{ font-size: clamp(22px, 3.8vw, 44px); }

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4{ margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
p{ margin: 0; }
button{ font-family: inherit; cursor: pointer; }

.container{
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--purple-700);
}
.eyebrow::before{
  content: '';
  width: 26px;
  height: 2px;
  background: var(--purple-500);
}

/* ---------- Reveal-on-scroll (subtle, no bounce) ---------- */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible{ opacity: 1; transform: none; }
.reveal-stagger > *{ transition-delay: calc(var(--i, 0) * 80ms); }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
  html{ scroll-behavior: auto; }
}

/* ==========================================================================
   Nav
   ========================================================================== */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(250,248,251,0);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), padding .35s var(--ease);
}
.nav.is-scrolled{
  background: rgba(250,248,251,.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  padding: 12px 0;
}
.nav__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo img{ height: 38px; width: auto; }
.nav__links{
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav__links a{
  position: relative;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-70);
  padding: 4px 0;
  transition: color .25s var(--ease);
}
.nav__links a::after{
  content: '';
  position: absolute;
  inset-inline-start: 0; bottom: 0;
  width: 0%;
  height: 1.5px;
  background: var(--purple-700);
  transition: width .3s var(--ease);
}
.nav__links a:hover{ color: var(--purple-700); }
.nav__links a:hover::after{ width: 100%; }

.nav__actions{ display: flex; align-items: center; gap: 18px; }
.nav__lang{
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-70);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.nav__lang:hover{ border-color: var(--purple-700); color: var(--purple-700); }

.nav__burger{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav__burger span{ width: 22px; height: 2px; background: var(--ink); transition: background .25s var(--ease); }

/* Homepage only: the nav starts on top of the dark hero photo, so it needs
   light text until you scroll past it onto the paper-colored sections. */
.nav--hero .nav__links a{ color: rgba(255,255,255,.92); }
.nav--hero .nav__links a:hover{ color: var(--purple-700); }
.nav--hero .nav__lang{ color: rgba(255,255,255,.92); border-color: rgba(255,255,255,.5); }
.nav--hero .nav__lang:hover{ border-color: var(--purple-700); color: var(--purple-700); }
.nav--hero .nav__burger span{ background: rgba(255,255,255,.92); }
.nav--hero.is-scrolled .nav__links a{ color: var(--ink-70); }
.nav--hero.is-scrolled .nav__links a:hover{ color: var(--purple-700); }
.nav--hero.is-scrolled .nav__lang{ color: var(--ink-70); border-color: var(--line); }
.nav--hero.is-scrolled .nav__lang:hover{ border-color: var(--purple-700); color: var(--purple-700); }
.nav--hero.is-scrolled .nav__burger span{ background: var(--ink); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero__media{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}
.hero__scrim{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(20,10,22,.92) 0%, rgba(20,10,22,.55) 45%, rgba(20,10,22,.25) 70%, rgba(52,18,58,.35) 100%);
}
.hero__content{
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: clamp(48px, 7vw, 96px);
  padding-top: 160px;
  color: var(--white);
}
.hero__eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--purple-500);
  margin-bottom: 22px;
}
.hero__eyebrow::before{ content:''; width: 26px; height: 2px; background: var(--purple-500); }

.hero h1{
  font-size: clamp(36px, 5.8vw, 84px);
  line-height: .98;
  max-width: 18ch;
  color: var(--white);
}
.hero h1 em{
  font-style: normal;
  color: var(--purple-500);
}

.hero__sub{
  margin-top: 28px;
  max-width: 46ch;
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(255,255,255,.78);
  line-height: 1.65;
}

.hero__row{
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn--primary{ background: var(--white); color: var(--purple-800); }
.btn--primary:hover{ transform: translateY(-2px); background: var(--purple-500); color: var(--white); }
.btn--ghost{ border-color: rgba(255,255,255,.35); color: var(--white); }
.btn--ghost:hover{ border-color: var(--white); transform: translateY(-2px); }
.btn--dark{ background: var(--purple-700); color: var(--white); }
.btn--dark:hover{ background: var(--purple-800); transform: translateY(-2px); }

.hero__scroll{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.hero__scroll-line{
  width: 1px;
  height: 34px;
  background: rgba(255,255,255,.35);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after{
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--white);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine{
  0%{ top: -100%; }
  60%{ top: 100%; }
  100%{ top: 100%; }
}

/* ==========================================================================
   Story / Stats
   ========================================================================== */
.story{
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--line);
}
.story__grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.story__lede{
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.25;
  color: var(--ink);
  max-width: 18ch;
}
.story__lede .accent{ color: var(--purple-700); }
.story__body{
  margin-top: 26px;
  color: var(--ink-70);
  font-size: 16px;
  max-width: 54ch;
}
.story__body + .story__body{ margin-top: 14px; }

.stats{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat{
  background: var(--paper);
  padding: 30px 28px;
}
.stat__num{
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 700;
  color: var(--purple-700);
  line-height: 1;
}
.stat__label{
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-45);
  letter-spacing: .02em;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services{ padding: var(--section-y) 0; }
.section-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: clamp(36px, 5vw, 64px);
  flex-wrap: wrap;
}
.section-head h2{
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.02;
  max-width: 14ch;
}
.section-head p{
  max-width: 40ch;
  color: var(--ink-45);
  font-size: 15px;
}

.service-list{ border-top: 1px solid var(--line); }
.service{
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .35s var(--ease);
}
.service:hover{ padding-inline-start: 14px; }
.service--split{ grid-template-columns: 90px 1fr auto auto; }
.service__link{ display: contents; color: inherit; text-decoration: none; }
.service__content{ display: block; }
.service__desc{
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-45);
  line-height: 1.6;
  max-width: 68ch;
}
.service__extra{
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--purple-700);
  white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.service__extra:hover{ background: var(--purple-700); color: var(--white); border-color: var(--purple-700); }
.service__num{
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--purple-500);
  font-weight: 600;
}
.service__name{
  display: block;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 600;
  transition: color .3s var(--ease);
}
.service:hover .service__name{ color: var(--purple-700); }
.service__arrow{
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .35s var(--ease);
  flex-shrink: 0;
}
.service:hover .service__arrow{
  background: var(--purple-700);
  border-color: var(--purple-700);
  transform: rotate(45deg);
}
.service__arrow svg{ width: 16px; height: 16px; stroke: var(--ink); transition: stroke .3s var(--ease); }
html[dir="rtl"] .service__arrow svg,
html[dir="rtl"] .btn svg{ transform: scaleX(-1); }
.service:hover .service__arrow svg{ stroke: var(--white); }

/* ==========================================================================
   Bento — Our Experts
   ========================================================================== */
.experts{ padding: var(--section-y) 0; background: var(--purple-050); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.bento{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.bento-card{
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  grid-column: span 2;
  grid-row: span 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.bento-card--lg{ grid-column: span 3; grid-row: span 2; padding: 30px; background: var(--purple-900); }
.bento-card--md{ grid-column: span 3; grid-row: span 1; }
.bento-card:nth-child(5n+1){ background: var(--purple-900); }
.bento-card:nth-child(5n+2){ background: var(--purple-700); }
.bento-card:nth-child(5n+3){ background: var(--ink); }
.bento-card:nth-child(5n+4){ background: var(--purple-800); }
.bento-card:nth-child(5n+5){ background: #5C1F61; }
.bento-card:hover{ transform: translateY(-4px); box-shadow: 0 18px 40px rgba(22,19,26,.18); }

.bento-card::before{
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.06), transparent 55%);
  pointer-events: none;
}

.bento-card__initial{
  position: absolute;
  inset-inline-end: -6px;
  bottom: -28px;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 110px;
  line-height: 1;
  color: rgba(255,255,255,.07);
  pointer-events: none;
  transition: color .4s var(--ease);
}
.bento-card--lg .bento-card__initial{ font-size: 160px; }
.bento-card:hover .bento-card__initial{ color: rgba(255,255,255,.13); }

.bento-card__info{
  position: relative;
  z-index: 1;
  color: var(--white);
}
.bento-card__name{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
}
.bento-card--lg .bento-card__name{ font-size: 25px; }
.bento-card__role{
  margin-top: 4px;
  font-size: 12.5px;
  color: rgba(255,255,255,.62);
  letter-spacing: .02em;
}
.bento-card__rule{
  width: 26px; height: 2px;
  background: var(--purple-500);
  margin-bottom: 14px;
  transition: width .35s var(--ease);
}
.bento-card:hover .bento-card__rule{ width: 44px; }

/* ==========================================================================
   Marquee — Clients & Partners
   ========================================================================== */
.marquee-section{ padding: var(--section-y) 0; overflow: hidden; }
.marquee-section .section-head{ margin-bottom: 40px; }
.marquee{
  position: relative;
  display: flex;
  overflow: hidden;
  -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;
  align-items: center;
  gap: 64px;
  padding-inline-end: 64px;
  animation: marquee 34s linear infinite;
  flex-shrink: 0;
}
.marquee:hover .marquee__track{ animation-play-state: paused; }
.marquee__track--reverse{ animation-direction: reverse; animation-duration: 42s; }
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-100%); }
}
.marquee img{
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1) opacity(.55);
  transition: filter .3s var(--ease);
}
.marquee img:hover{ filter: grayscale(0) opacity(1); }
.marquee-row + .marquee-row{ margin-top: 28px; }

@media (prefers-reduced-motion: reduce){
  .marquee__track{ animation: none; }
  .marquee{ overflow-x: auto; }
}

/* ==========================================================================
   Certification strip
   ========================================================================== */
.cert{
  padding: clamp(40px, 6vw, 64px) 0;
  background: linear-gradient(100deg, var(--purple-800) 0%, var(--purple-700) 45%, var(--purple-500) 100%);
}
.cert__inner{
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.cert__left{ max-width: 40ch; }
.cert__title{
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
  color: var(--white);
}
.cert__sub{
  margin-top: 6px;
  font-size: 14px;
  color: rgba(255,255,255,.75);
}

.cert__badges{
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.cert__badge-link{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
}
.cert__badge{
  width: 60px; height: 60px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
  transition: transform .3s var(--ease);
}
.cert__badge-link:hover .cert__badge{ transform: translateY(-3px); }
.cert__badge img{ width: 100%; height: 100%; object-fit: contain; }
.cert__badge-link span{
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer{ background: var(--ink); color: rgba(255,255,255,.7); padding-top: var(--section-y); }
.footer__cta{
  padding-bottom: clamp(48px, 7vw, 90px);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer__cta h2{
  color: var(--white);
  font-size: clamp(30px, 5vw, 64px);
  max-width: 16ch;
  line-height: 1.05;
}
.footer__cta-row{
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.footer__email{
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  color: var(--purple-500);
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}

.footer__grid{
  padding: clamp(40px, 6vw, 64px) 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer__logo img{ height: 34px; filter: brightness(0) invert(1); opacity: .95; }
.footer__desc{ margin-top: 18px; font-size: 14px; max-width: 32ch; color: rgba(255,255,255,.55); }
.footer__col h4{
  font-family: var(--font-display);
  color: var(--white);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer__col ul li{ margin-bottom: 12px; font-size: 14px; }
.footer__col a{ color: rgba(255,255,255,.65); transition: color .25s var(--ease); }
.footer__col a:hover{ color: var(--white); }

.footer__bottom{
  padding: 24px 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,.45);
}
.footer__social{ display: flex; gap: 16px; }
.footer__social a{ color: rgba(255,255,255,.55); }
.footer__social a:hover{ color: var(--white); }

/* ==========================================================================
   Inner page header (About, Services, AdRAMS, Library, Forms…)
   ========================================================================== */
.page-header{
  padding: 170px 0 clamp(50px, 7vw, 90px);
  background: var(--purple-050);
  border-bottom: 1px solid var(--line);
}
.page-header h1{
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.02;
  max-width: 16ch;
  margin-top: 20px;
}
.page-header p{
  margin-top: 22px;
  max-width: 56ch;
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--ink-70);
  line-height: 1.65;
}
.page-header__strip{
  margin-top: clamp(36px, 5vw, 56px);
  height: clamp(180px, 30vw, 340px);
  border-radius: var(--radius);
  overflow: hidden;
}
.page-header__strip img{ width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pull quote ---------- */
.pull-quote{
  margin: clamp(40px, 6vw, 64px) 0;
  padding-inline-start: 26px;
  border-inline-start: 3px solid var(--purple-500);
}
.pull-quote p{
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.4;
  color: var(--ink);
}
.pull-quote cite{
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 13px;
  color: var(--ink-45);
}

/* ---------- Mission / Vision / Values cards ---------- */
.pillars{ padding: var(--section-y) 0; border-bottom: 1px solid var(--line); }
.pillars__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pillar{ background: var(--paper); padding: clamp(28px, 3vw, 40px); }
.pillar__icon{
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--purple-700);
  margin-bottom: 24px;
}
.pillar__icon svg{ width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.pillar h3{
  font-size: 20px;
  margin-bottom: 12px;
}
.pillar p{ color: var(--ink-70); font-size: 15px; line-height: 1.65; }
.pillars__grid--two{ grid-template-columns: repeat(2, 1fr); }

.values{ padding: var(--section-y) 0; border-bottom: 1px solid var(--line); }
.values__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.value-card{ background: var(--paper); padding: clamp(24px, 2.6vw, 32px); }
.value-card__num{
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-500);
  margin-bottom: 14px;
}
.value-card h3{
  font-size: 17px;
  margin-bottom: 8px;
}
.value-card p{ color: var(--ink-70); font-size: 14px; line-height: 1.6; }

/* ---------- Service detail blocks (Services page) ---------- */
.service-detail-list{ border-top: 1px solid var(--line); }
.service-detail{
  padding: clamp(40px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: clamp(24px, 4vw, 48px);
  scroll-margin-top: 110px;
}
.service-detail__num{
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 700;
  color: var(--purple-100);
  line-height: 1;
}
.service-detail__title{
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 16px;
  max-width: 20ch;
}
.service-detail__desc{
  color: var(--ink-70);
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.75;
}
.service-detail__tags{
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.service-detail__tags span{
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-70);
}

/* ---------- Screenshot / gallery grid ---------- */
.shot-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 2vw, 20px);
}
.shot-grid img{
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center 40%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(22,19,26,.10);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.shot-grid img:hover{ transform: translateY(-6px); box-shadow: 0 22px 44px rgba(22,19,26,.16); }

/* ---------- Note strip (compliance, hosting, etc.) ---------- */
.note-strip{
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  background: var(--purple-050);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: clamp(32px, 5vw, 48px);
}
.note-strip__icon{
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple-700);
  flex-shrink: 0;
}
.note-strip__icon svg{ width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.note-strip p{ font-size: 14.5px; color: var(--ink-70); line-height: 1.6; }

/* ---------- Grouped document sections (Forms by category) ---------- */
.doc-group + .doc-group{ margin-top: clamp(44px, 6vw, 64px); }
.doc-group__title{
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--purple-700);
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.doc-group__title span{
  font-weight: 500;
  color: var(--ink-45);
  text-transform: none;
  letter-spacing: 0;
}

/* ---------- Document grid (Library, Forms) ---------- */
.doc-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 20px;
}
.doc-card{
  display: block;
  background: var(--paper);
}
.doc-card__cover{
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--purple-050);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.doc-card:hover .doc-card__cover{ transform: translateY(-5px); box-shadow: 0 16px 32px rgba(22,19,26,.14); }
.doc-card__cover img{ width: 100%; height: 100%; object-fit: cover; }
.doc-card__cover::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,10,22,.55) 0%, transparent 45%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.doc-card:hover .doc-card__cover::after{ opacity: 1; }
.doc-card__badge{
  position: absolute;
  inset-inline-end: 12px; bottom: 12px;
  z-index: 1;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.doc-card:hover .doc-card__badge{ opacity: 1; transform: none; }
.doc-card__badge svg{ width: 15px; height: 15px; stroke: var(--purple-700); fill: none; stroke-width: 1.8; }
.doc-card__title{
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

/* Library: unified typographic cover (no photography) */
.doc-card__cover--type{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: var(--purple-900);
}
.doc-card__cover--type .doc-tag{
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.doc-card__cover--type .doc-mark{
  align-self: flex-end;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  display: flex; align-items: center; justify-content: center;
}
.doc-card__cover--type .doc-mark svg{ width: 13px; height: 13px; stroke: rgba(255,255,255,.75); fill: none; stroke-width: 1.6; }
.doc-card__cover--type .doc-cover-title{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.32;
  color: var(--white);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.doc-card:nth-child(5n+1) .doc-card__cover--type{ background: var(--purple-900); }
.doc-card:nth-child(5n+2) .doc-card__cover--type{ background: var(--purple-700); }
.doc-card:nth-child(5n+3) .doc-card__cover--type{ background: var(--ink); }
.doc-card:nth-child(5n+4) .doc-card__cover--type{ background: var(--purple-800); }
.doc-card:nth-child(5n+5) .doc-card__cover--type{ background: #5C1F61; }

/* Forms: title-led card — icon is a small accent, name is the focus */
.doc-card--form .doc-card__cover{ aspect-ratio: 1/1; background: var(--purple-050); border-color: var(--line); display:flex; align-items:center; justify-content:center; transition: background .3s var(--ease); }
.doc-card--form:hover .doc-card__cover{ background: var(--purple-100); }
.doc-card__icon{ width: 18%; height: 18%; stroke: var(--purple-500); }
.doc-card--form .doc-card__title{
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  text-align: center;
}

.doc-filter{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.doc-filter button{
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-70);
  transition: all .25s var(--ease);
}
.doc-filter button.is-active,
.doc-filter button:hover{ background: var(--purple-700); border-color: var(--purple-700); color: var(--white); }

/* ---------- Project grid (Projects page) ---------- */
.project-list{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.project-card{
  background: var(--paper);
  padding: clamp(24px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
  transition: background .25s var(--ease);
}
.project-card:hover{ background: var(--purple-100); }
.project-card.is-hidden{ display: none; }
.project-card__head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.project-card__num{
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-500);
}
.project-card__tag{
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--purple-700);
}
.project-card__title{
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-card__owner{
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-45);
}
.project-card__desc{
  margin-top: 14px;
  flex-grow: 1;
}
.project-card__desc p{
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-70);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-card__desc p + p{ display: none; }
.project-card.is-expanded .project-card__title{ -webkit-line-clamp: unset; }
.project-card.is-expanded .project-card__desc p{ -webkit-line-clamp: unset; display: block; }
.project-card.is-expanded .project-card__desc p + p{ margin-top: 8px; }
.project-card__toggle{
  margin-top: 16px;
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--purple-700);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.project-card__toggle:hover{ color: var(--purple-500); }

/* ---------- Output checklist (AdRAMS deliverables, etc.) ---------- */
.output-list{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}
.output-item{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.output-item__check{
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--purple-100);
  color: var(--purple-700);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.output-item__check svg{ width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.output-item span{
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
}

/* ---------- Static logo row (AdRAMS clients / integrations) ---------- */
.logo-row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(28px, 5vw, 56px);
  padding-top: 8px;
}
.logo-row img{
  height: 46px;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(1) opacity(.6);
  transition: filter .3s var(--ease);
}
.logo-row img:hover{ filter: grayscale(0) opacity(1); }

/* ---------- Document link card (Financial Statement, etc.) ---------- */
.doc-link-card{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: clamp(24px, 3vw, 32px);
  background: var(--purple-050);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.doc-link-card__left{ display: flex; align-items: center; gap: 18px; }
.doc-link-card__icon{
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple-700);
  flex-shrink: 0;
}
.doc-link-card__icon svg{ width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.doc-link-card__title{ font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.doc-link-card__sub{ margin-top: 3px; font-size: 13.5px; color: var(--ink-45); }

/* ---------- Generic CTA banner (link to another page/section) ---------- */
.inline-cta{
  padding: clamp(36px, 5vw, 56px) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.inline-cta h3{ font-size: clamp(22px, 2.6vw, 32px); max-width: 20ch; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px){
  .nav__links{ display: none; }
  .nav__links.is-open{
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: var(--paper);
    padding: 8px var(--gutter) 20px;
    gap: 2px;
    box-shadow: 0 18px 32px rgba(22,19,26,.14);
    border-bottom: 1px solid var(--line);
  }
  .nav__links.is-open a{
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink-70);
  }
  .nav--hero .nav__links.is-open a{ color: var(--ink-70); }
  .nav__links.is-open a::after{ display: none; }
  .nav__burger{ display: flex; }
  .story__grid{ grid-template-columns: 1fr; }
  .bento{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .bento-card{ grid-column: span 1 !important; grid-row: span 1 !important; }
  .footer__grid{ grid-template-columns: 1fr 1fr; }
  .pillars__grid{ grid-template-columns: 1fr; }
  .service-detail{ grid-template-columns: 1fr; }
  .output-list{ grid-template-columns: 1fr; }
  .doc-grid{ grid-template-columns: repeat(3, 1fr); }
  .values__grid{ grid-template-columns: repeat(2, 1fr); }
  .project-list{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px){
  .doc-grid{ grid-template-columns: repeat(2, 1fr); }
  .values__grid{ grid-template-columns: 1fr; }
  .project-list{ grid-template-columns: 1fr; }
}

@media (max-width: 620px){
  .service{ grid-template-columns: 50px 1fr auto; }
  .stats{ grid-template-columns: 1fr 1fr; }
  .footer__grid{ grid-template-columns: 1fr; }
  .cert__inner{ flex-direction: column; align-items: flex-start; }
}
