/* ===== INDEX — light theme + interactive lines ===== */

/* --- reveal --- */
.home-page .reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.home-page .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   GLOBAL BACKGROUND — interactive lines + mesh orbs + grain
   ============================================================ */
.home-bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #f7f8fa;
}

/* interactive lines canvas — full viewport */
.interactive-lines-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}
.interactive-lines-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* mesh gradient orbs — subtle, behind lines */
.mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  will-change: transform;
}
.mesh-orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(12,124,123,0.2), transparent 70%);
  top: -15%; left: -10%;
  animation: orb1 16s ease-in-out infinite;
}
.mesh-orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.15), transparent 70%);
  top: 30%; right: -8%;
  animation: orb2 20s ease-in-out infinite;
}
.mesh-orb-3 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(197,151,67,0.12), transparent 70%);
  bottom: 5%; left: 25%;
  animation: orb3 22s ease-in-out infinite;
}

@keyframes orb1 {
  0%,100% { transform: translate(0,0) scale(1); }
  25% { transform: translate(80px,60px) scale(1.08); }
  50% { transform: translate(40px,120px) scale(0.95); }
  75% { transform: translate(-40px,40px) scale(1.05); }
}
@keyframes orb2 {
  0%,100% { transform: translate(0,0) scale(1); }
  25% { transform: translate(-70px,40px) scale(1.1); }
  50% { transform: translate(-30px,-60px) scale(0.9); }
  75% { transform: translate(50px,-20px) scale(1.05); }
}
@keyframes orb3 {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(60px,-80px) scale(1.12); }
  66% { transform: translate(-50px,30px) scale(0.92); }
}

/* grain/noise */
.home-grain {
  position: fixed; inset: 0;
  z-index: 1; pointer-events: none; opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 512px 512px;
}

/* mouse-follow glow */
.mouse-glow {
  position: fixed;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12,124,123,0.07), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: left 0.6s cubic-bezier(0.16,1,0.3,1), top 0.6s cubic-bezier(0.16,1,0.3,1);
}

/* content above bg */
.home-page .site-shell {
  position: relative;
  z-index: 2;
  background: transparent;
}

/* ============================================================
   SECTION-LEVEL interactive lines (vision section)
   ============================================================ */
.section-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.section-lines canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.section-lines.interactive {
  pointer-events: auto;
}

/* ============================================================
   HERO
   ============================================================ */
.home-hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
}
.home-hero .hero-inner {
  max-width: 880px;
  margin: 0 auto;
}

/* eyebrow */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 20px; border-radius: 999px;
  border: 1px solid rgba(12,124,123,0.18);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  color: var(--teal); font-size: 14px; font-weight: 700;
  letter-spacing: 0.06em; margin-bottom: 36px;
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(12,124,123,0.35); }
  50% { opacity: 0.5; box-shadow: 0 0 0 8px rgba(12,124,123,0); }
}

.home-hero h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(48px, 8vw, 92px);
  font-weight: 700; line-height: 1.05;
  margin: 0; color: var(--ink);
}

/* rotating words */
.hero-rotate-wrap {
  display: inline-block; position: relative;
  height: 1.1em; overflow: hidden; vertical-align: bottom;
}
.hero-rotate-word {
  display: block; position: absolute; top: 0; left: 0; width: 100%;
  opacity: 0; transform: translateY(100%);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1);
  background: linear-gradient(135deg, var(--teal), #1aa8a7, #3b82f6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-rotate-word.active {
  position: relative; opacity: 1; transform: translateY(0);
}

.hero-sub {
  margin: 24px auto 0; max-width: 520px;
  font-size: 18px; line-height: 1.75; color: var(--muted);
}

/* CTA */
.hero-cta {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-top: 44px; flex-wrap: wrap;
}
.btn-primary-glow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 15px; color: white;
  background: linear-gradient(135deg, var(--teal), #1aa8a7);
  box-shadow: 0 4px 24px rgba(12,124,123,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer;
  text-decoration: none;
}
.btn-primary-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(12,124,123,0.35);
}
.btn-secondary-glass {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 28px; border-radius: 999px;
  border: 1px solid rgba(23,34,44,0.1);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  color: var(--ink); font-weight: 600; font-size: 15px;
  transition: all 0.3s ease; cursor: pointer; text-decoration: none;
}
.btn-secondary-glass:hover {
  background: rgba(255,255,255,0.85);
  border-color: rgba(23,34,44,0.18);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(17,22,27,0.06);
}

/* trust */
.hero-trust {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; margin-top: 48px; flex-wrap: wrap;
}
.trust-pill {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--muted);
}
.trust-pill .tp-icon {
  width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(12,124,123,0.08); color: var(--teal); font-size: 11px;
}

/* ============================================================
   LOGO MARQUEE
   ============================================================ */
.logo-marquee {
  padding: 48px 0;
  border-top: 1px solid rgba(23,34,44,0.04);
  border-bottom: 1px solid rgba(23,34,44,0.04);
}
.marquee-label {
  text-align: center; font-size: 13px;
  color: var(--muted); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 28px;
}
.marquee-track {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}
.marquee-slide {
  display: flex; gap: 64px; align-items: center;
  width: max-content; animation: mq-scroll 28s linear infinite;
}
@keyframes mq-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item {
  font-size: 18px; font-weight: 800;
  color: rgba(23,34,44,0.08); white-space: nowrap;
  letter-spacing: 0.04em; transition: color 0.3s ease;
}
.marquee-item:hover { color: rgba(23,34,44,0.2); }

/* ============================================================
   VISION — dhero dual-tone + own interactive lines
   ============================================================ */
.vision-section {
  position: relative; padding: 120px 0 140px; overflow: hidden;
  cursor: default;
}
.vision-content {
  position: relative; z-index: 1;
  max-width: 940px; padding-left: 5%;
}
.vision-content h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 700; line-height: 1.3;
  margin: 0; color: rgba(23,34,44,0.18);
}
.vision-content h2 strong {
  color: var(--ink); font-weight: 700;
}
.vision-cta {
  display: flex; gap: 16px; margin-top: 44px; flex-wrap: wrap;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-section { padding: 80px 0 100px; }
.services-section .section-label {
  text-align: center; font-size: 13px; color: var(--teal);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 16px; font-weight: 700;
}
.services-section .section-title {
  text-align: center; font-family: "Fraunces", serif;
  font-size: clamp(30px, 5vw, 50px); line-height: 1.15;
  margin: 0 0 56px; color: var(--ink);
}
.service-cards { display: grid; gap: 24px; }
.service-card {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: center;
  padding: 52px 44px; border-radius: 24px;
  border: 1px solid rgba(23,34,44,0.06);
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 40px rgba(17,22,27,0.03);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), border-color 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden; position: relative;
}
.service-card::before {
  content: ""; position: absolute; inset: 0; border-radius: 24px;
  background: radial-gradient(600px circle at var(--glow-x,50%) var(--glow-y,50%), rgba(12,124,123,0.05), transparent 50%);
  pointer-events: none; opacity: 0; transition: opacity 0.4s ease;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  border-color: rgba(12,124,123,0.12);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(17,22,27,0.07);
}
.service-num {
  font-family: "Fraunces", serif;
  font-size: 72px; font-weight: 700; line-height: 1;
  background: linear-gradient(180deg, rgba(23,34,44,0.06), transparent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 12px;
}
.service-card h3 {
  font-family: "Fraunces", serif;
  font-size: 30px; font-weight: 700; margin: 0; color: var(--ink);
}
.service-card .service-desc {
  margin: 12px 0 0; font-size: 16px; line-height: 1.8; color: var(--muted);
}
.service-card .service-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px; font-size: 15px; font-weight: 700;
  color: var(--teal); transition: gap 0.3s ease;
}
.service-card:hover .service-link { gap: 14px; }

/* service visual */
.service-visual {
  position: relative; aspect-ratio: 4/3; border-radius: 16px;
  overflow: hidden; border: 1px solid rgba(23,34,44,0.05);
  background: rgba(255,255,255,0.4);
}
.service-visual-inner {
  position: absolute; inset: 20px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.sv-fo { background: linear-gradient(135deg, rgba(12,124,123,0.06), rgba(59,130,246,0.04)); }
.sv-mk { background: linear-gradient(135deg, rgba(197,151,67,0.08), rgba(245,158,11,0.04)); }
.sv-ex { background: linear-gradient(135deg, rgba(23,34,44,0.04), rgba(12,124,123,0.03)); }
.sv-icon { font-size: 56px; opacity: 0.25; }
.sv-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 8px; width: 100%; padding: 16px;
}
.sv-grid-item {
  aspect-ratio: 1; border-radius: 8px;
  background: rgba(23,34,44,0.03); border: 1px solid rgba(23,34,44,0.03);
}
.sv-line { width: 60%; height: 3px; border-radius: 2px; background: rgba(23,34,44,0.06); margin: 6px 0; }
.sv-line.short { width: 40%; }

/* ============================================================
   NUMBERS
   ============================================================ */
.numbers-section {
  padding: 60px 0;
  border-top: 1px solid rgba(23,34,44,0.05);
  border-bottom: 1px solid rgba(23,34,44,0.05);
}
.numbers-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.number-cell {
  text-align: center; padding: 40px 24px;
  border-right: 1px solid rgba(23,34,44,0.05);
}
.number-cell:last-child { border-right: 0; }
.number-val {
  font-family: "Fraunces", serif;
  font-size: clamp(40px,5vw,56px); font-weight: 700; line-height: 1;
  background: linear-gradient(135deg, var(--teal), #3b82f6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.number-label { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-section { padding: 80px 0; }
.testi-section .section-label {
  text-align: center; font-size: 13px; color: var(--teal);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 48px; font-weight: 700;
}
.testi-track {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
}
.testi-slide {
  display: flex; gap: 24px; width: max-content;
  animation: testi-scroll 35s linear infinite;
}
.testi-slide:hover { animation-play-state: paused; }
@keyframes testi-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.testi-card {
  flex-shrink: 0; width: 370px; padding: 30px 26px;
  border-radius: 20px; border: 1px solid rgba(23,34,44,0.05);
  background: rgba(255,255,255,0.7); backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(17,22,27,0.03);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.testi-card:hover {
  border-color: rgba(12,124,123,0.12);
  box-shadow: 0 12px 40px rgba(17,22,27,0.06);
}
.testi-card .testi-text { font-size: 15px; line-height: 1.8; color: var(--muted); margin: 0; }
.testi-card .testi-author {
  display: flex; align-items: center; gap: 12px;
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid rgba(23,34,44,0.05);
}
.testi-card .testi-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.testi-card .testi-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.testi-card .testi-role { font-size: 13px; color: var(--muted); }

/* ============================================================
   BOTTOM CTA
   ============================================================ */
.bottom-cta { padding: 40px 0 80px; }
.cta-card {
  text-align: center; padding: 72px 48px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--ink), #234155 58%, #326278 100%);
  color: white; position: relative; overflow: hidden;
  box-shadow: 0 30px 70px rgba(17,22,27,0.14);
}
.cta-card::before {
  content: ""; position: absolute;
  top: -40%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(12,124,123,0.25), transparent 70%);
  pointer-events: none; filter: blur(60px);
}
.cta-card h2 {
  position: relative; font-family: "Fraunces", serif;
  font-size: clamp(30px,5vw,50px); line-height: 1.15; margin: 0;
}
.cta-card p {
  position: relative; margin: 16px auto 0; max-width: 460px;
  font-size: 17px; line-height: 1.7; color: rgba(255,255,255,0.6);
}
.cta-card .cta-row {
  position: relative; display: flex; align-items: center;
  justify-content: center; gap: 16px; margin-top: 36px; flex-wrap: wrap;
}
.btn-white {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 15px; color: var(--ink);
  background: white; box-shadow: 0 8px 28px rgba(17,22,27,0.12);
  transition: transform 0.3s ease; cursor: pointer; text-decoration: none;
}
.btn-white:hover { transform: translateY(-3px); }
.btn-ghost-white {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 28px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent; color: rgba(255,255,255,0.8);
  font-weight: 600; font-size: 15px;
  transition: all 0.3s ease; cursor: pointer; text-decoration: none;
}
.btn-ghost-white:hover {
  border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.06);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .service-card { grid-template-columns: 1fr; padding: 36px 28px; }
  .service-visual { max-width: 400px; margin: 0 auto; }
  .numbers-grid { grid-template-columns: repeat(2,1fr); }
  .number-cell:nth-child(2) { border-right: 0; }
  .number-cell:nth-child(3),
  .number-cell:nth-child(4) { border-top: 1px solid rgba(23,34,44,0.05); }
  .vision-content { padding-left: 0; text-align: center; }
  .vision-cta { justify-content: center; }
}
@media (max-width: 760px) {
  .home-hero { padding: 100px 0 56px; }
  .home-hero h1 { font-size: clamp(36px,11vw,56px); }
  .mesh-orb-1 { width: 350px; height: 350px; }
  .mesh-orb-2 { width: 300px; height: 300px; }
  .mesh-orb-3 { display: none; }
  .mouse-glow { display: none; }
  .vision-section { padding: 80px 0 100px; }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .testi-card { width: 300px; }
  .cta-card { padding: 48px 24px; }
  .service-card { padding: 28px 20px; }
}
