/* ==========================================================================
   Lumen Arquitetura — folha de estilos única (home + página de projeto)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens de tema
   -------------------------------------------------------------------------- */
:root {
  --bg: #faf8f5;
  --bg2: #f2ede7;
  --ink: #1a1412;
  --muted: #7a6e66;
  --line: rgba(26, 20, 18, 0.12);
  --card: #ffffff;
  --overlay: rgba(250, 248, 245, 0.92);
  --accent: oklch(0.46 0.16 26);
  --accent-hover: oklch(0.41 0.16 26);
  --accent-glow: oklch(0.46 0.16 26 / 0.25);
  --ph1: #efe9e2;
  --ph2: #e8e1d9;
  --footer-bg: #171210;
  --footer-ink: #f4efe9;
  --footer-muted: #96897f;

  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --pad-x: clamp(20px, 5vw, 56px);
}

:root[data-theme="dark"] {
  --bg: #121012;
  --bg2: #1a1719;
  --ink: #f4efe9;
  --muted: #a1968d;
  --line: rgba(244, 239, 233, 0.14);
  --card: #1c191b;
  --overlay: rgba(18, 16, 18, 0.93);
  --accent: oklch(0.64 0.16 26);
  --accent-hover: oklch(0.69 0.16 26);
  --accent-glow: oklch(0.64 0.16 26 / 0.32);
  --ph1: #1e1a1c;
  --ph2: #252022;
  --footer-bg: #0c0a0b;
  --footer-ink: #f4efe9;
  --footer-muted: #8a7f76;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  font-family: "Archivo", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
}

a {
  color: var(--ink);
}

a:hover {
  color: var(--accent);
}

::selection {
  background: var(--accent);
  color: #fff;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

img,
video {
  max-width: 100%;
  display: block;
}

.page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  transition: background-color 0.5s ease, color 0.5s ease;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Marcador comum das seções ("◆ Portfólio", "◆ Contato", ...) */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow--accent {
  color: var(--accent);
}

.diamond {
  width: 9px;
  height: 9px;
  background: var(--accent);
  transform: rotate(45deg);
  border-radius: 2px;
  display: inline-block;
  flex: none;
}

/* --------------------------------------------------------------------------
   3. Animações
   -------------------------------------------------------------------------- */
@keyframes lumenRise {
  from { transform: translateY(115%); }
  to   { transform: translateY(0); }
}

@keyframes lumenLine {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes lumenFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes lumenGlow {
  0%   { opacity: 0.35; transform: scale(1); }
  50%  { opacity: 0.7;  transform: scale(1.15); }
  100% { opacity: 0.35; transform: scale(1); }
}

@keyframes lumenDrift {
  from { transform: translate3d(-4%, -2%, 0) rotate(0.001deg); }
  to   { transform: translate3d(4%, 2%, 0) rotate(0.001deg); }
}

@keyframes lumenSweep {
  from { background-position: 0% 50%; }
  to   { background-position: 200% 50%; }
}

/* --------------------------------------------------------------------------
   4. Preloader
   -------------------------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #0d0b0c;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.8s ease;
}

.preloader[hidden] {
  display: none;
}

.preloader.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.preloader__glow {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.55 0.17 26 / 0.22) 0%, transparent 62%);
  animation: lumenGlow 3.2s ease-in-out infinite;
}

.preloader__inner {
  position: relative;
  text-align: center;
}

.preloader__mask {
  overflow: hidden;
  padding-bottom: 6px;
}

.preloader__word {
  font-size: clamp(52px, 9vw, 108px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  color: #f4efe9;
  animation: lumenRise 1.1s var(--ease-out) both 0.2s;
}

.preloader__rule {
  height: 1px;
  width: min(220px, 50vw);
  margin: 20px auto 16px;
  background: oklch(0.64 0.17 26);
  transform-origin: left center;
  animation: lumenLine 1.3s var(--ease-out) both 0.6s;
}

.preloader__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #96897f;
  animation: lumenFade 0.9s ease both 1.15s;
}

/* Variante da página de projeto: menor e mais rápida */
.preloader--project .preloader__glow { animation-duration: 2.6s; }
.preloader--project .preloader__mask { padding-bottom: 4px; }
.preloader--project .preloader__word {
  font-size: clamp(34px, 5vw, 60px);
  animation: lumenRise 0.9s var(--ease-out) both 0.1s;
}
.preloader--project .preloader__rule {
  width: min(180px, 44vw);
  margin: 16px auto 12px;
  animation: lumenLine 1s var(--ease-out) both 0.4s;
}
.preloader--project .preloader__tag {
  font-size: 10px;
  animation: lumenFade 0.8s ease both 0.7s;
}
.preloader--project { transition: opacity 0.6s ease; }

/* Cortina de saída entre projetos */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: #0d0b0c;
  animation: lumenFade 0.3s ease both;
}

.curtain[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 22px;
  border-radius: 999px;
  background: var(--overlay);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(10, 8, 8, 0.1);
  transition: background-color 0.5s ease, border-color 0.5s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  width: 13px;
  height: 13px;
  background: var(--accent);
  transform: rotate(45deg);
  border-radius: 3px;
  display: block;
  flex: none;
}

.brand__name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand__name span {
  font-weight: 400;
  color: var(--muted);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header__divider {
  width: 1px;
  height: 22px;
  background: var(--line);
  display: inline-flex;
}

/* Botão de tema */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.45s var(--ease-spring), border-color 0.3s ease, color 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.06);
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle:active {
  transform: scale(0.88);
}

.theme-toggle__sun {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  box-shadow: inset -4.5px -3px 0 0 currentColor;
  display: block;
}

.theme-toggle__moon {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 4px double currentColor;
  display: none;
}

:root[data-theme="dark"] .theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__moon { display: block; }

/* Botão do menu */
.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.4s var(--ease-spring), background-color 0.5s ease, color 0.5s ease;
}

.menu-btn:hover { transform: scale(1.05); }
.menu-btn:active { transform: scale(0.92); }

.menu-btn__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-btn__bars span {
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  display: block;
}

/* Botão "voltar" da página de projeto */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.4s var(--ease-spring), background-color 0.5s ease, color 0.5s ease;
}

.back-btn:hover { transform: scale(1.05); color: var(--bg); }
.back-btn:active { transform: scale(0.92); }

/* --------------------------------------------------------------------------
   6. Menu overlay
   -------------------------------------------------------------------------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--overlay);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: clamp(96px, 14vh, 130px) clamp(24px, 7vw, 96px) clamp(24px, 6vh, 96px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s var(--ease-out), visibility 0.55s;
}

.menu.is-open {
  opacity: 1;
  visibility: visible;
}

.menu__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform: translateY(34px);
  transition: transform 0.65s var(--ease-out);
}

.menu.is-open .menu__nav { transform: translateY(0); }

.menu__link {
  font-size: clamp(40px, 7.5vw, 88px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.14;
  text-decoration: none;
  color: var(--ink);
  display: inline-block;
  width: fit-content;
  transition: color 0.3s ease, transform 0.4s var(--ease-out);
}

.menu__link:hover {
  color: var(--accent);
  transform: translateX(16px);
}

.menu__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  margin-top: clamp(28px, 5vh, 56px);
  border-top: 1px solid var(--line);
  padding-top: 26px;
  transform: translateY(34px);
  transition: transform 0.75s var(--ease-out);
}

.menu.is-open .menu__meta { transform: translateY(0); }

.menu__meta a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

/* --------------------------------------------------------------------------
   7. Botões
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.45s var(--ease-spring), background-color 0.3s ease,
    border-color 0.3s ease, color 0.3s ease, box-shadow 0.45s ease;
}

.btn:active { transform: scale(0.94); }

.btn--accent {
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 10px 30px var(--accent-glow);
}

.btn--accent:hover {
  transform: translateY(-3px);
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 18px 42px var(--accent-glow);
}

.btn--accent:active { transform: scale(0.94); }

.btn--ghost-light {
  background: rgba(244, 239, 233, 0.06);
  color: #f4efe9;
  border: 1px solid rgba(244, 239, 233, 0.4);
}

.btn--ghost-light:hover {
  transform: translateY(-3px);
  background: rgba(244, 239, 233, 0.16);
  border-color: rgba(244, 239, 233, 0.75);
  color: #f4efe9;
}

.btn--ghost-light:active { transform: scale(0.94); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 16px 28px;
}

.btn--outline:hover {
  transform: translateY(-3px);
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn--outline:active { transform: scale(0.94); }

.btn--lg { padding: 18px 32px; font-size: 16px; }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  background: #0d0b0c;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fallback animado — usado se o vídeo não carregar */
.hero__fallback {
  position: absolute;
  inset: -8%;
  background: radial-gradient(ellipse 55% 65% at 72% 30%, oklch(0.5 0.17 26 / 0.4) 0%, transparent 60%),
    radial-gradient(ellipse 45% 55% at 20% 85%, oklch(0.42 0.14 26 / 0.3) 0%, transparent 65%);
  animation: lumenDrift 16s ease-in-out infinite alternate;
}

.hero__sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, oklch(0.7 0.15 26 / 0.1) 46%, transparent 60%);
  background-size: 200% 100%;
  animation: lumenSweep 9s linear infinite;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 8, 8, 0.78) 0%, rgba(10, 8, 8, 0.25) 45%, rgba(10, 8, 8, 0.15) 100%);
}

.hero__body {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 140px var(--pad-x) clamp(48px, 7vh, 72px);
}

.hero__kicker {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(244, 239, 233, 0.75);
}

.hero__title {
  margin: 0;
  font-size: clamp(56px, 11vw, 152px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.98;
  color: #f7f3ee;
}

.hero__lede {
  margin: 26px 0 0;
  max-width: 520px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  color: rgba(244, 239, 233, 0.82);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* --------------------------------------------------------------------------
   9. Faixa de destaques
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  border-bottom: 1px solid var(--line);
  transition: border-color 0.5s ease;
}

.stat {
  padding: clamp(30px, 4vw, 48px) clamp(20px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line);
  box-shadow: -1px 0 0 var(--line);
}

.stat:first-child { box-shadow: none; }

.stat__num {
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat__label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   10. Cartões de projeto (destaque + grade)
   -------------------------------------------------------------------------- */
.featured {
  padding: clamp(80px, 11vw, 130px) var(--pad-x) clamp(24px, 3vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.featured__text {
  flex: 1 1 360px;
  min-width: 290px;
}

.featured__title {
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.featured__body {
  margin: 24px 0 0;
  max-width: 480px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}

.featured__actions { display: flex; margin-top: 34px; }

.section-lede {
  margin: 24px 0 0;
  max-width: 480px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}

/* Cartão base */
.card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--ph1);
  transition: transform 0.6s var(--ease-out);
}

.card:hover { transform: translateY(-6px); }

.card--featured {
  flex: 1.35 1 460px;
  min-width: 290px;
  border-radius: 28px;
  min-height: clamp(380px, 46vw, 540px);
  justify-content: space-between;
}

.card--wide { flex: 2 1 440px; min-width: 290px; min-height: 400px; }
.card--tall { flex: 1 1 300px; min-width: 270px; min-height: 400px; }

.card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.card:hover .card__img { transform: scale(1.05); }

.card__open {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(10, 8, 8, 0.12);
  transition: transform 0.4s var(--ease-spring), background-color 0.3s ease, color 0.3s ease;
}

.card__open:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.1);
}

.card__open:active {
  background: var(--accent-hover);
  color: #fff;
  transform: scale(0.9);
}

.card--featured .card__open {
  position: relative;
  top: 0;
  right: 0;
  width: 52px;
  height: 52px;
  font-size: 20px;
}

.card__open-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding: 22px;
}

/* Degradê adaptado ao tema: a foto se dissolve na cor de fundo do site
   (creme no claro, escuro no escuro), com o texto seguindo o tema. */
.card__caption {
  position: relative;
  z-index: 1;
  padding: 74px 24px 24px;
  background: linear-gradient(
    to top,
    var(--bg) 0%,
    var(--bg) 30%,
    color-mix(in srgb, var(--bg) 62%, transparent) 60%,
    transparent 100%
  );
}

.card--featured .card__caption { padding: 82px 26px 26px; }

.card__cat {
  margin: 0 0 5px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.card__name {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.card--featured .card__name {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.6vw, 34px);
}

.card__desc {
  margin: 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.grid {
  padding: clamp(24px, 3vw, 40px) var(--pad-x) clamp(90px, 11vw, 140px);
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

/* --------------------------------------------------------------------------
   11. Sobre
   -------------------------------------------------------------------------- */
.about {
  margin: 0 clamp(10px, 1.5vw, 16px);
  padding: clamp(80px, 10vw, 120px) var(--pad-x);
  background: var(--bg2);
  border-radius: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  transition: background-color 0.5s ease;
}

.about__text { flex: 1.2 1 400px; min-width: 290px; }

.about__title {
  margin: 0;
  font-size: clamp(36px, 4.6vw, 62px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.about__body {
  margin: 26px 0 0;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

.about__body + .about__body { margin-top: 18px; }

.pull-quote {
  margin: 34px 0 0;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
  border-left: 2px solid var(--accent);
  padding-left: 20px;
}

.about__media {
  flex: 1 1 320px;
  min-width: 280px;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: clamp(360px, 42vw, 520px);
  background: var(--ph1);
}

.about__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   12. Contato
   -------------------------------------------------------------------------- */
.contact {
  padding: clamp(90px, 12vw, 150px) var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(36px, 5vw, 80px);
  align-items: flex-start;
}

.contact__text { flex: 1.3 1 400px; min-width: 290px; }

.contact__title {
  margin: 0;
  font-size: clamp(44px, 6.5vw, 92px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.contact__body {
  margin: 26px 0 0;
  max-width: 460px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}

.contact__actions { display: flex; margin-top: 36px; }

.contact__list {
  flex: 1 1 320px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
}

.contact__row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.contact__row:last-child { border-bottom: 1px solid var(--line); }

.contact__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact__value {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.3s ease;
}

/* --------------------------------------------------------------------------
   13. Rodapé
   -------------------------------------------------------------------------- */
.footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  border-radius: 36px 36px 0 0;
  padding: clamp(60px, 8vw, 88px) var(--pad-x) 0;
  transition: background-color 0.5s ease;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(48px, 6vw, 72px);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__col--brand { gap: 18px; }

.footer__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--footer-ink);
}

.footer__brand-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.footer__brand-name span {
  font-weight: 400;
  color: var(--footer-muted);
}

.footer__tagline {
  margin: 0;
  max-width: 300px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--footer-muted);
}

.footer__head {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--footer-muted);
}

.footer__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--footer-ink);
  text-decoration: none;
  width: fit-content;
  transition: color 0.3s ease;
}

.footer__link:hover { color: var(--accent); }

.footer__link--ext {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer__link--ext:hover { color: var(--accent); }

.footer__addr {
  font-size: 15px;
  line-height: 1.6;
  color: var(--footer-muted);
}

.footer__bar {
  border-top: 1px solid rgba(244, 239, 233, 0.14);
  padding: 26px 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  align-items: center;
  justify-content: space-between;
}

.footer__fine { font-size: 13px; color: var(--footer-muted); }

/* Rodapé compacto (página de projeto) */
.footer--compact {
  border-radius: 36px 36px 0 0;
  padding: clamp(40px, 6vw, 56px) var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  align-items: center;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   14. Página de projeto
   -------------------------------------------------------------------------- */
.cover {
  position: relative;
  min-height: 78svh;
  overflow: hidden;
  background: var(--ph1);
  display: flex;
  align-items: flex-end;
}

.cover__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover__body {
  position: relative;
  width: 100%;
  padding: 160px var(--pad-x) clamp(40px, 6vh, 60px);
  background: linear-gradient(to top, var(--bg) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 45%, transparent 100%);
}

.cover__title {
  margin: 0;
  font-size: clamp(48px, 9vw, 128px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.cover__lede {
  margin: 22px 0 0;
  max-width: 560px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--muted);
}

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-bottom: 1px solid var(--line);
  transition: border-color 0.5s ease;
}

.spec {
  padding: clamp(26px, 3.5vw, 42px) clamp(20px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: -1px 0 0 var(--line);
}

.spec:first-child { box-shadow: none; }

.spec__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec__value {
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.concept {
  padding: clamp(80px, 10vw, 120px) var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(36px, 5vw, 72px);
}

.concept__head { flex: 1 1 300px; min-width: 280px; }

.concept__title {
  margin: 22px 0 0;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.concept__body {
  flex: 1.2 1 380px;
  min-width: 290px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.concept__body p {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
}

.concept__body .pull-quote {
  margin: 14px 0 0;
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.45;
  color: var(--ink);
}

.gallery {
  padding: 0 var(--pad-x) clamp(80px, 10vw, 120px);
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.shot {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 420px;
  background: var(--ph1);
}

.shot--wide { flex: 2 1 440px; min-width: 290px; }
.shot--tall { flex: 1 1 300px; min-width: 270px; }

.shot__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.shot:hover .shot__img { transform: scale(1.04); }

.materials {
  margin: 0 clamp(10px, 1.5vw, 16px);
  padding: clamp(70px, 9vw, 110px) var(--pad-x);
  background: var(--bg2);
  border-radius: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(36px, 5vw, 72px);
  align-items: flex-start;
  transition: background-color 0.5s ease;
}

.materials__head { flex: 1 1 300px; min-width: 280px; }

.materials__title {
  margin: 22px 0 0;
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.materials__body { flex: 1.2 1 380px; min-width: 290px; }

.materials__body p {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
}

.next {
  padding: clamp(80px, 11vw, 140px) var(--pad-x);
}

.next__link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-decoration: none;
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(32px, 5vw, 56px) clamp(0px, 1vw, 12px);
  border-radius: 20px;
  transition: color 0.3s ease, transform 0.45s var(--ease-spring), border-color 0.3s ease;
}

.next__link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.next__link:active { color: var(--accent-hover); }

.next__text { display: flex; flex-direction: column; gap: 10px; }

.next__kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}

.next__name {
  font-size: clamp(38px, 6vw, 84px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.next__cat { font-size: 14px; font-weight: 500; color: var(--muted); }

.next__arrow {
  width: clamp(56px, 6vw, 72px);
  height: clamp(56px, 6vw, 72px);
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex: none;
  transition: transform 0.45s var(--ease-spring), background-color 0.3s ease,
    border-color 0.3s ease, color 0.3s ease;
}

.next__link:hover .next__arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.12);
}

/* --------------------------------------------------------------------------
   15. Placeholder de mídia
   Enquanto a foto real não existe, o contêiner mostra a hachura do design
   original com a legenda de data-ph. Assim que o arquivo entra em
   assets/img/, a <img> cobre a hachura sozinha — sem mexer no código.
   -------------------------------------------------------------------------- */
/* isolation cria um contexto de empilhamento próprio, permitindo que a legenda
   (::after, z-index -1) fique ATRÁS da foto quando ela carrega, mas ainda acima
   da hachura quando a foto falta. Assim o rótulo nunca vaza sobre a imagem. */
[data-ph] {
  isolation: isolate;
  background-image: repeating-linear-gradient(45deg, var(--ph1) 0 14px, var(--ph2) 14px 28px);
}

[data-ph]::after {
  content: attr(data-ph);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
  padding: 0 16px;
  pointer-events: none;
  z-index: -1;
}

/* Imagem que falhou ao carregar sai de cena e revela a hachura. */
img.is-missing {
  display: none;
}

/* A imagem herda o arredondamento do contêiner, evitando que os cantos
   "vazem" (rebarba) além do recorte arredondado — sobretudo no hover com zoom. */
.card__img,
.cover__img,
.about__img,
.shot__img {
  border-radius: inherit;
}

/* --------------------------------------------------------------------------
   16. Reveal on scroll
   -------------------------------------------------------------------------- */
/* O conteúdo só é escondido para a animação de entrada quando o JS confirma
   que consegue revelá-lo (classe .reveal-ready, aplicada no <head>). Se o JS
   não carregar, nada fica invisível. */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.95s var(--ease-out), transform 0.95s var(--ease-out);
}

.reveal-ready [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Sem JS: some com o preloader (o conteúdo já está visível) */
.no-js .preloader { display: none; }

/* --------------------------------------------------------------------------
   17. Responsivo / preferências
   -------------------------------------------------------------------------- */
@media (max-width: 819px) {
  .header__divider { display: none; }
  .header { padding: 8px 8px 8px 16px; }
  .menu-btn { padding: 11px 18px; }
}

@media (max-width: 520px) {
  .brand__name span { display: none; }
  .menu-btn__bars { display: none; }
  .next__link:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
  .hero__fallback,
  .hero__sweep,
  .preloader__glow { animation: none; }
}
