/* Liber Clinic — landing provisória
   Paleta e tipografia do guia da marca 2025. Movimento inspirado em leitura lenta:
   texto que ganha foco, imagem que abre, lista que acende. */
:root {
  --marfim: #DBDAD4;
  --areia: #C2B8AB;
  --caramelo: #B1946C;
  --grafite: #212121;
  --paper: #ECEBE7;
  --ink: var(--grafite);
  --line: #CFCBC3;
  --muted: #6B6862;
  --muted-dark: #9C978E;
  --gutter: clamp(20px, 4vw, 64px);
  --font: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15px/1.6 var(--font); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
h1, h2, h3, p, figure, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
em { font-style: normal; color: var(--caramelo); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; }

.label { font: 500 11px/1.4 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Two-line section label (ex.: "A clínica / Receber bem") */
.pair { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; line-height: 1.3; }
.pair span:first-child { color: var(--muted); }
.pair--dark span:first-child { color: var(--muted-dark); }

/* Header */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px var(--gutter);
  transition: background .5s var(--ease), color .5s var(--ease), padding .5s var(--ease);
}
.top.is-scrolled { background: rgba(236,235,231,.82); backdrop-filter: blur(14px); padding-block: 8px; }
.top.is-dark { color: var(--marfim); background: rgba(33,33,33,.78); }
.logo { justify-self: start; display: block; color: var(--grafite); transition: color .5s var(--ease); }
.top.is-dark .logo, .menu-open .logo { color: var(--caramelo); }
.logo__sign { display: block; height: 52px; width: auto; transition: height .5s var(--ease); }
.top.is-scrolled .logo__sign { height: 44px; }
.top__where { display: flex; flex-direction: column; align-items: center; font-size: 12px; line-height: 1.3; text-align: center; opacity: 0; transition: opacity .4s var(--ease); }
.top.is-scrolled .top__where { opacity: 1; }
.top__where-a { color: var(--muted); }
.top.is-dark .top__where-a { color: var(--muted-dark); }
.top__where.is-swapping { opacity: 0 !important; }
.top__right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.top__cta {
  font: 500 12px/1 var(--font); text-decoration: none; padding: 11px 16px; border-radius: 999px;
  background: rgba(33,33,33,.06); transition: background .3s var(--ease), color .3s var(--ease);
}
.top.is-dark .top__cta { background: rgba(219,218,212,.12); }
.top__cta:hover { background: var(--caramelo); color: var(--grafite); }
.burger { width: 40px; height: 40px; border-radius: 12px; border: 0; cursor: pointer; color: inherit; background: rgba(33,33,33,.06); display: grid; place-items: center; transition: background .3s var(--ease); }
.top.is-dark .burger, .menu-open .burger { background: rgba(219,218,212,.12); }
.burger i { position: relative; width: 16px; height: 6px; }
.burger i::before, .burger i::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger i::before { top: 0; } .burger i::after { top: 5px; }
.menu-open .burger i::before { top: 3px; transform: rotate(45deg); }
.menu-open .burger i::after { top: 3px; transform: rotate(-45deg); }

/* Menu */
.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--grafite); color: var(--marfim);
  display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s;
}
.menu-open .menu { opacity: 1; visibility: visible; }
.menu-open .top { color: var(--marfim); background: transparent; backdrop-filter: none; }
.menu-open .top__where, .menu-open .top__cta { opacity: 0; pointer-events: none; }
.menu__list li { border-top: 1px solid rgba(219,218,212,.12); overflow: hidden; }
.menu__list li:last-child { border-bottom: 1px solid rgba(219,218,212,.12); }
.menu__list a {
  display: flex; align-items: baseline; gap: 20px; padding: 16px 0; text-decoration: none;
  font: 300 clamp(28px, 4.4vw, 52px)/1.1 var(--font); letter-spacing: -.02em;
  filter: blur(8px); opacity: 0; transform: translateY(20px);
  transition: filter .8s var(--ease), opacity .8s var(--ease), transform .8s var(--ease), color .3s;
}
.menu-open .menu__list a { filter: none; opacity: 1; transform: none; }
.menu-open .menu__list li:nth-child(2) a { transition-delay: .06s; }
.menu-open .menu__list li:nth-child(3) a { transition-delay: .12s; }
.menu-open .menu__list li:nth-child(4) a { transition-delay: .18s; }
.menu__list a:hover { color: var(--caramelo); }
.menu .num { font-size: 12px; color: var(--muted-dark); }
.menu__foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 36px; }
.menu__foot .label { color: var(--muted-dark); }
.soon { opacity: .45; }

/* Hero */
.hero { padding-top: clamp(150px, 22vh, 220px); }
.hero__intro { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding: 0 var(--gutter) clamp(56px, 9vh, 96px); }
.hero__title { font: 300 clamp(34px, 4.4vw, 60px)/1.06 var(--font); letter-spacing: -.035em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); filter: blur(10px); animation: rise 1.4s var(--ease) .2s forwards; }
.hero__title .line + .line > span { animation-delay: .34s; }
.line--accent { color: var(--caramelo); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pills li { font-size: 12px; padding: 5px 12px; border: 1px solid var(--caramelo); color: #8a6f4b; border-radius: 999px; }

/* Reel: opens from a rounded window to full width while scrolling */
.reel { position: relative; height: 92svh; min-height: 520px; }
.reel__frame { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 var(--inset, 14%) round var(--radius, 22px)); background: var(--areia); will-change: clip-path; }
.reel__video { transform: scale(var(--zoom, 1.12)); will-change: transform; object-position: 50% 42%; }
.sound {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(236,235,231,.82); color: var(--grafite); backdrop-filter: blur(10px);
  font: 500 12px/1 var(--font); transition: background .3s var(--ease);
}
.sound:hover { background: var(--marfim); }
.sound i { position: relative; width: 14px; height: 12px; }
.sound i::before { content: ""; position: absolute; left: 0; top: 3px; width: 6px; height: 6px; background: currentColor; clip-path: polygon(0 20%, 40% 20%, 100% -40%, 100% 140%, 40% 80%, 0 80%); }
.sound i::after { content: ""; position: absolute; right: 0; top: 2px; width: 6px; height: 8px; border: 1px solid currentColor; border-left: 0; border-radius: 0 8px 8px 0; opacity: .35; }
.sound[aria-pressed="true"] i::after { opacity: 1; }

/* Statement */
.statement { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 34px; padding: clamp(110px, 18vh, 200px) var(--gutter); }
.statement__text { font: 300 clamp(26px, 3vw, 42px)/1.18 var(--font); letter-spacing: -.025em; max-width: 22ch; }
.statement__copy { max-width: 52ch; color: var(--muted); font-size: 15px; }
.link-pill { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; text-decoration: none; color: #8a6f4b; }
.link-pill__dot { display: grid; place-items: center; width: 34px; height: 22px; border-radius: 999px; border: 1px solid currentColor; font-size: 12px; transition: background .3s var(--ease), color .3s var(--ease); }
.link-pill:hover .link-pill__dot { background: var(--caramelo); color: var(--grafite); border-color: var(--caramelo); }

/* Blur-in words (scroll driven) */
[data-blur] .w { display: inline-block; transition: filter .25s linear, opacity .25s linear; will-change: filter, opacity; }

/* Pattern */
.pattern {
  display: grid; place-items: center; min-height: clamp(300px, 52vh, 520px);
  background: var(--marfim) url("../img/pattern-tile.svg") 0 0 / 194px 232px repeat;
  background-position: 0 var(--py, 0px);
}
.pattern__text { background: var(--marfim); padding: 18px 34px; font: 300 clamp(24px, 2.8vw, 38px)/1.1 var(--font); letter-spacing: -.025em; text-align: center; border-radius: 4px; }

/* Care list (dark) */
.care { background: var(--grafite); color: var(--marfim); padding: clamp(110px, 16vh, 180px) var(--gutter); display: flex; flex-direction: column; gap: clamp(48px, 8vh, 80px); }
.care__list { width: min(100%, 980px); margin-inline: auto; }
.care__item { display: grid; grid-template-columns: 70px 1fr minmax(0, 340px); gap: 8px 28px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid rgba(219,218,212,.12); --a: .18; }
.care__num { font-size: 12px; color: var(--muted-dark); opacity: calc(.4 + var(--a) * .6); }
.care__title { font: 300 clamp(22px, 2.4vw, 32px)/1.15 var(--font); letter-spacing: -.02em; opacity: calc(.22 + var(--a) * .78); transition: opacity .2s linear; }
.care__text { font-size: 14px; color: var(--muted-dark); opacity: calc(.15 + var(--a) * .85); transition: opacity .2s linear; }
.care__note { text-align: center; font-size: 13px; color: var(--muted-dark); }

/* Team */
.team { padding: clamp(110px, 16vh, 180px) var(--gutter); display: flex; flex-direction: column; gap: 48px; }
.team__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: min(100%, 980px); margin-inline: auto; }
.person { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: clamp(200px, 24vw, 300px); padding: 26px; background: var(--marfim); border-radius: 6px; }
.person h3 { font: 300 clamp(22px, 2.2vw, 30px)/1.1 var(--font); letter-spacing: -.02em; }

/* Invite */
.invite { background: var(--areia); padding: clamp(110px, 16vh, 180px) var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 34px; text-align: center; }
.invite__title { font: 300 clamp(34px, 5vw, 72px)/1.04 var(--font); letter-spacing: -.035em; }
.invite__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; }
.invite__tel { font-size: 18px; text-decoration: none; }
.invite__tel:hover { color: var(--paper); }
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 13px 22px; border-radius: 999px;
  background: var(--grafite); color: var(--marfim); text-decoration: none; font: 500 13px/1 var(--font);
  transition: background .35s var(--ease), color .35s var(--ease);
}
.btn:hover { background: var(--paper); color: var(--grafite); }
.btn span { transition: transform .35s var(--ease); }
.btn:hover span { transform: translateX(4px); }

/* Info */
.info { padding: clamp(90px, 13vh, 140px) var(--gutter); display: flex; flex-direction: column; gap: 48px; }
.info__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; border-top: 1px solid var(--line); padding-top: 28px; width: 100%; }
.info__grid h3 { margin-bottom: 10px; }
.info__grid p { font-size: 15px; line-height: 1.7; }
.info__grid a { text-decoration: none; }
.info__grid a:hover, .link:hover { color: var(--caramelo); }
.link { display: inline-block; margin-top: 8px; font-size: 12px; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* Footer */
.foot { background: var(--grafite); color: var(--marfim); padding: clamp(50px, 7vw, 90px) var(--gutter) 30px; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.foot__sign { width: clamp(140px, 13vw, 190px); height: auto; color: var(--caramelo); }
.foot__meta { display: flex; flex-direction: column; gap: 8px; text-align: right; font-size: 13px; color: var(--muted-dark); }
.foot__meta .label { color: var(--muted-dark); }
.credit { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: color .3s var(--ease); }
.credit:hover { color: var(--caramelo); }

/* Fade-in with blur */
.fade { opacity: 0; filter: blur(8px); transform: translateY(14px); transition: opacity 1.1s var(--ease) var(--d, 0s), filter 1.1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.fade.is-in { opacity: 1; filter: none; transform: none; }

@keyframes rise { to { transform: none; filter: none; } }

@media (max-width: 860px) {
  .top { grid-template-columns: 1fr auto; }
  .top__where { display: none; }
  .top__cta { display: none; }
  .logo__sign { height: 44px; } .top.is-scrolled .logo__sign { height: 38px; }
  .reel { height: 78svh; min-height: 420px; }
  .care__item { grid-template-columns: 40px 1fr; }
  .care__text { grid-column: 2; }
  .team__grid { grid-template-columns: 1fr; }
  .info__grid { grid-template-columns: 1fr 1fr; }
  .foot__meta { text-align: left; }
}
@media (max-width: 520px) { .info__grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fade, .hero__title .line > span { opacity: 1; filter: none; transform: none; }
  .reel__frame { clip-path: none; } .reel__video { transform: none; }
  [data-blur] .w { filter: none !important; opacity: 1 !important; }
  .care__item { --a: 1 !important; }
}
