/* =========================================================
   Andrea Dungula — Sócia Fundadora & CEO · ENGHIDRO
   Direcção: água — azuis da ENGHIDRO, turquesa, espuma
   Tipografia: Outfit (títulos) + Inter (texto)
   ========================================================= */

@property --wx { syntax: "<length>"; inherits: true; initial-value: 0px; }

:root {
  /* paleta da água */
  --deep: #052A45;
  --deep-2: #073A5F;
  --ocean: #0A6CB8;
  --blue: #1677FF;
  --aqua: #1FB6D9;
  --aqua-2: #5FD6EC;
  --foam: #F3FAFC;
  --mist: #E2F1F7;
  --ink: #062A43;
  --water: linear-gradient(115deg, #1677FF 0%, #129FE4 38%, #23C3DF 68%, #7FE0EF 100%);
  --water-deep: linear-gradient(180deg, #052A45 0%, #073A5F 55%, #052A45 100%);

  /* tema claro (por omissão) */
  --bg: var(--foam);
  --fg: var(--ink);
  --fg-soft: rgba(6, 42, 67, .66);
  --line: rgba(6, 42, 67, .12);
  --line-2: rgba(6, 42, 67, .24);
  --accent: #0A84D6;
  --accent-soft: rgba(10, 132, 214, .1);
  --panel: #FFFFFF;
  --wave-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 18'%3E%3Cpath d='M0 9 Q40 0 80 9 T160 9 V18 H0Z' fill='%230A84D6'/%3E%3C/svg%3E");

  --display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --pad: clamp(16px, 4vw, 64px);
}

.theme-deep {
  --bg: var(--deep);
  --fg: #EAF7FB;
  --fg-soft: rgba(234, 247, 251, .68);
  --line: rgba(143, 230, 242, .16);
  --line-2: rgba(143, 230, 242, .32);
  --accent: #5FD6EC;
  --accent-soft: rgba(95, 214, 236, .14);
  --panel: rgba(255, 255, 255, .05);
  --wave-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 18'%3E%3Cpath d='M0 9 Q40 0 80 9 T160 9 V18 H0Z' fill='%235FD6EC'/%3E%3C/svg%3E");
  background: var(--water-deep);
  color: var(--fg);
  overflow-x: clip;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--foam); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--foam);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
p { margin: 0 0 18px; }
[hidden] { display: none !important; }
::selection { background: var(--aqua); color: #fff; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 4px; }

main > section, .footer { position: relative; }
.wrap { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Tipografia ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 0 0 26px;
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
}
.kicker::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--water); }

.display {
  margin: 0 0 34px;
  font-family: var(--display); font-weight: 300;
  font-size: clamp(40px, 5.6vw, 92px); line-height: 1.02; letter-spacing: -.035em;
  color: var(--fg);
}
.display--sm { font-size: clamp(36px, 4.6vw, 74px); }
.display em, .contact__title em, .hero__headline em { font-style: normal; font-weight: 500; }

.water-text {
  background-image: var(--water);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: flow 8s ease-in-out infinite alternate;
}
.theme-deep .water-text { background-image: linear-gradient(115deg, #5FD6EC 0%, #C4F4FA 40%, #2CC9E0 70%, #8FE6F2 100%); }
@keyframes flow { to { background-position: 100% 0; } }

.lede { font-size: clamp(17px, 1.35vw, 20px); color: var(--fg); line-height: 1.65; }
.lede strong { color: var(--accent); font-weight: 600; }

.line { display: block; overflow: hidden; padding: .1em 0 .08em; margin: -.1em 0 -.08em; }
.line__in { display: block; will-change: transform; }

/* texto que se enche de água */
.fill-text {
  color: transparent; -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.2px var(--accent);
  background-image: var(--wave-img), linear-gradient(var(--accent), var(--accent));
  background-repeat: repeat-x, no-repeat;
  background-size: 160px 18px, 100% var(--fill, 0%);
  background-position: left var(--wx) bottom var(--fill, 0%), left 0 bottom 0;
  -webkit-background-clip: text; background-clip: text;
  animation: waveX 2.6s linear infinite;
}
@keyframes waveX { to { --wx: 160px; } }

/* ---------- Ondas entre secções ---------- */
.wave {
  position: absolute; left: 0; right: 0; top: -88px; height: 90px; z-index: 5;
  overflow: hidden; pointer-events: none; color: var(--bg);
}
.wave svg { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; }
.wave .w1 { opacity: .25; animation: waveSlide 14s linear infinite; }
.wave .w2 { opacity: .5; animation: waveSlide 10s linear infinite reverse; }
.wave .w3 { animation: waveSlide 18s linear infinite; }
@keyframes waveSlide { to { transform: translateX(-50%); } }
.has-wave { z-index: 3; }

/* fundo líquido nas secções claras */
.liquid { overflow-x: clip; }
.liquid::before, .liquid::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none; border-radius: 50%;
  filter: blur(70px); opacity: .45;
}
.liquid::before { width: 520px; height: 520px; left: -160px; top: 12%; background: radial-gradient(circle, rgba(31, 182, 217, .55), transparent 70%); animation: drift1 22s ease-in-out infinite alternate; }
.liquid::after { width: 620px; height: 620px; right: -200px; bottom: 6%; background: radial-gradient(circle, rgba(22, 119, 255, .35), transparent 70%); animation: drift2 26s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(180px, 120px) scale(1.2); } }
@keyframes drift2 { to { transform: translate(-160px, -140px) scale(.85); } }
.liquid > .wrap { position: relative; z-index: 1; }

/* cáusticas nas secções profundas */
.theme-deep::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .55;
  background:
    radial-gradient(40% 30% at 20% 20%, rgba(95, 214, 236, .14), transparent 70%),
    radial-gradient(35% 28% at 80% 70%, rgba(22, 119, 255, .16), transparent 70%);
  animation: caustic 16s ease-in-out infinite alternate;
}
@keyframes caustic { to { transform: translate3d(2%, -3%, 0) scale(1.08); opacity: .8; } }
.theme-deep > .wrap { position: relative; z-index: 1; }

/* ---------- Links e botões ---------- */
.u-link { position: relative; display: inline-block; }
.u-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease);
}
.u-link:hover::after { transform: scaleX(1); transform-origin: left; }

.pill {
  display: inline-flex; align-items: center; padding: 11px 22px; border-radius: 999px;
  border: 1px solid var(--nav-line); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transition: background .4s, color .4s, border-color .4s;
}
.pill:hover { background: var(--aqua); color: #fff; border-color: var(--aqua); }

/* botão que se enche de água */
.btn-water {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 19px 36px; border-radius: 999px;
  background: var(--water); background-size: 160% 100%;
  color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 18px 40px -18px rgba(22, 119, 255, .7);
  transition: box-shadow .6s;
}
.btn-water::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 105%; height: 160%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 12'%3E%3Cpath d='M0 6 Q20 0 40 6 T80 6 V12 H0Z' fill='%23052A45'/%3E%3C/svg%3E") repeat-x left var(--wx) top / 80px 12px,
    linear-gradient(#052A45, #052A45) no-repeat left 0 top 11px / 100% 100%;
  transition: top .8s var(--ease);
  animation: waveX 1.6s linear infinite;
}
.btn-water:hover::before { top: -30%; }
.btn-water:hover { box-shadow: 0 22px 50px -18px rgba(5, 42, 69, .7); }
.btn-water span { position: relative; }
.btn-water--block { width: 100%; }

.btn-line {
  display: inline-flex; align-items: center; justify-content: center; padding: 19px 32px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--fg);
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  transition: background .4s, color .4s, border-color .4s;
}
.btn-line:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- Ondulação ao clicar ---------- */
.ripple {
  position: fixed; z-index: 400; pointer-events: none; left: 0; top: 0;
  width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  border: 1.5px solid rgba(31, 182, 217, .8);
  animation: ripple 1.1s var(--ease) forwards;
}
.ripple--2 { animation-delay: .12s; opacity: 0; border-color: rgba(22, 119, 255, .6); }
@keyframes ripple { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(7); opacity: 0; } }

/* ---------- Preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: radial-gradient(70% 70% at 50% 40%, #FFFFFF, var(--mist));
  clip-path: circle(150% at 50% 50%);
  transition: clip-path 1.3s var(--ease-io);
  animation: loaderFailSafe 0s 7s forwards;
}
.loader.is-done { clip-path: circle(0% at 50% 50%); }
@keyframes loaderFailSafe { to { clip-path: circle(0% at 50% 50%); visibility: hidden; } }
.loader__inner { width: min(340px, 76vw); text-align: center; }
.loader__mark {
  display: block; margin-bottom: 30px;
  font-family: var(--display); font-weight: 600; font-size: 110px; line-height: 1; letter-spacing: -.04em;
}
.loader__bar { height: 2px; border-radius: 2px; background: rgba(6, 42, 67, .1); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--water); transform: scaleX(0); transform-origin: left; }
.loader__row { display: flex; justify-content: space-between; margin-top: 14px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--fg-soft); }
.loader__count { color: var(--accent); font-variant-numeric: tabular-nums; }

/* ---------- Cursor (bolha) ---------- */
.cursor { display: none; }
html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: auto; }
html.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; transform: translate3d(-100px, -100px, 0); }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--aqua); }
.cursor__ring {
  width: 42px; height: 42px; margin: -21px 0 0 -21px;
  display: grid; place-items: center;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease);
}
.cursor__ring::before {
  content: ""; position: absolute; inset: 0;
  border: 1.5px solid rgba(31, 182, 217, .75);
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .55), rgba(95, 214, 236, .08) 45%, transparent 70%);
  border-radius: 48% 52% 50% 50% / 52% 48% 52% 48%;
  animation: bubble 3s ease-in-out infinite;
  transition: background .4s, border-color .4s;
}
@keyframes bubble {
  33% { border-radius: 54% 46% 48% 52% / 46% 54% 46% 54%; }
  66% { border-radius: 46% 54% 54% 46% / 52% 46% 54% 48%; }
}
.cursor__label { position: relative; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .3s; }
.cursor.is-hover .cursor__ring { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
.cursor.is-label .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
.cursor.is-label .cursor__ring::before { background: var(--water); border-color: transparent; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }

/* ---------- Indicador de nível (progresso) ---------- */
.level {
  position: fixed; right: 22px; bottom: 22px; z-index: 110;
  width: 54px; height: 54px; border-radius: 50%; overflow: hidden;
  background: rgba(255, 255, 255, .75); backdrop-filter: blur(8px);
  border: 1px solid rgba(10, 132, 214, .3);
  box-shadow: 0 10px 30px -12px rgba(5, 42, 69, .4);
  opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s var(--ease);
}
.level.is-on { opacity: 1; transform: none; }
.level__water {
  position: absolute; left: -10%; right: -10%; bottom: 0; height: calc(var(--p, 0) * 100% + 6px);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8'%3E%3Cpath d='M0 4 Q10 0 20 4 T40 4 V8 H0Z' fill='%231FB6D9'/%3E%3C/svg%3E") repeat-x left var(--wx) top / 40px 8px,
    linear-gradient(#1FB6D9, #1677FF) no-repeat left 0 top 7px / 100% 100%;
  animation: waveX 1.4s linear infinite;
}
.level__arrow { position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; color: var(--ink); }

/* ---------- Navegação ---------- */
.nav {
  --nav-fg: var(--ink); --nav-line: rgba(6, 42, 67, .2);
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  color: var(--nav-fg);
  transition: transform .7s var(--ease), background .5s, color .4s;
}
.nav.on-dark { --nav-fg: #EAF7FB; --nav-line: rgba(143, 230, 242, .3); }
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-solid { background: linear-gradient(rgba(243, 250, 252, .9), rgba(243, 250, 252, 0)); }
.nav.is-solid.on-dark { background: linear-gradient(rgba(5, 42, 69, .85), rgba(5, 42, 69, 0)); }
.nav.menu-open { --nav-fg: #EAF7FB; --nav-line: rgba(143, 230, 242, .3); background: none !important; }
.nav__brand { display: inline-flex; align-items: center; gap: 12px; }
.mono {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--water); color: #fff;
  font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -.02em;
  transition: transform .8s var(--ease);
}
.nav__brand:hover .mono { transform: rotate(-14deg) scale(1.05); }
.nav__name { font-family: var(--display); font-weight: 500; font-size: 19px; letter-spacing: -.01em; }
.nav__right { display: flex; align-items: center; gap: 12px; }
.burger { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--nav-line); z-index: 130; transition: border-color .4s; }
.burger:hover { border-color: var(--aqua); }
.burger span { position: absolute; left: 15px; right: 15px; height: 1.5px; background: var(--nav-fg); transition: transform .6s var(--ease), top .6s var(--ease), background .4s; }
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 27px; }
.burger[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }

.overlay {
  position: fixed; inset: 0; z-index: 110;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--pad) 40px;
  background: radial-gradient(80% 80% at 80% 10%, rgba(31, 182, 217, .25), transparent 60%), var(--water-deep);
  color: #EAF7FB;
  clip-path: circle(0% at calc(100% - 60px) 46px);
  transition: clip-path 1s var(--ease-io), visibility 0s linear 1s;
  visibility: hidden;
}
.overlay.is-open { clip-path: circle(150% at calc(100% - 60px) 46px); visibility: visible; transition: clip-path 1s var(--ease-io), visibility 0s; }
.overlay__nav { display: flex; flex-direction: column; }
.overlay__nav a {
  display: flex; align-items: baseline; gap: 22px;
  font-family: var(--display); font-weight: 300; font-size: clamp(40px, 7vw, 96px); line-height: 1.12; letter-spacing: -.035em;
  opacity: 0; transform: translateY(40px);
  transition: color .4s, padding .6s var(--ease);
}
.overlay.is-open .overlay__nav a { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease), color .4s, padding .6s var(--ease); }
.overlay.is-open .overlay__nav a:nth-child(1) { transition-delay: .25s; }
.overlay.is-open .overlay__nav a:nth-child(2) { transition-delay: .3s; }
.overlay.is-open .overlay__nav a:nth-child(3) { transition-delay: .35s; }
.overlay.is-open .overlay__nav a:nth-child(4) { transition-delay: .4s; }
.overlay.is-open .overlay__nav a:nth-child(5) { transition-delay: .45s; }
.overlay.is-open .overlay__nav a:nth-child(6) { transition-delay: .5s; }
.overlay__nav a i { font-family: var(--sans); font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--aqua-2); }
.overlay__nav a:hover { color: var(--aqua-2); padding-left: 24px; }
.overlay__foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(143, 230, 242, .2); font-size: 13px; color: rgba(234, 247, 251, .65); }

/* ---------- Hero (retrato com a gota) ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 640px;
  display: flex; align-items: center;
  padding: 110px var(--pad) 90px; overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(55% 70% at 72% 46%, #FFFFFF 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(70% 55% at 0% 100%, rgba(31, 182, 217, .22), transparent 70%),
    radial-gradient(50% 50% at 100% 0%, rgba(22, 119, 255, .12), transparent 70%),
    linear-gradient(165deg, #F3FAFC 0%, #DCEFF6 100%);
}
.hero::before {
  content: ""; position: absolute; inset: -20%; pointer-events: none; opacity: .5;
  background:
    radial-gradient(18% 14% at 30% 30%, rgba(255, 255, 255, .9), transparent 70%),
    radial-gradient(14% 10% at 60% 70%, rgba(127, 224, 239, .35), transparent 70%),
    radial-gradient(16% 12% at 15% 75%, rgba(255, 255, 255, .8), transparent 70%);
  animation: caustic 14s ease-in-out infinite alternate;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__fallback { position: absolute; z-index: 0; right: 6%; bottom: 0; height: 92%; width: auto; max-width: none; }
html.webgl .hero__fallback { display: none; }
.hero__content { position: relative; z-index: 2; max-width: 600px; }
.hero__headline {
  margin: 0 0 32px;
  font-family: var(--display); font-weight: 300;
  font-size: clamp(40px, 5vw, 80px); line-height: 1.04; letter-spacing: -.04em;
  color: var(--ink);
}
.hero__id { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero__name { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2vw, 30px); line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.hero__role { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.hero__lead { max-width: 30em; margin: 0 0 32px; font-size: clamp(15px, 1.1vw, 17px); color: var(--fg-soft); }
.hero__lead em { font-style: normal; color: var(--ink); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__facts {
  position: absolute; z-index: 2; left: var(--pad); bottom: 96px;
  display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0; padding: 0; list-style: none;
  font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-soft);
}
.hero__facts b { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; color: var(--accent); margin-right: 6px; }
.scroll-hint {
  position: absolute; z-index: 2; right: var(--pad); bottom: 92px;
  display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--fg-soft);
}
.scroll-hint__line { position: relative; width: 2px; height: 64px; border-radius: 2px; background: rgba(6, 42, 67, .12); overflow: hidden; }
.scroll-hint__line::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--water); animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- Fundadora ---------- */
.founder { padding: clamp(110px, 13vw, 190px) 0; }
.founder__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 8vw, 130px); align-items: center; }
.founder__media { position: relative; margin: 0; }
.founder__frame, .stage__frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5.2; background: #DADDE6; border-radius: 28px; }
.founder__frame img, .stage__frame img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; object-position: 50% 20%; }
.founder__media::before {
  content: ""; position: absolute; inset: 26px -26px -26px 26px; z-index: -1; border-radius: 30px;
  background: var(--water); opacity: .35;
}
.founder__cap { display: flex; justify-content: space-between; margin-top: 46px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-soft); }
.founder__seal { position: absolute; right: -58px; top: -58px; width: 150px; height: 150px; }
.founder__seal text, .stage__ring text { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .3em; fill: var(--accent); }
.spin { animation: spin 22s linear infinite; }
.spin--rev { animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.founder__copy p:not(.kicker):not(.lede) { color: var(--fg-soft); font-size: 16px; max-width: 36em; }
.founder__sign { margin-top: 40px; display: flex; flex-direction: column; gap: 4px; }
.sign { font-family: var(--display); font-weight: 300; font-size: 40px; line-height: 1; letter-spacing: -.03em; }
.sign__role { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(40px, 6vw, 100px) 0 clamp(130px, 15vw, 220px); }
.manifesto__text {
  margin: 0; max-width: 18em;
  font-family: var(--display); font-weight: 300;
  font-size: clamp(30px, 4.4vw, 72px); line-height: 1.14; letter-spacing: -.03em;
}
.word { display: inline-block; color: rgba(234, 247, 251, .16); transition: color .35s, transform .5s var(--ease); transform: translateY(.12em); }
.word.is-on { color: var(--fg); transform: none; }
.quote .word { color: rgba(6, 42, 67, .14); }
.quote .word.is-on { color: var(--accent); }

/* ---------- Império ---------- */
.empire { padding: clamp(110px, 12vw, 180px) 0 0; background: var(--foam); }
.section-top { margin-bottom: clamp(50px, 7vw, 96px); }
.section-top--split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.section-top__aside { color: var(--fg-soft); max-width: 28em; justify-self: end; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  position: relative; overflow: hidden; padding: 38px 30px 40px; border-radius: 26px;
  background: rgba(255, 255, 255, .7); border: 1px solid rgba(10, 132, 214, .12);
  backdrop-filter: blur(6px);
  transition: transform .6s var(--ease), box-shadow .6s;
}
.stat:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(10, 108, 184, .45); }
.stat__num {
  display: flex; align-items: baseline; gap: 4px; margin-bottom: 10px;
  font-family: var(--display); font-weight: 600; font-size: clamp(56px, 6.4vw, 108px); line-height: 1; letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}
.stat__num small { font-size: .4em; font-weight: 600; -webkit-text-fill-color: var(--accent); -webkit-text-stroke: 0; }
.stat__label { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-soft); }

.ticker { overflow: hidden; padding: clamp(50px, 7vw, 100px) 0; }
.ticker__track { display: flex; align-items: center; gap: 4vw; width: max-content; will-change: transform; }
.ticker span { display: inline-block; font-family: var(--display); font-weight: 600; font-size: clamp(60px, 10vw, 170px); line-height: 1.1; letter-spacing: -.045em; white-space: nowrap; color: var(--ink); will-change: transform; }
.ticker span.outline { color: transparent; -webkit-text-stroke: 1.5px var(--accent); font-weight: 300; }
.ticker b { width: 22px; height: 22px; flex: none; background: var(--water); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }

/* ---------- Engenharia 3D ---------- */
.engine { height: 520vh; }
.engine__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.engine__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.engine__head { position: absolute; z-index: 2; left: var(--pad); top: clamp(90px, 12vh, 140px); pointer-events: none; }
.engine__head .display { margin: 0; }
.engine__steps {
  position: absolute; z-index: 2; right: var(--pad); top: 50%; transform: translateY(-50%);
  width: min(380px, 32vw); margin: 0; padding: 0; list-style: none;
}
.engine__steps li {
  display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line);
  opacity: .3; transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.engine__steps li:last-child { border-bottom: 1px solid var(--line); }
.engine__steps li.is-active { opacity: 1; transform: translateX(-12px); }
.engine__n { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--accent); }
.engine__steps h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.1; letter-spacing: -.02em; }
.engine__steps p { margin: 0; font-size: 14px; color: var(--fg-soft); }
.engine__progress { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 36px; height: 2px; border-radius: 2px; background: var(--line); }
.engine__progress span { display: block; height: 100%; border-radius: 2px; background: var(--water); transform: scaleX(0); transform-origin: left; }
.engine__hint { position: absolute; z-index: 2; left: var(--pad); bottom: 50px; margin: 0; font-size: 10px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--fg-soft); }

/* ---------- Áreas ---------- */
.areas { padding: clamp(120px, 13vw, 190px) 0; background: var(--foam); }
.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.row {
  position: relative; display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 24px;
  padding: clamp(22px, 2.4vw, 36px) 0; border-top: 1px solid var(--line);
}
.row::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 18px;
  background: linear-gradient(90deg, rgba(31, 182, 217, .16), rgba(22, 119, 255, .04) 70%, transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease);
}
.row__n { font-size: 13px; font-weight: 600; color: var(--accent); }
.row__t { font-family: var(--display); font-weight: 300; font-size: clamp(30px, 4.6vw, 74px); line-height: 1.04; letter-spacing: -.04em; transition: color .5s, transform .7s var(--ease); }
.row__d { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-soft); text-align: right; max-width: 22em; }
.row__thumb { display: none; }
@media (hover: hover) and (pointer: fine) {
  .row:hover::before { transform: scaleX(1); }
  .row:hover .row__t { color: var(--accent); transform: translateX(28px); }
}
.hover-img {
  position: fixed; left: 0; top: 0; z-index: 90; width: 300px; height: 380px; margin: -190px 0 0 -150px;
  pointer-events: none; overflow: hidden; border-radius: 160px 160px 24px 24px;
  clip-path: circle(0% at 50% 50%); transition: clip-path .8s var(--ease);
}
.hover-img.is-on { clip-path: circle(75% at 50% 50%); }
.hover-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); transition: transform 1s var(--ease); }
.hover-img.is-on img { transform: scale(1); }

/* ---------- Obras horizontal ---------- */
.works { background: linear-gradient(180deg, var(--foam), var(--mist)); }
.works__sticky { padding: clamp(90px, 10vw, 140px) 0 60px; }
.works__head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 0 30px; margin-bottom: 40px; }
.works__head .kicker { width: 100%; }
.works__head .display { margin: 0; }
.works__count { font-family: var(--display); font-weight: 500; font-size: 22px; color: var(--fg-soft); font-variant-numeric: tabular-nums; }
.works__count span:first-child { color: var(--accent); }
.works__track {
  display: flex; align-items: flex-start; gap: clamp(18px, 2.2vw, 36px);
  padding: 0 var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.works__track::-webkit-scrollbar { display: none; }
.card { flex: none; margin: 0; scroll-snap-align: start; cursor: zoom-in; }
.card__img { position: relative; overflow: hidden; height: min(56vh, 520px); aspect-ratio: 4 / 3; background: var(--mist); border-radius: 24px; }
.card--tall .card__img { aspect-ratio: 3 / 4; }
.card__img img {
  position: absolute; top: 0; left: -8%; width: 116%; height: 100%; max-width: none; object-fit: cover;
  transform: translate3d(var(--px, 0), 0, 0) scale(var(--s, 1));
  transition: transform .9s var(--ease);
}
.card:hover .card__img img { --s: 1.06; filter: url(#ripple); }
.card figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; }
.card figcaption b { font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: -.02em; }
.card figcaption span { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); padding-top: 7px; white-space: nowrap; }
.works.is-pinned .works__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 0; overflow: hidden; }
.works.is-pinned .works__track { overflow: visible; scroll-snap-type: none; will-change: transform; }

/* ---------- Palco ---------- */
.stage { padding: clamp(120px, 13vw, 190px) 0; }
.stage__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 8vw, 130px); align-items: center; }
.stage__media { position: relative; }
.stage__frame { border-radius: 999px 999px 28px 28px; }
.stage__ring { position: absolute; left: -36px; bottom: -40px; width: 190px; height: 190px; }
.topics { margin: 40px 0 46px; display: grid; gap: 12px; }
.topic {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 54px 1fr; gap: 16px; padding: 22px 24px;
  border-radius: 20px; background: var(--panel); border: 1px solid var(--line);
  --mx: 50%; --my: 50%;
  transition: border-color .4s, transform .6s var(--ease);
}
.topic::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(95, 214, 236, .22), transparent 70%);
}
.topic:hover { border-color: var(--line-2); transform: translateX(6px); }
.topic:hover::before { opacity: 1; }
.topic__n { font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--accent); }
.topic h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.topic p { margin: 0; font-size: 14.5px; color: var(--fg-soft); }

.agenda { margin-top: clamp(70px, 9vw, 120px); }
.agenda__title { font-family: var(--display); font-weight: 300; font-size: 40px; letter-spacing: -.03em; margin: 0 0 28px; }
.agenda__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.event { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.event img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.event__body { padding: 22px 24px 26px; }
.event__date { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.event h4 { margin: 8px 0 6px; font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.2; }
.event p { margin: 0; font-size: 14px; color: var(--fg-soft); }
.event a { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid currentColor; }

/* ---------- Citação ---------- */
.quote { padding: clamp(140px, 16vw, 240px) 0; text-align: center; background: var(--foam); }
.quote__text {
  margin: 0 auto 30px; max-width: 15em;
  font-family: var(--display); font-weight: 300;
  font-size: clamp(38px, 6vw, 108px); line-height: 1.06; letter-spacing: -.045em;
}
.quote__by { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }

/* ---------- Contacto ---------- */
.contact { padding: clamp(120px, 14vw, 200px) 0 clamp(80px, 10vw, 140px); }
.contact__title {
  margin: 0 0 clamp(60px, 8vw, 100px);
  font-family: var(--display); font-weight: 300;
  font-size: clamp(46px, 7.6vw, 136px); line-height: .98; letter-spacing: -.05em;
}
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 8vw, 130px); }
.contact__list { list-style: none; margin: 0 0 40px; padding: 0; }
.contact__list li { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 22px 0; border-top: 1px solid var(--line); font-size: clamp(17px, 1.5vw, 21px); }
.contact__list li:last-child { border-bottom: 1px solid var(--line); }
.contact__list li > span { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.contact__list p { margin: 0; }
.contact__list a { overflow-wrap: anywhere; }

.socials { display: flex; gap: 12px; }
.social { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-2); transition: background .4s, border-color .4s; }
.social svg { width: 20px; height: 20px; fill: none; stroke: var(--fg); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.social svg .fill { fill: var(--fg); stroke: none; }
.social:hover { background: var(--aqua); border-color: var(--aqua); }
.social:hover svg { stroke: #fff; }
.social:hover svg .fill { fill: #fff; }

.form { padding: clamp(28px, 4vw, 52px); border-radius: 28px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { position: relative; display: block; margin-bottom: 28px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 26px 0 12px; background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  font: inherit; font-size: 17px; color: var(--fg); border-radius: 0; transition: border-color .4s;
  -webkit-appearance: none; appearance: none;
}
.field select option { background: var(--deep); color: #EAF7FB; }
.field--select::after { content: "↓"; position: absolute; right: 2px; bottom: 14px; color: var(--accent); pointer-events: none; }
.field textarea { resize: vertical; min-height: 110px; }
.field span {
  position: absolute; left: 0; top: 28px; font-size: 15px; color: var(--fg-soft); pointer-events: none;
  transform-origin: left; transition: transform .5s var(--ease), color .4s, top .5s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span,
.field--select span { top: 0; transform: scale(.74); color: var(--accent); letter-spacing: .16em; text-transform: uppercase; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #FF7A7A; }
.form__note { margin: 16px 0 0; font-size: 13px; color: var(--fg-soft); text-align: center; }

/* ---------- Rodapé ---------- */
.footer { padding: 70px 0 30px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer__logo { height: 56px; width: auto; opacity: .92; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 14px 30px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-soft); }
.footer__nav a:hover { color: var(--fg); }
.to-top { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 18px; transition: background .4s, color .4s; }
.to-top:hover { background: var(--aqua); color: #fff; }
.footer__word {
  --fill: 62%;
  margin: 40px 0 10px; text-align: center;
  font-family: var(--display); font-weight: 700; font-size: 22vw; line-height: .9; letter-spacing: -.06em;
  white-space: nowrap;
}
.footer__bottom { display: flex; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding-right: 70px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-soft); }

.credit { text-transform: none; letter-spacing: .02em; font-size: 13px; }
.credit a { color: var(--accent); font-weight: 600; }
.credit__heart { display: inline-block; text-transform: none; animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(.95); } 45% { transform: scale(1.15); } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 70px 90px;
  background: rgba(5, 42, 69, .95); backdrop-filter: blur(10px); color: #EAF7FB;
  opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-height: 76vh; width: auto; margin: 0 auto; border-radius: 18px; transform: scale(.96); transition: transform .8s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox figcaption { margin-top: 20px; font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: -.02em; }
.lightbox figcaption span { display: block; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--aqua-2); }
.lightbox button { position: absolute; width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(143, 230, 242, .3); font-size: 18px; transition: background .4s; }
.lightbox button:hover { background: var(--aqua); }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 22px; top: 50%; transform: translateY(-50%); }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1100px) {
  .engine__steps { width: min(340px, 40vw); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav { padding: 16px var(--pad); }
  .nav__name { display: none; }
  .wave { top: -44px; height: 46px; }

  .hero { display: block; height: auto; min-height: 0; padding-top: calc(76px + min(56svh, 125vw) + 18px); padding-bottom: 96px; }
  .hero__content { max-width: none; }
  .hero__headline { font-size: clamp(34px, 9.4vw, 52px); margin-bottom: 22px; }
  .hero__lead { margin-bottom: 24px; }
  .hero__cta .btn-water, .hero__cta .btn-line { padding: 17px 26px; }
  .hero__facts, .scroll-hint { display: none; }
  .hero__fallback { right: 50%; transform: translateX(50%); height: min(56svh, 125vw); top: 76px; bottom: auto; }

  .founder__grid, .stage__grid, .contact__grid, .section-top--split { grid-template-columns: 1fr; }
  .founder__media, .stage__media { max-width: 520px; width: 88%; }
  .founder__seal { right: -36px; top: -46px; width: 110px; height: 110px; }
  .stage__ring { left: auto; right: -30px; width: 130px; height: 130px; }
  .section-top__aside { justify-self: start; }

  .engine { height: 460vh; }
  .engine__head { top: 84px; }
  .engine__steps { left: var(--pad); right: var(--pad); top: auto; bottom: 74px; width: auto; transform: none; }
  .engine__steps li { position: absolute; left: 0; right: 0; bottom: 0; border: 0 !important; padding: 18px 20px; border-radius: 18px; background: rgba(5, 42, 69, .78); backdrop-filter: blur(10px); opacity: 0; transform: translateY(16px); border-left: 2px solid var(--aqua-2) !important; }
  .engine__steps li.is-active { opacity: 1; transform: none; }
  .engine__hint { display: none; }

  .row { grid-template-columns: 34px 1fr 72px; gap: 14px; }
  .row__d { grid-column: 2; grid-row: 2; text-align: left; font-size: 10.5px; }
  .row__thumb { display: block; grid-column: 3; grid-row: 1 / span 2; width: 72px; height: 72px; object-fit: cover; border-radius: 50%; }
  .hover-img { display: none; }

  .card__img { height: 46vh; }
  .card__img, .card--tall .card__img { max-width: 82vw; }
  .card figcaption { flex-direction: column; gap: 2px; }
  .card figcaption span { padding-top: 0; }
  .level { right: 14px; bottom: 14px; width: 46px; height: 46px; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .stats { gap: 10px; }
  .stat { padding: 26px 18px 28px; border-radius: 20px; }
  .lightbox { padding: 80px 14px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; transform: none; }
  .lightbox__prev { left: calc(50% - 66px); }
  .lightbox__next { right: calc(50% - 66px); }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .founder__cap { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; }
  .loader { display: none; }
}
