/* =========================================================
   Fonte: Blauer Nue
   (se o CSS está em /assets/css/, a fonte deve estar em /assets/fonts/)
========================================================= */

@font-face{
  font-family: "Blauer Nue";
  src: url("../fonts/BlauerNue-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root{
  --pad-x: clamp(14px, 2.4vw, 64px);
  --pad-y: clamp(12px, 2.0vh, 44px);

  --text: #ffffff;
  --text-soft: rgba(255,255,255,.75);

  --border: rgba(255,255,255,.18);
  --border-strong: rgba(255,255,255,.34);
  --line: rgba(255,255,255,.18);

  --surface: rgba(255,255,255,.06);
  --surface-soft: rgba(255,255,255,.04);
  --surface-strong: rgba(255,255,255,.09);

  --marquee-bg: rgba(255,255,255,.92);
  --marquee-text: #060010;

  --frame-inset: rgba(255,255,255,.08);
  --shadow-elev: rgba(0,0,0,.18);

  --preloader-bg: #000000;

  --glitch-a: rgba(255,255,255,.55);
  --glitch-b: rgba(255,255,255,.35);

  color-scheme: dark;
}

html[data-theme="light"]{
  --text: #111111;
  --text-soft: rgba(17,17,17,.72);

  --border: rgba(17,17,17,.16);
  --border-strong: rgba(17,17,17,.28);
  --line: rgba(17,17,17,.14);

  --surface: rgba(255, 255, 255, 0.71);
  --surface-soft: rgba(255, 255, 255, 0.697);
  --surface-strong: rgba(255, 255, 255, 0.69);

  --marquee-bg: rgba(17,17,17,.92);
  --marquee-text: #f4f1ea;

  --frame-inset: rgba(17,17,17,.06);
  --shadow-elev: rgba(17,17,17,.10);

  --preloader-bg: #f4f1ea;

  --glitch-a: rgba(17,17,17,.28);
  --glitch-b: rgba(17,17,17,.18);

  color-scheme: light;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  height: 100svh;
  overflow: hidden;
  color: var(--text);
  background: transparent;
  font-family: "Blauer Nue", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  transition: color .25s ease, background-color .25s ease;
}

/* =========================
   Transições de tema
========================= */
.top__left a,
.top__nav a,
.bottom__terms,
.icon,
.about__details,
.about__photo,
.work-card,
.fm__item,
.fm__marquee-inner,
.work-shot,
.works-card-clean__frame{
  transition:
    color .25s ease,
    background .25s ease,
    border-color .25s ease,
    box-shadow .25s ease,
    opacity .25s ease,
    transform .25s ease;
}

/* Layout geral */
.page{
  position: relative;
  height: 100svh;
  width: 100vw;
  display: grid;
  grid-template-rows: auto 1fr auto;
  z-index: 1;
  padding:
    calc(env(safe-area-inset-top) + var(--pad-y))
    calc(env(safe-area-inset-right) + var(--pad-x))
    calc(env(safe-area-inset-bottom) + var(--pad-y))
    calc(env(safe-area-inset-left) + var(--pad-x));
}

/* ---------------- Top bar ---------------- */
.top{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-top: 8px;
}

.top__left{
  font-size: 17px;
  letter-spacing: -0.01em;
}

.top__left a{
  color: inherit;
  text-decoration: none;
}

.top__nav{
  display: flex;
  gap: clamp(12px, 1.6vw, 32px);
  justify-content: flex-start;
  transform: translateX(-220px);
}

.top__nav a{
  color: var(--text);
  text-decoration: none;
  font-size: 17px;
  letter-spacing: -0.01em;
  padding: 10px 12px;
}

.top__right{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}

/* light mode button */
.theme-toggle{
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .25s ease, color .25s ease;
}

.theme-toggle:focus-visible{
  outline: 2px solid var(--text);
  outline-offset: 4px;
  border-radius: 999px;
}

.theme-toggle__icon{
  width: 35px;
  height: 35px;
  display: block;
  transform: skewX(-10deg) rotate(0deg)scale(1);
  transform-origin: center center;
  transition: transform .28s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.theme-toggle:hover .theme-toggle__icon,
.theme-toggle:focus-visible .theme-toggle__icon{
  transform: skewX(-10deg) rotate(0deg) scale(1.08);
}

.theme-toggle__icon path{
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition:
    fill .22s ease,
    stroke .22s ease,
    transform .22s ease,
    opacity .22s ease;
}

/* original/dark -> hover enche a branco */
html[data-theme="original"] .theme-toggle:hover .theme-toggle__icon path,
html[data-theme="original"] .theme-toggle:focus-visible .theme-toggle__icon path{
  fill: #ffffff;
}

/* light -> hover enche a preto */
html[data-theme="light"] .theme-toggle:hover .theme-toggle__icon path,
html[data-theme="light"] .theme-toggle:focus-visible .theme-toggle__icon path{
  fill: #111111;
}

.icon{
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 17px;
  padding: 10px;
}

/* ---------------- Hero ---------------- */
.hero{
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__title{
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.97;
  font-size: clamp(44px, 6.6vw, 140px);
  padding: 6px 0;
}

.hero__meta{
  margin-top: clamp(16px, 2.4vh, 26px);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: clamp(28px, 7vw, 220px);
  padding-top: 4px;
}

.hero__services{
  font-size: 17px;
  line-height: 1.25;
}

.hero__location{
  font-size: 17px;
  line-height: 1.25;
  justify-self: start;
  padding-left: 50px;
}

.hero__title-break{
  display: none;
}

/* ---------------- Bottom bar ---------------- */
.bottom{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 17px;
  letter-spacing: -0.01em;
  padding-bottom: 6px;
}

.bottom__terms{
  color: var(--text);
  text-decoration: none;
  padding: 8px 0 0;
}

/* =========================
   HOME MOBILE
========================= */
.top__menu-toggle{
  display: none;
}

@media (max-width: 700px){
  body{
    height: 100svh;
    overflow: hidden;
  }

  .page{
    height: 100svh;
    overflow: hidden;
    grid-template-rows: auto 1fr auto;
    padding:
      calc(env(safe-area-inset-top) + 20px)
      calc(env(safe-area-inset-right) + 20px)
      calc(env(safe-area-inset-bottom) + 18px)
      calc(env(safe-area-inset-left) + 20px);
  }

.top{
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding-top: 0;
  position: relative;
  z-index: 20;
}

.top__left{
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.top__left a{
  font-size: 15px;
}

.top__right{
  display: flex;
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  justify-content: flex-end;
  align-items: center;
}

.theme-toggle{
  width: 38px;
  height: 38px;
}

.theme-toggle__icon{
  width: 28px;
  height: 28px;
}

.top__menu-toggle{
  display: inline-flex;
  grid-column: 3 / 4;
  grid-row: 1 / 2;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  justify-self: end;
}

  .top__menu-toggle span{
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .24s ease, opacity .24s ease;
    transform-origin: center;
  }

  .top__menu-toggle.is-open span:nth-child(1){
    transform: translateY(7px) rotate(45deg);
  }

  .top__menu-toggle.is-open span:nth-child(2){
    opacity: 0;
  }

  .top__menu-toggle.is-open span:nth-child(3){
    transform: translateY(-7px) rotate(-45deg);
  }

 .top__nav{
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    transform: none;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 170px;
    padding: 14px 16px;

    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(10, 10, 10, 0.87);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 50px var(--shadow-elev);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity .22s ease,
      visibility 0s linear .22s;
    z-index: 50;
  }

  .top__nav.is-open{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
      opacity .22s ease,
      visibility 0s linear 0s;
  }

  .top__nav a{
    padding: 0;
    font-size: 18px;
  }

  .hero{
    justify-content: center;
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }

  .hero__title{
    font-size: clamp(34px, 13vw, 62px);
    line-height: .94;
  }

  .hero__meta{
    margin-top: 18px;
    grid-template-columns: 1fr;
    row-gap: 10px;
    column-gap: 0;
  }

  .hero__services,
  .hero__location{
    font-size: 15px;
    line-height: 1.2;
  }

  .hero__location{
    padding-left: 0;
    justify-self: start;
  }

  .bottom{
    font-size: 14px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
  }

  .hero__title-break{
    display: inline;
  }

  .bottom__terms{
    margin-left: auto;
    white-space: nowrap;
    padding: 0;
  }
}

@media (max-width: 1200px){
  .top{
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding-top: 0;
  position: relative;
  z-index: 20;
}

.top__left{
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.top__left a{
  font-size: 15px;
}

.top__right{
  display: flex;
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  justify-content: flex-end;
  align-items: center;
}

.theme-toggle{
  width: 38px;
  height: 38px;
}

.theme-toggle__icon{
  width: 28px;
  height: 28px;
}

 .top__menu-toggle{
  display: inline-flex;
  grid-column: 3 / 4;
  grid-row: 1 / 2;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  justify-self: end;
}

  .top__menu-toggle span{
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .24s ease, opacity .24s ease;
    transform-origin: center;
  }

  .top__menu-toggle.is-open span:nth-child(1){
    transform: translateY(7px) rotate(45deg);
  }

  .top__menu-toggle.is-open span:nth-child(2){
    opacity: 0;
  }

  .top__menu-toggle.is-open span:nth-child(3){
    transform: translateY(-7px) rotate(-45deg);
  }

 .top__nav{
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    transform: none;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 170px;
    padding: 14px 16px;

    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(10, 10, 10, 0.87);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 50px var(--shadow-elev);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity .22s ease,
      visibility 0s linear .22s;
    z-index: 50;
  }

  .top__nav.is-open{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
      opacity .22s ease,
      visibility 0s linear 0s;
  }
}

/* =========================
   About page
========================= */
.about{
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  height: 100%;
  gap: clamp(8px, 1.2vh, 16px);
}

.about__grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(16px, 4vw, 64px);
  align-items: center;
}

.about__intro{
  padding-top: clamp(6px, 1.2vh, 16px);
}

.about__text{
  margin: 0 0 14px 0;
  font-size: 17px;
  line-height: 1.4;
  opacity: .9;
  max-width: 58ch;
}

.about__text:last-child{
  margin-bottom: 0;
}

.about__details{
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 20px;
  padding: 18px;
}

.about__row{
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: baseline;
}

.about__label{
  opacity: .7;
  letter-spacing: .06em;
  font-size: 12px;
  text-transform: uppercase;
}

.about__value{
  font-size: 15px;
  line-height: 1.25;
  opacity: .95;
}

.about__link{
  color: inherit;
  text-decoration: none;
}

.about__sep{
  opacity: .6;
  padding: 0 8px;
}

.about__intro .hero__title{
  margin: 0 0 25px 0;
}

.about__photo{
  width: 100%;
  height: 350px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  margin-bottom: 12px;
}

.about__photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 90% 70%;
  display: block;
  filter: grayscale(100%) contrast(1.05);
  opacity: .95;
  image-rendering: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
}

@media (max-width: 700px){
  body.about-page{
    height: auto;
    min-height: 100svh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .about-page .page{
    height: auto;
    min-height: 100svh;
    overflow: visible;
    padding:
      calc(env(safe-area-inset-top) + 20px)
      calc(env(safe-area-inset-right) + 20px)
      calc(env(safe-area-inset-bottom) + 18px)
      calc(env(safe-area-inset-left) + 20px);
  }

  .about-page .top{
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 20;
  }

  .about-page .top__left{
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }

  .about-page .top__right{
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .about-page .top__menu-toggle{
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    justify-self: end;
    align-self: center;
  }

  .about-page .hero.about{
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 22px 0 0;
  }

  .about-page .about__grid{
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }

  .about-page .about__intro{
    padding-top: 0;
  }

  .about-page .about__intro .hero__title{
    margin: 0 0 18px 0;
    font-size: clamp(42px, 14vw, 64px);
    line-height: .92;
  }

  .about-page .about__text{
    max-width: none;
    font-size: 15px;
    line-height: 1.35;
    margin: 0 0 14px 0;
  }

  .about-page .about__details{
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
  }

  .about-page .about__photo{
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    margin-bottom: 8px;
    border-radius: 14px;
  }

  .about-page .about__photo img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 35%;
    display: block;
  }

  .about-page .about__row{
    grid-template-columns: 74px 1fr;
    gap: 10px;
    align-items: start;
  }

  .about-page .about__value{
    min-width: 0;
    font-size: 14px;
    line-height: 1.3;
  }

  .about-page .bottom{
    margin-top: 18px;
    padding-bottom: 0;
    font-size: 14px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
  }

  .about-page .bottom__terms{
    margin-left: auto;
    white-space: nowrap;
    padding: 0;
  }
}

/* =========================
   Services Page   
========================= */
.works{
  display: grid;
  align-content: center;
  gap: clamp(18px, 2.8vh, 28px);
}

.works__header{
  display: grid;
  gap: 8px;
}

.works__title{
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 84px);
  line-height: 0.95;
}

.works__subtitle{
  margin: 0;
  opacity: .85;
  font-size: clamp(14px, 1.2vw, 18px);
}

.works__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.work-card{
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 18px;
  min-height: 160px;
  display: grid;
  gap: 10px;
  transition:
    transform .25s cubic-bezier(.2,.8,.2,1),
    border-color .25s ease,
    background .25s ease,
    color .25s ease;
}

.work-gallery{
  grid-column: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.work-intro-overlay{
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  inset: auto;
  z-index: auto;
  display: block;
  pointer-events: auto;
}

.work-intro-overlay__inner{
  width: 100%;
  max-width: 1000px;
  text-align: left;
  pointer-events: auto;
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: rgba(10, 10, 10, 0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px var(--shadow-elev);
}

html[data-theme="light"] .work-intro-overlay__inner{
  background: rgba(245, 245, 242, 0.46);
}

.work-intro-overlay__eyebrow{
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .68;
}

.work-intro-overlay__title{
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: .95;
  letter-spacing: -.04em;
}

.work-intro-overlay__text{
  margin: 0;
  max-width: 95ch;
  line-height: 1.5;
  opacity: .9;
}

.work-intro-overlay__actions{
  margin-top: 18px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.work-intro-overlay__link{
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: inherit;
  text-decoration: none;
  line-height: 1.1;

  --px: 0px;
  --py: 0px;
  --ul-gap: 0px;
}

.work-intro-overlay__link::after{
  content: "";
  position: absolute;
  left: var(--px);
  right: var(--px);
  bottom: calc(var(--py) + var(--ul-gap));
  height: 1px;
  background-color: currentColor;
  border-radius: 999px;

  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.work-intro-overlay__link:hover::after,
.work-intro-overlay__link:focus-visible::after{
  transform: scaleX(1);
  transform-origin: left center;
}

.work-intro-overlay__link:focus-visible{
  outline: none;
}

@media (max-width: 900px){
  .work-gallery{
    grid-column: 1;
  }

  .work-intro-overlay__inner{
    padding: 22px 20px;
    border-radius: 22px;
  }

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

  .work-card{
    min-height: 150px;
  }

  body.services-page{
    height: auto;
    min-height: 100svh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .services-page .page{
    height: auto;
    min-height: 100svh;
    overflow: visible;
    grid-template-rows: auto 1fr auto;
    padding:
      calc(env(safe-area-inset-top) + 20px)
      calc(env(safe-area-inset-right) + 20px)
      calc(env(safe-area-inset-bottom) + 18px)
      calc(env(safe-area-inset-left) + 20px);
  }

  .services-page .hero.works{
    display: grid;
    align-content: start;
    min-height: 0;
    height: auto;
    overflow: visible;
    padding: 30px 0 20px;
    gap: 18px;
  }

  .services-page .works__header{
    margin-top: 8px;
    gap: 8px;
  }

  .services-page .works__title{
    font-size: clamp(40px, 13vw, 60px);
    line-height: .92;
  }

  .services-page .works__subtitle{
    font-size: 14px;
    line-height: 1.28;
  }

  .services-page .works__grid{
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 10px;
  }

  .services-page .work-card{
    min-height: 140px;
    padding: 15px;
    border-radius: 18px;
  }

  .services-page .work-card__title{
    font-size: 24px;
    line-height: 1;
  }

  .services-page .work-card__desc{
    font-size: 14px;
    line-height: 1.3;
  }

  .services-page .bottom{
    margin-top: 14px;
    font-size: 14px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
  }

  .services-page .bottom__terms{
    margin-left: auto;
    white-space: nowrap;
    padding: 0;
  }
}

.work-card:hover{
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.work-card__top{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.work-card__title{
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: clamp(18px, 1.8vw, 26px);
}

.work-card__tag{
  font-size: 12px;
  opacity: .75;
  letter-spacing: 0.12em;
}

.work-card__desc{
  margin: 0;
  opacity: .85;
  line-height: 1.35;
  font-size: clamp(14px, 1.2vw, 16px);
}

.view{ display: none; }
.view.view--active{ display: block; }

@view-transition {
  navigation: auto;
}

@media (max-width: 700px){
  .services-page .works__title{
    font-size: clamp(38px, 14vw, 56px);
  }

  .services-page .works__subtitle{
    font-size: 14px;
    line-height: 1.25;
  }

  .services-page .work-card{
    min-height: 136px;
    padding: 15px;
  }

  .services-page .work-card__title{
    font-size: 22px;
  }

  .services-page .work-card__desc{
    font-size: 14px;
  }
}

/* ========= Flowing Menu ========= */
.fm-wrap{
  width: 100%;
  height: min(560px, 62vh);
  overflow: hidden;
}

.fm{
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

/* cada linha */
.fm__item{
  flex: 1;
  position: relative;
  overflow: hidden;
  border: 0;
  box-shadow: inset 0 -1px 0 var(--line);
}

.fm__item:first-child{
  border-top: none;
}

.fm__item:last-child{
  box-shadow: none;
}

/* link principal (zona de hover) */
.fm__link{
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text);
  letter-spacing: -0.02em;
  font-weight: 500;
  font-size: clamp(16px, 2.2vw, 46px);
  line-height: 1;
  position: relative;
  z-index: 1;
}

/* overlay marquee */
.fm__marquee{
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translate3d(0, 100%, 0);
  transition: transform .42s cubic-bezier(.2,.8,.2,1);
  z-index: 2;
}

/* fundo */
.fm__marquee-inner{
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--marquee-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 0;
}

/* track a andar */
.fm__track{
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: fm-marquee linear infinite;
  animation-play-state: paused;
}

/* cada segmento */
.fm__part{
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 1.6vw;
  padding: 0 1.0vw;
}

.fm__part span{
  white-space: nowrap;
  text-transform: uppercase;
  font-weight: 500;
  font-size: clamp(16px, 2.4vw, 46px);
  line-height: 1;
  color: var(--marquee-text);
}

.fm__img{
  width: 200px;
  height: 48px;
  border-radius: 999px;
  background-size: cover;
  background-position: 50% 50%;
  background-image: var(--img);
  filter: grayscale(100%) contrast(1.05);
  opacity: .95;
}

.fm__link:hover{
  opacity: 0;
}

/* hover só depende do link */
.fm__link:hover ~ .fm__marquee{
  transform: translate3d(0, 0, 0);
}

.fm__link:hover ~ .fm__marquee .fm__track{
  animation-play-state: running;
}

@keyframes fm-marquee{
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}

@media (prefers-reduced-motion: reduce){
  .fm__marquee{ transition: none; }
  .fm__track{ animation: none; }
}

/* direita: começa já no meio (-50%) para aparecerem logo “vários” */
.fm__item--right .fm__track{
  transform: translate3d(-50%, 0, 0);
  animation-name: fm-marquee-right;
}

@keyframes fm-marquee-right{
  from { transform: translate3d(-50%,0,0); }
  to   { transform: translate3d(0,0,0); }
}

/* hover OU ativo (aria-current) */
.top__nav a:hover::after,
.top__nav a[aria-current="page"]::after,
.top__nav a[aria-current="location"]::after,
.bottom__terms:hover::after,
.bottom__terms[aria-current="page"]::after,
.bottom__terms[aria-current="location"]::after{
  transform: scaleX(1);
  transform-origin: left;
}

.top{ view-transition-name: header; }
.bottom{ view-transition-name: footer; }
main{ view-transition-name: content; }

/* header/footer sem “animação” visível */
::view-transition-old(header),
::view-transition-new(header),
::view-transition-old(footer),
::view-transition-new(footer){
  animation: none;
}

/* anima só o conteúdo */
::view-transition-old(content){
  animation: contentOut .22s ease both;
}

::view-transition-new(content){
  animation: contentIn .32s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes contentOut{
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-10px); }
}

@keyframes contentIn{
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================
   WORK PROJECT — MATCH PDF
========================= */
.page main.hero.work-main{
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: clamp(150px, 18vw, 220px) minmax(0, 1fr);
  column-gap: clamp(36px, 7vw, 120px);
  align-items: stretch;
  justify-content: start;
  overflow: hidden;
}

.work-meta{
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  padding-top: 0;
}

.work-meta__block{
  margin-bottom: clamp(34px, 5vh, 68px);
}

.work-meta__block:last-child{
  margin-bottom: 0;
}

.work-meta__label{
  font-size: 17px;
  opacity: .9;
}

.work-meta__value{
  font-size: 25px;
  line-height: 1.25;
}

.work-gallery{
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scroll-snap-type: none;
  margin-left: 150px;
  display: flex;
  flex-direction: column;
  padding-top: 80px;
  scroll-padding-top: 80px;
  gap: clamp(22px, 2.8vh, 34px);
  padding-right: 0;
}

.work-gallery::-webkit-scrollbar{
  width: 0;
  height: 0;
}

.work-gallery{
  scrollbar-width: none;
}

.work-shot{
  width: min(100%, 1000px);
  aspect-ratio: 1.47 / 1;
  flex: 0 0 auto;
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface-soft);
  box-shadow: none;
  scroll-snap-align: none;
}
.work-shot img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 900px){
  body.project-page-view{
    height: auto;
    min-height: 100svh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .project-page-view .page{
    height: auto;
    min-height: 100svh;
    overflow: visible;
    grid-template-rows: auto 1fr auto;
    padding:
      calc(env(safe-area-inset-top) + 20px)
      calc(env(safe-area-inset-right) + 20px)
      calc(env(safe-area-inset-bottom) + 18px)
      calc(env(safe-area-inset-left) + 20px);
  }

  .project-page-view .page main.hero.work-main{
    min-height: 0;
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 16px;
    padding-top: 18px;
    overflow: visible;
  }

  .project-page-view .work-meta{
    height: auto;
    display: grid;
    gap: 16px;
    justify-content: flex-start;
    align-self: start;
  }

  .project-page-view .work-meta__block{
    margin-bottom: 0;
  }

  .project-page-view .work-meta__label{
    font-size: 15px;
    line-height: 1.1;
  }

  .project-page-view .work-meta__value{
    font-size: 18px;
    line-height: 1.15;
  }

  .project-page-view .work-gallery{
    height: auto;
    overflow: visible;
    padding-top: 0;
    padding-right: 0;
    padding-bottom: 20px;
    align-items: stretch;
    margin-left: 0;
    gap: 18px;
  }

  .project-page-view .work-intro-overlay__inner{
    padding: 20px 18px;
    border-radius: 20px;
  }

  .project-page-view .work-intro-overlay__eyebrow{
    font-size: 11px;
  }

  .project-page-view .work-intro-overlay__title{
    font-size: clamp(30px, 8vw, 40px);
    line-height: .95;
  }

  .project-page-view .work-intro-overlay__text{
    font-size: 15px;
    line-height: 1.4;
    max-width: none;
  }

  .project-page-view .work-intro-overlay__actions{
    margin-top: 14px;
    gap: 14px;
  }

  .project-page-view .work-shot{
    width: 100%;
    border-radius: 22px;
  }

  .project-page-view .bottom{
    margin-top: 18px;
    font-size: 14px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
  }

  .project-page-view .bottom__terms{
    margin-left: auto;
    white-space: nowrap;
    padding: 0;
  }
}

@media (max-width: 700px){
  .project-page-view .work-meta{
    gap: 14px;
  }

  .project-page-view .work-meta__label{
    font-size: 14px;
  }

  .project-page-view .work-meta__value{
    font-size: 16px;
  }

  .project-page-view .work-gallery{
    gap: 16px;
  }

  .project-page-view .work-intro-overlay__inner{
    padding: 18px 16px;
  }
}

/* =========================
   PROJECTS — SHOWCASE FLOW
========================= */
main.hero.works-page-showcase{
  position: relative;
  display: block;
  height: 100%;
  min-height: 0;
  overflow: visible;
  padding: 0;

  width: calc(
    100% + (var(--pad-x) * 2) +
    env(safe-area-inset-left) +
    env(safe-area-inset-right)
  );
  margin-left: calc(-1 * (var(--pad-x) + env(safe-area-inset-left)));
  margin-right: calc(-1 * (var(--pad-x) + env(safe-area-inset-right)));
}

.projects-flow{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  overflow: visible;
  padding: 18px 0;
}

.projects-flow__viewport{
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: auto;
  padding: 0;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
}

.projects-flow__viewport::-webkit-scrollbar{
  display: none;
}

.projects-flow__track{
  display: flex;
  align-items: center;
  gap: clamp(24px, 2.4vw, 40px);
  width: max-content;
  padding: 28px 0;
}

/* card */
.project-card{
  flex: 0 0 auto;
width: clamp(780px, 64vw, 1160px);
  min-height: clamp(500px, 66vh, 760px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 0;
  text-decoration: none;
  color: inherit;

  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 28px;
  overflow: hidden;
  position: relative;

  transform: scale(0.975);
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
  transform-style: preserve-3d;

  transition:
    transform .32s cubic-bezier(.2,.8,.2,1),
    border-color .24s ease,
    background .24s ease,
    box-shadow .24s ease;
}

.project-card:focus-visible,
.project-card.is-pointer-hover{
  transform: scale(0.99);
  border-color: var(--border-strong);
  box-shadow:
    0 0 0 1px var(--frame-inset) inset,
    0 18px 50px var(--shadow-elev);
  z-index: 2;
}

.project-card__media{
  position: relative;
  min-height: 100%;
  background: var(--surface-soft);
}

.project-card__media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.project-card__content{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 2.6vw, 34px);
  gap: 18px;
  background: rgba(0,0,0,.10);
}

html[data-theme="light"] .project-card__content{
  background: rgba(255,255,255,.12);
}

.project-card__year{
  margin: 0;
  font-size: clamp(13px, .9vw, 16px);
  line-height: 1;
  opacity: .78;
  letter-spacing: -0.01em;
}

.project-card__title{
  margin: 0;
  font-size: clamp(32px, 3.2vw, 58px);
  line-height: .94;
  letter-spacing: -0.035em;
  font-weight: 400;
  max-width: 9ch;
}

.project-card__desc{
  margin: 0;
  max-width: 32ch;
  font-size: clamp(14px, .95vw, 18px);
  line-height: 1.42;
  opacity: .8;
}

.project-card__tags{
  list-style: none;
  margin: auto 0 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.work-shot--video{
  position: relative;
  overflow: hidden;
  background: #000;
  border-radius: inherit;
  clip-path: inset(0 round 28px);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.work-shot--video iframe{
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: calc(100% + 100px);
  border: 0;
  display: block;
  background: #000;
}

.work-shot--video::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px #000;
  pointer-events: none;
  z-index: 2;
}

.project-card__tags li{
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: clamp(13px, .92vw, 16px);
  line-height: 1.2;
  opacity: .88;
}
.project-card__tags li:first-child{
  border-top: none;
}

/* mobile */
@media (max-width: 1100px){
  .projects-flow,
  .projects-flow__track{
    align-items: stretch;
  }

  .project-card{
    width: 88vw;
    height: min(72svh, 680px);
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .project-card__media{
    aspect-ratio: 1.18 / 1;
  }

  .project-card__content{
    min-height: 0;
  }

  .project-card__title{
    max-width: none;
    font-size: clamp(28px, 7vw, 46px);
  }

  .project-card__desc{
    max-width: none;
    font-size: clamp(14px, 2.2vw, 17px);
  }
}

@media (max-width: 700px){
  .projects-flow{
    align-items: center;
    padding: 12px 0;
  }

  .projects-flow__track{
    gap: 18px;
    padding: 24px 0;
    align-items: stretch;
  }

  .project-card{
    width: 90vw;
    height: min(66svh, 600px);
    min-height: 0;
    border-radius: 22px;
    transform: scale(0.985);
  }

  .project-card:focus-visible,
  .project-card.is-pointer-hover{
    transform: scale(0.995);
  }

  .project-card__content{
    padding: 22px 20px;
    min-height: 0;
    justify-content: flex-start;
  }

  .project-card__desc{
    display: none;
  }

  .project-card__tags li{
    padding: 10px 0;
  }

  .title-break{
    display: none;
  }

  .project-card__tags{
    display: none;
  }
}

/* =========================
   CONTACT PAGE
========================= */
.contact-page{
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
}

.contact-shell{
  width: min(1180px, 100%);
  margin: 0 auto;
}

.contact-layout{
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.85fr);
  gap: clamp(28px, 3vw, 52px);
  align-items: center;
}

/* isto é importante para o título não invadir a outra coluna */
.contact-layout > *{
  min-width: 0;
}

.contact-intro{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  max-width: 460px;
}

.contact-intro__eyebrow{
  margin: 0;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .68;
}

.contact-title{
  margin: 0;
  font-size: clamp(44px, 6.6vw, 140px);
  line-height: .9;
  letter-spacing: -.045em;
  max-width: 100%;
  transform: translateX(-5px);
}

.contact-intro__text{
  margin: 0;
  font-size: clamp(15px, 1vw, 17px);
  line-height: 1.35;
  opacity: .88;
}

.contact-info{
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.contact-info__row{
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-info__value,
.contact-info__value .about__link{
  line-height: 1.25;
}

.contact-info__value .about__link{
  display: inline-block;
  vertical-align: top;
}

.contact-info__label{
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .66;
}

.contact-info__value{
  color: inherit;
  opacity: .94;
  min-width: 0;
}

.contact-info__value .about__link{
  display: inline-block;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.contact-links{
  display: flex;
  align-items: center;
  gap: .42em;
  flex-wrap: wrap;
}

.contact-links__sep{
  opacity: .5;
  line-height: 1;
}

.contact-info .about__link{
  --ul-gap: -1px;
}

.contact-card{
  width: 100%;
  max-width: 580px;
  justify-self: center;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 18px 50px var(--shadow-elev);
}

.contact-form{
  display: grid;
  gap: 12px;
}

.contact-form__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-field{
  display: grid;
  gap: 8px;
}

.contact-field label{
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .72;
}

.contact-field input,
.contact-field select,
.contact-field textarea{
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  border-radius: 15px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  outline: none;
  resize: none;
  transition:
    border-color .24s ease,
    background .24s ease,
    box-shadow .24s ease,
    color .24s ease;
}
.contact-field select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder{
  color: var(--text-soft);
}

.contact-field textarea{
  min-height: 145px;
}

.contact-field input:focus,
.contact-field textarea:focus{
  border-color: var(--border-strong);
  background: var(--surface-strong);
  box-shadow: 0 0 0 1px var(--frame-inset) inset;
}

.contact-form__actions{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 4px;
}

.contact-form__button{
  appearance: none;
  border: 1px solid var(--border);
  background: var(--text);
  color: var(--preloader-bg);
  border-radius: 999px;
  min-height: 46px;
  padding: 0 22px;
  font: inherit;
  cursor: pointer;
  transition:
    border-color .24s ease,
    background-color .24s ease,
    box-shadow .24s ease,
    color .24s ease;
}

.contact-form__button:hover,
.contact-form__button:focus-visible{
  background-color: var(--surface-soft);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--frame-inset) inset;
  outline: none;
}

.contact-form__actions{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 6px;
}

.contact-form__status{
  margin: 0;
  font-size: 14px;
  opacity: .82;
}

.contact-form__status.is-success{
  color: var(--text);
}

.contact-form__status.is-error{
  color: #ff6b6b;
}
@media (max-width: 1100px){
  .contact-page{
    min-height: auto;
    align-items: flex-start;
    padding-top: 32px;
    padding-bottom: 16px;
  }

  .contact-shell{
    width: min(920px, 100%);
  }

  .contact-layout{
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-intro{
    max-width: 100%;
  }

  .contact-intro__text{
    max-width: 32ch;
  }

  .contact-card{
    max-width: 100%;
  }
}

@media (max-width: 700px){
  .contact-title{
    font-size: clamp(54px, 16vw, 82px);
  }

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

  .contact-form__button{
    width: 100%;
  }

  .contact-card{
    padding: 18px;
    border-radius: 20px;
  }

  .contact-info__row{
    grid-template-columns: 82px 1fr;
  }
}

@media (max-width: 700px){
  body.contact-page-view{
    height: auto;
    min-height: 100svh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .contact-page-view .page{
    height: auto;
    min-height: 100svh;
    overflow: visible;
    grid-template-rows: auto 1fr auto;
    padding:
      calc(env(safe-area-inset-top) + 20px)
      calc(env(safe-area-inset-right) + 20px)
      calc(env(safe-area-inset-bottom) + 18px)
      calc(env(safe-area-inset-left) + 20px);
  }

  .contact-page-view .hero.contact-page{
    display: block;
    min-height: 0;
    height: auto;
    padding: 24px 0 0;
    overflow: visible;
  }

  .contact-page-view .contact-shell{
    width: 100%;
    max-width: none;
  }

  .contact-page-view .contact-layout{
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
  }

  .contact-page-view .contact-intro{
    max-width: 100%;
    gap: 10px;
  }

  .contact-page-view .contact-title{
    font-size: clamp(42px, 14vw, 68px);
    line-height: .92;
    transform: none;
  }

  .contact-page-view .contact-intro__text{
    max-width: none;
    font-size: 15px;
    line-height: 1.35;
  }

  .contact-page-view .contact-info{
    margin-top: 8px;
  }

  .contact-page-view .contact-info__row{
    grid-template-columns: 76px 1fr;
    gap: 10px;
    padding: 12px 0;
    align-items: start;
  }

  .contact-page-view .contact-info__label{
    font-size: 11px;
  }

  .contact-page-view .contact-info__value{
    font-size: 14px;
    line-height: 1.3;
  }

  .contact-page-view .contact-links{
    gap: .35em;
  }

  .contact-page-view .contact-card{
    width: 100%;
    max-width: none;
    padding: 18px;
    border-radius: 20px;
  }

  .contact-page-view .contact-form{
    gap: 10px;
  }

  .contact-page-view .contact-form__grid{
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-page-view .contact-field{
    gap: 7px;
  }

  .contact-page-view .contact-field input,
  .contact-page-view .contact-field select,
  .contact-page-view .contact-field textarea,
  .contact-page-view .custom-select__trigger{
    min-height: 46px;
    font-size: 15px;
  }

  .contact-page-view .contact-field textarea{
    min-height: 132px;
  }

  .contact-page-view .contact-form__actions{
    gap: 10px;
    margin-top: 4px;
  }

  .contact-page-view .contact-form__button{
    width: 100%;
  }

  .contact-page-view .bottom{
    margin-top: 18px;
    font-size: 14px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
  }

  .contact-page-view .bottom__terms{
    margin-left: auto;
    white-space: nowrap;
    padding: 0;
  }
}

/* =========================
   CUSTOM SELECT
========================= */
.custom-select{
  position: relative;
}

.custom-select__trigger{
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  border-radius: 15px;
  padding: 12px 44px 12px 14px;
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition:
    border-color .24s ease,
    background .24s ease,
    box-shadow .24s ease,
    transform .24s ease;
}

.custom-select__trigger:hover{
  background: var(--surface-strong);
}

.custom-select__trigger:focus{
  outline: none;
  border-color: var(--border-strong);
  background: var(--surface-strong);
  box-shadow: 0 0 0 1px var(--frame-inset) inset;
}

.custom-select__text{
  pointer-events: none;
}

.custom-select__icon{
  position: absolute;
  right: 14px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: .9;
  transition: transform .24s ease;
}

.custom-select__icon svg{
  width: 12px;
  height: 12px;
}

.custom-select__menu{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;

  border: 1px solid var(--border);
  background: rgba(18, 18, 18, 0.94);
  color: var(--text);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  box-shadow: 0 18px 40px var(--shadow-elev);

  padding: 8px;
  display: grid;
  gap: 4px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(.985);
  transform-origin: top center;
  transition:
    opacity .2s ease,
    transform .24s cubic-bezier(.2,.8,.2,1),
    visibility 0s linear .24s;
}

/* light mode */
html[data-theme="light"] .custom-select__menu{
  background: rgba(245, 245, 242, 0.96);
  color: var(--text);
}

.custom-select.is-open .custom-select__menu{
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition:
    opacity .2s ease,
    transform .24s cubic-bezier(.2,.8,.2,1),
    visibility 0s linear 0s;
}

.custom-select.is-open .custom-select__icon{
  transform: translateY(-50%) rotate(180deg);
}

.custom-select__option{
  appearance: none;
  border: 0;
  width: 100%;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  text-align: left;
  border-radius: 12px;
  padding: 11px 12px;
  cursor: pointer;
  transition:
    background .2s ease,
    box-shadow .2s ease,
    color .2s ease,
    opacity .2s ease,
    transform .2s ease;
}

.custom-select__option:hover,
.custom-select__option:focus{
  background: var(--surface-soft);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--frame-inset) inset;
  outline: none;
}

.custom-select__option.is-selected{
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--frame-inset) inset;
}

.custom-select.is-open .custom-select__option{
  animation: contactOptionIn .22s ease both;
}

.custom-select.is-open .custom-select__option:nth-child(1){ animation-delay: .02s; }
.custom-select.is-open .custom-select__option:nth-child(2){ animation-delay: .04s; }
.custom-select.is-open .custom-select__option:nth-child(3){ animation-delay: .06s; }
.custom-select.is-open .custom-select__option:nth-child(4){ animation-delay: .08s; }
.custom-select.is-open .custom-select__option:nth-child(5){ animation-delay: .10s; }

/* =========================
   TERMS MODAL
========================= */
.bottom__terms{
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.site-modal{
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;

  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear .38s;
}

.site-modal.is-open{
  visibility: visible;
  pointer-events: auto;
  transition: none;
}

.site-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.10);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .38s ease;
  will-change: opacity;
}

.site-modal.is-open .site-modal__backdrop{
  opacity: 1;
}

.site-modal__panel{
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 32px));
  height: min(82vh, 860px);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 26px;
  box-shadow: 0 22px 60px var(--shadow-elev);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  display: flex;
  flex-direction: column;

  opacity: 0;
  transform: translateY(8px) scale(.992);
  transition:
    opacity .30s ease,
    transform .30s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}

.site-modal.is-open .site-modal__panel{
  opacity: 1;
  transform: translateY(0) scale(1);
}

.site-modal__header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 2.4vw, 34px) clamp(22px, 2.4vw, 34px) 14px;
  flex: 0 0 auto;
}

.site-modal__heading{
  min-width: 0;
}

.site-modal__eyebrow{
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .68;
}

.site-modal__title{
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  line-height: .95;
  letter-spacing: -.04em;
}

.site-modal__scroll{
  flex: 1 1 auto;
  overflow: auto;
  padding: 0 clamp(22px, 2.4vw, 34px) clamp(22px, 2.4vw, 34px);
  scrollbar-gutter: stable;
}

/* scrollbar interna */
.site-modal__scroll::-webkit-scrollbar{
  width: 10px;
}

.site-modal__scroll::-webkit-scrollbar-track{
  background: transparent;
}

.site-modal__scroll::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.16);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

html[data-theme="light"] .site-modal__scroll::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.18);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.site-modal__text{
  display: grid;
  gap: 14px;
}

.site-modal__text h3{
  margin: 10px 0 0;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .9;
}

.site-modal__text p{
  margin: 0;
  max-width: 62ch;
  line-height: 1.55;
  opacity: .88;
}

.site-modal__close{
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  transition:
    background .22s ease,
    border-color .22s ease,
    transform .22s ease,
    box-shadow .22s ease;
}

.site-modal__close:hover,
.site-modal__close:focus-visible{
  background: var(--surface-strong);
  border-color: var(--border-strong);
  box-shadow: 0 0 0 1px var(--frame-inset) inset;
  outline: none;
}

.site-modal__close svg{
  width: 16px;
  height: 16px;
}

.site-modal__close path{
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

body.modal-open{
  overflow: hidden;
}

@media (max-width: 700px){
  .site-modal{
    padding: 14px;
  }

  .site-modal__panel{
    width: min(100vw - 20px, 760px);
    height: min(86vh, 860px);
    border-radius: 22px;
  }

  .site-modal__header{
    padding: 18px 18px 12px;
  }

  .site-modal__scroll{
    padding: 0 18px 20px;
  }

  .site-modal__title{
    font-size: clamp(28px, 9vw, 40px);
  }
}

@keyframes contactOptionIn{
  from{
    opacity: 0;
    transform: translateY(6px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

/* ABOUT — mantém estável sem mexer no layout */
.about__details{
  isolation: isolate;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.about__value{
  contain: paint;
}

.about__link{
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.about__link::after{
  will-change: transform;
}

/* CONTACT — evitar tremor sem matar a linha */
.contact-card,
.contact-info,
.contact-info__row,
.contact-info__value,
.contact-info .about__link{
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.contact-card,
.contact-info{
  isolation: isolate;
}

.contact-info__value{
  contain: none;
}

.contact-info .about__link::after{
  will-change: transform;
}
.error404{
  justify-content: center;
}

.error404__meta{
  margin-top: 14px;
}

.error404__text{
  margin: 0;
  opacity: .9;
  font-size: 16px;
  line-height: 1.35;
}