/* =========================================================
   GRUG website v2 — 2026 enhancements
   Loaded AFTER site-v2.css. Surgical overrides + new layers.
   ========================================================= */

/* ---------- FILM GRAIN OVERLAY (SVG noise via mask) ---------- */
.grug-site::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 80;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  animation: grainShift 8s steps(6) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -2%); }
  60%  { transform: translate(-1%, -3%); }
  80%  { transform: translate(3%, 1%); }
  100% { transform: translate(0, 0); }
}

/* ---------- SCROLL PROGRESS BAR ---------- */
.grug-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.04);
  z-index: 100;
}
.grug-progress__fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #19E5FF 0%, #1A66D6 50%, #19E5FF 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 18px rgba(25, 229, 255, 0.65);
  transition: width 80ms linear;
  animation: progressShine 3s linear infinite;
}
@keyframes progressShine {
  from { background-position: 0% 0; }
  to   { background-position: 200% 0; }
}

/* ---------- CUSTOM CURSOR FOLLOWER ---------- */
@media (hover: hover) and (pointer: fine) {
  .grug-cursor {
    position: fixed; top: 0; left: 0;
    width: 32px; height: 32px;
    border: 1px solid rgba(143, 188, 246, 0.55);
    border-radius: 999px;
    pointer-events: none; z-index: 95;
    transform: translate(-50%, -50%);
    transition: width 280ms var(--ease-out),
                height 280ms var(--ease-out),
                background 280ms var(--ease-out),
                border-color 280ms var(--ease-out),
                opacity 600ms var(--ease-out);
    mix-blend-mode: difference;
    opacity: 0;
  }
  .grug-cursor.is-ready { opacity: 1; }
  .grug-cursor.is-idle  { opacity: 0; }
  .grug-cursor.is-hot {
    width: 64px; height: 64px;
    background: rgba(25, 229, 255, 0.12);
    border-color: rgba(25, 229, 255, 0.9);
  }
  .grug-cursor.is-pressed { width: 22px; height: 22px; background: rgba(25,229,255,0.3); }
  .grug-cursor__dot {
    position: fixed; top: 0; left: 0;
    width: 4px; height: 4px;
    background: #19E5FF;
    border-radius: 999px;
    pointer-events: none; z-index: 96;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(25,229,255,0.8);
    opacity: 0; transition: opacity 600ms var(--ease-out);
  }
  .grug-cursor__dot.is-ready { opacity: 1; }
  .grug-cursor__dot.is-idle  { opacity: 0; }
}

/* ---------- NAV — STATUS PILL + REFINED MICRO ---------- */
.grug-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  margin-top: 30px;
  background: rgba(3, 7, 31, 0.55);
  border: 1px solid rgba(25, 229, 255, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #C7DDFB;
  white-space: nowrap;
  transition: margin-top var(--dur-base) var(--ease-out);
}
.grug-nav.is-scrolled .grug-status { margin-top: 18px; }
.grug-status__dot {
  width: 7px; height: 7px;
  background: #19C37D;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(25, 195, 125, 0.85);
  animation: statusPulse 2.2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.55; }
}

/* nav extras row: position status pill at the right of the nav items */
.grug-nav__extras {
  display: flex; align-items: center; gap: 18px;
}

/* link underline → fancy chevron sliding */
.grug-nav__link {
  display: inline-flex; align-items: center; gap: 8px;
}
.grug-nav__link::before {
  content: ""; width: 0; height: 1px; background: var(--grug-cyan-glow);
  transition: width var(--dur-base) var(--ease-out);
  margin-right: -8px;
  opacity: 0;
}
.grug-nav__link:hover::before { width: 16px; margin-right: 0; opacity: 1; }

/* ---------- HERO — bigger, left-aligned editorial composition ---------- */
.grug-hero {
  justify-content: flex-start;
  align-items: stretch;
  padding-top: 0;
}
.grug-hero__scrim {
  background:
    linear-gradient(90deg, rgba(3,7,31,0.82) 0%, rgba(3,7,31,0.35) 32%, rgba(3,7,31,0.05) 60%, rgba(3,7,31,0.35) 100%),
    linear-gradient(180deg, rgba(3,7,31,0.4) 0%, transparent 25%, rgba(3,7,31,0.65) 100%);
}
.grug-hero__content {
  text-align: left;
  align-items: flex-start;
  max-width: 760px;
  padding: 0 64px 64px;
  margin-top: auto;
}
.grug-hero__content .grug-hero__sub {
  margin-left: 0;
  margin-right: auto;
}
.grug-hero__content .grug-display__line { text-align: left; }
.grug-hero__cta { justify-content: flex-start; }
.grug-hero__sub {
  font-size: 16px; max-width: 460px;
  color: #DCE6FA;
  margin: 18px 0 24px;
}

/* hero eyebrow — drop the leading rule, drop into a small monospace tag */
.grug-hero .grug-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.36em;
  color: var(--grug-cyan-glow);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.grug-hero .grug-eyebrow::before { display: none; }

.grug-display {
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0;
}
.grug-display .blu {
  background: linear-gradient(180deg, #8FBCF6 0%, #19E5FF 50%, #1A66D6 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* a vertical "REEL" stamp on the right edge */
.grug-hero__stamp {
  position: absolute; right: 32px; top: 50%; z-index: 3;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  display: flex; gap: 18px; align-items: center;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.6em; text-transform: uppercase;
  color: rgba(199, 221, 251, 0.6);
  pointer-events: none;
}
.grug-hero__stamp span:first-child::before {
  content: ""; display: inline-block;
  width: 28px; height: 1px; background: rgba(143,188,246,0.4);
  margin-right: 12px; vertical-align: middle;
}

/* corner telemetry — promote to a small card */
.grug-hero__corner {
  left: auto;
  right: 64px;
  bottom: 64px;
  padding: 10px 14px;
  background: rgba(3,7,31,0.55);
  border: 1px solid rgba(143,188,246,0.18);
  border-radius: 6px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-direction: row; align-items: center; gap: 16px;
}
.grug-hero__corner::before {
  content: ""; width: 8px; height: 8px;
  background: var(--grug-cyan-glow);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(25, 229, 255, 0.85);
  animation: statusPulse 2s ease-in-out infinite;
}
.grug-hero__corner .k {
  color: #5DA0F2;
}

/* hero indicator (was hidden — show as elegant top-right) */
.grug-hero__indicator {
  display: flex !important;
  gap: 8px;
  right: 80px; bottom: 110px; left: auto;
}
.grug-hero__dot {
  width: 22px; height: 2px;
}

/* aurora glow behind hero typography */
.grug-hero__content::before {
  content: ""; position: absolute;
  left: 0; bottom: 0; width: 70%; height: 70%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 30% 80%, rgba(26, 102, 214, 0.22), transparent 70%);
  filter: blur(50px);
  z-index: -1;
}

.grug-eyebrow {
  font-size: 12px;
  letter-spacing: 0.36em;
}

/* ---------- MARQUEE — speed + size + accent dots ---------- */
.grug-marquee {
  padding: 32px 0;
  position: relative;
  background:
    linear-gradient(90deg, #02050F, #050B22 50%, #02050F);
}
.grug-marquee__item {
  font-size: 36px;
  font-weight: 700;
  color: rgba(245, 247, 250, 0.22);
  letter-spacing: -0.022em;
}
.grug-marquee__item::after {
  background: var(--grug-cyan-glow);
  box-shadow: 0 0 16px rgba(25, 229, 255, 0.7);
}

/* ---------- SECTION DIVIDER (use as inner element of dark sections) ---------- */
.grug-rule {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: #5DA0F2;
  max-width: 1400px; margin: 0 auto 40px;
}
.grug-rule__line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(143,188,246,0.4), transparent);
}
.grug-rule__line--r {
  background: linear-gradient(90deg, transparent, rgba(143,188,246,0.4));
}

/* ---------- STATS — chrome treatment + giant typography ---------- */
.grug-stats {
  padding: 120px 64px;
}
.grug-stat__num {
  font-size: clamp(72px, 8vw, 128px);
  letter-spacing: -0.05em;
  font-weight: 700;
}
.grug-stat {
  position: relative; padding-top: 22px;
}
.grug-stat::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 56px; height: 2px;
  background: linear-gradient(90deg, #19E5FF, transparent);
}
.grug-stat:first-child::before { left: 8px; }

/* ---------- CAPABILITIES — refined ---------- */
.grug-capabilities {
  padding: 160px 64px;
}
/* Force 16:9 aspect for the rotating media frame */
.grug-cap-split { align-items: start !important; }
.grug-cap-split__media { align-self: start !important; height: auto !important; }
.grug-cap-split__frame {
  aspect-ratio: 16 / 9 !important;
  min-height: 0 !important;
  height: auto !important;
}
.grug-capabilities::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 90%);
}
.grug-cap-row__title { font-size: 26px; }
.grug-cap-row.is-active {
  background: linear-gradient(90deg, rgba(26,102,214,0.06), transparent 70%);
}

/* ---------- CLIENTS — rework as logo strip with subtle frame ---------- */
.grug-clients {
  padding: 80px 64px;
  background:
    radial-gradient(ellipse 90% 60% at 50% 50%, rgba(11, 82, 189, 0.08), transparent 70%),
    var(--grug-navy-900);
}
.grug-clients .grug-eyebrow {
  margin-bottom: 8px;
}
.grug-clients .grug-eyebrow::before { display: none; }

/* ---------- PORTFOLIO — explicit editorial rows ---------- */
.grug-portfolio { padding: 160px 64px; }
.grug-portfolio__rows {
  display: flex; flex-direction: column;
  gap: 16px;
  max-width: 1500px; margin: 0 auto;
}
.grug-prow {
  display: grid; gap: 16px;
}
.grug-prow--full  { grid-template-columns: 1fr; }
.grug-prow--three { grid-template-columns: repeat(3, 1fr); }
.grug-prow--two   { grid-template-columns: repeat(2, 1fr); }

/* Hide legacy grid */
.grug-portfolio__grid { display: none !important; }

/* Card sizing per row type */
.grug-prow .grug-project {
  grid-column: auto !important;
  grid-row: auto !important;
  aspect-ratio: auto !important;
}
.grug-prow--full  .grug-project { aspect-ratio: 21 / 9 !important; }
.grug-prow--two   .grug-project { aspect-ratio: 16 / 9 !important; }
.grug-prow--three .grug-project { aspect-ratio: 4 / 3 !important; }

/* Title sizing per row */
.grug-prow--full  .grug-project__title { font-size: clamp(36px, 4vw, 64px) !important; line-height: 1.0; letter-spacing: -0.035em; font-weight: 700; }
.grug-prow--two   .grug-project__title { font-size: clamp(24px, 2.2vw, 34px) !important; line-height: 1.05; letter-spacing: -0.02em; }
.grug-prow--three .grug-project__title { font-size: 22px !important; }

.grug-prow--full .grug-project__meta { padding: 40px !important; }
.grug-prow--two  .grug-project__meta { padding: 28px !important; }

.grug-prow--full .grug-project__kind { font-size: 14px !important; color: #DCE6FA; }
.grug-prow--two  .grug-project__kind { font-size: 13px !important; color: #DCE6FA; }

.grug-prow--full .grug-project__scrim,
.grug-prow--two .grug-project__scrim {
  background:
    linear-gradient(180deg, transparent 45%, rgba(2,5,15,0.5) 70%, rgba(2,5,15,0.92) 100%);
}

/* ===== FEATURED TILE — RYZR case study (now lives in a 'full' row) ===== */
.grug-project.is-featured {
  text-decoration: none;
}
.grug-project.is-featured .grug-project__img {
  background-position: center 40%;
}
.grug-project.is-featured .grug-project__scrim {
  background:
    linear-gradient(180deg, transparent 30%, rgba(2,5,15,0.45) 60%, rgba(2,5,15,0.92) 100%),
    linear-gradient(90deg, rgba(2,5,15,0.45) 0%, transparent 50%);
}
.grug-project.is-featured .grug-project__cta {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: rgba(127,229,216,0.16);
  border: 1px solid rgba(127,229,216,0.45);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #B8F3EA;
  font-weight: 600;
  align-self: flex-start;
  width: fit-content;
  transition: all 320ms var(--ease-out);
}
.grug-project.is-featured:hover .grug-project__cta {
  background: #7FE5D8;
  color: #02050F;
  border-color: #7FE5D8;
  transform: translateX(4px);
}
.grug-project__badge {
  position: absolute;
  top: 24px; right: 24px;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(2,5,15,0.6);
  border: 1px solid rgba(127,229,216,0.45);
  border-radius: 6px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: #B8F3EA;
}
.grug-project__badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px;
  background: #7FE5D8;
  box-shadow: 0 0 10px rgba(127,229,216,0.7);
  animation: statusPulse 2.2s ease-in-out infinite;
}
.grug-project.is-featured .grug-project__arrow {
  background: rgba(127,229,216,0.18);
  border-color: rgba(127,229,216,0.5);
  color: #B8F3EA;
}

@media (max-width: 1100px) {
  .grug-prow--three { grid-template-columns: repeat(2, 1fr); }
  .grug-prow--three .grug-project:nth-child(3) { grid-column: 1 / span 2; aspect-ratio: 16 / 9 !important; }
}
@media (max-width: 700px) {
  .grug-prow--three,
  .grug-prow--two,
  .grug-prow--full { grid-template-columns: 1fr; }
  .grug-prow--three .grug-project:nth-child(3) { grid-column: auto; aspect-ratio: 4 / 3 !important; }
  .grug-prow--full .grug-project { aspect-ratio: 16 / 9 !important; }
  .grug-prow--two .grug-project,
  .grug-prow--three .grug-project { aspect-ratio: 4 / 3 !important; }
  .grug-prow--full .grug-project__title { font-size: 32px !important; }
}

/* ---------- SECTION HEADS — bigger displays ---------- */
.grug-h2 {
  font-size: clamp(40px, 5.2vw, 80px);
  letter-spacing: -0.036em;
  font-weight: 700;
}
.grug-p.lg {
  font-size: 19px;
  line-height: 1.55;
  color: #DCE6FA;
}

/* ---------- PROCESS — vertical alternating timeline ---------- */
.grug-process { padding: 160px 64px; }
.grug-process__rail {
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 880px;
  position: relative;
}
.grug-process__line {
  left: 30px; right: auto; top: 0; bottom: 0;
  width: 1px; height: auto;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.06));
}
.grug-process__line .fill {
  background: linear-gradient(180deg, var(--grug-cyan-glow) 0%, var(--grug-blue-500) 100%);
  transform-origin: top;
}
.grug-process.is-visible .grug-process__line .fill { transform: scaleY(1); transform-origin: top; }
.grug-step {
  padding: 28px 0 28px 80px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.grug-step:last-child { border-bottom: 0; }
.grug-step__dot {
  position: absolute; left: 16px; top: 30px;
  width: 28px; height: 28px;
  background: var(--grug-navy-900);
}
.grug-step__title {
  font-size: 32px;
  text-transform: none;
  letter-spacing: -0.024em;
  font-weight: 600;
}
.grug-step__body {
  font-size: 16px;
  max-width: 620px;
  color: #B8C2D3;
}

/* ---------- CTA — bolder, with frame ---------- */
.grug-cta {
  padding: 180px 64px;
}
.grug-cta__inner {
  border: 1px solid rgba(143,188,246,0.16);
  padding: 80px 48px;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(26,102,214,0.18), transparent 70%),
    linear-gradient(180deg, rgba(3,7,31,0.55), rgba(3,7,31,0.85));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---------- FOOTER ---------- */
.grug-footer { padding: 80px 64px 36px; }

/* ---------- SCROLL CUE BACK ---------- */
.grug-scroll-cue {
  display: flex !important;
  flex-direction: column; gap: 8px;
  align-items: center;
  right: auto; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.4em; color: rgba(199, 221, 251, 0.55);
}

/* ---------- BUTTON tweaks ---------- */
.grug-btn--primary {
  background: linear-gradient(180deg, #2C7CEC 0%, #0F66E0 100%);
  box-shadow: 0 12px 28px rgba(11, 82, 189, 0.45), inset 0 1px 0 rgba(255,255,255,0.18);
}
.grug-btn--primary:hover {
  background: linear-gradient(180deg, #5DA0F2 0%, #2C7CEC 100%);
}

/* tiny hide on small */
@media (max-width: 900px) {
  .grug-hero__stamp { display: none; }
  .grug-hero__content { padding: 0 28px 60px; }
  .grug-status { display: none; }
  .grug-process__line { left: 14px; }
  .grug-step { padding-left: 56px; }
  .grug-step__dot { left: 0; }
}

/* =========================================================
   EDITORIAL LAYER — significant redesign (v2.1)
   ========================================================= */

/* ---------- SECTION INDEX STRIP — split into corner anchors ---------- */
.grug-index {
  position: absolute;
  top: 24px; left: 64px; right: 64px;
  z-index: 5;
  display: contents;
  pointer-events: none;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.32em; text-transform: uppercase;
}
.grug-index__no {
  position: absolute;
  top: 32px; left: 64px;
  z-index: 5;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #DCE6FA;
  display: inline-flex; align-items: center; gap: 14px;
  -webkit-text-fill-color: currentColor;
  background: none;
}
.grug-index__no::before {
  content: ""; width: 32px; height: 1px;
  background: linear-gradient(90deg, var(--grug-cyan-glow), transparent);
}
.grug-index__title {
  position: absolute;
  top: 32px; left: 64px;
  padding-left: 60px;
  z-index: 5;
  color: #DCE6FA;
  letter-spacing: 0.32em;
}
/* hide the title position offset trick by injecting a child wrapper */
.grug-index__title { display: none; }

.grug-index__meta {
  position: absolute;
  right: 64px; bottom: 32px;
  z-index: 5;
  color: #5DA0F2;
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
}
.grug-index__meta::after {
  content: ""; width: 32px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--grug-cyan-glow));
}
.grug-index__live {
  position: absolute;
  right: 64px; bottom: 32px;
  z-index: 5;
  display: inline-flex; align-items: center; gap: 8px;
  color: #DCE6FA;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.grug-index__dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--grug-cyan-glow);
  box-shadow: 0 0 10px rgba(25,229,255,0.7);
  animation: statusPulse 2.2s ease-in-out infinite;
  display: inline-block;
}

@media (max-width: 700px) {
  .grug-index__no, .grug-index__meta, .grug-index__live { left: 24px; right: 24px; top: 16px; bottom: 16px; }
}

/* ---------- GIANT SECTION WATERMARK — outlined numeral behind heading ---------- */
.grug-mark {
  position: absolute;
  pointer-events: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(180px, 22vw, 360px);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(143, 188, 246, 0.14);
  text-stroke: 1px rgba(143, 188, 246, 0.14);
  top: 0; right: 64px;
  z-index: 0;
  user-select: none;
}
.grug-mark--l { right: auto; left: 64px; }

/* ---------- HERO — editorial mode (sidebar tagline + image-led layout) ---------- */
.grug-hero__content {
  max-width: 1080px;
}

.grug-hero__sidebar {
  position: absolute; left: 80px; top: 50%; z-index: 3;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 16px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: #94A0B2;
  border-left: 1px solid rgba(143, 188, 246, 0.22);
  padding: 0 0 0 18px;
  max-width: 240px;
}
.grug-hero__sidebar strong {
  color: #fff; font-family: var(--font-display); font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 11px;
  display: block;
}
.grug-hero__sidebar > div { line-height: 1.6; }

@media (max-width: 1100px) {
  .grug-hero__sidebar { display: none; }
}

/* ---------- CAPABILITIES — editorial split title ---------- */
.grug-capabilities__head {
  text-align: left !important;
  margin: 0 auto 56px;
  max-width: 1400px !important;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end;
}
.grug-capabilities__head .grug-eyebrow.center { justify-content: flex-start !important; }
.grug-capabilities__head .grug-h2.center { text-align: left !important; }
.grug-capabilities__head .grug-p.lg { max-width: none; margin: 0 !important; }

@media (max-width: 900px) {
  .grug-capabilities__head { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- SERVICES — editorial split title ---------- */
.grug-services__head {
  text-align: left !important;
  margin: 0 auto 56px;
  max-width: 1400px !important;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end;
}
.grug-services__head .grug-eyebrow.center { justify-content: flex-start !important; }
.grug-services__head .grug-h2.center { text-align: left !important; }
.grug-services__head .grug-p.lg { max-width: none; margin: 0 !important; }

@media (max-width: 900px) {
  .grug-services__head { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- PORTFOLIO — editorial split title ---------- */
.grug-portfolio__head {
  text-align: left !important;
  margin: 0 auto 56px !important;
  max-width: 1400px !important;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end;
}
.grug-portfolio__head .grug-eyebrow.center { justify-content: flex-start !important; }
.grug-portfolio__head .grug-h2.center { text-align: left !important; }
.grug-portfolio__head .grug-p.lg { max-width: none; margin: 0 !important; }

@media (max-width: 900px) {
  .grug-portfolio__head { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- PROCESS — editorial split title ---------- */
.grug-process__head {
  text-align: left !important;
  margin: 0 auto 56px !important;
  max-width: 880px !important;
}
.grug-process__head .grug-eyebrow.center { justify-content: flex-start !important; }
.grug-process__head .grug-h2.center { text-align: left !important; }

/* ---------- LEADERSHIP — editorial split title ---------- */
.grug-leadership__head {
  text-align: left !important;
  margin: 0 auto 56px !important;
  max-width: 1400px !important;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end;
}
.grug-leadership__head .grug-eyebrow.center { justify-content: flex-start !important; }
.grug-leadership__head .grug-h2.center { text-align: left !important; }
.grug-leadership__head .grug-p.lg { max-width: none; margin: 0 !important; }

@media (max-width: 900px) {
  .grug-leadership__head { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- CTA — keep centered (intentional pause) ---------- */
.grug-cta__inner { text-align: center; }
.grug-cta .grug-eyebrow.center { justify-content: center; }
.grug-cta .grug-h2.center { text-align: center; }

/* ---------- SECTION POSITIONING — allow watermark anchoring ---------- */
.grug-capabilities, .grug-services, .grug-portfolio,
.grug-process, .grug-stats, .grug-leadership, .grug-clients {
  position: relative; overflow: hidden;
}

/* ---------- STATS — center + watermark friendly ---------- */
.grug-stats .grug-mark { right: 64px; top: -40px; }
.grug-stats__grid { position: relative; z-index: 1; }

/* ---------- CLIENTS — bigger, editorial framing ---------- */
.grug-clients {
  padding: 100px 64px !important;
}
.grug-clients__inner { text-align: left !important; max-width: 1400px !important; }
.grug-clients .grug-eyebrow.center { justify-content: flex-start !important; margin-bottom: 18px !important; }
.grug-clients__row { margin-top: 24px !important; }

/* ---------- LEADERSHIP CARDS — slightly larger image area ---------- */
.grug-leader__media { aspect-ratio: 4 / 3 !important; }

/* =========================================================
   WATERMARK SUPPRESSION
   Any image-bearing card gets a soft dark vignette in the
   bottom-right corner to hide AI-tool sparkle watermarks.
   ========================================================= */
.grug-project,
.grug-leader__media,
.grug-cap-split__frame,
.grug-spotlight__frame {
  position: relative;
}
.grug-project::after,
.grug-leader__media::before,
.grug-cap-split__frame::after,
.grug-spotlight__frame::after {
  content: "";
  position: absolute;
  right: 0; bottom: 0;
  width: 60px; height: 60px;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle at bottom right,
                rgba(3,7,31,1) 0%,
                rgba(3,7,31,0.9) 18%,
                rgba(3,7,31,0.55) 45%,
                rgba(3,7,31,0.2) 70%,
                transparent 100%);
}
/* portfolio meta/arrow live at z-index 2, so vignette at z-index 1 stays below text */
.grug-project__meta, .grug-project__arrow, .grug-project__scrim { z-index: 2; }
.grug-leader__role { z-index: 3; }

/* small image-thumb-style media (capabilities) ─ smaller corner */
.grug-cap-split__frame::after { width: 70px; height: 70px; }

/* spotlight has full-bleed image — larger corner */
.grug-spotlight__frame::after { width: 80px; height: 80px; }

/* JETX logo is wide line-art — bump max-width */
.grug-client__img--logoJetxReal { max-height: 96px; max-width: 78%; }

/* Project card: opt-in "contain" fit for images that shouldn't be cropped */
.grug-project__img.is-contain {
  background-size: contain !important;
  background-repeat: no-repeat;
  background-color: #000;
}
.grug-project__img.is-contain ~ .grug-project__scrim {
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.85) 100%);
}


.grug-awards {
  position: relative; overflow: hidden;
  padding: 140px 64px 160px;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(228, 5, 33, 0.06), transparent 70%),
    var(--grug-navy-900);
}
.grug-awards__head {
  text-align: left;
  margin: 0 auto 56px;
  max-width: 1400px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end;
  position: relative; z-index: 2;
}
.grug-awards__head .grug-eyebrow.center { justify-content: flex-start; color: #FF2A3C; }
.grug-awards__head .grug-eyebrow.center::before { background: linear-gradient(90deg, transparent, #FF2A3C); }
.grug-awards__head .grug-h2.center { text-align: left; }
.grug-awards__head .grug-p.lg { max-width: none; margin: 0; }

.grug-awards__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1400px; margin: 0 auto;
  position: relative; z-index: 1;
}

.grug-award {
  position: relative;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: all 500ms var(--ease-out);
}
.grug-award::before {
  content: ""; position: absolute; inset: -1px;
  border-radius: 14px; padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(228, 5, 33, 0.4), transparent 60%);
  -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 500ms var(--ease-out);
  pointer-events: none;
}
.grug-award:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 24px 60px rgba(3,7,31,0.55), 0 0 0 1px rgba(228, 5, 33, 0.16);
}
.grug-award:hover::before { opacity: 1; }

.grug-award__seal {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: rgba(228, 5, 33, 0.1);
  border: 1px solid rgba(228, 5, 33, 0.4);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: #FF6B7A;
}
.grug-award__seal .g { opacity: 0.5; }

.grug-award__plate {
  /* WHITE plate so government logos read with full color integrity */
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F6FA 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  padding: 36px 28px;
  min-height: 150px;
  position: relative;
}
.grug-award__plate::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(228, 5, 33, 0.4), transparent);
  opacity: 0; transition: opacity 500ms var(--ease-out);
}
.grug-award:hover .grug-award__plate::after { opacity: 1; }
.grug-award__plate img {
  max-width: 85%; max-height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08));
}

.grug-award__body {
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(180deg, rgba(11,82,189,0.04), transparent);
}
.grug-award__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 15px; letter-spacing: 0.04em;
  color: #fff;
}
.grug-award__detail {
  font-family: var(--font-body); font-size: 12px;
  line-height: 1.5; color: #94A0B2;
}

@media (max-width: 1100px) {
  .grug-awards__grid { grid-template-columns: repeat(2, 1fr); }
  .grug-awards__head { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 600px) {
  .grug-awards__grid { grid-template-columns: 1fr; }
  .grug-awards { padding: 80px 24px 100px; }
}

/* ---------- bigger hero stamp ---------- */
.grug-hero__stamp {
  font-size: 11px;
  color: rgba(199, 221, 251, 0.75);
}

/* =========================================================
   SHOWREEL — autoplay studio video
   ========================================================= */
.grug-reel {
  position: relative; overflow: hidden;
  padding: 140px 64px 160px;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(26,102,214,0.14), transparent 70%),
    var(--grug-navy-900);
}
.grug-reel__head {
  text-align: left;
  margin: 0 auto 56px;
  max-width: 1400px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end;
  position: relative; z-index: 2;
}
.grug-reel__head .grug-eyebrow.center { justify-content: flex-start; }
.grug-reel__head .grug-h2.center { text-align: left; }
.grug-reel__head .grug-p.lg { max-width: none; margin: 0; }

.grug-reel__frame {
  position: relative;
  flex: 1;
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(143,188,246,0.18);
  box-shadow:
    0 60px 120px rgba(0,0,0,0.65),
    0 0 0 1px rgba(26,102,214,0.08),
    inset 0 1px 0 rgba(255,255,255,0.08);
  aspect-ratio: 16 / 9;
  background: #02050F;
  z-index: 1;
}

/* corner mask + GRUG studio badge — covers Veo logo */
.grug-reel__brand {
  position: absolute; right: 14px; bottom: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: rgba(3,7,31,0.78);
  border: 1px solid rgba(143,188,246,0.28);
  border-radius: 6px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: #DCE6FA;
}
.grug-reel__brand::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--grug-cyan-glow);
  box-shadow: 0 0 8px rgba(25,229,255,0.85);
}

/* layout — frame + side index */
.grug-reel__layout {
  display: grid; grid-template-columns: 1fr 280px; gap: 24px;
  max-width: 1400px; margin: 0 auto;
  position: relative; z-index: 1;
  align-items: start;
}
.grug-reel__index {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.grug-reel__chip {
  width: 100%;
  display: grid; grid-template-columns: 28px 1fr; gap: 12px;
  align-items: center;
  padding: 14px 14px 14px 12px;
  background: transparent;
  border: 1px solid rgba(143,188,246,0.08);
  border-radius: 10px;
  color: #B8C2D3;
  font: inherit;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: all 320ms var(--ease-out);
}
.grug-reel__chip:hover {
  border-color: rgba(143,188,246,0.32);
  background: rgba(26,102,214,0.05);
  color: #fff;
}
.grug-reel__chip.is-active {
  border-color: rgba(25,229,255,0.4);
  background: linear-gradient(90deg, rgba(15,102,224,0.18), rgba(15,102,224,0));
  color: #fff;
}
.grug-reel__chip .n {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--grug-cyan-glow);
  font-weight: 500;
}
.grug-reel__chip .t {
  font-family: var(--font-display); font-weight: 600;
  font-size: 14px; letter-spacing: -0.01em;
}
.grug-reel__chip .bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--grug-cyan-glow);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 320ms var(--ease-out);
}
.grug-reel__chip.is-active .bar { transform: scaleY(1); }

/* counter badge on the video frame */
.grug-reel__counterBadge {
  position: absolute; top: 20px; left: 20px; z-index: 2;
  display: inline-flex; align-items: baseline; gap: 4px;
  padding: 8px 14px;
  background: rgba(3,7,31,0.55);
  border: 1px solid rgba(143,188,246,0.22);
  border-radius: 6px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  color: #fff;
}
.grug-reel__counterBadge > span:first-child {
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--grug-cyan-glow);
}
.grug-reel__counterBadge .slash { color: rgba(255,255,255,0.4); font-size: 13px; }
.grug-reel__counterBadge .total { font-size: 11px; color: #B8C2D3; letter-spacing: 0.04em; }

@media (max-width: 1000px) {
  .grug-reel__layout { grid-template-columns: 1fr; }
  .grug-reel__index { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .grug-reel__chip { min-width: 240px; }
}
.grug-reel__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Crop any AI-tool watermark in the bottom-right corner.
     transform-origin top-left + scale up pushes bottom + right edges OUTSIDE the frame. */
  transform: scale(1.16);
  transform-origin: 0 0;
  filter: saturate(0.95) contrast(1.05);
}
/* extra cover: a dark vignette in the bottom-right corner over the video */
.grug-reel__frame::after {
  content: "";
  position: absolute;
  right: 0; bottom: 0;
  width: 22%; height: 18%;
  pointer-events: none; z-index: 2;
  background: radial-gradient(ellipse at bottom right, rgba(3,7,31,0.85) 0%, rgba(3,7,31,0.55) 40%, transparent 80%);
}
.grug-reel__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3,7,31,0.45) 0%, transparent 25%, rgba(3,7,31,0.6) 100%);
}
.grug-reel__meta {
  position: absolute; left: 24px; bottom: 24px; z-index: 2;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.grug-reel__counter {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: rgba(3,7,31,0.55);
  border: 1px solid rgba(143,188,246,0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: #DCE6FA;
}
.grug-reel__counter .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: #E40521;
  box-shadow: 0 0 10px rgba(228, 5, 33, 0.85);
  animation: statusPulse 1.6s ease-in-out infinite;
}
.grug-reel__sound {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(3,7,31,0.6);
  border: 1px solid rgba(143,188,246,0.28);
  color: #DCE6FA;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 300ms var(--ease-out);
}
.grug-reel__sound:hover {
  background: var(--grug-blue-500);
  border-color: var(--grug-blue-400);
  color: #fff;
  transform: scale(1.05);
}

@media (max-width: 900px) {
  .grug-reel { padding: 80px 24px 100px; }
  .grug-reel__head { grid-template-columns: 1fr; gap: 18px; }
}

/* =========================================================
   SPOTLIGHT — phase markers (A/B/C)
   ========================================================= */
.grug-spotlight__frame { position: relative; }
.grug-spotlight__phases {
  position: absolute; top: 20px; left: 20px; z-index: 3;
  display: flex; gap: 6px;
}
.grug-spotlight__phases > div {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: rgba(3, 7, 31, 0.75);
  border: 1px solid rgba(143, 188, 246, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 6px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: #DCE6FA;
}
.grug-spotlight__phases .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--grug-blue-500);
  color: #fff;
  font-size: 9px; font-weight: 700;
}
.grug-spotlight__phases > div:nth-child(2) .n { background: var(--grug-cyan-glow); color: #03071F; }
.grug-spotlight__phases > div:nth-child(3) .n { background: #19C37D; color: #03071F; }

@media (max-width: 700px) {
  .grug-spotlight__phases { flex-direction: column; }
  .grug-spotlight__phases > div { padding: 6px 10px; }
}

/* override old spotlight - the new image is a documented board, keep it contained but elegant */
.grug-spotlight {
  padding: 140px 64px 160px !important;
}
.grug-spotlight__head {
  text-align: left !important;
  margin: 0 auto 56px !important;
  max-width: 1400px !important;
}
.grug-spotlight__head .grug-eyebrow.center { justify-content: flex-start; }
.grug-spotlight__head .grug-h2.center { text-align: left; }
.grug-spotlight__head .grug-p.lg { max-width: 600px !important; margin: 0 !important; }
.grug-spotlight__frame {
  aspect-ratio: 4 / 3 !important;
  max-width: 1180px !important;
  background: #0A0F1E !important;
}
.grug-spotlight__img {
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-color: #0A0F1E !important;
}

/* =========================================================
   VOICES — pull-quote carousel
   ========================================================= */
.grug-voices {
  position: relative; overflow: hidden;
  padding: 160px 64px;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(127, 229, 216, 0.06), transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(26, 102, 214, 0.08), transparent 70%),
    var(--grug-navy-900);
}
.grug-voices__inner {
  max-width: 1280px; margin: 0 auto;
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 64px;
  align-items: center;
}
.grug-voices__rail {
  display: flex; flex-direction: column; gap: 28px; align-self: start;
  padding-top: 32px;
}
.grug-voices__eb {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: #7FE5D8;
  display: inline-flex; align-items: center; gap: 14px;
}
.grug-voices__eb::before {
  content: ""; width: 28px; height: 1px;
  background: linear-gradient(90deg, #7FE5D8, transparent);
}
.grug-voices__counter {
  font-family: var(--font-display); font-weight: 600;
  font-size: 22px; letter-spacing: -0.01em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.grug-voices__counter span {
  color: #5F6A82; font-size: 14px; font-weight: 400;
}

.grug-voices__stage {
  position: relative;
  padding: 16px 0;
  min-height: 280px;
  display: flex; flex-direction: column; gap: 40px;
}
.grug-voices__mark {
  position: absolute;
  top: -64px; left: -32px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 280px;
  line-height: 1;
  color: #7FE5D8;
  opacity: 0.12;
  pointer-events: none;
}
.grug-voices__quote {
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.8vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
  animation: voiceFade 600ms var(--ease-out);
}
@keyframes voiceFade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.grug-voices__attr {
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--font-mono);
}
.grug-voices__rule {
  width: 48px; height: 1px; background: #7FE5D8;
  margin-bottom: 14px;
}
.grug-voices__who {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: #fff;
}
.grug-voices__where {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #94A0B2;
}

.grug-voices__dots {
  display: flex; flex-direction: column; gap: 14px;
  justify-self: end;
  padding-top: 32px;
}
.grug-voices__dot {
  width: 28px; height: 2px;
  background: rgba(143, 188, 246, 0.18);
  border: 0; padding: 0;
  cursor: pointer;
  transition: all 320ms var(--ease-out);
}
.grug-voices__dot:hover { background: rgba(127, 229, 216, 0.5); }
.grug-voices__dot.is-active {
  background: #7FE5D8;
  width: 48px;
  box-shadow: 0 0 12px rgba(127, 229, 216, 0.6);
}

@media (max-width: 1000px) {
  .grug-voices { padding: 100px 28px; }
  .grug-voices__inner { grid-template-columns: 1fr; gap: 32px; }
  .grug-voices__rail { flex-direction: row; padding-top: 0; align-items: center; justify-content: space-between; }
  .grug-voices__dots { flex-direction: row; justify-self: start; padding-top: 0; }
  .grug-voices__mark { font-size: 180px; top: -40px; left: -12px; }
  .grug-voices__stage { min-height: 0; gap: 28px; }
}


