:root {
  --bg: #F8F7F3;
  --ink: #15120D;
  --ink-soft: #585247;
  --orange: #C94E22;
  --orange-deep: #A23C17;
  --line: rgba(21, 18, 13, 0.14);
  --line-soft: rgba(21, 18, 13, 0.07);
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, blockquote { font-family: 'Fraunces', serif; margin: 0; color: var(--ink); }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* i18n */
.en { display: none; }
[data-lang="en"] .en { display: inline; }
[data-lang="en"] .pt { display: none; }

/* Seções: claras por padrão, escuras quando .section-dark */
section { padding: 72px 0; }
.section-dark {
  background: var(--ink);
  color: var(--bg);
  --ink-soft: rgba(248, 247, 243, 0.64);
  --line: rgba(248, 247, 243, 0.16);
  --line-soft: rgba(248, 247, 243, 0.09);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark blockquote { color: var(--bg); }

/* NAV */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(248, 247, 243, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-name { font-family: 'Fraunces', serif; font-weight: 500; font-size: 18px; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.nav-links a { text-decoration: none; color: var(--ink-soft); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--ink); }
.lang-toggle {
  font-family: 'Archivo', sans-serif; font-size: 13px; font-weight: 600;
  background: none; border: 1px solid var(--ink); color: var(--ink);
  border-radius: 20px; padding: 6px 14px; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-toggle:hover { background: var(--ink); color: var(--bg); }
.lang-toggle:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--orange); outline-offset: 2px;
}
@media (max-width: 640px) {
  .nav-links-list { display: none; }
}

/* HERO — só texto, centralizada na viewport e no eixo horizontal */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding-top: 96px; padding-bottom: 72px;
  text-align: center;
}
.hero-text {
  max-width: 780px; margin-inline: auto;
  opacity: 0; transform: translateY(14px); animation: rise 0.9s ease forwards 0.15s;
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
.hero-signature {
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 500;
  font-size: clamp(40px, 10vw, 104px); line-height: 1.04; letter-spacing: -0.015em;
  color: var(--orange); margin: 0;
}
.hero-tagline { margin: 18px auto 0; font-size: 16px; color: var(--ink-soft); max-width: 44ch; }

/* HERO — colunas: bio (esquerda) + foto (direita) */
.hero-columns {
  width: 100%;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
  gap: 48px;
  margin-top: 48px;
  text-align: left;
}
.hero-bio {
  flex: 1 1 320px; max-width: 50ch;
  font-size: 16px; line-height: 1.7; color: var(--ink-soft);
}
.hero-photo {
  flex: 0 0 260px; width: 260px; aspect-ratio: 3/4;
  border-radius: 6px; overflow: hidden; background: var(--line-soft);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-cta {
  display: inline-block; margin-top: 40px; background: var(--orange); color: var(--bg);
  text-decoration: none; font-weight: 600; font-size: 15px; padding: 14px 26px;
  border-radius: 4px; transition: background 0.2s ease;
}
.hero-cta:hover { background: var(--orange-deep); }
@media (max-width: 860px) {
  .hero { padding-top: 88px; }
  .hero-columns { flex-direction: column; align-items: center; }
  .hero-bio { flex: none; width: 100%; max-width: 60ch; }
  .hero-photo { flex: none; width: 220px; }
}

/* APPROACH */
.approach { max-width: 720px; }
.approach p {
  font-family: 'Fraunces', serif; font-weight: 400; font-style: italic;
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1.45; color: inherit;
}

/* CASES */
.cases-heading { font-size: clamp(26px, 3vw, 34px); font-weight: 500; margin-bottom: 44px; }
.case {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 48px 0; border-top: 1px solid var(--line);
}
.case:last-child { border-bottom: 1px solid var(--line); }
.case.flip .case-media { order: 2; }
.case.flip .case-text { order: 1; }
.case-media {
  position: relative; aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden;
  width: 100%; max-width: 280px; margin-inline: auto;
  background: linear-gradient(155deg, var(--orange), var(--ink));
}
.case-media.tone-2, .case-media.tone-4, .case-media.tone-6 {
  background: linear-gradient(155deg, var(--ink), var(--orange));
}
.case-media::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background-image: radial-gradient(rgba(248, 247, 243, 0.1) 1px, transparent 1px);
  background-size: 5px 5px; mix-blend-mode: overlay;
  pointer-events: none;
}
.case-title { font-size: clamp(20px, 2.1vw, 25px); font-weight: 500; line-height: 1.25; }
.case-location { margin-top: 8px; font-size: 14px; color: var(--ink-soft); }
.case-body { margin-top: 16px; font-size: 16px; color: var(--ink-soft); max-width: 46ch; }
.narrative-highlight { font-style: italic; color: var(--orange); }
blockquote.case-quote {
  margin-top: 20px; padding-left: 18px; border-left: 2px solid var(--orange);
  font-style: italic; font-size: 17px; color: var(--ink);
}
blockquote.case-quote footer {
  margin-top: 8px; font-family: 'Archivo', sans-serif; font-style: normal;
  font-size: 13.5px; color: var(--ink-soft);
}
@media (max-width: 860px) {
  .case, .case.flip { grid-template-columns: 1fr; }
  .case.flip .case-media, .case.flip .case-text { order: unset; }
}

/* VIDEO — thumbnail + botão de play (aparece quando o case tem ID no videos.js) */
.case-media[data-has-video="true"] { cursor: pointer; }
.video-thumb {
  position: absolute; inset: 0; z-index: 1;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.media-play {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  background: rgba(21, 18, 13, 0.20); transition: background 0.2s ease;
}
.case-media[data-has-video="true"]:hover .media-play,
.case-media[data-has-video="true"]:focus-visible .media-play {
  background: rgba(21, 18, 13, 0.36);
}
.media-play svg {
  width: 58px; height: 58px; fill: var(--bg);
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}
.play-badge {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(21, 18, 13, 0.58); backdrop-filter: blur(4px);
  color: var(--bg); padding: 9px 14px; border-radius: 30px; font-size: 12.5px;
  text-align: center;
}
.play-badge svg { width: 14px; height: 14px; fill: var(--bg); }
.play-badge .soon { opacity: 0.72; }

/* MODAL do player — formato vertical (celular) */
.video-modal {
  position: fixed; inset: 0; z-index: 100;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(15, 13, 9, 0.86);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.video-modal[aria-hidden="true"] { display: none; }
.video-modal[aria-hidden="false"] { display: flex; }
.video-modal-inner {
  position: relative;
  aspect-ratio: 9 / 16;
  height: min(86vh, 760px);
  max-width: 94vw;
  background: #000; border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.video-modal-inner iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(15, 13, 9, 0.6);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border: 0; color: var(--bg); cursor: pointer;
  font-family: 'Archivo', sans-serif; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 20px;
}
.video-close svg { width: 15px; height: 15px; fill: currentColor; }

/* SERVICES */
.services-heading { font-size: clamp(26px, 3vw, 34px); font-weight: 500; margin-bottom: 32px; max-width: 20ch; }
.services-list { list-style: none; margin: 0; padding: 0; }
.services-list li {
  padding: 16px 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 2fr 3fr; gap: 28px; align-items: baseline;
}
.services-list li:last-child { border-bottom: 1px solid var(--line); }
.service-name { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 500; }
.service-desc { font-size: 15px; color: var(--ink-soft); }
.service-featured .service-name { font-size: 23px; color: var(--orange); }
@media (max-width: 640px) {
  .services-list li { grid-template-columns: 1fr; gap: 6px; }
}

/* ABOUT — só texto agora; a foto vive na hero */
.about { max-width: 640px; }
.about h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 500; margin-bottom: 18px; max-width: 16ch; }
.about p { font-size: 17px; color: var(--ink-soft); max-width: 56ch; }

/* CONTACT / FOOTER */
footer.contact {
  background: var(--ink); color: var(--bg); padding: 72px 0 36px;
}
.contact-inner { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 40px; }
.contact h2 { color: var(--bg); font-size: clamp(28px, 3.6vw, 42px); font-weight: 500; max-width: 12ch; }
.contact-email {
  display: inline-block; margin-top: 22px; color: var(--bg); text-decoration: none;
  font-size: 17px; border-bottom: 1px solid var(--orange); padding-bottom: 4px;
}
.contact-email:hover { border-color: var(--bg); }
.contact-meta { font-size: 14px; color: rgba(248, 247, 243, 0.64); line-height: 1.9; }
.contact-meta a { color: rgba(248, 247, 243, 0.86); text-decoration: none; border-bottom: 1px solid transparent; }
.contact-meta a:hover { color: var(--bg); border-bottom-color: var(--orange); }
.foot-bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(248, 247, 243, 0.15);
  font-size: 13px; color: rgba(248, 247, 243, 0.5);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
