@charset "UTF-8";

:root {
  color-scheme: dark;
  --bg: #11110D;
  --ink: #F3EFE4;
  --ink-muted: #A5A196;
  --gold: #D9B26A;
  --cta: #F4B852;
  --cta-hover: #F8C46A;
  --cta-ink: #14130F;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --cycle: 10.5s;
}

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

html, body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--cta); color: var(--cta-ink); }
a { color: inherit; }

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 50;
  padding: 8px 12px;
  background: var(--cta);
  color: var(--cta-ink);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 200ms var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }

.stage {
  min-height: 100dvh;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Sculpted OB Monogram */
.monogram-wrap {
  width: min(210px, 46vw);
  margin-bottom: 32px;
  cursor: pointer;
  user-select: none;
}

.monogram {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.ob-fill {
  opacity: 0;
  animation: ob-fill-cycle var(--cycle) var(--ease-out) infinite;
}

.ob-strokes path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.stroke-b { animation: draw-b var(--cycle) var(--ease-out) infinite; }
.stroke-b-inner { animation: draw-b-inner var(--cycle) var(--ease-out) infinite; }
.stroke-b-inner-2 { animation: draw-b-inner-2 var(--cycle) var(--ease-out) infinite; }
.stroke-o { animation: draw-o var(--cycle) var(--ease-out) infinite; }
.stroke-o-inner { animation: draw-o-inner var(--cycle) var(--ease-out) infinite; }

@keyframes draw-b {
  0%, 3% { stroke-dashoffset: 1; opacity: 1; }
  30% { stroke-dashoffset: 0; opacity: 1; }
  74% { stroke-dashoffset: 0; opacity: 1; }
  84%, 95% { stroke-dashoffset: 0; opacity: 0; }
  96%, 100% { stroke-dashoffset: 1; opacity: 0; }
}

@keyframes draw-b-inner {
  0%, 10% { stroke-dashoffset: 1; opacity: 1; }
  34% { stroke-dashoffset: 0; opacity: 1; }
  74% { stroke-dashoffset: 0; opacity: 1; }
  84%, 95% { stroke-dashoffset: 0; opacity: 0; }
  96%, 100% { stroke-dashoffset: 1; opacity: 0; }
}

@keyframes draw-b-inner-2 {
  0%, 18% { stroke-dashoffset: 1; opacity: 1; }
  40% { stroke-dashoffset: 0; opacity: 1; }
  74% { stroke-dashoffset: 0; opacity: 1; }
  84%, 95% { stroke-dashoffset: 0; opacity: 0; }
  96%, 100% { stroke-dashoffset: 1; opacity: 0; }
}

@keyframes draw-o {
  0%, 38% { stroke-dashoffset: 1; opacity: 1; }
  62% { stroke-dashoffset: 0; opacity: 1; }
  74% { stroke-dashoffset: 0; opacity: 1; }
  84%, 95% { stroke-dashoffset: 0; opacity: 0; }
  96%, 100% { stroke-dashoffset: 1; opacity: 0; }
}

@keyframes draw-o-inner {
  0%, 44% { stroke-dashoffset: 1; opacity: 1; }
  66% { stroke-dashoffset: 0; opacity: 1; }
  74% { stroke-dashoffset: 0; opacity: 1; }
  84%, 95% { stroke-dashoffset: 0; opacity: 0; }
  96%, 100% { stroke-dashoffset: 1; opacity: 0; }
}

@keyframes ob-fill-cycle {
  0%, 64% { opacity: 0; }
  76%, 92% { opacity: 1; }
  98%, 100% { opacity: 0; }
}

/* Typography */
.brand-name {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.headline {
  margin: 0 0 20px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(40px, 6.4vw, 58px);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.subtitle {
  margin: 0 0 32px;
  max-width: 380px;
  font-size: 15px;
  line-height: 24px;
  font-weight: 400;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.subtitle strong {
  color: var(--ink);
  font-weight: 600;
}

/* Primary CTA */
.cta {
  width: min(376px, 100%);
  min-height: 54px;
  padding: 14px 22px;
  border-radius: 8px;
  background: var(--cta);
  color: var(--cta-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  transition: background-color 220ms var(--ease-out), transform 160ms var(--ease-out);
}

.cta-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 240ms var(--ease-out);
}

.cta:active { transform: scale(0.98); }

.cta:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 10px;
}

/* Bottom contact links */
.contacts {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
}

.contact-link {
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-muted);
  text-decoration: underline;
  text-decoration-color: rgba(165, 161, 150, 0.55);
  text-underline-offset: 4px;
  transition: color 200ms var(--ease-out), text-decoration-color 200ms var(--ease-out);
}

.contact-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

.tabular { font-variant-numeric: tabular-nums; }

@media (hover: hover) and (pointer: fine) {
  .cta:hover { background: var(--cta-hover); }
  .cta:hover .cta-icon { transform: rotate(-10deg) scale(1.06); }
  .contact-link:hover {
    color: var(--ink);
    text-decoration-color: var(--ink);
  }
}

@media (max-width: 480px) {
  .stage { padding: 24px 20px; }
  .monogram-wrap { width: min(176px, 48vw); margin-bottom: 24px; }
  .headline { margin-bottom: 16px; }
  .subtitle { font-size: 14px; line-height: 22px; margin-bottom: 24px; }
  .contacts { gap: 8px 16px; margin-top: 20px; }
}

@media (max-height: 680px) {
  .monogram-wrap { width: 150px; margin-bottom: 20px; }
  .headline { font-size: 38px; margin-bottom: 12px; }
  .subtitle { margin-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .ob-fill { animation: none; opacity: 1; }
  .ob-strokes path { animation: none; opacity: 0; }
  .cta:active { transform: none; }
}
