/* ===== HOME PAGE ===== */

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 22px var(--pad-page);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  transition: backdrop-filter 300ms, background 300ms, padding 300ms var(--ease-out);
}
.site-header > * { min-width: 0; }
.site-header.scrolled {
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  border-bottom: 1px solid var(--rule);
  padding: 14px var(--pad-page);
}
.site-header__logo { display: flex; align-items: center; }
.site-header__logo svg { height: 28px; width: auto; }
.site-header__logo img { height: 28px !important; width: auto !important; display: block; }
.site-header__logo .logo-light { display: none; }
[data-theme="light"] .site-header__logo .logo-dark { display: none; }
[data-theme="light"] .site-header__logo .logo-light { display: block; }
.site-header__nav {
  display: flex; gap: 4px; background: var(--bg-card);
  border: 1px solid var(--rule); border-radius: 999px; padding: 6px;
}
.site-header__nav a {
  padding: 8px 16px; font-size: 13px; border-radius: 999px;
  position: relative; transition: color 200ms;
  color: var(--fg-dim);
}
.site-header__nav a:hover, .site-header__nav a[aria-current="page"] { color: var(--fg); }
.site-header__nav a[aria-current="page"]::before {
  content: ''; position: absolute; inset: 0; border-radius: 999px;
  background: var(--bg-elev); z-index: -1;
}
.site-header__cta { display: flex; align-items: center; gap: 14px; }
.site-header__clock {
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim);
  display: flex; align-items: center; gap: 6px;
}
.site-header__clock::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 8px #4ade80;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; } 50% { opacity: 0.4; }
}
@media (max-width: 1100px) {
  .site-header__clock { display: none; }
}
@media (max-width: 980px) {
  .site-header__nav a { padding: 6px 12px; font-size: 12px; }
}
@media (max-width: 820px) {
  .site-header { padding: 16px var(--pad-page); }
  .site-header__logo img, .site-header__logo svg { height: 22px; }
  .site-header__nav { display: none; }
}
@media (max-width: 520px) {
  .site-header__cta .btn { padding: 10px 14px; font-size: 12px; }
}

/* Footer */
.site-footer {
  position: relative; z-index: 2;
  padding: 100px var(--pad-page) 40px;
  border-top: 1px solid var(--rule);
}
.footer-mega {
  margin: 40px 0 60px;
  display: flex; align-items: center;
  user-select: none;
}
.footer-mega img {
  height: 48px; width: auto; display: block;
}
.footer-mega .logo-light { display: none; }
[data-theme="light"] .footer-mega .logo-dark { display: none; }
[data-theme="light"] .footer-mega .logo-light { display: block; }
.footer-mega .dot {
  width: 0.3em; height: 0.3em; border-radius: 50%;
  background: var(--brand); display: inline-block;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  padding-top: 60px; border-top: 1px solid var(--rule);
}
.footer-grid h5 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-dim); margin-bottom: 20px;
  font-weight: 500;
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { font-size: 15px; transition: color 200ms; display: inline-flex; align-items: center; gap: 6px; }
.footer-grid a:hover { color: var(--brand); }
.footer-grid a:hover .arrow-sm { transform: translate(2px, -2px); }
.arrow-sm { display: inline-block; transition: transform 250ms var(--ease-out); }

/* Footer socials */
.footer-socials {
  margin-top: 60px; padding: 28px 0; display: flex; gap: 14px;
  border-top: 1px solid var(--rule);
}
.footer-social {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--rule-strong);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-dim); transition: color 260ms ease, border-color 260ms ease, background 260ms ease, transform 260ms ease;
  cursor: none;
}
.footer-social:hover {
  color: #fff; background: var(--brand); border-color: var(--brand);
  transform: translateY(-2px);
}
.footer-social svg { width: 18px; height: 18px; }
.footer-social__label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.footer-bottom {
  margin-top: 0; padding-top: 20px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between;  font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh; padding: 200px var(--pad-page) 80px;
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero__meta {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 80px;
}
.hero__status {
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim);
  letter-spacing: 0.04em;
}
.hero__status b { color: var(--fg); font-weight: 400; }
.hero__counter {
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim);
  text-align: right;
}
.hero__counter .num { font-size: 56px; color: var(--fg); display: block; line-height: 1; letter-spacing: -0.04em; font-family: var(--font-display); font-weight: 500; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 9.5vw, 176px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin-bottom: 40px;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; }
.hero__title .accent { color: var(--brand); font-style: italic; font-weight: 400; position: relative; }
.hero__title .dot {
  display: inline-block; width: 0.12em; height: 0.12em; border-radius: 50%;
  background: var(--brand); vertical-align: 0.1em; margin-left: 0.02em;
}

.hero__bottom {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px;
  align-items: end; padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.hero__desc {
  font-size: 17px; color: var(--fg-dim); max-width: 520px; line-height: 1.5;
}
.hero__desc b { color: var(--fg); font-weight: 400; }
.hero__ctas { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

/* Hero variant: split */
[data-herovariant="split"] .hero__title { font-size: clamp(40px, 7.5vw, 140px); }
[data-herovariant="split"] .hero__title-frame {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end;
}
[data-herovariant="split"] .hero__preview {
  aspect-ratio: 4/5; background: var(--bg-card);
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
  overflow: hidden; position: relative;
}
[data-herovariant="default"] .hero__preview-wrap { display: none; }
[data-herovariant="split"] .hero__preview-wrap { display: block; }

/* Hero variant: typographic (giant serifed / wild) */
[data-herovariant="type"] .hero__title {
  font-family: 'Fraunces', serif; font-weight: 300;
  font-size: clamp(56px, 11vw, 220px); letter-spacing: -0.05em; line-height: 0.9;
}
[data-herovariant="type"] .hero__title .accent { font-style: italic; }

/* Ticker row below hero */
.hero__ticker {
  margin-top: 60px; padding: 16px 0; border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule); font-family: var(--font-mono);
  font-size: 13px; color: var(--fg-dim); letter-spacing: 0.06em;
}
.hero__ticker span { color: var(--fg); margin: 0 18px; font-size: 10px; }

/* ===== LOGOS / TRUSTED BY ===== */
.logos {
  position: relative; z-index: 2;
  padding: 60px 0; border-bottom: 1px solid var(--rule);
}
.logos__label {
  text-align: center; margin-bottom: 40px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-dim); letter-spacing: 0.16em; text-transform: uppercase;
}
.logos__item {
  font-family: var(--font-display); font-weight: 600; font-size: 28px;
  letter-spacing: -0.02em; color: var(--fg); opacity: 0.5;
  transition: opacity 300ms, color 300ms;
  white-space: nowrap;
}
.logos__item:hover { opacity: 1; color: var(--brand); }
.logos__item.style-mono { font-family: var(--font-mono); font-weight: 500; font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase; }
.logos__item.style-serif { font-family: 'Fraunces', serif; font-style: italic; font-weight: 400; }

/* ===== SERVICES ===== */
.services {
  position: relative; z-index: 2;
  padding: 160px var(--pad-page);
}
.section-head {
  display: grid; grid-template-columns: 1fr 2fr; gap: 60px;
  margin-bottom: 80px; align-items: end;
}
.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px); font-weight: 500;
  letter-spacing: -0.035em; line-height: 1;
}
.section-head__title em { font-style: italic; color: var(--brand); font-weight: 400; }
.section-head__desc { font-size: 16px; color: var(--fg-dim); max-width: 480px; }
.section-head__eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.section-head__eyebrow::before {
  content: ''; width: 20px; height: 1px; background: var(--brand);
}

.services__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--rule);
}
.service {
  padding: 40px 28px; border-right: 1px solid var(--rule);
  position: relative; cursor: none;
  transition: background 400ms var(--ease-out);
}
.service:last-child { border-right: none; }
.service::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left;
  transition: transform 500ms var(--ease-out);
}
.service:hover::before { transform: scaleX(1); }
.service__num {
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim);
  letter-spacing: 0.1em; margin-bottom: 60px;
}
.service__title {
  font-family: var(--font-display); font-size: 28px; font-weight: 500;
  letter-spacing: -0.02em; margin-bottom: 16px; line-height: 1.05;
}
.service__desc { font-size: 14px; color: var(--fg-dim); line-height: 1.5; margin-bottom: 30px; }
.service__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.service__tag {
  font-family: var(--font-mono); font-size: 10px; padding: 4px 8px;
  border: 1px solid var(--rule-strong); border-radius: 4px;
  color: var(--fg-dim); letter-spacing: 0.04em; text-transform: uppercase;
}
@media (max-width: 1000px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
  .service { border-bottom: 1px solid var(--rule); }
  .service:nth-child(even) { border-right: none; }
}
@media (max-width: 600px) {
  .services__grid { grid-template-columns: 1fr; }
  .service { border-right: none; }
}

/* ===== PROCESS (STICKY) ===== */
.process {
  position: relative; z-index: 2;
  padding: 160px var(--pad-page);
  background: var(--bg-elev);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.process__sticky-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.process__sticky-col {
  position: relative;
  align-self: stretch;
}
.process__sticky {
  position: sticky; top: 140px;
  width: 520px; max-width: 100%;
  aspect-ratio: 1; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--rule);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}
.process__viz {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 600ms var(--ease-out);
  padding: 32px;
}
.process__viz.active { opacity: 1; }
.process__viz svg { max-width: 80%; max-height: 80%; }
.process__num-huge {
  position: absolute; bottom: 14px; right: 22px;
  font-family: var(--font-display); font-size: 140px; font-weight: 500;
  color: var(--rule-strong); line-height: 1; letter-spacing: -0.04em;
  pointer-events: none;
}
.process__steps { display: flex; flex-direction: column; gap: 140px; }
.process__step { min-height: 50vh; }
.process__step-num {
  font-family: var(--font-mono); font-size: 13px; color: var(--brand);
  margin-bottom: 16px; letter-spacing: 0.08em;
}
.process__step-title {
  font-family: var(--font-display); font-size: clamp(32px, 4vw, 56px);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1.05;
  margin-bottom: 20px;
}
.process__step-desc { font-size: 16px; color: var(--fg-dim); max-width: 440px; line-height: 1.5; margin-bottom: 20px; }
.process__step-list { list-style: none; display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim); }
.process__step-list li { padding-left: 20px; position: relative; }
.process__step-list li::before {
  content: '→'; position: absolute; left: 0; color: var(--brand);
}
@media (max-width: 900px) {
  .process__sticky-wrap { grid-template-columns: 1fr; }
  .process__sticky { position: static; margin-bottom: 40px; }
}

/* ===== STATS ===== */
.stats {
  position: relative; z-index: 2;
  padding: 120px var(--pad-page);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-bottom: 1px solid var(--rule);
}
.stat { padding: 0 30px; border-right: 1px solid var(--rule); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: none; padding-right: 0; }
.stat__num {
  font-family: var(--font-display); font-size: clamp(48px, 6vw, 88px);
  font-weight: 500; letter-spacing: -0.04em; line-height: 1;
  display: flex; align-items: baseline;
}
.stat__num .suffix { font-size: 0.5em; color: var(--brand); margin-left: 4px; }
.stat__label {
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim);
  margin-top: 16px; letter-spacing: 0.06em;
}
@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 40px; }
  .stat { border-right: none; padding: 0; border-bottom: 1px solid var(--rule); padding-bottom: 30px; }
}

/* ===== CASES / WORK ===== */
.cases {
  position: relative; z-index: 2;
  padding: 160px 0;
}
.cases__head { padding: 0 var(--pad-page); }
.cases__rail {
  display: flex; gap: 24px; padding: 0 var(--pad-page); margin-top: 40px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.cases__rail::-webkit-scrollbar { display: none; }
.case-card {
  flex: 0 0 min(560px, 80vw); scroll-snap-align: start;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--rule);
  position: relative; cursor: none;
  transition: transform 400ms var(--ease-out);
}
.case-card__media {
  aspect-ratio: 4/3; position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 12px, transparent 12px 24px),
    var(--case-bg, var(--brand-soft));
  display: flex; align-items: center; justify-content: center;
}
.case-card__media-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg-dim);
  padding: 4px 10px; border: 1px solid var(--rule-strong); border-radius: 4px;
  background: var(--bg); 
}
.case-card__meta {
  display: flex; justify-content: space-between; padding: 20px 24px 10px;
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim);
  letter-spacing: 0.06em;
}
.case-card__title {
  padding: 0 24px 24px; font-family: var(--font-display);
  font-size: 26px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1;
}
.case-card__tags { padding: 0 24px 24px; display: flex; gap: 6px; flex-wrap: wrap; }
.case-card:hover { transform: translateY(-4px); }
.case-card:hover .case-card__media::after {
  content: 'VIEW CASE →'; position: absolute;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  background: var(--brand); color: #fff;
  padding: 10px 16px; border-radius: 999px;
  bottom: 20px; right: 20px;
  animation: slideUp 300ms var(--ease-out);
}
@keyframes slideUp { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; }}

/* ===== TESTIMONIALS ===== */
.testimonials {
  position: relative; z-index: 2;
  padding: 160px var(--pad-page);
  background: var(--bg-elev);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.testimonials__marquee {
  overflow: hidden; position: relative;
  margin: 0 calc(var(--pad-page) * -1);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.testimonials__track {
  display: flex; gap: 20px; width: max-content;
  animation: testimonials-scroll 60s linear infinite;
  will-change: transform;
  padding: 4px 10px;
}
.testimonials__marquee:hover .testimonials__track { animation-play-state: paused; }
.testimonials__track .testimonial { flex: 0 0 420px; }
@keyframes testimonials-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 10px)); }
}
.testimonial {
  padding: 32px; background: var(--bg-card); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 24px;
  transition: border-color 400ms;
  position: relative; overflow: hidden;
}
.testimonial:hover { border-color: var(--brand); }
.testimonial__quote {
  font-family: var(--font-display); font-size: 20px; font-weight: 400;
  line-height: 1.35; letter-spacing: -0.015em;
  flex: 1;
}
.testimonial__quote::before {
  content: '“'; display: block; font-size: 60px; color: var(--brand);
  line-height: 0.8; margin-bottom: 10px;
}
.testimonial__author {
  display: flex; align-items: center; gap: 12px; padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.testimonial__avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand), #1a1a2e);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; color: #fff; font-weight: 500;
}
.testimonial__name { font-size: 14px; }
.testimonial__role { font-size: 12px; color: var(--fg-dim); margin-top: 2px; }
.testimonial__score {
  position: absolute; top: 24px; right: 24px;
  font-family: var(--font-display); font-size: 28px; font-weight: 500;
  color: var(--brand); letter-spacing: -0.03em;
}
@media (max-width: 900px) {
  .testimonials__track .testimonial { flex-basis: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .testimonials__track { animation: none; }
}

/* ===== BLOG / INSIGHTS ===== */
.insights {
  position: relative; z-index: 2;
  padding: 160px var(--pad-page);
}
.insights__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--rule);
}
.insight-card {
  padding: 30px 24px; border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative; cursor: none;
  transition: background 400ms;
}
.insight-card:last-child { border-right: none; }
.insight-card:hover { background: var(--bg-elev); }
.insight-card__meta {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim);
  margin-bottom: 40px; letter-spacing: 0.06em;
}
.insight-card__title {
  font-family: var(--font-display); font-size: 22px; font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.2;
  min-height: 80px;
}
.insight-card__read {
  margin-top: 40px; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-dim);
  transition: color 200ms;
}
.insight-card:hover .insight-card__read { color: var(--brand); }
@media (max-width: 800px) {
  .insights__grid { grid-template-columns: 1fr; }
  .insight-card { border-right: none; }
}

/* ===== CTA ===== */
.cta {
  position: relative; z-index: 2;
  padding: 160px var(--pad-page);
  text-align: center;
  overflow: hidden;
}
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 140px);
  font-weight: 500; letter-spacing: -0.045em; line-height: 0.92;
  margin: 0 auto 40px; max-width: 1200px;
}
.cta__title em { font-style: italic; color: var(--brand); font-weight: 400; }
.cta__desc {
  font-size: 18px; color: var(--fg-dim); max-width: 540px;
  margin: 0 auto 40px;
}
.cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Generic */
.bg-ornament {
  position: absolute; pointer-events: none; inset: 0;
  background-image:
    linear-gradient(to right, var(--rule) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(circle at center, #000, transparent 70%);
          mask-image: radial-gradient(circle at center, #000, transparent 70%);
  opacity: 0.5;
}

/* Team grid (about) */
.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.team-member {
  aspect-ratio: 3/4; background: var(--bg-card); border: 1px solid var(--rule);
  border-radius: var(--radius); position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 20px; cursor: none;
  transition: transform 400ms var(--ease-out);
}
.team-member::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(81,114,255,0.15) 100%);
  opacity: 0; transition: opacity 400ms;
}
.team-member:hover::before { opacity: 1; }
.team-member:hover { transform: translateY(-4px); border-color: var(--brand); }
.team-member--photo { color: #fff; }
.team-member--photo::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10,10,11,0.55) 0%,
      rgba(10,10,11,0)    32%,
      rgba(10,10,11,0)    52%,
      rgba(10,10,11,0.92) 100%);
  z-index: 0; pointer-events: none;
}
.team-member--photo .team-member__label,
.team-member--photo .team-member__name,
.team-member--photo .team-member__role {
  text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}
.team-member--photo .team-member__label { color: rgba(255,255,255,0.85); }
.team-member--photo .team-member__role  { color: rgba(255,255,255,0.78); }
.team-member--photo > * { position: relative; z-index: 1; }
.team-member__label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg-dim); z-index: 1;
}
.team-member__name { font-family: var(--font-display); font-size: 20px; font-weight: 500; z-index: 1; }
.team-member__role { font-size: 13px; color: var(--fg-dim); margin-top: 4px; z-index: 1; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; } }

/* Contact form */
.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg-card);
}
.contact-form .field {
  padding: 20px 24px; border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 6px;
}
.contact-form .field.full { grid-column: 1 / -1; border-right: none; }
.contact-form .field:nth-child(2n) { border-right: none; }
.contact-form label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg-dim);
}
.contact-form input, .contact-form textarea, .contact-form select {
  font-family: var(--font-display); font-size: 18px; font-weight: 400;
  background: transparent; border: none; color: var(--fg);
  outline: none; cursor: none; padding: 4px 0;
  letter-spacing: -0.01em;
}
.contact-form textarea { resize: none; min-height: 100px; font-size: 16px; font-family: var(--font-body); }
.contact-form .submit {
  padding: 30px; display: flex; justify-content: space-between; align-items: center;
  grid-column: 1 / -1;
}
@media (max-width: 700px) {
  .contact-form { grid-template-columns: 1fr; }
  .contact-form .field { border-right: none; }
  .contact-form .field { padding: 16px 18px; }
  .contact-form input, .contact-form textarea, .contact-form select { font-size: 16px; }
  .contact-form .submit { padding: 20px; flex-direction: column; align-items: stretch; gap: 16px; }
}

/* ======================================================================
   MOBILE NAV (hamburger + fullscreen overlay)
   Injected by scripts/site.js — see mobileNav()
   ====================================================================== */
.mnav-toggle {
  display: none;
  width: 44px; height: 44px;
  position: relative; z-index: 510;
  background: var(--bg-card);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  cursor: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  padding: 0;
}
.mnav-toggle span {
  display: block; width: 16px; height: 1.5px;
  background: var(--fg);
  transition: transform 300ms var(--ease-out), opacity 200ms;
  transform-origin: center;
}
.mnav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mnav-toggle.open span:nth-child(2) { opacity: 0; }
.mnav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mnav-overlay {
  position: fixed; inset: 0; z-index: 480;
  background: var(--bg);
  opacity: 0; pointer-events: none;
  transition: opacity 320ms var(--ease-out);
  display: flex; align-items: center; justify-content: center;
}
.mnav-overlay.open { opacity: 1; pointer-events: auto; }
.mnav-overlay__inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 32px; padding: 80px 24px 40px;
  width: 100%; max-width: 480px;
}
.mnav-overlay__nav {
  display: flex; flex-direction: column; gap: 8px;
  text-align: center; width: 100%;
}
.mnav-overlay__nav a {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.2;
  padding: 12px 0;
  color: var(--fg-dim);
  transition: color 200ms, transform 300ms var(--ease-out);
  transform: translateY(20px); opacity: 0;
}
.mnav-overlay.open .mnav-overlay__nav a {
  transform: translateY(0); opacity: 1;
}
.mnav-overlay.open .mnav-overlay__nav a:nth-child(1) { transition-delay: 60ms; }
.mnav-overlay.open .mnav-overlay__nav a:nth-child(2) { transition-delay: 120ms; }
.mnav-overlay.open .mnav-overlay__nav a:nth-child(3) { transition-delay: 180ms; }
.mnav-overlay.open .mnav-overlay__nav a:nth-child(4) { transition-delay: 240ms; }
.mnav-overlay.open .mnav-overlay__nav a:nth-child(5) { transition-delay: 300ms; }
.mnav-overlay.open .mnav-overlay__nav a:nth-child(6) { transition-delay: 360ms; }
.mnav-overlay__nav a:hover,
.mnav-overlay__nav a[aria-current="page"] { color: var(--fg); }
.mnav-overlay__nav a[aria-current="page"]::after {
  content: ''; display: block; width: 24px; height: 2px;
  background: var(--brand); margin: 8px auto 0;
}
.mnav-overlay__cta {
  margin-top: 20px;
  transform: translateY(20px); opacity: 0;
  transition: transform 400ms var(--ease-out) 420ms,
              opacity  400ms var(--ease-out) 420ms,
              background 250ms;
}
.mnav-overlay.open .mnav-overlay__cta { transform: translateY(0); opacity: 1; }

@media (max-width: 820px) {
  .mnav-toggle { display: flex; }
  /* Hide the original CTA pill on mobile — overlay has its own. */
  .site-header__cta .btn { display: none; }
}

/* ======================================================================
   MOBILE LAYOUT POLISH
   Tighter spacing + better stacking at small viewports.
   ====================================================================== */
@media (max-width: 820px) {
  /* Section padding: 160px is huge on a 6" phone — halve it. */
  .services, .process, .testimonials, .insights, .cta { padding-top: 80px; padding-bottom: 80px; }
  .stats { padding-top: 60px; padding-bottom: 60px; }
  .cases  { padding-top: 80px; padding-bottom: 80px; }

  /* Hero — drop the 100vh anchor on mobile (with justify-content:
     flex-end it was creating a huge empty space above the meta when
     content didn't fill the viewport). Pack content to the top. */
  .hero {
    min-height: 0;
    justify-content: flex-start;
    padding-top: 96px; padding-bottom: 28px;
  }
  .hero__meta {
    flex-direction: row; align-items: flex-start;
    gap: 16px; margin-bottom: 16px;
  }
  .hero__status {
    flex: 1 1 auto; min-width: 0;
    font-size: 10px; gap: 3px; line-height: 1.4;
  }
  .hero__counter {
    flex: 0 0 auto; text-align: right;
    font-size: 10px; line-height: 1.4;
  }
  .hero__counter .num {
    display: inline; font-size: 18px; color: var(--brand);
    margin-right: 4px; line-height: 1;
  }

  .hero__bottom { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .hero__ctas { justify-content: flex-start; }
  .hero__title { margin-bottom: 28px; }

  /* Section heads stack */
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; align-items: start; }
  .section-head__desc { max-width: none; }

  /* Footer */
  .footer-mega img { height: 36px; }
  .footer-grid { padding-top: 40px; gap: 32px; }
  .site-footer { padding-top: 60px; padding-bottom: 32px; }
}

@media (max-width: 520px) {
  /* Tighter still on phones */
  .services, .process, .testimonials, .insights, .cta { padding-top: 64px; padding-bottom: 64px; }

  /* Footer: description full-width on top, then 2 link columns side-by-side */
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-grid h5 { margin-bottom: 12px; font-size: 10px; }
  .footer-grid ul { gap: 8px; }
  .footer-grid a { font-size: 13px; }

  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; padding-top: 16px; }
  .footer-mega { margin: 24px 0 40px; }

  /* Stats: from 2-col @ 800 down to 1-col @ 520 */
  .stats { grid-template-columns: 1fr; gap: 24px; }
  .stat { padding-bottom: 24px; }

  /* Hero status meta — already inline at <=820; just trim further */
  .hero__status { font-size: 9px; }
  .hero__counter { font-size: 9px; }
  .hero__counter .num { font-size: 16px; }
  .hero__desc { font-size: 15px; }

  /* Service cards padding */
  .service { padding: 28px 20px; }
  .service__num { margin-bottom: 32px; }

  /* CTA section text */
  .cta__desc { font-size: 16px; }
}

/* ======================================================================
   PROCESS section — mobile simplification
   On mobile the sticky animation can't work and the giant 520px viz box
   on top of full-viewport steps creates dead space. Hide the visual,
   collapse the steps into a tight vertical timeline.
   ====================================================================== */
@media (max-width: 820px) {
  /* Drop the decorative SVG panel entirely — it's redundant on mobile */
  .process__sticky-col { display: none; }

  /* Step rhythm: comfortable but not screen-eating */
  .process__steps { gap: 40px; padding-left: 20px; position: relative; }
  .process__step  { min-height: 0; position: relative; }

  /* Subtle vertical timeline rule on the left of all steps */
  .process__steps::before {
    content: ''; position: absolute;
    left: 4px; top: 8px; bottom: 8px; width: 1px;
    background: var(--rule);
  }

  /* Step number gets a brand-colored dot anchored to the timeline */
  .process__step-num { padding-left: 16px; position: relative; }
  .process__step-num::before {
    content: ''; position: absolute;
    left: -20px; top: 6px;
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--brand); box-shadow: 0 0 0 4px var(--bg);
  }

  /* Slightly tighter typography */
  .process__step-title { font-size: clamp(26px, 7vw, 36px); }
  .process__step-desc  { margin-bottom: 14px; }
}

/* ======================================================================
   HERO TICKER — mobile compaction
   On phones the 13px text + 60px item gap + 60px top margin made the
   live-roles ticker feel like its own enormous section. Tighten it
   into a slim status strip.
   ====================================================================== */
@media (max-width: 820px) {
  .hero__ticker {
    margin-top: 32px; padding: 10px 0;
    font-size: 11px; letter-spacing: 0.04em;
  }
  .hero__ticker .marquee,
  .hero__ticker .marquee__track { gap: 28px; }
  .hero__ticker span { margin: 0 6px; font-size: 7px; }
}
@media (max-width: 520px) {
  .hero__ticker { margin-top: 24px; padding: 8px 0; font-size: 10px; }
  .hero__ticker .marquee,
  .hero__ticker .marquee__track { gap: 20px; }
}

/* ======================================================================
   LOGOS / "Backed by" marquee — mobile compaction
   28px display items + 60px gap created a giant strip on phones.
   ====================================================================== */
@media (max-width: 820px) {
  .logos { padding: 24px 0; }
  .logos__label { margin-bottom: 16px; font-size: 10px; }
  .logos__item { font-size: 20px; }
  .logos__item.style-mono { font-size: 16px; }
  .logos .marquee, .logos .marquee__track { gap: 36px; }
}
@media (max-width: 520px) {
  .logos { padding: 18px 0; }
  .logos__label { margin-bottom: 12px; }
  .logos__item { font-size: 17px; }
  .logos__item.style-mono { font-size: 13px; }
  .logos .marquee, .logos .marquee__track { gap: 24px; }
}

/* ======================================================================
   TESTIMONIALS marquee — narrower cards on phones
   ====================================================================== */
@media (max-width: 520px) {
  .testimonials__track .testimonial { flex-basis: 280px; }
  .testimonial { padding: 24px; gap: 18px; }
  .testimonial__quote { font-size: 17px; }
  .testimonial__quote::before { font-size: 44px; }
  .testimonial__score { font-size: 22px; top: 18px; right: 18px; }
}

/* ======================================================================
   STATS — slightly tighter labels at small sizes
   ====================================================================== */
@media (max-width: 520px) {
  .stat__label { font-size: 11px; margin-top: 10px; }
}
