:root {
  --radius: 0.25rem;
  --background: oklch(0.995 0.002 240);
  --foreground: oklch(0.22 0.015 250);
  --muted-foreground: oklch(0.48 0.018 250);
  --border: oklch(0.89 0.008 245);
  --ring: oklch(0.59 0.19 244);
  --brand-blue: oklch(0.58 0.19 244);
  --brand-red: oklch(0.61 0.24 25);
  --paper: oklch(0.975 0.004 235);
  --ink-soft: oklch(0.42 0.018 250);
}

* {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

::selection {
  background: color-mix(in oklab, var(--brand-blue) 18%, transparent);
}

.page-container {
  width: min(100% - 2.5rem, 70rem);
  margin-inline: auto;
}

.hero-shell {
  position: relative;
  min-height: min(52rem, 96svh);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  display: grid;
  min-height: min(52rem, 96svh);
  align-content: center;
  padding-block: 4rem 5rem;
}

.hero-mark {
  position: absolute;
  right: -0.04em;
  bottom: -0.21em;
  z-index: -1;
  color: var(--paper);
  font-size: clamp(12rem, 32vw, 33rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: 0;
  user-select: none;
}

.brand-logo {
  display: block;
  object-fit: contain;
}

.brand-logo-hero {
  width: clamp(17rem, 38vw, 28rem);
  height: auto;
  margin-bottom: clamp(3rem, 8vh, 6rem);
}

.hero-copy {
  max-width: 48rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--brand-blue);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-label {
  border-left: 1px solid var(--border);
  padding-left: 1rem;
  color: var(--brand-red);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 45rem;
  margin-bottom: 1.5rem;
  font-size: clamp(2.65rem, 6.2vw, 5.5rem);
  font-weight: 520;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy > p {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.editorial-section {
  display: grid;
  grid-template-columns: minmax(3rem, 8rem) minmax(0, 43rem);
  gap: clamp(1rem, 6vw, 6rem);
  padding-block: clamp(5rem, 10vw, 8.5rem);
  border-bottom: 1px solid var(--border);
}

.section-number {
  margin: 0;
  padding-top: 0.45rem;
  color: var(--brand-blue);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.section-copy h2 {
  margin-bottom: 2rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 520;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-copy > p {
  margin-bottom: 1rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.75;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.35rem;
  border-bottom: 1px solid var(--brand-blue);
  padding-bottom: 0.3rem;
  color: var(--brand-blue);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.text-link svg,
.visit-link svg {
  flex: none;
  transition: transform 180ms ease;
}

.text-link:hover svg,
.visit-link:hover svg {
  transform: translate(2px, -2px);
}

.archive-stamp {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0.8rem 1.5rem;
  max-width: 31rem;
  margin-top: 3rem;
  border-top: 2px solid var(--brand-red);
  border-bottom: 1px solid var(--border);
  padding-block: 1.15rem;
}

.archive-name {
  color: var(--brand-red);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 760;
  line-height: 1;
}

.archive-status {
  color: var(--brand-red);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.archive-year {
  grid-column: 1 / -1;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.present-section {
  background: var(--paper);
}

.present-inner {
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

.present-kicker {
  margin-bottom: 1.25rem;
  color: var(--brand-blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.present-intro {
  max-width: 41rem;
  margin-bottom: 2.75rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.present-identity {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.present-name {
  margin-bottom: 0.35rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 560;
  line-height: 1;
}

.present-services {
  margin-bottom: 0;
  color: var(--muted-foreground);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.visit-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--foreground);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.visit-link:hover {
  background: var(--foreground);
  color: var(--background);
}

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 3.5rem;
}

.brand-logo-footer {
  width: 8rem;
  height: auto;
}

.footer-copy {
  color: var(--muted-foreground);
  text-align: right;
}

.footer-copy p {
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
  line-height: 1.5;
}

.text-link:focus-visible,
.visit-link:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 4px;
}

@media (max-width: 640px) {
  .page-container {
    width: min(100% - 2rem, 70rem);
  }

  .hero-shell,
  .hero-content {
    min-height: min(47rem, 92svh);
  }

  .hero-content {
    padding-block: 3rem 4rem;
  }

  .brand-logo-hero {
    width: min(17rem, 83vw);
    margin-bottom: 3.75rem;
  }

  .hero-meta {
    flex-wrap: wrap;
    row-gap: 0.65rem;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 3.5rem);
  }

  .editorial-section {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 0.75rem;
    padding-block: 4.5rem;
  }

  .section-copy h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
  }

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

  .archive-status,
  .archive-year {
    grid-column: 1;
  }

  .present-identity,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .visit-link {
    width: 100%;
  }

  .footer-copy {
    text-align: left;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
