/* Taipa Arquitetura */
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }
:root {
  --paper: #eeeae3;
  --paper-2: #e4dfd6;
  --ink: #171614;
  --ink-soft: rgba(23, 22, 20, 0.7);
  --ink-faint: rgba(23, 22, 20, 0.58);
  --line: rgba(23, 22, 20, 0.14);
  --clay: #9a6b4f;
  --line-dark: rgba(238, 234, 227, 0.16);
  --muted-dark: rgba(238, 234, 227, 0.62);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --display: "Geist", "Helvetica Neue", Arial, sans-serif; /* títulos h2 e números */
  --gutter: clamp(16px, 2.2vw, 36px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, blockquote, figure, fieldset { margin: 0; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }

.wrap { padding-inline: var(--gutter); max-width: 1920px; margin-inline: auto; }
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.display {
  font-family: var(--display); font-weight: 300;
  letter-spacing: -0.055em; line-height: .92;
}

/* ---------- Ícones e botões (um só padrão) ---------- */
.i { width: 16px; height: 16px; flex: none; transition: transform .45s var(--ease); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 50px; padding: 0 26px; border: 1px solid currentColor; border-radius: 999px;
  font-size: 14px; line-height: 1; white-space: nowrap;
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.btn:hover .i { transform: translateX(4px); }
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 13px; gap: 10px; }
.btn--sm .i { width: 14px; height: 14px; }
/* Versões para fundos escuros */
.on-dark .btn:hover, .header:not(.is-solid) .btn:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.on-dark .btn--solid { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.on-dark .btn--solid:hover { background: transparent; color: var(--paper); }

.icon-btn {
  width: 50px; height: 50px; flex: none; border: 1px solid var(--line); border-radius: 50%;
  display: inline-grid; place-items: center;
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.icon-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.on-dark .icon-btn { border-color: var(--line-dark); }
.on-dark .icon-btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; }
.link-arrow .i { width: 13px; height: 13px; }
.link-arrow:hover .i { transform: translate(2px, -2px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: #f4f1eb;
  transition: background-color .5s var(--ease), color .5s var(--ease), transform .5s var(--ease);
}
.header__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-block: 16px;
}
.header__logo { font-family: var(--serif); font-size: 26px; line-height: 1; }
.header__nav { display: flex; gap: 34px; font-size: 14px; }
.header__nav a { position: relative; }
.header__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.header__nav a:hover::after, .header__nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.header__cta { justify-self: end; }
.header__menu { display: none; justify-self: end; }
.header.is-solid { background: var(--paper); color: var(--ink); }
.header.is-hidden { transform: translateY(-100%); }

.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 16px var(--gutter) 32px;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu__top { display: flex; justify-content: space-between; align-items: center; }
.menu__links { display: flex; flex-direction: column; gap: 4px; }
.menu__links a { font-family: var(--display); font-weight: 300; letter-spacing: -0.05em; font-size: clamp(44px, 12vw, 72px); line-height: 1.05; }
.menu__foot { display: grid; gap: 22px; font-size: 14px; color: var(--muted-dark); }
.menu__foot .btn { justify-self: start; color: var(--paper); }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  color: #f4f1eb; overflow: hidden; background: #1d1b18;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media [data-slide] { opacity: 0; transition: opacity 1.8s var(--ease-io); }
.hero__media [data-slide].is-active { opacity: 1; animation: heroZoom 9s linear both; }
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 22%),
    linear-gradient(to top, rgba(10,9,8,.62) 0%, rgba(10,9,8,.18) 38%, rgba(10,9,8,0) 60%);
}
.hero__content {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px;
  padding-bottom: clamp(18px, 2.6vw, 40px);
}
.hero__name {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(88px, 13vw, 180px);
  line-height: .8; letter-spacing: -0.035em;
  margin-left: -0.04em;
}
.hero__name span { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__name span i { display: block; font-style: normal; animation: rise 1.4s .3s var(--ease) both; }
.hero__aside { max-width: 340px; padding-bottom: 14px; animation: fade 1.2s .9s var(--ease) both; }
.hero__mission { font-size: 17px; line-height: 1.4; letter-spacing: -0.01em; }
.hero__sub { margin-top: 14px; font-size: 13px; color: rgba(244, 241, 235, .75); }
@keyframes rise { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Section base ---------- */
.section { padding-block: clamp(96px, 12vw, 200px); }
.section__head {
  display: grid; grid-template-columns: repeat(24, 1fr); column-gap: 20px; align-items: end;
  margin-bottom: clamp(48px, 6vw, 96px);
}
.section__title { grid-column: 1 / 17; font-size: clamp(52px, 8.4vw, 140px); margin-left: -0.05em; }
.section__note { grid-column: 18 / 25; font-size: 15px; color: var(--ink-soft); max-width: 380px; justify-self: end; }

/* ---------- Estúdio ---------- */
.manifesto {
  font-size: clamp(32px, 4.3vw, 70px); line-height: 1.04; letter-spacing: -0.045em;
  max-width: 20em; text-wrap: balance;
}
.about {
  display: grid; grid-template-columns: repeat(24, 1fr); column-gap: 20px;
  margin-top: clamp(80px, 10vw, 180px); align-items: start;
}
.about__label { grid-column: 1 / 5; }
.about__img { grid-column: 5 / 14; }
.about__img .frame { aspect-ratio: 4 / 5; }
.about__img figcaption { margin-top: 12px; font-size: 12px; color: var(--ink-faint); }
.about__text { grid-column: 16 / 24; display: grid; gap: 22px; font-size: 16px; line-height: 1.6; padding-top: 4px; }
.about__text > p:first-child { font-size: 22px; line-height: 1.35; letter-spacing: -0.015em; }
.about__facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line);
}
.num { display: block; font-family: var(--display); font-weight: 300; letter-spacing: -0.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.about__facts .num { font-size: 48px; margin-bottom: 6px; }
.about__facts span:not(.num) { font-size: 13px; color: var(--ink-soft); }
.about__text .btn { justify-self: start; margin-top: 10px; }

/* ---------- Frames / images ---------- */
.frame { position: relative; overflow: hidden; background: var(--paper-2); }
.frame img {
  position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover;
  will-change: transform;
}

/* ---------- Projetos em destaque ---------- */
.works { display: grid; grid-template-columns: repeat(24, 1fr); column-gap: 20px; row-gap: 72px; }
.work { display: block; }

.work:hover .frame img { scale: 1.03; }
.work__cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: 15px; }
.work__cap h3 { font-weight: 400; font-size: 15px; }
.work__cap p { color: var(--ink-faint); text-align: right; }
.work--a1 { grid-column: 1 / 14; grid-row: 1 / 3; }
.work--a1 .frame { aspect-ratio: 1 / 1.08; }
.work--a2 { grid-column: 15 / 20; grid-row: 1; }
.work--a3 { grid-column: 20 / 25; grid-row: 1; }
.work--a2 .frame, .work--a3 .frame { aspect-ratio: 4 / 5; }
.work--a4 { grid-column: 15 / 25; grid-row: 2; align-self: end; }
.work--a4 .frame { aspect-ratio: 3 / 2; }
.work--b1 { grid-column: 3 / 11; grid-row: 3; align-self: end; }
.work--b1 .frame { aspect-ratio: 4 / 5; }
.work--b2 { grid-column: 12 / 25; grid-row: 3; margin-top: clamp(60px, 10vw, 180px); }
.work--b2 .frame { aspect-ratio: 16 / 11; }
.works__more { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: clamp(72px, 8vw, 140px); }

/* ---------- Equipe ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member .frame { aspect-ratio: 3 / 4; }
.member .frame img { top: 0; height: 100%; filter: grayscale(1) contrast(1.04); transition: filter .8s var(--ease), scale 1.2s var(--ease); }
.member:hover .frame img { filter: grayscale(0); scale: 1.03; }
.member h3 { margin-top: 16px; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; }
.member p { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.team-sec { background: var(--paper-2); }

/* ---------- Avaliações ---------- */
.reviews { display: grid; grid-template-columns: repeat(24, 1fr); column-gap: 20px; }
.reviews__side { grid-column: 1 / 7; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.reviews__score .num { font-size: 104px; margin-bottom: 10px; }
.reviews__score span:not(.num) { font-size: 13px; color: var(--ink-soft); }
.reviews__ctrl { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.reviews__count { font-variant-numeric: tabular-nums; color: var(--ink-soft); min-width: 60px; margin-left: 8px; }
.reviews__stage { grid-column: 9 / 25; position: relative; display: grid; }
.review { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s; }
.review.is-active { opacity: 1; visibility: visible; }
.review blockquote {
  font-family: var(--serif); font-size: clamp(30px, 3.6vw, 58px); line-height: 1.08; letter-spacing: -0.02em;
  text-wrap: pretty;
}
.review blockquote::before { content: "“"; }
.review blockquote::after { content: "”"; }
.review figcaption { margin-top: 36px; display: flex; gap: 10px; font-size: 14px; }
.review figcaption span { color: var(--ink-faint); }

/* ---------- Faixa de CTA ---------- */
.cta-band { border-top: 1px solid var(--line); padding-block: clamp(64px, 8vw, 120px); }
.cta-band__inner { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(40px, 5.6vw, 92px); max-width: 12em; }
.cta-band p { margin-top: 18px; max-width: 420px; color: var(--ink-soft); }

/* ---------- Contato ---------- */
.contact { background: var(--ink); color: var(--paper); padding-top: clamp(96px, 12vw, 200px); overflow: hidden; }
.contact .eyebrow { color: rgba(238, 234, 227, .65); }
.contact__big { font-size: clamp(50px, 8.4vw, 140px); margin-top: 28px; margin-left: -0.05em; }
.contact__actions { display: flex; align-items: center; gap: 28px 40px; flex-wrap: wrap; margin-top: 44px; }
.contact__mail {
  font-size: clamp(20px, 2.2vw, 32px); letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(238,234,227,.35); padding-bottom: 4px; transition: border-color .4s;
}
.contact__mail:hover { border-color: var(--paper); }
.contact__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: clamp(80px, 10vw, 160px); padding-top: 28px; border-top: 1px solid var(--line-dark);
  font-size: 14px; line-height: 1.7;
}
.contact__grid h4 { margin: 0 0 14px; font-weight: 400; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dark); }
.contact__grid a:hover { color: #fff; }
.contact__grid .link-arrow { margin-top: 10px; }
.footer {
  display: flex; justify-content: space-between; align-items: end; gap: 20px;
  padding-block: 80px 26px; font-size: 12px; color: var(--muted-dark);
}
.footer__mark { font-family: var(--serif); font-size: clamp(88px, 22vw, 360px); line-height: .8; letter-spacing: -0.04em; color: var(--paper); margin-left: -0.04em; padding-bottom: .1em; margin-bottom: -.1em; }

/* ---------- Galeria (projetos.html) ---------- */
.page-head { padding-top: clamp(130px, 15vw, 220px); padding-bottom: clamp(40px, 5vw, 72px); }
.page-head h1 { font-size: clamp(72px, 13vw, 220px); margin-left: -0.055em; line-height: .86; }
.page-head__row { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-top: 36px; }
.page-head__row p { max-width: 420px; color: var(--ink-soft); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px;
  color: var(--ink-soft); transition: color .3s, border-color .3s, background-color .3s;
}
.filters button sup { font-size: 9px; margin-left: 3px; }
.filters button:hover { color: var(--ink); border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 20px; row-gap: 64px;
  padding-top: 32px; border-top: 1px solid var(--line); padding-bottom: clamp(96px, 10vw, 160px);
}
.gallery .work .frame { aspect-ratio: 4 / 5; }
.gallery .work:nth-child(6n+1) { grid-column: span 2; display: flex; flex-direction: column; }
.gallery .work:nth-child(6n+1) .frame { aspect-ratio: auto; flex: 1; min-height: 360px; }
.gallery .work__cap p span { color: var(--ink-soft); }

/* ---------- Página de projeto ---------- */
.p-hero { position: relative; height: 92vh; height: 92svh; min-height: 520px; overflow: hidden; background: #1d1b18; color: #f4f1eb; }
.p-hero .frame { position: absolute; inset: 0; background: none; }
.p-hero .frame img { animation: heroZoom 2.4s var(--ease) both; }
.p-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,9,8,.6), rgba(10,9,8,0) 50%), linear-gradient(to bottom, rgba(0,0,0,.3), rgba(0,0,0,0) 20%); }
.p-hero__content { position: absolute; inset: auto 0 0 0; z-index: 2; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding-bottom: clamp(20px, 2.6vw, 40px); }
.p-hero h1 { font-size: clamp(56px, 10vw, 168px); margin-left: -0.055em; animation: fade 1.2s .2s var(--ease) both; }
.p-hero__meta { font-size: 14px; text-align: right; color: rgba(244,241,235,.8); padding-bottom: 8px; animation: fade 1.2s .4s var(--ease) both; }
.p-back { display: inline-flex; margin-bottom: clamp(40px, 5vw, 72px); font-size: 14px; color: var(--ink-soft); }
.p-back:hover { color: var(--ink); }
.p-back .i { width: 14px; height: 14px; }
.p-back:hover .i { transform: translateX(-4px); }
.p-intro { display: grid; grid-template-columns: repeat(24, 1fr); column-gap: 20px; row-gap: 48px; align-items: start; }
.p-specs-wrap { grid-column: 1 / 9; }
.p-specs__toggle { display: none; }
.p-specs { margin: 0; display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--line); font-size: 14px; }
.p-specs dt, .p-specs dd { padding: 13px 0; border-bottom: 1px solid var(--line); margin: 0; }
.p-specs dt { color: var(--ink-soft); padding-right: 28px; }
.p-specs dd { text-align: right; }
.p-text { grid-column: 11 / 24; display: grid; gap: 24px; font-size: 17px; line-height: 1.6; }
.p-text .p-lead { font-size: clamp(24px, 2.4vw, 36px); line-height: 1.2; letter-spacing: -0.03em; font-family: var(--display); font-weight: 300; }
.p-text p:not(.p-lead) { max-width: 36em; color: var(--ink-soft); }
.p-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.p-metrics .num { font-size: clamp(40px, 4vw, 64px); margin-bottom: 6px; }
.p-metrics span:not(.num) { font-size: 13px; color: var(--ink-soft); }

.p-gallery { display: grid; grid-template-columns: repeat(24, 1fr); column-gap: 20px; row-gap: 20px; margin-top: clamp(80px, 10vw, 160px); }
.p-gallery figure { grid-column: 1 / -1; }
.p-gallery figure:nth-child(5n+1) .frame { aspect-ratio: 16 / 8.5; }
.p-gallery figure:nth-child(5n+2) { grid-column: 1 / 11; }
.p-gallery figure:nth-child(5n+2) .frame { aspect-ratio: 4 / 5; }
.p-gallery figure:nth-child(5n+3) { grid-column: 11 / 25; align-self: end; }
.p-gallery figure:nth-child(5n+3) .frame { aspect-ratio: 4 / 3; }
.p-gallery figure:nth-child(5n+4) { grid-column: 4 / 16; margin-top: clamp(40px, 6vw, 100px); }
.p-gallery figure:nth-child(5n+4) .frame { aspect-ratio: 4 / 3; }
.p-gallery figure:nth-child(5n+5) { grid-column: 17 / 25; align-self: end; }
.p-gallery figure:nth-child(5n+5) .frame { aspect-ratio: 3 / 4; }

.p-quote { padding-block: clamp(96px, 12vw, 200px); text-align: center; }
.p-quote blockquote { font-family: var(--serif); font-size: clamp(32px, 4.4vw, 72px); line-height: 1.06; letter-spacing: -0.02em; max-width: 18em; margin-inline: auto; text-wrap: balance; }
.p-quote blockquote::before { content: "“"; }
.p-quote blockquote::after { content: "”"; }
.p-quote figcaption { margin-top: 28px; font-size: 14px; color: var(--ink-soft); }

.p-next { display: block; position: relative; height: 88vh; height: 88svh; min-height: 480px; overflow: hidden; color: #f4f1eb; background: #1d1b18; }
.p-next .frame { position: absolute; inset: 0; background: none; }
.p-next .frame img { transition: scale 1.4s var(--ease); }
.p-next:hover .frame img { scale: 1.04; }
.p-next::after { content: ""; position: absolute; inset: 0; background: rgba(10,9,8,.38); transition: background-color .8s var(--ease); }
.p-next:hover::after { background: rgba(10,9,8,.5); }
.p-next__content { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; padding-block: clamp(24px, 3vw, 48px); }
.p-next__top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.p-next__top .eyebrow { color: rgba(244,241,235,.8); }
.p-next h2 { font-size: clamp(56px, 10vw, 168px); margin-left: -0.055em; margin-bottom: 18px; }
.p-next__bottom { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.p-next__bottom p { font-size: 14px; color: rgba(244,241,235,.8); }
.p-next .btn { color: #f4f1eb; }
.p-next:hover .btn { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.p-next:hover .btn .i { transform: translateX(4px); }

/* ---------- Transição entre páginas ---------- */
.pt-leave, html.pt-arrive::after {
  position: fixed; inset: 0; z-index: 100; background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 300; letter-spacing: -0.05em; font-size: clamp(40px, 7vw, 110px);
}
.pt-leave { animation: ptIn .8s var(--ease-io) both; }
.pt-leave span { animation: fade .6s .25s var(--ease) both; }
html.pt-arrive::after { content: var(--pt-label, ""); animation: ptOut .9s .15s var(--ease-io) both; pointer-events: none; }
@keyframes ptIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes ptOut { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- Card "Iniciar um projeto" ---------- */
.start { position: fixed; inset: 0; z-index: 80; visibility: hidden; transition: visibility 0s .7s; }
.start.is-open { visibility: visible; transition: none; }
.start__scrim { position: absolute; inset: 0; background: rgba(15,14,12,.5); opacity: 0; transition: opacity .6s var(--ease); cursor: pointer; }
.start.is-open .start__scrim { opacity: 1; }
.start__card {
  position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(540px, calc(100% - 24px));
  background: var(--paper); color: var(--ink); border-radius: 6px;
  display: flex; flex-direction: column; padding: 24px clamp(22px, 3vw, 40px) 32px; overflow-y: auto;
  transform: translateX(calc(100% + 24px)); transition: transform .7s var(--ease-io);
}
.start.is-open .start__card { transform: none; }
.start__top { display: flex; justify-content: space-between; align-items: center; }
.start__top .icon-btn { width: 44px; height: 44px; }
.start__form, .start__done { display: grid; gap: 18px; margin-top: auto; padding-top: 28px; }
.start__done[hidden], .start__form[hidden] { display: none; }
.start__title { font-family: var(--display); font-weight: 300; letter-spacing: -0.05em; line-height: 1; font-size: clamp(34px, 3.4vw, 48px); }
.start__lead { color: var(--ink-soft); margin-top: -8px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding: 0; margin-bottom: 8px; }
.field > span { margin-bottom: 0; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 0 10px; outline: none; resize: vertical;
  transition: border-color .3s;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field textarea::placeholder { color: var(--ink-faint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s;
}
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chips input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 3px; }
.start__form .btn { justify-self: start; margin-top: 6px; }
.start__done .btn { justify-self: start; }

/* ---------- Redes e links ---------- */
.links { padding-bottom: clamp(96px, 12vw, 200px); }
.links__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.links__note { max-width: 380px; color: var(--ink-soft); }
.links__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.links__list li { border-bottom: 1px solid var(--line); }
.link-row {
  position: relative; display: grid; grid-template-columns: 10fr 6fr 6fr auto; align-items: center; gap: 20px;
  padding: 22px 0; isolation: isolate; transition: color .5s var(--ease), padding .5s var(--ease);
}
.link-row::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--ink);
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-io);
}
.link-row:hover { color: var(--paper); padding-inline: 16px; }
.link-row:hover::before { transform: scaleY(1); transform-origin: top; }
.link-row__name { font-family: var(--display); font-weight: 300; letter-spacing: -0.05em; line-height: 1; font-size: clamp(32px, 4vw, 64px); }
.link-row__desc, .link-row__meta { font-size: 14px; color: var(--ink-soft); transition: color .5s var(--ease); }
.link-row:hover .link-row__desc, .link-row:hover .link-row__meta { color: var(--muted-dark); }
.link-row .icon-btn { width: 44px; height: 44px; }
.link-row:hover .icon-btn { border-color: var(--line-dark); }
.link-row:hover .icon-btn .i { transform: translate(2px, -2px); }

/* ---------- Estados de carregamento (conexão lenta) ---------- */
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.frame, .skel {
  background-color: var(--paper-2);
  background-image: linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.45) 50%, rgba(255,255,255,0) 70%);
  background-size: 200% 100%; background-repeat: no-repeat;
  animation: shimmer 1.6s linear infinite;
}
.frame.is-loaded { animation: none; background-image: none; }
.frame img { opacity: 0; transition: opacity .9s var(--ease), scale 1.2s var(--ease); }
.frame.is-loaded img { opacity: 1; }
.frame.is-error { animation: none; background-image: none; }
.frame.is-error img { visibility: hidden; }
.frame.is-error::after {
  content: "Imagem indisponível"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 13px; color: var(--ink-soft);
}
/* Fundos escuros: brilho mais discreto */
.hero__media, .p-hero .frame, .p-next .frame {
  background-color: #1d1b18;
  background-image: linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.06) 50%, rgba(255,255,255,0) 70%);
  background-size: 200% 100%; background-repeat: no-repeat; animation: shimmer 1.8s linear infinite;
}
.hero__media.is-loaded { animation: none; background-image: none; }
.hero__media [data-slide]:not(.is-ready) { opacity: 0 !important; }
.skel { display: block; border-radius: 2px; }
.skel--line { height: .7em; margin-top: .5em; }
.p-lead .skel--line, p .skel--line { width: 100%; }
.skel--title { height: .8em; width: 60%; background-color: rgba(238,234,227,.14); }
.skel-card .frame { aspect-ratio: 4 / 5; }
.skel-card .skel--line:first-of-type { width: 45%; }
[aria-busy="true"] { cursor: progress; }

/* Barra de progresso no topo: carregamento e navegação */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 130; pointer-events: none;
  background: var(--clay, #9a6b4f); transform: scaleX(0); transform-origin: left; opacity: 0;
  transition: transform .4s var(--ease), opacity .4s .2s;
}
.progress.is-active { opacity: 1; transition: transform 8s cubic-bezier(.1,.6,.2,1), opacity .2s; transform: scaleX(.85); }
.progress.is-done { opacity: 0; transform: scaleX(1); transition: transform .3s var(--ease), opacity .4s .3s; }

/* Botão enviando */
.btn.is-busy { pointer-events: none; opacity: .8; }
.btn.is-busy .i { display: none; }
.btn.is-busy::after {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Aviso de conexão */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 140; transform: translate(-50%, 140%);
  background: var(--ink); color: var(--paper); border-radius: 999px; padding: 12px 20px; font-size: 13px;
  display: flex; align-items: center; gap: 10px; transition: transform .6s var(--ease-io); max-width: calc(100% - 32px);
}
.toast::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #d9a441; flex: none; }
.toast.is-ok::before { background: #7fb07a; }
.toast.is-shown { transform: translate(-50%, 0); }

/* ---------- 404 ---------- */
.nf { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: repeat(24, 1fr); column-gap: 20px; align-items: end; padding-top: 120px; padding-bottom: clamp(24px, 3vw, 48px); }
.nf__text { grid-column: 1 / 14; display: grid; gap: 28px; }
.nf__code { font-size: clamp(120px, 24vw, 400px); line-height: .78; margin-left: -0.06em; }
.nf__text p:not(.eyebrow) { max-width: 420px; color: var(--ink-soft); font-size: 17px; }
.nf__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.nf__img { grid-column: 16 / 25; align-self: stretch; margin-top: 40px; }
.nf__img .frame { height: 100%; min-height: 320px; }
.nf__img .frame img { top: 0; height: 100%; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .team { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .contact__grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .p-specs-wrap { grid-column: 1 / 11; }
  .p-text { grid-column: 12 / 25; }
}
@media (max-width: 860px) {
  .header__nav, .header__cta { display: none; }
  .header__inner { grid-template-columns: 1fr auto; }
  .header__menu { display: inline-flex; }
  .hero__content { grid-template-columns: 1fr; gap: 22px; }
  .hero__aside { padding-bottom: 0; }
  .section__head, .about, .works, .reviews, .p-intro, .p-gallery { grid-template-columns: 1fr; }
  .section__title, .section__note, .about__label, .about__img, .about__text,
  .reviews__side, .reviews__stage, .p-specs-wrap, .p-text { grid-column: 1 / -1; }
  /* Ficha técnica vira accordion abaixo do texto */
  .p-specs-wrap { order: 2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .p-specs__toggle {
    display: flex; justify-content: space-between; align-items: center; min-height: 60px;
    font-size: 15px; cursor: pointer; list-style: none;
  }
  .p-specs__toggle::-webkit-details-marker { display: none; }
  .p-specs__toggle .i { transition: transform .45s var(--ease); }
  .p-specs-wrap[open] .p-specs__toggle .i { transform: rotate(45deg); }
  .p-specs-wrap::details-content { block-size: 0; overflow: hidden; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
  .p-specs-wrap[open]::details-content { block-size: auto; }
  .p-specs { border-top: 0; padding-bottom: 8px; }
  .p-specs dt:last-of-type, .p-specs dd:last-of-type { border-bottom: 0; }
  .section__note { justify-self: start; margin-top: 20px; }
  .about { row-gap: 32px; }
  .works { row-gap: 56px; }
  .works .work { grid-column: 1 / -1 !important; grid-row: auto !important; margin-top: 0 !important; }
  .work--a1 .frame, .work--a4 .frame, .work--b2 .frame { aspect-ratio: 4 / 3.4; }
  .reviews { row-gap: 48px; }
  .reviews__side { order: 2; flex-direction: row; align-items: end; flex-wrap: wrap; }
  .reviews__score .num { font-size: 68px; }
  .gallery { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .gallery .work:nth-child(6n+1) { grid-column: 1 / -1; }
  .gallery .work:nth-child(6n+1) .frame { flex: none; min-height: 0; aspect-ratio: 4 / 3; }
  .p-gallery figure { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .p-gallery figure .frame { aspect-ratio: 4 / 3 !important; }
  .p-hero__meta { text-align: left; }
  .link-row { grid-template-columns: 1fr auto; row-gap: 6px; }
  .link-row__name { grid-column: 1; }
  .link-row .icon-btn { grid-column: 2; grid-row: 1 / 3; }
  .link-row__desc { grid-column: 1; }
  .link-row__meta { display: none; }
  .nf__text, .nf__img { grid-column: 1 / -1; }
  .nf__img { order: -1; margin-top: 0; margin-bottom: 40px; }
  .nf__img .frame { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
  .footer { flex-direction: column; align-items: start; }
}
@media (max-width: 560px) {
  .team { grid-template-columns: 1fr 1fr; gap: 14px; row-gap: 36px; }
  .member h3 { font-size: 22px; }
  .gallery { grid-template-columns: 1fr; }
  .about__facts .num { font-size: 36px; }
  .contact__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .p-metrics { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .frame, .skel, .hero__media { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
