:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --bg-silver: #eceef1;
  --text: #2c3138;
  --muted: #6a717c;
  --line: #d8dce2;
  --silver: #c5cbd3;
  --accent: #2f6fed;
  --accent-dark: #1d56c9;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(44, 49, 56, 0.06);
  --radius: 16px;
  --max: 1180px;
  --header: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

h1,
h2,
h3,
h4 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.logo-mark {
  width: 28px;
  height: 20px;
  border: 1.5px solid var(--text);
  border-radius: 3px 3px 5px 5px;
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 3px;
  bottom: 4px;
  background: var(--accent);
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  cursor: pointer;
}

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

.site-nav a {
  color: var(--text);
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
}

.hero {
  padding: 72px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38em;
}

.hero-visual {
  position: relative;
}

.hero-visual img,
.frame img,
.card img,
.split img,
.gallery img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-visual img {
  min-height: 420px;
  box-shadow: var(--shadow);
}

.caption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--bg-soft);
}

.section.tight {
  padding: 48px 0;
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 24px;
}

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

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

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

.card,
.stat,
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: none;
}

.card img {
  height: 190px;
  margin: -24px -24px 18px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.stat {
  background: var(--bg-silver);
  border: 0;
}

.stat b {
  display: block;
  font-size: 1.8rem;
  font-family: Georgia, serif;
  color: var(--accent);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split.reverse {
  direction: rtl;
}

.split.reverse > * {
  direction: ltr;
}

.split img {
  min-height: 340px;
  object-fit: cover;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--bg-soft);
  font-weight: 600;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline article {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.quote {
  font-family: Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.4;
  color: var(--text);
  max-width: 18em;
}

.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 22px;
  border: 1px solid transparent;
  font: inherit;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.form {
  display: grid;
  gap: 14px;
}

label {
  font-size: 0.88rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  background: var(--white);
  color: var(--text);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note,
.error,
.success {
  font-size: 0.92rem;
}

.error {
  color: #b42318;
  display: none;
}

.success {
  display: none;
  background: #eef6ff;
  border: 1px solid #c9ddff;
  color: var(--text);
  padding: 16px;
  border-radius: 12px;
}

.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--text);
}

.site-footer small {
  display: block;
  margin-top: 36px;
  color: var(--muted);
}

.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  display: none;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.cookie-bar.show {
  display: flex;
}

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

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: none;
}

.reveal.in {
  animation: rise 0.8s ease forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.list {
  padding-left: 18px;
}

.list li {
  margin-bottom: 8px;
}

.legal h2 {
  margin-top: 1.4em;
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .split.reverse,
  .grid-3,
  .grid-4,
  .footer-grid {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .hero-visual img,
  .split img {
    min-height: 260px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 22px;
    gap: 14px;
  }

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

  .cookie-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .wrap {
    width: min(var(--max), calc(100% - 28px));
  }

  .section {
    padding: 52px 0;
  }
}
