/*
Theme Name: Primex
Theme URI: https://example.com
Author: Your Studio
Author URI: https://example.com
Description: A clean, minimal digital design & development agency theme with a full-width hero, a video showcase section, and a "What we do" intro block. Built as a static front-page starter — swap in your own logo, copy, and video.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: primex
*/

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #0e0e0e;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font-family: inherit; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* -------------------------------------------------
   Header
------------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0;
}

.site-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  font-size: 16px;
  color: #1a1a1a;
  transition: opacity 0.2s ease;
}

.primary-nav a:hover { opacity: 0.55; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0e0e0e;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.header-cta:hover { background: #2a2a2a; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #0e0e0e;
  margin: 5px 0;
}

/* -------------------------------------------------
   Hero
------------------------------------------------- */
.hero {
  padding: 64px 0 56px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 auto 28px;
  max-width: 920px;
}

.hero .hero-subhead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: #3a3a3a;
  max-width: 640px;
  margin: 0 auto;
}

/* -------------------------------------------------
   Feature video (single centered video, matches the
   reference screenshot rather than a multi-cell grid)
------------------------------------------------- */
.feature-video {
  padding: 24px 0 96px;
}

.video-frame {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f1ec;
}

.video-frame video,
.video-frame .video-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Decorative placeholder pattern shown until a real video is added */
.video-placeholder {
  position: relative;
  background:
    repeating-linear-gradient(
      115deg,
      transparent 0px,
      transparent 10px,
      rgba(20,20,20,0.06) 11px,
      transparent 13px,
      transparent 42px
    ),
    #f3f1ec;
}

.video-placeholder::after {
  content: attr(data-label);
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 12px;
  color: #8a8577;
  background: rgba(255,255,255,0.7);
  padding: 4px 10px;
  border-radius: 999px;
}

/* -------------------------------------------------
   What we do
   Note: the grid rule lives on an inner wrapper
   (.what-we-do), never on the same element as
   .container or the outer <section> — putting the
   grid class on more than one nested element causes
   the grid to apply twice and squashes the content
   into its first column.
------------------------------------------------- */
.what-we-do-section {
  padding: 40px 0 120px;
}

.what-we-do {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.what-we-do .eyebrow {
  font-size: 18px;
  color: #6b6b6b;
  letter-spacing: 0.02em;
  padding-top: 4px;
}

.what-we-do p {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.5;
  color: #141414;
  margin: 0;
}

/* -------------------------------------------------
   Services list
   Flat cards, closed by default, each opens with a
   smooth height animation as it scrolls into view —
   see js/services-accordion.js. Normal document flow,
   no pinning/scroll-jacking.
------------------------------------------------- */
.services-scroll,
.services-scroll button {
  font-family: 'Inter', sans-serif;
}

.services-scroll h2,
.services-scroll h3,
.acc-num {
  font-family: 'Space Grotesk', sans-serif;
}

.services-scroll {
  --svc-ink: #0B120D;
  --svc-paper: #F7FAF8;
  --svc-green: #11E44F;
  --svc-closed-bg: #EDEDED;
  --svc-num-muted: #B7B7B4;
  padding: 100px 0 120px;
  background: #fff;
}

.services-wrap {
  width: 100%;
}

.acc-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.acc-card {
  border-radius: 24px;
  background: var(--svc-closed-bg);
  overflow: hidden;
  transition: background 0.5s ease;
}

.acc-head {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 44px 48px;
  cursor: pointer;
}

.acc-head:focus-visible {
  outline: 2px solid var(--svc-ink);
  outline-offset: -4px;
  border-radius: 12px;
}

.acc-head h3 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--svc-ink);
  margin: 0;
  transition: color 0.5s ease;
}

.acc-num {
  font-size: 22px;
  color: var(--svc-num-muted);
  flex-shrink: 0;
  transition: color 0.5s ease;
}

/* Grid-rows trick: animatable "auto" height without measuring in JS */
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.acc-panel-inner {
  overflow: hidden;
}

.acc-body {
  padding: 0 48px 44px;
}

.acc-body p {
  font-size: 16px;
  line-height: 1.65;
  max-width: 62ch;
  color: inherit;
  opacity: 0.85;
  margin: 0;
}

/* Open state */
.acc-card.is-open {
  background: var(--svc-ink);
}

.acc-card.is-open .acc-panel {
  grid-template-rows: 1fr;
}

.acc-card.is-open .acc-head h3 {
  color: var(--svc-paper);
}

.acc-card.is-open .acc-num {
  color: var(--svc-green);
}

.acc-card.is-open .acc-body p {
  color: var(--svc-paper);
}

@media (max-width: 640px) {
  .services-scroll { padding: 64px 0 80px; }
  .acc-stack { gap: 16px; }
  .acc-head { padding: 30px 28px; gap: 16px; }
  .acc-body { padding: 0 28px 30px; }
  .acc-num { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .acc-card, .acc-panel, .acc-head h3, .acc-num {
    transition: none;
  }
}

/* -------------------------------------------------
   Our latest work
   Black section (same dark ink used for the open
   service card) sitting between Services and Why
   Primex. Cards live in a scroll-snap track advanced
   by two arrow buttons — see js/latest-work-carousel.js.
------------------------------------------------- */
.latest-work {
  --lw-ink: #0B120D;
  --lw-paper: #F7FAF8;
  --lw-muted: rgba(247, 250, 248, 0.56);
  --lw-green: #11E44F;
  --lw-mint-ink: #1F6E4E;
  --lw-lavender-ink: #4A3FBF;
  --lw-sky-ink: #2255B5;
  padding: 112px 0 128px;
  background: var(--lw-ink);
  color: var(--lw-paper);
}

.latest-work h2,
.latest-work .lw-title,
.latest-work .lw-count {
  font-family: 'Space Grotesk', sans-serif;
}

.lw-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 56px;
}

.lw-head-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lw-head h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  color: var(--lw-paper);
}

.lw-head p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--lw-muted);
  max-width: 46ch;
  margin: 0;
}

.lw-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lw-count {
  font-size: 14px;
  color: var(--lw-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.lw-count strong { color: var(--lw-paper); font-weight: 600; }

.lw-arrows { display: flex; gap: 10px; }

.lw-arrow {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(247, 250, 248, 0.18);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}
.lw-arrow svg { width: 18px; height: 18px; stroke: var(--lw-paper); transition: stroke 0.2s ease; }
.lw-arrow:hover:not(:disabled) { background: var(--lw-green); border-color: var(--lw-green); }
.lw-arrow:hover:not(:disabled) svg { stroke: #0B120D; }
.lw-arrow:disabled { opacity: 0.3; cursor: default; }

.lw-viewport { overflow: hidden; }

.lw-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin: 0 -40px;
  padding-left: 40px;
  padding-right: 40px;
}
.lw-track::-webkit-scrollbar { display: none; }

.lw-card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: min(400px, 82vw);
  display: flex;
  flex-direction: column;
}

.lw-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  background: #f3f1ec;
}

.lw-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.lw-card:hover .lw-thumb img { transform: scale(1.045); }

.lw-thumb-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.lw-thumb-go {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.lw-thumb-go svg { width: 16px; height: 16px; }
.lw-card:hover .lw-thumb-go { opacity: 1; transform: translateY(0); }

.lw-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
}

.lw-title {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--lw-paper);
}

.lw-desc {
  font-size: 14.5px;
  color: var(--lw-muted);
  margin: 0;
  line-height: 1.5;
}

.lw-thumb.tint-mint     { background: linear-gradient(155deg, #DEF3E9 0%, #C9E9D8 100%); }
.lw-thumb.tint-lavender { background: linear-gradient(155deg, #ECEBFB 0%, #DAD8F5 100%); }
.lw-thumb.tint-sky      { background: linear-gradient(155deg, #E3ECFB 0%, #CBDBF6 100%); }

.tag-mint     { color: var(--lw-mint-ink); }
.tag-lavender { color: var(--lw-lavender-ink); }
.tag-sky      { color: var(--lw-sky-ink); }

.lw-footer { display: flex; justify-content: center; margin-top: 56px; }

.lw-view-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--lw-paper);
  color: #0B120D;
  border-radius: 999px;
  padding: 15px 28px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s ease;
}
.lw-view-all:hover { background: var(--lw-green); }
.lw-view-all svg { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .lw-head { grid-template-columns: 1fr; }
  .lw-controls { justify-content: space-between; }
}

@media (max-width: 560px) {
  .latest-work { padding: 72px 0 88px; }
  .lw-head { margin-bottom: 36px; }
  .lw-track { margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .lw-thumb img, .lw-thumb-go, .lw-arrow, .lw-arrow svg { transition: none; }
}

/* -------------------------------------------------
   Testimonials
   Light grey section between "Our latest work" and
   "Why Primex". Cards sit in a plain horizontal
   scroller (drag-to-scroll on desktop, native swipe on
   touch) — see js/testimonials-carousel.js. Video
   testimonials render as a second, image-filled card
   directly after their matching text card.
------------------------------------------------- */
.testimonials-section {
  --ts-bg: #F3F3F1;
  --ts-ink: #0e0e0e;
  --ts-muted: #6b6b6b;
  background: var(--ts-bg);
  padding: 120px 0 128px;
}

.testi-eyebrow {
  display: block;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--ts-muted);
  margin-bottom: 20px;
}

.testi-heading {
  font-family: 'Inter', sans-serif;
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ts-ink);
  margin: 0 0 64px;
  max-width: 820px;
}

.testi-viewport { overflow: hidden; }

.testi-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  cursor: grab;
  margin: 0 -40px;
  padding: 4px 40px 12px;
}
.testi-track::-webkit-scrollbar { display: none; }
.testi-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.testi-card {
  position: relative;
  flex: 0 0 auto;
  width: 320px;
  min-height: 420px;
  background: #fff;
  border-radius: 24px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}

.testi-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin-bottom: 28px;
}
.testi-avatar img { width: 100%; height: 100%; object-fit: cover; }

.testi-quote {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ts-ink);
  margin: 0;
  flex: 1;
}

.testi-signature { margin-top: 28px; }

.testi-name {
  display: block;
  font-family: 'Caveat', cursive;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--ts-ink);
}

.testi-role {
  display: block;
  font-size: 13.5px;
  color: var(--ts-muted);
  margin-top: 6px;
}

/* Video card — photo fills the whole card, content overlaid */
.testi-video-card {
  padding: 0;
  overflow: hidden;
  background: #0e0e0e;
}

.testi-play {
  all: unset;
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  cursor: pointer;
}

.testi-video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testi-video-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

.testi-video-avatar {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.85);
  z-index: 2;
}
.testi-video-avatar img { width: 100%; height: 100%; object-fit: cover; }

.testi-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0e0e0e;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}
.testi-play-icon svg { width: 20px; height: 20px; margin-left: 2px; }
.testi-play:hover .testi-play-icon { background: #fff; transform: translate(-50%, -50%) scale(1.06); }

.testi-video-signature {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  text-align: left;
}
.testi-video-signature .testi-name { color: #fff; }
.testi-video-signature .testi-role { color: rgba(255,255,255,0.75); }

.testi-video-el {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
  background: #000;
}

@media (max-width: 560px) {
  .testimonials-section { padding: 72px 0 88px; }
  .testi-heading { margin-bottom: 40px; }
  .testi-card,
  .testi-play { width: 78vw; min-height: 460px; }
  .testi-track { margin: 0 -20px; padding: 4px 20px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .testi-play-icon { transition: none; }
}

/* -------------------------------------------------
   Why Primex
------------------------------------------------- */
.why-primex {
  padding: 100px 0 120px;
}

.why-primex-intro {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 56px;
}

.why-primex-intro .eyebrow {
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #6b6b6b;
  padding-top: 6px;
}

.why-primex-intro p {
  font-size: clamp(20px, 2.3vw, 28px);
  line-height: 1.45;
  color: #141414;
  max-width: 900px;
  margin: 0;
}

.why-primex-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.why-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  padding: 40px;
  min-height: 320px;
}

.why-card-wide {
  grid-column: span 3;
  min-height: 260px;
}

.why-card-mint     { background: #DEF3E9; }
.why-card-lavender { background: #ECEBFB; }

.why-card-icon {
  width: 32px;
  height: 32px;
  color: #0e0e0e;
  flex-shrink: 0;
}

.why-card-icon svg {
  width: 100%;
  height: 100%;
}

.why-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.why-card-stat {
  font-size: clamp(48px, 5.5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #0e0e0e;
}

.why-card-caption {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #3a3a3a;
}

.why-card-text {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #0e0e0e;
}

@media (max-width: 900px) {
  .why-primex-intro { grid-template-columns: 1fr; }
  .why-primex-grid { grid-template-columns: repeat(2, 1fr); }
  .why-card, .why-card-wide { grid-column: span 1; min-height: 260px; padding: 32px; }
}

@media (max-width: 560px) {
  .why-primex { padding: 64px 0 72px; }
  .why-primex-intro { margin-bottom: 40px; }
  .why-primex-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* -------------------------------------------------
   FAQ
------------------------------------------------- */
.faq-section {
  --faq-ink: #0B0B10;
  --faq-paper: #F7F7FA;
  --faq-muted: rgba(247, 247, 250, 0.6);
  --faq-card: rgba(247, 247, 250, 0.04);
  --faq-border: rgba(247, 247, 250, 0.12);
  --faq-green: #11E44F;

  background: var(--faq-ink);
  color: var(--faq-paper);
  padding: 100px 0 120px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
}

.faq-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}

.faq-left h2 {
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  color: var(--faq-paper);
}

.faq-contact p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--faq-muted);
  margin: 0 0 20px;
  max-width: 34ch;
}

.faq-cta { background: var(--faq-paper); color: var(--faq-ink); }
.faq-cta:hover { background: var(--faq-green); color: #0e0e0e; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-card {
  background: var(--faq-card);
  border: 1px solid var(--faq-border);
  border-radius: 18px;
  transition: border-color 0.2s ease;
}

.faq-card.is-open { border-color: var(--faq-green); }

.faq-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: none;
  border: none;
  padding: 26px 28px;
  cursor: pointer;
  text-align: left;
}

.faq-q {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--faq-paper);
}

.faq-toggle {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--faq-border);
}

.faq-toggle-bar {
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--faq-paper);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.faq-toggle-bar-h { width: 12px; height: 1.5px; }
.faq-toggle-bar-v { width: 1.5px; height: 12px; }

.faq-card.is-open .faq-toggle { border-color: var(--faq-green); }
.faq-card.is-open .faq-toggle-bar-v { transform: translate(-50%, -50%) scaleY(0); }

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-card.is-open .faq-panel { max-height: 400px; }

.faq-panel-inner { padding: 0 28px 26px; }

.faq-panel-inner p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--faq-muted);
  margin: 0;
  max-width: 62ch;
}

@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-left { gap: 32px; }
}

@media (max-width: 560px) {
  .faq-section { padding: 64px 0 72px; }
  .faq-head { padding: 20px; }
  .faq-panel-inner { padding: 0 20px 20px; }
}

/* -------------------------------------------------
   Insights
------------------------------------------------- */
.insights-section {
  padding: 100px 0 120px;
}

.insights-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.insights-head h2 {
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: #0e0e0e;
}

.insights-cta { background: #0e0e0e; color: #fff; }
.insights-cta:hover { background: #2a2a2a; }

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.insight-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: #f0f0f0;
  margin-bottom: 20px;
}

.insight-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insight-cat {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #8a8a8a;
  margin-bottom: 10px;
}

.insight-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: #0e0e0e;
}

.insight-title a:hover { color: #4a3fbf; }

.insight-date {
  display: block;
  font-size: 14px;
  color: #8a8a8a;
}

@media (max-width: 900px) {
  .insights-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .insights-section { padding: 64px 0 72px; }
  .insights-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .insights-grid { grid-template-columns: 1fr; }
}

/* -------------------------------------------------
   Scroll reveal (on-viewport animation)
------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* -------------------------------------------------
   Footer
------------------------------------------------- */
.site-footer {
  background: linear-gradient(to bottom, #ffffff 0%, #F4F5F7 100%);
  padding: 96px 0 0;
  font-size: 14px;
  color: #6b6b6b;
}

/* Site bottom CTA card */
.site-cta {
  background: #fff;
  border-radius: 28px;
  padding: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(14, 14, 14, 0.04);
}

.site-cta-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 560px;
  margin: 0 auto;
}

.site-cta-text .eyebrow {
  display: block;
  font-size: 14px;
  color: #6b6b6b;
  margin-bottom: 12px;
}

.site-cta-text h2 {
  font-size: clamp(28px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: #0e0e0e;
}

.site-cta-text p {
  font-size: 16px;
  line-height: 1.6;
  color: #55575c;
  max-width: 42ch;
  margin: 0 auto 32px;
}

.site-cta-text p strong { color: #0e0e0e; font-weight: 600; }

.site-cta-btn { gap: 8px; }
.site-cta-btn svg { width: 15px; height: 15px; }

/* Footer main: brand + link columns + newsletter */
.footer-main {
  padding: 72px 0 56px;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr;
  gap: 32px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0e0e0e;
  margin-bottom: 16px;
}

.footer-logo svg { width: 22px; height: 22px; }

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: #7a7c81;
  max-width: 32ch;
  margin: 0 0 20px;
}

.footer-brand-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e6e7ea;
  color: #55575c;
}

.footer-brand-socials a:hover { color: #0e0e0e; border-color: #d5d6da; }
.footer-brand-socials svg { width: 15px; height: 15px; }

.footer-col h3,
.footer-newsletter h3 {
  font-size: 15px;
  font-weight: 600;
  color: #0e0e0e;
  margin: 0 0 20px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #55575c;
  font-size: 14.5px;
}

.footer-col a:hover { color: #0e0e0e; }
.footer-col a svg { width: 12px; height: 12px; }

.footer-newsletter p {
  font-size: 14px;
  line-height: 1.6;
  color: #7a7c81;
  margin: 0 0 20px;
  max-width: 34ch;
}

.footer-newsletter-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e6e7ea;
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
}

.footer-newsletter-icon { color: #a6a8ad; font-size: 14px; }

.footer-newsletter-form input {
  flex: 1;
  border: none;
  background: none;
  font-size: 14.5px;
  font-family: inherit;
  color: #0e0e0e;
  padding: 10px 0;
}

.footer-newsletter-form input::placeholder { color: #a6a8ad; }
.footer-newsletter-form input:focus { outline: none; }

.footer-newsletter-form button {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #0e0e0e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.footer-newsletter-form button:hover { background: #2a2a2a; }
.footer-newsletter-form button svg { width: 15px; height: 15px; }

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid #e6e7ea;
  padding: 28px 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  color: #8a8c91;
}

.footer-bottom a { color: #8a8c91; }
.footer-bottom a:hover { color: #0e0e0e; }

@media (max-width: 1080px) {
  .site-cta { padding: 48px 40px; }
}

@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}

@media (max-width: 560px) {
  .site-footer { padding: 56px 0 0; }
  .site-cta { border-radius: 20px; padding: 36px 24px; }
  .footer-main { grid-template-columns: 1fr; padding: 56px 0 40px; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: center; }
}

/* -------------------------------------------------
   Responsive
------------------------------------------------- */
@media (max-width: 900px) {
  .primary-nav, .header-cta { display: none; }
  .nav-toggle { display: block; }

  .what-we-do {
    grid-template-columns: 1fr;
  }

  .video-frame { aspect-ratio: 4 / 3; border-radius: 6px; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .hero { padding: 40px 0 40px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
