/* ============================================================
   TIZYCORP DIGITAL - v3.0
   Dark / Light · Black & White · Touch of Blue
   ============================================================ */

/* ---------- Design tokens: Dark (default) ---------- */
:root {
  --bg: #090909;
  --bg-alt: #000000;
  --surface: #111111;
  --card: #131313;
  --border: #1F1F1F;
  --border2: #2D2D2D;
  --divider: #1A1A1A;

  --head: #FFFFFF;
  --text: #E8E8E8;
  --dim: #A3A3A3;
  --muted: #858585;

  --blue: #3B82F6;
  --blue-mid: #2563EB;
  --blue-lo: rgba(59, 130, 246, 0.08);
  --blue-line: rgba(59, 130, 246, 0.2);

  --shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);

  --black: #000000;
  --white: #FFFFFF;

  --r: 8px;
  --r2: 12px;
  --r3: 18px;
  --r4: 24px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --w: 1180px;
}

/* ---------- Light mode ---------- */
[data-theme="light"] {
  --bg: #FAFAFA;
  --bg-alt: #FFFFFF;
  --surface: #F2F2F2;
  --card: #FFFFFF;
  --border: #E8E8E8;
  --border2: #D4D4D4;
  --divider: #EBEBEB;

  --head: #0A0A0A;
  --text: #1A1A1A;
  --dim: #525252;
  --muted: #666666;

  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);

  --black: #F2F2F2;
  --white: #0A0A0A;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

body.nav-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul {
  list-style: none;
}

::selection {
  background: var(--blue);
  color: #fff;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 32px;
  }
}

@media (min-width: 1024px) {
  .wrap {
    padding: 0 48px;
  }
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 52px 0;
}

.section-lg {
  padding: 112px 0;
}

.bd-top {
  border-top: 1px solid var(--border);
}

.bd-bottom {
  border-bottom: 1px solid var(--border);
}

.bg-alt {
  background: var(--bg-alt);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  color: var(--head);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* Display sizes - intentionally restrained */
.d1 {
  font-size: clamp(2.2rem, 4.8vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.d2 {
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.d3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.d4 {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

p.lead {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: var(--dim);
  line-height: 1.7;
  max-width: 640px;
}

p.lead-sm {
  font-size: 0.9rem;
  color: var(--dim);
  line-height: 1.6;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
  display: block;
  margin-bottom: 14px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--head) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mouse-track-text {
  --mouse-x: 50%;
  --mouse-y: 50%;
  background: radial-gradient(circle 320px at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(147, 197, 253, 0.8) 0%,
      var(--head) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}


/* ---------- Page loader ---------- */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-alt);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s var(--ease);
}

#loader.done {
  opacity: 0;
  pointer-events: none;
}

.loader-dots {
  display: flex;
  gap: 5px;
}

.loader-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--head);
  animation: ldot 1.1s ease-in-out infinite;
}

.loader-dots span:nth-child(2) {
  animation-delay: 0.18s;
}

.loader-dots span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes ldot {

  0%,
  60%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }

  30% {
    transform: scale(1.6);
    opacity: 1;
  }
}

/* ---------- Scroll progress ---------- */
#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--blue);
  z-index: 200;
  width: 0%;
  transition: width .1s linear;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.header.scrolled {
  background: rgba(9, 9, 9, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--border);
}

[data-theme="light"] .header.scrolled {
  background: rgba(250, 250, 250, 0.88);
}

.header-inner {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 20px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

@media (min-width: 640px) {
  .header-inner {
    padding: 0 32px;
  }
}

@media (min-width: 1024px) {
  .header-inner {
    padding: 0 48px;
  }
}

.brand img {
  height: 24px;
  width: auto;
  flex-shrink: 0;
}

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

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

.nav a {
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 450;
  color: var(--dim);
  border-radius: 6px;
  letter-spacing: -0.01em;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  color: var(--head);
  background: var(--surface);
}

.nav a.active {
  color: var(--head);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Theme toggle */
.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--head);
  border-color: var(--border2);
  background: var(--surface);
}

.theme-toggle .ico-sun {
  display: none;
}

.theme-toggle .ico-moon {
  display: block;
}

[data-theme="light"] .theme-toggle .ico-sun {
  display: block;
}

[data-theme="light"] .theme-toggle .ico-moon {
  display: none;
}

.header-cta {
  display: none;
}

@media (min-width: 540px) {
  .header-cta {
    display: inline-flex;
  }
}

/* Burger */
.burger {
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.burger:hover {
  border-color: var(--border2);
}

.burger span {
  display: block;
  width: 15px;
  height: 1.5px;
  background: var(--head);
  border-radius: 2px;
  transition: transform 0.28s var(--ease), opacity 0.28s;
}

.burger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (min-width: 860px) {
  .burger {
    display: none;
  }
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: 62px;
  inset-inline: 0;
  bottom: 0;
  background: var(--bg-alt);
  z-index: 99;
  padding: 32px 24px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.mobile-nav ul {
  border-top: 1px solid var(--border);
}

.mobile-nav ul a {
  display: block;
  padding: 16px 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--dim);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-nav ul a:hover,
.mobile-nav ul a.active {
  color: var(--head);
}

.mobile-nav-foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-foot .email {
  font-size: 0.9rem;
  color: var(--dim);
}

@media (min-width: 860px) {
  .mobile-nav {
    display: none;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: var(--r);
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 12.5px;
}

.btn-lg {
  padding: 11px 22px;
  font-size: 14.5px;
}

.btn-xl {
  padding: 14px 28px;
  font-size: 15px;
}

.btn-primary {
  background: var(--head);
  color: var(--bg-alt);
  border-color: var(--head);
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  color: var(--bg-alt);
}

.btn-blue {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.btn-blue:hover {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  transform: translateY(-1px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--dim);
  border-color: var(--border2);
}

.btn-outline:hover {
  border-color: var(--dim);
  color: var(--head);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 148px 0 88px;
  min-height: 96svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 20% 40%, black 10%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 20% 40%, black 10%, transparent 65%);
  pointer-events: none;
}

[data-theme="light"] .hero::before {
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.055) 1px, transparent 1px);
}

.hero::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--border2);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 32px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: blink 2.5s ease-in-out infinite;
}

.hero-badge span {
  font-size: 12px;
  color: var(--dim);
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

.hero h1 {
  margin-bottom: 22px;
}

.hero .hero-desc {
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 72px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

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

.hero-stat {
  padding: 0 20px;
  border-right: 1px solid var(--border);
}

.hero-stat:first-child {
  padding-left: 0;
}

.hero-stat:last-child {
  border-right: 0;
}

@media (max-width: 600px) {
  .hero-stat:nth-child(2) {
    border-right: 0;
  }

  .hero-stat:nth-child(3),
  .hero-stat:nth-child(4) {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--border);
  }

  .hero-stat:nth-child(3) {
    padding-left: 0;
    border-right: 1px solid var(--border);
  }

  .hero-stat:nth-child(4) {
    border-right: 0;
  }
}

.stat-n {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--head);
  letter-spacing: -0.035em;
  margin-bottom: 3px;
}

.stat-l {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  background: var(--bg-alt);
}

.marquee-inner {
  display: flex;
  animation: scroll 34s linear infinite;
}

.marquee-inner:hover {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
}

.marquee-group span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 28px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  transition: color 0.2s;
}

.marquee-group span:hover {
  color: var(--dim);
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ============================================================
   SERVICES - Card grid (homepage + services page)
   ============================================================ */
.services-section {
  position: relative;
  overflow: hidden;
  --mouse-x: -100px;
  --mouse-y: -100px;
}

.services-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 700px at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(59, 130, 246, 0.05),
      transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r4);
  overflow: hidden;
}

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

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

.svc-card {
  background: var(--card);
  padding: 28px 26px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
  min-height: 210px;
  --mouse-x: -100px;
  --mouse-y: -100px;
}

.svc-card:hover {
  background: var(--surface);
}

.svc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 260px at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(59, 130, 246, 0.12),
      transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.svc-card:hover::after {
  opacity: 1;
}

.svc-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.svc-card:hover .svc-icon {
  background: var(--blue-lo);
  border-color: var(--blue-line);
}

.svc-num {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.svc-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--head);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.svc-desc {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.55;
  flex: 1;
}

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
}

.svc-tag {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.2s, color 0.2s;
}

.svc-card:hover .svc-tag {
  border-color: var(--border2);
  color: var(--dim);
}

/* ============================================================
   WORK GRID
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r4);
  overflow: hidden;
}

@media (min-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.work-card {
  background: var(--card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}

.work-card:hover {
  background: var(--surface);
}

.work-card.span2 {
  grid-column: span 1;
}

@media (min-width: 768px) {
  .work-card.span2 {
    grid-column: span 2;
    min-height: 220px;
  }
}

.work-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.065), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.work-card:hover::after {
  opacity: 1;
}

.wc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.wc-cat {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.wc-year {
  font-size: 10px;
  color: var(--muted);
}

.wc-body {
  margin-top: 28px;
}

.wc-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--head);
  letter-spacing: -0.03em;
  margin-bottom: 5px;
}

.wc-tag {
  font-size: 13px;
  color: var(--dim);
}

.wc-foot {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wc-stack {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.wc-stack span {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.wc-arrow {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  color: var(--dim);
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
}

.work-card:hover .wc-arrow {
  border-color: var(--blue-line);
  color: var(--blue);
  transform: rotate(-42deg);
}

/* ============================================================
   ABOUT SECTIONS
   ============================================================ */
/* Stats row (horizontal) */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--r3);
  border: 1px solid var(--border);
  overflow: hidden;
}

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

.stat-cell {
  background: var(--card);
  padding: 28px 24px;
  transition: background 0.2s;
}

.stat-cell:hover {
  background: var(--surface);
}

.stat-cell .n {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--head);
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}

.stat-cell .l {
  font-size: 12px;
  color: var(--dim);
}

/* Capability cards */
.caps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.cap-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, background 0.2s;
}

.cap-card:hover {
  border-color: var(--border2);
  background: var(--surface);
}

.cap-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--blue-lo);
  border: 1px solid var(--blue-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.cap-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--head);
  letter-spacing: -0.02em;
}

.cap-desc {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.55;
}

/* Value list */
.value-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.value-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.value-row .n {
  font-size: 10px;
  color: var(--blue);
  letter-spacing: 0.06em;
  padding-top: 3px;
}

.value-row .v {
  font-size: 15px;
  color: var(--dim);
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.value-row .v strong {
  color: var(--head);
  font-weight: 500;
}

/* Founder card */
.founder-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r4);
  padding: 36px 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .founder-card {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.founder-card::before {
  content: "";
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.07), transparent 70%);
  pointer-events: none;
}

.founder-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--head);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.founder-role {
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 16px;
}

.founder-bio {
  font-size: 14px;
  color: var(--dim);
  line-height: 1.65;
}

.founder-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 20px;
}

.founder-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--dim);
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color 0.2s, color 0.2s;
}

.founder-link:hover {
  border-color: var(--border2);
  color: var(--head);
}

.founder-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-radius: var(--r3);
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
  max-height: 240px;
}

.founder-visual .monogram {
  font-size: 4rem;
  font-weight: 800;
  color: var(--border2);
  letter-spacing: -0.05em;
  line-height: 1;
}

/* ============================================================
   PROCESS - Timeline (left-aligned, simple - see supplemental for full rules)
   ============================================================ */
.process-timeline {
  display: flex;
  flex-direction: column;
}

.pt-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0 18px;
  align-items: start;
}

.pt-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
}

.pt-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--card);
  border: 1.5px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue);
  letter-spacing: 0.04em;
}

.pt-line {
  flex: 1;
  width: 1px;
  background: var(--border);
  min-height: 20px;
  margin: 8px 0;
}

.pt-step:last-child .pt-line {
  display: none;
}

.pt-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 24px 26px;
  margin-bottom: 16px;
  transition: border-color 0.2s, background 0.2s;
}

.pt-content:hover {
  border-color: var(--border2);
  background: var(--surface);
}

.pt-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--blue-lo);
  border: 1px solid var(--blue-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 14px;
}

.pt-body .mono-label {
  margin-bottom: 5px;
}

.pt-body h3 {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 700;
  color: var(--head);
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.pt-body>.body-lg {
  margin-top: 0;
}

.pt-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  white-space: normal;
}

.pt-list li {
  font-size: 12.5px;
  color: var(--dim);
  line-height: 1.55;
  padding: 8px 12px 8px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  position: relative;
  white-space: normal;
  word-break: normal;
}

.pt-list li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 1px;
  background: var(--blue);
}

/* Simple 4-col grid (used on homepage) */
.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r4);
  overflow: hidden;
}

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

.pc {
  background: var(--card);
  padding: 28px 24px;
  transition: background 0.2s;
}

.pc:hover {
  background: var(--surface);
}

.pc-num {
  font-size: 11px;
  color: var(--blue);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  display: block;
}

.pc-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--head);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.pc-body {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.6;
}

/* ============================================================
   BUILDING CARDS
   ============================================================ */
.building-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  .building-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.bcard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r4);
  padding: 36px 28px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}

.bcard:hover {
  border-color: var(--border2);
  background: var(--surface);
}

.bcard::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.07), transparent 70%);
  pointer-events: none;
}

.bcard-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}

.bcard-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  animation: blink 2s ease-in-out infinite;
}

.bcard h3 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.bcard p {
  font-size: 13.5px;
  color: var(--dim);
  line-height: 1.65;
  margin-bottom: 24px;
}

.bcard-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bcard-bullets li {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center;
}

.bcard-bullets li::before {
  content: "→";
  color: var(--blue);
  font-size: 11px;
  flex-shrink: 0;
}

/* ============================================================
   QUOTE BLOCK
   ============================================================ */
.quote {
  border: 1px solid var(--border);
  border-radius: var(--r4);
  padding: 56px 44px;
  background: var(--card);
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (max-width: 639px) {
  .quote {
    padding: 36px 22px;
  }
}

.quote::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.05), transparent 55%);
}

.quote blockquote {
  position: relative;
  font-size: clamp(1.05rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: var(--head);
  max-width: 860px;
  margin: 0 auto;
}

.quote blockquote .accent {
  color: var(--blue);
}

.quote cite {
  display: block;
  margin-top: 18px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-style: normal;
}

/* ============================================================
   CTA BLOCK
   ============================================================ */
.cta-block {
  border: 1px solid var(--border);
  border-radius: var(--r4);
  padding: 60px 48px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .cta-block {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

@media (max-width: 639px) {
  .cta-block {
    padding: 36px 22px;
  }
}

.cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.05), transparent 50%);
}

.cta-block>* {
  position: relative;
}

.cta-block p {
  color: var(--dim);
  margin-top: 10px;
  max-width: 500px;
  font-size: 14px;
}

.cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items: center;
}

/* ============================================================
   FEATURED ITEM (split layout)
   ============================================================ */
.split-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .split-2col {
    grid-template-columns: 5fr 7fr;
    gap: 72px;
  }
}

.split-2col.flip> :first-child {
  order: 2;
}

.split-2col.flip> :last-child {
  order: 1;
}

@media (max-width: 899px) {

  .split-2col.flip> :first-child,
  .split-2col.flip> :last-child {
    order: unset;
  }
}

/* ============================================================
   FEATURE ITEM (inline check-style)
   ============================================================ */
.feat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feat-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color 0.2s;
}

.feat-item:hover {
  border-color: var(--border2);
}

.feat-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 8px;
  flex-shrink: 0;
}

.feat-text {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.55;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.ph {
  padding: 148px 0 68px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.ph::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.065), transparent 70%);
  pointer-events: none;
}

.ph h1 {
  max-width: 820px;
  margin-bottom: 18px;
}

.ph .lead {
  max-width: 620px;
}

/* ============================================================
   CASE STUDY
   ============================================================ */
.cs-hero {
  padding: 148px 0 68px;
  border-bottom: 1px solid var(--border);
}

.cs-breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cs-breadcrumb a:hover {
  color: var(--dim);
}

.cs-breadcrumb span {
  opacity: 0.4;
}

.cs-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  margin-top: 40px;
}

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

.cs-meta-item {
  background: var(--card);
  padding: 18px 20px;
}

.cs-meta-item .k {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.cs-meta-item .v {
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
}

.cs-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.cs-section:last-of-type {
  border-bottom: 0;
}

.cs-sec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 900px) {
  .cs-sec-grid {
    grid-template-columns: 240px 1fr;
    gap: 72px;
  }
}

.cs-sec-label .eyebrow {
  margin-bottom: 8px;
}

.cs-sec-label h2 {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
}

.cs-sec-body p {
  font-size: 14.5px;
  color: var(--dim);
  line-height: 1.75;
  max-width: 680px;
}

.cs-next {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 52px 0;
}

.cs-next-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cs-next-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cs-next h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  letter-spacing: -0.03em;
  transition: color 0.2s;
}

.cs-next a:hover h3 {
  color: var(--blue);
}

.cs-next-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--dim);
  flex-shrink: 0;
  transition: all 0.2s var(--ease);
}

.cs-next a:hover .cs-next-arrow {
  border-color: var(--blue);
  color: var(--blue);
  transform: rotate(-42deg);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.5fr;
    gap: 72px;
  }
}

.ci-row {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 10px;
}

.ci-row .k {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.ci-row .v {
  font-size: 13.5px;
  color: var(--dim);
}

.ci-row a.v:hover {
  color: var(--head);
}

.form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r4);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 560px) {
  .form {
    padding: 24px 18px;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  padding: 11px 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.field textarea {
  min-height: 110px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 520px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.form-ok {
  padding: 11px 14px;
  background: var(--blue-lo);
  border: 1px solid var(--blue-line);
  border-radius: var(--r);
  font-size: 13px;
  color: var(--blue);
}

.form-err {
  padding: 11px 14px;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--r);
  font-size: 13px;
  color: #f87171;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 3fr;
    gap: 56px;
  }
}

.footer-brand img {
  /* height: 22px; */
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  max-width: 260px;
  line-height: 1.6;
}

.footer-brand .f-email {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--dim);
  transition: color 0.2s;
}

.footer-brand .f-email:hover {
  color: var(--head);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

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

.footer-col h4,
.footer-heading {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 14px;
  font-weight: 500;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a {
  font-size: 13px;
  color: var(--dim);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--head);
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--muted);
}

/* ============================================================
   404
   ============================================================ */
.nf {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.nf-num {
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: var(--border2);
}

.nf h2 {
  font-size: 1.2rem;
  margin-top: 18px;
  margin-bottom: 8px;
}

.nf p {
  color: var(--dim);
  font-size: 14px;
  max-width: 380px;
  margin-bottom: 28px;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.stagger>* {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.stagger.in>* {
  opacity: 1;
  transform: translateY(0);
}

.stagger.in>*:nth-child(1) {
  transition-delay: .04s;
}

.stagger.in>*:nth-child(2) {
  transition-delay: .10s;
}

.stagger.in>*:nth-child(3) {
  transition-delay: .16s;
}

.stagger.in>*:nth-child(4) {
  transition-delay: .22s;
}

.stagger.in>*:nth-child(5) {
  transition-delay: .28s;
}

.stagger.in>*:nth-child(6) {
  transition-delay: .34s;
}

.stagger.in>*:nth-child(7) {
  transition-delay: .40s;
}

.stagger.in>*:nth-child(8) {
  transition-delay: .46s;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center {
  text-align: center;
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.mt-48 {
  margin-top: 48px;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   SUPPLEMENTAL - Shared helpers & v3 additions
   ============================================================ */

/* Body text */
.body-lg {
  font-size: clamp(0.9rem, 1.2vw, 1.02rem);
  color: var(--dim);
  line-height: 1.8;
}

/* Mono label / eyebrow */
.mono-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  display: block;
}

/* Section header */
.sh {
  margin-bottom: 52px;
}

.sh .mono-label {
  margin-bottom: 10px;
}

/* 2-col about split */
.about-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 900px) {
  .about-split {
    grid-template-columns: 5fr 7fr;
    gap: 80px;
    align-items: start;
  }
}

/* Hero stat counter */
.hero-stat-n {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--head);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-l {
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Numbered list rows */
.n-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.n-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.n-num {
  font-size: 10px;
  color: var(--blue);
  font-family: var(--mono);
  letter-spacing: 0.06em;
  padding-top: 3px;
}

.n-label {
  font-size: 14px;
  color: var(--dim);
  line-height: 1.6;
}

.n-label strong {
  color: var(--head);
  font-weight: 500;
}

/* Process cards */
.process-card {
  background: var(--card);
  padding: 28px 24px;
  transition: background 0.2s;
}

.process-card:hover {
  background: var(--surface);
}

.process-card .pc-num {
  font-size: 11px;
  color: var(--blue);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  display: block;
  font-family: var(--mono);
}

.process-card .pc-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--head);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.process-card .pc-body {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.6;
}

/* Hero background image */
.hero-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.05;
  pointer-events: none;
}

.hero-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-theme="light"] .hero-bg-img {
  opacity: 0.03;
}

/* About stats row */
.stats-row {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-cells {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
}

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

.stat-cell {
  background: var(--bg-alt);
  padding: 32px 28px;
  transition: background 0.2s;
}

.stat-cell:hover {
  background: var(--surface);
}

.stat-cell .stat-n {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--head);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 5px;
}

.stat-cell .stat-l {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Value list rows */
.value-row {
  grid-template-columns: 24px 1fr;
}

.value-num {
  font-size: 10px;
  color: var(--blue);
  font-family: var(--mono);
  letter-spacing: 0.06em;
  padding-top: 3px;
}

.value-text {
  font-size: 14px;
  color: var(--dim);
  line-height: 1.65;
}

.value-text strong {
  color: var(--head);
  font-weight: 500;
}

/* Cap card typography */
.cap-card h3 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--head);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.cap-card p {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.55;
}

/* 6-col caps on wider screens */
@media (min-width: 768px) {
  .caps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

/* Stack grid */
.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.stack-pill {
  font-size: 12px;
  color: var(--dim);
  padding: 7px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s, color 0.2s;
}

.stack-pill:hover {
  border-color: var(--border2);
  color: var(--head);
}

/* Founder card extras */
.founder-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.founder-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue-lo);
  border: 2px solid var(--blue-line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.founder-initials {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.04em;
}

/* Override .founder-card grid for single-column */
.founder-card {
  display: block !important;
}

/* timeline rules are in the PROCESS section above */

/* Service tag spans (no explicit class) */
.svc-tags span {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}

.svc-card:hover .svc-tags span {
  border-color: var(--border2);
  color: var(--dim);
}

/* Work card image */
.wc-img {
  overflow: hidden;
  border-radius: var(--r2) var(--r2) 0 0;
  aspect-ratio: 16/9;
}

.wc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
  display: block;
}

.work-card:hover .wc-img img {
  transform: scale(1.04);
}

.wc-info {
  padding: 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.work-card:has(.wc-img) {
  padding: 0;
}

.work-card:has(.wc-img) .wc-foot {
  margin: 0 0 4px;
  padding: 14px 0 0;
}

/* Hero black bg alias */
.black {
  background: var(--bg-alt) !important;
}

/* ============================================================
   AUDIT FIX ADDITIONS
   ============================================================ */

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--blue);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  font-size: 13px;
  font-weight: 500;
  transition: top 0.15s;
}

.skip-link:focus {
  top: 0;
}

/* Back to top */
.back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 150;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border2);
  display: grid;
  place-items: center;
  color: var(--dim);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.2s, color 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.back-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.back-top:hover {
  border-color: var(--blue-line);
  color: var(--blue);
}

@media (max-width: 767px) {
  .back-top {
    display: none;
  }
}

/* Work filter bar */
.filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border2);
  color: var(--dim);
  background: transparent;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}

.filter-btn:hover {
  border-color: var(--dim);
  color: var(--head);
}

.filter-btn.active {
  background: var(--head);
  color: var(--bg-alt);
  border-color: var(--head);
}

.work-card[data-hidden="true"] {
  display: none;
}

/* Contact icons */
.ci-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ci-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Hero outline button contrast fix */
.btn-outline {
  background: transparent;
  color: var(--dim);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero .btn-outline {
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero .btn-outline:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .btn-outline {
  border-color: var(--border2);
  color: var(--dim);
}

[data-theme="light"] .hero .btn-outline {
  border-color: rgba(0, 0, 0, 0.2);
  color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .hero .btn-outline:hover {
  border-color: rgba(0, 0, 0, 0.5);
  color: var(--head);
  background: rgba(0, 0, 0, 0.04);
}

/* Social proof / testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

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

.tcard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.tcard:hover {
  border-color: var(--border2);
  background: var(--surface);
}

.tcard::before {
  content: "\201C";
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 3rem;
  color: var(--border2);
  line-height: 1;
  font-family: Georgia, serif;
}

.tcard-quote {
  font-size: 14px;
  color: var(--dim);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.tcard-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.tcard-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--head);
  letter-spacing: -0.01em;
}

.tcard-meta {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Case study prev/next nav */
.cs-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}

.cs-nav-item {
  background: var(--card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.2s;
  text-decoration: none;
}

.cs-nav-item:hover {
  background: var(--surface);
}

.cs-nav-item.cs-nav-next {
  text-align: right;
  align-items: flex-end;
}

.cs-nav-dir {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cs-nav-next .cs-nav-dir {
  flex-direction: row-reverse;
}

.cs-nav-title {
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  font-weight: 700;
  color: var(--head);
  letter-spacing: -0.025em;
  transition: color 0.2s;
}

.cs-nav-item:hover .cs-nav-title {
  color: var(--blue);
}

/* Section padding cap - override excessive spacing */
.section {
  padding: 72px 0;
}

.section-lg {
  padding: 96px 0;
}

/* Light mode section rhythm */
[data-theme="light"] .section:nth-child(even) {
  background: var(--surface) !important;
}

[data-theme="light"] .stats-row {
  background: var(--surface);
}

/* Page transition */
.page-leaving main,
.page-leaving .footer {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

main {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Footer nav fix - prevent text wrapping */
.footer-col {
  min-width: 0;
}

.footer-col a {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Marquee clickable links */
.marquee-group a {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 28px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
  text-decoration: none;
}

.marquee-group a:hover {
  color: var(--head);
}

.marquee-group span {
  display: none;
}

/* hide old spans if still present */

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Hero stats margin tighten */
.hero-stats {
  margin-top: 52px;
  padding-top: 28px;
}

/* Cap card 3-col on wide screens */
@media (min-width: 1024px) {
  .caps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Founder head flex */
.founder-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
}

.founder-avatar {
  flex-shrink: 0;
}

/* Stack pills margin */
.stack-grid {
  margin-top: 12px;
}

/* Prevent stagger from hiding sections permanently if observer doesn't fire */
@media (prefers-reduced-motion: reduce) {

  .reveal,
  .stagger>* {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* wc-info padding correction when no image */
.work-card:not(:has(.wc-img)) {
  padding: 28px;
}

.work-card:not(:has(.wc-img)) .wc-info {
  padding: 0;
}

/* Tighten ci-row spacing */
.ci-row+.ci-row {
  margin-top: 10px;
}