/* ==========================================================================
   SINGULAR STUDIOS — stylesheet
   Mobile-first, CSS custom properties, Grid + Flexbox layout.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Color tokens (matches original ss-* palette) */
  --ss-bg: #080808;
  --ss-surface: #111111;
  --ss-card: #161616;
  --ss-dark: #050505;
  --ss-border: #222222;
  --ss-text: #f0f0f0;
  --ss-muted: #888888;
  --ss-accent: #c8ff00;
  --ss-accent-soft: #7fff00;
  --ss-on-accent: #080808;

  /* Derived alpha tints */
  --ss-accent-10: rgb(200 255 0 / 0.1);
  --ss-accent-5: rgb(200 255 0 / 0.05);
  --ss-accent-20: rgb(200 255 0 / 0.2);
  --ss-muted-30: rgb(136 136 136 / 0.3);
  --ss-muted-50: rgb(136 136 136 / 0.5);
  --ss-muted-60: rgb(136 136 136 / 0.6);
  --ss-muted-70: rgb(136 136 136 / 0.7);
  --ss-border-soft: rgb(255 255 255 / 0.08);

  /* Typography */
  --font-display: 'Bebas Neue', cursive;
  --font-body: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing / layout */
  --wrap-max: 1280px;
  --wrap-pad: 1.5rem;
  --section-pad: 8rem;
  --radius-sm: 0.25rem;

  /* Motion */
  --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
}

@media (min-width: 1024px) {
  :root {
    --wrap-pad: 2rem;
  }
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  border: 0 solid var(--ss-border);
}

html {
  /* -webkit-text-size-adjust: 100%; */
  tab-size: 4;
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--ss-bg);
  color: var(--ss-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}


button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  color: inherit;
  margin: 0;
}

button {
  cursor: pointer;
  background: none;
}

input, select, textarea {
  background: none;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 3. Utility layout ---------- */
.wrap {
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--wrap-pad);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ss-accent);
  color: var(--ss-on-accent);
  padding: 0.75rem 1.25rem;
  z-index: 999;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--ss-accent);
  outline-offset: 2px;
}

/* Background texture utilities (recreated from original patterns) */
.dot-pattern {
  background-image: radial-gradient(circle, rgb(255 255 255 / 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.grid-pattern {
  background-image:
    linear-gradient(rgb(255 255 255 / 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Subtle film-grain noise overlay across the whole page */
.noise {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}

/* ---------- 4. Typography helpers ---------- */
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ss-accent);
}

.text-gradient {
  background: linear-gradient(135deg, var(--ss-accent), var(--ss-accent-soft), var(--ss-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.display-xl,
.display-lg,
.display-md {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  color: var(--ss-text);
  text-transform: none;
}

.display-xl {
  font-size: clamp(48px, 11vw, 120px);
  line-height: 0.92;
  margin-top: 1.5rem;
}

.display-lg {
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.95;
  margin-top: 0.75rem;
}

.display-md {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.95;
  margin-top: 0.75rem;
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease-out-quint);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1rem 2rem;
}

.btn-full {
  width: 100%;
}

.btn-accent {
  background: var(--ss-accent);
  color: var(--ss-on-accent);
}

.btn-accent::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.btn-accent:hover::after {
  transform: translateX(100%);
}

.btn-accent:hover {
  box-shadow: 0 0 30px var(--ss-accent-20);
}

.btn-outline {
  color: var(--ss-text);
  border: 1px solid rgb(255 255 255 / 0.15);
}

.btn-outline:hover {
  color: var(--ss-accent);
  background: var(--ss-accent-5);
  border-color: var(--ss-accent);
}

/* ---------- 6. Header / nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-block: 1.25rem;
  background: transparent;
  transition: all 0.4s var(--ease-out-quint);
}

.site-header.is-scrolled {
  padding-block: 0.75rem;
  background: rgb(8 8 8 / 0.9);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ss-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
 height: 45px;
  width: auto;
}

.logo-text {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--ss-text);
}

.primary-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.primary-nav a:not(.btn) {
  font-size: 0.875rem;
  color: var(--ss-muted);
  transition: color 0.2s;
}

.primary-nav a:not(.btn):hover {
  color: var(--ss-text);
}

@media (min-width: 1024px) {
  .primary-nav { display: flex; }
}

.nav-toggle {
  display: flex;
  align-items: center;
  color: var(--ss-text);
  padding: 0.4rem;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgb(8 8 8 / 0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-nav[hidden] { display: none; }

.mobile-nav a:not(.btn) {
  font-family: var(--font-display);
  font-size: 42px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ss-text);
}

.mobile-nav a:not(.btn):hover {
  color: var(--ss-accent);
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 10rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

.glow-top-right {
  top: 25%;
  right: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgb(200 255 0 / 0.06) 0%, transparent 70%);
}

.glow-bottom-left {
  bottom: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgb(200 255 0 / 0.04) 0%, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: end;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .hero-copy { grid-column: span 8; }
  .hero-stats { grid-column: span 4; }
}

.hero-lede {
  margin-top: 2rem;
  color: var(--ss-muted);
  font-size: 1.125rem;
  max-width: 36rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .hero-stats {
    flex-direction: column;
    align-items: flex-end;
    gap: 3rem;
  }

  .nav-toggle{
    display: none;
  }
}

.hero-stat {
  text-align: right;
}

.hero-stat .stat-number {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  background: linear-gradient(var(--ss-text), var(--ss-muted));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stat-label {
  color: var(--ss-muted);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 4rem;
}

.scroll-line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, transparent, var(--ss-muted));
}

.scroll-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ss-muted);
}

/* ---------- 8. Marquees ---------- */
.marquee-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px solid var(--ss-border);
  overflow: hidden;
  padding-block: 0.75rem;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-set {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  padding-right: 3rem;
}

.marquee-strip .marquee-set span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgb(136 136 136 / 0.6);
}

.diamond {
  color: var(--ss-accent);
  margin-inline: 0.4em;
}

@keyframes marquee {
  from { transform: translateX(0%); }
  to { transform: translateX(-50%); }
}

.tooling-strip {
  padding-block: 3rem;
  background: var(--ss-bg);
  border-top: 1px solid var(--ss-border);
  border-bottom: 1px solid var(--ss-border);
  overflow: hidden;
}

.marquee-track--tools {
  animation-duration: 36s;
}

.marquee-track--tools .marquee-set {
  gap: 0;
  padding-right: 0;
}

.marquee-track--tools .marquee-set span {
  display: inline-flex;
  align-items: center;
  padding-inline: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgb(136 136 136 / 0.5);
}

.tooling-strip .diamond {
  color: var(--ss-border);
  font-size: 0.75rem;
}

/* ---------- 9. Stats bar ---------- */
.stats-bar {
  padding-block: 5rem;
  background: var(--ss-surface);
  border-top: 1px solid var(--ss-border);
  border-bottom: 1px solid var(--ss-border);
}

.stats-bar-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--ss-border);
}

@media (min-width: 1024px) {
  .stats-bar-inner { grid-template-columns: repeat(4, 1fr); }
}

.stat-cell {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--ss-surface);
}

.stats-bar .stat-number {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  color: var(--ss-text);
}

.stats-bar .stat-label {
  font-family: var(--font-body);
  margin-top: 0.5rem;
}

/* ---------- 10. Section base ---------- */
section:not(.hero) {
  padding-block: var(--section-pad);
  position: relative;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 1024px) {
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-head-aside {
  color: var(--ss-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 22rem;
}

@media (min-width: 1024px) {
  .section-head-aside { text-align: right; }
}

.self-start { align-self: flex-start; }

/* ---------- 11. About ---------- */
.about {
  background: var(--ss-surface);
  border-top: 1px solid var(--ss-border);
}

.about-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .about-intro { grid-column: span 5; }
  .pillar-grid { grid-column: span 7; }
}

.quote-rule {
  display: flex;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.quote-rule::before {
  content: "";
  width: 1px;
  background: var(--ss-accent);
  flex-shrink: 0;
  height: 80px;
  margin-top: 0.25rem;
}

.quote-rule p {
  color: var(--ss-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.pillar-grid {
  display: grid;
  gap: 1px;
  background: var(--ss-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

@media (min-width: 640px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
}

.pillar-card {
  background: var(--ss-card);
  padding: 2rem;
  transition: background-color 0.3s;
}

.pillar-card:hover {
  background: rgb(22 22 22 / 0.8);
}

.pillar-icon {
  font-size: 1.5rem;
  color: var(--ss-accent);
  margin-bottom: 1rem;
  display: inline-block;
  transition: transform 0.3s;
}

.pillar-card:hover .pillar-icon {
  transform: scale(1.1);
}

.pillar-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.pillar-card p {
  color: var(--ss-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ---------- 12. Services ---------- */
.service-grid {
  display: grid;
  gap: 1px;
  background: var(--ss-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

@media (min-width: 768px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

.service-card {
  background: var(--ss-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out-quint), box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.5), 0 0 0 1px var(--ss-accent-10);
}

.service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.service-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgb(136 136 136 / 0.3);
}

.service-icon {
  height: 32px;
  color: var(--ss-accent);
  font-size: 1.75rem;
  line-height: 1;
  transition: transform 0.3s;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--ss-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  flex: 1;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--ss-border);
  color: rgb(136 136 136 / 0.7);
  border-radius: var(--radius-sm);
}

/* ---------- 13. Work / projects ---------- */
.work {
  background: var(--ss-surface);
}

.project-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

.project-card {
  background: var(--ss-card);
  border: 1px solid var(--ss-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out-quint), border-color 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgb(200 255 0 / 0.3);
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.5), 0 0 0 1px var(--ss-accent-10);
}
/* 
@media (min-width: 768px) {
  .project-card--featured {
    grid-column: span 2;
  }
} */

.project-media {
  position: relative;
  height: 350px;
  /* background:
    radial-gradient(circle at 30% 50%, color-mix(in srgb, var(--accent-color) 25%, transparent), transparent 60%),
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--accent-color) 15%, transparent), transparent 50%); */
  transition: opacity 0.4s;
}

.project-card:nth-of-type(1) .project-media{
  background-image: url(/assets/images/impactworks-mockup.png);
  background-size: cover;
}

.project-card:nth-of-type(2) .project-media{
  background-image: url(/assets/images/ultrafastweightloss.png);
  background-size: cover;
}

.project-card:nth-of-type(3) .project-media{
  background-image: url(/assets/images/timi-alonge-mock-up.png);
  background-size: cover;
}

.project-card:nth-of-type(4) .project-media{
  background-image: url(/assets/images/wild-oasis-DjJ5Ef-L.webp);
  background-size: cover;
}
/* 
.project-card--featured .project-media {
  height: 320px;
} */

.project-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent-color) 18%, var(--ss-card));
  color: var(--accent-color);
}

.project-year {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ss-muted);
}

.project-body {
  padding: 1.75rem;
}

.project-body h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.project-body p {
  color: var(--ss-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* ---------- 14. Process ---------- */
.process {
  background: var(--ss-bg);
}

.glow-process {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgb(200 255 0 / 0.04), transparent 70%);
}

.process-heading {
  margin-bottom: 4rem;
}

.process-grid {
  display: grid;
  gap: 1px;
  background: var(--ss-border);
}

@media (min-width: 768px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .process-grid { grid-template-columns: repeat(3, 1fr); }
}

.process-card {
  position: relative;
  background: var(--ss-bg);
  padding: 2rem;
  overflow: hidden;
}

.process-step-bg {
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-family: var(--font-display);
  font-size: 140px;
  line-height: 1;
  color: rgb(200 255 0 / 0.03);
  /* user-select: none; */
  transition: color 0.3s;
}

.process-card:hover .process-step-bg {
  color: rgb(200 255 0 / 0.06);
}

.process-step {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--ss-accent);
  margin-bottom: 1rem;
}

.process-card h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.process-card p {
  position: relative;
  z-index: 1;
  color: var(--ss-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ---------- 15. Testimonials ---------- */
.testimonials {
  background: var(--ss-surface);
  overflow: hidden;
}

.glow-testimonial {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgb(200 255 0 / 0.05), transparent 70%);
}

.testimonial-layout {
  display: grid;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

@media (min-width: 1024px) {
  .testimonial-layout { grid-template-columns: repeat(12, 1fr); }
  .testimonial-stage { grid-column: span 8; }
  .testimonial-nav { grid-column: span 4; }
}

.testimonial-card {
  position: relative;
  z-index: 1;
}

.testimonial-mark {
  font-family: Georgia, serif;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--ss-accent);
  margin-bottom: 1.5rem;
}

.company-logo{
  display: inline-block;
  /* width: 120px; */
  height: 40px;
  object-fit: contain;
  margin-bottom: 1.5rem;
}

.testimonial-quote {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgb(240 240 240 / 0.9);
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.testimonial-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display); 
  font-size: 0.9rem;
  color: var(--ss-bg);
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.875rem;
}

.testimonial-title {
  color: var(--ss-muted);
  font-size: 0.75rem;
  margin-top: 0.1rem;
}

.testimonial-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .testimonial-nav { flex-direction: column; }
}

.testimonial-nav-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ss-border);
  background: transparent;
  color: var(--ss-text);
  font-size: 0.8125rem;
  transition: border-color 0.3s, background-color 0.3s;
}

.testimonial-nav-item .ti-name {
  display: block;
  font-weight: 600;
}

.testimonial-nav-item .ti-title {
  display: block;
  color: var(--ss-muted);
  font-size: 0.7rem;
  margin-top: 0.2rem;
}

.testimonial-nav-item.is-active {
  border-color: var(--ss-accent);
  background: var(--ss-accent-5);
}

.testimonial-progress {
  display: flex;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.testimonial-progress-track {
  height: 2px;
  flex: 1;
  background: var(--ss-border);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}

.testimonial-progress-fill {
  display: flex;
  height: 100%;
  width: 0%;
  background: var(--ss-accent);
}

/* ---------- 16. FAQ ---------- */
.faq-grid {
  display: grid;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .faq-grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .faq-intro { grid-column: span 4; }
  .faq-list { grid-column: span 8; }
}

.faq-intro p {
  color: var(--ss-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--ss-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ss-text);
}

.faq-question:hover {
  color: var(--ss-accent);
}

.faq-icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 1px solid var(--ss-border);
  color: var(--ss-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, border-color 0.3s, color 0.3s;
}

.faq-item.is-open .faq-icon {
  border-color: var(--ss-accent);
  background: var(--ss-accent-10);
  color: var(--ss-accent);
  transform: rotate(45deg);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s var(--ease-out-quint);
}

.faq-answer p {
  padding-bottom: 1.5rem;
  padding-right: 3rem;
  color: var(--ss-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ---------- 17. Contact ---------- */
.contact {
  background: var(--ss-bg);
}

.contact-grid {
  display: grid;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(12, 1fr);
    align-items: start;
  }
  .contact-intro { grid-column: span 5; }
  .contact-form-wrap { grid-column: span 7; }
}

.contact-lede {
  color: var(--ss-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 2rem;
  max-width: 22rem;
}

.contact-links {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ss-muted);
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--ss-accent);
}

.contact-link-icon {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--ss-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.contact-link:hover .contact-link-icon {
  border-color: var(--ss-accent);
}

.social-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.social-pill {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--ss-border);
  color: rgb(136 136 136 / 0.6);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, color 0.2s;
}

.social-pill:hover {
  border-color: var(--ss-accent);
  color: var(--ss-accent);
}

.contact-form-card {
  background: var(--ss-card);
  border: 1px solid var(--ss-border);
  border-radius: var(--radius-sm);
  padding: 2rem;
}

@media (min-width: 1024px) {
  .contact-form-card { padding: 2.5rem; }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgb(136 136 136 / 0.6);
  margin-bottom: 0.5rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--ss-bg);
  border: 1px solid var(--ss-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--ss-text);
  transition: border-color 0.2s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgb(136 136 136 / 0.3);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ss-accent);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.field textarea {
  resize: none;
}

.form-success {
  text-align: center;
  padding-block: 3rem;
}

.success-check {
  font-size: 2.5rem;
  color: var(--ss-accent);
  margin-bottom: 1rem;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.05em;
}

.form-success p {
  color: var(--ss-muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* ---------- 18. Footer ---------- */
.site-footer {
  background: var(--ss-dark);
  border-top: 1px solid var(--ss-border);
  padding-top: 5rem;
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .footer-brand { grid-column: span 5; }
  .footer-links { grid-column: span 7; }
}

.footer-brand p {
  color: var(--ss-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 1.5rem;
  max-width: 20rem;
}

.footer-cta-box {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--ss-accent-20);
  background: var(--ss-accent-5);
  border-radius: var(--radius-sm);
}

.footer-cta-title {
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.footer-cta-sub {
  color: var(--ss-muted);
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.footer-links {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}

.footer-links h4 {
  margin-bottom: 1.25rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--ss-muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--ss-text);
}

.footer-bottom {
  border-top: 1px solid var(--ss-border);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  color: rgb(136 136 136 / 0.5);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: rgb(136 136 136 / 0.5);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--ss-muted);
}

/* ---------- 19. Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--ss-accent);
  color: var(--ss-on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.4);
  transition: opacity 0.3s, transform 0.3s;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

.back-to-top[hidden] {
  display: none;
}

/* ---------- 20. Scroll-reveal animation classes ----------
   Content is visible by default with NO dependency on JavaScript.
   JavaScript (app.js) progressively enhances this by adding `.reveal-armed`
   to <html> only after it has successfully set up the IntersectionObserver
   and is ready to drive the reveal animation itself. This guarantees that
   if app.js fails to load, throws, or is blocked, every section of the
   page remains fully visible — there is no "hidden until JS proves it
   works" state. */
.reveal-item {
  opacity: 1;
  transform: none;
}

html.reveal-armed .reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out-quint), transform 0.7s var(--ease-out-quint);
}

html.reveal-armed .reveal-group.is-visible .reveal-item,
html.reveal-armed .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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