/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --ink: #0e0e10;
  --ink-2: #16171a;
  --ink-3: #1f2024;
  --line: rgba(255, 255, 255, .09);
  --concrete: #ecebe7;
  --concrete-2: #dedcd6;
  --text: #f3f2ee;
  --muted: #a3a29c;
  --muted-dark: #5c5b57;
  --amber: #f2a900;
  --amber-2: #ffc23d;
  --display: "Montserrat", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 14px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --nav-h: 76px;
  --intro: 1.7s;               /* hero waits for the logo intro */
}
.no-splash { --intro: 0s; }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, iframe { 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; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--amber); color: var(--ink); z-index: 9999; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.amber { color: var(--amber); }
.mono { font-family: var(--mono); font-size: .75rem; letter-spacing: .04em; }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  background: var(--amber); transform-origin: 0 50%; transform: scaleX(0);
  z-index: 200;
}

/* =============================================================
   4. Typography helpers
   ============================================================= */
.kicker {
  font-family: var(--mono); font-size: .78rem; text-transform: uppercase;
  letter-spacing: .14em; color: var(--amber); margin-bottom: 1rem;
  display: flex; align-items: center; gap: .75rem;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--amber); }
.section-title { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: 1.25rem; }
.section-sub { color: var(--muted); max-width: 60ch; }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 820px; }
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--display); font-weight: 700; font-size: .92rem; letter-spacing: .01em;
  padding: .8rem 1.3rem; border-radius: 999px;
  transition: transform .35s var(--ease-out), background .3s, color .3s, box-shadow .35s var(--ease-out);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn-amber { background: var(--amber); color: var(--ink); box-shadow: 0 0 0 0 rgba(242, 169, 0, .5); }
.btn-amber:hover { background: var(--amber-2); transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(242, 169, 0, .55); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, .28); color: var(--text); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* Hazard stripes */
.hazard {
  height: 14px; width: 100%;
  background: repeating-linear-gradient(-45deg, var(--amber) 0 18px, var(--ink) 18px 36px);
  background-size: 51px 100%;
  animation: hazard 2.4s linear infinite;
}
@keyframes hazard { to { background-position: 51px 0; } }

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

/* ---- NAV ---- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s, backdrop-filter .4s, height .4s var(--ease-out), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(14, 14, 16, .82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); --nav-h: 66px; height: 66px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-logo { background: #fff; border-radius: 10px; padding: 4px 8px; display: block; flex-shrink: 0; animation: logoFloat 5s ease-in-out infinite; }
.nav-logo img { height: 46px; width: auto; }

/* Logo motion: periodic light sweep, amber glow ring, hover lift + tilt */
.logo-fx { position: relative; overflow: hidden; isolation: isolate; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); box-shadow: 0 0 0 0 rgba(242,169,0,0); }
.logo-fx::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--amber); opacity: 0; animation: logoRing 5s ease-in-out infinite; pointer-events: none; }
.logo-shine {
  position: absolute; top: -20%; bottom: -20%; left: -60%; width: 45%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.95) 45%, rgba(242,169,0,.55) 55%, transparent);
  mix-blend-mode: screen; transform: skewX(-20deg);
  animation: logoShine 5s var(--ease-soft) infinite;
}
.logo-fx:hover { transform: translateY(-3px) rotate(-1.5deg) scale(1.05); box-shadow: 0 10px 30px -8px rgba(242,169,0,.65); animation-play-state: paused; }
.nav-logo:hover { animation: none; }
.logo-fx:hover .logo-shine { animation: logoShine .9s var(--ease-soft); }
.footer-logo .logo-shine, .footer-logo::after { animation-delay: 2.5s; }
@keyframes logoShine { 0%, 62% { left: -60%; } 85%, 100% { left: 130%; } }
@keyframes logoRing { 0%, 60% { opacity: 0; } 72% { opacity: 1; } 100% { opacity: 0; } }
@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }

/* ---- SPLASH (logo intro) ---- */
.splash {
  position: fixed; inset: 0; z-index: 500; background: var(--ink);
  display: grid; place-content: center; justify-items: center; gap: 1.4rem;
  animation: splashOut .7s 1.6s var(--ease-out) forwards;
}
.no-splash .splash, .splash-done .splash { display: none; }
.splash-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(circle, #000 10%, transparent 65%); -webkit-mask-image: radial-gradient(circle, #000 10%, transparent 65%); }
.splash-card {
  position: relative; overflow: hidden; background: #fff; border-radius: 18px; padding: 14px 22px;
  width: min(520px, 80vw);
  box-shadow: 0 30px 80px -20px rgba(242,169,0,.45);
  animation: splashCard 1s var(--ease-out) both;
}
.splash-card img { width: 100%; }
.splash-shine { position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.95) 45%, rgba(242,169,0,.6) 55%, transparent); mix-blend-mode: screen; transform: skewX(-20deg); animation: splashShine .9s .7s var(--ease-soft) forwards; }
.splash-bar { width: min(520px, 80vw); height: 6px; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,.08); }
.splash-bar span { display: block; height: 100%; background: repeating-linear-gradient(-45deg, var(--amber) 0 10px, #c98a00 10px 20px); transform-origin: left; animation: splashBar 1.3s .2s var(--ease-out) both; }
.splash-txt { font-family: var(--mono); font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); animation: fadeUp .8s .5s var(--ease-out) both; }
@keyframes splashCard { from { opacity: 0; transform: scale(.7) rotate(-4deg); clip-path: inset(0 100% 0 0 round 18px); } 60% { clip-path: inset(0 0 0 0 round 18px); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 18px); } }
@keyframes splashShine { to { left: 130%; } }
@keyframes splashBar { from { transform: scaleX(0); } }
@keyframes splashOut { to { opacity: 0; visibility: hidden; transform: translateY(-3%); } }
.nav-links { display: none; }
.nav-cta { display: none; }
.nav-burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; border-radius: 10px; background: rgba(255,255,255,.06); }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); transition: transform .35s var(--ease-out); }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* Mobile menu */
.nav-links.is-open {
  display: flex; flex-direction: column; gap: .25rem;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(14, 14, 16, .97); backdrop-filter: blur(14px);
  padding: 1.25rem var(--gutter) 2rem; border-bottom: 1px solid var(--line);
  animation: menuIn .4s var(--ease-out);
}
.nav-links.is-open a:not(.btn) { font-family: var(--display); font-weight: 700; font-size: 1.4rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.nav-links.is-open .nav-cta-mobile { margin-top: 1rem; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-10px); } }

/* ---- HERO ---- */
.hero {
  position: relative; min-height: 100svh;
  padding-top: calc(var(--nav-h) + 2.5rem);
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(1000px 600px at 85% 20%, rgba(242, 169, 0, .14), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(255, 255, 255, .05), transparent 60%),
    var(--ink);
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}
.hero-inner { position: relative; display: grid; gap: 3rem; align-items: center; padding-bottom: 3.5rem; flex: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); padding: .45rem .9rem; border-radius: 999px;
  background: rgba(255,255,255,.03); margin-bottom: 1.6rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(242,169,0,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(242,169,0,0); } 100% { box-shadow: 0 0 0 0 rgba(242,169,0,0); } }
.hero-title { font-size: clamp(2.5rem, 6.4vw, 5.4rem); font-weight: 900; letter-spacing: -0.035em; line-height: .98; margin-bottom: 1.6rem; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; animation: lineUp 1s var(--intro) var(--ease-out) both; }
.hero-title .line:nth-child(2) > span { animation-delay: calc(var(--intro) + .12s); }
.hero-title .line:nth-child(3) > span { animation-delay: calc(var(--intro) + .24s); }
@keyframes lineUp { from { transform: translateY(105%); } }
.hero-lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: #cfcdc6; max-width: 54ch; margin-bottom: 2.2rem; animation: fadeUp 1s calc(var(--intro) + .4s) var(--ease-out) both; }
.hero-lead strong { color: var(--text); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.4rem; animation: fadeUp 1s calc(var(--intro) + .5s) var(--ease-out) both; }
.hero-badges { display: grid; gap: .7rem; animation: fadeUp 1s calc(var(--intro) + .6s) var(--ease-out) both; }
.hero-badges li {
  position: relative; display: flex; flex-direction: column; gap: .15rem;
  padding: .9rem 1rem .95rem 1.1rem; border-radius: 12px;
  background: rgba(255,255,255,.035); border: 1px solid var(--line); border-left: 3px solid var(--amber);
  transition: border-color .35s, background .35s, transform .45s var(--ease-out);
}
.hero-badges li:hover { background: rgba(242,169,0,.07); border-color: rgba(242,169,0,.45); transform: translateY(-3px); }
.hero-badges .hb-num { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.hero-badges strong { color: var(--text); font-family: var(--display); font-weight: 800; font-size: 1rem; }
.hero-badges .hb-txt { font-size: .8rem; line-height: 1.45; color: var(--muted); }
@media (min-width: 540px) { .hero-badges { grid-template-columns: repeat(3, 1fr); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } }

.hero-visual { position: relative; min-height: 380px; animation: fadeUp 1.2s calc(var(--intro) + .3s) var(--ease-out) both; }
.hero-photo { position: absolute; overflow: hidden; border-radius: var(--radius); box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-main { inset: 0 0 18% 8%; border: 1px solid var(--line); }
.hero-photo-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, transparent 55%, rgba(14,14,16,.75)); }
.hero-photo-main figcaption { text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.hero-photo-main figcaption { position: absolute; left: 1.1rem; top: 1rem; z-index: 1; font-size: .85rem; font-weight: 500; display: flex; align-items: center; gap: .6rem; }
.hero-photo-main figcaption span { white-space: nowrap; flex-shrink: 0; font-family: var(--mono); background: var(--amber); color: var(--ink); padding: .15rem .5rem; border-radius: 6px; font-size: .75rem; }
.hero-photo-small { width: 38%; aspect-ratio: 3 / 4; left: 0; bottom: 0; border: 4px solid var(--ink); }
.hero-stamp {
  position: absolute; right: -6px; bottom: 4%;
  width: 132px; height: 132px; border-radius: 50%;
  background: var(--amber); color: var(--ink);
  display: grid; place-content: center; text-align: center;
  box-shadow: 0 20px 50px -10px rgba(242,169,0,.5);
  animation: stampIn 1s calc(var(--intro) + .9s) var(--ease-out) both;
}
.hero-stamp::before { content: ""; position: absolute; inset: 7px; border: 1.5px dashed rgba(14,14,16,.45); border-radius: 50%; animation: spin 18s linear infinite; }
.hero-stamp-num { font-family: var(--display); font-weight: 900; font-size: 2.4rem; line-height: 1; }
.hero-stamp-txt { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; line-height: 1.25; }
@keyframes stampIn { from { opacity: 0; transform: scale(.4) rotate(-40deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- TICKER ---- */
.ticker { background: var(--amber); color: var(--ink); overflow: hidden; padding: 1rem 0; border-block: 1px solid #000; }
.ticker-track { display: flex; width: max-content; gap: 2rem; align-items: center; animation: ticker 38s linear infinite; }
.ticker span { font-family: var(--display); font-weight: 900; font-size: clamp(1.1rem, 2.4vw, 1.6rem); text-transform: uppercase; letter-spacing: -0.01em; }
.ticker i { font-style: normal; font-size: .9rem; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---- STATS ---- */
.stats { background: var(--ink-2); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 2.2rem 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: .4rem; }
.stat:nth-child(2n) { border-right: 0; }
.stat-num { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -0.03em; color: var(--text); }
.stat-num small { font-size: .45em; color: var(--amber); margin-left: .15em; font-weight: 800; }
.stat-label { color: var(--muted); font-size: .9rem; }

/* ---- ABOUT ---- */
.about-grid { display: grid; gap: 3rem; align-items: center; }
.about-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-height: 640px; }
.about-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.about-media:hover img { transform: scale(1.05); }
.about-media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 40%, rgba(14,14,16,.9)); z-index: 1; }
.about-media-tag { position: absolute; left: 1.4rem; bottom: 1.4rem; z-index: 2; display: flex; flex-direction: column; gap: .25rem; }
.about-media-tag .mono { color: var(--amber); }
.about-media-tag strong { font-family: var(--display); font-size: 1.3rem; }
.about-copy > p { color: #cfcdc6; margin-bottom: 2rem; max-width: 60ch; }
.about-copy > p strong { color: var(--text); }
.mv-cards { display: grid; gap: 1rem; }
.mv-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; transition: border-color .35s, transform .45s var(--ease-out); }
.mv-card:hover { border-color: rgba(242,169,0,.5); transform: translateY(-4px); }
.mv-icon { display: inline-grid; place-content: center; width: 44px; height: 44px; border-radius: 10px; background: rgba(242,169,0,.12); margin-bottom: 1rem; }
.mv-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linecap: round; }
.mv-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.mv-card p { color: var(--muted); font-size: .95rem; }

/* ---- SERVICES ---- */
.services { background: var(--concrete); color: var(--ink); }
.services .section-title { color: var(--ink); }
.services .amber { color: #c98a00; }
.services .kicker { color: #a87300; }
.services .kicker::before { background: #a87300; }
.svc-grid { display: grid; gap: 1.25rem; }
.svc-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 20px 50px -30px rgba(0,0,0,.35);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  transform-style: preserve-3d; will-change: transform;
}
.svc-card:hover { box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 40px 70px -30px rgba(0,0,0,.45); }
.svc-img { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); transition: filter .6s, transform 1s var(--ease-out); }
.svc-card:hover .svc-img img { filter: none; transform: scale(1.06); }
.svc-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.svc-card:hover .svc-img::after { transform: scaleX(1); }
.svc-body { padding: 1.6rem 1.6rem 1.8rem; position: relative; }
.svc-num { position: absolute; top: -1.6rem; right: 1.4rem; font-family: var(--display); font-weight: 900; font-size: 3.4rem; color: var(--amber); line-height: 1; text-shadow: 0 2px 0 #fff; }
.svc-body h3 { font-size: 1.55rem; font-weight: 800; margin-bottom: .6rem; }
.svc-body p { color: var(--muted-dark); font-size: .96rem; margin-bottom: 1.1rem; }
.svc-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.svc-list li { font-size: .78rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; background: var(--concrete); color: var(--ink); }

/* ---- WORKS ---- */
.filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.filter {
  font-family: var(--display); font-weight: 700; font-size: .85rem;
  padding: .55rem 1.05rem; border-radius: 999px; border: 1.5px solid var(--line); color: var(--muted);
  transition: all .3s var(--ease-out);
}
.filter:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.filter.is-active { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.works-grid { display: grid; gap: 1.25rem; }
.work {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease-out), border-color .4s, opacity .4s;
}
.work:hover { transform: translateY(-6px); border-color: rgba(242,169,0,.45); }
.work.is-hidden { display: none; }
.work-img { aspect-ratio: 16 / 10; overflow: hidden; }
.work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), filter .5s; filter: saturate(.85); }
.work:hover .work-img img { transform: scale(1.07); filter: saturate(1.1); }
.work-info { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.work-tag { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--amber); }
.work h3 { font-size: 1.25rem; font-weight: 800; }
.work p { color: var(--muted); font-size: .93rem; }
.work-extra { margin-top: .2rem; padding: .8rem .9rem; border-radius: 10px; background: rgba(242,169,0,.07); border-left: 3px solid var(--amber); }
.work-extra-title { display: block; font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--amber); margin-bottom: .4rem; }
.work-extra ul { display: grid; gap: .35rem; }
.work-extra li { position: relative; padding-left: 1rem; font-size: .88rem; line-height: 1.45; color: var(--text); }
.work-extra li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; background: var(--amber); transform: rotate(45deg); }
.work-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin-top: auto; padding-top: .9rem; border-top: 1px dashed var(--line); }
.work-meta dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.work-meta dd { font-family: var(--display); font-weight: 700; font-size: .95rem; }
.work-type { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.work-type-inner { padding: 1.8rem; display: flex; flex-direction: column; gap: .6rem; height: 100%; position: relative; overflow: hidden; }
.work-type .work-img + .work-type-inner { height: auto; flex: 1; }
.work-type-inner::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; background: repeating-linear-gradient(-45deg, rgba(14,14,16,.12) 0 10px, transparent 10px 20px); border-radius: 50%; }
.work-type .work-tag { color: var(--ink); opacity: .75; }
.work-type p { color: rgba(14,14,16,.75); }
.work-type .work-meta { border-color: rgba(14,14,16,.25); }
.work-type .work-meta dt { color: rgba(14,14,16,.6); }
.work-big { font-family: var(--display); font-weight: 900; font-size: clamp(3rem, 7vw, 4.6rem); line-height: .95; letter-spacing: -0.04em; margin: .4rem 0 .2rem; }
.work-big small { font-size: .32em; letter-spacing: 0; margin-left: .3em; font-weight: 800; }
.work-type-light { background: var(--concrete); border-color: var(--concrete); }
.work-type-light .work-big { color: var(--ink); }
.work-type-light .work-big small { color: #a87300; }

/* ---- GALLERY ---- */
.gallery { background: var(--ink-2); border-block: 1px solid var(--line); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; grid-auto-flow: dense; gap: .75rem; }
.g-item { position: relative; overflow: hidden; border-radius: 10px; display: block; cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), filter .5s; filter: saturate(.92); }
.g-item:hover img { transform: scale(1.08); filter: saturate(1.1) contrast(1.03); }
.g-item span {
  position: absolute; left: .7rem; bottom: .7rem; right: .7rem;
  font-size: .78rem; font-weight: 600; padding: .35rem .6rem; border-radius: 6px;
  background: rgba(14,14,16,.78); backdrop-filter: blur(6px);
  transform: translateY(8px); opacity: 0; transition: all .45s var(--ease-out);
  width: fit-content;
}
.g-item:hover span, .g-item:focus-visible span { transform: none; opacity: 1; }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }

/* ---- TIMELINE ---- */
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 34px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--amber), rgba(242,169,0,.1)); }
.tl-item { display: grid; grid-template-columns: 70px 1fr; gap: 1.25rem; padding: 1.1rem 0; position: relative; }
.tl-year {
  font-family: var(--display); font-weight: 900; font-size: .9rem; color: var(--ink);
  background: var(--amber); width: 70px; height: 34px; border-radius: 999px;
  display: grid; place-content: center; position: relative; z-index: 1;
}
.tl-item h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: .3rem; }
.tl-item p { color: var(--muted); font-size: .95rem; max-width: 60ch; }
.tl-now .tl-year { background: var(--text); box-shadow: 0 0 0 6px rgba(242,169,0,.25); }

/* ---- MACHINERY ---- */
.machinery { background: var(--concrete); color: var(--ink); overflow: hidden; }
.machinery .amber { color: #c98a00; }
.machinery .kicker { color: #a87300; }
.machinery .kicker::before { background: #a87300; }
.machinery p { color: var(--muted-dark); max-width: 48ch; }
.machinery-grid { display: grid; gap: 2.5rem; align-items: center; }
.mach-list { display: grid; gap: .75rem; }
.mach {
  display: flex; align-items: center; gap: 1.1rem; background: #fff; padding: 1rem 1.2rem; border-radius: var(--radius);
  border-left: 5px solid var(--amber); box-shadow: 0 14px 30px -24px rgba(0,0,0,.45);
  transition: transform .45s var(--ease-out);
}
.mach:hover { transform: translateX(8px); }
.mach-ic { width: 56px; height: 56px; border-radius: 12px; background: var(--ink); display: grid; place-content: center; flex-shrink: 0; }
.mach-ic svg { width: 36px; height: 36px; fill: none; stroke: var(--amber); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mach strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.mach span { font-size: .85rem; color: var(--muted-dark); }

/* ---- CLIENTS ---- */
.clients { padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.clients-inner { display: flex; flex-direction: column; gap: 1rem; align-items: center; text-align: center; }
.clients .kicker { margin: 0; }
.clients-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2.2rem; }
.clients-list li { font-family: var(--display); font-weight: 800; font-size: clamp(1rem, 2.2vw, 1.35rem); color: #8d8c86; letter-spacing: -0.01em; transition: color .3s; }
.clients-list li:hover { color: var(--text); }

/* ---- TEAM ---- */
.team-lead { display: grid; gap: 1rem; margin-bottom: 1rem; }
.person { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; transition: border-color .35s, transform .45s var(--ease-out); }
.person:hover { border-color: rgba(242,169,0,.45); transform: translateY(-3px); }
.person h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: .2rem; }
.person p { font-size: .85rem; color: var(--muted); }
.person-lead { display: flex; align-items: center; gap: 1.1rem; padding: 1.5rem; background: linear-gradient(135deg, var(--ink-3), var(--ink-2)); }
.person-lead h3 { font-size: 1.25rem; }
.person-lead p { color: var(--amber); font-weight: 500; }
.avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--amber); color: var(--ink); display: grid; place-content: center; font-family: var(--display); font-weight: 900; font-size: 1.2rem; flex-shrink: 0; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }

/* ---- CTA BAND ---- */
.cta-band {
  position: relative; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(14,14,16,.94), rgba(14,14,16,.7)),
    url("assets/img/excavadora-camion.jpg") center / cover no-repeat;
}
.cta-inner { padding: clamp(4rem, 9vw, 6.5rem) var(--gutter); display: flex; flex-direction: column; gap: 2rem; align-items: flex-start; }
.cta-band h2 { font-size: clamp(2rem, 5.2vw, 3.8rem); font-weight: 900; }

/* ---- CONTACT ---- */
.contact-grid { display: grid; gap: 3rem; }
.contact-list { display: grid; gap: 1.1rem; margin-bottom: 1.8rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.c-ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(242,169,0,.12); display: grid; place-content: center; flex-shrink: 0; }
.c-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--amber); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.contact-list strong { display: block; font-family: var(--display); font-size: .95rem; margin-bottom: .1rem; }
.contact-list span, .contact-list a { color: var(--muted); font-size: .95rem; word-break: break-word; }
.contact-list a:hover { color: var(--amber); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--ink-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }
.contact-form {
  background: var(--concrete); color: var(--ink); border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.5rem, 4vw, 2.4rem); display: grid; gap: 1rem; align-self: start;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.7);
  position: relative;
}
.contact-form::before { content: ""; position: absolute; top: 0; left: 2rem; right: 2rem; height: 5px; background: var(--amber); border-radius: 0 0 6px 6px; }
.contact-form h3 { font-size: 1.6rem; font-weight: 800; }
.form-sub { color: var(--muted-dark); font-size: .95rem; margin-top: -.5rem; }
.contact-form label { display: grid; gap: .35rem; font-size: .82rem; font-weight: 600; color: #333; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--concrete-2); border-radius: 10px; padding: .75rem .9rem;
  transition: border-color .3s, box-shadow .3s; width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(242,169,0,.2); }
.contact-form textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; gap: 1rem; }
.form-note { font-size: .8rem; color: var(--muted-dark); text-align: center; }

/* ---- FOOTER ---- */
.footer { background: #08080a; border-top: 1px solid var(--line); padding-top: 3.5rem; }
.footer-inner { display: grid; gap: 2.2rem; padding-bottom: 2.5rem; }
.footer-logo { display: inline-block; background: #fff; border-radius: 12px; padding: 8px 12px; margin-bottom: 1rem; }
.footer-logo img { width: 190px; }
.footer-brand p { color: var(--muted); font-size: .9rem; max-width: 36ch; }
.footer-col { display: flex; flex-direction: column; gap: .5rem; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--amber); margin-bottom: .4rem; font-family: var(--mono); font-weight: 500; }
.footer-col a, .footer-col span { color: var(--muted); font-size: .92rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; padding-block: 1.4rem; border-top: 1px solid var(--line); font-size: .8rem; color: #77766f; }
.footer-bottom a:hover { color: var(--amber); }

/* ---- WhatsApp float ---- */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366;
  display: grid; place-content: center; box-shadow: 0 14px 30px -8px rgba(37,211,102,.6);
  transition: transform .35s var(--ease-out);
}
.wa-float:hover { transform: scale(1.1) rotate(-6deg); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---- Lightbox ---- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(6,6,8,.94); display: grid; place-items: center; padding: 4rem 1rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 78vh; max-width: min(1100px, 92vw); width: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: lbIn .45s var(--ease-out); }
@keyframes lbIn { from { opacity: 0; transform: scale(.94); } }
.lb-cap { position: absolute; bottom: 1.4rem; left: 0; right: 0; text-align: center; color: var(--muted); font-size: .9rem; }
.lb-close, .lb-prev, .lb-next { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.08); font-size: 1.8rem; line-height: 1; display: grid; place-content: center; transition: background .3s; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--amber); color: var(--ink); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* =============================================================
   7. Effects — scroll reveals (only hidden once JS confirms it runs)
   ============================================================= */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
}
@media (min-width: 720px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat { border-bottom: 0; padding: 2.8rem 1.6rem; }
  .stat:nth-child(2n) { border-right: 1px solid var(--line); }
  .stat:last-child { border-right: 0; }
  .mv-cards { grid-template-columns: 1fr 1fr; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .work-xl { grid-column: span 2; flex-direction: row; }
  .work-xl .work-img { aspect-ratio: auto; flex: 1 1 50%; min-height: 380px; }
  .work-xl .work-info { flex: 1 1 50%; padding: 2.2rem; justify-content: center; }
  .work-xl h3 { font-size: 1.8rem; }
  .team-lead { grid-template-columns: 1fr 1fr; }
  .timeline::before { left: 50%; transform: translateX(-1px); }
  .tl-item { grid-template-columns: 1fr 70px 1fr; gap: 2rem; }
  .tl-item .tl-year { grid-column: 2; grid-row: 1; }
  .tl-item > div { grid-column: 3; grid-row: 1; }
  .tl-item:nth-child(even) > div { grid-column: 1; text-align: right; }
  .tl-item:nth-child(even) > div p { margin-left: auto; }
  .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; gap: 1.8rem; }
  .nav-links a { font-size: .92rem; font-weight: 500; color: #d4d2cb; position: relative; padding: .3rem 0; }
  .nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
  .nav-links a:hover { color: var(--text); }
  .nav-links a:hover::after, .nav-links a.is-current::after { transform: scaleX(1); transform-origin: left; }
  .nav-links .nav-cta-mobile { display: none; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  .hero-inner { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; }
  .hero-visual { min-height: 600px; align-self: stretch; }
  .hero-title { font-size: clamp(3rem, 5.2vw, 5.2rem); }
  .about-grid { grid-template-columns: .9fr 1.1fr; gap: 5rem; }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .works-grid { grid-template-columns: repeat(3, 1fr); }
  .work-xl { grid-column: span 2; grid-row: span 1; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; }
  .machinery-grid { grid-template-columns: 1fr 1.1fr; gap: 5rem; }
  .team-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
@media (min-width: 1280px) {
  .hero-stamp { width: 150px; height: 150px; right: -20px; }
  .hero-stamp-num { font-size: 2.8rem; }
}

/* =============================================================
   9. Reduced motion — only intrusive loops
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation-duration: 90s; }
  .hazard { animation: none; }
  .hero-stamp::before { animation: none; }
}
