:root {
  --obsidian: #08070a;
  --obsidian-2: #121016;
  --charcoal: #2a272f;
  --smoke: #6e6874;
  --cream: #f3ece3;
  --cream-dim: #cfc4b6;
  --ruby: #9b1b30;
  --ruby-glow: #c43b52;
  --violet: #5c2d78;
  --petal: #8b4aa8;
  --gold: #c9a227;
  --gold-soft: #e0c56a;
  --glass: rgba(255, 248, 240, 0.06);
  --line: rgba(201, 162, 39, 0.28);
  --serif: "Cormorant Garamond", "EB Garamond", "Times New Roman", serif;
  --body: "EB Garamond", "Cormorant Garamond", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(155, 27, 48, 0.18), transparent 50%),
    radial-gradient(900px 420px at 100% 0%, rgba(92, 45, 120, 0.22), transparent 45%),
    var(--obsidian);
  color: var(--cream);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280' viewBox='0 0 280 280'%3E%3Cpath fill='none' stroke='%23c9a227' stroke-width='0.7' d='M140 20c8 40 32 68 72 80-40 14-64 44-72 84-8-40-32-70-72-84 40-12 64-40 72-80z'/%3E%3Cpath fill='none' stroke='%238b4aa8' stroke-width='0.5' d='M40 200c20-18 44-26 70-24'/%3E%3Cpath fill='none' stroke='%239b1b30' stroke-width='0.5' d='M180 60c18 12 28 30 30 52'/%3E%3C/svg%3E");
  z-index: 0;
}

main,
.mast,
.foot,
.cookie {
  position: relative;
  z-index: 1;
}

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

a {
  color: var(--gold-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--cream);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: var(--obsidian);
  padding: 0.5rem 0.8rem;
  z-index: 20;
}

.skip:focus {
  top: 0.6rem;
}

.mast {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 7, 10, 0.96), rgba(18, 16, 22, 0.88));
  backdrop-filter: blur(10px);
}

.mast__bar {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.7rem;
  text-decoration: none;
  color: var(--cream);
}

.brand__mark {
  grid-row: 1 / span 2;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, var(--gold-soft), transparent 45%),
    radial-gradient(circle at 60% 70%, var(--ruby-glow), transparent 50%),
    radial-gradient(circle at 50% 50%, var(--violet), var(--obsidian));
  box-shadow: 0 0 0 1px var(--line), inset 0 0 12px rgba(201, 162, 39, 0.35);
}

.brand__name {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand__place {
  font-size: 0.82rem;
  color: var(--cream-dim);
  font-style: italic;
}

.nav__list {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 1.05rem;
}

.nav a[aria-current="page"] {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle__lines,
.nav-toggle__lines::before,
.nav-toggle__lines::after {
  display: block;
  width: 1.05rem;
  height: 1px;
  background: var(--cream);
  margin: 0 auto;
  position: relative;
}

.nav-toggle__lines::before,
.nav-toggle__lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__lines::before {
  top: -6px;
}

.nav-toggle__lines::after {
  top: 6px;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.issue-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.7rem;
  margin-bottom: 1.5rem;
}

.hero-quote {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.15;
  font-weight: 500;
  max-width: 22ch;
}

.hero-quote span {
  display: block;
  margin-top: 1rem;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--cream-dim);
  letter-spacing: 0;
}

.hero-plate {
  position: relative;
  margin: 2rem 0 2.5rem;
  border-radius: 1.4rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hero-plate img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.hero-plate figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(8, 7, 10, 0.72);
  padding: 0.4rem 0.7rem;
  font-size: 0.9rem;
  color: var(--cream-dim);
}

.ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0 0 3rem;
}

.ledger article {
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.ledger time,
.kicker {
  display: block;
  color: var(--petal);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.ledger h2,
.card h2,
.page-title {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.ledger h2 {
  font-size: 1.35rem;
}

.ledger a {
  color: inherit;
  text-decoration: none;
}

.ledger a:hover {
  color: var(--gold-soft);
}

.primary {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

.primary img {
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.prose p {
  margin: 0 0 1rem;
  color: var(--cream-dim);
}

.prose h1,
.prose h2,
.prose h3 {
  font-family: var(--serif);
  color: var(--cream);
}

.page-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  max-width: 22ch;
}

.price {
  color: var(--gold);
  font-style: italic;
}

.offer-grid,
.card-grid,
.team-grid {
  display: grid;
  gap: 1.4rem;
}

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

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

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

.card,
.glass {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    var(--obsidian-2);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card img,
.portrait {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  filter: saturate(0.8);
}

.portrait {
  height: 16rem;
}

.card__body,
.glass {
  padding: 1.2rem 1.25rem 1.4rem;
}

.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 3rem 0;
}

blockquote {
  margin: 0;
  padding: 1.5rem 1.4rem;
  border-left: 2px solid var(--ruby);
  background: rgba(155, 27, 48, 0.08);
  font-size: 1.25rem;
  font-style: italic;
}

blockquote footer {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  font-style: normal;
  color: var(--cream-dim);
}

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.05rem;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  transition: color 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.btn::before,
.btn::after {
  content: "";
  position: absolute;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50% 50% 50% 0;
  background: radial-gradient(circle at 30% 30%, var(--gold-soft), var(--ruby) 70%);
  opacity: 0;
  transform: scale(0.2) rotate(20deg);
  z-index: -1;
  pointer-events: none;
}

.btn::before {
  left: 12%;
  top: 50%;
}

.btn::after {
  right: 12%;
  top: 20%;
  background: radial-gradient(circle at 30% 30%, var(--petal), var(--violet) 75%);
}

.btn:hover,
.btn:focus-visible {
  color: var(--obsidian);
  background: rgba(201, 162, 39, 0.92);
  border-color: var(--gold-soft);
}

.btn:hover::before,
.btn:hover::after,
.btn:focus-visible::before,
.btn:focus-visible::after {
  animation: bloom 0.7s ease forwards;
}

@keyframes bloom {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(10deg);
  }
  45% {
    opacity: 0.9;
    transform: scale(1.4) rotate(40deg);
  }
  100% {
    opacity: 0;
    transform: scale(2.2) rotate(70deg);
  }
}

.btn--gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: var(--obsidian);
  border-color: transparent;
}

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.section-label {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.form {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 1rem;
}

input,
select,
textarea {
  font: inherit;
  color: var(--cream);
  background: rgba(8, 7, 10, 0.7);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.65rem 0.75rem;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

.field-error,
.form-status {
  color: var(--ruby-glow);
  font-size: 0.95rem;
  min-height: 1.2em;
}

.form-status.is-ok {
  color: var(--gold-soft);
}

.legal h2 {
  margin-top: 2rem;
}

.timeline {
  display: grid;
  gap: 1.2rem;
}

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

.foot {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.25rem 2rem;
  background: #060508;
}

.foot__grid {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
}

.foot__brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin: 0 0 0.4rem;
}

.foot__tag,
.foot address,
.foot__copy {
  color: var(--cream-dim);
  font-style: normal;
}

.foot__legal {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.foot__copy {
  max-width: 72rem;
  margin: 2rem auto 0;
  font-size: 0.9rem;
}

.cookie {
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
}

.cookie[hidden] {
  display: none;
}

.cookie__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(180deg, rgba(18, 16, 22, 0.96), rgba(8, 7, 10, 0.98));
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
}

.cookie__actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.notfound {
  text-align: center;
  padding: 5rem 1rem 6rem;
}

.notfound h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin: 0 0 0.6rem;
}

@media (max-width: 900px) {
  .ledger,
  .primary,
  .offer-grid,
  .card-grid,
  .team-grid,
  .quotes,
  .foot__grid,
  .timeline article {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--obsidian-2);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1.25rem 1.2rem;
  }

  .nav.is-open {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    gap: 0.7rem;
  }
}
