/* ============================================================
   POOL & SUN PISCINAS — v2 "Immersion"
   Dark-first underwater cinematic design
   Type: Instrument Serif (display) + Bricolage Grotesque (body) + Caveat (script)
   ============================================================ */

:root{
  /* Brand */
  --navy:    #0c2d5c;
  --navy-d:  #081e41;
  --abyss:   #031424;
  --deep:    #062437;
  --mid:     #124e6a;
  --aqua:    #4ad9e4;
  --aqua-l:  #a8eff3;
  --cyan:    #7fe3ec;
  --sun:     #f9c82e;
  --sun-d:   #e9b10f;
  --cream:   #fef6e4;
  --sand:    #f4e6c6;
  --paper:   #fafcff;

  /* Functional */
  --text:    var(--cream);
  --text-d:  #b6d2e1;
  --line:    rgba(255, 255, 255, .1);
  --line-d:  rgba(255, 255, 255, .18);
  --ink:     #041220;

  /* Typography */
  --ff-display: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --ff-body: 'Bricolage Grotesque', system-ui, sans-serif;
  --ff-script: 'Caveat', cursive;

  /* Layout */
  --wrap: 1320px;
  --pad: clamp(20px, 5vw, 72px);
  --rhythm: clamp(48px, 8vw, 140px);
  --r: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  background: var(--abyss);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img,svg{ display: block; max-width: 100%; }
img{ height: auto; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul,ol{ list-style: none; padding: 0; margin: 0; }

.svg-defs{ position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap{ width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }

/* Selection */
::selection{ background: var(--sun); color: var(--ink); }

/* Focus — designed, not default */
:focus-visible{
  outline: 2px solid var(--sun);
  outline-offset: 4px;
  border-radius: 6px;
}

/* ========== TYPOGRAPHY PRIMITIVES ========== */
h1,h2,h3,h4,h5{
  font-family: var(--ff-display);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.02;
  margin: 0;
}
em{ font-style: italic; color: var(--sun); }
.script{ font-family: var(--ff-script); font-weight: 600; color: var(--sun); font-size: 1.1em; padding: 0 .1em; line-height: 0.85; display: inline-block; transform: translateY(.08em); }

.eyebrow{
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-body);
  font-size: 12px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--aqua-l);
}
.eyebrow.light{ color: var(--aqua-l); }

.section-title{
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.02;
  max-width: 22ch;
  color: var(--cream);
}
.section-title.white{ color: var(--cream); }
.section-title em{ color: var(--sun); font-style: italic; }

.section-head{ margin-bottom: clamp(32px, 4vw, 64px); }
.section-head.center{ text-align: center; }
.section-head.center .eyebrow,
.section-head.center .section-title{ margin-inline: auto; }
.section-head.center .section-title{ max-width: 17ch; }
.section-head.split{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.section-head.split p{ color: var(--text-d); font-size: 16px; max-width: 48ch; }
.section-head .eyebrow{ display: block; margin-bottom: 18px; }
.section-lead{
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-d);
  max-width: 58ch;
  margin-top: 20px;
}

/* ========== SCROLL PROGRESS ========== */
.scroll-progress{
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span{
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--aqua), var(--sun));
  transition: width .1s linear;
}

/* ========== CUSTOM CURSOR — water droplet ========== */
.cursor{
  pointer-events: none;
  position: fixed; top: 0; left: 0;
  z-index: 500;
  color: var(--sun);
  filter: drop-shadow(0 2px 8px rgba(249, 200, 46, .55));
  transition: color .3s var(--ease), transform .35s var(--ease), filter .3s var(--ease);
  will-change: transform;
}
.cursor-drop{
  display: block;
  transform: translate(-50%, -95%);
  transition: transform .35s var(--ease);
}
body.cursor-hover .cursor{
  color: var(--aqua);
  filter: drop-shadow(0 2px 12px rgba(74, 217, 228, .6));
}
body.cursor-hover .cursor-drop{
  transform: translate(-50%, -95%) scale(1.45) rotate(-6deg);
}
@media (hover: none){ .cursor{ display: none; } }

/* ========== HEADER ========== */
.site-header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 32px;
  padding: 20px var(--pad);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), padding .4s var(--ease);
}
.site-header.scrolled{
  background: rgba(3, 20, 36, .78);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.brand{ display: flex; align-items: center; gap: 12px; }
.brand-logo{
  height: 54px; width: auto;
  filter: brightness(1.1) drop-shadow(0 0 24px rgba(249, 200, 46, .15));
  transition: transform .4s var(--ease);
}
.brand:hover .brand-logo{ transform: rotate(-2deg) scale(1.05); }

.main-nav{ display: flex; justify-content: center; gap: 38px; }
.main-nav a{
  display: inline-flex; align-items: baseline; gap: 7px;
  font-size: 15px; font-weight: 500;
  color: var(--cream);
  position: relative;
  padding: 6px 0;
  opacity: .88;
  transition: opacity .3s var(--ease);
}
.main-nav a span{
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 13px;
  color: var(--aqua);
}
.main-nav a::after{
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--sun);
  transition: right .4s var(--ease);
}
.main-nav a:hover{ opacity: 1; }
.main-nav a:hover::after{ right: 0; }

.btn-chip{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--line-d);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(10px);
  font-size: 14px; font-weight: 500;
  color: var(--cream);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.btn-chip:hover{ border-color: var(--sun); transform: translateY(-1px); }
.chip-live{
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .25);
  animation: live 2s ease-in-out infinite;
}
@keyframes live{
  0%, 100%{ box-shadow: 0 0 0 4px rgba(34, 197, 94, .25); }
  50%{ box-shadow: 0 0 0 7px rgba(34, 197, 94, .05); }
}

.menu-toggle{
  display: none;
  width: 44px; height: 44px;
  padding: 14px;
  flex-direction: column;
  justify-content: space-between;
}
.menu-toggle span{
  display: block; width: 100%; height: 1.5px; background: var(--cream);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
body.menu-open .menu-toggle span:nth-child(1){ transform: translateY(4px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2){ transform: translateY(-4px) rotate(-45deg); }

.mobile-menu{
  position: fixed; inset: 0;
  background: linear-gradient(180deg, var(--abyss), var(--navy-d));
  z-index: 90;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 36px;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
  padding: 80px var(--pad);
}
body.menu-open .mobile-menu{ transform: translateY(0); }
.mobile-menu nav{ display: flex; flex-direction: column; align-items: center; gap: 22px; }
.mobile-menu nav a{
  font-family: var(--ff-display);
  font-size: 40px;
  color: var(--cream);
}
.mobile-menu nav a:hover{ color: var(--sun); font-style: italic; }

/* ========== HERO — UNDERWATER IMMERSION ========== */
.hero{
  position: relative;
  min-height: min(100svh, 860px);
  display: grid;
  place-items: end start;
  padding: clamp(120px, 11vw, 150px) var(--pad) clamp(56px, 6vw, 80px);
  overflow: hidden;
  isolation: isolate;
  background: var(--abyss);
}
.hero-photo{
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-photo img{
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.65) saturate(1.15) contrast(1.08);
  transform: scale(1.06);
  animation: hero-parallax 28s ease-in-out infinite alternate;
}
@keyframes hero-parallax{
  0%{ transform: scale(1.06) translate(0, 0); }
  100%{ transform: scale(1.1) translate(-12px, -8px); }
}
.hero-caustics{
  position: absolute; inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(249, 200, 46, .35), transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(74, 217, 228, .28), transparent 50%),
    radial-gradient(ellipse at 85% 80%, rgba(12, 45, 92, .4), transparent 60%);
  mix-blend-mode: screen;
  opacity: .85;
  animation: caustics-drift 16s ease-in-out infinite alternate;
}
@keyframes caustics-drift{
  0%{ transform: translate(0, 0) scale(1); }
  100%{ transform: translate(-30px, 20px) scale(1.1); }
}
.hero-gradient{
  position: absolute; inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(3, 20, 36, .7) 0%, rgba(3, 20, 36, .1) 35%, rgba(3, 20, 36, .4) 70%, rgba(3, 20, 36, .95) 100%),
    linear-gradient(90deg, rgba(3, 20, 36, .7), transparent 60%);
}

/* Bubbles */
.bubbles{ position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.bubbles span{
  position: absolute;
  left: var(--l);
  bottom: -50px;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .9), rgba(168, 239, 243, .3) 50%, transparent 70%);
  animation: bubble-up var(--t) linear infinite;
  animation-delay: var(--d);
  filter: blur(.5px);
}
@keyframes bubble-up{
  0%{ transform: translate(0, 0); opacity: 0; }
  10%{ opacity: 1; }
  50%{ transform: translate(-20px, -50vh); }
  100%{ transform: translate(20px, -110vh); opacity: 0; }
}

.hero-content{
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 960px;
  display: grid;
  gap: 22px;
}
.hero-kicker{
  display: flex; align-items: center; gap: 14px;
  font-size: 13px;
  color: var(--aqua-l);
  margin: 0;
  letter-spacing: .02em;
}
.k-line{ display: block; width: 48px; height: 1px; background: var(--sun); }
.hero-title{
  font-size: clamp(38px, 5.6vw, 76px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.025em;
  color: var(--cream);
  max-width: 20ch;
  text-shadow: 0 2px 40px rgba(3, 20, 36, .4);
  margin: 0;
}
.hero-title em{ color: var(--sun); font-style: italic; }
.hero-title .big{
  font-style: italic;
  color: var(--aqua);
  letter-spacing: -.035em;
}

.hero-lede{
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--text-d);
  max-width: 50ch;
  margin: 0;
}
.hero-lede strong{ color: var(--cream); font-weight: 600; }

.hero-ctas{ display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }

.btn{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 24px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  letter-spacing: .01em;
  transition: transform .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn svg{ transition: transform .35s var(--ease); }
.btn:hover svg{ transform: translateX(4px); }
.btn-sun{
  background: var(--sun);
  color: var(--ink);
  box-shadow: 0 16px 40px -12px rgba(249, 200, 46, .55), 0 0 0 1px rgba(249, 200, 46, .3);
}
.btn-sun:hover{
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 24px 48px -12px rgba(249, 200, 46, .7), 0 0 0 1px rgba(249, 200, 46, .5);
}
.btn-ghost{
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line-d);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover{ background: rgba(255, 255, 255, .08); border-color: var(--aqua); }
.btn.full{ width: 100%; justify-content: center; padding-block: 18px; }

.hero-foot{
  margin-top: 24px;
  border-top: 1px solid var(--line-d);
  padding-top: 20px;
  overflow: hidden;
  max-width: 100%;
}
.ticker{ overflow: hidden; }
.ticker-track{
  display: inline-flex;
  gap: 24px;
  white-space: nowrap;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(15px, 1.4vw, 19px);
  color: var(--aqua-l);
  animation: ticker 45s linear infinite;
  padding-right: 24px;
}
@keyframes ticker{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-50%); }
}

.hero-scroll{
  position: absolute;
  right: var(--pad);
  bottom: clamp(28px, 5vw, 60px);
  z-index: 6;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--aqua-l);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hero-scroll svg{ animation: scroll-hint 2s ease-in-out infinite; }
@keyframes scroll-hint{
  0%, 100%{ transform: translateY(0); opacity: .7; }
  50%{ transform: translateY(6px); opacity: 1; }
}

/* ========== WAVE DIVIDER ========== */
.wave-divider{
  position: relative;
  margin-top: clamp(-60px, -5vw, -80px);
  z-index: 8;
  pointer-events: none;
}
.wave-divider svg{
  display: block;
  width: 100%;
  height: clamp(60px, 9vw, 140px);
}

/* ========== MANIFESTO ========== */
.manifesto{
  background: var(--deep);
  padding: var(--rhythm) 0;
  position: relative;
}
.manifesto::before{
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(180deg, transparent, rgba(12, 45, 92, .25));
  pointer-events: none;
}
.manifesto-text{
  font-family: var(--ff-display);
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1.3;
  font-weight: 400;
  max-width: 32ch;
  color: var(--cream);
  margin: 0 0 clamp(36px, 5vw, 64px);
  letter-spacing: -.01em;
}
.manifesto-text .eyebrow{ display: block; margin-bottom: 22px; font-size: 12px; }
.manifesto-text em{ color: var(--sun); font-style: italic; }
.manifesto-text .light{ color: var(--text-d); }
.manifesto-text strong{ color: var(--aqua); font-weight: 400; }

.stats{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.stats div{
  background: var(--deep);
  padding: 32px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.stats dt{
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--aqua-l);
}
.stats dd{
  margin: 0;
  font-family: var(--ff-display);
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1;
  color: var(--cream);
  letter-spacing: -.03em;
}
.stats dd.small{
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.2;
  font-style: italic;
  color: var(--sun);
}
.stats .plus::after{ content: "+"; color: var(--sun); }

/* ========== SERVICES ========== */
.services{
  background: var(--deep);
  padding: var(--rhythm) 0;
  position: relative;
  overflow: hidden;
}
.services::before{
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 60vw; height: 60vw;
  max-width: 800px; max-height: 800px;
  background: radial-gradient(circle, rgba(74, 217, 228, .12), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.svc-list{
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.svc{
  display: grid;
  grid-template-columns: 80px 1fr 280px;
  gap: clamp(20px, 3vw, 60px);
  align-items: start;
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding .4s var(--ease);
}
.svc::before{
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(74, 217, 228, .04), transparent);
  opacity: 0;
  transition: opacity .4s var(--ease);
  z-index: -1;
}
.svc:hover::before{ opacity: 1; }
.svc:hover{ padding-inline: 8px; }

.svc-num{
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 28px;
  color: var(--sun);
  padding-top: 6px;
}
.svc-body h3{
  font-size: clamp(24px, 2.6vw, 38px);
  color: var(--cream);
  line-height: 1.08;
  margin-bottom: 12px;
  letter-spacing: -.015em;
}
.svc-body p{
  font-size: 16px;
  color: var(--text-d);
  max-width: 56ch;
  margin: 0;
  line-height: 1.55;
}
.svc-body em{ color: var(--aqua); }
.svc-tags{
  display: flex; flex-direction: column; gap: 8px;
  align-items: flex-end;
  padding-top: 10px;
}
.svc-tags span{
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 12px;
  background: rgba(74, 217, 228, .08);
  border: 1px solid rgba(74, 217, 228, .2);
  border-radius: 999px;
  color: var(--aqua-l);
}
.svc.highlight{
  background: linear-gradient(90deg, rgba(249, 200, 46, .05), rgba(74, 217, 228, .03));
  margin-inline: calc(var(--pad) * -0.5);
  padding-inline: calc(var(--pad) * 0.5);
  border-top: 1px solid rgba(249, 200, 46, .2);
  border-bottom: 1px solid rgba(249, 200, 46, .2);
}
.svc.highlight .svc-num{ color: var(--sun); }
.svc.highlight h3{ color: var(--sun); font-style: italic; }
.svc-link{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 20px;
  background: var(--sun);
  color: var(--ink);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
  transition: transform .3s var(--ease);
}
.svc-link:hover{ transform: translateY(-2px); }
.svc-link svg{ transition: transform .3s var(--ease); }
.svc-link:hover svg{ transform: translateX(4px); }

/* ========== TRANSPARENCY (BEFORE/AFTER) ========== */
.transparency{
  background: var(--deep);
  padding: var(--rhythm) 0;
}
.ba-slider{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6), 0 0 0 1px var(--line-d);
}
.ba-slider img{
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-before, .ba-after{
  position: absolute; inset: 0;
}
.ba-after{
  clip-path: inset(0 0 0 50%);
  will-change: clip-path;
}
.ba-label{
  position: absolute;
  top: 20px;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  background: rgba(3, 20, 36, .65);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-d);
  border-radius: 999px;
  pointer-events: none;
}
.ba-label-before{ left: 20px; color: var(--aqua-l); }
.ba-label-after{ right: 20px; color: var(--sun); }

.ba-handle{
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: var(--sun);
  cursor: ew-resize;
  will-change: left;
}
.ba-handle-line{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--sun) 20%, var(--sun) 80%, transparent 100%);
}
.ba-handle-grip{
  position: absolute;
  top: 50%; left: 50%;
  width: 56px; height: 56px;
  transform: translate(-50%, -50%);
  background: var(--sun);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5), 0 0 0 8px rgba(249, 200, 46, .18);
  transition: transform .25s var(--ease);
}
.ba-handle:hover .ba-handle-grip{ transform: translate(-50%, -50%) scale(1.12); }
.ba-caption{
  text-align: center;
  font-size: 14px;
  color: var(--text-d);
  max-width: 64ch;
  margin: 28px auto 0;
}
.ba-caption em{ color: var(--aqua); font-style: italic; }

/* ========== COMPANY ========== */
.company{
  background: linear-gradient(180deg, var(--deep), var(--navy-d));
  padding: var(--rhythm) 0;
  position: relative;
}
.company-grid{
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.company-side{
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6);
}
.company-img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.company-side:hover .company-img{ transform: scale(1.04); }
.company-mark{
  position: absolute;
  bottom: 24px; left: 24px;
  padding: 14px 18px;
  background: rgba(3, 20, 36, .75);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-d);
  border-radius: 14px;
}
.company-logo-mark{
  height: 42px;
  width: auto;
  filter: brightness(1.1);
}
.company-content .eyebrow{ display: block; margin-bottom: 18px; }
.company-content .section-title{ margin-bottom: 40px; }

.pillars{ display: grid; gap: 36px; border-left: 1px solid var(--line-d); padding-left: 28px; }
.pillar h4{
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 26px;
  color: var(--sun);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.pillar p{
  font-size: 16px;
  color: var(--text-d);
  line-height: 1.6;
  max-width: 48ch;
  margin: 0;
}
.pillar em{ color: var(--cream); font-style: normal; font-weight: 600; }

.company-quote{
  margin: clamp(40px, 5vw, 60px) 0 0;
  padding: 28px 32px;
  background: rgba(249, 200, 46, .05);
  border: 1px solid rgba(249, 200, 46, .2);
  border-radius: var(--r);
  border-left: 3px solid var(--sun);
}
.company-quote p{
  font-family: var(--ff-display);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.3;
  color: var(--cream);
  margin: 0 0 10px;
}
.company-quote em{ font-style: italic; color: var(--sun); }
.company-quote cite{
  font-style: normal;
  font-size: 14px;
  color: var(--aqua-l);
  letter-spacing: .02em;
}

/* ========== PLANS ========== */
.plans{
  background: var(--navy-d);
  padding: var(--rhythm) 0;
  position: relative;
  overflow: hidden;
}
.plans::before{
  content: "";
  position: absolute; top: 20%; left: -20%;
  width: 60vw; height: 60vw;
  max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, rgba(249, 200, 46, .1), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}
.plans-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.plan{
  position: relative;
  padding: 36px 32px;
  background: var(--deep);
  border: 1px solid var(--line-d);
  border-radius: var(--r);
  display: flex; flex-direction: column; gap: 18px;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.plan:hover{
  transform: translateY(-6px);
  border-color: var(--aqua);
  box-shadow: 0 24px 48px -16px rgba(74, 217, 228, .3);
}
.plan header{ display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.plan-tag{
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 22px;
  color: var(--sun);
}
.plan h3{
  font-size: clamp(24px, 2.4vw, 30px);
  color: var(--cream);
  line-height: 1.05;
  flex: 1;
}
.plan-pop{
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--sun);
  padding: 5px 10px;
  border-radius: 999px;
}
.plan p{
  font-size: 15px;
  color: var(--text-d);
  line-height: 1.55;
  margin: 0;
  min-height: 4.5em;
}
.plan ul{
  display: grid; gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.plan li{
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--cream);
}
.plan li::before{
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 12px; height: 6px;
  border-left: 1.5px solid var(--sun);
  border-bottom: 1.5px solid var(--sun);
  transform: rotate(-45deg);
}
.plan-cta{
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--aqua);
  border-bottom: 1px solid var(--aqua);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.plan-cta:hover{ color: var(--sun); border-color: var(--sun); transform: translateX(4px); }
.plan.featured{
  border-color: var(--sun);
  background: linear-gradient(180deg, rgba(249, 200, 46, .06), var(--deep));
}

/* ========== CONTACT ========== */
.contact{
  background: var(--abyss);
  padding: var(--rhythm) 0;
  position: relative;
  overflow: hidden;
}
.contact::before{
  content: "";
  position: absolute; top: -10%; right: -20%;
  width: 60vw; height: 60vw;
  max-width: 800px; max-height: 800px;
  background: radial-gradient(circle, rgba(74, 217, 228, .18), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  position: relative;
  z-index: 2;
}
.contact-head .section-title{ color: var(--cream); max-width: 14ch; }
.contact-head .section-title em{ color: var(--sun); }
.contact-intro{
  font-size: 17px;
  color: var(--text-d);
  max-width: 42ch;
  margin: 24px 0 32px;
}
.contact-intro strong{ color: var(--sun); font-weight: 600; }
.contact-info{
  display: grid; gap: 20px;
  border-top: 1px solid var(--line-d);
  padding-top: 28px;
}
.contact-info li{
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  align-items: baseline;
  font-size: 15px;
}
.ci-label{
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--aqua-l);
}
.contact-info a{ color: var(--cream); transition: color .3s var(--ease); }
.contact-info a:hover{ color: var(--sun); }
.socials{ display: inline-flex; gap: 10px; align-items: baseline; }
.socials > span{ color: var(--text-d); }

.contact-form{
  background: linear-gradient(180deg, rgba(12, 45, 92, .4), rgba(8, 30, 65, .4));
  border: 1px solid var(--line-d);
  backdrop-filter: blur(20px);
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--r);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form h3{
  grid-column: 1 / -1;
  font-size: 24px;
  color: var(--cream);
  margin-bottom: 8px;
}
.contact-form label{
  display: flex; flex-direction: column; gap: 6px;
}
.contact-form label.full{ grid-column: 1 / -1; }
.contact-form .lb{
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--aqua-l);
}
.contact-form input,
.contact-form select,
.contact-form textarea{
  font: 400 15px/1.4 var(--ff-body);
  color: var(--cream);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-d);
  padding: 10px 2px;
  resize: vertical;
  transition: border-color .3s var(--ease);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder{ color: rgba(182, 210, 225, .4); }
.contact-form select{ color-scheme: dark; }
.contact-form select option{ background: var(--deep); color: var(--cream); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{
  outline: none;
  border-bottom-color: var(--sun);
}
.contact-form textarea{ min-height: 100px; }

.contact-form .consent{
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-d);
  line-height: 1.5;
}
.contact-form .consent input{
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--sun);
  padding: 0;
  border: 1px solid var(--line-d);
}
.contact-form .consent abbr{ color: var(--aqua); text-decoration: none; border-bottom: 1px dotted var(--aqua); }
.form-note{
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--text-d);
  margin: 0;
  text-align: center;
}

/* ========== FOOTER ========== */
.site-footer{
  background: var(--navy-d);
  color: var(--text-d);
  padding: clamp(60px, 7vw, 90px) 0 32px;
  border-top: 1px solid var(--line-d);
}
.footer-top{
  display: flex; flex-direction: column; gap: 24px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer-logo{
  height: 68px;
  width: auto;
  align-self: flex-start;
  filter: brightness(1.1);
}
.footer-mission{
  font-family: var(--ff-display);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.45;
  font-style: italic;
  color: var(--cream);
  max-width: 52ch;
  margin: 0;
  letter-spacing: -.005em;
}

.footer-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding: 48px 0;
}
.fcol h5{
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--aqua-l);
  margin-bottom: 18px;
}
.fcol ul{ display: grid; gap: 10px; }
.fcol li, .fcol li a{ font-size: 14px; color: var(--text-d); transition: color .3s var(--ease); }
.fcol a:hover{ color: var(--sun); }

.footer-legal{
  display: flex; justify-content: space-between; gap: 12px 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: rgba(168, 239, 243, .55);
  flex-wrap: wrap;
}
.dev-credit{ width: 100%; padding-top: 6px; font-size: 11px; letter-spacing: .02em; color: rgba(168, 239, 243, .4); }
.dev-credit a{
  color: var(--sun);
  border-bottom: 1px dotted rgba(249, 200, 46, .5);
  padding-bottom: 1px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.dev-credit a:hover{ color: var(--cream); border-bottom-color: var(--cream); }

/* ========== FAB ========== */
.fab{
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 80;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px -8px rgba(37, 211, 102, .6);
  transition: transform .3s var(--ease);
}
.fab::before{
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: #25d366;
  opacity: .5;
  z-index: -1;
  animation: fab-ring 2.5s ease-out infinite;
}
@keyframes fab-ring{
  0%{ transform: scale(1); opacity: .55; }
  100%{ transform: scale(1.7); opacity: 0; }
}
.fab:hover{ transform: scale(1.08); }

/* ========== REVEAL ========== */
.reveal{ opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in{ opacity: 1; transform: translateY(0); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px){
  :root{ --rhythm: clamp(56px, 7vw, 96px); }
  .main-nav{ display: none; }
  .menu-toggle{ display: flex; }
  .btn-chip{ display: none; }

  .hero-title{ font-size: clamp(36px, 6.8vw, 64px); }

  .svc{ grid-template-columns: 60px 1fr; }
  .svc-tags{ grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; align-items: flex-start; flex-wrap: wrap; padding-left: calc(60px + clamp(20px, 3vw, 60px)); padding-top: 4px; }
  .svc.highlight .svc-link{ grid-column: 1 / -1; justify-self: start; margin-left: calc(60px + clamp(20px, 3vw, 60px)); }

  .section-head.split{ grid-template-columns: 1fr; }

  .company-grid{ grid-template-columns: 1fr; }
  .company-side{ aspect-ratio: 16/9; max-height: 420px; }

  .plans-grid{ grid-template-columns: 1fr; }

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

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

@media (max-width: 640px){
  :root{ --rhythm: 44px; }
  body{ font-size: 16px; }
  .hero{ padding-top: 110px; min-height: auto; }
  .hero-title{ font-size: clamp(32px, 8.5vw, 52px); }
  .ba-caption{ margin-top: 18px; }
  .stats div{ padding: 22px 18px; gap: 8px; }
  .company-side{ aspect-ratio: 4/3; }
  .footer-top{ padding-bottom: 32px; }
  .footer-grid{ padding: 32px 0; }
  .hero-ctas{ flex-direction: column; align-items: stretch; }
  .hero-ctas .btn{ justify-content: center; }
  .hero-scroll{ display: none; }

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

  .svc{ grid-template-columns: 50px 1fr; gap: 16px; }
  .svc-tags{ padding-left: calc(50px + 16px); }
  .svc.highlight .svc-link{ margin-left: calc(50px + 16px); }
  .svc-body h3{ font-size: clamp(26px, 7vw, 36px); }

  .ba-slider{ aspect-ratio: 4/5; }
  .ba-handle-grip{ width: 46px; height: 46px; }

  .contact-form{ grid-template-columns: 1fr; padding: 24px; }

  .footer-grid{ grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .footer-legal{ flex-direction: column; gap: 8px; }

  .fab{ bottom: 16px; right: 16px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html{ scroll-behavior: auto; }
  .reveal{ opacity: 1; transform: none; }
  .cursor{ display: none; }
}

/* Loading state */
body.is-loading .hero-content{ opacity: 0; }
body:not(.is-loading) .hero-content{ opacity: 1; transition: opacity .8s var(--ease) .2s; }
