:root {
  --ink: #171714;
  --muted: #66675f;
  --paper: #f5f1e8;
  --paper-2: #e8dfcf;
  --field: #7d8466;
  --field-dark: #2d352a;
  --brass: #b8833a;
  --coal: #11130f;
  --white: #fffaf0;
  --line: rgba(23, 23, 20, 0.14);
  --shadow: 0 22px 80px rgba(17, 19, 15, 0.18);
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(245, 241, 232, 0.96);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border: 1px solid rgba(255, 250, 240, 0.55);
  border-radius: 50%;
}

.site-header.is-scrolled .brand img,
.site-header.is-open .brand img {
  border-color: var(--line);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1;
}

.brand small {
  max-width: 280px;
  margin-top: 4px;
  font-size: 12px;
  color: currentColor;
  opacity: 0.76;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.nav a {
  padding: 10px 12px;
  font-size: 14px;
  color: currentColor;
  opacity: 0.86;
}

.nav a:hover {
  opacity: 1;
}

.nav a.is-active {
  color: var(--brass);
  opacity: 1;
}

.nav .nav-cta {
  border: 1px solid currentColor;
  border-radius: 4px;
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: transparent;
  color: currentColor;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--coal);
}

.hero-media,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.04);
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(17, 19, 15, 0.92) 0%, rgba(17, 19, 15, 0.62) 43%, rgba(17, 19, 15, 0.16) 100%),
    linear-gradient(0deg, rgba(17, 19, 15, 0.88) 0%, rgba(17, 19, 15, 0.05) 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin: 0 0 clamp(110px, 16vh, 180px) clamp(18px, 7vw, 96px);
}

.eyebrow,
.section-label,
.card-kicker {
  margin: 0;
  color: var(--brass);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 22px;
  max-width: 820px;
  font-size: clamp(42px, 6.6vw, 78px);
  line-height: 0.96;
}

.hero-copy {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 250, 240, 0.86);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 4px;
  font-weight: 700;
}

.button-primary {
  background: var(--brass);
  color: var(--coal);
}

.button-ghost {
  border: 1px solid rgba(255, 250, 240, 0.7);
  color: var(--white);
}

.hero-panel {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 5vw, 64px);
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  width: min(660px, calc(100% - 36px));
  border: 1px solid rgba(255, 250, 240, 0.24);
  background: rgba(17, 19, 15, 0.72);
  backdrop-filter: blur(14px);
}

.hero-panel div {
  padding: 18px;
  border-left: 1px solid rgba(255, 250, 240, 0.18);
}

.hero-panel div:first-child {
  border-left: 0;
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel strong {
  font-size: clamp(22px, 3vw, 32px);
}

.hero-panel span {
  margin-top: 6px;
  color: rgba(255, 250, 240, 0.72);
  font-size: 13px;
  line-height: 1.35;
}

.section-shell {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.intro-band {
  padding: clamp(64px, 9vw, 112px) 0;
  background: var(--paper-2);
}

.split,
.events-layout,
.join-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: start;
}

h2 {
  margin: 12px 0 0;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1;
}

h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.08;
}

p {
  line-height: 1.65;
}

.lead-stack p {
  margin: 0 0 18px;
  color: #3e4039;
  font-size: clamp(17px, 1.8vw, 21px);
}

.about-title {
  display: grid;
  align-content: start;
  gap: 18px;
}

.museum-mark {
  width: clamp(120px, 18vw, 210px);
  aspect-ratio: 1;
  padding: 10px;
  border: 1px solid rgba(23, 23, 20, 0.18);
  background: linear-gradient(145deg, #fff8ec, rgba(255, 248, 236, 0.42));
  box-shadow: 0 18px 46px rgba(17, 19, 15, 0.14);
}

.museum-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(23, 23, 20, 0.12);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: clamp(56px, 8vw, 100px) 0;
}

.pillars article {
  min-height: 260px;
  padding: clamp(22px, 4vw, 38px);
  background: #fff8ec;
  border: 1px solid var(--line);
}

.pillars span {
  display: block;
  margin-bottom: 48px;
  color: var(--brass);
  font-weight: 700;
}

.pillars p,
.section-heading p,
.vehicle-card p,
.events-copy p,
.event-board p,
.join-cards p,
.manifesto p,
.catalog-strip p,
.experience-grid p,
.workshop-copy p,
.contacts p {
  color: var(--muted);
}

.manifesto {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 18px;
  padding: clamp(56px, 8vw, 100px) 0;
}

.manifesto-card {
  min-height: 520px;
  padding: clamp(28px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(17, 19, 15, 0.06), rgba(17, 19, 15, 0.82)),
    url("assets/intro.jpg") center / cover;
  color: var(--white);
}

.manifesto-card h2 {
  max-width: 720px;
}

.manifesto-card p:not(.section-label) {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 250, 240, 0.8);
  font-size: 18px;
}

.manifesto-list {
  display: grid;
  gap: 12px;
}

.manifesto-list article {
  padding: 26px;
  border: 1px solid var(--line);
  background: #fff8ec;
}

.manifesto-list span {
  display: block;
  margin-bottom: 38px;
  color: var(--brass);
  font-weight: 700;
}

.collection,
.gallery {
  padding: clamp(54px, 8vw, 96px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 32px;
}

.section-heading h2 {
  grid-column: 1;
}

.section-heading .section-label {
  grid-column: 1;
}

.section-heading p:not(.section-label) {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
}

.section-heading.compact {
  display: block;
  max-width: 680px;
}

.collection-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.875fr 0.875fr;
  gap: 18px;
}

.vehicle-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #fff8ec;
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(17, 19, 15, 0.05);
}

.feature-card {
  grid-row: span 2;
}

.vehicle-card .image-button {
  aspect-ratio: 4 / 3;
}

.feature-card .image-button {
  aspect-ratio: 5 / 4;
}

.vehicle-card div {
  padding: 22px;
}

.vehicle-card h3 {
  margin-top: 8px;
}

.vehicle-card p:last-child {
  margin-bottom: 0;
}

.spec-list {
  display: grid;
  gap: 0;
  margin: 20px 0 0;
  border: 1px solid var(--line);
}

.spec-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.spec-list div:first-child {
  border-top: 0;
}

.spec-list dt,
.spec-list dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.spec-list dt {
  color: var(--brass);
  font-weight: 700;
  text-transform: uppercase;
}

.spec-list dd {
  color: #34362f;
}

.image-button {
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: #d6cfbf;
  cursor: zoom-in;
  overflow: hidden;
}

.image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.image-button:hover img {
  transform: scale(1.025);
}

.catalog-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 18px;
  background: var(--line);
  border: 1px solid var(--line);
}

.catalog-strip article {
  min-height: 210px;
  padding: 26px;
  background: var(--paper-2);
}

.catalog-strip h3 {
  max-width: 280px;
}

.experience {
  padding: clamp(64px, 9vw, 118px) 0;
  background: #fff8ec;
}

.history-proof {
  padding: clamp(66px, 9vw, 118px) 0;
  background:
    linear-gradient(90deg, rgba(17, 19, 15, 0.96), rgba(17, 19, 15, 0.82)),
    url("assets/leopolis-01.jpg") center / cover;
  color: var(--white);
}

.history-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: start;
}

.history-copy {
  position: sticky;
  top: 104px;
}

.history-copy p:not(.section-label) {
  color: rgba(255, 250, 240, 0.74);
  font-size: 18px;
}

.history-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.history-kpis span {
  padding: 8px 11px;
  border: 1px solid rgba(184, 131, 58, 0.46);
  background: rgba(17, 19, 15, 0.36);
  color: rgba(255, 250, 240, 0.88);
  font-size: 13px;
  font-weight: 700;
}

.source-cards {
  display: grid;
  gap: 12px;
}

.source-cards article {
  padding: 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, 0.16);
  background: rgba(255, 250, 240, 0.07);
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.source-cards article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--brass);
  opacity: 0.72;
}

.source-cards article:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 131, 58, 0.5);
  background: rgba(255, 250, 240, 0.1);
}

.source-cards span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--brass);
  font-size: 13px;
  font-weight: 700;
}

.source-cards p {
  color: rgba(255, 250, 240, 0.74);
}

.source-cards a {
  display: inline-flex;
  margin-top: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--brass);
  color: var(--white);
  font-weight: 700;
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: start;
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.experience-grid article {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 12px 38px rgba(17, 19, 15, 0.06);
}

.experience-grid h3 {
  margin-bottom: 48px;
}

.events {
  padding: clamp(64px, 9vw, 116px) 0;
  background: var(--field-dark);
  color: var(--white);
}

.events-copy p {
  color: rgba(255, 250, 240, 0.74);
  font-size: 18px;
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--brass);
  color: var(--white);
  font-weight: 700;
}

.event-board {
  display: grid;
  gap: 12px;
}

.event-board article {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(255, 250, 240, 0.16);
  background: rgba(255, 250, 240, 0.06);
}

.timeline-board {
  position: relative;
}

.timeline-board::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(184, 131, 58, 0.8), transparent);
}

.timeline-board article {
  margin-left: 18px;
}

.timeline-board article::before {
  content: "";
  position: absolute;
  top: 28px;
  left: -24px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--brass);
  border-radius: 50%;
  background: var(--field-dark);
}

.event-board time {
  color: var(--brass);
  font-size: 13px;
  font-weight: 700;
}

.event-board h3 {
  margin-top: 8px;
}

.event-board p {
  margin-bottom: 0;
  color: rgba(255, 250, 240, 0.72);
}

.workshop {
  padding: clamp(64px, 9vw, 116px) 0;
  background: var(--coal);
  color: var(--white);
}

.workshop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: center;
}

.workshop-photo {
  min-height: 560px;
  overflow: hidden;
}

.workshop-photo img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
}

.workshop-copy p {
  color: rgba(255, 250, 240, 0.76);
  font-size: 18px;
}

.workshop-copy p:last-child {
  margin-bottom: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  grid-auto-rows: 230px;
  gap: 14px;
}

.gallery-grid .tall {
  grid-row: span 2;
}

.gallery-grid .wide {
  grid-column: span 2;
}

.join {
  padding: clamp(64px, 9vw, 112px) 0;
  background: var(--paper-2);
}

.join-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.join-cards article {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.join-lead {
  max-width: 560px;
  color: #4a4c43;
  font-size: 18px;
}

.contacts {
  padding: clamp(64px, 8vw, 104px) 0;
  background: var(--coal);
  color: var(--white);
}

.contacts p {
  color: rgba(255, 250, 240, 0.74);
}

address {
  display: grid;
  gap: 14px;
  font-style: normal;
}

address a,
address span {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 250, 240, 0.18);
  color: rgba(255, 250, 240, 0.86);
}

address a:hover {
  color: var(--brass);
}

.footer {
  padding: 22px 0;
  background: #090a08;
  color: rgba(255, 250, 240, 0.66);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

.lightbox {
  width: min(1040px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
}

.lightbox::backdrop {
  background: rgba(9, 10, 8, 0.86);
}

.lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: var(--coal);
  box-shadow: var(--shadow);
}

.lightbox p {
  margin: 12px 0 0;
  color: rgba(255, 250, 240, 0.82);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 250, 240, 0.45);
  border-radius: 50%;
  background: rgba(17, 19, 15, 0.7);
  color: var(--white);
  cursor: pointer;
}

.lightbox-close::before,
.lightbox-close::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 12px;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.lightbox-close::before {
  transform: rotate(45deg);
}

.lightbox-close::after {
  transform: rotate(-45deg);
}

@media (max-width: 920px) {
  .site-header {
    min-height: 66px;
  }

  .brand small {
    max-width: 210px;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 66px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: rgba(245, 241, 232, 0.98);
    border: 1px solid var(--line);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .nav {
    display: flex;
  }

  .nav a {
    padding: 14px;
  }

  .hero {
    min-height: 96svh;
  }

  .hero-content {
    margin: 0 auto 250px;
  }

  .hero-panel {
    left: 18px;
    right: 18px;
    grid-template-columns: 1fr;
    width: auto;
  }

  .hero-panel div {
    border-left: 0;
    border-top: 1px solid rgba(255, 250, 240, 0.18);
  }

  .hero-panel div:first-child {
    border-top: 0;
  }

  .split,
  .events-layout,
  .join-layout,
  .contact-layout,
  .section-heading,
  .manifesto,
  .experience-layout,
  .workshop-layout,
  .history-layout {
    grid-template-columns: 1fr;
  }

  .history-copy {
    position: static;
  }

  .section-heading p:not(.section-label),
  .section-heading h2,
  .section-heading .section-label {
    grid-column: auto;
    grid-row: auto;
  }

  .pillars,
  .collection-grid,
  .join-cards,
  .catalog-strip,
  .experience-grid {
    grid-template-columns: 1fr;
  }

  .manifesto-card,
  .workshop-photo,
  .workshop-photo img {
    min-height: 420px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid .tall,
  .gallery-grid .wide {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 620px) {
  .brand small {
    display: none;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin-bottom: 330px;
  }

  .hero .eyebrow {
    display: none;
  }

  .hero h1 {
    margin-top: 0;
    font-size: clamp(32px, 9.7vw, 39px);
    line-height: 1;
  }

  .hero-copy {
    font-size: 17px;
    line-height: 1.48;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
  }

  .button {
    width: 100%;
    min-height: 44px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .spec-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-inner {
    flex-direction: column;
  }
}
