:root {
  --ink: #173444;
  --ink-2: #244b59;
  --soft: #52666c;
  --muted: #6d7c7f;
  --gold: #9a7630;
  --gold-2: #c9a25a;
  --cream: #f3efe5;
  --cream-2: #e8e2d4;
  --paper: #fffdf8;
  --line: #d7cfbf;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1240px;
  --pad: clamp(20px, 4vw, 40px);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

::selection { background: var(--gold-2); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  left: 1rem;
  top: .75rem;
  transform: translateY(-220%);
  background: var(--ink);
  color: #fff;
  padding: .7rem 1rem;
  font-size: .8rem;
  font-weight: 700;
  transition: transform .2s ease;
}
.skip-link:focus { transform: none; }

.container {
  width: min(100% - (var(--pad) * 2), var(--max));
  margin-inline: auto;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 239, 229, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--gold);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.18;
}
.brand__mark { width: 36px; height: 36px; flex: none; }

.nav__links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.9rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--soft);
}
.nav__links a {
  position: relative;
  padding-block: .35rem;
  transition: color .2s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta {
  background: var(--ink);
  color: #fff;
  padding: .82rem 1.1rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .02em;
  transition: background .2s ease, transform .2s ease;
}
.nav__cta:hover { background: var(--ink-2); transform: translateY(-1px); }

/* ---------- shared ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow > span {
  width: 2rem;
  height: 1px;
  background: var(--gold);
  flex: none;
}
.eyebrow--center { justify-content: center; }

.lead {
  max-width: 37rem;
  color: var(--soft);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.75;
  text-wrap: pretty;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}
.actions--center { justify-content: center; }

.btn {
  min-height: 3.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.2rem;
  border: 1px solid transparent;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .01em;
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.btn svg { width: 1.05rem; height: 1.05rem; flex: none; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--ink-2); transform: translateY(-2px); }
.btn--ghost { border-color: #a7a294; color: var(--ink-2); }
.btn--ghost:hover { background: rgba(255, 255, 255, .45); transform: translateY(-2px); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.hero__pattern {
  position: absolute;
  inset: 0 0 0 52%;
  background:
    linear-gradient(90deg, var(--cream) 0%, rgba(243, 239, 229, .12) 34%, rgba(243, 239, 229, 0) 70%),
    url("assets/mavi.webp") center / cover;
  opacity: .96;
}
.hero__pattern::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(58% 58% at 68% 44%, rgba(255, 248, 230, .16), transparent 70%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  min-height: min(calc(100svh - 78px), 880px);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.hero__copy { max-width: 42rem; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.05rem, 6.2vw, 6.4rem);
  line-height: .88;
  letter-spacing: -.058em;
  font-weight: 500;
  margin: 1.25rem 0 1.55rem;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}
.hero .lead { max-width: 38rem; }

.facts {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.8rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.facts div { display: grid; gap: .15rem; }
.facts dt {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gold);
}
.facts dd {
  font-size: .67rem;
  color: var(--muted);
  letter-spacing: .02em;
}

.hero__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(440px, 52vw, 620px);
  isolation: isolate;
}
.hero__card {
  position: absolute;
  width: min(74%, 350px);
  aspect-ratio: 156 / 202;
  padding: 9px;
  background: var(--paper);
  box-shadow: -1.2rem 1.8rem 4rem rgba(14, 36, 49, .38);
}
.hero__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__card--back {
  transform: rotate(-8deg) translate(-9%, 4%);
  opacity: .92;
  filter: saturate(.92);
}
.hero__card--front { transform: rotate(2.6deg); z-index: 2; }
.hero__caption {
  position: absolute;
  bottom: .25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: rgba(255, 255, 255, .88);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__caption span {
  width: 1.6rem;
  height: 1px;
  background: var(--gold-2);
}

/* ---------- marquee ---------- */

.marquee {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  padding: .85rem 0;
}
.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  display: inline-flex;
  align-items: center;
  font-size: .64rem;
  font-weight: 650;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .82;
}
.marquee span::before {
  content: "◆";
  color: var(--gold-2);
  font-size: .48rem;
  margin-inline: 2.2rem;
  opacity: .9;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section { padding-block: clamp(4.2rem, 8.5vw, 7.5rem); }
.section--paper { background: var(--paper); }

.section-head {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: end;
  gap: clamp(2rem, 6vw, 6rem);
  margin-bottom: clamp(2.5rem, 4vw, 3.8rem);
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.1vw, 3.9rem);
  line-height: .99;
  letter-spacing: -.045em;
  font-weight: 500;
  margin-top: 1.15rem;
  text-wrap: balance;
}
.section-head h2 em,
.final h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}
.section-head__side p {
  color: var(--soft);
  line-height: 1.8;
  font-size: .98rem;
  max-width: 35rem;
  text-wrap: pretty;
}
.series-stats {
  display: flex;
  gap: 2.4rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.series-stats div { display: grid; gap: .1rem; }
.series-stats strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}
.series-stats span {
  font-size: .63rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- cards ---------- */

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.4rem;
}
.card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  color: var(--ink);
}
.card__img {
  display: block;
  aspect-ratio: 156 / 202;
  overflow: hidden;
  background: var(--cream-2);
  box-shadow: 0 22px 45px -30px rgba(23, 52, 68, .65);
  transition: transform .45s cubic-bezier(.22, .8, .25, 1), box-shadow .45s ease;
  position: relative;
}
.card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  pointer-events: none;
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s cubic-bezier(.22, .8, .25, 1);
}
.card:hover .card__img {
  transform: translateY(-5px);
  box-shadow: 0 30px 55px -30px rgba(23, 52, 68, .75);
}
.card:hover .card__img img { transform: scale(1.025); }

.card__meta { display: flex; align-items: baseline; gap: .5rem; }
.card__no {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--gold);
}
.card__topic {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.2;
}
.card__vecize {
  font-size: .77rem;
  line-height: 1.5;
  color: var(--soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mini-note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--muted);
}

/* ---------- features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.feature {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.feature > span {
  font-family: var(--serif);
  font-size: .9rem;
  color: var(--gold);
}
.feature h3 {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  font-weight: 600;
  line-height: 1.2;
  margin-top: .55rem;
}
.feature p {
  margin-top: .55rem;
  font-size: .88rem;
  line-height: 1.7;
  color: var(--soft);
}

/* ---------- final ---------- */

.final {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(5rem, 10vw, 9rem);
  background: var(--cream);
}
.final::before {
  content: "";
  position: absolute;
  width: 46rem;
  height: 46rem;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201, 162, 90, .18), transparent 66%);
  pointer-events: none;
}
.final .container { position: relative; }
.final h2 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.4vw, 5rem);
  line-height: .95;
  letter-spacing: -.05em;
  font-weight: 500;
  margin-top: 1.1rem;
}
.final p:not(.eyebrow) {
  margin-top: 1rem;
  color: var(--soft);
  font-size: .9rem;
  letter-spacing: .02em;
}

/* ---------- footer ---------- */

.footer {
  background: var(--ink);
  color: rgba(243, 239, 229, .7);
  padding: 2.2rem 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.brand--footer { color: var(--gold-2); }
.footer__tag,
.footer__copy {
  font-size: .7rem;
  letter-spacing: .04em;
}
.footer__copy { color: rgba(243, 239, 229, .5); }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 2.2rem;
    padding-block: clamp(2.5rem, 6vw, 4rem) 0;
  }
  .hero__pattern { display: none; }
  .hero h1 { font-size: clamp(2.85rem, 9.2vw, 5rem); }
  .hero__copy { max-width: 46rem; }
  .hero__stage {
    min-height: 0;
    height: min(124vw, 560px);
    margin-inline: calc(50% - 50vw);
    padding-inline: var(--pad);
    background:
      linear-gradient(180deg, rgba(23, 52, 68, .1), rgba(23, 52, 68, .38)),
      url("assets/mavi.webp") center / cover;
  }
  .hero__card { width: min(64vw, 300px); }
  .hero__caption { bottom: 1.4rem; }

  .section-head { grid-template-columns: 1fr; align-items: start; gap: 1.5rem; }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav { gap: 1rem; }
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .footer__inner { justify-content: center; text-align: center; }
  .features { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 640px) {
  .nav { height: 68px; }
  .brand__mark { width: 31px; height: 31px; }
  .brand { font-size: .62rem; }
  .nav__cta { padding: .72rem .9rem; font-size: .7rem; }

  .hero h1 { font-size: clamp(2.65rem, 12.4vw, 3.8rem); }
  .hero .lead { font-size: .96rem; }
  .facts { gap: 1.4rem; }
  .facts dt { font-size: 1.25rem; }
  .hero__stage { height: min(132vw, 520px); }
  .hero__card { width: min(68vw, 290px); }

  .actions .btn { flex: 1 1 auto; }
  .section-head h2 { font-size: clamp(1.95rem, 8.2vw, 2.7rem); }
  .series-stats { gap: 1.6rem; }
  .mini-grid { gap: 1.6rem 1rem; }
  .card__topic { font-size: .95rem; }
  .card__vecize { font-size: .72rem; }
  .mini-note { font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .card__img,
  .card__img img,
  .btn,
  .nav__cta { transition: none; }
}
