:root {
  --bg: #101411;
  --bg-soft: #171c18;
  --paper: #f2efe5;
  --paper-2: #e6e0d1;
  --ink: #181c19;
  --muted: #a5aca4;
  --green: #00A650DD;
  --blue: #3483FA99;
  --yellow: #d3aa4b;
  --line: rgba(242, 239, 229, .18);
  --shell: min(1180px, calc(100% - 40px));
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

body.gallery-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

button {
  font: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 1000;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
  transition: top .2s;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, backdrop-filter .25s;
}

.site-header.scrolled {
  background: rgba(16, 20, 17, .88);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: var(--shell);
  height: 82px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.035em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: #111;
  border-radius: 2px;
  font-size: 14px;
  letter-spacing: -.08em;
  text-transform: lowercase;
}

.brand-name {
  font-size: 18px;
}

.brand-name img {
  width: 200px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .78;
  transition: opacity .2s;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 9px;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  background: var(--paper);
  margin: 5px 0;
}

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

.hero-photo {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/hero-ponta-grossa.png');
  background-size: cover;
  background-position: center 45%;
  filter: saturate(.78) contrast(1.03);
  transform: scale(1.015);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 11, .08) 15%, rgba(10, 14, 11, .38) 54%, rgba(10, 14, 11, .92) 100%), linear-gradient(90deg, rgba(10, 14, 11, .38), transparent 72%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 180px 0 78px;
}

.eyebrow {
  margin: 0 0 19px;
  color: var(--yellow);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.manifesto blockquote,
.restoration h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .97;
}

.hero h1 {
  max-width: 980px;
  font-size: clamp(48px, 8vw, 108px);
  text-wrap: balance;
}

.hero h1 em,
.remains h2 em {
  color: var(--paper-2);
  font-weight: 400;
}

.hero-lead {
  max-width: 640px;
  margin: 28px 0 34px;
  font-size: clamp(18px, 2vw, 24px);
  color: rgba(242, 239, 229, .86);
}

.scroll-cue {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 239, 229, .5);
  padding-bottom: 5px;
  font-size: 14px;
  font-weight: 700;
}

.section {
  padding: 132px 0;
}

.origins {
  background: var(--paper);
  color: var(--ink);
}

.grid-2 {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.section-copy h2,
.section-heading h2,
.friendship h2,
.remains h2 {
  font-size: clamp(43px, 5.8vw, 78px);
}

.section-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow),
.friendship-copy p,
.remains p:not(.eyebrow) {
  font-size: 18px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 58px;
}

.section-heading>p:last-child {
  max-width: 680px;
  color: var(--muted);
}

.origins .eyebrow {
  color: #756125;
}

.origins .section-copy>p:not(.eyebrow):not(.pullquote) {
  color: #4a4e49;
}

.pullquote {
  margin: 36px 0 0;
  padding: 25px 0 0;
  border-top: 1px solid rgba(24, 28, 25, .18);
  font-family: Georgia, serif;
  font-size: 27px !important;
  line-height: 1.3;
}

.photo-card {
  margin: 0;
  background: #d7d1c2;
  padding: 12px 12px 15px;
  transform: rotate(1.2deg);
  box-shadow: 0 28px 70px rgba(26, 25, 18, .18);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 796 / 538;
  object-fit: cover;
}

.photo-card figcaption {
  padding: 12px 4px 1px;
  color: #4d504b;
  font-size: 13px;
}

.meeting-bill {
  background: var(--paper-2);
  color: var(--ink);
}

.meeting-bill .eyebrow {
  color: #756125;
}

.meeting-bill .section-copy>p:not(.eyebrow):not(.pullquote) {
  color: #4a4e49;
}

.meeting-bill-copy {
  grid-column: 2;
}

.meeting-bill-photo {
  grid-column: 1;
  grid-row: 1;
  transform: rotate(-1.2deg);
}

.meeting-bill-photo-placeholder {
  display: flex;
  aspect-ratio: 796 / 538;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background:
    linear-gradient(145deg, transparent 45%, rgba(211, 170, 75, .18)),
    var(--bg-soft);
  color: var(--paper);
  padding: clamp(24px, 5vw, 52px);
}

.meeting-bill-years {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -.045em;
}

.meeting-bill-years span {
  color: var(--yellow);
}

.meeting-bill-milestones {
  max-width: 330px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.7;
  text-transform: uppercase;
}

.idea {
  background: var(--bg);
}

.idea-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.idea-card {
  min-height: 310px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.idea-card span {
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
}

.idea-card h3 {
  margin: 50px 0 14px;
  font-family: Georgia, serif;
  font-size: 31px;
  font-weight: 400;
}

.idea-card p {
  color: var(--muted);
  font-size: 15px;
}

.manifesto {
  background: var(--yellow);
  color: #141711;
  padding: 100px 0 108px;
}

.manifesto .eyebrow {
  color: #5a4817;
}

.manifesto-inner {
  max-width: 1040px;
}

.manifesto blockquote {
  margin: 0;
  font-size: clamp(55px, 9vw, 120px);
}

.manifesto-inner>p:last-child {
  max-width: 720px;
  margin: 34px 0 0;
  font-size: 18px;
}

.road {
  background: #121713;
}


.road figure {
  margin: 0 0 78px 0 !important;
  width: 100%;
  margin: 0;
  background: #d3aa4bf2;
  padding: 12px 12px 15px;
  transform: rotate(1.2deg);
  box-shadow: 0 28px 70px rgba(26, 25, 18, .18);
}

.road .photo-card img {
  width: 100%;
  aspect-ratio: 796 / 438;
  object-fit: cover;
}

.road .photo-card figcaption {
  padding: 12px 4px 1px;
  color: #292929;
  font-size: 13px;
}

.journey-list {
  border-top: 1px solid var(--line);
}

.journey {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 32px;
  padding: 37px 0;
  border-bottom: 1px solid var(--line);
}

.journey-year {
  font-family: Georgia, serif;
  font-size: 30px;
  color: var(--yellow);
}

.journey h3 {
  margin: -12px 0 8px;
  font-family: Georgia, serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400;
}

.journey p {
  max-width: 710px;
  margin: 0;
  color: var(--muted);
}

.gallery-trigger {
  display: inline-flex;
  align-items: center;
  margin-top: 0;
  padding-bottom: 3px;
  color: var(--paper);
  letter-spacing: .04em;
  text-decoration: none !important;
  -transition: border-color .2s, color .2s;
}

.journey .gallery-trigger {
  font-size: 38px;
}

.gallery-trigger:hover,
.gallery-trigger:focus-visible {
  -border-color: var(--yellow);
  color: var(--yellow);
}

.gallery-modal {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: clamp(14px, 3vw, 40px);
  border: 0;
  background: rgba(8, 11, 9, .92);
  color: var(--paper);
}

.gallery-modal::backdrop {
  background: rgba(8, 11, 9, .92);
}

.gallery-modal[open] {
  display: grid;
  place-items: center;
}

.gallery-dialog {
  width: min(1180px, 100%);
  max-height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
}

.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 13px;
}

.gallery-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.1;
}

.gallery-close,
.gallery-nav {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(242, 239, 229, .06);
  color: var(--paper);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.gallery-close:hover,
.gallery-close:focus-visible,
.gallery-nav:hover,
.gallery-nav:focus-visible {
  border-color: var(--yellow);
  background: rgba(211, 170, 75, .12);
}

.gallery-close {
  width: 42px;
  height: 42px;
  font-size: 27px;
  line-height: 1;
}

.gallery-stage {
  min-height: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: clamp(10px, 2vw, 24px);
  align-items: center;
}

.gallery-nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 22px;
}

.gallery-nav:disabled {
  visibility: hidden;
}

.gallery-figure {
  min-width: 0;
  margin: 0;
  text-align: center;
}

.gallery-image {
  width: auto;
  max-width: 100%;
  max-height: calc(100svh - 190px);
  margin-inline: auto;
  object-fit: contain;
}

.gallery-caption {
  max-width: 780px;
  min-height: 1.4em;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 13px;
}

.gallery-caption:empty {
  display: none;
}

.gallery-empty {
  margin: 0;
  padding: 80px 20px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.gallery-counter {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-align: center;
}

.friendship {
  background: var(--blue);
  color: #f7f2e6;
}

.friendship .eyebrow {
  color: var(--yellow);
}

.friendship-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(48px, 9vw, 120px);
  align-items: end;
}

.friendship-copy {
  max-width: 570px;
}

.friendship-copy p {
  color: rgba(255, 255, 255, .82);
}

.archive {
  background: var(--paper);
  color: var(--ink);
}

.archive .section-heading>p:last-child {
  color: #5d625b;
}

.archive .eyebrow {
  color: #756125;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.archive-card {
  padding: 38px;
  min-height: 280px;
  background: #e7e1d4;
  border: 1px solid rgba(24, 28, 25, .1);
}

.archive-kicker {
  margin: 0 0 55px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #6d704f;
}

.archive-card h3 {
  margin: 0 0 14px;
  font-family: Georgia, serif;
  font-size: 36px;
  font-weight: 400;
}

.archive-card p:last-child {
  max-width: 480px;
  color: #5b6059;
}

.remains {
  background: #0c100d;
  text-align: center;
  padding: 165px 0;
}

.remains-inner {
  max-width: 1020px;
}

.remains h2 {
  font-size: clamp(49px, 7.3vw, 96px);
}

.remains p:last-child {
  max-width: 760px;
  margin: 35px auto 0;
  color: var(--muted);
}

.restoration {
  background: var(--green);
  color: #10150f;
  padding: 120px 0;
}

.restoration .eyebrow {
  color: #263523;
}

.restoration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(52px, 9vw, 120px);
  align-items: start;
}

.restoration h2 {
  font-size: clamp(62px, 8vw, 112px);
}

.restoration-copy {
  max-width: 570px;
  font-size: 19px;
}

.status-note {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(16, 21, 15, .28);
  font-size: 14px;
  font-weight: 700;
}

.site-footer {
  background: #080b09;
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
}

.brand-footer {
  margin-bottom: 12px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-signoff {
  text-align: right;
}

.footer-signoff strong {
  display: block;
  margin-top: 8px;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 400;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .72s ease, transform .72s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  :root {
    --shell: min(100% - 32px, 760px);
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 102;
  }

  body.menu-open .site-header {
    height: 100vh;
    height: 100dvh;
    backdrop-filter: none;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 101;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(11, 15, 12, .98);
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    gap: 25px;
    padding: 82px 20px 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s, visibility .2s;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav a {
    font-family: Georgia, serif;
    font-size: 38px;
    text-transform: none;
    letter-spacing: -.03em;
  }

  .grid-2,
  .friendship-grid,
  .restoration-grid {
    grid-template-columns: 1fr;
  }

  .meeting-bill-copy,
  .meeting-bill-photo {
    grid-column: auto;
    grid-row: auto;
  }

  .idea-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .friendship-grid {
    align-items: start;
  }

  .section {
    padding: 100px 0;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: calc(100% - 28px);
  }

  .nav-shell {
    height: 70px;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-photo {
    background-position: 58% center;
  }

  .hero-content {
    padding: 140px 0 52px;
  }

  .hero h1 {
    font-size: clamp(45px, 15vw, 72px);
  }

  .hero-lead {
    font-size: 18px;
  }

  .section {
    padding: 78px 0;
  }

  .section-copy h2,
  .section-heading h2,
  .friendship h2,
  .remains h2 {
    font-size: 43px;
  }

  .idea-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .idea-card {
    min-height: auto;
  }

  .idea-card h3 {
    margin-top: 30px;
  }

  .journey {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 28px 0;
  }

  .journey-year {
    font-size: 18px;
  }

  .manifesto {
    padding: 78px 0;
  }

  .manifesto blockquote {
    font-size: clamp(50px, 17vw, 82px);
  }

  .remains {
    padding: 105px 0;
  }

  .restoration {
    padding: 84px 0;
  }

  .footer-inner {
    display: block;
  }

  .footer-signoff {
    text-align: left;
    margin-top: 38px;
  }

  .gallery-modal {
    padding: 12px;
  }

  .gallery-dialog {
    gap: 10px;
  }

  .gallery-stage {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 6px;
  }

  .gallery-nav {
    width: 42px;
    height: 42px;
  }

  .gallery-image {
    max-height: calc(100svh - 170px);
  }
}
