/* CONCEMED — folha de estilos única. Sistema "Aquarela e traço": papel azul-água (20% do Pantone), azul-petróleo do logotipo (Pantone 3541) como cor única de marca e de ação. */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --teal: #00929e;
  --brand: #006973;
  --brand-deep: #00464e;
  --ink: #12282c;
  --ink-soft: #4d6065;
  --paper: #cce9ec;
  --white: #f7fcfc;
  --tint30: #b3dee2;
  --sand: #e3f3f5;
  --sand-deep: #a9d6db;
  --line: #9ccbd1;
  --accent: #007a85;
  --accent-deep: #005a63;
  --on-brand: #cfe8eb;
  --error: #a3261a;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --sans: "Figtree", "Segoe UI", system-ui, sans-serif;
  --r: 16px;
  --r-sm: 10px;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 108px; scrollbar-color: var(--brand) var(--sand); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; accent-color: var(--accent); caret-color: var(--accent);
}
::selection { background: var(--accent); color: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
svg { flex: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }

/* ---------- Tipografia ---------- */
h1, h2, h3 { font-family: var(--display); text-wrap: balance; color: var(--brand-deep); }
h1, h2 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; }
h1 { font-size: clamp(2.375rem, 4.7vw, 3.875rem); }
h2 { font-size: clamp(1.875rem, 3.6vw, 2.875rem); }
h3 { font-weight: 600; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.015em; }
.lead { font-size: 1.1875rem; color: var(--ink-soft); max-width: 46ch; text-wrap: pretty; }

/* ---------- Botões e links ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1.5px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brand-deep); transform: translateY(101%); transition: transform .45s var(--ease); border-radius: inherit; }
.btn:hover { border-color: var(--brand-deep); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(.98); }
.btn svg { width: 19px; height: 19px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: rotate(-12deg) scale(1.12); }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--ghost::before { background: var(--brand); }
.btn--ghost:hover { color: #fff; border-color: var(--brand); }
.btn--light { background: #fff; border-color: #fff; color: var(--brand-deep); }
.btn--light::before { background: var(--sand-deep); }
.btn--light:hover { color: var(--brand-deep); border-color: var(--sand-deep); }
.btn--line { background: transparent; border-color: rgb(255 255 255 / .55); color: #fff; }
.btn--line::before { background: rgb(255 255 255 / .16); }
.btn--line:hover { border-color: #fff; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem; color: var(--accent-deep); text-decoration: none; white-space: nowrap; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .4s var(--ease); padding-bottom: 2px; }
.link svg { width: 17px; height: 17px; transition: transform .35s var(--ease); }
.link:hover { background-size: calc(100% - 25px) 1.5px; }
.link:hover svg { transform: translateX(4px); }
.ico { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--sand); color: var(--brand); display: grid; place-items: center; }
.ico svg { width: 19px; height: 19px; }

/* ---------- Cabeçalho ---------- */
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 94%, transparent); border-bottom: 1px solid var(--line); view-transition-name: header; }
.header__in { display: flex; align-items: center; gap: 28px; min-height: 100px; }
.brand { display: block; margin-right: auto; }
.brand img { height: 80px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { position: relative; font-size: 1rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; padding: 10px 14px; border-radius: 999px; transition: color .25s, background-color .25s; }
.nav a:hover { color: var(--ink); background: var(--sand); }
.nav a[aria-current="page"] { color: var(--brand-deep); background: var(--sand-deep); }
.menu-btn { display: none; width: 46px; height: 46px; border: 1.5px solid var(--brand); border-radius: 50%; background: transparent; place-items: center; cursor: pointer; color: var(--brand); }
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .i-close, .menu-open .menu-btn .i-menu { display: none; }
.menu-open .menu-btn .i-close { display: block; }

@media (max-width: 1040px) {
  .header__in { gap: 10px; min-height: 72px; }
  .brand img { height: 60px; }
  .menu-btn { display: grid; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 4px var(--gutter) 16px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .menu-open .nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav a { font-size: 1.125rem; color: var(--ink); padding: 15px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a:hover { background: transparent; }
  .nav a[aria-current="page"] { background: transparent; color: var(--accent-deep); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(36px, 5vw, 72px) 0 0; overflow: clip; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__copy .lead { margin-top: 24px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__art { position: relative; isolation: isolate; }
.hero__wash { position: absolute; z-index: -1; inset: -9% -14% -14% 8%; width: auto; max-width: none; height: 124%; object-fit: cover; border-radius: 46% 54% 40% 60% / 52% 44% 56% 48%; opacity: .95; mix-blend-mode: multiply; }
.hero__photo { border-radius: 150px 18px 18px 18px; overflow: hidden; aspect-ratio: 4 / 3.3; background: var(--sand); box-shadow: 0 30px 50px -28px rgb(0 70 78 / .45); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }

/* ---------- Motion graphic do hero: atendimentos por especialidade ---------- */
.motion { position: relative; }
.motion__slide { position: absolute; inset: 0; margin: 0; opacity: 0; }
.motion__slide.is-on { opacity: 1; z-index: 2; }
.motion__slide img { position: absolute; inset: 0; }
.motion figcaption { position: absolute; left: 16px; bottom: 18px; display: flex; align-items: center; gap: 12px; padding: 7px 20px 7px 8px; border-radius: 999px; background: var(--white); color: var(--brand-deep); font-weight: 700; font-size: .9375rem; box-shadow: 0 10px 24px -12px rgb(0 70 78 / .5); }
.motion__ico { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--sand); color: var(--accent); display: grid; place-items: center; }
.motion__ico svg { width: 24px; height: 24px; }
.motion__bars { position: absolute; z-index: 3; right: 14px; bottom: 22px; display: flex; gap: 4px; }
.motion__bars button { all: unset; box-sizing: border-box; cursor: pointer; width: 26px; height: 22px; display: grid; align-items: center; }
.motion__bars button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; border-radius: 3px; }
.motion__bars i { position: relative; display: block; height: 4px; border-radius: 4px; background: rgb(0 70 78 / .5); overflow: hidden; }
.motion__bars i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
.motion__bars .is-on i::after { transform: scaleX(1); }
.motion__note { position: absolute; z-index: 3; top: 14px; right: 16px; padding: 3px 10px; border-radius: 999px; background: rgb(0 70 78 / .62); color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .01em; }
@media (max-width: 520px) { .motion figcaption { left: 10px; bottom: 12px; font-size: .875rem; } .motion__ico { width: 34px; height: 34px; } .motion__bars { right: 8px; bottom: 16px; } .motion__bars button { width: 18px; } }

.pulse { display: block; width: 100%; height: 56px; margin-top: clamp(28px, 4vw, 48px); overflow: visible; }
.pulse path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pulse__base { stroke: var(--sand-deep); stroke-width: 2; }
.pulse__run { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: .14 .86; stroke-dashoffset: .14; }

.infobar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 8px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); transform: translateY(0); }
.infobar > div { padding: 24px 26px; }
.infobar > div + div { border-left: 1px solid var(--line); }
.infobar dt { display: flex; align-items: center; gap: 9px; font-size: .875rem; font-weight: 700; color: var(--ink-soft); }
.infobar dt svg { width: 18px; height: 18px; color: var(--accent); }
.infobar dd { margin-top: 8px; font-weight: 700; font-size: 1rem; line-height: 1.4; }
.infobar a { text-decoration: none; }
.infobar a:hover { text-decoration: underline; }
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__wash { inset: -6% -20% -10% 0; }
  .infobar { grid-template-columns: 1fr 1fr; }
  .infobar > div { padding: 18px 18px; }
  .infobar > div:nth-child(3) { border-left: 0; }
  .infobar > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 460px) {
  .hero__cta .btn { flex: 1 1 100%; }
  .infobar { grid-template-columns: 1fr; }
  .infobar > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Seções ---------- */
.section { padding-top: var(--section); }
.section--tint { position: relative; background: linear-gradient(rgb(179 222 226 / .85), rgb(179 222 226 / .85)), url("../img/aquarela/paper-agua.jpg?v=23978fc2") center / cover; margin-top: var(--section); padding-bottom: var(--section); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head p { margin-top: 14px; color: var(--ink-soft); max-width: 58ch; text-wrap: pretty; }
.sec-head__side { display: flex; align-items: center; gap: 24px; }

/* Ícones ilustrados */
.ico-art { width: 64px; height: 64px; color: var(--brand); }
.ico-art * { stroke-dasharray: 1; stroke-dashoffset: 0; }
.ico-sm { width: 30px; height: 30px; color: var(--accent); }
.ico-sm * { stroke-width: 2.4; }

/* Especialidades */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.card { display: block; text-decoration: none; }
.card__img { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--sand); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.card h3 { margin-top: 18px; transition: color .25s; }
.card:hover h3 { color: var(--accent-deep); }
.card p { margin-top: 6px; font-size: 1rem; line-height: 1.5; color: var(--ink-soft); }
.cards .card:nth-child(even) { margin-top: 36px; }
.linklist { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.linklist a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); font-weight: 600; font-size: 1rem; line-height: 1.25; text-decoration: none; transition: border-color .25s, background-color .25s, transform .35s var(--ease); }
.linklist a:hover { border-color: var(--accent); background: #fff; transform: translateY(-3px); }
.linklist a:hover .ico-sm * { animation: redesenha .9s var(--ease); }
@media (max-width: 960px) { .cards, .linklist { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cards .card:nth-child(even) { margin-top: 0; } }
@media (max-width: 420px) { .linklist { grid-template-columns: 1fr; } }

/* Exames (home) */
.exams { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.exams figure { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 4.2; position: sticky; top: 124px; }
.exams figure img { width: 100%; height: 100%; object-fit: cover; object-position: 12% 50%; }
.exams__groups { display: grid; gap: 32px; }
.exams__groups h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--brand); }
.exams__groups h3 a { text-decoration: none; }
.exams__groups h3 a:hover { color: var(--accent-deep); }
.exams__groups ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.exams__groups li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 1rem; line-height: 1.3; }
.exams__groups li:hover .ico-sm * { animation: redesenha .9s var(--ease); }
@media (max-width: 1020px) { .exams { grid-template-columns: 1fr; } .exams figure { position: static; aspect-ratio: 16 / 9; } }
@media (max-width: 620px) { .exams__groups ul { grid-template-columns: 1fr; } }

/* Faixa de convênios */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--white); padding: 18px 0; display: grid; gap: 14px; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__row { display: flex; width: max-content; gap: 14px; animation: corre 70s linear infinite; }
.marquee__set { display: flex; gap: 14px; }
.marquee__row:nth-child(2) { animation-direction: reverse; animation-duration: 85s; }
.marquee:hover .marquee__row { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; white-space: nowrap; background: var(--paper); }
.marquee span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.marquee span.tem-logo { padding-left: 8px; }
.marquee span.tem-logo::before { display: none; }
.marquee span img { height: 30px; width: auto; max-width: 84px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px 4px; }
@keyframes corre { to { transform: translateX(calc(-50% - 7px)); } }

/* Equipe */
.rail { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); padding: 4px var(--gutter) 24px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: thin; scrollbar-color: var(--sand-deep) transparent; }
.person { flex: 0 0 clamp(190px, 19vw, 228px); scroll-snap-align: start; }
.person__img { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); }
.person__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .8s var(--ease); }
.person:hover .person__img img { transform: scale(1.06); }
.person b { display: block; margin-top: 14px; font-family: var(--display); font-weight: 600; font-size: 1.0625rem; line-height: 1.25; }
.person span { display: block; font-size: .875rem; color: var(--ink-soft); margin-top: 3px; }
.rail-ctl { display: flex; gap: 8px; }
.rail-ctl button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--brand); background: transparent; color: var(--brand); display: grid; place-items: center; cursor: pointer; transition: background-color .25s, color .25s, opacity .25s, transform .3s var(--ease); }
.rail-ctl button:hover:not(:disabled) { background: var(--brand); color: #fff; transform: scale(1.06); }
.rail-ctl button:disabled { opacity: .3; cursor: default; }
.rail-ctl svg { width: 19px; height: 19px; }
.rail-ctl .prev svg { transform: scaleX(-1); }
@media (max-width: 620px) { .rail-ctl { display: none; } }

/* Estrutura */
.place { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.place figure { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3.4; }
.place img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.place figure:hover img { transform: scale(1.05); }
.place__info { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; margin-top: 32px; }
.features { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.features li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1rem; }
.address { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.address p { font-size: 1rem; line-height: 1.45; color: var(--ink-soft); }
.address b { color: var(--ink); font-weight: 700; }
@media (max-width: 760px) { .place { grid-template-columns: 1fr 1fr; } .place .place__a { grid-column: 1 / -1; aspect-ratio: 16 / 10; } }

/* Faixa final */
.cta { position: relative; isolation: isolate; overflow: hidden; margin-top: var(--section); background: var(--brand-deep); color: #fff; padding: clamp(56px, 8vw, 104px) 0; }
.cta::before { content: ""; position: absolute; z-index: -1; inset: 0 0 0 38%; background: linear-gradient(rgb(0 70 78 / .42), rgb(0 70 78 / .42)), url("../img/aquarela/cta-agua.jpg?v=2fdfe7d5") center / cover; -webkit-mask: linear-gradient(90deg, transparent, #000 55%); mask: linear-gradient(90deg, transparent, #000 55%); }
.cta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 48px; }
.cta h2 { max-width: 16ch; color: #fff; }
.cta p { margin-top: 14px; max-width: 46ch; color: var(--on-brand); }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .cta::before { inset: 0; opacity: .35; -webkit-mask: none; mask: none; } }
@media (max-width: 420px) { .cta__btns, .cta__btns .btn { width: 100%; } }

/* ---------- Rodapé ---------- */
.footer { background: var(--brand-deep); color: var(--on-brand); padding: clamp(48px, 6vw, 72px) 0 28px; font-size: 1rem; border-top: 1px solid rgb(255 255 255 / .1); }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px 32px; }
.footer .brand img { height: 104px; }
.footer h3 { font-size: .9375rem; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer li + li { margin-top: 8px; }
.footer dt { color: #9fcfd4; font-size: .875rem; }
.footer dd { color: #fff; }
.footer dd + dt { margin-top: 12px; }
.footer__end { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .16); font-size: .875rem; color: #9fcfd4; }
.social { display: flex; gap: 10px; margin-top: 24px; }
.social a { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgb(255 255 255 / .35); display: grid; place-items: center; color: #fff; transition: background-color .25s, color .25s, transform .35s var(--ease); }
.social a:hover { background: #fff; color: var(--brand-deep); transform: translateY(-3px); text-decoration: none; }
.social svg { width: 19px; height: 19px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

.fab { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: none; align-items: center; gap: 10px; min-height: 54px; padding: 0 22px 0 18px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none; box-shadow: 0 10px 24px -10px rgb(0 70 78 / .6); }
.fab svg { width: 22px; height: 22px; }
@media (max-width: 760px) { .fab { display: inline-flex; } .footer { padding-bottom: 100px; } .header .btn--sm { display: none; } }

/* ---------- Páginas internas ---------- */
.page-head { position: relative; isolation: isolate; overflow: hidden; padding: clamp(44px, 6vw, 88px) 0; background: var(--tint30); }
.page-head::before { content: ""; position: absolute; z-index: -1; inset: 0 0 0 45%; background: url("../img/aquarela/page-head.jpg?v=1bf75b6b") center / cover; opacity: .85; mix-blend-mode: multiply; -webkit-mask: linear-gradient(90deg, transparent, #000 60%); mask: linear-gradient(90deg, transparent, #000 60%); }
.page-head__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 80px); align-items: center; }
.page-head--photo .page-head__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.page-head p { margin-top: 18px; color: var(--ink-soft); font-size: 1.1875rem; max-width: 52ch; text-wrap: pretty; }
.page-head .btn, .page-head .features { margin-top: 28px; }
.page-head .ico { background: #fff; }
.page-head__img { border-radius: 110px 16px 16px 16px; overflow: hidden; aspect-ratio: 16 / 11; }
.page-head__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .page-head--photo .page-head__in { grid-template-columns: 1fr; } .page-head::before { inset: 0; opacity: .3; } }

.layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-top: clamp(36px, 5vw, 64px); align-items: start; }
.toc { position: sticky; top: 112px; display: grid; font-size: 1rem; border-left: 1px solid var(--line); }
.toc a { text-decoration: none; color: var(--ink-soft); font-weight: 500; padding: 7px 16px; transition: color .25s, padding .3s var(--ease); }
.toc a:hover { color: var(--accent-deep); padding-left: 22px; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .toc { position: static; display: flex; overflow-x: auto; gap: 8px; border-left: 0; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .toc a { flex: none; margin: 0; border: 1.5px solid var(--line); border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); padding: 0 16px; }
  .toc a:hover { padding-left: 16px; border-color: var(--accent); }
}

.spec { padding: clamp(32px, 4vw, 48px) 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px clamp(28px, 4vw, 56px); }
.spec:first-child { padding-top: 0; }
.spec__title { display: flex; align-items: center; gap: 18px; }
.spec__title .ico-art { width: 60px; height: 60px; color: var(--accent); }
.spec h2 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); }
.spec p { margin-top: 14px; color: var(--ink-soft); max-width: 52ch; text-wrap: pretty; }
.spec .link { margin-top: 22px; }
.spec__team { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; align-self: start; }
.spec__team h3 { font-size: .9375rem; color: var(--ink-soft); margin-bottom: 12px; font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
.spec__team li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.35; font-weight: 500; }
.spec__team li:first-child { border-top: 0; padding-top: 0; }
.spec__team li span { color: var(--ink-soft); font-size: .875rem; white-space: nowrap; font-weight: 400; }
.spec__team p { margin: 0; font-size: 1rem; }
.spec--long { grid-template-columns: 1fr; }
.spec--long .spec__team ul { columns: 2 260px; column-gap: 40px; }
.spec--long .spec__team li { break-inside: avoid; border-top: 0; border-bottom: 1px solid var(--line); padding: 10px 0; }
@media (max-width: 700px) { .spec { grid-template-columns: 1fr; } }

.group { padding-top: clamp(48px, 7vw, 80px); }
.group__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-bottom: 16px; border-bottom: 2px solid var(--brand); }
.group__head h2 { font-size: clamp(1.75rem, 3vw, 2.375rem); }
.group__head span { color: var(--ink-soft); font-size: 1rem; font-weight: 600; }
.exam { display: grid; grid-template-columns: 88px minmax(0, .8fr) minmax(0, 1.2fr) auto; gap: 8px 28px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.exam__ico { width: 88px; height: 88px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; transition: background-color .35s, transform .5s var(--ease); }
.exam__ico .ico-art { width: 54px; height: 54px; color: var(--brand); transition: color .3s; }
.exam:hover .exam__ico { background: var(--accent); transform: rotate(-4deg) scale(1.04); }
.exam:hover .ico-art { color: #fff; }
.exam:hover .ico-art * { animation: redesenha 1s var(--ease); }
.exam h3 { font-size: 1.3125rem; }
.exam p { color: var(--ink-soft); max-width: 56ch; }
@media (max-width: 860px) { .exam { grid-template-columns: 72px 1fr; } .exam__ico { width: 72px; height: 72px; grid-row: span 3; } .exam .ico-art { width: 44px; height: 44px; } .exam a { grid-column: 2; margin-top: 6px; } }
.note { margin-top: clamp(40px, 5vw, 56px); background: var(--sand); border-radius: var(--r); padding: clamp(22px, 3vw, 32px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.note p { max-width: 60ch; color: var(--ink-soft); }
.note p strong { color: var(--ink); }

.finder { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: clamp(36px, 5vw, 56px) 0 28px; }
.field { display: grid; gap: 8px; font-size: .9375rem; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 54px; border: 1.5px solid #8b96a1; border-radius: var(--r-sm); padding: 12px 16px; background: var(--white); font-weight: 400; font-size: 1.0625rem; transition: border-color .25s, box-shadow .25s; }
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6a7480; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgb(0 146 158 / .2); }
.field [aria-invalid="true"] { border-color: var(--error); }
.finder .field { flex: 1 1 320px; max-width: 480px; }
.finder output { font-size: 1rem; color: var(--ink-soft); padding-top: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.plans li { display: flex; align-items: center; gap: 12px; min-height: 92px; padding: 0 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); font-weight: 600; font-size: 1rem; line-height: 1.25; transition: border-color .25s, transform .35s var(--ease); }
.plans li:hover { border-color: var(--accent); transform: translateY(-3px); }
.plans li svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.plans li.tem-logo { padding-left: 12px; }
.plan__logo { flex: none; width: 118px; height: 68px; display: grid; place-items: center; background: #fff; border-radius: 10px; padding: 6px 8px; }
.plan__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.plans li[hidden] { display: none; }
.empty { display: none; background: var(--sand); border-radius: var(--r); padding: 26px; max-width: 60ch; margin-top: 16px; }
.empty.on { display: block; }
.empty p + .btn { margin-top: 16px; }

.mvv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 56px); }
.mvv > div { border-top: 3px solid var(--accent); padding-top: 20px; }
.mvv dt { font-family: var(--display); font-weight: 700; font-size: 1.625rem; letter-spacing: -0.02em; }
.mvv dd { margin-top: 12px; color: var(--ink-soft); text-wrap: pretty; }
@media (max-width: 760px) { .mvv { grid-template-columns: 1fr; } }
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.board li { padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); }
.board span { display: block; font-size: .875rem; color: var(--ink-soft); }
.board small { display: block; margin-top: 2px; font-size: .875rem; color: var(--ink-soft); }
.board b { font-family: var(--display); font-weight: 600; font-size: 1.125rem; }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 32px 22px; }
.roster { margin-top: clamp(36px, 5vw, 56px); columns: 3 260px; column-gap: 40px; border-top: 1px solid var(--line); }
.roster li { break-inside: avoid; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1rem; font-weight: 600; line-height: 1.35; }
.roster li span { display: block; color: var(--ink-soft); font-size: .875rem; font-weight: 400; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery figure { border-radius: var(--r); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); transition: transform .8s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { padding-top: 10px; font-size: .9375rem; color: var(--ink-soft); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); padding-top: clamp(36px, 5vw, 64px); align-items: start; }
.info > div { display: grid; grid-template-columns: 44px 1fr; gap: 2px 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.info > div:first-child { padding-top: 0; }
.info dt { grid-column: 2; font-size: .9375rem; color: var(--ink-soft); }
.info dd { grid-column: 2; font-size: 1.1875rem; font-weight: 700; line-height: 1.4; }
.info .ico { grid-row: span 2; width: 44px; height: 44px; background: var(--sand-deep); }
.info a { text-decoration: none; }
.info a:hover { text-decoration: underline; }
.info small { display: block; margin-top: 2px; font-size: .9375rem; font-weight: 400; color: var(--ink-soft); }
.info small a { color: var(--accent-deep); text-decoration: underline; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3.4vw, 40px); display: grid; gap: 20px; }
.form h2 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); }
.form > p { color: var(--ink-soft); margin-top: -8px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn { justify-self: start; }
.form .err { color: var(--error); font-size: .875rem; font-weight: 600; }
.form .err:empty { display: none; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form .row { grid-template-columns: 1fr; } .form .btn { justify-self: stretch; } }
.map { margin: clamp(48px, 7vw, 88px) 0 var(--section); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--sand); border-radius: var(--r); overflow: hidden; }
.map figure { aspect-ratio: 16 / 10; }
.map img { width: 100%; height: 100%; object-fit: cover; }
.map > div { padding: clamp(22px, 3vw, 36px) clamp(22px, 3vw, 44px) clamp(24px, 3vw, 36px) 0; }
.map p { margin-top: 14px; color: var(--ink-soft); }
.map .btn { margin-top: 22px; }
@media (max-width: 760px) { .map { grid-template-columns: 1fr; gap: 0; } .map > div { padding: 22px; } }

/* ---------- Movimento ---------- */
@media (prefers-reduced-motion: no-preference) { .rail { scroll-snap-type: none; } }
@keyframes redesenha { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes entra { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes zoom { to { transform: scale(1) translateX(0); } }
@keyframes onda { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes barra { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pulsa { to { stroke-dashoffset: -1; } }
@keyframes flutua { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(-14px, 10px) rotate(2.5deg); } }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: .25s ease-out both vt-sai; }
  ::view-transition-new(root) { animation: .45s var(--ease) both vt-entra; }
  @keyframes vt-sai { to { opacity: 0; } }
  @keyframes vt-entra { from { opacity: 0; transform: translateY(14px); } }

  /* entrada da página: a primeira dobra aparece em sequência */
  .hero__copy > *, .page-head__in > div > *, .page-head__img { animation: entra .9s var(--ease) both; }
  .hero__copy > :nth-child(2), .page-head__in > div > :nth-child(2) { animation-delay: .1s; }
  .hero__copy > :nth-child(3), .page-head__in > div > :nth-child(3) { animation-delay: .2s; }
  .hero__copy > :nth-child(4), .page-head__in > div > :nth-child(4) { animation-delay: .3s; }
  .page-head__img { animation-delay: .15s; }
  .hero__art { animation: entra 1.1s .15s var(--ease) both; }
  .hero__wash { animation: flutua 22s ease-in-out infinite; }

  /* o batimento que percorre a linha é o gesto de marca do site */
  .pulse__run { animation: pulsa 6s linear infinite; }
  /* motion graphic: entra com revelação lateral, zoom suave, legenda que sobe e ícone que se desenha */
  .js .motion__slide { opacity: 1; clip-path: inset(0 0 0 100%); transition: clip-path .95s var(--ease); }
  .js .motion__slide.is-prev { clip-path: inset(0); z-index: 1; }
  .js .motion__slide.is-on { clip-path: inset(0); }
  .js .motion__slide img { transform: scale(1.14) translateX(var(--kx)); }
  .js .motion__slide.is-on img, .js .motion__slide.is-prev img { animation: zoom 7s var(--ease) both; }
  .js .motion figcaption { opacity: 0; transform: translateY(16px); }
  .js .motion .is-on figcaption { opacity: 1; transform: none; transition: opacity .6s .75s, transform .8s .75s var(--ease); }
  .js .motion .is-prev figcaption { opacity: 0; }
  .js .motion__ico::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
  .js .motion .is-on .motion__ico::after { animation: onda 2.4s 1.1s ease-out 2; }
  .js .motion__slide .ico-art * { stroke-dashoffset: 1; }
  .js .motion__slide.is-on .ico-art * { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s .9s var(--ease); }
  .motion__bars .is-on i::after { animation: barra var(--dur, 4800ms) linear forwards; }
  .motion.is-paused .is-on img, .motion.is-paused .is-prev img, .motion.is-paused .is-on i::after { animation-play-state: paused; }


  /* revelação ao rolar: só quando o script marcou a página */
  .js .rv { opacity: 0; transform: translateY(28px); }
  .js .rv.is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .rv-wipe > img, .js .rv-wipe img:only-child { clip-path: inset(0 0 100% 0); }
  .js .rv-wipe.is-in > img { clip-path: inset(0); transition: clip-path 1.1s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms), 0s; }
  .js .rv .ico-art *, .js .rv-wipe .ico-art * { stroke-dashoffset: 1; }
  .js .rv.is-in .ico-art * { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s .25s var(--ease); }
  .js .rv .ico-sm * { stroke-dashoffset: 1; }
  .js .rv.is-in .ico-sm * { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s .2s var(--ease); }

  /* barra de progresso da leitura */
  @supports (animation-timeline: scroll()) {
    body::before { content: ""; position: fixed; z-index: 60; inset: 0 0 auto 0; height: 3px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); animation: progresso linear both; animation-timeline: scroll(root); }
    @keyframes progresso { to { transform: scaleX(1); } }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .marquee { -webkit-mask: none; mask: none; }
  .marquee__row, .marquee__set { width: auto; flex-wrap: wrap; }
  .marquee__set + .marquee__set { display: none; }
  .pulse__run { stroke-dasharray: none; }
}
