/* =============================================================
   ALQUIMIA RECRUITMENT v4 — Inter, pure white, no accent color
   ============================================================= */

/* 1. Tokens */
:root {
  --bg:           #ffffff;
  --bg-soft:      #fafafa;
  --bg-warm:      #f5f5f5;
  --ink:          #14141a;
  --ink-soft:     #2a2a32;
  --ink-mute:     #5e5e6a;
  --ink-quiet:    #8a8a94;
  --accent:       #14141a;
  --line:         rgba(20, 20, 26, 0.08);
  --line-strong:  rgba(20, 20, 26, 0.14);

  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --gutter-x: clamp(1.25rem, 4vw, 3rem);
  --slide-y: clamp(5rem, 10vw, 8rem);
  --max-w: 1240px;
  --max-w-narrow: 960px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 220ms;
  --t-med: 380ms;
}

/* 2. Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: clip;
}
img, svg { 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; }
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  text-wrap: balance;
  line-height: 1.18;
  letter-spacing: -0.022em;
  color: var(--ink);
}
ul, ol { list-style: none; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* 3. Utils */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: #fff;
  z-index: 9999; border-radius: 999px; font-weight: 500; font-size: 0.85rem;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter-x);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 700ms var(--ease-out),
    transform 800ms var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* 4. Typography helpers */
.slide-num {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin-bottom: 1.4rem;
}
.slide-headline {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.024em;
  color: var(--ink);
  max-width: 32ch;
  margin-bottom: 1.2rem;
}
.slide-headline .emph {
  color: var(--ink-mute);
  font-weight: 500;
}
.slide-lead {
  font-size: 1.02rem;
  color: var(--ink-mute);
  max-width: 60ch;
  line-height: 1.6;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* 5. Splash */
.splash {
  position: fixed; inset: 0;
  z-index: 9000;
  background: var(--bg);
  display: grid; place-items: center;
  pointer-events: auto;
  animation: splashSafety 0.01s 4.5s forwards;
}
.splash.is-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms var(--ease-out);
}
.splash-logo {
  width: clamp(260px, 36vw, 420px);
  height: auto;
  animation: splashFadeIn 600ms var(--ease-out) both;
}
@keyframes splashFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes splashSafety {
  to { opacity: 0; pointer-events: none; visibility: hidden; }
}

/* 6. Nav — bigger logo */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 8000;
  padding: 0.7rem 0;
  background: rgba(255, 255, 255, 0);
  transition:
    background var(--t-med) var(--ease-out),
    padding var(--t-med) var(--ease-out),
    border-color var(--t-med) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  padding: 0.45rem 0;
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter-x);
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: space-between;
}
.nav-brand img {
  height: 118px;
  width: auto;
  transition: height var(--t-med) var(--ease-out);
}
.nav.is-scrolled .nav-brand img { height: 88px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav-links a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.3rem 0;
  transition: color var(--t-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform var(--t-fast) var(--ease-out), opacity var(--t-fast) var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* 7. Slide base */
.slide {
  padding-block: var(--slide-y);
  position: relative;
}
.slide + .slide {
  border-top: 1px solid var(--line);
}

/* 8. Cover slide — quote as headline, Florencia info below, smaller photo */
.slide-cover {
  padding-top: clamp(8rem, 17vh, 12rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}
.cover-grid {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter-x);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.cover-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin-bottom: 1.4rem;
}
.cover-headline {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.024em;
  color: var(--ink);
  margin-bottom: 2rem;
  max-width: 22ch;
}
.cover-headline .emph {
  color: var(--ink-mute);
  font-weight: 500;
}
.cover-meta {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  margin-bottom: 1.4rem;
}
.cover-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.cover-role {
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  color: var(--ink-mute);
  letter-spacing: 0.01em;
}
.cover-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
}
.cover-contact li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.cover-contact svg {
  color: var(--ink-quiet);
  flex-shrink: 0;
}
.cover-contact a {
  transition: color var(--t-fast) var(--ease-out);
}
.cover-contact a:hover { color: var(--ink); }
.cover-scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition:
    background var(--t-fast) var(--ease-out),
    color var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out);
}
.cover-scroll:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.cover-figure {
  position: relative;
  max-width: 360px;
  justify-self: center;
  width: 100%;
}
.cover-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 10px;
}

/* 9. About slide — headline as the quote, no gray bg anywhere */
.about-headline {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  max-width: 38ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.about-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.about-point {
  background: var(--bg);
  padding: 1.7rem 1.6rem 1.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.about-point h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 0.55rem;
}
.about-point p {
  font-size: 0.94rem;
  color: var(--ink-mute);
  line-height: 1.6;
}
.about-point strong {
  color: var(--ink);
  font-weight: 600;
}

/* 10. Services slide — vertical column order (01-06 left, 07-12 right) */
.services-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}
.services-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.service-item {
  background: var(--bg);
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.service-item:last-child { border-bottom: none; }
.srv-num {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-quiet);
}
.service-item > span:last-child {
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.4;
}
.services-figure {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  align-self: center;
}
.services-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 11. Track Record table */
.track-table {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
}
.track-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1rem;
  padding: 0.95rem 1.4rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  align-items: baseline;
}
.track-row:last-child { border-bottom: none; }
.track-row span:first-child {
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.track-row span:last-child {
  color: var(--ink-soft);
  font-weight: 400;
}
.track-head {
  background: var(--bg-soft);
}
.track-head span {
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-quiet) !important;
}

/* 12. Clients */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  background: var(--bg);
}
.client {
  display: grid;
  place-items: center;
  padding: 0.5rem;
  min-height: 90px;
  background: var(--bg);
}
.client img {
  max-width: 100%;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* 13. Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.4rem 1.6rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition:
    border-color var(--t-fast) var(--ease-out),
    background var(--t-fast) var(--ease-out);
}
.contact-card:hover {
  border-color: var(--ink);
  background: var(--bg-soft);
}
.contact-label {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}
.contact-value {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.012em;
}

/* 14. Footer — bigger logo */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: clamp(2rem, 4vw, 3rem) 0 1.5rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
}
.footer-logo {
  height: 130px;
  width: auto;
}
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.footer-meta p {
  font-size: 0.82rem;
  color: var(--ink-quiet);
  line-height: 1.5;
}

/* 15. Responsive */
@media (min-width: 540px) {
  .about-points { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 720px) {
  /* Services list: column-flow so 01-06 stack on left, 07-12 on right */
  .services-list {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, auto);
    grid-auto-flow: column;
    column-gap: 2.5rem;
  }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 960px) {
  .nav-toggle { display: none !important; }
  .clients-grid { grid-template-columns: repeat(4, 1fr); }
  .cover-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4.5rem;
    align-items: center;
  }
  .services-wrap {
    grid-template-columns: 1.3fr 0.9fr;
    gap: 4rem;
    align-items: center;
  }
}

@media (max-width: 959px) {
  .nav-toggle { display: flex; }
  .nav-brand img { height: 70px; }
  .nav.is-scrolled .nav-brand img { height: 54px; }
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0;
    margin-top: 90px;
    background: var(--bg);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter-x);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform var(--t-med) var(--ease-out),
      opacity var(--t-med) var(--ease-out);
  }
  .nav.is-menu-open .nav-links {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav.is-scrolled .nav-links { margin-top: 70px; }
  .nav-links a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
  }
  .nav-links a:last-child { border-bottom: none; }
}

@media (max-width: 720px) {
  .footer-logo { height: 100px; }
}

@media (max-width: 540px) {
  .track-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .track-row span:first-child { font-size: 0.78rem; letter-spacing: 0.06em; }
  .clients-grid { gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .splash { animation: none; }
}
