/* ─── Variables ──────────────────────────────── */
:root {
  --ink: #07191f;
  --ink2: #0b252d;
  --paper: #f4f2ec;
  --white: #fff;
  --muted: #aeb9bc;
  --orange: #f47b20;
  --orange-dark: #d96a10;
  --line: rgba(255, 255, 255, .15);
  --max: 1240px;
  --radius: 3px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ─── Reset ──────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── Skip link ──────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  z-index: 200;
  border-radius: var(--radius);
  transition: top .2s;
}
.skip-link:focus {
  top: 16px;
}

/* ─── Focus ──────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* ─── Layout ─────────────────────────────────── */
.container {
  width: min(calc(100% - 48px), var(--max));
  margin: auto;
}

/* ─── Header ─────────────────────────────────── */
.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(3, 15, 20, .8), transparent);
  transition: background .3s, box-shadow .3s;
}

.site-header.scrolled {
  background: rgba(5, 22, 28, .94);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}

.nav-wrap {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font: 800 1.45rem Manrope, sans-serif;
  letter-spacing: .08em;
}

.site-header .brand,
.main-nav a {
  color: #fff;
}

.main-nav {
  display: flex;
  gap: 34px;
  align-items: center;
  font-size: .93rem;
}

.main-nav a {
  opacity: .86;
  transition: opacity .2s;
}

.main-nav a:hover {
  opacity: 1;
}

.nav-cta {
  border: 1px solid rgba(255, 255, 255, .5);
  padding: 10px 17px;
  border-radius: var(--radius);
  transition: background .2s, border-color .2s;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .8);
  opacity: 1;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: #fff;
  margin: 6px 0;
  transition: transform .25s var(--ease), opacity .2s;
}

/* ─── Sections ───────────────────────────────── */
.section-dark {
  background: var(--ink);
  color: #fff;
}

/* ─── Hero ───────────────────────────────────── */
.hero {
  min-height: 94vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: -25%;
  height: 150%;
  object-fit: cover;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 15, 20, .89) 0%, rgba(2, 15, 20, .6) 44%, rgba(2, 15, 20, .12) 75%),
    linear-gradient(0deg, rgba(2, 15, 20, .65), transparent 50%);
}

.hero-content {
  position: relative;
  padding: 190px 0 100px;
  max-width: 1240px;
}

/* ─── Hero: entrada escalonada ───────────────── */
@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: none; }
}

.hero-content > * {
  animation: heroSlideUp 1s var(--ease) both;
}
.hero-content > *:nth-child(1) { animation-delay: 0.2s;  }
.hero-content > *:nth-child(2) { animation-delay: 0.45s; }
.hero-content > *:nth-child(3) { animation-delay: 0.75s; }
.hero-content > *:nth-child(4) { animation-delay: 1.05s; }

/* ─── Hero: scroll indicator ─────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  animation: heroSlideUp 1s var(--ease) both;
  animation-delay: 1.5s;
  transition: opacity 0.5s var(--ease);
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}

.scroll-line {
  width: 1px;
  height: 56px;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .12);
}

.scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--orange), rgba(244, 123, 32, .05));
  animation: scrollDown 2.4s ease-in-out infinite;
  animation-delay: 2.8s;
}

@keyframes scrollDown {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(300%); }
}

/* ─── Typography ─────────────────────────────── */
.eyebrow {
  font-weight: 700;
  letter-spacing: .17em;
  font-size: .74rem;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.orange {
  color: var(--orange);
}

h1, h2, h3 {
  font-family: Manrope, sans-serif;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(3.2rem, 6.4vw, 6.7rem);
  max-width: 980px;
  letter-spacing: -.055em;
}

h2 {
  font-size: clamp(2.3rem, 4.2vw, 4.7rem);
  letter-spacing: -.045em;
}

.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  max-width: 650px;
  color: #d4dcde;
  margin: 28px 0 34px;
}

/* ─── Buttons ────────────────────────────────── */
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 20px;
  font-weight: 600;
  font-size: .92rem;
  border-radius: var(--radius);
  transition: background .22s var(--ease), color .22s, border-color .22s, transform .15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover {
  background: var(--orange-dark);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .5);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .85);
}

/* ─── Purpose ────────────────────────────────── */
.purpose {
  padding: 130px 0;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 85px;
  align-items: center;
}

.purpose-copy h2 {
  margin-bottom: 34px;
}

.purpose-copy p {
  color: #4e5b60;
  max-width: 650px;
}

.purpose-strong {
  font-weight: 650;
  color: var(--ink) !important;
}

.purpose-copy blockquote {
  border-left: 3px solid var(--orange);
  margin: 35px 0 0;
  padding: 4px 0 4px 22px;
  font-family: Manrope, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.purpose-media img {
  height: 680px;
  object-fit: cover;
  border-radius: 2px;
}

/* ─── Capabilities ───────────────────────────── */
.capabilities {
  padding: 125px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 55px;
}

.section-heading h2 {
  margin-bottom: 20px;
}

.section-heading > p:last-child {
  color: #b9c3c6;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cap-card {
  height: 440px;
  position: relative;
  overflow: hidden;
  background: #10272e;
  border-radius: 2px;
  cursor: default;
}

.cap-card img {
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.cap-card:hover img {
  transform: scale(1.04);
}

.cap-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 16, 21, .95), rgba(3, 16, 21, .08) 70%);
}

.cap-copy {
  position: absolute;
  left: 26px;
  right: 24px;
  bottom: 25px;
}

.cap-copy span {
  color: var(--orange);
  font-weight: 700;
  font-size: .8rem;
}

.cap-copy h3 {
  font-size: 1.45rem;
  margin: 8px 0;
}

.cap-copy p {
  margin: 0;
  color: #c7d0d2;
  font-size: .9rem;
  line-height: 1.5;
}

/* ─── Industries ─────────────────────────────── */
.industries {
  padding: 125px 0;
}

.dark-text {
  color: var(--ink);
}

.industry-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 240px 240px 200px;
  gap: 18px;
}

.industry {
  position: relative;
  overflow: hidden;
  background: #ccc;
  border-radius: 2px;
}

.industry.large {
  grid-row: span 2;
}

.industry.wide {
  grid-column: 1 / -1;
}

.industry img {
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.industry:hover img {
  transform: scale(1.035);
}

.industry::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 16, 21, .75), transparent 55%);
}

.industry h3 {
  position: absolute;
  z-index: 2;
  left: 26px;
  bottom: 24px;
  color: white;
  font-size: 1.55rem;
}

.industry-grid-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.industry-grid-row .industry {
  height: 200px;
}

/* ─── Why ────────────────────────────────────── */
.why {
  padding: 115px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.why-list > div {
  display: grid;
  grid-template-columns: 48px 1fr;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.why-list span {
  color: var(--orange);
  font-weight: 700;
}

.why-list p {
  margin: 0;
  color: #e4eaeb;
  font-size: 1.1rem;
}

/* ─── Footer ─────────────────────────────────── */
.footer {
  background: #041217;
  color: #fff;
  padding: 80px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
}

.footer h4 {
  font-size: .72rem;
  letter-spacing: .14em;
  color: #84979d;
  margin: 0 0 17px;
  text-transform: uppercase;
}

.footer a,
.footer p {
  display: block;
  color: #b8c5c8;
  margin: 8px 0;
  font-size: .9rem;
  transition: color .2s;
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  color: #71858b;
  font-size: .78rem;
}

/* ─── Reveal animation ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── Responsive: tablet ─────────────────────── */
@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: var(--ink);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 24px;
    gap: 20px;
  }

  .main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .split-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .purpose-media img {
    height: 520px;
  }

  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .industry-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .industry,
  .industry.large,
  .industry.wide {
    height: 360px;
    grid-row: auto;
    grid-column: auto;
  }

  .industry-grid-row {
    grid-template-columns: 1fr;
  }

  .industry-grid-row .industry {
    height: 310px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── Responsive: mobile ─────────────────────── */
@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 30px), var(--max));
  }

  .hero {
    min-height: 830px;
  }

  .hero-content {
    padding-bottom: 66px;
  }

  h1 {
    font-size: 3.2rem;
  }

  .purpose,
  .capabilities,
  .industries,
  .why {
    padding: 84px 0;
  }

  .split-grid {
    gap: 44px;
  }

  .purpose-media img {
    height: 420px;
  }

  .cap-grid {
    grid-template-columns: 1fr;
  }

  .cap-card {
    height: 390px;
  }

  .industry,
  .industry.large,
  .industry.wide {
    height: 310px;
  }

  .industry-grid-row {
    grid-template-columns: 1fr;
  }

  .industry-grid-row .industry {
    height: 260px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}
