/* NineGravity theme — base + section styles (sourced from nga-homepage.css) */

/* NineGravity Homepage — Variation A (Editorial) dedicated styles
   Layered on top of ng-styles.css (tokens + primitives).
   Mobile-first. Full-width responsive system. */

/* ===== Responsive container system =====
   Spacing built on a 4/8 grid, with fluid horizontal padding that
   scales to wide screens without leaving empty gutters. */
:root {
  --nga-pad: clamp(24px, 6vw, 120px);
  --nga-max: 1920px;
  --nga-max-wide: 1920px;
  --nga-sec-y: clamp(72px, 9vw, 144px);
  --nga-sec-y-sm: clamp(56px, 6vw, 96px);
}

/* Full-bleed section; content centered via inner container */
.nga-container {
  width: 100%;
  max-width: var(--nga-max);
  margin: 0 auto;
  padding: 0 var(--nga-pad);
}
.nga-container--wide {
  max-width: var(--nga-max-wide);
}
.nga-container--full {
  max-width: none;
  padding: 0 var(--nga-pad);
}
.nga-container--tight {
  max-width: 1120px;
}

.nga-sec { padding: var(--nga-sec-y) 0; }
.nga-sec--sm { padding: var(--nga-sec-y-sm) 0; }

.nga-h2 {
  font-family: var(--display);
  font-size: clamp(32px, 4.2vw, 60px);
  letter-spacing: -0.022em;
  font-weight: 400;
  line-height: 1.04;
  margin: 0 0 8px;
}

/* =========== NAV — full-width bar, centered content =========== */
.nga-nav {
  position: sticky; top: 0; z-index: 60;
  width: 100%;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.nga-nav.is-scrolled { background: rgba(255,255,255,0.92); border-bottom-color: var(--line); }
.nga-nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
  width: 100%;
  max-width: var(--nga-max-wide);
  margin: 0 auto;
  padding: 18px var(--nga-pad);
}
.nga-nav__logo { display:inline-flex; align-items:center; }
.nga-nav__menu { display: flex; gap: 32px; align-items: center; font-size: 17px; color: var(--ink-2); }
.nga-nav__menu a { transition: color .15s; cursor: pointer; }
.nga-nav__menu a:hover { color: var(--ink); }

.nga-dd { position: relative; }
.nga-dd__btn {
  background: transparent; border: 0; padding: 0; color: var(--ink-2);
  font: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
}
.nga-dd__btn:hover { color: var(--ink); }
/* Invisible hover-bridge so cursor can travel from button down to panel
   without leaving .nga-dd and prematurely closing the dropdown. */
.nga-dd::after {
  content: ""; position: absolute; left: -24px; right: -24px;
  top: 100%; height: 28px;
  /* stays hoverable always — it's an invisible transparent area directly
     below the Services button; keeps :hover on .nga-dd alive while cursor
     crosses the gap between the button and the panel. */
}
.nga-dd__panel {
  position: absolute; top: calc(100% + 16px); left: -16px;
  min-width: 260px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(14,17,22,0.08);
  padding: 10px;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .15s, transform .15s;
}
.nga-dd:hover .nga-dd__panel,
.nga-dd:focus-within .nga-dd__panel { opacity: 1; transform: none; pointer-events: auto; }
.nga-dd__panel a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 14px; font-size: 14px; color: var(--ink-2);
}
.nga-dd__panel a:hover { background: var(--sand); color: var(--ink); }
.nga-dd__tag { font-size: 11px; color: var(--ink-3); }

.nga-nav__cta { display: flex; align-items: center; gap: 12px; }
.nga-nav__burger {
  display: none;
  width: 40px; height: 40px; border: 1px solid var(--line-2); background: transparent;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer; border-radius: 2px;
}
.nga-nav__burger span { width: 18px; height: 1.5px; background: var(--ink); }

.nga-nav__mobile {
  display: none; flex-direction: column; gap: 4px;
  padding: 16px var(--nga-pad) 24px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.nga-nav__mobile a { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--line-soft); }

/* =========== HERO — premium, full-width feel =========== */
.nga-hero {
  padding: clamp(72px, 8vw, 128px) 0 clamp(72px, 7vw, 112px);
  position: relative;
}
.nga-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px);
}
.nga-hero__eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.nga-hero__h {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 8.5vw, 152px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: clamp(24px, 3vw, 40px) 0 0;
  max-width: 20ch;
  text-wrap: balance;
}
.nga-hero__h em { font-style: italic; font-family: var(--display); font-weight: 400; }
.nga-hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: clamp(28px, 3vw, 48px);
  margin-top: clamp(40px, 5vw, 72px);
}
.nga-hero__sub {
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0;
  text-wrap: pretty;
}
.nga-hero__ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: clamp(14px, 1.5vw, 22px);
}
.nga-hero__ctas .ng-btn { white-space: nowrap; }
.nga-hero__alt { font-size: 14px; }
.nga-hero__meta {
  display: flex; flex-wrap: wrap;
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(24px, 3vw, 40px);
  padding-top: 20px; border-top: 1px solid var(--line-soft);
  font-size: 12px; color: var(--ink-3);
}
.nga-hero__meta-item { display: inline-flex; align-items: center; gap: 10px; letter-spacing: 0.04em; text-transform: uppercase; }
.nga-hero__meta-item .dot { width: 6px; height: 6px; background: var(--signal); display: inline-block; border-radius: 50%; }

/* =========== TRUST STRIP — full-width bg, centered content =========== */
.nga-trust {
  width: 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bone);
}
.nga-trust__row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 2.4vw, 32px) 0;
  gap: clamp(28px, 4vw, 64px);
  flex-wrap: wrap;
}
.nga-trust__item {
  display: flex; align-items: center; gap: 12px;
  padding-left: clamp(16px, 2vw, 28px);
  border-left: 1px solid var(--line);
  flex: 0 0 auto;
}
.nga-trust__item--automattic { flex: 0 0 auto; min-width: 0; }
.nga-trust__item--automattic .nga-trust__l { white-space: normal; max-width: 420px; }
.nga-trust__item:first-child { border-left: 0; padding-left: 0; }
.nga-trust__v { font-size: clamp(18px, 1.6vw, 24px); font-weight: 500; }
.nga-trust__l { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.3; }
.nga-trust__stack { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.nga-trust__big { font-family: var(--display); font-size: clamp(18px, 1.6vw, 24px); font-weight: 500; }

/* =========== DUAL PATH =========== */
.nga-dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2vw, 32px);
  margin-top: clamp(40px, 4vw, 64px);
}
.nga-dual__card {
  padding: clamp(36px, 4vw, 64px) clamp(28px, 3.5vw, 56px);
  display: flex; flex-direction: column;
  min-height: clamp(380px, 38vw, 500px);
  position: relative;
}
.nga-dual__card--owner {
  background: var(--sand);
  border-radius: 6px;
}
.nga-dual__card--agency {
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
}
.nga-dual__h {
  font-family: var(--display);
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 14px 0 18px;
  line-height: 1.05;
  max-width: 440px;
}
.nga-dual__p { font-size: 16px; color: var(--ink-2); line-height: 1.55; margin: 0; max-width: 460px; }
.nga-dual__list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 10px; }
.nga-dual__list li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.nga-dual__list li svg { color: var(--signal); flex-shrink: 0; }
.nga-dual__foot { margin-top: auto; padding-top: 40px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.nga-dual__tag { font-size: 12px; color: var(--ink-3); }

/* =========== AUDIT PRODUCT =========== */
.nga-audit {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(48px, 6vw, 112px);
  align-items: start;
}
.nga-audit__col { min-width: 0; }
.nga-audit__lead { font-size: clamp(16px, 1.2vw, 18px); color: var(--ink-2); line-height: 1.55; margin: 20px 0 40px; max-width: 520px; }
.nga-audit__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--line);
}
.nga-audit__cell {
  padding: clamp(20px, 2vw, 32px) clamp(20px, 2vw, 32px) clamp(20px, 2vw, 32px) 0;
  border-bottom: 1px solid var(--line);
}
.nga-audit__cell[data-col="0"] { border-right: 1px solid var(--line); padding-left: 0; padding-right: clamp(20px, 2vw, 32px); }
.nga-audit__cell[data-col="1"] { padding-left: clamp(20px, 2vw, 32px); }
.nga-audit__cell-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; color: var(--ink-3); }
.nga-audit__n { font-size: 11px; color: var(--ink-4); }
.nga-audit__icon { color: var(--ink); }
.nga-audit__t { font-weight: 500; font-size: 16px; margin-bottom: 6px; }
.nga-audit__d { font-size: 14px; color: var(--ink-3); line-height: 1.5; }
.nga-audit__price {
  display: flex; align-items: stretch;
  gap: clamp(24px, 3vw, 48px);
  flex-wrap: wrap;
  margin-top: 40px; padding-top: 28px;
  border-top: 2px solid var(--ink);
}
.nga-audit__price-col {
  display: flex; flex-direction: column; gap: 8px;
  min-width: 0;
}
.nga-audit__kicker { font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.nga-audit__fig {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(26px, 2.2vw, 32px);
  line-height: 1; letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.nga-audit__fig--sm {
  font-size: clamp(22px, 1.8vw, 26px);
  font-weight: 400; letter-spacing: -0.015em;
}
.nga-audit__fig--sm svg { color: var(--ink-3); flex-shrink: 0; }
.nga-audit__sep { width: 1px; align-self: stretch; background: var(--line); }
.nga-audit__spacer { flex-basis: 100%; height: 0; }
.nga-audit__price .ng-btn { align-self: flex-start; }

@media (max-width: 640px) {
  .nga-audit__price { gap: 18px; }
  .nga-audit__sep { display: none; }
  .nga-audit__price-col { flex: 1 1 100%; }
  .nga-audit__price .ng-btn { width: 100%; justify-content: center; }
}

.nga-audit__mock {
  position: sticky; top: 120px;
  padding-top: 24px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.nga-audit__caption { font-size: 11px; color: var(--ink-4); text-align: center; letter-spacing: 0.06em; text-transform: uppercase; }

/* Audit report cover (homepage) — book-style stack */
.nga-ac {
  width: 100%;
  max-width: 520px;
  position: relative;
  padding: 18px 18px 28px 0;
}
.nga-ac__stack {
  position: relative;
  aspect-ratio: 700 / 980;
  width: 100%;
}
.nga-ac__back, .nga-ac__mid, .nga-ac__sheet {
  position: absolute; inset: 0;
  border-radius: 4px;
  background: #FFFFFF;
}
.nga-ac__back {
  transform: translate(14px, 16px) rotate(2.2deg);
  background: #D6DAE5;
  box-shadow: 0 30px 60px -20px rgba(14,17,22,0.28);
}
.nga-ac__mid {
  transform: translate(7px, 8px) rotate(1deg);
  background: #F2F4FA;
  box-shadow: 0 22px 45px -18px rgba(14,17,22,0.20);
}
.nga-ac__sheet {
  overflow: hidden;
  box-shadow:
    0 2px 0 rgba(14,17,22,0.04),
    0 18px 40px -12px rgba(43,60,219,0.18),
    0 40px 90px -20px rgba(14,17,22,0.22);
  border: 1px solid rgba(14,17,22,0.06);
}
.nga-ac__sheet svg { width: 100%; height: 100%; display: block; }

/* =========== SERVICES =========== */
.nga-services__head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 32px; margin-bottom: clamp(40px, 4vw, 64px);
}
.nga-services {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.nga-services__card {
  padding: clamp(36px, 3.5vw, 56px) clamp(28px, 3vw, 48px);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  min-height: clamp(320px, 28vw, 400px);
  color: inherit; transition: background .15s;
}
.nga-services__card:first-child { border-left: 0; }
.nga-services__card:hover { background: var(--bone); }
.nga-services__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.nga-services__n { font-size: 11px; color: var(--ink-4); }
.nga-services__icon { color: var(--ink); }
.nga-services__h { font-family: var(--display); font-size: clamp(24px, 2.2vw, 34px); font-weight: 400; letter-spacing: -0.02em; margin: 0 0 14px; line-height: 1.1; }
.nga-services__p { font-size: 15px; color: var(--ink-2); line-height: 1.55; margin: 0; }
.nga-services__cta { margin-top: auto; padding-top: 32px; align-self: flex-start; }

/* =========== CASE STUDY =========== */
.nga-case {
  background: var(--bone);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.nga-case__head {
  display: grid; grid-template-columns: auto 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.nga-case__lead { font-size: 16px; color: var(--ink-2); margin: 0; max-width: 460px; line-height: 1.55; justify-self: end; }
.nga-case__metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  background: var(--paper); border: 1px solid var(--line);
}
.nga-case__m { padding: clamp(32px, 3.5vw, 56px) clamp(28px, 3vw, 48px); border-left: 1px solid var(--line); }
.nga-case__m:first-child { border-left: 0; }
.nga-case__m-l { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 20px; }
.nga-case__m-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.nga-case__m-f { font-family: var(--display); font-size: 26px; color: var(--ink-4); text-decoration: line-through; text-decoration-thickness: 1px; font-weight: 400; }
.nga-case__m-t { font-family: var(--display); font-size: clamp(40px, 4vw, 64px); font-weight: 400; letter-spacing: -0.03em; line-height: 1; }
.nga-case__m-bar { height: 2px; background: var(--line); position: relative; overflow: hidden; }
.nga-case__m-bar div { height: 100%; background: var(--ink); transform-origin: left; animation: nga-bar 1.2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes nga-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.nga-case__m-pct { margin-top: 16px; display: inline-block; padding: 4px 10px; background: var(--signal-tint); color: var(--signal-ink); font-size: 12px; font-family: var(--mono); font-weight: 500; letter-spacing: 0.02em; }

.nga-case__quote {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid; grid-template-columns: 1fr auto;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.nga-case__quote blockquote {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-weight: 400;
  position: relative;
  text-wrap: balance;
}
.nga-case__qmark { font-size: 1.3em; color: var(--ink-4); margin-right: 4px; }
.nga-case__attr { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; text-align: right; }
.nga-case__who { font-weight: 500; font-size: 14px; }
.nga-case__role { font-size: 13px; color: var(--ink-3); }

/* =========== CASE STUDY v2 — Featured card (full-bleed, image bg) =========== */
.nga-case2 {
  background: var(--bone);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.nga-case2__head {
  display: grid; grid-template-columns: auto 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.nga-case2__lead {
  font-size: 16px; color: var(--ink-2); margin: 0;
  max-width: 480px; line-height: 1.55; justify-self: end;
  text-wrap: pretty;
}
.nga-case2__card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #0E1116;
  color: #fff;
  min-height: 520px;
  display: flex; flex-direction: column;
  padding: clamp(28px, 3.5vw, 48px) clamp(28px, 3.5vw, 56px) 0;
  isolation: isolate;
  box-shadow: 0 32px 80px rgba(14,17,22,0.18);
}
.nga-case2__bg {
  position: absolute; inset: 0; z-index: -2;
  overflow: hidden;
}
.nga-case2__bg svg { width: 100%; height: 100%; display: block; }
.nga-case2__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(5,6,8,0.55) 0%, rgba(5,6,8,0.35) 40%, rgba(5,6,8,0.78) 100%),
    linear-gradient(90deg, rgba(5,6,8,0.55) 0%, rgba(5,6,8,0.15) 60%, rgba(5,6,8,0.35) 100%);
}

/* Client mark top-left */
.nga-case2__top { position: relative; z-index: 1; }
.nga-case2__client { display: flex; align-items: center; gap: 14px; }
.nga-case2__client-mark {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.04);
  flex-shrink: 0;
}
.nga-case2__client-name {
  font-family: var(--display); font-weight: 500; font-size: 17px;
  letter-spacing: -0.005em; line-height: 1.2;
  color: #fff;
}
.nga-case2__client-sub {
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

/* Body: title + read more, stretched to push meta down */
.nga-case2__body {
  position: relative; z-index: 1;
  flex: 1;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(60px, 8vw, 120px);
  padding-bottom: clamp(32px, 4vw, 56px);
}
.nga-case2__title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(24px, 2.6vw, 40px);
  line-height: 1.15; letter-spacing: -0.015em;
  margin: 0; max-width: 820px; color: #fff;
  text-wrap: balance;
}
.nga-case2__read {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 0;
  padding: 14px 26px;
  background: #fff; color: var(--ink);
  border-radius: 999px;
  font-size: 14.5px; font-weight: 500; font-family: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.nga-case2__read:hover { background: #EDEFF3; transform: translateY(-1px); }

/* Meta strip — 2 rows × 3 cols */
.nga-case2__meta {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px clamp(24px, 3vw, 48px);
  padding: clamp(24px, 2.5vw, 32px) 0 clamp(32px, 3.5vw, 48px);
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: -1px;
}
.nga-case2__meta-cell {
  display: flex; flex-direction: column; gap: 6px;
}
.nga-case2__meta-l {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
}
.nga-case2__meta-v {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(15px, 1.3vw, 18px);
  color: #fff; letter-spacing: -0.005em;
  line-height: 1.25;
}

/* Footer row below card */
.nga-case2__foot {
  margin-top: clamp(24px, 2.5vw, 36px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
}
.nga-case2__foot-count {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
}

@media (max-width: 860px) {
  .nga-case2__head { grid-template-columns: 1fr; gap: 16px; }
  .nga-case2__lead { justify-self: start; }
  .nga-case2__card { min-height: 480px; padding: 28px 24px 0; border-radius: 12px; }
  .nga-case2__body { flex-direction: column; align-items: flex-start; margin-top: 80px; gap: 24px; padding-bottom: 32px; }
  .nga-case2__meta { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 520px) {
  .nga-case2__meta { grid-template-columns: 1fr; }
}

/* =========== REVIEWS =========== */
.nga-reviews__head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 32px; margin-bottom: clamp(32px, 4vw, 56px);
}
.nga-reviews__logo { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }
.nga-reviews__score { text-align: right; }
.nga-reviews__score-n { font-family: var(--display); font-size: clamp(34px, 3.2vw, 48px); line-height: 1; font-weight: 400; }
.nga-reviews__score-c { font-size: 11px; color: var(--ink-3); margin-top: 6px; letter-spacing: 0.08em; }
.nga-reviews__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.5vw, 28px);
}
.nga-review {
  border: 1px solid var(--line); padding: clamp(22px, 2vw, 32px);
  display: flex; flex-direction: column; min-height: 250px;
  transition: border-color .15s; background: var(--paper);
}
.nga-review:hover { border-color: var(--ink-5); }
.nga-review__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.nga-review__q { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin: 0; text-wrap: pretty; }
.nga-review__foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.nga-review__who { font-weight: 500; }
.nga-review__role { color: var(--ink-3); margin-top: 2px; }

/* =========== AUTOMATTIC BAR =========== */
.nga-automattic { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.nga-automattic__row {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: clamp(20px, 2vw, 32px) 0;
}
.nga-automattic__left { display: flex; align-items: center; gap: 20px; }
.nga-automattic__t { font-size: 15px; font-weight: 500; }
.nga-automattic__s { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.nga-automattic__cta { white-space: nowrap; flex-shrink: 0; }

/* =========== PARTNER SECTION (Automattic feature) =========== */
.nga-partner {
  position: relative;
  background: var(--bone);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(72px, 9vw, 128px) 0;
  overflow: hidden;
}
.nga-partner::before {
  /* dotted constellation backdrop */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(14,17,22,0.08) 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, #000 45%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, #000 45%, transparent 75%);
  pointer-events: none;
  opacity: 0.55;
}
.nga-partner__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

/* --- LEFT: editorial --- */
.nga-partner__eyebrow { margin-bottom: 22px; }
.nga-partner__h {
  font-family: var(--display);
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0 0 22px 0;
  color: var(--ink);
  text-wrap: balance;
}
.nga-partner__p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 54ch;
  margin: 0 0 28px 0;
}
.nga-partner__perks {
  list-style: none; padding: 0; margin: 0 0 32px 0;
  display: grid; gap: 12px;
}
.nga-partner__perks li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px; line-height: 1.5;
  color: var(--ink-2);
}
.nga-partner__perks li svg {
  flex-shrink: 0;
  color: var(--signal);
  margin-top: 2px;
}
.nga-partner__cta {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.nga-partner__ext { display: inline-flex; align-items: center; font-size: 13px; color: var(--ink-3); }
.nga-partner__ext:hover { color: var(--signal); }

/* --- RIGHT: credential card --- */
.nga-partner__card {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: clamp(28px, 3vw, 40px);
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 30px 60px -30px rgba(14,17,22,0.35);
  overflow: hidden;
}
.nga-partner__card-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 10%, rgba(43,89,255,0.22), transparent 55%),
    radial-gradient(circle at 10% 95%, rgba(43,89,255,0.10), transparent 55%);
  pointer-events: none;
}
.nga-partner__card > *:not(.nga-partner__card-bg) { position: relative; }

.nga-partner__card-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nga-partner__mark {
  width: 64px; height: 64px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  display: grid; place-items: center;
  color: #fff;
}
.nga-partner__id-tag {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nga-partner__id-name {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  margin-top: 2px;
}
.nga-partner__verified {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(43,89,255,0.45);
  background: rgba(43,89,255,0.12);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #B8C7FF;
}
.nga-partner__verified-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(43,89,255,0.25);
}

.nga-partner__since {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nga-partner__since-l {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.nga-partner__since-v {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nga-partner__brands { padding-top: 22px; }
.nga-partner__brands-l {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.nga-partner__brand-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.nga-partner__brand {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.nga-partner__brand-n {
  font-size: 14px; font-weight: 500; color: #fff;
}
.nga-partner__brand-d {
  font-size: 12px; color: rgba(255,255,255,0.55);
}

.nga-partner__seal {
  position: absolute;
  right: -30px; bottom: -30px;
  width: 180px; height: 180px;
  display: grid; place-items: center;
  opacity: 0.18;
  pointer-events: none;
}
.nga-partner__seal-ring {
  position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
}
.nga-partner__seal-ring::after {
  content: "";
  position: absolute; inset: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
}
.nga-partner__seal span {
  font-size: 10px; color: rgba(255,255,255,0.6);
  letter-spacing: 0.12em; text-transform: uppercase;
  transform: rotate(-18deg);
  white-space: nowrap;
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .nga-partner { padding: 64px 0; }
  .nga-partner__grid { grid-template-columns: 1fr; gap: 44px; }
  .nga-partner__h { font-size: 32px; }
  .nga-partner__brand-list { grid-template-columns: 1fr 1fr; }
  .nga-partner__since { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .nga-partner__since-v { font-size: 17px; }
  .nga-partner__seal { width: 140px; height: 140px; right: -40px; bottom: -40px; }
}
@media (max-width: 560px) {
  .nga-partner__card-top { grid-template-columns: auto 1fr; }
  .nga-partner__verified { grid-column: 1 / -1; justify-self: start; }
  .nga-partner__brand-list { grid-template-columns: 1fr; }
}

/* =========== NEWSLETTER + BLOG =========== */
.nga-news { background: var(--ink); color: #fff; }
.nga-news .ng-eyebrow { color: rgba(255,255,255,0.65); }
.nga-news .ng-eyebrow::before { background: rgba(255,255,255,0.65); }
.nga-news__hero {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 88px);
  align-items: center;
  margin-bottom: clamp(56px, 7vw, 104px);
}
.nga-news__eyebrow { margin-bottom: 20px; }
.nga-news__h { color: #fff; }
.nga-news__p { font-size: 17px; color: rgba(255,255,255,0.7); margin: 20px 0 0; line-height: 1.55; max-width: 520px; }
.nga-news__form { display: flex; flex-direction: column; gap: 14px; }
.nga-news__label { font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 0.1em; text-transform: uppercase; }
.nga-news__input-row { display: flex; gap: 0; border-bottom: 1px solid rgba(255,255,255,0.35); padding-bottom: 12px; }
.nga-news__input { flex: 1; border: 0; background: transparent; color: #fff; font: inherit; font-size: 18px; outline: none; padding: 6px 0; }
.nga-news__input::placeholder { color: rgba(255,255,255,0.35); }
.nga-news__form .ng-btn { background: #fff; color: var(--ink); border-color: #fff; padding: 10px 16px; font-size: 14px; }
.nga-news__form .ng-btn:hover { background: rgba(255,255,255,0.88); }
.nga-news__mini { font-size: 11px; color: rgba(255,255,255,0.45); letter-spacing: 0.04em; }
.nga-news__ok { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid rgba(255,255,255,0.25); }
.nga-news__ok svg { color: var(--signal); }
.nga-news__ok-t { font-weight: 500; font-size: 16px; }
.nga-news__ok-s { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 2px; }

.nga-news__posts-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.nga-news__posts-head .ng-link { color: #fff; border-bottom-color: #fff; }
.nga-news__posts-head .ng-eyebrow { color: rgba(255,255,255,0.6); }
.nga-news__posts-head .ng-eyebrow::before { background: rgba(255,255,255,0.6); }

.nga-news__posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 32px);
}
.nga-post { color: #fff; display: flex; flex-direction: column; gap: 16px; }
.nga-post__thumb {
  aspect-ratio: 16/9;
  background: #1A1E25;
  border: 1px solid rgba(255,255,255,0.1);
  position: relative; overflow: hidden;
  color: rgba(255,255,255,0.7);
}
.nga-post__thumb[data-i="1"] { background: #0b0e12; }
.nga-post__thumb[data-i="2"] { background: #12161d; }
.nga-post__tag { position: absolute; top: 14px; left: 14px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.7); z-index: 1; }
.nga-post__h { font-family: var(--display); font-size: 20px; font-weight: 400; letter-spacing: -0.015em; line-height: 1.25; margin: 0; color: #fff; text-wrap: pretty; }
.nga-post__meta { font-size: 12px; color: rgba(255,255,255,0.5); letter-spacing: 0.04em; }
.nga-post:hover .nga-post__h { text-decoration: underline; text-underline-offset: 4px; }

/* =========== FOOTER =========== */
.nga-foot {
  background: var(--bone);
  border-top: 1px solid var(--line);
  padding: clamp(64px, 7vw, 104px) 0 36px;
}
.nga-foot__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 3.5vw, 56px);
  padding-bottom: clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}
.nga-foot__tag { font-size: 14px; color: var(--ink-3); margin: 20px 0 0; max-width: 280px; line-height: 1.55; }
.nga-foot__badges { display: flex; align-items: center; gap: 20px; margin-top: 32px; }
.nga-foot__vsep { width: 1px; height: 30px; background: var(--line); }
.nga-foot__h { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; }
.nga-foot__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.nga-foot__col a, .nga-foot__col span { font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; transition: color .15s; }
.nga-foot__col a:hover { color: var(--ink); }
.nga-foot__col--contact a svg, .nga-foot__col--contact span svg { color: var(--ink-4); }
.nga-foot__social { display: flex; gap: 12px; margin-top: 20px; }
.nga-foot__social a { width: 34px; height: 34px; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--ink-2); transition: all .15s; }
.nga-foot__social a:hover { border-color: var(--ink); color: var(--ink); }
.nga-foot__bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--ink-3); }

/* =========== RESPONSIVE =========== */
/* Large desktops — hold 120px gutters on wide screens */
@media (min-width: 1728px) {
  :root { --nga-pad: 120px; }
}
@media (min-width: 1920px) {
  :root { --nga-pad: 120px; }
}

@media (max-width: 1280px) {
  .nga-foot__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .nga-foot__col--contact { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 12px; }
}
@media (max-width: 1100px) {
  .nga-audit { grid-template-columns: 1fr; gap: 48px; }
  .nga-audit__mock { position: static; max-width: 480px; }
  .nga-foot__top { grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
  .nga-foot__brand { grid-column: 1 / -1; }
  .nga-foot__col--contact { grid-column: 1 / -1; }
  .nga-news__hero { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .nga-hero__foot { grid-template-columns: 1fr; gap: 28px; }
  .nga-hero__ctas { align-items: flex-start; }
  .nga-nav__menu { display: none; }
  .nga-nav__burger { display: flex; }
  .nga-nav__mobile { display: flex; }
  .nga-nav__cta .ng-btn { display: none; }
  .nga-trust__row { display: grid; grid-template-columns: 1fr 1fr; row-gap: 20px; padding: 22px 0; flex-wrap: initial; }
  .nga-trust__item { border-left: 0; padding-left: 0; }
  .nga-trust__item:nth-child(2) { border-left: 1px solid var(--line); padding-left: 16px; }
  .nga-trust__item:nth-child(4) { border-left: 1px solid var(--line); padding-left: 16px; }
  .nga-trust__item--automattic { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--line); border-left: 0; padding-left: 0; }
  .nga-dual { grid-template-columns: 1fr; }
  .nga-dual__card { min-height: 0; padding: 40px 32px; }
  .nga-services { grid-template-columns: 1fr; }
  .nga-services__card { border-left: 0; border-top: 1px solid var(--line); min-height: 0; }
  .nga-services__card:first-child { border-top: 0; }
  .nga-case__head { grid-template-columns: 1fr; gap: 20px; }
  .nga-case__lead { justify-self: start; }
  .nga-case__metrics { grid-template-columns: 1fr; }
  .nga-case__m { border-left: 0; border-top: 1px solid var(--line); }
  .nga-case__m:first-child { border-top: 0; }
  .nga-case__quote { grid-template-columns: 1fr; gap: 24px; }
  .nga-case__attr { align-items: flex-start; text-align: left; }
  .nga-reviews__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .nga-reviews__score { text-align: left; }
  .nga-reviews__grid { grid-template-columns: 1fr; }
  .nga-automattic__row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .nga-news__posts { grid-template-columns: 1fr; }
  .nga-foot__top { grid-template-columns: 1fr 1fr; }
  .nga-foot__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  :root { --nga-pad: 20px; }
  .nga-hero__ctas .ng-btn { width: 100%; justify-content: center; }
  .nga-audit__grid { grid-template-columns: 1fr; }
  .nga-audit__cell[data-col="0"] { border-right: 0; padding-right: 0; }
  .nga-audit__cell[data-col="1"] { padding-left: 0; }
  .nga-services__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .nga-foot__top { grid-template-columns: 1fr; }
}
