/* El Varo — landing page */
:root {
  --ink: #0a1219;
  --navy: #0e1a24;
  --navy-2: #13222f;
  --paper: #fbfaf7;
  --sand: #f3efe7;
  --text: #15212b;
  --muted: #5b6875;
  --muted-dark: #9aa8b5;
  --line: rgba(10, 18, 25, 0.12);
  --line-dark: rgba(232, 237, 242, 0.12);
  --amber: #d99a3c;
  --amber-deep: #a26a1c;
  --radius: 22px;
  --inset: 28px;          /* single source of corner inset for cards and bands */
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (max-width: 640px) { :root { --inset: 18px; --radius: 18px; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--paper); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 11vw, 140px) 0; }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber-deep); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.dark .eyebrow { color: var(--amber); }
.h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 600; margin-top: 20px; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 560px; }
.dark { background: var(--ink); color: #e8edf2; }
.dark .lead { color: var(--muted-dark); }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 64px); }
.head-row .lead { margin-top: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 15.5px; border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); cursor: pointer; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--amber); color: #1a1206; }
.btn-primary:hover { background: #e7ab52; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }

/* Header */
.header { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 66px; padding: 0 12px 0 24px; border-radius: 999px; background: rgba(10, 18, 25, 0.55); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; transition: background .3s; }
.header.is-scrolled .nav { background: rgba(10, 18, 25, 0.88); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 0.2em; font-size: 15px; }
.brand-mark { width: 40px; height: 40px; flex: none; border-radius: 11px; background: #fff; padding: 2px; object-fit: contain; }
.brand small { display: block; font-size: 11px; letter-spacing: 0.08em; font-weight: 500; color: var(--muted-dark); margin-top: 2px; }
.nav-links { display: flex; gap: 30px; font-size: 14.5px; font-weight: 500; }
.nav-links a { opacity: 0.78; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav .btn { height: 44px; padding: 0 20px; font-size: 14.5px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: none; cursor: pointer; align-items: center; justify-content: center; }
.burger span { display: block; width: 18px; height: 1.5px; background: #fff; position: relative; transition: transform .3s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: #fff; transition: transform .3s; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.header.is-open .burger span { background: transparent; }
.header.is-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.header.is-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { display: none; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: #070d13; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(7,13,19,.94) 0%, rgba(7,13,19,.82) 40%, rgba(7,13,19,.05) 74%), linear-gradient(0deg, rgba(7,13,19,.9) 0%, rgba(7,13,19,0) 40%); }
.hero-inner { position: relative; z-index: 2; padding-top: 150px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; max-width: 820px; margin-top: 26px; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lead { color: rgba(232, 237, 242, 0.78); margin-top: 26px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 38px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(56px, 9vh, 96px); border-top: 1px solid var(--line-dark); }
.fact { padding: 22px var(--inset) 4px 0; }
.fact + .fact { padding-left: var(--inset); border-left: 1px solid var(--line-dark); }
.fact b { display: block; font-weight: 600; font-size: 17px; }
.fact span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-dark); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: end; }
.statement { font-size: clamp(26px, 3.1vw, 40px); line-height: 1.22; letter-spacing: -0.02em; font-weight: 500; margin-top: 24px; }
.statement mark { background: none; color: var(--amber-deep); }
.about-side p + p { margin-top: 18px; }
.about-side p { color: var(--muted); }

/* Services */
.services { background: var(--sand); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--inset); display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(10, 18, 25, 0.35); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.card-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: var(--amber); display: grid; place-items: center; }
.card-icon svg { width: 24px; height: 24px; }
.card-num { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.12em; }
.card h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; margin-top: clamp(40px, 5vw, 72px); }
.card p { color: var(--muted); font-size: 15.5px; margin-top: 12px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 27px; left: 0; right: 0; height: 1px; background: var(--line-dark); }
.steps-progress { position: absolute; top: 27px; left: 0; height: 1px; width: 100%; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) .2s; }
.steps.is-in .steps-progress { transform: scaleX(1); }
.step { position: relative; padding-right: 32px; }
.step-dot { width: 55px; height: 55px; border-radius: 50%; border: 1px solid var(--line-dark); background: var(--ink); display: grid; place-items: center; font-family: var(--mono); font-size: 13px; color: var(--amber); position: relative; z-index: 1; }
.step h3 { font-size: 21px; font-weight: 600; margin-top: 30px; }
.step p { color: var(--muted-dark); font-size: 15.5px; margin-top: 10px; }
.step small { display: inline-block; margin-top: 18px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }

/* Principles */
.principles { background: var(--sand); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.pillar { padding: 32px var(--inset) 0 0; }
.pillar + .pillar { padding-left: var(--inset); border-left: 1px solid var(--line); }
.pillar h3 { font-size: 20px; font-weight: 600; }
.pillar p { color: var(--muted); font-size: 15.5px; margin-top: 10px; }
.pillar .card-num { display: block; margin-bottom: 26px; }

/* Company details */
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px var(--inset); border-bottom: 1px solid var(--line); }
.panel-head h3 { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; color: var(--amber-deep); }
.panel dl { padding: 8px var(--inset) 14px; }
.row { display: grid; grid-template-columns: 170px 1fr auto; gap: 16px; align-items: baseline; padding: 13px 0; }
.row + .row { border-top: 1px dashed var(--line); }
.row dt { color: var(--muted); font-size: 14.5px; }
.row dd { font-weight: 600; font-size: 15.5px; overflow-wrap: anywhere; }
.copy { border: 1px solid var(--line); background: none; border-radius: 999px; font-size: 12px; padding: 4px 12px; cursor: pointer; color: var(--muted); transition: color .2s, border-color .2s; }
.copy:hover { color: var(--text); border-color: var(--text); }
.copy.is-done { color: #2f7a4f; border-color: #2f7a4f; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 100px); }
.contact-list { margin-top: 40px; display: grid; gap: 26px; }
.contact-item span { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 6px; }
.contact-item a { border-bottom: 1px solid rgba(217, 154, 60, 0.5); transition: color .2s; }
.contact-item a:hover { color: var(--amber); }
.form { background: var(--navy); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: var(--inset); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form h3 { grid-column: 1 / -1; font-size: 22px; font-weight: 600; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; color: var(--muted-dark); }
.field input, .field select, .field textarea { width: 100%; background: var(--ink); border: 1px solid var(--line-dark); border-radius: 12px; padding: 13px 16px; color: #fff; transition: border-color .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); }
.form .btn { grid-column: 1 / -1; justify-content: center; margin-top: 6px; }
.form-note { grid-column: 1 / -1; font-size: 13px; color: var(--muted-dark); }

/* Footer */
.footer { background: var(--ink); color: var(--muted-dark); border-top: 1px solid var(--line-dark); padding: 48px 0 40px; font-size: 14.5px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line-dark); }
.footer .brand { color: #fff; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13.5px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .steps-progress { transform: scaleX(1); transition: none; }
}

@media (min-width: 961px) {
  /* push the map right so routes clear the headline; left edge blends into the hero ground */
  .hero-video { left: 8%; width: 100%; object-position: 50% 50%; }
}

/* Responsive */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillar { padding-bottom: 32px; }
}
@media (max-width: 960px) {
  .nav-links, .nav > .btn { display: none; }
  .burger { display: inline-flex; }
  .mobile-menu { display: block; margin-top: 8px; border-radius: var(--radius); background: rgba(10, 18, 25, 0.96); border: 1px solid rgba(255,255,255,.1); padding: 10px var(--inset) var(--inset); color: #fff; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .25s; }
  .header.is-open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }
  .mobile-menu a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 17px; }
  .mobile-menu .btn { margin-top: 20px; width: 100%; justify-content: center; }
  .about-grid, .contact-grid, .details { grid-template-columns: 1fr; }
  /* map sits in the upper part of the hero and fades out above the copy */
  .hero-video { height: 62%; object-position: 58% 50%; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps::before, .steps-progress { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { height: 60px; padding-left: 18px; }
  .hero-inner { padding-top: 130px; }
  .hero-video { height: 58%; opacity: 0.6; }
  .hero::before { background: linear-gradient(0deg, rgba(7,13,19,.95) 0%, rgba(7,13,19,.75) 55%, rgba(7,13,19,.35) 100%); }
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 16px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line-dark); }
  .cards, .pillars, .steps { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding-left: 0; padding-right: 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
  .row { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .row dt { grid-column: 1 / -1; }
  .form { grid-template-columns: 1fr; }
  .btn { height: 50px; }
}
.row dd:last-child { grid-column: span 2; }
.details { grid-template-columns: 0.8fr 1.2fr; }
.logo-panel { display: grid; place-items: center; padding: var(--inset); }
.logo-panel img { width: 100%; max-width: 300px; height: auto; mix-blend-mode: multiply; filter: brightness(1.04) contrast(1.05); }
.row dd a { border-bottom: 1px solid rgba(162, 106, 28, 0.4); }
@media (max-width: 960px) { .details { grid-template-columns: 1fr; } .logo-panel img { max-width: 220px; } }
