:root {
  --paper: #f6f1e7;
  --sand: #ebe5d9;
  --coffee: #1d443a;
  --ink: #1a1b19;
  --clay: #725428;
  --muted: #544e45;
  --line: #d6c9b4;
  --gold: #e5c98d;
  --gold-deep: #a78548;
  --on-dark: #f3ebdb;
}

.brand-emblem {
  display: block;
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
}
.brand-emblem img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%);
  object-fit: contain;
}
.nav-shell .brand-emblem img,
.about-label .brand-emblem img {
  filter: brightness(.66) saturate(1.25);
}
.wordmark { gap: 13px; }
.wordmark > p { font-size: 11px; }
.wordmark small { font-size: 8px; }
.nav-shell nav { font-size: 12px; }
.nav-cta { font-size: 11px; }
.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 55;
  height: 3px;
  background: var(--gold-deep);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.cover {
  min-height: 825px;
  background: radial-gradient(ellipse at 50% 39%, #383a32, var(--ink) 66%);
}
.cover-photo img {
  top: 68px;
  height: 119%;
  opacity: .98;
  mask-image: linear-gradient(90deg, transparent 10%, #000 29%, #000 71%, transparent 90%);
}
.cover-photo:after {
  background: linear-gradient(180deg, transparent 31%, #1a1b1960 53%, #1a1b19eb 84%, var(--ink)),
              linear-gradient(90deg, #1a1b19c0, transparent 38%, transparent 62%, #1a1b19c0);
}
.cover h1 { font-size: clamp(64px, 7.5vw, 106px); }
.cover h1 em { color: var(--gold); }
.cover-content > p { font-size: 15px; color: var(--on-dark); }
.cover-kicker { font-size: 10px; color: var(--on-dark); }
.cover-kicker span { font-size: 8px; color: var(--gold); }
.cover-caption { font-size: 9px; color: var(--gold); }
.cover-social { right: 150px; display: flex; align-items: center; gap: 10px; font-size: 9px; letter-spacing: .14em; color: var(--gold); }
.scroll-cue { color: var(--on-dark); }
.button { min-height: 58px; font-size: 12px; }
.button-light > span { background: #e9dfc2; }
.text-link { min-height: 42px; font-size: 13px; }
.js-motion .cover-photo { animation: cover-drift 8s ease-in-out infinite alternate; }
.js-motion .cover-content h1 { animation: cover-entrance .9s var(--ease) both; }
.js-motion .cover-content > p { animation: cover-entrance .85s .16s var(--ease) both; }
.js-motion .cover-content > a { animation: cover-entrance .85s .27s var(--ease) both; }
.js-motion .scroll-cue i { animation: cue-drop 1.9s ease-in-out infinite; }
@keyframes cover-drift {
  to { transform: scale(1.075) translateY(9px); }
}
@keyframes cover-entrance {
  from { opacity: 0; translate: 0 28px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes cue-drop {
  50% { translate: 0 7px; }
}
.js-motion .reveal {
  transition: opacity .75s var(--ease), translate .85s var(--ease);
}
.js-motion .reveal:not(.seen) {
  opacity: .12;
  translate: 0 36px;
}

.opening h2 { margin-top: 0; }
.opening h2 em { color: var(--clay); }
.opening-note > p { font-size: 17px; }
.scene-caption { justify-content: center; color: var(--muted); }
.scene-caption button { min-height: 44px; font-size: 12px; }
#justice-scene { height: 425px; touch-action: pan-y; }
#justice-scene.dragging { cursor: grabbing; }
#justice-scene canvas { touch-action: pan-y; }
.justice-preview {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, 425px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: url("assets/justice-atlas.webp") no-repeat 0 0 / 1200% 1200%;
  transition: opacity .6s;
}
#justice-scene.ready .justice-preview {
  opacity: 0;
}
.themes-heading > p:last-child { font-size: 15px; max-width: 290px; }
.theme-tabs button { border-color: var(--line); }
#theme-panel { min-height: 315px; background: var(--paper); }
#theme-panel .theme-mark { color: #deceb8; }
#theme-panel h3 { margin-top: 22px; max-width: 85%; }
#theme-copy { font-size: 15px; color: var(--muted); }
#theme-panel .text-link { position: relative; font-size: 12px; }

.contact-feature {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: 7vw;
  align-items: center;
  background: radial-gradient(ellipse at 77% 42%, #26463a, transparent 60%), var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding-block: 85px;
}
.contact-content { position: relative; z-index: 1; }
.contact-content h2 { font-size: clamp(50px, 6vw, 86px); }
.contact-content h2 em, .office h2 em { color: var(--gold); }
.contact-content > p { max-width: 390px; color: var(--on-dark); margin: 24px 0 26px; }
.contact-picker { display: grid; gap: 12px; max-width: 410px; }
.contact-picker label { font-size: 13px; font-weight: 600; }
.contact-picker select {
  width: 100%;
  min-height: 53px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit;
  font-size: 15px;
  background: var(--paper);
  color: var(--ink);
}
.contact-picker .button { margin-top: 7px; }
.contact-direct {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 19px;
  min-height: 44px;
  font-size: 13px;
  color: var(--on-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.contact-direct svg { width: 18px; height: 18px; }
.contact-portrait {
  margin: 0;
  min-width: 0;
  position: relative;
  display: grid;
  align-items: end;
  justify-items: center;
}
.contact-portrait img {
  position: relative;
  width: min(100%, 465px);
  height: auto;
  filter: drop-shadow(15px 20px 28px #101712a0);
  border-radius: 48% 48% 10px 10px / 39% 39% 10px 10px;
  border: 1px solid #e5c98d60;
}
.portrait-arch {
  position: absolute;
  inset: -4% 5% -3%;
  border: 1px solid #dfbe8955;
  border-radius: 50% 50% 3px 3px / 36% 36% 3px 3px;
  transform: rotate(-7deg);
}
.portrait-arch::after {
  content: '';
  position: absolute;
  inset: 15px;
  border: 1px solid #dfbe8930;
  border-radius: inherit;
}
.js-motion .contact-portrait.seen img {
  animation: step-forward .95s var(--ease) both, portrait-sway 5s 1s ease-in-out infinite alternate;
}
@keyframes step-forward {
  from { transform: translateX(32px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes portrait-sway {
  from { transform: translate(0, 0); }
  to { transform: translate(7px, -9px); }
}

.about-image > img { object-position: center 32%; }
.about-label { z-index: 1; }
.about-label small { font-size: 9px; color: var(--muted); }
.about-credentials p { color: var(--muted); }
.about-text > p:not(.overline) { font-size: 16px; }
.about-text > p.lead { font-size: 20px; }
.about-text .text-link { font-size: 13px; }
.social { background: var(--sand); }
.social-portrait img { filter: none; object-position: 55% 57%; }
.social-orbit { border-color: var(--gold-deep); }
.social-copy h2 { margin-top: 0; }
.social-copy > p:not(.overline) { color: var(--muted); }
.instagram-handle { font-size: clamp(23px, 2.7vw, 38px); overflow-wrap: anywhere; border-color: var(--gold-deep); }
.social-topics a { min-height: 52px; font-size: 13px; color: var(--coffee); }
.social-seal {
  position: absolute;
  right: -3%;
  bottom: 6%;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--coffee);
  color: var(--gold);
  box-shadow: 0 0 0 8px var(--sand);
}
.review { background: var(--paper); min-height: 375px; display: flex; flex-direction: column; }
.review-stars { color: var(--clay); letter-spacing: .23em; }
.review > span { margin-top: 23px; color: var(--gold-deep); }
.review blockquote { flex: 1; font-size: 15px; color: var(--muted); }
.review > p { display: flex; gap: 10px; align-items: center; border-color: var(--line); }
.review > p > i { font-style: normal; border-radius: 50%; padding: 7px; background: var(--sand); font-size: 10px; }
.review-controls button { min-width: 44px; min-height: 44px; border-color: var(--line); }
.review-controls button:disabled { opacity: .3; cursor: default; }

.office {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1fr);
  align-items: center;
  gap: 7vw;
  background: radial-gradient(ellipse at 25% 48%, #284339, transparent 64%), var(--ink);
  color: var(--paper);
}
.brazil-scene {
  position: relative;
  margin: 0;
  min-width: 0;
  text-align: center;
}
#brazil-map {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
  max-width: 550px;
  aspect-ratio: 23 / 22;
}
#tilt-map {
  margin: 0 auto;
  align-items: center;
  gap: 13px;
  min-height: 44px;
  color: var(--on-dark);
  padding: 6px 3px;
  border-color: #e5c98d77;
}
#tilt-map[aria-pressed="true"] { color: var(--gold); }
#tilt-map i { font-style: normal; font-size: 18px; }
.office-content > p { margin: 23px 0; color: var(--on-dark); max-width: 400px; }
.office-actions { display: flex; align-items: start; flex-direction: column; gap: 19px; }
.office-email { font-size: 14px; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 4px; }
.footer-phone { font-size: 13px; }
.floating-controls > a { background: var(--coffee); }

@media (max-width: 950px) {
  .nav-shell nav { gap: 17px; font-size: 11px; }
  .wordmark { gap: 9px; }
  .nav-cta { gap: 10px; }
  .contact-feature { gap: 4vw; }
}
@media (max-width: 760px) {
  .nav-shell { padding: 9px 14px; }
  .nav-shell nav { font-size: 15px; }
  .wordmark > p { font-size: 9px; }
  .wordmark small { font-size: 7px; }
  .brand-emblem { width: 36px; height: 36px; }
  .brand-emblem img { width: 34px; }
  .cover { min-height: 0; height: 760px; }
  .cover-photo img { top: 76px; height: 94%; }
  .cover-photo:after {
    background: linear-gradient(180deg, #1a1b1955, transparent 26%, #1a1b1945 48%, #1a1b19dd 72%, var(--ink) 96%),
                linear-gradient(90deg, #1a1b1982, transparent 23%, transparent 77%, #1a1b1982);
  }
  .cover h1 { font-size: clamp(33px, 9.9vw, 66px); }
  .cover-content { padding-bottom: 105px; }
  .cover-content > p { font-size: 13px; max-width: 270px; }
  .cover-social { right: 90px; bottom: 28px; }
  .cover-social span { display: none; }
  .cover-kicker { top: 116px; font-size: 8px; }
  .js-motion .reveal:not(.seen) { translate: 0 28px; }
  .opening h2 { font-size: clamp(37px, 9.2vw, 54px); }
  #justice-scene { height: 325px; }
  .justice-preview { max-width: 325px; }
  .opening-note > p { font-size: 15px; }
  .themes-heading > p:last-child { font-size: 14px; }
  .theme-tabs { grid-template-columns: 1fr; }
  .theme-tabs button { font-size: 14px; }
  #theme-panel { min-height: 292px; }
  #theme-panel h3 { font-size: 34px; }
  #theme-copy { font-size: 14px; }
  .contact-feature { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 70px 30px; }
  .contact-content h2 { font-size: clamp(43px, 11vw, 61px); }
  .contact-content > p { font-size: 14px; }
  .contact-portrait img { width: min(82%, 320px); }
  .portrait-arch { inset: -5% 10% -4%; }
  .social-portrait { max-width: 270px; }
  .instagram-handle { font-size: clamp(17px, 5vw, 24px); }
  .social-seal { width: 49px; height: 49px; }
  .review { min-height: 345px; }
  .review blockquote { font-size: 14px; }
  .office { grid-template-columns: 1fr; gap: 24px; }
  .office-content { grid-row: 1; }
  .brazil-scene { width: min(100%, 410px); margin-inline: auto; }
  .office h2 { font-size: clamp(43px, 11vw, 60px); }
}
@media (prefers-reduced-motion: reduce) {
  .js-motion .cover-photo,
  .js-motion .cover-content > *,
  .js-motion .scroll-cue i,
  .js-motion .contact-portrait.seen img { animation: none; }
}
