:root {
  color-scheme: light;
  --ink: #102536;
  --navy: #07527d;
  --river: #008cdb;
  --red: #bc2d35;
  --mist: #edf6fb;
  --line: #c8dbe7;
  --paper: #ffffff;
  --shadow: 0 24px 70px rgba(5, 55, 86, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 140, 219, 0.12), transparent 31rem),
    linear-gradient(180deg, #fff 0%, #fff 72%, var(--mist) 100%);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: block;
  width: clamp(220px, 26vw, 310px);
  text-decoration: none;
}

.brand img { width: 100%; height: auto; display: block; }

.proposal-label {
  display: block;
  margin-top: 5px;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.proposal-label--flag {
  margin: 11px 0 0;
}

.contact-link {
  color: var(--navy);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 112px);
  padding: 48px 0 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
}

.hero-copy { max-width: 650px; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.05;
}

h1,
.hero h2 {
  max-width: 13ch;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  letter-spacing: -0.045em;
}

.lead {
  max-width: 61ch;
  margin: 22px 0 0;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
}

.divider {
  width: min(180px, 35%);
  height: 5px;
  margin: 32px 0;
  border-radius: 99px;
  background: var(--river);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-button,
.email-button {
  min-height: 64px;
  padding: 11px 22px;
  border: 2px solid var(--navy);
  border-radius: 4px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.25;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 10px 24px rgba(7, 82, 125, 0.22);
}

.email-button {
  color: var(--navy);
  background: #fff;
}

.primary-button span,
.email-button span {
  font-size: 1rem;
  font-weight: 800;
}

.primary-button span + span,
.email-button span + span {
  margin-top: 3px;
}

.primary-button:hover,
.email-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(7, 82, 125, 0.2);
}

.primary-button:focus-visible,
.email-button:focus-visible,
.contact-link:focus-visible {
  outline: 3px solid var(--river);
  outline-offset: 4px;
}

.print-gallery {
  margin: 0;
  width: 90%;
  justify-self: end;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.gallery-image {
  overflow: hidden;
  background: var(--mist);
}

.gallery-image-main {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.gallery-image-detail { aspect-ratio: 3 / 4; }

.gallery-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-image-main img { object-position: center 46%; }
.gallery-image-detail img { object-position: center 42%; }
.gallery-image-poster img { object-fit: contain; object-position: center; background: #fff; }

.print-gallery figcaption {
  grid-column: 1 / -1;
  padding: 4px 2px 1px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #44616f;
  font-size: 0.86rem;
  font-weight: 700;
}

.flag-section {
  margin: 10px 0 72px;
  padding: clamp(28px, 5vw, 52px);
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(360px, 1.28fr);
  align-items: center;
  gap: clamp(34px, 6vw, 76px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
}

.flag-copy h2 {
  max-width: 12ch;
  font-size: clamp(2rem, 3.6vw, 3.5rem);
}

.flag-copy h2 + h2 {
  margin: 18px 0 0;
}

.unity-flag { margin: 0; }

.unity-flag img {
  width: 100%;
  height: auto;
  display: block;
}

.unity-flag figcaption {
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #44616f;
  font-size: 0.86rem;
  font-weight: 700;
}

.about {
  margin: 24px 0 72px;
  padding: clamp(34px, 6vw, 64px);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(36px, 7vw, 88px);
  background: var(--navy);
  color: #fff;
}

.about h2 {
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
}

.about h2 + h2 {
  margin-top: 20px;
}

.section-number {
  margin: 0 0 12px;
  color: #69cdfc;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.about-columns {
  display: grid;
  gap: 22px;
  align-content: center;
  font-size: 1.08rem;
}

.about-columns p { margin: 0; }

footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 28px;
  color: #395361;
  font-size: 0.9rem;
}

footer div,
.footer-meta {
  display: flex;
  flex-direction: column;
  font-weight: 600;
}

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

.legal-link {
  margin-top: 8px;
  color: var(--navy);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.project-domain {
  margin-top: 7px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.bitkali-brand {
  width: 92px;
  max-width: 92px;
  flex: 0 0 auto;
  margin: 7px 0 3px auto;
  display: block;
}

.bitkali-brand img {
  width: 100%;
  max-width: 92px;
  height: auto;
  display: block;
}

.legal-intro {
  padding: 54px 0 42px;
  border-bottom: 1px solid var(--line);
}

.legal-intro h1 {
  max-width: 16ch;
  font-size: clamp(2.6rem, 5vw, 5rem);
}

.legal-subtitle {
  margin: 18px 0 0;
  color: var(--navy);
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  font-weight: 700;
}

.legal-status {
  max-width: 82ch;
  margin: 28px 0 0;
  padding: 18px 20px;
  border-left: 6px solid var(--river);
  background: var(--mist);
  font-weight: 650;
}

.legal-block {
  padding: 50px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 6vw, 74px);
  border-bottom: 1px solid var(--line);
}

.legal-column h2 {
  color: var(--navy);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.2;
}

.legal-column h3 {
  margin: 28px 0 8px;
  color: var(--navy);
  font-size: 1.05rem;
}

.legal-column p { margin: 16px 0 0; }

.legal-data { margin: 22px 0 0; }

.legal-data div {
  padding: 11px 0;
  display: grid;
  grid-template-columns: minmax(150px, .85fr) 1.15fr;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.legal-data dt { font-weight: 800; }
.legal-data dd { margin: 0; }

.completion-note {
  padding: 16px 18px;
  background: #fff6df;
  border-left: 5px solid #e6ad2f;
}

.legal-updated {
  margin: 30px 0 70px;
  color: #526b78;
  font-size: .9rem;
  font-weight: 700;
}

@media (max-width: 850px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 32px;
  }

  .hero-copy { max-width: none; }
  .print-gallery { width: min(620px, 94%); margin-inline: auto; }
  .flag-section { grid-template-columns: 1fr; }
  .flag-copy h2 { max-width: 15ch; }
  .about { grid-template-columns: 1fr; }
  .legal-block { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header,
  main,
  footer { width: min(100% - 28px, 1180px); }

  .site-header { align-items: flex-start; }
  .contact-link { margin-top: 9px; font-size: 0.88rem; }
  .brand { width: 205px; }
  .hero { padding-bottom: 58px; gap: 54px; }
  .actions { flex-direction: column; }
  .primary-button, .email-button { width: 100%; }
  .print-gallery { width: 100%; padding: 9px; gap: 9px; }
  .print-gallery figcaption { flex-direction: column; gap: 0; }
  .flag-section { margin-bottom: 50px; padding: 24px 18px; }
  .unity-flag figcaption { flex-direction: column; gap: 2px; }
  .about { margin-bottom: 50px; }
  footer { flex-direction: column; }
  .footer-meta { text-align: left; }
  .bitkali-brand { margin-left: 0; }
  .legal-data div { grid-template-columns: 1fr; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .primary-button, .email-button { transition: none; }
}
