/* ============================================================
   NOVATEK — styles.css  |  v20260628
   Archetype: Editorial Dark — Charcoal Steel + Green accent
   ============================================================ */

/* ── Custom Properties ── */
:root {
  --bg:         #141618;
  --bg-2:       #191c1f;
  --bg-3:       #1e2226;
  --bg-card:    #1b1e22;
  --text:       #dde4e8;
  --text-soft:  #95a6b0;
  --text-mute:  #556070;
  --accent:     #3d8a5e;
  --accent-2:   #2d6a4f;
  --accent-glow:#4caf7d;
  --steel:      #8fa8b8;
  --steel-soft: #5a7080;
  --line:       rgba(221,228,232,0.09);
  --line-strong:rgba(221,228,232,0.16);

  --nav-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);

  --cx: 50vw;
  --cy: 50vh;
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Typography ── */
.section-kicker {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-glow);
  margin-bottom: 1.2rem;
}

.section-title {
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
  margin-bottom: 1.5rem;
}

.section-title em {
  font-style: italic;
  color: var(--accent-glow);
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 5vw, 4rem);
}

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-split] { opacity: 1; transform: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 3px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: transform 0.25s var(--ease-out), background 0.25s, box-shadow 0.25s, color 0.25s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

@media (hover: hover) {
  .btn-primary:hover {
    background: var(--accent-glow);
    border-color: var(--accent-glow);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(77,175,125,0.3);
  }
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}

@media (hover: hover) {
  .btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent-glow);
    transform: translateY(-2px);
  }
}

.btn-full { width: 100%; justify-content: center; }

/* ── SPLASH ── */
.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), clip-path 0.7s var(--ease-in-out);
  animation: splashSafety 0.01s 4.5s forwards;
}

@keyframes splashSafety {
  to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
}

.splash.is-out {
  opacity: 0;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.splash-logo {
  width: 56px;
  height: 56px;
  color: var(--accent-glow);
  animation: splashLogoPulse 1s var(--ease-out) forwards;
  opacity: 0;
}

@keyframes splashLogoPulse {
  0%  { opacity: 0; transform: scale(0.85); }
  60% { opacity: 1; transform: scale(1.05); }
  100%{ opacity: 1; transform: scale(1); }
}

.splash-name {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--text-soft);
  animation: splashFadeIn 0.8s 0.3s var(--ease-out) forwards;
  opacity: 0;
}

@keyframes splashFadeIn { to { opacity: 1; } }

.splash-bar {
  width: 120px;
  height: 1px;
  background: var(--line);
  margin-top: 0.5rem;
  overflow: hidden;
}

.splash-bar-fill {
  height: 100%;
  background: var(--accent-glow);
  width: 0%;
  animation: splashBar 1.2s 0.5s var(--ease-out) forwards;
}

@keyframes splashBar { to { width: 100%; } }

/* ── CURSOR ── */
.cursor { pointer-events: none; position: fixed; inset: 0; z-index: 999; }

.cursor-dot, .cursor-ring {
  position: absolute;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}

.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent-glow);
  transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid rgba(77,175,125,0.5);
  transform: translate(-50%, -50%);
  transition: opacity 0.25s, width 0.25s var(--ease-out), height 0.25s var(--ease-out);
}

.cursor.is-ready .cursor-dot,
.cursor.is-ready .cursor-ring { opacity: 1; }

.cursor.is-hover .cursor-ring {
  width: 50px; height: 50px;
  border-color: var(--accent-glow);
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(20, 22, 24, 0.92);
  border-color: var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-inline: clamp(1.2rem, 5vw, 4rem);
  max-width: 1280px;
  margin: auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  color: var(--text);
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.85; }

.nav-logo-img {
  height: 42px;
  width: auto;
  display: block;
  border-radius: 6px;
  object-fit: contain;
}

.footer-logo .nav-logo-img {
  height: 52px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-soft);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px; left: 0;
  width: 0%; height: 1px;
  background: var(--accent-glow);
  transition: width 0.3s var(--ease-out);
}

@media (hover: hover) {
  .nav-links a:hover { color: var(--text); }
  .nav-links a:hover::after { width: 100%; }
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.55rem 1.4rem;
  border-radius: 3px;
  font-size: 0.82rem !important;
  transition: background 0.2s, transform 0.2s !important;
}

@media (hover: hover) {
  .nav-cta:hover { background: var(--accent-glow) !important; transform: translateY(-1px); }
  .nav-cta::after { display: none !important; }
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  text-align: center;
}

.mobile-menu a {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 300;
  color: var(--text-soft);
  transition: color 0.2s;
}

@media (hover: hover) { .mobile-menu a:hover { color: var(--accent-glow); } }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Carousel */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}

.hero-slide.is-active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  transition: transform 8s ease-out;
}

.hero-slide.is-active img {
  transform: scale(1);
}

.hero-bg-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(20,22,24,0.80) 0%,
    rgba(20,22,24,0.55) 40%,
    rgba(20,22,24,0.88) 100%
  );
  z-index: 1;
}

/* Carousel indicator dots */
.carousel-dots {
  position: absolute;
  bottom: 2.5rem;
  left: clamp(1.2rem, 5vw, 4rem);
  z-index: 4;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.carousel-dot {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(221,228,232,0.3);
  border-radius: 2px;
  transition: background 0.4s, width 0.4s;
  cursor: pointer;
}

.carousel-dot.is-active {
  background: var(--accent-glow);
  width: 36px;
}

.hero-mesh {
  position: absolute;
  inset: -20%;
  z-index: 2;
  background:
    radial-gradient(ellipse 60% 50% at 15% 60%, rgba(45,106,79,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 80% 30%, rgba(61,138,94,0.12) 0%, transparent 60%);
  filter: blur(60px);
  animation: meshFloat 18s ease-in-out infinite;
  pointer-events: none;
}

@keyframes meshFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(2%, 3%) scale(1.03); }
  66%       { transform: translate(-2%, -2%) scale(0.98); }
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

.hero-inner {
  position: relative;
  z-index: 4;
  padding: calc(var(--nav-h) + 4rem) clamp(1.2rem, 5vw, 4rem) 6rem;
  max-width: 1280px;
  margin: auto;
  width: 100%;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: heroFadeUp 0.8s 1s var(--ease-out) forwards;
}

.hero-dot {
  display: block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-glow);
  animation: heroDotPulse 2.5s 1.5s ease-in-out infinite;
}

@keyframes heroDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-family: "Fraunces", serif;
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.8rem;
  max-width: 16ch;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
}

.hero-line:nth-child(1) { animation: heroFadeUp 0.8s 1.2s var(--ease-out) forwards; }
.hero-line:nth-child(2) { animation: heroFadeUp 0.8s 1.4s var(--ease-out) forwards; }
.hero-line:nth-child(3) { animation: heroFadeUp 0.8s 1.6s var(--ease-out) forwards; }

.hero-title em {
  font-style: italic;
  color: var(--accent-glow);
}

@keyframes heroFadeUp { to { opacity: 1; transform: translateY(0); } }

.hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--text-soft);
  max-width: 50ch;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: heroFadeUp 0.8s 1.8s var(--ease-out) forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroFadeUp 0.8s 2s var(--ease-out) forwards;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  right: clamp(1.2rem, 5vw, 4rem);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: heroFadeUp 0.8s 2.3s var(--ease-out) forwards;
}

.hero-scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  writing-mode: vertical-rl;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: var(--accent);
  animation: scrollLineAnim 2s 2.5s ease-in-out infinite;
}

@keyframes scrollLineAnim {
  0%      { transform: scaleY(0); transform-origin: top; }
  50%     { transform: scaleY(1); transform-origin: top; }
  50.001% { transform: scaleY(1); transform-origin: bottom; }
  100%    { transform: scaleY(0); transform-origin: bottom; }
}

/* ── MARQUEE ── */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 0.85rem;
  background: var(--bg-2);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  text-transform: uppercase;
  flex-shrink: 0;
}

.marquee-track .mq-sep { color: var(--accent); font-size: 0.5rem; }

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── STATS ── */
.stats {
  padding-block: 5rem;
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
}

.stat {
  background: var(--bg-2);
  padding: 2.5rem 2rem;
  text-align: center;
  transition-delay: var(--delay, 0s);
}

.stat:nth-child(1) { --delay: 0s; }
.stat:nth-child(2) { --delay: 0.1s; }
.stat:nth-child(3) { --delay: 0.2s; }
.stat:nth-child(4) { --delay: 0.3s; }

.stat-num {
  display: block;
  font-family: "Fraunces", serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--accent-glow);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ── ABOUT ── */
.about {
  padding-block: clamp(5rem, 10vw, 9rem);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}

.about-left { padding-top: 1rem; }

.about-body {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 52ch;
  margin-bottom: 1.8rem;
  line-height: 1.75;
}

.about-quote {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  margin-block: 2.5rem;
}

.about-quote p {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text);
  line-height: 1.55;
}

.about-img-frame {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-card);
}

.about-img-frame img { transition: transform 0.8s var(--ease-out); }

@media (hover: hover) {
  .about-img-frame:hover img { transform: scale(1.04); }
}

.about-img-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(20,22,24,0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  padding: 0.75rem 1rem;
  text-align: center;
  border-radius: 2px;
}

.badge-num {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 0.2rem;
}

.badge-year {
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--accent-glow);
  line-height: 1;
}

/* ── SERVICES ── */
.services {
  padding-block: clamp(5rem, 10vw, 9rem);
  border-bottom: 1px solid var(--line);
}

.services-header {
  margin-bottom: 5rem;
  max-width: 60ch;
}

.services-intro {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.7;
}

.services-pillars {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: start;
}

.pillar-divider {
  width: 1px;
  background: var(--line);
  align-self: stretch;
  margin-block: 2rem;
}

.pillar-header { margin-bottom: 2.5rem; position: relative; }

.pillar-num {
  font-family: "Fraunces", serif;
  font-size: 5rem;
  font-weight: 300;
  color: var(--bg-3);
  line-height: 1;
  display: block;
  margin-bottom: -1.5rem;
  user-select: none;
}

.pillar-title {
  font-family: "Fraunces", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1.8rem;
  position: relative;
  z-index: 1;
}

.pillar-img {
  width: 100%;
  aspect-ratio: 16/7;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.75);
  transition: filter 0.5s;
}

@media (hover: hover) {
  .pillar:hover .pillar-img { filter: saturate(1) brightness(0.9); }
}

.pillar-services { display: flex; flex-direction: column; gap: 0; }

.svc-card {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s;
}

.svc-card:first-child { border-top: 1px solid var(--line); }

@media (hover: hover) {
  .svc-card:hover { background: rgba(61,138,94,0.05); padding-inline: 0.75rem; margin-inline: -0.75rem; border-radius: 2px; }
}

.svc-icon { font-size: 1.4rem; line-height: 1; flex-shrink: 0; margin-top: 0.1rem; filter: grayscale(0.3); }

.svc-card h4 {
  font-family: "Fraunces", serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.svc-card p { font-size: 0.88rem; color: var(--text-mute); line-height: 1.6; }

/* pillar-desc (new paragraph under pillar photo) */
.pillar-desc {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* ── PROJECTS ── */
.projects {
  padding-block: clamp(5rem, 10vw, 9rem);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.projects-intro {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 60ch;
  margin-top: 1.5rem;
}

/* Stats bar */
.proj-stats-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-block: 4rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  max-width: 900px;
  margin-inline: auto;
}

.proj-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.2rem 1.5rem;
  border-right: 1px solid var(--line);
  text-align: center;
}
.proj-stat:last-child { border-right: none; }

.proj-stat-num {
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 300;
  color: var(--accent-glow);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.proj-stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* Lifecycle strip */
.proj-lifecycle {
  display: flex;
  align-items: center;
  gap: 0;
  margin-block: 3rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.lifecycle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  min-width: 120px;
  text-align: center;
}

.lifecycle-num {
  font-family: "Fraunces", serif;
  font-size: 0.75rem;
  color: var(--accent-glow);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.lifecycle-label {
  font-size: 0.78rem;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.lifecycle-line {
  flex: 1;
  height: 1px;
  min-width: 2rem;
  background: linear-gradient(90deg, var(--accent-glow), var(--accent));
  flex-shrink: 1;
  margin-bottom: 1rem;
}

/* Photo strip */
/* ── PROJECT CAROUSEL ── */
.proj-carousel {
  position: relative;
  margin-block: 3.5rem;
  overflow: hidden;
  height: 480px;
  border-radius: 4px;
}

.proj-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.proj-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.proj-carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.proj-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.85);
  display: block;
}

.proj-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20,22,24,0.6);
  border: 1px solid rgba(221,228,232,0.15);
  color: var(--text);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  z-index: 2;
}

.proj-carousel-btn:hover {
  background: rgba(76,175,125,0.25);
  border-color: var(--accent);
}

.proj-carousel-btn.prev { left: 1.5rem; }
.proj-carousel-btn.next { right: 1.5rem; }

.proj-carousel-dots {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.pcr-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(221,228,232,0.35);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}

.pcr-dot.is-active {
  background: var(--accent-glow);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .proj-carousel { height: 280px; }
}

/* Map */
.proj-map-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 1rem;
}

.proj-map-wrap {
  margin-block: 1rem 3rem;
  position: relative;
}

/* Country project grid */
.proj-countries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.proj-country {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.proj-country:hover { border-color: var(--accent); }

.proj-country-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-3);
}

.proj-cflag { font-size: 1.3rem; line-height: 1; }

.proj-cname {
  font-family: "Fraunces", serif;
  font-size: 1rem;
  color: var(--text);
  flex: 1;
}

.proj-cmwh {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent-glow);
  font-weight: 500;
  text-transform: uppercase;
}

.proj-list { padding: 0.6rem 0; }

.proj-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  padding: 0.7rem 1.2rem;
  border-bottom: 1px solid var(--line);
  gap: 0.1rem 0.5rem;
}

.proj-row:last-child { border-bottom: none; }

.proj-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  grid-column: 1;
  grid-row: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.proj-mwh {
  font-size: 0.78rem;
  color: var(--accent-glow);
  font-weight: 600;
  grid-column: 2;
  grid-row: 1;
  text-align: right;
}

.proj-client {
  font-size: 0.75rem;
  color: var(--text-mute);
  grid-column: 1 / -1;
  grid-row: 2;
}

/* ── WHY ── */
.why {
  padding-block: clamp(5rem, 10vw, 9rem);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 4rem;
  background: var(--line);
}

.why-card {
  background: var(--bg-2);
  padding: 2.5rem 2rem;
  transition: background 0.3s;
}

@media (hover: hover) { .why-card:hover { background: var(--bg-card); } }

.why-card:nth-child(1) { transition-delay: 0s; }
.why-card:nth-child(2) { transition-delay: 0.1s; }
.why-card:nth-child(3) { transition-delay: 0.2s; }

.why-num {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.why-card h3 {
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.why-card p { font-size: 0.9rem; color: var(--text-mute); line-height: 1.7; }

/* ── TEAM ── */
.team {
  padding-block: clamp(5rem, 10vw, 9rem);
  border-bottom: 1px solid var(--line);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 4rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.4s var(--ease-out);
}

@media (hover: hover) {
  .team-card:hover { border-color: var(--accent); transform: translateY(-4px); }
}

.team-card:nth-child(1) { transition-delay: 0s; }
.team-card:nth-child(2) { transition-delay: 0.12s; }

.team-img-wrap {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--bg-3);
}

.team-img-wrap img {
  transition: transform 0.6s var(--ease-out);
  filter: saturate(0.5) brightness(0.7);
  object-position: center top;
}

/* Rodrigo: zoom out y centrado para igualar tamaño de cabeza con Antonio */
img[src*="rodrigo"] {
  object-position: center 8%;
  transform: scale(0.82);
  transform-origin: center top;
}

.team-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--bg-card) 100%);
}

@media (hover: hover) {
  .team-card:hover .team-img-wrap img { transform: scale(1.04); filter: saturate(0.7) brightness(0.8); }
}

.team-info { padding: 2rem 2rem 2.5rem; }

.team-role {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-glow);
  margin-bottom: 0.4rem;
}

.team-name {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.team-subtitle { font-size: 0.82rem; color: var(--steel); margin-bottom: 1.5rem; }

.team-card blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  margin-bottom: 1.2rem;
}

.team-card blockquote p {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.team-bio { font-size: 0.88rem; color: var(--text-mute); line-height: 1.7; margin-bottom: 1.2rem; }

.team-highlights { display: flex; flex-direction: column; gap: 0.5rem; }

.team-highlights li {
  font-size: 0.8rem;
  color: var(--text-mute);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}

.team-highlights li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

/* ── TEAM BACKING ── */
/* ── TEAM FORCE BLOCK ── */
.team-force {
  margin-top: 4rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3rem 3.5rem;
  background: linear-gradient(135deg, rgba(76,175,125,0.04) 0%, transparent 60%);
}

.team-force-header {
  max-width: 860px;
  margin-bottom: 3rem;
}

.team-force-claim {
  font-family: "Fraunces", serif;
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1.3;
  margin: 0 0 1.2rem;
}

.team-force-sub {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.75;
  margin: 0;
}

.team-force-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 0;
  margin-bottom: 2.5rem;
}

.team-force-pillar { display: flex; flex-direction: column; gap: 0.5rem; }

.tfp-num {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--accent-glow);
  line-height: 1;
}

.tfp-label {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--text-mute);
  line-height: 1.5;
}

.team-force-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
}

.team-force-logos span {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  border: 1px solid var(--line);
  padding: 0.35rem 0.9rem;
  border-radius: 2px;
}

.team-founders-title {
  font-family: "Fraunces", serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--text);
  margin: 0.5rem 0 2.5rem;
}

@media (max-width: 1024px) {
  .team-force-pillars { grid-template-columns: repeat(2, 1fr); }
  .team-force { padding: 2rem; }
}

@media (max-width: 600px) {
  .team-force-pillars { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

/* ── WORLD MAP ── */
.worldmap {
  padding-block: clamp(5rem, 10vw, 9rem);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}

.worldmap-intro {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 50ch;
  margin-bottom: 0;
  line-height: 1.7;
}

.worldmap-wrap {
  margin-top: 3.5rem;
  position: relative;
}

/* Container that stacks SVG + HTML overlay */
.wmap-container {
  position: relative;
  width: 100%;
}

#proj-leaflet-map {
  width: 100%;
  height: 480px;
  border-radius: 4px;
  overflow: hidden;
}
.proj-map-tooltip {
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  box-shadow: none;
  white-space: nowrap;
}
.proj-map-tooltip::before { display: none; }

/* HTML overlay: fills exactly the SVG area */
.wmap-points {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Each country pin */
.wmap-point {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
}

/* Green circle with ripple — same technique as Trina Solar */
.wmap-circle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-glow);
  box-shadow: 0 0 8px rgba(76,175,125,0.6);
  position: relative;
  flex-shrink: 0;
}
.wmap-circle::before,
.wmap-circle::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(76,175,125,0.25);
  animation: ripple 2.4s ease-out infinite;
}
.wmap-circle::after {
  inset: -8px;
  background: rgba(76,175,125,0.12);
  animation-delay: 0.8s;
}
@keyframes ripple {
  0%   { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Label below dot by default */
.wmap-point p {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-soft);
  white-space: nowrap;
  margin-top: 6px;
  letter-spacing: 0.04em;
  line-height: 1;
}

/* Label to the left of the dot */
.wmap-point.lbl-left {
  flex-direction: row-reverse;
  align-items: center;
}
.wmap-point.lbl-left p { margin-top: 0; margin-right: 7px; }

/* Label to the right of the dot */
.wmap-point.lbl-right {
  flex-direction: row;
  align-items: center;
}
.wmap-point.lbl-right p { margin-top: 0; margin-left: 7px; }

/* Country list below map */
.worldmap-countries {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  justify-content: center;
  padding: 2rem clamp(1.2rem, 5vw, 4rem) 0;
}

.wmap-country {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-soft);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.35rem 0.85rem;
  transition: border-color 0.2s, color 0.2s;
}

@media (hover: hover) {
  .wmap-country:hover { border-color: var(--accent); color: var(--text); }
}

.wmap-flag { font-size: 1rem; line-height: 1; }

/* ── CONTACT ── */
.contact {
  position: relative;
  padding-block: clamp(5rem, 10vw, 9rem);
  overflow: hidden;
}

.contact-mesh {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 50% 60% at 75% 50%, rgba(45,106,79,0.14) 0%, transparent 65%),
    radial-gradient(ellipse 30% 40% at 10% 80%, rgba(61,138,94,0.08) 0%, transparent 60%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.contact .container { position: relative; z-index: 1; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}

.contact-body {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 3rem;
  max-width: 40ch;
}

.contact-details { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; flex-direction: column; gap: 0.3rem; }

.contact-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.contact-value { font-size: 0.95rem; color: var(--text-soft); transition: color 0.2s; }
a.contact-value:hover { color: var(--accent-glow); }

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-mute); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(61,138,94,0.12);
}

.btn-sending, .btn-sent, .btn-error { display: none; }
.contact-form.is-sending .btn-text { display: none; }
.contact-form.is-sending .btn-sending { display: block; }
.contact-form.is-sent .btn-text { display: none; }
.contact-form.is-sent .btn-sent { display: block; }
.contact-form.is-sent .btn { background: var(--accent-2); pointer-events: none; }
.contact-form.is-error .btn-text { display: none; }
.contact-form.is-error .btn-error { display: block; }
.contact-form.is-error .btn { background: #c0392b; }

/* ── FOOTER ── */
.footer {
  padding-block: 3.5rem 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-soft);
  transition: color 0.2s;
}

.footer-logo svg { color: var(--accent); }

.footer-logo span { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.25em; }

@media (hover: hover) { .footer-logo:hover { color: var(--text); } }

.footer-nav { display: flex; gap: 2rem; flex-wrap: wrap; }

.footer-nav a { font-size: 0.82rem; color: var(--text-mute); letter-spacing: 0.04em; transition: color 0.2s; }

@media (hover: hover) { .footer-nav a:hover { color: var(--accent-glow); } }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.footer-copy { font-size: 0.78rem; color: var(--text-mute); }

.footer-tagline {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--accent);
}

/* ── Reveal delays ── */
.why-card.reveal:nth-child(1) { transition-delay: 0s; }
.why-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.why-card.reveal:nth-child(3) { transition-delay: 0.2s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-right { order: -1; max-width: 500px; }

  .services-pillars { grid-template-columns: 1fr; gap: 4rem; }
  .pillar-divider { display: none; }

  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .hero-title { font-size: clamp(2.8rem, 12vw, 4.5rem); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

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

  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

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

  .wmap-label { font-size: 8px; }
}

@media (max-width: 480px) {
  .section-title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-scroll-hint { display: none; }
  .worldmap-countries { justify-content: flex-start; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh { animation: none; }
  .marquee-track { animation: none; }
  .hero-scroll-line { animation: none; }
  .splash-logo { animation: none; opacity: 1; }
  .splash-bar-fill { animation: none; width: 100%; }
  .hero-line,
  .hero-eyebrow,
  .hero-sub,
  .hero-actions,
  .hero-scroll-hint { animation: none; opacity: 1; transform: none; }
  .wmap-dot { animation: none; }
  .hero-slide { transition: opacity 0.5s; }
}
