/* ══════════════════════════════════════════════════════
   NORMAL FORCE — Main Stylesheet
   ══════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --bg:        #0E1E35;
  --bg-hero:   #0A1A30;
  --bg-1:      #162845;
  --bg-2:      #1E3A5E;
  --cyan:     #00D4AA;
  --amber:    #F59E0B;
  --amber-soft: #FCD34D;
  --cream:    #FAF8F4;
  --cream-2:  #F3F0EB;
  --white:    #FFFFFF;
  --muted:    #A8B8C8;
  --text-dark: #0A1628;
  --text-body: #475569;
  --border:   rgba(255,255,255,0.08);
  --border-lt: #D4EDE8;
  --border-md: #C8D8D4;
  --ba:       rgba(0,212,170,0.2);
  --fd: 'Inter', sans-serif;
  --fb: 'DM Sans', sans-serif;
  --fm: 'JetBrains Mono', monospace;
  --r: 14px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--fb); background: var(--cream); color: var(--text-dark); overflow-x: hidden; line-height: 1.5; }
a, a:link, a:visited, a:hover, a:active { text-decoration: none !important; color: inherit; }

/* ── SKIP LINK (WCAG 2.4.1) ── */
.skip-link {
  position: fixed; top: -100%; left: 50%; transform: translateX(-50%);
  z-index: 200; padding: 0.75rem 1.5rem; min-height: 44px;
  background: var(--cyan); color: var(--bg); font-family: var(--fd);
  font-weight: 600; font-size: 0.9rem; border-radius: 0 0 8px 8px;
  text-decoration: none !important; transition: top .2s;
  display: inline-flex; align-items: center;
}
.skip-link:focus-visible {
  top: 3px;
  outline: 2px solid var(--bg); outline-offset: 2px;
}
.skip-link:focus:not(:focus-visible) {
  top: -100%;
}

/* ── FOCUS VISIBLE (WCAG 2.4.7) ── */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Higher contrast outline on light backgrounds */
.pillar:focus-visible,
.step:focus-visible,
.client-card:focus-visible,
.btn-g:focus-visible,
.svc-cta:focus-visible,
.contact-detail a:focus-visible,
#nav.scrolled .nav-logo:focus-visible,
#nav.scrolled .nav-links span:focus-visible,
#nav.scrolled .nav-cta:focus-visible,
.about-text [data-href]:focus-visible,
.ind-strip :focus-visible,
.contact-wrap .btn-p:focus-visible,
.contact-wrap .btn-g:focus-visible {
  outline-color: #047857;
}
/* Suppress default outline for mouse clicks */
:focus:not(:focus-visible) {
  outline: none;
}

/* ── LAYOUT ── */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 2.5rem; }
section { padding: 6rem 0; }

/* ── TOP GRADIENT BAR ── */
.top-bar {
  height: 6px;
  background: linear-gradient(90deg, #00D4AA 0%, #00C4C0 18%, #00A8E8 38%, #0099FF 52%, #7090E0 68%, #C08830 82%, #F59E0B 100%);
  position: fixed; top: 0; left: 0; right: 0; z-index: 101;
}

/* ── TYPE UTILS ── */
.eyebrow {
  font-family: var(--fm); font-size: 0.8rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: #047857; margin-bottom: 0.65rem;
}
.h2 {
  font-family: var(--fd); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--text-dark); line-height: 1.1; margin-bottom: 0.6rem;
}
.body-text {
  font-family: var(--fb); font-size: 0.95rem; color: var(--text-body);
  line-height: 1.72; max-width: 540px;
}

/* ── BUTTONS ── */
.btn-p, a.btn-p { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.85rem 1.85rem; background: var(--cyan); color: var(--bg); font-family: var(--fd); font-weight: 600; font-size: 0.88rem; border-radius: 8px; transition: opacity .2s, transform .2s, box-shadow .2s; cursor: pointer; border: none; }
.btn-p:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,212,170,0.25); }
/* Ghost button — cream-safe dark outline */
.btn-g, a.btn-g { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.85rem 1.85rem; background: transparent; color: var(--text-dark); font-family: var(--fd); font-weight: 500; font-size: 0.88rem; border: 1.5px solid #5A8A7E; border-radius: 8px; transition: border-color .2s, background .2s; cursor: pointer; }
.btn-g:hover { border-color: var(--cyan); background: rgba(0,212,170,0.06); }
/* Hero ghost button — white text on dark hero */
.btn-g-hero { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.85rem 1.85rem; background: transparent; color: var(--white); font-family: var(--fd); font-weight: 500; font-size: 0.88rem; border: 1px solid rgba(255,255,255,0.62); border-radius: 8px; transition: border-color .2s, background .2s; cursor: pointer; }
.btn-g-hero:hover { border-color: var(--ba); background: rgba(0,212,170,0.06); }

/* ── NAV ── */
#nav {
  position: fixed; top: 6px; left: 0; right: 0; z-index: 100;
  padding: 1.15rem 0;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
#nav.scrolled {
  background: rgba(250,248,244,0.96);
  backdrop-filter: blur(14px);
  border-color: var(--border-lt);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; padding: 0.4rem 0; min-height: 44px; }
.nav-logo-text { font-family: var(--fd); font-weight: 700; font-size: 0.98rem; color: var(--white); letter-spacing: 0.13em; }
#nav.scrolled .nav-logo-text { color: var(--text-dark); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links span { font-family: var(--fb); font-size: 0.86rem; color: rgba(255,255,255,0.88); transition: color .2s; position: relative; cursor: pointer; padding: 0.6rem 0.25rem; }
#nav.scrolled .nav-links span { color: var(--text-body); }
.nav-links span:hover { color: var(--white); }
#nav.scrolled .nav-links span:hover { color: var(--text-dark); }
.nav-links span.active { color: var(--white); font-weight: 600; }
#nav.scrolled .nav-links span.active { color: var(--text-dark); font-weight: 600; }
.nav-links span.active::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2.5px; background: var(--cyan); border-radius: 1px; }
.nav-cta { font-family: var(--fd); font-weight: 600; font-size: 0.8rem; padding: 0.7rem 1.3rem; min-height: 44px; background: var(--cyan); color: var(--bg); border-radius: 7px; transition: opacity .2s, box-shadow .2s, background .3s, color .3s; cursor: pointer; display: inline-flex; align-items: center; }
.nav-cta:hover { opacity: 0.85; box-shadow: 0 4px 16px rgba(0,212,170,0.3); }
.nav-cta.active { text-decoration: underline !important; text-underline-offset: 4px; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.7rem; min-width: 44px; min-height: 44px; visibility: hidden; }
#nav.scrolled .hamburger svg rect { fill: var(--text-dark); }
.mob-menu { position: absolute; top: 100%; left: 0; right: 0; background: rgba(250,248,244,0.98); border-top: 1px solid var(--border-lt); max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1); visibility: hidden; }
.mob-menu.open { visibility: visible; overflow-y: auto; }
.mob-menu.open { max-height: calc(100vh - 100%); }
.mob-menu-inner { padding: 1.5rem 2.5rem 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.mob-menu-inner span { font-family: var(--fb); font-size: 1rem; color: var(--text-body); cursor: pointer; padding: 0.7rem 0; min-height: 44px; display: inline-flex; align-items: center; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── SPLASH / HERO ── */
#splash {
  min-height: 68vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 7rem 0 2rem;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(0,212,170,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0,153,255,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(0,212,255,0.08) 0%, transparent 60%),
    var(--bg-hero);
}
#splash::before { display: none; }
#splash::after { display: none; }
.splash-content { text-align: center; width: 100%; margin: 0 auto; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.splash-mark { display: flex; justify-content: center; margin-bottom: 0.4rem; }
.splash-h1 { font-family: var(--fd); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.12; color: var(--white); margin-bottom: 1.5rem; text-align: center; max-width: 960px; letter-spacing: -0.02em; }
.splash-h1 .c { color: var(--cyan); }
.splash-tagline { font-family: var(--fd); font-weight: 500; font-style: italic; font-size: clamp(0.9rem, 1.8vw, 1.05rem); color: var(--amber); margin-bottom: 1.5rem; letter-spacing: 0.15em; }
.splash-desc { font-family: var(--fb); font-size: 0.95rem; color: rgba(210,222,232,1); line-height: 1.75; max-width: 620px; margin: 0 auto 2.75rem; }
.splash-actions { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

/* ── SPLASH ENTRANCE ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes floatMark { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes glowPulse {
  0%,100% { filter: drop-shadow(0 0 20px rgba(0,212,170,0.35)); }
  50%      { filter: drop-shadow(0 0 38px rgba(0,212,170,0.65)); }
}
.splash-mark    { animation: fadeUp 0.7s ease both 0.28s; opacity: 0; }
.splash-mark svg { animation: floatMark 4s ease-in-out infinite 1.2s, glowPulse 3s ease-in-out infinite 1.2s; }
.splash-tagline { animation: fadeUp 0.7s ease both 0.40s; opacity: 0; }
.splash-line-1  { display: block; text-align: center; animation: fadeUp 0.7s ease both 0.52s; opacity: 0; }
.splash-line-2  { display: block; text-align: center; animation: fadeUp 0.7s ease both 0.64s; opacity: 0; }
.splash-desc    { animation: fadeUp 0.7s ease both 0.78s; opacity: 0; }
.splash-actions { animation: fadeUp 0.7s ease both 0.92s; opacity: 0; }

/* ── INDUSTRY EXPERIENCE STRIP ── */
.ind-container { max-width: 100%; padding: 0 2.5rem; }
.ind-strip {
  padding: 1.75rem 0 2rem; border-top: 1px solid var(--border-lt); border-bottom: 1px solid var(--border-lt);
  background: var(--cream-2);
}
.ind-inner { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.ind-label-cell { display: flex; justify-content: center; }
.ind-label {
  font-family: var(--fm); font-size: 0.75rem; color: #047857;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.ind-items { display: flex; align-items: center; flex-wrap: nowrap; justify-content: center; }
.ind-item {
  display: flex; align-items: center; justify-content: center;
  padding: 0 2rem;
  border-right: 1px solid var(--border-md);
  transition: color .2s;
}
.ind-item:last-child { border-right: none; }
.ind-item-name {
  font-family: var(--fd); font-weight: 700; font-size: 1.05rem;
  color: var(--text-dark); letter-spacing: -0.01em; white-space: nowrap;
  transition: color .2s;
}

/* ── ABOUT ── */
#about { padding: 7rem 0; background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.about-text h2 { font-family: var(--fd); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--text-dark); line-height: 1.1; margin-bottom: 1rem; }
.about-text p { font-family: var(--fb); font-size: 0.95rem; color: var(--text-body); line-height: 1.72; margin-bottom: 1rem; }
.about-text p strong { color: var(--text-dark); }
.pillars { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 0.75rem; }
.pillar {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.35rem;
  background: var(--white); border: 1px solid var(--border-lt);
  border-radius: 12px; transition: border-color .2s, background .2s, transform .2s;
  cursor: pointer; box-shadow: 0 3px 12px rgba(0,0,0,0.10);
}
.pillar:hover { border-color: var(--cyan); background: rgba(0,212,170,0.04); transform: translateX(4px); }
.pillar-n { font-family: var(--fm); font-size: 0.7rem; color: #047857; opacity: 1; width: 1.25rem; flex-shrink: 0; }
.pillar-info { flex: 1; }
.pillar-name { font-family: var(--fd); font-weight: 600; font-size: 0.9rem; color: var(--text-dark); text-wrap: balance; }
.pillar-sub { font-family: var(--fb); font-size: 0.74rem; color: var(--text-body); margin-top: 0.2rem; line-height: 1.4; text-wrap: balance; }
.pillar-arr { color: #047857; opacity: 1; font-size: 1.35rem; transition: transform .2s; }
.pillar:hover .pillar-arr { transform: translateX(4px); }

/* ── SERVICES ── */
#services { padding: 4rem 0 6rem; background: var(--cream); }
.svc-header { text-align: center; margin-bottom: 5rem; }
.svc-header .h2 { color: var(--text-dark); font-size: clamp(2.4rem, 4.5vw, 3.5rem); }
.svc-header .body-text { margin: 1rem auto 0; color: var(--text-body); font-size: 1.1rem; max-width: 680px; }
.svc-block { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; padding: 5.5rem 0; border-top: 1px solid var(--border-lt); }
.svc-block.flip { direction: rtl; }
.svc-block.flip > * { direction: ltr; }
.svc-eyebrow { font-family: var(--fm); font-size: 0.7rem; color: #047857; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.65rem; }
.svc-title { font-family: var(--fd); font-weight: 700; font-size: 1.8rem; color: var(--text-dark); line-height: 1.15; margin-bottom: 0.8rem; }
.svc-desc { font-family: var(--fb); font-size: 0.92rem; color: var(--text-body); line-height: 1.72; margin-bottom: 1.5rem; }
.svc-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.75rem; }
.svc-list li { display: flex; align-items: flex-start; gap: 0.8rem; font-family: var(--fb); font-size: 0.88rem; color: var(--text-body); line-height: 1.55; }
.svc-list li::before { content: ''; display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); margin-top: 0.5rem; flex-shrink: 0; }
.svc-list li.amber-dot::before { background: var(--amber); }
.svc-cta { font-family: var(--fd); font-weight: 600; font-size: 0.85rem; color: #047857; display: inline-flex; align-items: center; gap: 0.4rem; transition: gap .2s; cursor: pointer; padding: 0.65rem 0; min-height: 44px; }
.svc-cta:hover { gap: 0.7rem; color: #065F46; text-decoration: underline; text-underline-offset: 4px; }

/* Service images */
.svc-img {
  border-radius: var(--r); overflow: hidden; position: relative; aspect-ratio: 5/4;
}
.svc-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.svc-img img { pointer-events: none; }
.svc-img::after {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--r); border: 1px solid rgba(0,212,170,0.15);
  pointer-events: none;
}

/* ── TEAM ── */
#team { padding: 6rem 0; position: relative; overflow: hidden; background: var(--cream); }
#team::before { display: none; }
#team::after { display: none; }
.team-head { text-align: center; margin-bottom: 4rem; position: relative; z-index: 1; }
.team-head .h2 { font-size: clamp(2.4rem, 4.5vw, 3.5rem); }
.team-head .body-text { margin: 1rem auto 0; font-size: 1.1rem; max-width: 680px; }
.team-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 2.5rem;
  max-width: 860px; margin: 0 auto; position: relative; z-index: 1;
}
.team-card-wrap { perspective: 1200px; cursor: pointer; height: 480px; }
.team-card-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}
.team-card-wrap.flipped .team-card-inner { transform: rotateY(180deg); }
.team-card-front, .team-card-back {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--r);
  background: var(--white);
  border: 1px solid var(--border-lt);
  box-shadow: 0 3px 12px rgba(0,0,0,0.10); overflow: hidden;
}
.team-card-front {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2.5rem 2rem 2rem; text-align: center;
}
.team-card-front::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  opacity: 0; transition: opacity .3s;
}
.team-card-wrap:hover .team-card-front::before,
.team-card-wrap:focus-visible .team-card-front::before { opacity: 1; }
.team-card-back {
  transform: rotateY(180deg) translateZ(1px);
  padding: 2rem 1.8rem 1.6rem; display: flex; flex-direction: column;
}
.team-card-back::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--amber)); opacity: 1;
}
.team-avatar {
  width: 170px; height: 170px; min-width: 170px; min-height: 170px; border-radius: 50%; margin-bottom: 1.5rem;
  background: var(--cream);
  border: 2px solid var(--border-lt);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; position: relative; z-index: 1; }
.team-avatar-initials {
  font-family: var(--fd); font-weight: 700; font-size: 2.2rem;
  color: var(--cyan); opacity: 0.7; position: relative; z-index: 1;
}
/* K-style square avatar colors for initials */
.team-avatar.av-teal { background: var(--cyan); border-color: var(--cyan); }
.team-avatar.av-teal .team-avatar-initials { color: var(--bg-hero); opacity: 1; }
.team-avatar.av-amber { background: var(--amber); border-color: var(--amber); }
.team-avatar.av-amber .team-avatar-initials { color: var(--bg-hero); opacity: 1; }
.team-avatar.av-navy { background: var(--bg); border-color: rgba(0,212,170,0.3); }
.team-avatar.av-navy .team-avatar-initials { color: var(--cyan); opacity: 1; }
.team-avatar.av-cream { background: var(--cream-2); border-color: var(--border-lt); }
.team-avatar.av-cream .team-avatar-initials { color: var(--bg); opacity: 1; }

.team-name { font-family: var(--fd); font-weight: 700; font-size: 1.25rem; color: var(--text-dark); margin-bottom: 0.35rem; }
.team-role { font-family: var(--fm); font-size: 0.7rem; color: #047857; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.2rem; line-height: 1.6; }
.team-summary { font-family: var(--fb); font-size: 0.85rem; color: var(--text-body); line-height: 1.65; max-width: 300px; margin-bottom: 1.5rem; }
.team-flip-hint {
  font-family: var(--fm); font-size: 0.7rem; color: #047857;
  letter-spacing: 0.1em; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.4rem; margin-top: auto; transition: color .3s;
}
.team-card-wrap:hover .team-flip-hint,
.team-card-wrap:focus-visible .team-flip-hint { color: #065F46; }
.team-flip-hint svg { width: 14px; height: 14px; fill: currentColor; }
.team-back-name { font-family: var(--fd); font-weight: 700; font-size: 1rem; color: var(--text-dark); margin-bottom: 0.15rem; }
.team-back-role { font-family: var(--fm); font-size: 0.7rem; color: #047857; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem; line-height: 1.6; }
.team-highlight {
  display: flex; align-items: baseline; gap: 0.5rem;
  padding: 0.6rem 0; margin-bottom: 0.75rem;
  border-top: 1px solid var(--border-lt); border-bottom: 1px solid var(--border-lt);
}
.team-highlight-num {
  font-family: var(--fd); font-weight: 700; font-size: 1.25rem;
  color: #0D9488; flex-shrink: 0;
}
.team-highlight-lbl { font-family: var(--fb); font-size: 0.7rem; color: var(--text-body); line-height: 1.4; }
.team-bio { font-family: var(--fb); font-size: 0.78rem; color: var(--text-body); line-height: 1.65; margin-bottom: 0.75rem; }
.team-blurb {
  font-family: var(--fb); font-size: 0.78rem; color: rgba(10,22,40,0.75);
  line-height: 1.65; font-style: italic;
  padding: 0.75rem 1rem; margin-bottom: 0.75rem;
  border-left: 2px solid rgba(0,212,170,0.4);
  background: rgba(0,212,170,0.04); border-radius: 0 6px 6px 0;
}
.team-blurb-attr { font-family: var(--fm); font-size: 0.7rem; color: #047857; font-style: normal; margin-top: 0.4rem; display: block; letter-spacing: 0.05em; }
.team-back-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.team-li { font-family: var(--fd); font-weight: 600; font-size: 0.78rem; color: #047857; display: inline-flex; align-items: center; gap: 0.35rem; transition: color .2s; padding: 0.65rem 0.5rem; min-height: 44px; }
.team-li:hover { color: var(--text-dark); }
.team-li svg { width: 14px; height: 14px; fill: currentColor; }
.team-flip-back {
  font-family: var(--fm); font-size: 0.7rem; color: #047857;
  letter-spacing: 0.1em; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.3rem; cursor: pointer; transition: color .3s;
  padding: 0.65rem 0.5rem; min-height: 44px;
}
.team-flip-back:hover { color: #065F46; }
.team-flip-back svg { width: 12px; height: 12px; fill: currentColor; transform: scaleX(-1); }

/* ── HOW WE WORK ── */
#how { padding: 6rem 0; background: var(--cream); }
.how-head { text-align: center; margin-bottom: 4rem; }
.how-head .h2 { color: var(--text-dark); font-size: clamp(2.4rem, 4.5vw, 3.5rem); }
.how-head .body-text { margin: 1rem auto 0; color: var(--text-body); font-size: 1.1rem; max-width: 680px; }
.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; position: relative; }
.steps-grid::before {
  content: ''; position: absolute; top: -1.25rem; left: calc(12.5%); right: calc(12.5%);
  height: 1px; background: linear-gradient(90deg, transparent, rgba(0,212,170,0.3), transparent); z-index: 0;
}
.step { padding: 2.25rem 1.5rem; background: var(--white); border: 1px solid var(--border-lt); border-radius: var(--r); text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.step-num { font-family: var(--fm); font-size: 0.7rem; color: #047857; letter-spacing: 0.2em; margin-bottom: 1.25rem; opacity: 1; }
.step-icon { margin: 0 auto 1.25rem; color: var(--cyan); width: fit-content; }
.step-title { font-family: var(--fd); font-weight: 700; font-size: 1.05rem !important; color: var(--text-dark); margin-bottom: 0.6rem !important; margin-top: 0 !important; line-height: 1.3 !important; }
.step-desc { font-family: var(--fb); font-size: 0.83rem; color: var(--text-body); line-height: 1.68; }

/* ── WHO WE SERVE ── */
#clients { padding: 6rem 0; background: var(--cream); }
.clients-head { text-align: center; margin-bottom: 3.5rem; }
.clients-head .h2 { font-size: clamp(2.4rem, 4.5vw, 3.5rem); }
.clients-head .body-text { margin: 1rem auto 0; font-size: 1.1rem; max-width: 680px; }
.clients-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.client-card {
  padding: 2.25rem 2rem;
  background: var(--white); border: 1px solid var(--border-lt);
  border-radius: var(--r);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.client-icon { margin-bottom: 1.5rem; display: block; }
.client-badge { display: inline-block; margin-bottom: 0.65rem; font-family: var(--fm); font-size: 0.7rem; color: #047857; letter-spacing: 0.18em; text-transform: uppercase; }
.client-title { font-family: var(--fd); font-weight: 700; font-size: 1.12rem !important; color: var(--text-dark); margin-bottom: 0.55rem !important; margin-top: 0 !important; line-height: 1.3 !important; }
.client-desc { font-family: var(--fb); font-size: 0.84rem; color: var(--text-body); line-height: 1.68; }

/* ── CONTACT ── */
#contact { padding: 8rem 0; background: var(--cream); }
.contact-wrap { text-align: center; max-width: 720px; margin: 0 auto; }
.contact-wrap .h2 { font-size: clamp(2.4rem, 4.5vw, 3.5rem); margin-bottom: 1rem; color: var(--text-dark); }
.contact-wrap .body-text { margin: 0 auto 0.75rem; text-align: center; max-width: 600px; color: var(--text-body); font-size: 1.1rem; }
.contact-note { font-family: var(--fd); font-weight: 300; font-style: italic; font-size: 0.9rem; color: #047857; margin-bottom: 2.5rem; opacity: 1; }
.contact-btns { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.contact-details { display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap; padding-top: 2rem; border-top: 1px solid var(--border-lt); }
.contact-detail { font-family: var(--fm); font-size: 0.75rem; color: var(--text-body); letter-spacing: 0.1em; }
.contact-detail a { color: var(--text-body); transition: color .2s; padding: 0.5rem 0.25rem; min-height: 44px; display: inline-flex; align-items: center; }
.contact-detail a:hover { color: #047857; }

/* ── FOOTER ── */
footer { padding: 2.5rem 0; border-top: 1px solid var(--border); background: var(--bg); line-height: 1.2; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.footer-brand { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-logo { display: flex; align-items: center; gap: 0.6rem; }
.footer-logo-text { font-family: var(--fd); font-weight: 700; font-size: 0.88rem; color: rgba(255,255,255,0.78); letter-spacing: 0.13em; }
.footer-tagline { font-family: var(--fd); font-weight: 300; font-style: italic; font-size: 0.8rem; color: rgba(255,255,255,0.78); }
.footer-col-label { font-family: var(--fm); font-size: 0.7rem; color: var(--cyan); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.35rem; }
.footer-col-links { display: flex; flex-direction: column; gap: 0; }
.footer-col-links a, .footer-col-links span { font-family: var(--fb); font-size: 0.82rem; color: rgba(255,255,255,0.75); transition: color .2s; padding: 0.2rem 0; min-height: 44px; display: inline-flex; align-items: center; }
.footer-col-links a:hover, .footer-col-links span:hover { color: var(--white); }
.footer-col-links span { cursor: pointer; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.footer-nav { display: flex; gap: 1.75rem; }
.footer-nav span { font-family: var(--fb); font-size: 0.78rem; color: rgba(255,255,255,0.75); transition: color .2s; cursor: pointer; padding: 0.6rem 0.25rem; min-height: 44px; display: inline-flex; align-items: center; }
.footer-nav span:hover { color: var(--white); }
.footer-copy { font-family: var(--fm); font-size: 0.7rem; color: rgba(255,255,255,0.88); letter-spacing: 0.08em; }

/* ── RESPONSIVE ── */
/* ── EXPAND MODE: replaces flip cards at narrow viewports (high zoom or small screens) ── */
@media (max-width: 620px) {
  .team-card-wrap {
    height: auto !important;
    perspective: none !important;
    cursor: pointer;
  }
  .team-card-inner {
    transform-style: flat !important;
    transition: none !important;
    transform: none !important;
    height: auto !important;
  }
  .team-card-wrap.flipped .team-card-inner {
    transform: none !important;
  }
  .team-card-front {
    position: relative !important;
    backface-visibility: visible !important;
  }
  .team-card-back {
    position: relative !important;
    transform: none !important;
    backface-visibility: visible !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
    border-top: none;
  }
  .team-card-wrap.flipped .team-card-back {
    max-height: 800px;
    opacity: 1;
    padding-top: 1.5rem !important;
    padding-bottom: 1.6rem !important;
    border-top: 1px solid var(--border-lt);
  }
  .team-flip-hint svg {
    transition: transform 0.3s ease;
  }
  .team-card-wrap.flipped .team-flip-hint svg {
    transform: rotate(90deg);
  }
  .team-flip-back {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .svc-block { grid-template-columns: 1fr; gap: 3rem; }
  .svc-block.flip { direction: ltr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-card-wrap { height: 460px; }
  .clients-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .container { padding: 0 1.25rem; }
  section { padding: 3.5rem 0; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; visibility: visible; }
  #splash { padding: 7rem 0 3.5rem; min-height: auto; }
  .splash-h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .splash-mark svg { width: 52px; height: 65px; }
  .splash-mark { margin-bottom: 0.75rem; }
  .splash-desc { font-size: 0.88rem; margin-bottom: 2rem; }
  .splash-actions { flex-direction: column; width: 100%; }
  .splash-actions .btn-p, .splash-actions .btn-g-hero { width: 100%; justify-content: center; text-align: center; }
  .ind-items { flex-wrap: wrap; justify-content: center; }
  .ind-item { padding: 0.4rem 1rem; }
  .ind-item:nth-child(3n) { border-right: none; }
  #about { padding: 4rem 0; }
  .body-text { font-size: 0.88rem; }
  #services { padding: 3rem 0 4rem; }
  .svc-header { margin-bottom: 3rem; }
  .svc-block { padding: 3.5rem 0; gap: 2rem; }
  .svc-title { font-size: 1.45rem; }
  .svc-img { aspect-ratio: 4/3; }
  .team-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .team-card-front { padding: 2rem 1.5rem 1.6rem; }
  .team-avatar { width: 140px; height: 140px; min-width: 140px; min-height: 140px; }
  .steps-grid { grid-template-columns: 1fr; }
  .step { padding: 1.75rem 1.5rem; }
  .client-card { padding: 1.75rem 1.5rem; }
  #contact { padding: 5rem 0; }
  .contact-btns { flex-direction: column; width: 100%; }
  .contact-btns .btn-p, .contact-btns .btn-g { width: 100%; justify-content: center; text-align: center; }
  .contact-details { flex-direction: column; gap: 0.75rem; align-items: center; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }
  .footer-nav { justify-content: center; flex-wrap: wrap; gap: 1rem; }
}
@media (max-width: 380px) {
  .container { padding: 0 1rem; }
  .ind-container { padding: 0 1rem; }
  .ind-item-name { white-space: normal; text-align: center; }
  .ind-item { padding: 0 0.75rem; border-right: none; }
  .splash-h1 { font-size: 1.6rem; }
  .h2 { font-size: 1.5rem; }
  .mob-menu-inner { padding: 1.25rem 1rem 1.5rem; }
}

/* ── VISUALLY HIDDEN (SR only) ── */
.sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important;
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
