:root {
  --bg: oklch(0.975 0.006 75);
  --ink: oklch(0.24 0.012 50);
  --ink-strong: oklch(0.17 0.008 50);
  --ink-900: oklch(0.22 0.012 50);
  --ink-800: oklch(0.2 0.01 50);
  --muted: oklch(0.48 0.012 50);
  --muted-light: oklch(0.55 0.012 50);
  --accent: oklch(0.67 0.17 45);
  --accent-hover: oklch(0.72 0.17 45);
  --cream: oklch(0.99 0.004 75);
  --cream-2: oklch(0.98 0.006 75);
  --white: oklch(1 0 0);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  overflow-x: hidden;
  position: relative;
}

::selection { background: var(--accent); color: var(--white); }

a { color: inherit; }

button { font-family: inherit; }

@keyframes dotPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(2.2); opacity: 0.55; } }
@keyframes curtain { to { transform: translateY(-100%); } }
@keyframes heroIn { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }
@keyframes chipIn { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: scale(1); } }
@keyframes knobFlip { 0%, 20% { transform: translateX(0); } 50%, 100% { transform: translateX(0.72em); } }
@keyframes trackFlip { 0%, 20% { background: oklch(0.82 0.01 75); } 50%, 100% { background: var(--accent); } }
@keyframes arrowDraw { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
@keyframes cueBob { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(8px); opacity: 1; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* LOADER */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: curtain 0.9s cubic-bezier(0.76, 0, 0.24, 1) 1.4s forwards;
  pointer-events: none;
}
.loader-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotPulse 0.7s ease-in-out infinite;
}

/* PILL NAV */
.pill-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 100;
  width: min(1200px, 92vw);
  transform: translate(-50%, -130px);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 12px 26px;
  background: oklch(0.99 0.004 75 / 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  box-shadow: 0 12px 40px -12px oklch(0.24 0.012 50 / 0.18), 0 1px 0 oklch(1 0 0 / 0.8) inset;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-badge {
  width: 26px; height: 26px; border-radius: 8px; background: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cream-2); }
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 14px; font-weight: 600; text-decoration: none; opacity: 0.65; transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  font-size: 14px; font-weight: 700; color: var(--cream-2); background: var(--ink-900);
  padding: 12px 22px; border-radius: 12px; text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-cta:hover { background: var(--accent); transform: scale(1.03); }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 60px 5vw 40px; position: relative; z-index: 2;
}
.hero-heading {
  font-size: clamp(44px, 7.4vw, 124px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink-strong);
  margin: 0;
  max-width: 1500px;
  animation: heroIn 1s cubic-bezier(0.22, 1, 0.36, 1) 1.8s both;
}
.hero-line { display: inline-flex; align-items: center; gap: 0.18em; flex-wrap: wrap; justify-content: center; }

.toggle-chip {
  display: inline-flex; align-items: center; vertical-align: middle;
  width: 1.55em; height: 0.72em; border-radius: 0.5em; padding: 0.09em; box-sizing: border-box;
  animation: chipIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 2.3s both,
             trackFlip 3.6s ease-in-out 2.8s infinite alternate;
}
.toggle-knob {
  display: block; width: 0.54em; height: 0.54em; border-radius: 50%;
  background: var(--cream); box-shadow: 0 2px 8px oklch(0.24 0.012 50 / 0.25);
  animation: knobFlip 3.6s ease-in-out 2.8s infinite alternate;
}

.arrow-svg { overflow: visible; margin: 0 -0.02em; color: var(--accent); }
.arrow-path-1 { stroke-dasharray: 470; animation: arrowDraw 1.3s ease-out 2.6s both; }
.arrow-path-2 { stroke-dasharray: 70; animation: arrowDraw 0.4s ease-out 3.9s both; }

.cube-chip {
  position: relative; display: inline-block; width: 1.16em; height: 0.78em; vertical-align: middle;
  animation: chipIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 2.5s both;
}
.cube {
  position: absolute; inset: 0; border-radius: 0.16em; overflow: hidden;
  background: linear-gradient(140deg, var(--ink-900), oklch(0.3 0.03 40));
  box-shadow: 0 6px 22px -8px oklch(0.24 0.012 50 / 0.6);
}
.cube-glow {
  position: absolute; inset: 0;
  background: radial-gradient(130% 110% at 82% 4%, oklch(0.67 0.17 45 / 0.6), transparent 58%);
}
.cube-line { position: absolute; left: 14%; height: 0.09em; border-radius: 2px; }
.cube-line.l1 { bottom: 22%; width: 26%; background: oklch(1 0 0 / 0.55); }
.cube-line.l2 { bottom: 44%; width: 52%; background: oklch(1 0 0 / 0.32); }
.cube-line.l3 { bottom: 66%; width: 38%; background: oklch(1 0 0 / 0.22); }

.hero-sub {
  font-size: clamp(16px, 1.5vw, 20px); font-weight: 500; color: var(--muted);
  max-width: 560px; line-height: 1.6; margin: 40px 0 0;
  animation: heroIn 1s cubic-bezier(0.22, 1, 0.36, 1) 2.1s both;
}

.hero-ctas {
  display: flex; gap: 12px; margin-top: 36px;
  animation: heroIn 1s cubic-bezier(0.22, 1, 0.36, 1) 2.3s both;
}
.btn {
  font-size: 16px; font-weight: 700; padding: 17px 34px; border-radius: 14px; text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease;
}
.btn-dark { color: var(--cream-2); background: var(--ink-900); }
.btn-dark:hover { background: var(--accent); transform: translateY(-3px); }
.btn-light {
  color: inherit; background: var(--white);
  box-shadow: 0 4px 14px -4px oklch(0.24 0.012 50 / 0.14);
}
.btn-light:hover { transform: translateY(-3px); }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: heroIn 1s ease 3s both;
}
.scroll-cue-track {
  width: 26px; height: 42px; border-radius: 14px; border: 2px solid oklch(0.24 0.012 50 / 0.3);
  display: flex; justify-content: center; padding-top: 8px;
}
.scroll-cue-dot {
  width: 4px; height: 9px; border-radius: 3px; background: var(--accent);
  animation: cueBob 1.6s ease-in-out infinite;
}

/* UNFOLD PANEL */
.unfold-wrap {
  padding: 8vh 5vw 10vh; position: relative; z-index: 2;
  perspective: 1400px; perspective-origin: 50% 0%;
}
.unfold-panel {
  max-width: 1200px; margin: 0 auto; border-radius: 32px;
  background: linear-gradient(140deg, var(--ink-800), oklch(0.26 0.03 40) 60%, oklch(0.32 0.07 40));
  color: oklch(0.97 0.006 75);
  padding: clamp(40px, 6vw, 80px);
  transform-origin: 50% 0%;
  will-change: transform;
  box-shadow: 0 60px 120px -40px oklch(0.24 0.012 50 / 0.4);
  position: relative;
  overflow: hidden;
}
.unfold-blob { position: absolute; border-radius: 50%; }
.unfold-blob-1 {
  top: -140px; right: -100px; width: 440px; height: 440px;
  background: radial-gradient(circle, oklch(0.67 0.17 45 / 0.4), transparent 70%);
}
.unfold-blob-2 {
  bottom: -40px; left: -60px; width: 300px; height: 300px;
  background: radial-gradient(circle, oklch(0.6 0.1 250 / 0.2), transparent 70%);
}
.unfold-grid {
  position: relative; display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: oklch(0.75 0.15 50); margin-bottom: 20px;
}
.unfold-copy h2 {
  font-size: clamp(30px, 3.6vw, 52px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.08; margin: 0 0 20px;
}
.unfold-copy p {
  font-size: 16.5px; font-weight: 500; line-height: 1.7; color: oklch(0.78 0.008 60);
  margin: 0; max-width: 440px;
}
.flow-list { display: flex; flex-direction: column; gap: 12px; }
.flow-item {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px;
  background: oklch(1 0 0 / 0.07); border: 1px solid oklch(1 0 0 / 0.1); backdrop-filter: blur(6px);
}
.flow-icon {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.flow-text { text-align: left; }
.flow-title { font-size: 14.5px; font-weight: 700; }
.flow-sub { font-size: 12.5px; font-weight: 500; color: oklch(0.72 0.008 60); }
.flow-pulse {
  margin-left: auto; width: 8px; height: 8px; border-radius: 50%;
  background: oklch(0.75 0.16 145); animation: dotPulse 2s ease-in-out infinite;
}

/* MARQUEE */
.marquee-wrap {
  overflow: hidden; padding: 26px 0;
  border-top: 1px solid oklch(0.24 0.012 50 / 0.08);
  border-bottom: 1px solid oklch(0.24 0.012 50 / 0.08);
  position: relative; z-index: 2;
}
.marquee-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee-item {
  display: flex; align-items: center; gap: 28px; padding-right: 28px;
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--muted); white-space: nowrap;
}
.marquee-star { display: inline-block; width: 14px; height: 14px; color: var(--accent); }
.marquee-star svg { display: block; animation: spinSlow 7s linear infinite; }

/* SECTIONS (Services / Process / Testimonials) */
.section { padding: 70px 5vw; max-width: 1280px; margin: 0 auto; position: relative; z-index: 2; }
.services-section { padding-top: 140px; padding-bottom: 70px; }
.section-head {
  display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 64px;
}
.eyebrow-pill {
  font-size: 13px; font-weight: 700; padding: 8px 18px; border-radius: 100px;
  background: var(--white); box-shadow: 0 2px 10px -2px oklch(0.24 0.012 50 / 0.12); margin-bottom: 24px;
}
.section-head h2 {
  font-size: clamp(34px, 4.6vw, 64px); font-weight: 800; letter-spacing: -0.035em;
  margin: 0 0 18px; line-height: 1.05;
}
.section-head p {
  font-size: 18px; font-weight: 500; color: var(--muted); max-width: 520px; margin: 0; line-height: 1.6;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* SERVICES */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.service-card {
  border-radius: 24px; padding: 36px 32px; min-height: 380px;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover { transform: translateY(-8px) scale(1.01); }
.service-num {
  position: absolute; top: 32px; left: 32px; font-size: 64px; font-weight: 800;
  letter-spacing: -0.04em; opacity: 0.2; line-height: 1;
}
.service-card h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; }
.service-card p { font-size: 15.5px; font-weight: 500; line-height: 1.65; margin: 0; opacity: 0.85; }

/* PROCESS */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.process-card {
  background: var(--white); border-radius: 20px; padding: 32px 28px;
  box-shadow: 0 4px 18px -6px oklch(0.24 0.012 50 / 0.1);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.process-card:hover { transform: translateY(-6px); }
.process-num {
  width: 40px; height: 40px; border-radius: 12px; background: oklch(0.67 0.17 45 / 0.12);
  color: oklch(0.6 0.17 45); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; margin-bottom: 22px;
}
.process-card h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.015em; margin: 0 0 10px; }
.process-card p { font-size: 14.5px; font-weight: 500; line-height: 1.65; color: var(--muted); margin: 0; }

/* TESTIMONIALS */
.testimonials-section { padding-top: 70px; padding-bottom: 140px; overflow: hidden; }
.carousel-controls { display: flex; gap: 12px; margin-top: 8px; }
.carousel-controls button {
  width: 52px; height: 52px; border-radius: 14px; border: none;
  background: var(--ink-900); color: var(--cream-2); font-size: 20px; cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-controls button:hover { background: var(--accent); transform: scale(1.06); }
.carousel-viewport { display: flex; justify-content: center; }
.carousel-track { display: flex; gap: 24px; width: max-content; transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.testimonial-card {
  width: min(780px, 86vw); box-sizing: border-box; background: var(--white); border-radius: 24px;
  padding: 32px; display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center;
  box-shadow: 0 10px 40px -14px oklch(0.24 0.012 50 / 0.14);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.testimonial-avatar {
  width: 220px; height: 240px; border-radius: 16px; display: flex; align-items: center;
  justify-content: center; font-size: 56px; font-weight: 800; color: oklch(1 0 0 / 0.85); letter-spacing: -0.03em;
}
.testimonial-body { text-align: left; }
.testimonial-name { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.testimonial-role { font-size: 15px; font-weight: 600; color: var(--muted-light); margin: 4px 0 20px; }
.testimonial-quote { font-size: 17.5px; font-weight: 500; line-height: 1.7; margin: 0; color: oklch(0.35 0.012 50); }

/* CONTACT */
.contact-section { padding-top: 0; padding-bottom: 120px; }
.contact-card {
  border-radius: 28px; background: var(--ink-800); color: oklch(0.97 0.006 75);
  padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  position: relative; overflow: hidden;
}
.contact-blob {
  position: absolute; top: -120px; right: -80px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, oklch(0.67 0.17 45 / 0.35), transparent 70%);
}
.contact-copy { position: relative; }
.contact-copy h2 {
  font-size: clamp(30px, 3.6vw, 50px); font-weight: 800; letter-spacing: -0.03em;
  margin: 0 0 20px; line-height: 1.08;
}
.contact-copy p {
  font-size: 16px; font-weight: 500; line-height: 1.7; color: oklch(0.75 0.008 60);
  max-width: 420px; margin: 0 0 28px;
}
.contact-email { font-size: 15px; font-weight: 600; color: var(--accent); }
.contact-form-wrap { position: relative; }
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form input, .contact-form textarea {
  background: oklch(1 0 0 / 0.07); border: 1px solid oklch(1 0 0 / 0.14); border-radius: 12px;
  padding: 15px 18px; font-size: 15px; color: oklch(0.97 0.006 75); font-family: inherit;
  font-weight: 500; outline: none;
}
.contact-form textarea { resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: oklch(0.97 0.006 75 / 0.45); }
.contact-form button {
  margin-top: 6px; font-size: 16px; font-weight: 700; color: var(--cream);
  background: var(--accent); padding: 16px 32px; border-radius: 12px; border: none; cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.contact-form button:hover { transform: scale(1.02); background: var(--accent-hover); }
.contact-form button:disabled { opacity: 0.6; cursor: default; transform: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error {
  font-size: 13.5px; font-weight: 600; color: oklch(0.75 0.16 30);
  background: oklch(0.75 0.16 30 / 0.12); border-radius: 8px; padding: 10px 14px;
}

.contact-success {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center; gap: 14px; min-height: 280px;
}
.contact-success-icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.contact-success-title { font-size: 20px; font-weight: 800; letter-spacing: -0.015em; }
.contact-success p { font-size: 15px; font-weight: 500; line-height: 1.6; color: oklch(0.75 0.008 60); margin: 0; }
.contact-success button {
  margin-top: 6px; font-size: 14px; font-weight: 700; color: oklch(0.97 0.006 75);
  background: transparent; padding: 0; border: none; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}

/* FOOTER */
.site-footer { padding: 70px 5vw 40px; max-width: 1280px; margin: 0 auto; position: relative; z-index: 2; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid oklch(0.24 0.012 50 / 0.1);
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo .brand-badge { width: 30px; height: 30px; border-radius: 9px; }
.footer-logo .brand-dot { width: 9px; height: 9px; }
.footer-name { font-weight: 800; font-size: 26px; letter-spacing: -0.03em; }
.footer-brand p { font-size: 14.5px; font-weight: 500; color: var(--muted-light); max-width: 300px; line-height: 1.6; margin: 0; }
.footer-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-heading { font-size: 13px; font-weight: 800; opacity: 0.5; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col a { font-size: 14.5px; font-weight: 600; text-decoration: none; opacity: 0.7; }
.footer-col a:hover { opacity: 1; }
.footer-bottom { padding-top: 28px; font-size: 13px; font-weight: 500; color: var(--muted-light); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .unfold-grid { grid-template-columns: 1fr; }
  .testimonial-card { grid-template-columns: 1fr; text-align: center; }
  .testimonial-body { text-align: center; }
  .testimonial-avatar { width: 100%; height: 160px; margin: 0 auto; }
  .contact-card { grid-template-columns: 1fr; }
}
