/* =========================================================
   RODRAM — Sistema de diseño
   Azul corporativo, blanco, gris muy claro, negro para texto.
   Minimalista, premium, mucho espacio en blanco.
========================================================= */

:root {
  --blue: #17335c;
  --blue-dark: #0d2038;
  --blue-mid: #1f4a80;
  --blue-tint: #eef2f7;
  --blue-tint-2: #e3e9f2;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f4f4f5;
  --gray-300: #d9dadd;
  --gray-500: #8b8d93;
  --gray-600: #5a5c63;
  --ink: #111214;

  --max: 1360px;
  --gutter: clamp(24px, 5vw, 80px);

  --section-y: clamp(72px, 10vw, 160px);
  --section-y-sm: clamp(56px, 7vw, 108px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.7s;

  --radius: 2px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

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

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

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--blue-dark);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--blue-mid);
}

.section-title {
  font-size: clamp(28px, 3.4vw, 44px);
  max-width: 760px;
}

.section-lead {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--gray-600);
  max-width: 620px;
  margin-top: 20px;
  font-weight: 400;
}
.section-lead strong { color: var(--blue-dark); font-weight: 600; }
.section.on-dark .section-lead strong { color: var(--white); }

/* Scannable emphasis: bold keywords in body copy read clearly at a glance */
p strong, li strong, .founder-copy p strong {
  color: var(--blue-dark);
  font-weight: 600;
}
.section.on-dark p strong,
.section.on-dark li strong,
.hero-text strong,
.footer-brand p strong {
  color: var(--white);
}

/* Large emphasis statement — highlights the range of work with bold terms */
.scope-statement {
  font-size: clamp(21px, 2.8vw, 36px);
  line-height: 1.55;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  max-width: 960px;
}
.scope-statement strong { color: var(--white); font-weight: 600; }
.scope-statement.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head {
  margin-bottom: clamp(48px, 6vw, 88px);
}

.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-head.center .section-title,
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow::before { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(17,18,20,0.2);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-ghost-light:hover { border-color: var(--white); transform: translateY(-2px); }

.btn-arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.solid,
.site-header.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 0;
  border-bottom-color: rgba(17,18,20,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; }
.brand img {
  height: 46px; width: auto; max-width: none; flex-shrink: 0;
  transition: filter .4s var(--ease);
  filter: brightness(0) invert(1); /* white, for use over dark hero */
}
.site-header.scrolled .brand img,
.site-header.solid .brand img {
  filter: none; /* full color, for use on white header background */
}

.main-nav { display: flex; align-items: center; gap: 44px; }
.main-nav ul { display: flex; gap: 40px; }

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  padding: 4px 0;
  color: var(--white);
  transition: color .4s var(--ease);
}
.site-header.scrolled .main-nav a,
.site-header.solid .main-nav a { color: var(--ink); }

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease);
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.header-actions .btn-primary {
  padding: 12px 26px;
}

.header-actions .btn-ghost-light { padding: 12px 22px; }
.site-header.scrolled .header-actions .btn-ghost-light,
.site-header.solid .header-actions .btn-ghost-light {
  color: var(--ink);
  border-color: rgba(17,18,20,0.2);
}
.site-header.scrolled .header-actions .btn-ghost-light:hover,
.site-header.solid .header-actions .btn-ghost-light:hover {
  border-color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 28px; height: 20px;
  position: relative;
  z-index: 1100;
}

.mobile-nav { display: none; }
.nav-toggle span {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.35s var(--ease);
}
.site-header:not(.scrolled):not(.solid) .nav-toggle span { background: var(--white); }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }

.nav-open .nav-toggle span { background: var(--ink); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img, .hero-media .ph-fill {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,32,56,0.35) 0%, rgba(13,32,56,0.15) 35%, rgba(13,32,56,0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: clamp(64px, 9vw, 120px);
  padding-top: 180px;
}

.hero-content .eyebrow { color: rgba(255,255,255,0.85); }
.hero-content .eyebrow::before { background: rgba(255,255,255,0.6); }

.hero-logo {
  height: 56px;
  width: auto;
  max-width: none;
  margin-bottom: 32px;
  filter: brightness(0) invert(1);
}
.page-hero .hero-logo { height: 46px; margin-bottom: 24px; }

.hero-title {
  font-size: clamp(34px, 5.4vw, 74px);
  max-width: 16ch;
  color: var(--white);
  font-weight: 600;
}

.hero-text {
  max-width: 620px;
  margin-top: 28px;
  font-size: clamp(16px, 1.3vw, 19px);
  color: rgba(255,255,255,0.86);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.scroll-cue .line { width: 1px; height: 46px; background: rgba(255,255,255,0.4); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: "";
  position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--white);
  animation: scrollcue 2.2s infinite ease-in-out;
}
@keyframes scrollcue { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

/* Page (interior) hero — smaller, for sub-pages */
.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.page-hero .hero-content { padding-top: 200px; padding-bottom: 64px; }
.page-hero .hero-title { font-size: clamp(30px, 4.2vw, 56px); max-width: 20ch; }

/* ---------- Placeholder media (for missing photos) ---------- */

.ph {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background:
    linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 52%, var(--blue-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 42px 42px;
}
.ph-label {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 24px;
}
.ph-label small { display: block; margin-top: 6px; font-size: 10px; color: rgba(255,255,255,0.32); letter-spacing: 0.08em; text-transform: none; }

.ph.light {
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--blue-tint) 100%);
}
.ph.light::before {
  background-image:
    linear-gradient(90deg, rgba(23,51,92,0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23,51,92,0.05) 1px, transparent 1px);
}
.ph.light .ph-label { color: rgba(23,51,92,0.45); }
.ph.light .ph-label small { color: rgba(23,51,92,0.3); }

/* Keep the placeholder caption clear of the hero headline, which is bottom-aligned */
.hero .ph, .page-hero .ph { align-items: flex-start; padding-top: 140px; }

/* image with graceful fallback wrapper */
.media {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
img.hidden { display: none; }

/* ---------- Reveal animation ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Stats strip ---------- */

.stats {
  background: var(--blue-dark);
  color: var(--white);
  padding: clamp(56px, 7vw, 96px) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}
.stat-item {
  border-left: 1px solid rgba(255,255,255,0.16);
  padding-left: 24px;
}
.stat-icon { width: 22px; height: 22px; margin-bottom: 22px; opacity: 0.85; }
.stat-label {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  line-height: 1.4;
}
.stat-sub { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 8px; }

/* ---------- About / two column ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.split.reverse { grid-template-columns: 0.95fr 1.05fr; }
.split.reverse .split-media { order: 2; }

.split-media { position: relative; aspect-ratio: 4/5; }
.split-copy p { color: var(--gray-600); margin-top: 20px; font-size: 16px; }
.split-copy p + p { margin-top: 16px; }

.section { padding: var(--section-y) 0; }
.section.tight { padding: var(--section-y-sm) 0; }
.section.on-tint { background: var(--blue-tint); }
.section.on-dark { background: var(--blue-dark); color: var(--white); }
.section.on-dark h2, .section.on-dark h3, .section.on-dark h4 { color: var(--white); }
.section.on-dark .section-lead { color: rgba(255,255,255,0.65); }
.section.on-dark .eyebrow { color: rgba(255,255,255,0.7); }
.section.on-dark .eyebrow::before { background: rgba(255,255,255,0.5); }

/* ---------- Founder ---------- */

.founder {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.founder-media { aspect-ratio: 3/4; position: relative; }
.founder-name { font-size: clamp(22px, 2.4vw, 30px); margin-top: 28px; }
.founder-role { color: var(--blue-mid); font-weight: 600; font-size: 14px; margin-top: 8px; letter-spacing: 0.02em; }
.founder-copy p { color: var(--gray-600); margin-top: 18px; font-size: 16px; }
.founder-quote {
  margin-top: 32px;
  padding-left: 24px;
  border-left: 2px solid var(--blue-mid);
  font-size: 17px;
  font-style: normal;
  color: var(--blue-dark);
  font-weight: 500;
}

/* ---------- Services grid ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-300);
  border: 1px solid var(--gray-300);
}
.service-card {
  background: var(--white);
  padding: 40px 36px;
  transition: background 0.4s var(--ease);
}
.service-card:hover { background: var(--blue-tint); }
.service-num { font-size: 12px; color: var(--gray-500); font-weight: 600; letter-spacing: 0.08em; }
.service-card h3 { font-size: 19px; margin-top: 20px; }
.service-card p { color: var(--gray-600); font-size: 14.5px; margin-top: 12px; }

/* Broader, fewer-item services layout (2 columns, more breathing room) */
.services-broad {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  background: none;
  border: none;
}
.services-broad .service-card {
  border: 1px solid var(--gray-300);
  padding: 48px 44px;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.services-broad .service-card:hover { border-color: var(--blue-mid); }
.services-broad .service-card h3 { font-size: 22px; }
.services-broad .service-card p { font-size: 15px; margin-top: 14px; line-height: 1.6; }
@media (max-width: 720px) {
  .services-broad { grid-template-columns: 1fr; gap: 20px; }
  .services-broad .service-card { padding: 36px 32px; }
}

/* ---------- Portfolio grid ---------- */

.folio-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.folio-card {
  position: relative;
  overflow: hidden;
  display: block;
  color: var(--white);
  grid-column: span 3;
  aspect-ratio: 4/5;
}
.folio-card.featured { grid-column: span 6; aspect-ratio: 16/8.2; }
.folio-card .media { position: absolute; inset: 0; }
.folio-card .media img { transition: transform 1.1s var(--ease); }
.folio-card:hover .media img { transform: scale(1.06); }
.folio-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,32,56,0) 40%, rgba(13,32,56,0.82) 100%);
  transition: background 0.4s var(--ease);
}
.folio-card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: clamp(20px, 2.4vw, 40px);
}
.folio-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
  display: block;
}
.folio-card h3 { color: var(--white); font-size: clamp(19px, 2vw, 28px); }
.folio-card .folio-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 14px;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.4s var(--ease);
}
.folio-card:hover .folio-link { opacity: 1; transform: translateY(0); }

.folio-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  background: var(--blue-mid);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}

.folio-cta { grid-column: span 6; text-align: center; margin-top: 8px; }

/* ---------- Methodology timeline ---------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  counter-reset: step;
}
.timeline-step {
  position: relative;
  padding-top: 36px;
  border-top: 2px solid var(--gray-300);
}
.timeline-step.is-active,
.timeline-step { border-top-color: var(--blue-mid); }
.timeline-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -14px; left: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-mid);
  background: var(--white);
  padding-right: 8px;
}
.timeline-step h4 { font-size: 16px; margin-top: 6px; }
.timeline-step p { font-size: 13.5px; color: var(--gray-600); margin-top: 10px; }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.principle {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.principle .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-mid);
  margin-top: 9px;
  flex: none;
}
.principle span { font-size: 15px; color: var(--gray-600); }

/* ---------- Tech section ---------- */

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.tech-list { margin-top: 36px; display: flex; flex-direction: column; gap: 22px; }
.tech-item { display: flex; gap: 18px; align-items: flex-start; }
.tech-item .n { font-size: 13px; font-weight: 700; color: var(--blue-mid); width: 26px; flex: none; padding-top: 2px; }
.tech-item h4 { font-size: 15.5px; font-weight: 600; }
.tech-item p { font-size: 14px; color: var(--gray-600); margin-top: 4px; }
.tech-visual { aspect-ratio: 4/5; position: relative; }

/* ---------- Differentiators ---------- */

.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.12);
}
.diff-card { padding: 40px 28px; background: var(--blue-dark); }
.diff-card .idx { font-size: 12px; color: rgba(255,255,255,0.4); font-weight: 600; letter-spacing: 0.08em; }
.diff-card h4 { font-size: 17px; margin-top: 18px; }
.diff-card p { font-size: 13.5px; color: rgba(255,255,255,0.6); margin-top: 10px; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.contact-info-list { margin-top: 40px; display: flex; flex-direction: column; gap: 28px; }
.contact-info-item h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-500); font-weight: 600; }
.contact-info-item p, .contact-info-item a { font-size: 18px; margin-top: 8px; font-weight: 500; }
.contact-info-item a:hover { color: var(--blue-mid); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 10px;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--gray-300);
  background: transparent;
  padding: 10px 0;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--blue);
}
.form-note { font-size: 13px; color: var(--gray-500); margin-top: 18px; }
.form-success {
  display: none;
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--blue-tint);
  color: var(--blue-dark);
  font-size: 14px;
  border-left: 2px solid var(--blue-mid);
}
.form-success.show { display: block; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.7);
  padding: 88px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand img { height: 38px; margin-bottom: 22px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; max-width: 320px; color: rgba(255,255,255,0.55); }
.footer-col h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14.5px; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-social { display: flex; gap: 14px; margin-top: 22px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--ease);
}
.footer-social a:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Project detail page ---------- */

.project-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px 0;
  border-bottom: 1px solid var(--gray-300);
  margin-bottom: 64px;
}
.meta-item h5 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  font-weight: 600;
  margin-bottom: 10px;
}
.meta-item p { font-size: 16px; font-weight: 500; }

.project-scope {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  margin-bottom: clamp(64px, 8vw, 120px);
}
.scope-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.scope-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--gray-600); }
.scope-list li::before { content: ""; width: 5px; height: 5px; background: var(--blue-mid); flex: none; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery .g-item { aspect-ratio: 1/1; overflow: hidden; cursor: zoom-in; }
.gallery .g-item.wide { grid-column: span 2; aspect-ratio: 2/1; }
.gallery .g-item .media { width: 100%; height: 100%; }
.gallery .g-item img { transition: transform 0.6s var(--ease); }
.gallery .g-item:hover img { transform: scale(1.05); }

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s var(--ease);
}
.carousel-slide {
  flex: none;
  width: 100%;
  aspect-ratio: 16/9;
  cursor: zoom-in;
}
.carousel-slide .media { width: 100%; height: 100%; }
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  background: rgba(13,32,56,0.55);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s var(--ease);
  z-index: 2;
}
.carousel-arrow:hover { background: rgba(13,32,56,0.85); }
.carousel-arrow.prev { left: 18px; }
.carousel-arrow.next { right: 18px; }
.carousel-dots {
  position: absolute;
  bottom: 18px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 2;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.carousel-dot.active { background: var(--white); transform: scale(1.3); }
@media (max-width: 640px) {
  .carousel-arrow { width: 38px; height: 38px; font-size: 15px; }
  .carousel-arrow.prev { left: 10px; }
  .carousel-arrow.next { right: 10px; }
}

.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 48px;
  margin-top: clamp(64px, 8vw, 120px);
  border-top: 1px solid var(--gray-300);
}
.project-nav a { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.project-nav a:hover { color: var(--blue-mid); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(13,32,56,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox img.hidden { display: none; }
.lightbox-empty {
  display: none;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lightbox-empty.show { display: block; }
.lightbox-close {
  position: absolute; top: 28px; right: var(--gutter);
  color: var(--white); background: none; border: none;
  font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--blue);
  color: var(--white);
  padding: clamp(64px, 8vw, 120px) 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); font-size: clamp(28px, 3.6vw, 46px); max-width: 720px; margin: 0 auto; }
.cta-banner .section-lead { color: rgba(255,255,255,0.75); margin-left: auto; margin-right: auto; }
.cta-banner .section-lead strong { color: var(--white); }
.cta-banner .btn-primary { background: var(--white); color: var(--blue-dark); border-color: var(--white); margin-top: 40px; }
.cta-banner .btn-primary:hover { background: var(--blue-tint); }

/* ---------- Utility ---------- */

.mt-lg { margin-top: clamp(56px, 7vw, 96px); }

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 1080px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(4, 1fr); row-gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .principles { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-actions .btn-primary,
  .header-actions .btn-ghost-light { display: none; }

  .mobile-nav {
    position: fixed; inset: 0; z-index: 1050;
    background: var(--white);
    display: flex; flex-direction: column;
    justify-content: center;
    padding: 0 var(--gutter);
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease);
  }
  .nav-open .mobile-nav { transform: translateY(0); }
  .mobile-nav ul { display: flex; flex-direction: column; gap: 8px; }
  .mobile-nav a { font-size: 32px; font-weight: 600; padding: 12px 0; display: block; color: var(--blue-dark); letter-spacing: -0.02em; }
  .mobile-nav a.btn-primary { font-size: 14px; color: var(--white); padding: 16px 32px; display: inline-flex; }
  .mobile-nav .btn-primary { margin-top: 32px; align-self: flex-start; }

  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .founder { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .project-scope { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .folio-grid { display: flex; flex-wrap: wrap; }
  .folio-card.featured { flex: 1 1 100%; width: 100%; aspect-ratio: 16/10; }
  .folio-card:not(.featured) { flex: 0 1 calc(50% - 14px); aspect-ratio: 4/5; }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .g-item.wide { grid-column: span 2; }
}

@media (max-width: 560px) {
  .folio-grid { flex-direction: column; }
  .folio-card, .folio-card.featured { flex: none; width: 100%; aspect-ratio: 4/5; }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .project-meta { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .g-item.wide { grid-column: span 1; }
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  z-index: 999;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; flex: none; }
.whatsapp-float .wa-tooltip {
  position: absolute;
  right: 72px;
  background: var(--blue-dark);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  pointer-events: none;
}
.whatsapp-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); }

@media (max-width: 640px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .whatsapp-float .wa-tooltip { display: none; }
}
