:root {
  --ink: #0d0f12;
  --ink-2: #16191e;
  --paper: #f3efe8;
  --paper-2: #e8e2d8;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(13, 15, 18, 0.12);
  --red: #e2261c;
  --flame: #ff7a1a;
  --amber: #ffbe1a;
  --green: #2f9e57;
  --muted: #8b8f96;
  --display: "Archivo", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--flame); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.h2 { font-size: clamp(36px, 5.6vw, 84px); font-variation-settings: "wdth" 88; }
.section-head { max-width: 900px; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head .muted { margin-top: 20px; font-size: 19px; }

/* split-word reveal */
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-words .w > span { display: inline-block; will-change: transform; }

/* Progress bar */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60;
  background: linear-gradient(90deg, var(--red), var(--flame), var(--amber));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* Buttons */
.btn {
  --bg: var(--red);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px;
  background: var(--bg); color: #fff;
  font: 600 15px/1 var(--body);
  position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.4s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--amber); border-radius: inherit;
  transform: translateY(101%); transition: transform 0.5s var(--ease);
}
.btn:hover { color: var(--ink); }
.btn:hover::after { transform: translateY(0); }
.btn-ghost { --bg: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4); }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-xl { padding: 24px 36px; font-size: clamp(18px, 2.4vw, 28px); font-family: var(--display); font-weight: 700; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 18px var(--gutter);
  transition: background 0.4s, padding 0.4s var(--ease), transform 0.5s var(--ease);
}
.nav.scrolled { background: rgba(13, 15, 18, 0.72); backdrop-filter: blur(14px); padding-block: 12px; border-bottom: 1px solid var(--line); }
.nav.hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 10px; font: 600 20px/1 var(--display); letter-spacing: -0.02em; }
.brand img { width: 40px; height: auto; }
.brand b, .footer-mark b { color: var(--flame); font-weight: 800; margin-left: 2px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 15px; font-weight: 500; position: relative; opacity: 0.85; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--flame); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--paper); margin: 6px auto; transition: transform 0.4s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink);
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 var(--gutter);
  clip-path: circle(0% at calc(100% - 38px) 38px); transition: clip-path 0.7s var(--ease);
}
.mobile-menu.open { clip-path: circle(150% at calc(100% - 38px) 38px); }
.mobile-menu a { font: 800 44px/1.15 var(--display); letter-spacing: -0.02em; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media video { width: 100%; height: 115%; object-fit: cover; transform-origin: 50% 40%; background: var(--ink) url("../img/hero-poster.jpg") center / cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,15,18,0.6) 0%, rgba(13,15,18,0.4) 35%, rgba(13,15,18,0.92) 88%, var(--ink) 100%);
}
.hero-glow {
  position: absolute; width: 70vmax; height: 70vmax; left: -20vmax; bottom: -40vmax;
  background: radial-gradient(circle, rgba(226,38,28,0.55), rgba(255,122,26,0.25) 40%, transparent 65%);
  filter: blur(40px); mix-blend-mode: screen; animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(18vmax, -8vmax) scale(1.15); } }
.hero-inner { position: relative; width: 100%; max-width: 1320px; margin: 0 auto; padding: 140px var(--gutter) clamp(56px, 9vh, 110px); }
.hero-title {
  font-size: clamp(54px, 11.5vw, 188px); line-height: 0.9; font-variation-settings: "wdth" 80; letter-spacing: -0.035em;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: inline-block; }
.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--red), var(--flame) 45%, var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-foot { display: flex; flex-wrap: wrap; gap: 28px 64px; align-items: flex-end; justify-content: space-between; }
.lede { max-width: 520px; font-size: clamp(17px, 1.5vw, 20px); color: rgba(243,239,232,0.82); margin: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 40px; width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,0.5); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; background: var(--amber); border-radius: 2px; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* Intro */
.intro { padding: clamp(90px, 14vw, 180px) 0 clamp(70px, 10vw, 140px); }
.big-text { font: 600 clamp(26px, 3.6vw, 52px)/1.15 var(--display); letter-spacing: -0.02em; max-width: 1100px; margin-bottom: clamp(60px, 8vw, 110px); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 32px 24px 0 0; border-right: 1px solid var(--line); margin-right: 24px; }
.stat:last-child { border-right: 0; }
.stat .num { font: 800 clamp(48px, 6vw, 88px)/1 var(--display); letter-spacing: -0.04em; font-variation-settings: "wdth" 75; }
.stat .unit { font: 700 22px/1 var(--display); color: var(--flame); margin-left: 4px; }
.stat p { color: var(--muted); font-size: 15px; margin-top: 14px; }

/* Solutions */
.solutions { padding: clamp(60px, 10vw, 140px) 0; background: var(--paper); color: var(--ink); border-radius: 32px 32px 0 0; }
.solutions .muted { color: #5d6168; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 32px); }
.tile { position: relative; border-radius: 24px; overflow: hidden; background: var(--ink); color: var(--paper); min-height: clamp(420px, 48vw, 620px); display: flex; align-items: flex-end; }
.tile-media { position: absolute; inset: 0; clip-path: inset(0 0 0 0 round 24px); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 30%, rgba(13,15,18,0.9)); }
.tile:hover .tile-media img { transform: scale(1.06); }
.tile-body { position: relative; z-index: 2; padding: clamp(24px, 3vw, 40px); }
.tile h3 { font-size: clamp(28px, 3vw, 44px); margin: 14px 0 14px; font-variation-settings: "wdth" 85; max-width: 12ch; }
.tile p { max-width: 42ch; color: rgba(243,239,232,0.8); margin: 0; }
.tag { font: 600 13px/1 var(--body); padding: 7px 12px; border-radius: 999px; background: var(--amber); color: var(--ink); }

/* About */
.about { padding: clamp(90px, 12vw, 170px) 0 0; background: var(--paper); color: var(--ink); }
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 100px); align-items: center; }
.about-media { position: relative; }
.parallax { overflow: hidden; border-radius: 24px; }
.parallax img { width: 100%; height: 118%; object-fit: cover; }
.about-media .parallax { aspect-ratio: 4 / 5; }
.badge-10 {
  position: absolute; right: -28px; bottom: -28px; width: 150px; height: 150px; border-radius: 50%;
  background: #fff; display: grid; place-items: center; box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.badge-10 img { width: 96px; }
.about-copy p { color: #3c4047; }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line-dark); }
.vm h4 { font-size: 20px; margin-bottom: 10px; color: var(--red); }
.vm p { font-size: 15px; margin: 0; }
.values { margin-top: clamp(80px, 10vw, 140px); padding: 28px 0; background: var(--red); color: #fff; overflow: hidden; transform: rotate(-1.5deg) scale(1.03); }
.values-track { display: flex; gap: 36px; width: max-content; font: 800 clamp(30px, 4.4vw, 64px)/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.values-track i { font-style: normal; color: var(--amber); font-size: 0.6em; align-self: center; }

/* Services */
.services { background: var(--paper); color: var(--ink); padding-top: clamp(80px, 10vw, 140px); }
.services-pin { display: flex; align-items: center; gap: clamp(32px, 5vw, 80px); min-height: 100vh; padding: 60px var(--gutter); overflow: hidden; }
.services-intro { flex: 0 0 min(440px, 38vw); }
.services-intro .h2 { font-size: clamp(36px, 4.4vw, 64px); margin-bottom: 22px; }
.services-intro .muted { color: #5d6168; }
.services-track { display: flex; gap: 24px; min-width: 0; flex: 1; }
.svc {
  flex: 0 0 clamp(300px, 34vw, 460px); min-height: clamp(380px, 52vh, 520px);
  padding: 36px; border-radius: 24px; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.svc::after {
  content: ""; position: absolute; width: 360px; height: 360px; right: -140px; top: -140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,26,0.5), transparent 65%); transition: transform 0.8s var(--ease);
}
.svc:hover::after { transform: scale(1.4); }
.svc-num { font: 600 14px/1 var(--body); color: var(--amber); }
.svc h3 { font-size: clamp(48px, 6vw, 88px); margin-top: auto; margin-bottom: 18px; font-variation-settings: "wdth" 75; }
.svc p { color: rgba(243,239,232,0.75); margin: 0; font-size: 16px; }
.svc:nth-child(2) { background: var(--red); }
.svc:nth-child(2) p { color: rgba(255,255,255,0.88); }
.svc:nth-child(2) .svc-num { color: #fff; }

/* Products */
.products { background: var(--paper); color: var(--ink); padding: clamp(40px, 5vw, 70px) 0 clamp(80px, 10vw, 140px); }
.product-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.product-list li {
  position: relative; display: flex; align-items: baseline; gap: clamp(20px, 4vw, 64px);
  padding: clamp(20px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--line-dark); overflow: hidden; isolation: isolate;
  transition: color 0.5s var(--ease), padding-left 0.5s var(--ease);
}
.product-list li::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s var(--ease);
}
.product-list li:hover { color: var(--paper); padding-left: 24px; }
.product-list li:hover::before { transform: scaleY(1); }
.product-list span { font: 700 15px/1 var(--body); color: var(--red); min-width: 48px; letter-spacing: 0.08em; }
.product-list li:hover span { color: var(--amber); }
.product-list strong { font: 800 clamp(30px, 5vw, 72px)/1 var(--display); letter-spacing: -0.03em; font-variation-settings: "wdth" 80; }

/* Sustainability */
.green { padding: clamp(90px, 12vw, 170px) 0; background: radial-gradient(120% 80% at 100% 0%, rgba(47,158,87,0.22), transparent 55%), var(--ink-2); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { padding: 36px 32px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,0.02); transition: border-color 0.4s, transform 0.6s var(--ease), background 0.4s; }
.pillar:hover { border-color: rgba(47,158,87,0.6); background: rgba(47,158,87,0.06); transform: translateY(-6px); }
.pillar svg { width: 52px; height: 52px; fill: none; stroke: #5fd18a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 40px; }
.pillar h3 { font-size: 26px; margin-bottom: 14px; }
.pillar p { color: var(--muted); margin: 0; font-size: 16px; }

/* Team */
.team { padding: clamp(90px, 12vw, 170px) 0; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px) 24px; }
.person .ph { aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--ink-2); margin-bottom: 18px; }
.person .ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transform: scale(1.04); transition: filter 0.6s, transform 0.9s var(--ease); }
.person:hover .ph img { filter: none; transform: scale(1); }
.ph.mono { display: grid; place-items: center; background: linear-gradient(135deg, var(--red), var(--flame) 60%, var(--amber)); }
.ph.mono span { font: 800 64px/1 var(--display); color: #fff; letter-spacing: -0.04em; }
.person h3 { font-size: 22px; letter-spacing: -0.01em; margin-bottom: 6px; }
.person .role { color: var(--flame); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.person .bio { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0; }

/* Future */
.future { position: relative; min-height: 90vh; display: flex; align-items: flex-end; overflow: hidden; }
.future-media { position: absolute; inset: 0; border-radius: 0; }
.future-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,15,18,0.95) 0%, rgba(13,15,18,0.6) 55%, rgba(13,15,18,0.2)); }
.future-copy { position: relative; padding-block: clamp(80px, 10vw, 140px); }
.future-copy .h2 { max-width: 14ch; margin-bottom: 26px; }
.future-copy p { max-width: 560px; color: rgba(243,239,232,0.8); }

/* CTA */
.cta { padding: clamp(100px, 14vw, 200px) 0 clamp(70px, 8vw, 110px); position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(226,38,28,0.35), transparent 60%); filter: blur(30px);
}
.cta .wrap { position: relative; }
.cta-title { font-size: clamp(48px, 9vw, 150px); line-height: 0.92; letter-spacing: -0.035em; font-variation-settings: "wdth" 80; max-width: 12ch; margin-bottom: clamp(36px, 5vw, 60px); }
.contact-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 1fr; gap: 32px; margin-top: clamp(70px, 9vw, 120px); padding-top: 36px; border-top: 1px solid var(--line); }
.contact-grid h4 { font: 600 12px/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.contact-grid p { font-size: 16px; margin: 0; }
.contact-grid a:hover { color: var(--amber); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
.footer p { margin: 0; }
.footer-mark { font: 700 18px/1 var(--display); color: var(--paper); }
.to-top:hover { color: var(--amber); }

/* Responsive */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav > .btn { display: none; }
  .burger { display: block; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { margin-right: 0; padding-right: 16px; padding-bottom: 28px; }
  .stat:nth-child(2) { border-right: 0; padding-left: 16px; }
  .stat:nth-child(4) { padding-left: 16px; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .duo, .about-grid, .pillars, .vm { grid-template-columns: 1fr; }
  .badge-10 { width: 110px; height: 110px; right: 12px; bottom: -24px; }
  .badge-10 img { width: 70px; }
  .services-pin { flex-direction: column; align-items: stretch; min-height: 0; padding: 0 var(--gutter) clamp(60px, 10vw, 100px); }
  .services-intro { flex: none; }
  .services-track { flex-direction: column; }
  .svc { flex: none; min-height: 320px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .team-grid, .contact-grid { grid-template-columns: 1fr; }
  .person .ph { aspect-ratio: 4 / 3; }
  .scroll-cue { display: none; }
  .btn-xl { padding: 20px 24px; font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
