:root {
  --bg: #f5f1ea;
  --text: #111111;
  --muted: rgba(17, 17, 17, 0.62);
  --line: rgba(17, 17, 17, 0.12);
  --hero-tint: rgba(7, 7, 7, 0.68);
  --max-width: 1640px;
  --transition: 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(136, 111, 88, 0.12), transparent 28%),
    linear-gradient(180deg, #f7f2eb 0%, var(--bg) 100%);
}

.lang-switch {
  position: fixed;
  top: 1.6rem;
  right: 1.6rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.95rem;
  color: #f4efe8;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lang-switch span {
  opacity: 0.5;
}

.lang-switch a[aria-current="page"] {
  opacity: 1;
}

.lang-switch a:not([aria-current="page"]) {
  opacity: 0.7;
}

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

figure {
  margin: 0;
}

p,
blockquote {
  margin: 0;
  max-width: 65ch;
  line-height: 1.8;
  font-size: 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.04em;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: opacity 220ms ease;
}

a:hover {
  opacity: 0.68;
}

.page-shell {
  width: min(calc(100% - 4.5rem), var(--max-width));
  margin: 0 auto;
}

.hero-cover,
.section-grid,
.timeline,
.results,
.site-footer,
.split-feature,
.quote-section,
.closing-frame {
  padding: 16vh 0;
}

.hero-cover {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(2.25rem, calc((100vw - var(--max-width)) / 2 + 2.25rem));
  padding-right: max(2.25rem, calc((100vw - var(--max-width)) / 2 + 2.25rem));
}

.hero-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.78) 26%, rgba(0, 0, 0, 0.28) 50%, rgba(0, 0, 0, 0.02) 66%),
    url("assets/kokoskov-hero.jpg") center right / cover no-repeat;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 34%, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.26));
  z-index: -1;
}

.hero-content {
  width: min(100%, 760px);
  color: #f4efe8;
  display: grid;
  gap: 1.5rem;
  padding: 0 0 0 0.25rem;
}

.eyebrow,
.section-label,
.timeline-year,
.results-grid span,
.site-footer p:last-child,
.hero-meta {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
}

.section-label,
.timeline-year,
.site-footer p:last-child {
  color: var(--muted);
}

.hero-cover .eyebrow,
.hero-meta {
  color: rgba(244, 239, 232, 0.74);
}

.hero-cover h1 {
  max-width: 8ch;
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 0.92;
}

.hero-lead {
  max-width: 18ch;
  font-size: clamp(1.35rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
}

.hero-copy {
  max-width: 46ch;
  color: rgba(244, 239, 232, 0.84);
}

.hero-meta {
  padding-top: 0.9rem;
}

.section-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2rem 7vw;
  align-items: start;
}

.section-body {
  display: grid;
  gap: 1.6rem;
}

.section-body.longform {
  max-width: 78ch;
  row-gap: 1.5rem;
}

.section-body.longform > .large-text {
  max-width: 24ch;
}

.section-body.longform > p {
  max-width: 72ch;
}

.large-text {
  font-size: clamp(1.7rem, 3vw, 2.9rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  max-width: 22ch;
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.95fr);
  gap: 7vw;
  align-items: start;
}

.split-feature.reverse {
  grid-template-columns: minmax(420px, 0.95fr) minmax(0, 1.1fr);
}

.split-copy {
  display: grid;
  gap: 1.6rem;
}

.split-copy h2 {
  font-size: clamp(2.1rem, 4.4vw, 4.6rem);
  line-height: 1.03;
  max-width: 14ch;
}

.split-copy.longform-copy {
  align-content: start;
}

.split-copy.longform-copy p:not(.section-label) {
  max-width: 72ch;
}

.split-image img {
  min-height: 700px;
}

.portrait-emphasis img {
  object-position: center top;
}

.timeline-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.4rem 5rem;
  margin-top: 2.5rem;
}

.timeline-list.extended {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline-list article {
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.85rem;
}

.timeline-list h3 {
  font-size: 1.5rem;
}

.principles {
  display: grid;
  gap: 1.4rem;
}

.quote-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quote-label {
  display: block;
  width: fit-content;
  margin: 0 auto 3.5rem;
  text-align: center;
  color: var(--text);
  font-size: clamp(1.4rem, 2.1vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: none;
}

.quote-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.2rem 2.75rem;
}

.quote-stack blockquote {
  height: 100%;
  padding: 1.35rem 1.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(17, 17, 17, 0.08);
  font-size: clamp(1.05rem, 1.55vw, 1.45rem);
  line-height: 1.45;
  letter-spacing: -0.04em;
  max-width: none;
  border-radius: 0.35rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.4rem 4rem;
  margin-top: 2.5rem;
}

.results-grid p {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.6rem;
}

.results-grid span {
  line-height: 1.4;
}

.quotes-list {
  gap: 2.4rem;
}

.quotes-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 4rem;
}

.quotes-list span {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-weight: 500;
}

.site-footer {
  display: grid;
  gap: 1rem;
}

.recommendations {
  max-width: none;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.closing-frame img {
  height: min(82vh, 900px);
  object-position: center;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity var(--transition),
    transform var(--transition);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .quote-stack,
  .quotes-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .section-grid,
  .split-feature,
  .split-feature.reverse,
  .results-grid,
  .timeline-list,
  .timeline-list.extended {
    grid-template-columns: 1fr;
  }

  .hero-cover,
  .section-grid,
  .timeline,
  .results,
  .site-footer,
  .split-feature,
  .quote-section,
  .closing-frame {
    padding: 14vh 0;
  }

  .page-shell {
    width: min(calc(100% - 2rem), var(--max-width));
  }

  .hero-cover {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero-cover::before {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.7) 44%, rgba(0, 0, 0, 0.86) 100%),
      url("assets/kokoskov-hero.jpg") center right / cover no-repeat;
  }

  .split-image img,
  .closing-frame img {
    min-height: auto;
    height: auto;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 1.5rem), var(--max-width));
  }

  .hero-cover {
    min-height: 88vh;
  }

  .hero-content {
    width: 100%;
    gap: 1rem;
  }

  .hero-lead {
    max-width: 16ch;
  }

  .quote-stack blockquote {
    max-width: none;
  }
}
