/* ================= RESET ================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; }

/* ================= TOKENS ================= */
:root{
  --black: #0d1117;
  --black-rgb: 13,17,23;
  --charcoal: #151b23;
  --charcoal-2: #1c2530;
  --charcoal-3: #22303e;
  --line: rgba(210,225,240,0.08);
  --line-strong: rgba(210,225,240,0.16);
  --off-white: #f2f1ec;
  --grey: #98a2ad;
  --grey-dim: #66707a;
  --accent: #3f7fb8;       /* azul petróleo */
  --accent-2: #1c4d73;
  --accent-dim: #2e5776;
  --accent-glow: rgba(63,127,184,0.22);

  --display: "Archivo Expanded", "Archivo", sans-serif;
  --sans: "Archivo", sans-serif;
  --serif: "Fraunces", serif;

  --ease: cubic-bezier(.22,.85,.32,1);
  --container: 1360px;
  --page-gutter: clamp(24px, 3.6vw, 72px);
}

:root[data-theme="light"]{
  --black: #f5f6f8;
  --black-rgb: 245,246,248;
  --charcoal: #ffffff;
  --charcoal-2: #eef1f4;
  --charcoal-3: #e3e9ef;
  --line: rgba(10,20,30,0.10);
  --line-strong: rgba(10,20,30,0.22);
  --off-white: #10151b;
  --grey: #4d5560;
  --grey-dim: #7c848d;
  --accent: #2c6690;
  --accent-2: #184a68;
  --accent-dim: #a7c4d9;
  --accent-glow: rgba(44,102,144,0.12);
}

body{
  background: var(--black);
  color: var(--off-white);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* subtle grain overlay */
.grain{
  position: fixed; inset: 0; pointer-events: none; z-index: 200;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap,
.testi-carousel{
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--container));
  margin: 0 auto;
}

.wrap{ padding: 0; }

/* ================= TYPO ================= */
.eyebrow{
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before{
  content: ''; width: 28px; height: 1px; background: var(--accent);
}

h1, h2, h3, .display{
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 0.98;
  max-width: 100%;
  overflow-wrap: break-word;
}

.lede{
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  color: var(--grey);
  line-height: 1.6;
}

/* ================= NAV ================= */
.nav{
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 26px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled{
  background: rgba(var(--black-rgb),0.82);
  backdrop-filter: blur(16px) saturate(140%);
  padding: 16px 0;
  border-bottom: 1px solid var(--line-strong);
}
.nav .wrap{ display: flex; align-items: center; justify-content: space-between; }
.brand{ display: inline-flex; align-items: center; }
.brand img{ height: 62px; width: auto; }
.brand img.logo-light{ display: block; }
.brand img.logo-dark{ display: none; }
:root[data-theme="light"] .brand img.logo-light{ display: none; }
:root[data-theme="light"] .brand img.logo-dark{ display: block; }

.brand-nz{ display: inline-flex; align-items: center; transition: opacity .3s var(--ease); }

.nav-links{ display: flex; gap: 40px; }
.nav-links a{
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  position: relative;
  padding-bottom: 4px;
  transition: color .3s var(--ease);
}
.nav-links a::after{
  content:''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--accent); transition: width .35s var(--ease);
}
.nav-links a:hover{ color: var(--off-white); }
.nav-links a:hover::after{ width: 100%; }

.nav-cta{
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--line-strong);
  padding: 10px 22px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav-cta:hover{ border-color: var(--accent); background: var(--accent-glow); }

.nav-actions{ display: flex; align-items: center; gap: 12px; }
.nav-social{
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid transparent;
  color: var(--grey);
  transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.nav-social svg{ width: 16px; height: 16px; }
.nav-social:hover{ background: var(--accent-glow); color: var(--off-white); }
.nav-social.is-whatsapp:hover{ background: #25D366; color: #08090b; }
.nav-social.is-instagram:hover{
  color: #fff;
  background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #FCAF45);
}

.nav-toggle{ display:none; flex-direction:column; gap:5px; background:none; border:none; padding:8px; }
.nav-toggle span{ width: 24px; height: 1px; background: var(--off-white); }

.mobile-menu{
  position: fixed; inset: 0; z-index: 99; display: none;
  flex-direction: column; justify-content: center; align-items: center; gap: 36px;
  background: rgba(var(--black-rgb), 0.95);
  backdrop-filter: blur(10px);
}
.mobile-menu .mm-link{
  font-family: var(--display); text-transform: uppercase; font-size: 28px; color: var(--off-white);
}
.mobile-menu .mm-accent{ color: var(--accent); }
.mm-social{ display: flex; gap: 18px; margin-top: 4px; }
.mm-social a{
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid transparent; color: var(--grey);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.mm-social a svg{ width: 18px; height: 18px; }
.mm-social a:hover{ color: var(--off-white); }
.mm-social a.is-whatsapp:hover{ background: #25D366; color: #08090b; }
.mm-social a.is-instagram:hover{
  color: #fff;
  background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #FCAF45);
}

/* ================= HERO ================= */
.hero{
  position: relative;
  min-height: clamp(600px, 104svh, 980px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--black);
  padding-top: clamp(72px, 14svh, 130px);
}

.hero-carousel{ position: absolute; inset: 0; overflow: hidden; }
.hero-slide{
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: contrast(1.08) brightness(0.8);
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.8s var(--ease);
}
.hero-slide.is-active{
  opacity: 1;
  animation: heroKenBurns 4.5s var(--ease) forwards;
}
:root[data-theme="light"] .hero-slide{ filter: contrast(1.03) brightness(1.0); }

@keyframes heroKenBurns{
  from{ transform: scale(1); }
  to{ transform: scale(1.09); }
}

.hero-overlay{
  position: absolute; inset: 0;
  background:
    radial-gradient(130% 90% at 50% -10%, rgba(63,127,184,0.30) 0%, transparent 60%),
    linear-gradient(180deg, rgba(13,17,23,0.35) 0%, rgba(20,58,86,0.30) 30%, rgba(13,17,23,0.58) 62%, #0a0d12 100%),
    linear-gradient(90deg, rgba(10,13,18,0.72) 0%, rgba(10,13,18,0.12) 45%, rgba(10,13,18,0.05) 100%);
}
:root[data-theme="light"] .hero-overlay{
  background:
    radial-gradient(130% 90% at 50% -10%, rgba(44,102,144,0.20) 0%, transparent 60%),
    linear-gradient(180deg, rgba(245,246,248,0.5) 0%, rgba(210,226,238,0.28) 30%, rgba(245,246,248,0.55) 62%, #f5f6f8 100%),
    linear-gradient(90deg, rgba(245,246,248,0.85) 0%, rgba(245,246,248,0.25) 45%, rgba(245,246,248,0.08) 100%);
}

/* Animated technical measurement lines evoking motion-capture / biomechanics */
.hero-lines{ position: absolute; inset: 0; opacity: 0.36; z-index: 1; }
.hero-lines svg{ width: 100%; height: 100%; }
.hero-lines .path{
  fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0.35;
  stroke-dasharray: 6 8;
  animation: dashmove 40s linear infinite;
}
.hero-lines .marker{ animation: pulse 3.2s ease-in-out infinite; }
@keyframes dashmove{ to{ stroke-dashoffset: -800; } }
@keyframes pulse{ 0%, 100%{ opacity: 0.35; r: 3.5; } 50%{ opacity: 0.85; r: 5; } }

.hero-content{
  position: relative; z-index: 2;
  padding-bottom: clamp(28px, 5svh, 72px);
}
.hero-content .wrap{ display:block; }

.hero-eyebrow{ animation: fadeUp 1s var(--ease) .2s both; margin-bottom: 28px; }

.hero h1{
  font-size: clamp(42px, min(5.2vw, 11.5svh), 84px);
  color: var(--off-white);
  animation: fadeUp 1.1s var(--ease) .35s both;
  max-width: 17ch;
}
.hero h1 em{
  font-style: normal; color: transparent;
  -webkit-text-stroke: 1.5px var(--off-white);
}

.hero-sub{
  margin-top: 28px;
  max-width: 560px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--grey);
  animation: fadeUp 1.1s var(--ease) .55s both;
}

.hero-actions{
  margin-top: 44px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  animation: fadeUp 1.1s var(--ease) .7s both;
}

.btn-primary{
  background: var(--off-white); color: var(--black);
  padding: 17px 34px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  display: inline-flex; align-items: center; gap: 12px;
  transition: background .35s var(--ease), transform .35s var(--ease), letter-spacing .35s var(--ease);
}
.btn-primary:hover{ background: var(--accent); color: var(--off-white); letter-spacing: 0.2em; }
.btn-primary svg{ width: 14px; height: 14px; transition: transform .35s var(--ease); }
.btn-primary:hover svg{ transform: translateX(4px); }

.btn-ghost{
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.btn-ghost:hover{ color: var(--off-white); border-color: var(--accent); }

.hero-creds{
  position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  padding: clamp(16px, 2.4svh, 24px) 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.hero-creds-track{
  display: flex; align-items: center; width: max-content;
  animation: credsMarquee 32s linear infinite;
}
.hero-creds:hover .hero-creds-track{ animation-play-state: paused; }
@keyframes credsMarquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
.hero-creds-list{
  display: flex; align-items: center;
  gap: clamp(28px, 4vw, 48px);
  padding-right: clamp(28px, 4vw, 48px);
}
.hero-creds-list li{
  display: flex; align-items: center; gap: clamp(14px, 2vw, 24px);
  font-size: 12.5px; letter-spacing: 0.04em; color: var(--grey);
  white-space: nowrap;
}
.hero-creds-list li::before{
  content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex-shrink: 0;
}
.hero-creds-list li:first-child::before{ display: none; }
.hero-creds-list li strong{
  font-family: var(--display); font-weight: 700; color: var(--off-white);
  text-transform: uppercase; letter-spacing: 0.04em; margin-right: 6px;
}

.scroll-cue{
  position: absolute; left: 50%; bottom: clamp(64px, 10svh, 110px); transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px;
  animation: fadeUp 1s var(--ease) 1.1s both;
}
.scroll-cue .line{ width: 1px; height: 40px; background: linear-gradient(var(--accent), transparent); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine{ 0%{ transform: scaleY(0); transform-origin: top;} 50%{ transform: scaleY(1); transform-origin: top;} 51%{ transform-origin: bottom;} 100%{ transform: scaleY(0); transform-origin: bottom;} }
.scroll-cue span{ font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey-dim); }

@keyframes fadeUp{ from{ opacity: 0; transform: translateY(24px);} to{ opacity: 1; transform: translateY(0);} }

/* ================= SECTION SHELL ================= */
section{ position: relative; }
.section-pad{ padding: clamp(64px, 8vw, 120px) 0; }
.section-pad--flush-bottom{ padding-bottom: 0; }
.section-head{
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  margin-bottom: clamp(40px, 4.5vw, 70px);
  flex-wrap: wrap;
}
.section-head--flush{ margin-bottom: 0; }
.section-head--spacious{ margin-bottom: 60px; }
.section-head > div{ flex: 1 1 480px; max-width: 620px; }
.section-head h2{ font-size: clamp(32px, 3.2vw, 48px); margin-top: 18px; max-width: 14ch; }
.section-head .lede{ flex: 1 1 320px; max-width: 420px; font-size: 18px; }

.reveal{ opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in{ opacity: 1; transform: translateY(0); }

/* ================= PHILOSOPHY (3 narrative blocks) ================= */
.philosophy{ background: var(--black); border-top: 1px solid var(--line); }
.philosophy > .wrap:last-child{ padding-bottom: clamp(64px, 8vw, 120px); }
.philo-grid{
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.philo-item{
  padding: 48px 40px 56px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background .4s var(--ease);
}
.philo-item:last-child{ border-right: none; }
.philo-item:hover{ background: rgba(255,255,255,0.015); }
.philo-num{
  font-family: var(--display); font-size: 13px; color: var(--accent);
  letter-spacing: 0.1em; margin-bottom: 30px; display:block;
}
.philo-item h3{ font-size: 24px; margin-bottom: 16px; text-transform: none; letter-spacing: 0; }
.philo-item p{ color: var(--grey); font-size: 15px; max-width: 34ch; }
.philo-icon{ width: 60px; height: 60px; margin-bottom: 26px; opacity: 0.9; }

/* ================= PROCESS strip ================= */
.process{ background: var(--charcoal); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process > .wrap:last-child{ padding-bottom: clamp(64px, 8vw, 120px); }
.process-grid{ display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.pstep{ padding: 44px 32px; border-right: 1px solid var(--line); position: relative; }
.pstep:last-child{ border-right: none; }
.pstep .pnum{ font-family: var(--display); font-size: 13px; color: var(--grey-dim); margin-bottom: 20px; display:block; }
.pstep h4{ font-family: var(--display); text-transform: uppercase; font-size: 17px; margin-bottom: 12px; }
.pstep p{ font-size: 13.5px; color: var(--grey); max-width: 30ch; }
.pstep::after{
  content:''; position:absolute; top: 44px; right: -1px; width: 1px; height: 20px; background: var(--accent);
  opacity: 0;
}

/* ================= SERVICES ================= */
.services{ background: var(--black); border-top: 1px solid var(--line); }
.services > .wrap:last-child{ padding-bottom: clamp(64px, 8vw, 120px); }
.service-row{
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-height: 480px;
}
.services .service-row:last-of-type{ border-bottom: 1px solid var(--line); }
.service-row-featured{
  background: linear-gradient(180deg, var(--accent-glow) 0%, transparent 40%);
  border-color: var(--accent-dim) !important;
  position: relative;
}
.service-row-featured::before{
  content: attr(data-badge);
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--off-white);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  padding: 6px 16px; z-index: 3; white-space: nowrap;
}
:root[data-theme="light"] .service-row-featured::before{ color: #fff; }
.service-row .service-visual .index{
  font-size: 78px;
  color: rgba(255,255,255,0.12);
  text-shadow: 0 0 24px rgba(0,0,0,0.22);
}
.service-row:nth-child(even) .service-visual{ order: 2; }
.service-visual{
  position: relative;
  background: linear-gradient(150deg, #16181c 0%, #0b0c0e 100%);
  overflow: hidden;
  min-height: 340px;
}
.service-visual img{
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.1) contrast(1.05) brightness(0.92);
}
.service-visual .tag{
  position: absolute; top: 24px; left: 24px;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: #d7e8fa;
  border: 1px solid rgba(167, 201, 235, 0.5);
  padding: 8px 14px;
  background: rgba(8,9,11,0.34);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}
.service-visual .index{
  position: absolute; bottom: 20px; right: 26px;
  font-family: var(--display); font-size: 64px; color: rgba(255,255,255,0.05); font-weight: 700;
  line-height: 1;
}
.service-copy{
  padding: clamp(40px, 5vw, 72px);
  display: flex; flex-direction: column; justify-content: center;
}
.service-copy h3{
  font-size: clamp(26px, 2.6vw, 38px); margin-bottom: 20px; text-transform: none; letter-spacing: -0.01em;
  font-family: var(--display); text-transform: uppercase;
}
.service-copy p.desc{ color: var(--grey); font-size: 16px; margin-bottom: 28px; max-width: 46ch; }

.service-meta{
  display: flex; flex-wrap: wrap;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  margin-bottom: 30px;
  overflow: hidden;
}
.service-meta div{
  flex: 1 1 132px;
  padding: 14px 20px;
  border-right: 1px solid var(--line);
}
.service-meta div:last-child{ border-right: none; }
.service-meta b{ display:block; font-size: 10.5px; letter-spacing:0.1em; text-transform: uppercase; color: var(--grey-dim); margin-bottom: 6px; }
.service-meta span{ font-size: 15.5px; color: var(--off-white); font-weight: 600; }

.service-list{ margin-bottom: 32px; }
.service-list li{
  font-size: 14px; color: var(--grey); padding: 9px 0; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.service-list li:last-child{ border-bottom: 1px solid var(--line); }
.service-list li::before{ content: ''; width: 5px; height: 5px; background: var(--accent); flex-shrink: 0; }
.service-note{
  font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--grey);
  font-size: 14px; line-height: 1.6; margin-bottom: 28px; padding-left: 16px; border-left: 2px solid var(--accent-dim);
}
.service-actions{ display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.service-cta{
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--accent); color: #fff;
  padding: 16px 30px; border-radius: 3px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  transition: background .3s var(--ease), gap .3s var(--ease);
}
.service-cta:hover{ background: var(--accent-2); color: #fff; gap: 16px; }
.service-cta svg{ width: 14px; height: 14px; }
.service-more{
  background: none; border: none; color: var(--grey);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 6px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.service-more:hover{ color: var(--off-white); border-color: var(--accent); }

/* ================= GALLERY ================= */
.gallery{ background: var(--charcoal-3); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  padding-bottom: clamp(64px, 8vw, 120px);
}
.gallery-item{
  position: relative; overflow: hidden; border-radius: 4px;
  aspect-ratio: 4 / 5;
  background: var(--charcoal-2);
}
.gallery-item img,
.gallery-item video{
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.08) contrast(1.05) brightness(0.94);
  transition: transform .6s var(--ease), filter .6s var(--ease);
}
.gallery-item:hover img,
.gallery-item:hover video{ transform: scale(1.05); filter: grayscale(0) contrast(1.08) brightness(1); }

/* ================= ABOUT ================= */
.about{ background: var(--charcoal-2); border-top: 1px solid var(--line); }
.about-grid{
  display: grid; grid-template-columns: 1fr 1fr;
}

.about-portrait{
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #1c2530 0%, #10151b 100%);
}
.about-portrait img{
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%;
  filter: grayscale(0.15) contrast(1.06) brightness(0.9);
}
.about-portrait::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(13,17,23,0.92) 0%, rgba(13,17,23,0.35) 32%, transparent 55%);
}
:root[data-theme="light"] .about-portrait::after{
  background: linear-gradient(0deg, rgba(13,17,23,0.88) 0%, rgba(13,17,23,0.54) 34%, rgba(13,17,23,0.12) 62%, transparent 78%);
}
.about-portrait::before{
  content: ''; position: absolute; top: 18px; left: 18px; width: 22px; height: 22px;
  border: 1px solid var(--accent); border-right: none; border-bottom: none; opacity: 0.6; z-index: 2;
}
.about-tag{
  position: absolute; top: 18px; right: 18px; z-index: 2;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: #d7e8fa;
  border: 1px solid rgba(167, 201, 235, 0.5);
  padding: 8px 14px;
  background: rgba(13,17,23,0.34);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}
.about-name{
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 0 clamp(24px, 3vw, 40px) 34px;
}
.about-name .role{
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px; display: block;
}
.about-name h2{
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 0.96;
  color: var(--off-white);
  text-shadow: 0 8px 30px rgba(0,0,0,0.35);
}
.about-name h2 span{ display: block; -webkit-text-stroke: 1.5px var(--off-white); color: transparent; }
:root[data-theme="light"] .about-name h2{
  color: #ffffff;
  text-shadow: 0 10px 36px rgba(0,0,0,0.42);
}
:root[data-theme="light"] .about-name h2 span{
  color: rgba(255,255,255,0.92);
  -webkit-text-stroke: 0;
}

.about-copy{
  padding: clamp(28px, 4vw, 64px) clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; justify-content: center;
}
.about-copy .eyebrow{ margin-bottom: 18px; }
.about-copy p{ color: var(--grey); font-size: 15px; line-height: 1.55; margin-bottom: 14px; text-align: justify; }

.about-quote{
  margin: 20px 0 24px;
  padding: 18px 0 18px 24px;
  border-left: 2px solid var(--accent);
}
.about-quote p{
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(16px, 1.5vw, 19px); color: var(--off-white); line-height: 1.45; margin-bottom: 10px;
}
.about-quote cite{
  font-style: normal; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-dim);
}

.about-stats{
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.astat{
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}
.astat:last-child{ border-right: none; }
.astat b{ font-family: var(--display); font-size: clamp(24px,2.4vw,34px); display:block; color: var(--off-white); }
.astat span{ font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-dim); line-height: 1.4; }

/* Why block */
.why{ border-top: 1px solid var(--line); }
.why-head{ margin-bottom: 40px; }
.why-head h2{ font-size: clamp(30px, 3.6vw, 46px); margin-top: 16px; }

.why-grid{
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 48px;
}
.why-card{
  padding: 30px 26px;
  background: var(--charcoal-2);
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  transition: background .4s var(--ease);
}
.why-card:hover{ background: rgba(255,255,255,0.02); }
.why-card-icon{
  width: 34px; height: 34px; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--accent-dim); border-radius: 8px; color: var(--accent);
}
.why-card-icon svg{ width: 18px; height: 18px; }
.why-card b{ font-family: var(--display); font-size: clamp(20px,2vw,26px); display: block; color: var(--accent); }
.why-card strong{ display: block; font-size: 14px; color: var(--off-white); font-weight: 600; }
.why-card p{ font-size: 13.5px; color: var(--grey); line-height: 1.55; }

.why-checks{
  display: grid; grid-template-columns: repeat(2, 1fr);
  column-gap: 40px;
}
.why-checks li{
  font-size: 14.5px; color: var(--grey); padding: 14px 0; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; line-height: 1.5;
}
.why-checks li svg{ width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

/* ================= TESTIMONIALS ================= */
.testimonials{ background: var(--black); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }

.testi-carousel{
  border-top: 1px solid var(--line);
  overflow: hidden;
  cursor: grab;
}
.testi-carousel:active{ cursor: grabbing; }

.testi-track{
  display: flex;
  will-change: transform;
  transition: transform .6s var(--ease);
}

.testi-card{
  flex: 0 0 33.3333%;
  padding: 44px 36px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: background .4s var(--ease);
  box-sizing: border-box;
}
.testi-card:hover{ background: rgba(255,255,255,0.015); }
.testi-quote-mark{ width: 32px; height: 24px; margin-bottom: 24px; }
.testi-text{
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 16px; line-height: 1.65; color: var(--off-white);
  margin-bottom: 28px; flex-grow: 1;
}
.testi-meta{
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.testi-name{
  font-family: var(--display); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--off-white);
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.testi-tag{
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--accent-dim); padding: 5px 10px; background: var(--accent-glow);
  white-space: nowrap; flex-shrink: 0;
}

.testi-controls{
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 0 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 26px;
}
.testi-dots{ display: flex; gap: 8px; }
.testi-dot{
  width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); border: none; padding: 0;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.testi-dot.active{ background: var(--accent); transform: scale(1.3); }
.testi-arrows{ display: flex; gap: 10px; }
.testi-arrow{
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); background: transparent; color: var(--grey);
  transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
.testi-arrow:hover{ border-color: var(--accent); color: var(--off-white); background: var(--accent-glow); }
.testi-arrow svg{ width: 16px; height: 16px; }

/* ================= CONTACT ================= */
.contact{ background: var(--black); position: relative; overflow: hidden; }
.contact-bg{ position:absolute; inset:0; background: radial-gradient(90% 70% at 80% 20%, rgba(63,127,184,0.12), transparent 60%); }
.contact-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px); position: relative; }

.contact-info h2{ font-size: clamp(30px, 3.2vw, 48px); margin-bottom: 26px; }
.contact-info .lede{ font-size: 18px; margin-bottom: 40px; max-width: 44ch; }

.info-block{ margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.info-block:last-of-type{ border-bottom: none; }
.info-block b{ display:block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-dim); margin-bottom: 10px; }
.info-block a, .info-block p{ font-size: 17px; color: var(--off-white); }
.info-block a:hover{ color: var(--accent); }

.whatsapp-cta{
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 10px; padding: 16px 26px;
  border: 1px solid var(--line-strong);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.whatsapp-cta:hover{ border-color: var(--accent); background: var(--accent-glow); }
.whatsapp-cta svg{ width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.whatsapp-cta span{ font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }

.info-block-whatsapp{ border-bottom: none; padding-bottom: 4px; }
.whatsapp-cta-lg{
  width: 100%; gap: 18px; padding: 22px 28px;
  background: #25D366; border-color: #25D366;
}
.whatsapp-cta-lg svg{ color: #08090b; width: 26px; height: 26px; }
.whatsapp-cta-lg:hover{ background: #1fb659; border-color: #1fb659; }
.wa-cta-copy{ display: flex; flex-direction: column; gap: 4px; text-align: left; flex: 1; }
.wa-cta-title{ font-size: 17px; letter-spacing: 0.02em; text-transform: none; font-weight: 700; color: #08090b; }
.wa-cta-hint{ font-size: 12.5px; letter-spacing: 0.01em; text-transform: none; font-weight: 500; color: rgba(8,9,11,0.75); }
.wa-cta-arrow{ color: #08090b; transition: transform .3s var(--ease); }
.whatsapp-cta-lg:hover .wa-cta-arrow{ transform: translateX(4px); }

.hours-table{ width: 100%; border-collapse: collapse; margin-top: 6px; }
.hours-table td{ padding: 7px 0; font-size: 14px; color: var(--grey); border-top: 1px solid var(--line); }
.hours-table tr:first-child td{ border-top: none; }
.hours-table td:last-child{ text-align: right; color: var(--off-white); font-variant-numeric: tabular-nums; }

/* instagram embed */
.contact-ig{ background: var(--charcoal); border: 1px solid var(--line); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; }
.contact-ig-head{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.contact-ig-head b{ font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-dim); }
.contact-ig-link{ display: inline-flex; align-items: center; gap: 8px; color: var(--off-white); font-size: 14px; font-weight: 600; transition: color .3s var(--ease); }
.contact-ig-link svg{ width: 18px; height: 18px; }
.contact-ig-link:hover{ color: var(--accent); }
.contact-ig-embed{ flex: 1; min-height: 420px; border-radius: 3px; overflow: hidden; background: var(--charcoal-2); }
.contact-ig-embed iframe{ width: 100%; height: 100%; min-height: 420px; display: block; border: none; }

/* ================= FOOTER ================= */
footer{ background: var(--charcoal-3); border-top: 1px solid var(--line); padding: 56px 0 34px; }
.foot-top{ display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.foot-brand{ max-width: 320px; }
.foot-brand .brand{ margin-bottom: 18px; }
.foot-brand .brand img.logo-light,
.foot-brand .brand img.logo-dark{ height: 54px; }
.foot-brand p{ color: var(--grey-dim); font-size: 13px; max-width: 34ch; margin-bottom: 20px; }
.foot-social{ display: flex; gap: 10px; }
.foot-social a{
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid transparent; border-radius: 50%;
  color: var(--grey); opacity: .55;
  transition: opacity .3s var(--ease), color .3s var(--ease);
}
.foot-social a svg{ width: 16px; height: 16px; }
.foot-social a:hover{ opacity: 1; color: var(--accent); }

.foot-cols{ display: flex; gap: 60px; flex-wrap: wrap; }
.foot-col b{ display:block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-dim); margin-bottom: 16px; }
.foot-col a{ display:block; font-size: 14px; color: var(--grey); padding: 6px 0; transition: color .3s var(--ease); }
.foot-col a:hover{ color: var(--accent); }
.foot-col p{ font-size: 13.5px; color: var(--grey); line-height: 1.6; max-width: 30ch; }
.foot-map{ border-radius: 4px; overflow: hidden; margin-top: 12px; }
.foot-map iframe{ display: block; }

.foot-bottom{
  display: flex; justify-content: space-between; align-items: center; padding-top: 26px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--grey-dim); flex-wrap: wrap; gap: 16px;
}

.theme-toggle{
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; border: 1px solid var(--line-strong);
  padding: 9px 16px;
  color: var(--grey);
  transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
.theme-toggle:hover{ border-color: var(--accent); color: var(--off-white); background: var(--accent-glow); }
.theme-toggle svg{ width: 15px; height: 15px; flex-shrink: 0; }
.theme-toggle .icon-moon{ display: none; }
.theme-toggle .theme-toggle-label{ font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
:root[data-theme="light"] .theme-toggle .icon-sun{ display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon{ display: block; }

/* ================= MODAL (service detail) ================= */
.modal-overlay{
  position: fixed; inset: 0; z-index: 500;
  background: rgba(5,7,10,0.72);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay[hidden]{ display: none; }
.modal{
  position: relative;
  background: var(--charcoal-2);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  max-width: 680px; width: 100%;
  max-height: 86vh; overflow-y: auto;
  padding: clamp(32px, 4.5vw, 56px);
  animation: modalIn .35s var(--ease) both;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-dim) transparent;
}
.modal::-webkit-scrollbar{ width: 8px; }
.modal::-webkit-scrollbar-track{ background: transparent; }
.modal::-webkit-scrollbar-thumb{ background: var(--accent-dim); border-radius: 8px; }
.modal::-webkit-scrollbar-thumb:hover{ background: var(--accent); }
@keyframes modalIn{ from{ opacity: 0; transform: translateY(16px) scale(.98);} to{ opacity: 1; transform: translateY(0) scale(1);} }
.modal-close{
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-strong); color: var(--grey);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.modal-close:hover{ color: var(--off-white); border-color: var(--accent); }
.modal-close svg{ width: 16px; height: 16px; }
.modal-body h2{ font-size: clamp(24px, 3vw, 34px); margin: 14px 0 10px; max-width: 20ch; }
.modal-tagline{ font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--grey); font-size: 17px; margin-bottom: 22px; }
.modal-meta{
  display: flex; flex-wrap: wrap;
  background: var(--charcoal-3); border: 1px solid var(--line); border-radius: 3px;
  margin-bottom: 26px; overflow: hidden;
}
.modal-meta div{
  flex: 1 1 120px;
  padding: 12px 18px;
  border-right: 1px solid var(--line);
}
.modal-meta div:last-child{ border-right: none; }
.modal-meta b{ display:block; font-size: 10px; letter-spacing:0.1em; text-transform: uppercase; color: var(--grey-dim); margin-bottom: 4px; }
.modal-meta span{ font-size: 14.5px; color: var(--off-white); font-weight: 600; }
.modal-desc{ color: var(--grey); font-size: 15px; line-height: 1.6; margin-bottom: 22px; }
.modal-subhead{ font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 24px 0 10px; }
.modal-list{ margin-bottom: 8px; }
.modal-list li{
  font-size: 14px; color: var(--grey); padding: 9px 0; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.modal-list li::before{ content: ''; width: 5px; height: 5px; background: var(--accent); flex-shrink: 0; }
.modal-extra{ margin-top: 22px; }
.modal-extra h4{ font-family: var(--display); text-transform: uppercase; font-size: 14px; margin-bottom: 8px; color: var(--off-white); }
.modal-extra p{ color: var(--grey); font-size: 14px; line-height: 1.65; margin-bottom: 18px; }
.modal-note{
  font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--grey);
  font-size: 14px; line-height: 1.6; margin: 22px 0; padding-left: 16px; border-left: 2px solid var(--accent-dim);
}
.modal-cta{
  margin-top: 8px;
  background: var(--accent); color: #fff;
}
.modal-cta:hover{ background: var(--accent-2); color: #fff; }
.modal-secondary{ margin-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.modal-secondary a{
  font-size: 12.5px; color: var(--grey); border-bottom: 1px solid transparent;
  padding: 4px 0; width: fit-content;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.modal-secondary a:hover{ color: var(--accent); border-color: var(--accent); }

/* ================= UTIL: fade-in icons ================= */
.icon{ width: 34px; height: 34px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px){
  .philo-grid{ grid-template-columns: 1fr; }
  .philo-item{ border-right: none; border-bottom: 1px solid var(--line); }
  .about-grid{ grid-template-columns: 1fr; }
  .about-portrait{ aspect-ratio: 4 / 5; }
  .service-row{ grid-template-columns: 1fr; min-height: unset; }
  .service-row:nth-child(even) .service-visual{ order: 0; }
  .service-visual{ min-height: 300px; }
  .process-grid{ grid-template-columns: 1fr 1fr; }
  .pstep{ border-bottom: 1px solid var(--line); }
  .testi-card{ flex-basis: 50%; }
  .why-grid{ grid-template-columns: 1fr 1fr; }
  .why-checks{ grid-template-columns: 1fr 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 768px){
  .nav-links{ display: none; }
  .nav-toggle{ display: flex; }
  .nav-cta{ display: none; }
  .nav-social{ display: none; }
  .hero{ min-height: 100svh; }
  .scroll-cue{ display: none; }
  .section-head{ flex-direction: column; align-items: flex-start; }
  .section-head > div,
  .section-head .lede{ flex-basis: auto; max-width: 100%; }
  .about-stats{ grid-template-columns: 1fr; }
  .astat{ padding: 22px 16px; border-right: none; border-top: 1px solid var(--line); }
  .astat:first-child{ border-top: none; }
  .process-grid{ grid-template-columns: 1fr; }
  .pstep{ border-right: none; }
  .testi-card{ flex-basis: 100%; min-width: 0; border-right: none; }
  .testi-meta{ flex-wrap: wrap; }
  .testi-name{ white-space: normal; overflow: visible; text-overflow: clip; flex-basis: 100%; }
  .service-row-featured::before{
    font-size: 8.5px; padding: 5px 10px; white-space: normal; text-align: center;
    max-width: calc(100% - 24px); letter-spacing: 0.06em;
  }
  .foot-top{ flex-direction: column; }
  .why-grid{ grid-template-columns: 1fr 1fr; }
  .why-checks{ grid-template-columns: 1fr; column-gap: 0; }
  .hero-creds-list li::before{ display: none; }
  .gallery-grid{ grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
}

@media (max-width: 480px){
  .service-copy{ padding: 32px 20px; }
  .why-grid{ grid-template-columns: 1fr; }
  .modal{ padding: 28px 20px; }
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 2px solid var(--accent); outline-offset: 3px;
}
