/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #121514;
  --bg-2:      #171b1a;
  --bg-3:      #1d2221;
  --bg-4:      #262b29;
  --text:      #e6e3de;
  --text-soft: #c7c3ba;
  --text-mute: #838b86;
  --accent:    #789a99;
  --accent-rgb: 120,154,153;
  --accent-2:  #e8af9b;
  --accent-2-rgb: 232,175,155;
  --line:      rgba(230,227,222,.12);
  --line-2:    rgba(230,227,222,.06);

  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --disp:  "Archivo", var(--sans);
  --mono:  "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 76px;
  --container: 1180px;
}

@property --mesh-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.02em; font-family: var(--disp); }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--bg-3); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--text); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.section { position: relative; padding-block: clamp(4rem, 9vw, 8rem); }
.section-warm { --accent: var(--accent-2); --accent-rgb: var(--accent-2-rgb); }
.section-warm::before {
  content: ""; position: absolute; inset: -15% -10% -25% -10%; z-index: 0; pointer-events: none;
  background: radial-gradient(42% 38% at 50% 25%, rgba(var(--accent-2-rgb),.10), transparent 70%);
  filter: blur(90px);
}
.section-warm > .container { position: relative; z-index: 1; }
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--accent); display: inline-block; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. Typography
   ============================================================= */
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 700; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text-soft); max-width: 46ch; }

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: -0.01em;
  transition: transform .35s var(--ease-out), background .35s var(--ease-out), color .35s var(--ease-out), box-shadow .35s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: var(--bg);
  box-shadow: 0 10px 30px -8px rgba(var(--accent-rgb), .55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(var(--accent-rgb), .7); }
.btn-ghost {
  background: transparent; color: var(--text); border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--text-soft); background: rgba(230,227,222,.06); transform: translateY(-2px); }
.btn-small { padding: .7rem 1.2rem; font-size: .85rem; }
.btn[data-magnetic] { will-change: transform; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center;
  background: transparent;
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(18,21,20,.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--disp); font-weight: 800; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--bg);
  font-size: .85rem; font-weight: 900; letter-spacing: -0.02em;
}
.brand-word { font-size: 1.02rem; white-space: nowrap; }
.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-link { position: relative; font-size: .92rem; font-weight: 500; color: var(--text-soft); }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: var(--accent);
  transition: right .35s var(--ease-out);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { right: 0; }
.nav-right { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.nav-right .btn-primary { display: none; }
@media (min-width: 560px) { .nav-right { gap: 1.1rem; } }
@media (min-width: 720px) { .nav-right .btn-primary { display: inline-flex; } }

.lang-switch { display: flex; align-items: center; gap: 2px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-btn {
  padding: .35rem .6rem; border-radius: 999px; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em;
  color: var(--text-mute); transition: background .3s var(--ease-out), color .3s var(--ease-out);
}
.lang-btn.is-active { background: var(--accent); color: var(--bg); }
.lang-btn:hover:not(.is-active) { color: var(--text); }

.hamburger { display: flex; flex-direction: column; gap: 5px; width: 22px; }
.hamburger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 2rem;
  padding: 2rem 1.5rem; transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu .nav-link { font-size: 1.6rem; font-family: var(--disp); font-weight: 700; color: var(--text); }
.mobile-menu-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; }

/* Cards (tilt + halo — signature effect) */
.tilt-card {
  position: relative; border-radius: 20px; background: var(--bg-3);
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .5s var(--ease-out), border-color .5s var(--ease-out);
  transform-style: preserve-3d;
}
.tilt-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; opacity: 0; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx,50%) var(--my,50%), rgba(var(--accent-rgb),.25), transparent 60%);
  transition: opacity .4s var(--ease-out); z-index: 1;
}
.tilt-card:hover { border-color: rgba(var(--accent-rgb),.4); }
.tilt-card:hover::before { opacity: 1; }

/* Stats */
.stats-row { display: flex; flex-wrap: wrap; gap: clamp(1.6rem, 4vw, 3.2rem); margin-top: clamp(2.2rem, 4vw, 3rem); }
.stat-value { font-family: var(--mono); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 500; color: var(--accent); line-height: 1; }
.stat-label { font-size: .82rem; color: var(--text-mute); margin-top: .4rem; max-width: 16ch; }

/* Form */
.form-field { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.25rem; }
.form-field label { font-size: .82rem; color: var(--text-soft); font-weight: 500; }
.form-field input, .form-field select, .form-field textarea {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px;
  padding: .85rem 1rem; color: var(--text); transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--accent); background: var(--bg-4); outline: none;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.form-status { margin-top: 1rem; font-size: .9rem; color: var(--text-soft); display: none; }
.form-status.is-visible { display: block; }
.form-status strong { color: var(--accent); }
.form-status-error strong { color: var(--accent-2); }
.cta-form.is-sending .btn-primary { opacity: .7; pointer-events: none; }
.cta-form.is-sending .btn-primary:hover { transform: none; }

/* =============================================================
   6. Sections
   ============================================================= */

/* ---- Hero ---- */
.hero {
  position: relative; padding-top: calc(var(--nav-h) + clamp(2rem, 6vw, 4rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  min-height: 100svh; display: flex; align-items: center;
  overflow: clip;
}
.hero-mesh {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 18% 20%, rgba(var(--accent-rgb),.22), transparent 60%),
    radial-gradient(ellipse 55% 45% at 85% 75%, rgba(var(--accent-2-rgb),.14), transparent 60%),
    var(--bg);
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1; opacity: .05; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-grid {
  display: grid; gap: clamp(2.5rem, 6vw, 4rem);
  grid-template-columns: 1fr; align-items: center;
}
.hero-copy { max-width: 640px; }
.hero-id { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem; }
.hero-id .kicker { margin-bottom: 0; }
.hero-avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 15%;
  border: 2px solid var(--accent); flex-shrink: 0;
}
.hero-title {
  font-size: clamp(3rem, 8vw, 6.4rem); font-weight: 900; line-height: .96; letter-spacing: -0.03em;
}
.hero-title span { display: block; }
.hero-title .accent-word { color: var(--accent); }
.hero-tagline {
  font-family: var(--disp); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--text); margin-top: 1.1rem;
}
.hero-subtitle { margin-top: 1.1rem; color: var(--text-soft); max-width: 46ch; font-size: clamp(1rem, 1.3vw, 1.1rem); }
.hero-hook { margin-top: .9rem; max-width: 46ch; font-size: clamp(1rem, 1.3vw, 1.1rem); font-weight: 700; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.hero-visual { position: relative; }
.hero-photo-frame {
  position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5;
  border: 1px solid var(--line); background: var(--bg-3);
  transform: rotate(1.4deg);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.55);
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 22%; }
.hero-photo-frame::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,13,12,.88) 100%);
}
.hero-photo-badge {
  position: absolute; left: 1.1rem; bottom: 1.1rem; z-index: 2;
  display: flex; align-items: center; gap: .6rem;
  background: rgba(18,21,20,.72); border: 1px solid var(--line); backdrop-filter: blur(10px);
  padding: .6rem .9rem; border-radius: 999px; font-family: var(--mono); font-size: .72rem; color: var(--text-soft);
}
.hero-photo-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero-photo-glow {
  position: absolute; inset: -12% -14%; z-index: -1; border-radius: 40px;
  background: conic-gradient(from var(--mesh-angle), var(--accent), transparent 30%, var(--accent-2) 60%, transparent 85%, var(--accent));
  filter: blur(60px); opacity: .35;
  animation: rotateMesh 16s linear infinite;
}
@keyframes rotateMesh { to { --mesh-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) { .hero-photo-glow { animation: none; } }

/* ---- Marquee ---- */
.marquee-strip {
  border-block: 1px solid var(--line); background: var(--bg-2);
  overflow: hidden; padding-block: 1.1rem;
}
.marquee-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee-track span {
  font-family: var(--mono); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-mute); white-space: nowrap; padding-inline: 1rem;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation-duration: 60s; } }

/* ---- About ---- */
.about-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); grid-template-columns: 1fr; align-items: start; }
.about-copy { max-width: 680px; }
.about-copy p + p { margin-top: 1.1rem; }
.about-copy .lede { max-width: none; color: var(--text-soft); }
.cred-list li::before {
  content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-top: .5rem; border-radius: 2px; background: var(--accent);
  transform: rotate(45deg);
}

/* ---- Services ---- */
.services-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.service-card { padding: 1.8rem; display: flex; flex-direction: column; gap: 1.2rem; }
.service-photo { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.tilt-card:hover .service-photo img { transform: scale(1.08); }
.service-photo-individual img { object-position: 50% 46%; }
.service-photo-group img { object-position: 50% 58%; }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(var(--accent-rgb),.18), rgba(var(--accent-2-rgb),.1));
  border: 1px solid var(--line); color: var(--accent);
}
.service-body { display: flex; flex-direction: column; gap: .9rem; flex-grow: 1; }
.service-body p { color: var(--text-soft); font-size: .95rem; }
.service-bullets { display: flex; flex-direction: column; gap: .5rem; }
.service-bullets li { font-size: .85rem; color: var(--text-mute); display: flex; align-items: center; gap: .55rem; }
.service-bullets li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.service-cta { margin-top: auto; display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9rem; color: var(--accent); }
.service-cta svg { transition: transform .35s var(--ease-out); }
.service-card:hover .service-cta svg { transform: translateX(4px); }
.service-badge {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center;
  padding: .55rem .9rem; border-radius: 999px; font-weight: 600; font-size: .82rem;
  color: var(--accent-2); border: 1px solid rgba(var(--accent-2-rgb),.35); background: rgba(var(--accent-2-rgb),.08);
}

/* ---- Methodology ---- */
.method-list { display: grid; gap: 0; grid-template-columns: 1fr; }
.method-step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem;
  padding-block: 1.8rem; border-top: 1px solid var(--line);
}
.method-step:last-child { border-bottom: 1px solid var(--line); }
.method-num { font-family: var(--mono); font-size: 1rem; color: var(--accent); padding-top: .2rem; }
.method-body h3 { margin-bottom: .5rem; }
.method-body p { color: var(--text-soft); max-width: 60ch; }

/* ---- Testimonials ---- */
.testi-grid { column-count: 2; column-gap: 1.6rem; margin-top: .5rem; }
@media (max-width: 760px) { .testi-grid { column-count: 1; } }
.testi-box { break-inside: avoid; margin-bottom: 1.6rem; padding: 1.8rem; }
.testi-box:nth-child(2) { margin-top: 2.4rem; }
.testi-box:nth-child(4) { margin-top: 1.2rem; }
@media (max-width: 760px) { .testi-box:nth-child(2), .testi-box:nth-child(4) { margin-top: 0; } }
.testi-quote-grid {
  font-family: var(--sans); font-weight: 400; font-size: 1rem; line-height: 1.75; color: var(--text-soft);
  white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 5; line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.testi-quote-grid::before { content: "\201C"; color: var(--accent); font-size: 1.3em; }
.testi-quote-grid::after { content: "\201D"; color: var(--accent); font-size: 1.3em; }
.testi-box.is-expanded .testi-quote-grid {
  display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible;
}
.testi-readmore {
  margin-top: .7rem; color: var(--accent); font-size: .85rem; font-weight: 600;
  background: none; border: none; padding: 0; cursor: pointer;
}
.testi-readmore:hover { text-decoration: underline; }
.testi-readmore[hidden] { display: none; }
.testi-readmore-less { display: none; }
.testi-box.is-expanded .testi-readmore-more { display: none; }
.testi-box.is-expanded .testi-readmore-less { display: inline; }
.testi-meta { margin-top: 1.2rem; display: flex; align-items: center; gap: .8rem; }
.testi-avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-3); border: 1px solid var(--line); font-family: var(--mono); font-weight: 600; color: var(--accent);
}
.testi-name { font-weight: 600; }
.testi-role { color: var(--text-mute); font-size: .85rem; }

/* ---- Contact ---- */
.contact-grid { display: grid; gap: clamp(2.5rem, 6vw, 3.5rem); grid-template-columns: 1fr; }
.contact-single { max-width: 640px; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--line); padding-block: 3rem; background: var(--bg-2); }
.footer-top { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer-tagline { color: var(--text-mute); font-size: .9rem; margin-top: .5rem; max-width: 32ch; }
.footer-social { display: flex; gap: .7rem; margin-top: 1.2rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--text-soft);
  transition: color .3s var(--ease-out), border-color .3s var(--ease-out), background .3s var(--ease-out), transform .3s var(--ease-out);
}
.footer-social a:hover { color: var(--bg); background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-nav a { color: var(--text-soft); font-size: .9rem; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: .8rem; color: var(--text-mute);
}
.footer-bottom button { color: var(--text-mute); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom button:hover { color: var(--text); }

/* =============================================================
   7. Responsive
   ============================================================= */
@media (min-width: 720px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .hamburger, .mobile-menu { display: none; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .method-step { grid-template-columns: 100px 1fr; }
}

@media (min-width: 1280px) {
  .hero-title { font-size: clamp(4.2rem, 6.4vw, 7.2rem); }
}

/* =============================================================
   8. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-photo-glow { animation: none; opacity: .2; }
  .marquee-track { animation-duration: 90s; }
}
