/* ===========================
   Custom Properties
   =========================== */
:root {
  --color-crimson: #7B1D20;
  --color-crimson-dark: #5C1518;
  --color-crimson-light: rgba(123, 29, 32, 0.06);
  --color-charcoal: #1C1C1E;
  --color-slate: #3D3D40;
  --color-stone: #6B6B6F;
  --color-silver: #737377;
  --color-white: #FFFFFF;
  --color-ivory: #FAFAF8;
  --color-pearl: #F3F2F0;
  --color-border: #E8E6E3;

  --font-heading: 'Sora', 'Segoe UI', sans-serif;
  --font-wordmark: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-charcoal);
  background-color: var(--color-white);
  background-image:
    linear-gradient(rgba(123, 29, 32, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 29, 32, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

ul, ol {
  list-style: none;
}

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

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

/* ===========================
   Typography
   =========================== */
h1, h2 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

h3, h4 {
  font-family: var(--font-body);
  line-height: 1.3;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Spell UI — Highlighted Text */
.text-accent {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  align-items: baseline;
}

.text-accent .highlight-bg {
  position: absolute;
  inset: 0;
  left: -0.15em;
  right: -0.18em;
  background: var(--color-crimson);
  z-index: 0;
  transform: translateY(100%);
  animation: spellHighlight 0.6s cubic-bezier(0.25, 0.1, 0, 1) 1.2s forwards;
}

.text-accent .highlight-text {
  position: relative;
  z-index: 1;
  color: #fff;
  padding-left: 0.15em;
  padding-right: 0.18em;
}

/* ===========================
   Keyframe Animations
   =========================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmerSweep {
  0%, 100% { left: -60%; }
  50% { left: 100%; }
}

@keyframes cardShimmer {
  to { left: 200%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes slowSpin {
  100% { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* ===========================
   Spell UI — Subtle light sweep over text
   =========================== */
@keyframes spellSweep {
  0%, 100% { left: -60%; }
  40%, 60% { left: 110%; }
}


/* ===========================
   Spell UI — Highlighted Text
   =========================== */
@keyframes spellHighlight {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ===========================
   Spell UI — Flow Button dash
   =========================== */
@keyframes spellDashFlow {
  to { stroke-dashoffset: -10; }
}


/* ===========================
   Section Headers
   =========================== */
.section-header {
  margin-bottom: 40px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-crimson);
  margin-bottom: 12px;
  display: inline-block;
  position: relative;
  overflow: hidden;
  border-bottom: 1px dashed rgba(123, 29, 32, 0.3);
  padding-bottom: 4px;
}

/* Spell UI — subtle light sweep that never hides text */
.section-eyebrow::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(123, 29, 32, 0.1), transparent);
  animation: spellSweep 8s ease-in-out 2s infinite;
  pointer-events: none;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-charcoal);
  max-width: 560px;
}

.section-header--light .section-eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.section-header--light .section-eyebrow::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.section-header--light .section-heading {
  color: var(--color-white);
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: none;
}

.btn:hover::after {
  animation: cardShimmer 0.6s ease forwards;
}

.btn-arrow {
  transition: transform 0.3s ease;
  display: inline-block;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--color-crimson);
  color: #fff;
  border: 2px solid var(--color-crimson);
}

.btn-primary:hover {
  background: var(--color-crimson-dark);
  border-color: var(--color-crimson-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(123, 29, 32, 0.25);
}

/* Spell UI — Flow Button */
.btn-flow-wrap {
  position: relative;
  display: inline-block;
}

.btn-flow-wrap .flow-border {
  position: absolute;
  inset: 2px;
  pointer-events: none;
  opacity: 0;
  z-index: 10;
  transition: opacity 0.2s ease, inset 0.2s ease;
  border-radius: 4px;
  overflow: visible;
}

.btn-flow-wrap .flow-border svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.btn-flow-wrap:hover .flow-border {
  opacity: 1;
  inset: 0;
}

.btn-flow-wrap:hover .flow-border path {
  animation: spellDashFlow 1s linear infinite;
}

.btn-secondary {
  background: transparent;
  color: var(--color-charcoal);
  border: 2px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-crimson);
  color: var(--color-crimson);
  transform: translateY(-2px);
}

/* ===========================
   Navbar
   =========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-wordmark {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.wordmark-tanukushi {
  font-family: var(--font-wordmark);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-charcoal);
}

.wordmark-associates {
  font-family: var(--font-wordmark);
  font-weight: 400;
  font-size: 1rem;
  color: var(--color-crimson);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-stone);
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-crimson);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-charcoal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-charcoal);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   Hero
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-white);
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(123, 29, 32, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(123, 29, 32, 0.02) 0%, transparent 50%);
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(123, 29, 32, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 45% 55%;
  align-items: center;
  gap: 48px;
  padding: 60px 0 80px;
}

.hero-text {
  text-align: left;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-crimson);
  margin-bottom: 12px;
  display: inline-block;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease both;
  animation-delay: 0.2s;
}

.hero-eyebrow::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(123, 29, 32, 0.12), transparent);
  animation: spellSweep 8s ease-in-out 3s infinite;
  pointer-events: none;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--color-charcoal);
  line-height: 1.12;
  margin-bottom: 12px;
  animation: fadeInUp 0.8s ease both;
  animation-delay: 0.4s;
}

.hero-description {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--color-stone);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
  animation: fadeInUp 0.8s ease both;
  animation-delay: 0.6s;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease both;
  animation-delay: 0.8s;
}

.hero-illustration {
  animation: fadeInUp 1s ease both;
  animation-delay: 0.6s;
}

.hero-illustration svg {
  width: 100%;
  height: auto;
  animation: float 8s ease-in-out infinite;
  cursor: default;
}

/* Hero SVG interactive animations */
.hero-illustration .notification-1 {
  animation: fadeInUp 0.6s ease 1.5s both, float 6s ease-in-out 2.1s infinite;
}

.hero-illustration .notification-2 {
  animation: fadeInUp 0.6s ease 2s both, float 7s ease-in-out 2.6s infinite;
}

.hero-illustration .progress-fill {
  animation: progressGrow 1.5s ease 1s both;
  transform-origin: left;
}

.hero-illustration .tooltip-badge {
  animation: fadeInUp 0.4s ease 1.2s both, tooltipPulse 3s ease-in-out 2s infinite;
}

.hero-illustration .chart-bar {
  animation: barGrow 0.8s ease both;
  transform-origin: bottom;
}

.hero-illustration .chart-bar:nth-child(1) { animation-delay: 0.3s; }
.hero-illustration .chart-bar:nth-child(2) { animation-delay: 0.4s; }
.hero-illustration .chart-bar:nth-child(3) { animation-delay: 0.5s; }
.hero-illustration .chart-bar:nth-child(4) { animation-delay: 0.6s; }
.hero-illustration .chart-bar:nth-child(5) { animation-delay: 0.7s; }
.hero-illustration .chart-bar:nth-child(6) { animation-delay: 0.8s; }

.hero-illustration .trend-line {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawLine 1.5s ease 0.8s forwards;
}

.hero-illustration .shield-icon {
  animation: fadeInUp 0.8s ease 1.8s both;
}

.hero-illustration .pie-card {
  animation: fadeInUp 0.6s ease 1.2s both;
}

.hero-illustration .checklist-item {
  opacity: 0;
  animation: fadeInUp 0.4s ease both;
}

.hero-illustration .checklist-item:nth-child(1) { animation-delay: 1s; }
.hero-illustration .checklist-item:nth-child(2) { animation-delay: 1.2s; }
.hero-illustration .checklist-item:nth-child(3) { animation-delay: 1.4s; }
.hero-illustration .checklist-item:nth-child(4) { animation-delay: 1.6s; }

@keyframes progressGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes tooltipPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes barGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

/* ===========================
   Stats Strip
   =========================== */
.stats-strip {
  background: var(--color-pearl);
  padding: 44px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.stats-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 24px,
    rgba(123, 29, 32, 0.015) 24px,
    rgba(123, 29, 32, 0.015) 25px
  );
  pointer-events: none;
}

.stats-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  position: relative;
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-crimson-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.stat-icon-wrap i {
  font-size: 1.25rem;
  color: var(--color-crimson);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-crimson);
  display: inline;
  line-height: 1;
}

.stat-plus {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-crimson);
}

.stat-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-stone);
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 56px;
  background: var(--color-border);
}

/* ===========================
   About
   =========================== */
.about {
  padding: 88px 0;
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}

/* About — Two-column: narrative + quote */
.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 48px;
}

.about-narrative p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-stone);
  line-height: 1.75;
  margin-bottom: 18px;
}

.about-narrative p:last-child {
  margin-bottom: 0;
}

.about-lead {
  font-size: 1.15rem !important;
  font-weight: 500 !important;
  color: var(--color-charcoal) !important;
  line-height: 1.6 !important;
}

.about-quote {
  border-left: 3px solid var(--color-crimson);
  padding: 32px 28px;
  margin: 0;
  background: var(--color-ivory);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-slate);
  line-height: 1.75;
  position: relative;
  align-self: center;
}

.about-quote::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1;
  color: rgba(123, 29, 32, 0.06);
  font-style: normal;
}

.about-quote cite {
  display: block;
  margin-top: 20px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 600;
  color: var(--color-charcoal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* About — Full-width callout strip */
.about-callout {
  background: var(--color-ivory);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 0;
}

.callout-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.callout-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-crimson-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.callout-icon i {
  font-size: 1.25rem;
  color: var(--color-crimson);
}

.callout-text h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 6px;
}

.callout-text p {
  font-size: 0.85rem;
  color: var(--color-stone);
  line-height: 1.65;
  margin: 0;
}

/* Credential Chips */
.credential-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.credential {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-slate);
  transition: all 0.3s ease;
}

.credential i {
  font-size: 0.95rem;
  color: var(--color-crimson);
}

.credential:hover {
  background: var(--color-crimson-light);
  border-color: rgba(123, 29, 32, 0.15);
}

/* About Values */
.about-values-header {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
  margin-bottom: 32px;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.value-card {
  position: relative;
  background: var(--color-ivory);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 28px 24px 32px;
  transition: all 0.35s ease;
  overflow: hidden;
}

.value-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 6px 6px 0px rgba(123, 29, 32, 0.15);
  border-color: rgba(123, 29, 32, 0.3);
}

/* Top accent bar on hover */
.value-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-crimson);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.value-card:hover .value-accent {
  transform: scaleX(1);
}

.value-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-border);
  position: absolute;
  top: 16px;
  right: 18px;
  line-height: 1;
  transition: color 0.35s ease;
}

.value-card:hover .value-number {
  color: rgba(123, 29, 32, 0.1);
}

.value-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--color-crimson-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: all 0.35s ease;
}

.value-card:hover .value-icon-wrap {
  background: rgba(123, 29, 32, 0.12);
}

.value-icon-wrap i {
  font-size: 1.35rem;
  color: var(--color-crimson);
  transition: transform 0.3s ease;
}

.value-card:hover .value-icon-wrap i {
  transform: scale(1.1);
}

.value-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-charcoal);
}

.value-card p {
  font-size: 0.875rem;
  color: var(--color-stone);
  line-height: 1.65;
}

/* ===========================
   Services
   =========================== */
.services {
  padding: 88px 0;
  background: var(--color-ivory);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(123, 29, 32, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.services .container {
  position: relative;
  z-index: 1;
}

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

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-crimson);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(123, 29, 32, 0.03), transparent);
  z-index: 0;
  pointer-events: none;
}

.service-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 6px 6px 0px rgba(123, 29, 32, 0.15);
  border-color: rgba(123, 29, 32, 0.3);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover::after {
  animation: cardShimmer 0.7s ease forwards;
}

.service-icon {
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.service-icon i {
  font-size: 2rem;
  color: var(--color-crimson);
  transition: transform 0.3s ease;
}

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

.service-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-charcoal);
  position: relative;
  z-index: 1;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-stone);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ===========================
   Industries
   =========================== */
.industries {
  padding: 72px 0;
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}

.industries::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(123, 29, 32, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 29, 32, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.industries .container {
  position: relative;
  z-index: 1;
}

.industries-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}

.industries-top .section-header {
  margin-bottom: 0;
}

.industries-description {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-stone);
  max-width: 400px;
  line-height: 1.7;
  text-align: right;
}

.industries-chips {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: default;
}

.chip:hover {
  border-color: var(--color-crimson);
  background: var(--color-crimson-light);
  transform: translate(-3px, -3px);
  box-shadow: 4px 4px 0px rgba(123, 29, 32, 0.15);
}

.chip-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-crimson-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.chip:hover .chip-icon {
  background: rgba(123, 29, 32, 0.12);
}

.chip-icon i {
  font-size: 1.25rem;
  color: var(--color-crimson);
}

.chip-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-charcoal);
  white-space: nowrap;
}

/* ===========================
   Clients
   =========================== */
.clients {
  padding: 88px 0;
  background: var(--color-pearl);
  position: relative;
  overflow: hidden;
}

.clients::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(123, 29, 32, 0.02) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.clients .container {
  position: relative;
  z-index: 1;
}

.trust-strip {
  text-align: center;
  margin-bottom: 48px;
}

.trust-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-silver);
  margin-bottom: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-logos-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
}

.trust-logo {
  transition: transform 0.4s ease;
}

.trust-logo:hover {
  transform: scale(1.05);
}

.trust-logo img {
  width: auto;
  display: block;
}

/* Client Logo Cloud */
.client-cloud {
  margin-bottom: 48px;
}

.client-cloud-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-silver);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 24px;
}

.logo-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.logo-cloud-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: all 0.4s ease;
  opacity: 0.55;
  filter: grayscale(100%);
}

.logo-cloud-item:hover {
  opacity: 1;
  filter: grayscale(0%);
  border-color: rgba(123, 29, 32, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.logo-cloud-item svg {
  height: 24px;
  width: auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}


.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-crimson);
  border-radius: 0;
  padding: 24px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card::before {
  content: 'REF: AUDIT_TSTM';
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(123, 29, 32, 0.4);
  pointer-events: none;
  letter-spacing: 1px;
}

.testimonial-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 6px 6px 0px rgba(123, 29, 32, 0.15);
  border-color: rgba(123, 29, 32, 0.3);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.testimonial-stars i {
  font-size: 0.8rem;
  color: #1C1C1E;
}

.testimonial-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-charcoal);
  line-height: 1.6;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
  border-top: 1px dashed rgba(123, 29, 32, 0.2);
  padding-top: 20px;
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: var(--color-white);
  border: 1px solid var(--color-crimson);
  color: var(--color-crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-charcoal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.testimonial-author span {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-stone);
}


/* ===========================
   Contact
   =========================== */
.contact {
  padding: 88px 0;
  background: var(--color-charcoal);
  position: relative;
  overflow: hidden;
}

.contact-decoration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.contact .container {
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: left;
  max-width: 400px;
}

.contact-item {
  padding: 20px 24px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, border-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(123, 29, 32, 0.4);
}

.contact-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-wrap i {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.contact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.contact-item a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #fff;
}

/* ===========================
   Footer
   =========================== */
.footer {
  background: var(--color-charcoal);
  padding: 40px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.footer-wordmark {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.footer .wordmark-tanukushi {
  font-size: 1.25rem;
  color: #fff;
}

.footer .wordmark-associates {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ===========================
   Section Decorations
   =========================== */
.section-decoration {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.about-decor {
  right: -80px;
  top: 0;
  width: 400px;
  height: 600px;
}

.services-decor {
  left: -40px;
  top: 0;
  width: 200px;
  height: 100%;
}

.industries-decor {
  left: 0;
  bottom: 0;
  width: 100%;
  height: 200px;
}

.clients-decor {
  right: -60px;
  top: 0;
  width: 300px;
  height: 100%;
}

/* ===========================
   Scroll Reveal
   =========================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Responsive - 1024px
   =========================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .hero-headline {
    font-size: 2.75rem;
  }

  .about-columns {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .about-callout {
    flex-direction: column;
    align-items: flex-start;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-values {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .industries-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .industries-description {
    text-align: left;
  }
}

/* ===========================
   Responsive - 768px
   =========================== */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(28, 28, 30, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transition: right 0.35s ease;
    z-index: 999;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu .nav-link {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
  }

  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    color: #fff;
  }

  .section-decoration {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0 60px;
  }

  .hero-text {
    text-align: center;
  }

  .hero-headline {
    font-size: 2.5rem;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-illustration {
    max-width: 400px;
    margin: 0 auto;
  }

  .section-heading {
    font-size: 1.85rem;
  }

  .about-columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .stats-row {
    gap: 32px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-values {
    grid-template-columns: repeat(2, 1fr);
  }

  .industries-chips {
    grid-template-columns: repeat(3, 1fr);
  }

  .logo-cloud {
    gap: 10px;
  }

  .trust-logos-group {
    gap: 36px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: left;
  max-width: 400px;
}

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ===========================
   Responsive - 480px
   =========================== */
@media (max-width: 480px) {
  .hero-headline {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-illustration {
    max-width: 300px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    justify-content: center;
  }

  .stats-row {
    flex-direction: column;
    gap: 24px;
  }

  .stat-divider {
    width: 48px;
    height: 1px;
  }

  .about-values {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .industries-chips {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading {
    font-size: 1.6rem;
  }

  .service-card {
    padding: 28px 20px;
  }

  .about-quote {
    font-size: 0.95rem;
  }

  .logo-cloud-item {
    padding: 14px 18px;
  }

  .logo-cloud-item svg {
    height: 20px;
  }

  .trust-logos-group {
    flex-direction: column;
    gap: 20px;
  }

  .credential-chips {
    gap: 8px;
  }

  .credential {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
}

/* ===========================
   Body scroll lock (mobile nav)
   =========================== */
body.nav-open {
  overflow: hidden;
}

.nav-menu.open::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}
