:root {
  --ink: #1b1712;
  --muted: #5e574c;
  --paper: #f3eee4;
  --paper-2: #e7dfd0;
  --line: rgba(27, 23, 18, 0.14);
  --night: #12100e;
  --night-2: #1c1915;
  --ivory: #f7f1e6;
  --gold: #b08948;
  --gold-2: #e4c98a;
  --danger: #8d3d32;
  --header: 4.5rem;
  --measure: 72rem;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: Outfit, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5.75rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: #e4c98a; color: #1b1712; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ivory);
  color: var(--ink);
  padding: 0.6rem 0.8rem;
  z-index: 20;
}

.skip:focus { top: 0.6rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header);
  padding: 0.75rem 6vw;
  background: #12100e;
  color: var(--ivory);
  border-bottom: 1px solid rgba(228, 201, 138, 0.22);
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  margin-right: auto;
}

.brand strong {
  font-family: var(--serif);
  font-size: 2.65rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.brand span {
  margin-top: 0.28rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.site-nav {
  display: flex;
  gap: 1.25rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: rgba(247, 241, 230, 0.82);
}

.site-nav a:hover { color: var(--ivory); }

.nav-cta {
  text-decoration: none;
  border: 1px solid var(--gold-2);
  color: var(--gold-2);
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.nav-cta:hover { background: var(--gold-2); color: var(--night); }

.hero {
  position: relative;
  min-height: calc(100svh - var(--header));
  display: grid;
  align-items: end;
  background: var(--night);
  color: var(--ivory);
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 6vh 6vw 2.4rem;
  max-width: 84rem;
  background: linear-gradient(180deg, rgba(18, 16, 14, 0.05) 0%, rgba(18, 16, 14, 0.78) 42%, rgba(18, 16, 14, 0.92) 100%);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.15rem, 4vw, 3.55rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.lede {
  max-width: 76rem;
  margin: 1.35rem 0 0;
  font-size: 2.24rem;
  font-weight: 300;
  line-height: 1.28;
  color: rgba(247, 241, 230, 0.9);
}

.hero-brand {
  margin: 0 0 0.55rem;
  font-family: var(--serif);
  font-size: clamp(6.8rem, 14vw, 11.2rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: var(--gold-2);
}

.hero-proof {
  max-width: 36rem;
  margin: 1.15rem 0 0;
  color: var(--gold-2);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.15rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--gold-2);
  color: var(--night);
}

.button:hover { background: #f3e2b8; }

.button-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(247, 241, 230, 0.45);
}

.button-ghost:hover { background: rgba(247, 241, 230, 0.08); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  border-top: 1px solid rgba(228, 201, 138, 0.2);
}

.facts div {
  padding: 1.5rem 6vw 1.7rem 1.5rem;
  border-left: 1px solid rgba(228, 201, 138, 0.2);
}

.facts div:first-child { border-left: 0; padding-left: 6vw; }

.facts dt {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--gold-2);
}

.facts dd {
  margin: 0.35rem 0 0;
  max-width: 22rem;
  color: rgba(247, 241, 230, 0.82);
  font-size: 0.95rem;
}

.section {
  padding: 5.5rem 6vw;
  scroll-margin-top: calc(var(--header) + 0.5rem);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section h2,
.band h2,
.reais h2,
.quote-panel h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.section-head p,
.narrow p { color: var(--muted); }

.piece {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 3rem;
}

.piece + .piece { margin-top: 4.5rem; }

.piece.reverse { grid-template-columns: 0.85fr 1.15fr; }

.piece.reverse figure { order: 2; }

figure { margin: 0; }

.frame {
  background: var(--night);
  overflow: hidden;
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.medal-frame { aspect-ratio: 1 / 1; }
.medal-frame img { object-position: center 60%; }
.trophy-frame { aspect-ratio: 4 / 5; }
.trophy-frame img { object-position: center 28%; }
.wide-frame { aspect-ratio: 16 / 9; }
.ribbon-frame { aspect-ratio: 1 / 1; }

figcaption,
.caption {
  margin-top: 0.7rem;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--muted);
}

.caption-strong {
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--ink);
}

.kicker {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.spec {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.spec li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}

.pair {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.2rem;
  margin-top: 1rem;
}

.reais {
  background: var(--night);
  color: var(--ivory);
  padding: 0 6vw 4.5rem;
}

.reais .section-head { margin-left: auto; margin-right: auto; }

.reais h2 { color: var(--ivory); }

.reais .section-head p { color: rgba(247, 241, 230, 0.78); }

.real-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  max-width: var(--measure);
  margin: 0 auto;
}

.real-grid figure { margin: 0; }

.real-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #1b1714;
}

.real-grid figcaption {
  margin-top: 0.55rem;
  font-size: 0.86rem;
  color: rgba(247, 241, 230, 0.72);
}

.band {
  position: relative;
  min-height: 28rem;
  display: grid;
  align-items: end;
  color: var(--ivory);
  background: var(--night);
}

.band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.band-copy {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  padding: 4rem 6vw;
  background: linear-gradient(180deg, rgba(18, 16, 14, 0) 0%, rgba(18, 16, 14, 0.82) 45%);
}

.band-copy p { margin: 0.8rem 0 0; color: rgba(247, 241, 230, 0.86); }

.organs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.organs li {
  padding: 1.35rem 1.5rem 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.organs li:nth-child(odd) { padding-right: 2rem; }

.organs li:nth-child(even) {
  padding-left: 2rem;
  border-left: 1px solid var(--line);
}

.organs h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 560;
}

.organs p { margin: 0; color: var(--muted); }

.docs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 1.6rem;
  margin-top: 2rem;
  max-width: 62rem;
}

.doc {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.doc img {
  width: 100%;
  aspect-ratio: 1 / 1.35;
  object-fit: contain;
  object-position: top center;
  background: white;
  border: 1px solid var(--line);
}

.doc:hover img { border-color: var(--gold); }

.doc span {
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--muted);
}

dialog {
  width: min(920px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0.6rem;
  border: 0;
  background: var(--paper);
}

dialog::backdrop { background: rgba(18, 16, 14, 0.78); }

dialog img { width: 100%; height: auto; max-height: calc(100vh - 6rem); object-fit: contain; background: white; }

.dialog-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.4rem;
}

.dialog-bar button {
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

.quote-panel {
  background: var(--night);
  color: var(--ivory);
}

.quote-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.quote-panel .kicker { color: var(--gold-2); }

.quote-panel p { color: rgba(247, 241, 230, 0.8); }

.steps {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.8rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(228, 201, 138, 0.22);
}

.steps span {
  font-family: var(--serif);
  color: var(--gold-2);
  font-size: 1.3rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }

.field[hidden] { display: none !important; }

.span-2 { grid-column: 1 / -1; }

label { font-size: 0.82rem; letter-spacing: 0.04em; color: var(--gold-2); }

input, select, textarea {
  width: 100%;
  background: var(--night-2);
  border: 1px solid rgba(228, 201, 138, 0.28);
  color: var(--ivory);
  padding: 0.75rem 0.8rem;
  border-radius: 0;
}

textarea { min-height: 6.5rem; resize: vertical; }

input::placeholder, textarea::placeholder { color: rgba(247, 241, 230, 0.38); }

.field small {
  min-height: 1rem;
  color: #f0b2a8;
  font-size: 0.8rem;
}

.field-hint {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(247, 241, 230, 0.62);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--ivory);
  font-size: 1rem;
  letter-spacing: 0;
}

.check input { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; accent-color: var(--gold); }

.form-actions { display: flex; flex-direction: column; gap: 0.8rem; }

.form-actions .button { border: 0; min-height: 3.4rem; font-weight: 560; }

.form-note, .status {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(247, 241, 230, 0.72);
}

.zap-float {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  min-height: 3.1rem;
  padding: 0.7rem 1.1rem;
  background: #1e7a46;
  color: #fff;
  text-decoration: none;
  font-weight: 560;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.zap-float:hover { background: #17653a; }

.site-footer {
  padding: 2.5rem 6vw 5.5rem;
  background: #0d0c0a;
  color: rgba(247, 241, 230, 0.72);
  font-size: 0.92rem;
}

.site-footer strong {
  display: block;
  color: var(--ivory);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.site-footer p { margin: 0.25rem 0; }

.site-footer a { color: var(--gold-2); }

@media (max-width: 980px) {
  .piece,
  .piece.reverse,
  .pair,
  .facts,
  .organs,
  .real-grid { grid-template-columns: 1fr 1fr; }

  .quote-layout { grid-template-columns: 1fr; }

  html { scroll-padding-top: 8.5rem; }

  .site-header {
    flex-wrap: wrap;
    align-items: center;
  }

  .site-nav {
    display: flex;
    flex-basis: 100%;
    order: 4;
    gap: 1rem;
    padding-top: 0.35rem;
  }

  .piece.reverse figure { order: 0; }
  .facts div,
  .facts div:first-child { border-left: 0; border-top: 1px solid rgba(228, 201, 138, 0.2); padding: 1.3rem 6vw; }
  .facts div:first-child { border-top: 0; }
  .organs li,
  .organs li:nth-child(even),
  .organs li:nth-child(odd) {
    padding: 1.2rem 0;
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .hero-copy { padding-top: 2.5rem; }
  .section { padding: 3.5rem 6vw; }
  .docs,
  .real-grid,
  .facts,
  .organs { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
