/* ==========================================================================
   Home - estilos exclusivos da página (page-home.php)
   Breakpoints: 48rem (tablet) / 75rem (desktop). Fontes em rem.
   ========================================================================== */

@layer components {

  /* ---------- Ghost words (Atoms/Ghost Word): só desktop ----------
     A fonte é variável e tem contornos internos sobrepostos (ex.: o traço do "A");
     um text-stroke puro desenha todos eles. Por isso: traço com o dobro da largura
     pintado primeiro e a letra preenchida com a cor do fundo da seção por cima
     (paint-order). Sobra só a metade externa do traço = 1,5px de contorno, como no Figma.
     A opacidade fica no elemento inteiro para o preenchimento cobrir as linhas internas. */
  .section--dark,
  .site-footer {
    --ghost-fill: var(--color-brown-900);
  }

  .section--light {
    --ghost-fill: var(--color-cream-50);
  }

  .section--cream {
    --ghost-fill: var(--color-cream-100);
  }

  .section--accent {
    --ghost-fill: var(--color-orange-500);
  }

  /* A palavra fica atrás dos hexágonos (z-index -1 dentro da seção isolada):
     assim o preenchimento com a cor do fundo nunca tinge um hexágono. */
  .section:has(> .ghost-word) {
    isolation: isolate;
  }

  .ghost-word {
    z-index: -1;
    position: absolute;
    right: 1.875rem;
    top: -1.425rem;
    display: none;
    font-family: var(--font-display);
    font-variation-settings: "opsz" 14, "wdth" 100;
    font-weight: 800;
    font-size: 11.875rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--ghost-fill, var(--color-brown-900));
    -webkit-text-stroke: 3px var(--color-cream-50);
    paint-order: stroke fill;
    opacity: 0.13;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
  }

  .ghost-word--200 {
    font-size: 12.5rem;
    top: -1.5rem;
  }

  .ghost-word--220 {
    font-size: 13.75rem;
    top: -1.65rem;
  }

  .ghost-word--dark {
    -webkit-text-stroke-color: var(--color-brown-700);
  }

  .ghost-word--ink {
    -webkit-text-stroke-color: var(--color-brown-900);
    opacity: 0.12;
  }

  @media (min-width: 75rem) {
    .ghost-word {
      display: block;
    }
  }

  /* ---------- Hero ---------- */
  .hero {
    position: relative;
    overflow: clip;
    background-color: var(--color-cream-50);
  }

  .hero__inner {
    position: relative;
    z-index: 2;
    padding-top: clamp(1.75rem, 0.4339rem + 5.3986vw, 3.5rem);
  }

  .hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .hero__title {
    font-weight: 600;
    font-size: 2.125rem;
    line-height: 1.12;
    letter-spacing: -0.0235em;
    color: var(--color-brown-700);
  }

  .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.875rem;
    border-radius: 999px;
    background: var(--color-orange-100);
    font-family: var(--font-display);
    font-variation-settings: "opsz" 14, "wdth" 100;
    font-weight: 500;
    font-size: clamp(1.25rem, 1.1291rem + 0.4959vw, 1.625rem);
    line-height: 1.25;
    color: var(--color-orange-800);
  }

  .hero__actions {
    display: none;
    gap: 1rem;
  }

  .hero__media {
    position: relative;
    overflow: hidden;
    margin-top: -1.25rem;
    aspect-ratio: 834 / 680;
  }

  .hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
  }

  .hero__glow {
    position: absolute;
    left: 2.5%;
    top: 2.5%;
    width: 95%;
    height: 95%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgb(253 203 110 / 0.7), rgb(253 203 110 / 0));
  }

  .hero__fade {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 23.5%;
    background: linear-gradient(to bottom, var(--color-cream-50), rgb(255 251 243 / 0));
  }

  .hero__cue {
    position: absolute;
    right: 1.5rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 0.09375rem solid var(--color-brown-700);
    border-radius: var(--radius-lg);
    color: var(--color-brown-700);
    bottom: 1.5rem;
    transition: background-color 0.2s var(--ease-figma), border-color 0.2s var(--ease-figma);
  }

  .hero__cue:hover {
    background: var(--color-orange-500);
    border-color: var(--color-orange-500);
  }

  .hero-actions-band {
    background: var(--color-cream-50);
    padding-block: 1.5rem;
  }

  .hero-actions-band__inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-actions-band .btn {
    width: 100%;
  }

  @media (min-width: 48rem) {
    .hero__title {
      font-weight: 700;
      font-size: clamp(4.5rem, 3.6383rem + 1.1489vw, 5rem);
      line-height: 1;
      letter-spacing: -0.028em;
    }

    .hero-tag {
      padding: 0.625rem 1.125rem;
    }

    .hero__media {
      margin-top: -1.3125rem;
    }

    .hero__fade {
      height: 23.5%;
    }

    .hero__cue {
      right: 2.5rem;
      width: 3rem;
      height: 3rem;
      bottom: 1rem;
    }

    .hero-actions-band__inner {
      flex-direction: row;
      justify-content: center;
      gap: 1rem;
    }

    .hero-actions-band .btn {
      width: auto;
    }
  }

  /* Desktop: copy à esquerda, foto 1:1 na metade direita */
  @media (min-width: 75rem) {
    .hero {
      min-height: clamp(37.5rem, 50vw, 50rem);
    }

    .hero__inner {
      display: flex;
      align-items: center;
      min-height: clamp(37.5rem, 50vw, 50rem);
      padding-block: 3rem;
    }

    .hero__copy {
      max-width: 38.75rem;
    }

    .hero__actions {
      display: flex;
    }

    .hero-tag {
      padding: 0.75rem 1.25rem;
    }

    .hero__media {
      position: absolute;
      top: 0;
      right: 0;
      width: 50%;
      height: 100%;
      margin: 0;
      aspect-ratio: auto;
    }

    .hero__glow {
      left: 3.75%;
      top: 2.5%;
    }

    .hero__fade {
      inset: 0 auto 0 0;
      width: 30%;
      height: 100%;
      background: linear-gradient(to right, var(--color-cream-50), rgb(255 251 243 / 0));
    }

    .hero__cue {
      left: calc(50% - 1.75rem - 1.75rem);
      right: auto;
      bottom: 1.75rem;
      width: 3.5rem;
      height: 3.5rem;
      border-radius: 999px;
    }
  }

  /* Hero stats (Molecules/Hero Stat) */
  .hero-stats {
    background: var(--color-orange-500);
    color: var(--color-brown-900);
    padding-block: 2rem;
  }

  .hero-stats__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.5rem;
  }

  .hero-stat {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 0.25rem;
    padding-right: 1rem;
  }

  .hero-stat__value {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 14, "wdth" 100;
    font-weight: 700;
    font-size: clamp(1.75rem, 1.3472rem + 1.6529vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }

  /* Reflow em 320px: o valor pode quebrar */
  @media (max-width: 22.49rem) {
    .hero-stat__value {
      white-space: normal;
    }
  }

  @media (min-width: 48rem) {

    .hero-stat--divider {
      padding-left: 2rem;
      border-left: 1px solid var(--color-brown-900);
    }
  }

  @media (min-width: 75rem) {
    .hero-stats {
      padding-block: 2.5rem;
    }

    .hero-stats__list {
      grid-template-columns: repeat(4, 1fr);
    }

    .hero-stat--divider-desk {
      padding-left: 2rem;
      border-left: 1px solid var(--color-brown-900);
    }
  }

  /* Entrada do hero (Figma: timeline 10s, aqui tocada uma vez) */
  @media (prefers-reduced-motion: no-preference) {
    .js .hero-anim {
      animation: hero-rise 0.7s var(--ease-figma) both;
    }

    .js .hero-anim--1 {
      animation-delay: 0.15s;
      --rise: 1rem;
    }

    .js .hero-anim--2 {
      animation-delay: 0.3s;
      --rise: 2rem;
    }

    .js .hero-anim--3 {
      animation-delay: 0.6s;
      --rise: 1.25rem;
    }

    .js .hero-anim--4 {
      animation-delay: 0.8s;
      --rise: 1.25rem;
    }

    .js .hero__photo {
      animation: hero-zoom 1.5s var(--ease-figma) 0.1s both;
    }

    .hero__glow {
      animation: hero-glow 10s ease-in-out infinite;
    }

    .js .hero__cue {
      animation: hero-cue-in 0.6s var(--ease-figma) 1s both, hero-cue-float 1.2s ease-in-out 1.6s infinite;
    }
  }

  @keyframes hero-rise {
    from {
      opacity: 0;
      transform: translateY(var(--rise, 1.25rem));
    }
  }

  @keyframes hero-zoom {
    from {
      transform: scale(1.08);
    }
  }

  @keyframes hero-glow {
    0%,
    100% {
      transform: scale(0.92);
      opacity: 0.75;
    }

    50% {
      transform: scale(1.08);
      opacity: 1;
    }
  }

  @keyframes hero-cue-in {
    from {
      opacity: 0;
    }
  }

  @keyframes hero-cue-float {
    50% {
      transform: translateY(-0.875rem);
    }
  }

  /* ---------- Video (Section/Video) ---------- */
  .section-video {
    background-image:
      radial-gradient(circle 31.25rem at 7.5% 8.75rem, rgb(247 168 28 / 0.14), rgb(247 168 28 / 0)),
      radial-gradient(circle 31.25rem at 87.5% 77rem, rgb(247 168 28 / 0.12), rgb(247 168 28 / 0));
  }

  .video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 342 / 300;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--color-brown-800);
  }

  @media (min-width: 48rem) {
    .video-player {
      aspect-ratio: 1320 / 742;
    }
  }

  .video-player__poster,
  .video-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
  }

  .video-player__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgb(43 33 31 / 0.15), rgb(43 33 31 / 0.55));
  }

  .video-player__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(5.125rem, 3.94rem + 4.86vw, 10.3125rem);
    aspect-ratio: 165 / 200;
    transform: translate(-50%, -50%);
  }

  .video-player__hex {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.25s var(--ease-figma);
  }

  .video-player__icon {
    position: absolute;
    left: 39%;
    top: 40%;
    width: 20.6%;
    height: 20%;
  }

  .video-player__play:hover .video-player__hex {
    transform: scale(1.06);
  }

  @media (prefers-reduced-motion: no-preference) {
    .video-player__hex {
      animation: play-pulse 2.4s ease-in-out infinite;
    }
  }

  @keyframes play-pulse {
    50% {
      transform: scale(1.06);
      filter: drop-shadow(0 0 1.25rem rgb(248 168 28 / 0.55));
    }
  }

  /* ---------- Intro ---------- */
  /* Frame "Intro Visual" 536x660; filhos em % dessa caixa (a foto vaza 24px, como no Figma) */
  .intro-visual {
    position: relative;
    width: min(100%, 33.5rem);
    margin-inline: auto;
    aspect-ratio: 536 / 660;
  }

  .intro-visual > img,
  .intro-visual > span {
    position: absolute;
    max-width: none;
    height: auto;
  }

  /* Fotos do ACF recortadas no hexágono da marca (qualquer foto enviada fica no formato) */
  .intro-visual__city,
  .intro-visual__tennis {
    display: block;
    overflow: hidden;
    clip-path: polygon(50% 0, 100% 24%, 100% 71.5%, 50% 100%, 0 71.5%, 0 24%);
  }

  .intro-visual__city img,
  .intro-visual__tennis img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .intro-visual__city {
    left: 0;
    top: 3.09%;
    width: 104.48%;
    aspect-ratio: 560 / 625;
  }

  /* Hexágono menor com borda creme de 12px (fundo do wrapper) */
  .intro-visual__tennis {
    left: 58.58%;
    top: -2.05%;
    width: 48.13%;
    aspect-ratio: 258 / 307;
    background: var(--color-cream-50);
  }

  .intro-visual__tennis img {
    clip-path: polygon(50% 3.9%, 95.35% 26%, 95.35% 69.9%, 50% 96.1%, 4.65% 69.9%, 4.65% 26%);
  }

  .intro-visual__badge {
    left: 69.78%;
    top: 66.88%;
    width: 36.94%;
  }

  .intro-visual__symbol {
    left: 83.02%;
    top: 78.55%;
    width: 10.45%;
  }

  /* Mobile (Figma): só o hexágono da cidade */
  @media (max-width: 47.99rem) {
    .intro-visual__tennis,
    .intro-visual__badge,
    .intro-visual__symbol {
      display: none;
    }
  }

  @media (min-width: 75rem) {
    .intro-visual {
      width: 100%;
      margin: 0;
    }
  }

  /* ---------- Leisure (Organisms/Leisure Showcase) ---------- */
  .section-leisure,
  .section-project {
    background-image:
      radial-gradient(circle 31.25rem at 7.5% 8.75rem, rgb(247 168 28 / 0.14), rgb(247 168 28 / 0)),
      radial-gradient(circle 31.25rem at 91.9% 71.25rem, rgb(247 168 28 / 0.12), rgb(247 168 28 / 0));
  }

  .leisure-showcase {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .leisure-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #fff;
  }

  .leisure-card__media {
    position: relative;
    height: 13.75rem;
  }

  @media (min-width: 48rem) {
    .leisure-card__media {
      height: 20rem;
    }
  }

  .leisure-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .leisure-card__gradient,
  .leisure-card__num-top,
  .leisure-card__label,
  .leisure-card__trigger {
    display: none;
  }

  .leisure-card__panel {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: 2rem;
  }

  .leisure-card__num {
    font-size: var(--text-caps-compact);
  }

  .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem 0.5rem 0.75rem;
    border: 1px solid var(--color-brown-300);
    border-radius: 999px;
    font-size: 0.875rem;
    line-height: 1.5715;
    color: var(--color-brown-700);
  }

  /* Desktop: acordeão no hover (1 painel aberto). Sem JS cai no empilhado. */
  @media (min-width: 75rem) {
    .js .leisure-showcase {
      flex-direction: row;
      height: 42.5rem;
    }

    .js .leisure-card {
      flex: 216 1 0;
      min-width: 0;
      background: var(--color-brown-800);
      transition: flex-grow 0.5s var(--ease-figma);
    }

    .js .leisure-card.is-active {
      flex-grow: 600;
    }

    .js .leisure-card__media {
      position: absolute;
      inset: 0;
      height: auto;
    }

    .js .leisure-card__gradient {
      display: block;
      position: absolute;
      inset: 0;
      background: linear-gradient(to bottom, rgb(43 33 31 / 0.05), rgb(43 33 31 / 0.8));
      transition: opacity 0.5s var(--ease-figma);
    }

    .js .leisure-card.is-active .leisure-card__gradient {
      background: linear-gradient(to bottom, rgb(43 33 31 / 0), rgb(43 33 31 / 0.25));
    }

    .js .leisure-card__num-top {
      display: block;
      position: absolute;
      left: 1.75rem;
      top: 1.75rem;
      color: var(--color-cream-50);
    }

    .js .leisure-card__label {
      display: block;
      position: absolute;
      left: 1.75rem;
      bottom: 1.875rem;
      white-space: nowrap;
      font-family: var(--font-display);
      font-variation-settings: "opsz" 14, "wdth" 100;
      font-weight: 500;
      font-size: 1.625rem;
      line-height: 1.23;
      color: var(--color-cream-50);
      transition: opacity 0.3s var(--ease-figma);
    }

    .js .leisure-card.is-active .leisure-card__label {
      opacity: 0;
    }

    .js .leisure-card__trigger {
      display: block;
      position: absolute;
      inset: 0;
      z-index: 1;
      border-radius: inherit;
      cursor: pointer;
    }

    .js .leisure-card.is-active .leisure-card__trigger {
      pointer-events: none;
    }

    .js .leisure-card__panel {
      position: absolute;
      left: 1rem;
      right: 1rem;
      bottom: 1rem;
      z-index: 2;
      min-width: 33rem;
      gap: 1rem;
      padding: 1.75rem;
      border-radius: var(--radius-lg);
      background: #fff;
      opacity: 0;
      visibility: hidden;
      transform: translateY(1rem);
      transition: opacity 0.35s var(--ease-figma), transform 0.35s var(--ease-figma), visibility 0s linear 0.35s;
    }

    .js .leisure-card.is-active .leisure-card__panel {
      opacity: 1;
      visibility: visible;
      transform: none;
      transition-delay: 0.15s, 0.15s, 0s;
    }

    .js .leisure-card__num {
      display: none;
    }
  }

  /* ---------- Location ---------- */
  .location-grid {
    display: grid;
    gap: 2.5rem;
  }

  .location-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .location-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1.5rem;
    order: 3;
  }

  .location-visual {
    position: relative;
    order: 2;
    margin: 0;
    aspect-ratio: 342 / 340;
    overflow: hidden;
    border-radius: var(--radius-xl);
  }

  .location-visual > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .pin-card {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.75rem 1rem 1rem;
    border-radius: var(--radius-lg);
    background: #fff;
  }

  .pin-card__icon,
  .icon-stat__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    background: var(--color-orange-100);
  }

  .pin-card__icon img {
    width: 2rem;
    height: 2rem;
  }

  .icon-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-brown-200);
  }

  .icon-stat__icon img {
    width: 1.875rem;
    height: 1.875rem;
  }

  .icon-stat__value {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 14, "wdth" 100;
    font-weight: 700;
    font-size: clamp(3.5rem, 3.4194rem + 0.3306vw, 3.75rem);
    line-height: 1.067;
    letter-spacing: -0.025em;
    color: var(--color-brown-700);
  }

  @media (min-width: 48rem) {
    .location-stats {
      grid-template-columns: repeat(3, 1fr);
      order: 2;
    }

    .location-visual {
      order: 3;
      aspect-ratio: 754 / 520;
    }

    .pin-card {
      left: 2rem;
      right: auto;
      bottom: 2rem;
    }
  }

  @media (min-width: 75rem) {
    .location-grid {
      grid-template-columns: repeat(12, 1fr);
      column-gap: 1.5rem;
      row-gap: 2rem;
      align-items: start;
    }

    .location-copy {
      grid-column: 1 / span 5;
      grid-row: 1;
    }

    .location-stats {
      grid-column: 1 / span 5;
      grid-row: 2;
      align-self: start;
    }

    .location-visual {
      grid-column: 7 / span 6;
      grid-row: 1 / span 2;
      aspect-ratio: 648 / 720;
    }
  }

  /* ---------- Proximity (Organisms/Route Visual) ---------- */
  .route-visual {
    position: relative;
    container-type: inline-size;
    aspect-ratio: 648 / 520;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--color-brown-900);
  }

  .route-visual__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .route-visual__progress {
    transform-box: fill-box;
    transform-origin: left center;
    transform: scaleX(0.0034);
  }

  .route-visual__pulse {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
  }

  .route-pill {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    font-size: clamp(0.5625rem, 2.16cqw, 0.875rem);
    line-height: 1.5715;
    white-space: nowrap;
  }

  .route-pill svg {
    width: 1.55cqw;
    height: auto;
    min-width: 0.375rem;
  }

  .route-pill--header {
    left: 4.32%;
    top: 5.38%;
    gap: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.143;
    color: var(--color-brown-300);
  }

  .route-pill--origin,
  .route-pill--destination {
    padding: 0.5em 1.15em 0.5em 0.85em;
    border: 1px solid var(--color-brown-700);
    background: var(--color-brown-800);
    color: var(--color-cream-50);
  }

  .route-pill--origin {
    left: 3.7%;
    top: 89.6%;
  }

  .route-pill--destination {
    left: 52.47%;
    top: 3.85%;
    padding-left: 1.15em;
    opacity: 0;
  }

  .route-pill--time {
    left: 85.03%;
    top: 85.38%;
    padding: 0.5em 1em;
    background: var(--color-orange-500);
    color: var(--color-brown-900);
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.143;
    opacity: 0;
  }

  /* Estado final da animação (também usado com movimento reduzido) */
  .route-visual.is-arrived .route-pill--destination,
  .route-visual.is-arrived .route-pill--time {
    opacity: 1;
    transition: opacity 0.6s var(--ease-figma);
  }

  .route-visual.is-arrived .route-visual__progress {
    transform: scaleX(1);
  }

  .route-visual.is-playing .route-visual__progress {
    transform: scaleX(1);
    transition: transform 3.3s cubic-bezier(0.45, 0, 0.3, 1);
  }

  .route-visual.is-arrived .route-visual__pulse--1 {
    animation: route-pulse 1.6s ease-out infinite;
  }

  .route-visual.is-arrived .route-visual__pulse--2 {
    animation: route-pulse 1.6s ease-out 0.4s infinite;
  }

  .route-visual.is-resetting .route-pill--destination,
  .route-visual.is-resetting .route-pill--time {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
  }

  .route-visual.is-resetting .route-visual__progress {
    transform: scaleX(0.0034);
    transition: transform 0.6s ease-in-out;
  }

  @keyframes route-pulse {
    from {
      opacity: 0.9;
      transform: scale(0.6);
    }

    to {
      opacity: 0;
      transform: scale(1);
    }
  }

  .drive-times {
    display: grid;
    gap: 2rem 1.5rem;
  }

  .drive-time {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-brown-900);
    color: var(--color-brown-900);
  }

  .drive-time__value {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 14, "wdth" 100;
    font-weight: 700;
    font-size: clamp(5rem, 4.6777rem + 1.3223vw, 6rem);
    line-height: 1;
    letter-spacing: -0.031em;
  }

  @media (min-width: 48rem) {
    .drive-times {
      grid-template-columns: 1fr 1fr;
    }
  }

  @media (min-width: 75rem) {
    .route-visual {
      order: 0;
    }
  }

  /* ---------- Map ---------- */
  .map-embed {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .map-embed__img {
    width: 100%;
    aspect-ratio: 342 / 300;
    object-fit: cover;
    border-radius: var(--radius-xl);
  }

  /* iframe do Google Maps: altura vem do aspect-ratio, não do atributo height */
  .map-embed__frame {
    display: block;
    height: auto;
    border: 0;
    background: var(--color-cream-100);
  }

  .map-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: #fff;
    color: var(--color-brown-700);
    text-align: center;
  }

  .map-card__address {
    color: var(--color-brown-500);
  }

  .map-card__links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .map-card .btn {
    width: 100%;
  }

  .map-card .btn--secondary {
    border-color: var(--color-brown-300);
  }

  @media (min-width: 48rem) {
    .map-embed {
      display: block;
    }

    .map-embed__img {
      aspect-ratio: 1320 / 520;
      min-height: 22.5rem;
    }

    .map-card {
      position: absolute;
      right: 1.5rem;
      bottom: 1.5rem;
      width: 27.5rem;
      align-items: flex-start;
      padding: 2rem;
      background: var(--color-brown-800);
      color: var(--color-cream-50);
      text-align: left;
    }

    .map-card__address {
      color: var(--color-brown-300);
    }

    .map-card__links {
      flex-direction: row;
      width: auto;
    }

    .map-card .btn {
      width: auto;
    }

    .map-card .btn--secondary {
      border-color: var(--color-brown-500);
      color: var(--color-cream-50);
    }

    .map-card .btn--secondary:hover {
      border-color: var(--color-orange-500);
      color: var(--color-brown-900);
    }
  }

  /* ---------- Project (bento) ---------- */
  .ghost-hex,
  .hex-outline {
    position: absolute;
    aspect-ratio: 360 / 478.286;
    background: no-repeat center / 100% 100%;
    pointer-events: none;
  }

  .ghost-hex {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 361.5 480.117' preserveAspectRatio='none'%3E%3Cpath opacity='0.08' d='M180.75 0.890599L360.75 116.157V342.865L180.75 479.176L0.75 342.865V116.157L180.75 0.890599Z' fill='none' stroke-width='1.5' stroke='%23FFFBF3'/%3E%3C/svg%3E");
  }

  .ghost-hex--1 {
    left: -6.25%;
    top: -3.75rem;
    width: 22.5rem;
  }

  .ghost-hex--2 {
    left: 88.75%;
    top: 47.5rem;
    width: 16.25rem;
  }

  .hex-outline {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 461.5 612.974' preserveAspectRatio='none'%3E%3Cpath opacity='0.12' d='M230.75 0.8906L460.75 148.176V437.858L230.75 612.033L0.75 437.858V148.176L230.75 0.8906Z' fill='none' stroke-width='1.5' stroke='%23F8A81C'/%3E%3C/svg%3E");
  }

  .hex-outline--1 {
    left: 47%;
    top: -19.6%;
    width: 57%;
  }

  .hex-outline--2 {
    left: 69.3%;
    top: 46.4%;
    width: 37.1%;
  }

  .bento {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .bento__masterplan {
    position: relative;
    margin: 0;
    padding: 1.5rem;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--color-brown-800);
  }

  .bento__masterplan img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .fact-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 10.5rem;
    padding: 2.25rem clamp(1.5rem, 0.2rem + 5vw, 2.5rem);
    border-radius: var(--radius-xl);
  }

  .fact-card--accent {
    background: var(--color-orange-500);
    color: var(--color-brown-900);
  }

  .fact-card--surface {
    border: 1px solid var(--color-brown-700);
    background: var(--color-brown-800);
    color: var(--color-cream-50);
  }

  .fact-card--inverse {
    background: var(--color-cream-50);
    color: var(--color-brown-900);
  }

  .fact-card img {
    width: 2.75rem;
    height: 2.75rem;
  }

  .fact-card__value {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 14, "wdth" 100;
    font-weight: 700;
    font-size: clamp(1.875rem, 1.5124rem + 1.4876vw, 3rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
  }

  .fact-card__value--l {
    font-size: clamp(2.75rem, 2.0651rem + 2.8099vw, 4.875rem);
  }

  .fact-card__value--xl {
    font-size: clamp(3.5rem, 2.6942rem + 3.3058vw, 6rem);
  }

  @media (min-width: 48rem) {
    .bento {
      grid-template-columns: 1fr 1fr;
    }

    .bento__masterplan,
    .bento__gleba,
    .bento__lotes,
    .bento__lazer {
      grid-column: span 2;
    }

    .bento__masterplan {
      aspect-ratio: 754 / 520;
    }

    .fact-card {
      min-height: 12.5rem;
    }

    .bento__gleba,
    .bento__lotes {
      min-height: 15rem;
    }
  }

  @media (min-width: 75rem) {
    .bento {
      grid-template-columns: 424fr 360fr 40fr 424fr;
    }

    .bento__masterplan {
      grid-column: 1 / 3;
      grid-row: 1 / 3;
      aspect-ratio: auto;
      padding: 4.25rem 1.5rem;
    }

    .bento__gleba {
      grid-column: 3 / 5;
      grid-row: 1;
      min-height: 16.75rem;
    }

    .bento__lotes {
      grid-column: 3 / 5;
      grid-row: 2;
      min-height: 16.75rem;
    }

    .bento__metragem {
      grid-column: 1;
      grid-row: 3;
      min-height: 16.25rem;
    }

    .bento__verde {
      grid-column: 2 / 4;
      grid-row: 3;
      min-height: 16.25rem;
    }

    .bento__lazer {
      grid-column: 4;
      grid-row: 3;
      min-height: 16.25rem;
    }
  }

  /* ---------- Gallery (Organisms/Works Carousel) ---------- */
  .works-carousel {
    --slide-w: 85%;
    position: relative;
  }

  .works-carousel__track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: var(--radius-xl);
  }

  .works-carousel__track::-webkit-scrollbar {
    display: none;
  }

  .works-slide {
    position: relative;
    flex: 0 0 var(--slide-w);
    aspect-ratio: 290 / 303;
    overflow: hidden;
    border-radius: var(--radius-xl);
    scroll-snap-align: start;
  }

  .works-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .works-slide__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgb(43 33 31 / 0) 55%, rgb(43 33 31 / 0.6));
  }

  .works-slide__num {
    position: absolute;
    left: 1.25rem;
    bottom: 1.25rem;
    font-family: var(--font-display);
    font-variation-settings: "opsz" 14, "wdth" 100;
    font-weight: 500;
    font-size: var(--text-h3);
    line-height: 1.16;
    letter-spacing: -0.013em;
    color: var(--color-cream-50);
  }

  .works-slide__dim {
    position: absolute;
    inset: 0;
    background: var(--color-brown-900);
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
  }

  .js .works-slide:not(.is-current) .works-slide__dim {
    opacity: 0.55;
  }

  .works-carousel__counter,
  .works-carousel__dots,
  .works-carousel__nav,
  .works-carousel__pause {
    position: absolute;
    z-index: 2;
  }

  /* Controles só existem com JS */
  .no-js .works-carousel__counter,
  .no-js .works-carousel__dots,
  .no-js .works-carousel__nav,
  .no-js .works-carousel__pause {
    display: none;
  }

  .works-carousel__counter {
    right: calc(100% - var(--slide-w) + 1rem);
    top: 1rem;
    padding: 0.625rem 1.125rem;
    border-radius: 999px;
    background: var(--color-brown-900);
    color: var(--color-cream-50);
    font-size: var(--text-caps-compact);
  }

  .works-carousel__dots {
    left: calc(var(--slide-w) / 2);
    bottom: 1.25rem;
    display: flex;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: var(--color-brown-900);
    transform: translateX(-50%);
  }

  /* Botão com 24px de altura (WCAG 2.2); o "dot" desenhado é o ::after */
  .works-carousel__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding-inline: 0.375rem;
  }

  .works-carousel__dot::after {
    content: "";
    display: block;
    width: 0.75rem;
    height: 0.5rem;
    border-radius: 999px;
    background: rgb(255 251 243 / 0.55);
    transition: width 0.7s ease-in-out, background-color 0.7s ease-in-out;
  }

  .works-carousel__dot.is-current::after {
    width: 3rem;
    background: var(--color-orange-500);
  }

  .works-carousel__nav {
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-top: -1.375rem;
    border-radius: 999px;
    transition: background-color 0.2s var(--ease-figma), opacity 0.2s var(--ease-figma);
  }

  .works-carousel__nav--prev {
    left: 1rem;
    background: var(--color-brown-900);
    color: var(--color-cream-50);
  }

  .works-carousel__nav--next {
    right: 1rem;
    background: var(--color-orange-500);
    color: var(--color-brown-900);
  }

  .works-carousel__nav:hover {
    background: var(--color-orange-600);
    color: var(--color-brown-900);
  }

  .works-carousel__nav[disabled] {
    opacity: 0.4;
    cursor: default;
  }

  .works-carousel__pause {
    left: 1rem;
    top: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: var(--color-brown-900);
    color: var(--color-cream-50);
  }

  .works-carousel__play-icon,
  .works-carousel__pause[aria-pressed="true"] .works-carousel__pause-icon {
    display: none;
  }

  .works-carousel__pause[aria-pressed="true"] .works-carousel__play-icon {
    display: block;
  }

  @media (min-width: 48rem) {
    .works-carousel {
      --slide-w: 74.5%;
    }

    .works-carousel__track {
      gap: 1.5rem;
    }

    .works-slide {
      aspect-ratio: 560 / 410;
    }

    .works-slide__num {
      left: 2.25rem;
      bottom: 2.25rem;
    }

    .works-carousel__counter {
      top: 1.5rem;
      right: calc(100% - var(--slide-w) + 1.5rem);
    }

    .works-carousel__dots {
      bottom: 1.5rem;
    }

    .works-carousel__nav {
      width: 3.5rem;
      height: 3.5rem;
      margin-top: -1.75rem;
    }

    .works-carousel__nav--prev {
      left: 1.5rem;
    }

    .works-carousel__nav--next {
      right: 1.5rem;
    }

    .works-carousel__pause {
      left: 1.5rem;
      top: 1.5rem;
    }
  }

  @media (min-width: 75rem) {
    .works-carousel {
      --slide-w: 72.73%;
    }

    .works-slide {
      aspect-ratio: 960 / 640;
    }
  }

  /* ---------- Security (Molecules/Security Card) ---------- */
  .security-cards {
    display: grid;
    gap: 1.5rem;
  }

  .security-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 23.4375rem;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--color-cream-100);
  }

  .security-card > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .security-card__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgb(43 33 31 / 0) 0%, rgb(43 33 31 / 0.05) 45%, rgb(43 33 31 / 0.78) 100%);
    transition: opacity 0.35s var(--ease-figma);
  }

  .security-card__gradient::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgb(43 33 31 / 0) 0%, rgb(43 33 31 / 0.2) 45%, rgb(43 33 31 / 0.92) 100%);
    opacity: 0;
    transition: opacity 0.35s var(--ease-figma);
  }

  .security-card:hover .security-card__gradient::after {
    opacity: 1;
  }

  .security-card__num {
    position: absolute;
    left: 2rem;
    top: 2rem;
    color: var(--color-cream-50);
  }

  .security-card__content h3 {
    font-size: 1.625rem;
    line-height: 1.23;
  }

  .security-card__content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
  }

  .security-card__bar {
    display: block;
    width: 2.5rem;
    height: 0.1875rem;
    background: var(--color-orange-500);
    transition: width 0.35s var(--ease-figma);
  }

  .security-card:hover .security-card__bar {
    width: 6rem;
  }

  @media (min-width: 48rem) {
    .security-cards {
      grid-template-columns: 1fr 1fr;
    }

    .security-card {
      min-height: 34.375rem;
    }

    .security-card:last-child {
      grid-column: span 2;
      min-height: 23.75rem;
    }
  }

  @media (min-width: 75rem) {
    .security-cards {
      grid-template-columns: repeat(3, 1fr);
      padding-bottom: 4.5rem;
    }

    .security-card,
    .security-card:last-child {
      grid-column: auto;
      min-height: 32.5rem;
    }

    .security-card:nth-child(2) {
      transform: translateY(4.5rem);
    }
  }

  /* ---------- CTA ---------- */
  .cta-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
  }

  @media (min-width: 48rem) {
    .cta-actions {
      flex-direction: row;
      justify-content: center;
      width: auto;
    }

    .cta-actions .btn {
      width: auto;
    }
  }
}
