/* =========================================================
   Royalton Park Ave → Viceroy Park Avenue — v2
   Statement page. Type: OGG Roman (serif) · Figtree (sans)
   Background: Ink #18191A · Accent bronze tint #c2b08a
   ========================================================= */

:root {
  --ink:       #18191A;
  --cream:     #f6f2ea;
  --gold-soft: #c2b08a;

  --serif: "ogg", "Cormorant Garamond", Georgia, serif;
  --sans:  "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad:  clamp(1.5rem, 5vw, 6rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--sans);
  background: #18191A;          /* unchanged BG */
  color: var(--cream);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.nowrap { white-space: nowrap; }

/* ---------- Framed content: #333 keyline wrapping the box,
              logo straddling (bisected by) the top edge ---------- */
.frame {
  position: relative;
  width: 100%;
  max-width: 930px;
  margin: 0 auto;
  padding: clamp(4rem, 9vh, 6rem) clamp(2rem, 6vw, 5rem);
}
/* keyline draws from the top centre, out to the corners, down the sides,
   and back in to the bottom centre — two mirrored SVG strokes */
.frame__draw {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.frame__draw path {
  fill: none;
  stroke: #333333;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawLine 4s var(--ease) 0.15s forwards;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.frame__logo {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);  /* centre on the top keyline */
  z-index: 1;                         /* above the keyline */
  background: #18191A;                /* page colour — masks the keyline behind */
  padding: 0 22px;
  display: inline-flex;
}
.frame__logo img {
  width: 140px;
  height: auto;
  display: block;
}

/* ---------- Statement ---------- */
.statement {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4rem, 12vh, 9rem) var(--pad);
}

.statement__inner {
  max-width: 930px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: clamp(1.6rem, 3.4vh, 2.6rem);
}

.block {
  font-weight: 400;
  letter-spacing: 0.004em;
  color: var(--cream);
}
/* fluid sizes: min at 360px viewport, max at 1600px */
.block--serif {
  font-family: var(--serif);
  /* fluid: 1.4rem (-20%) at 360px → 1.75rem at 1600px */
  font-size: clamp(1.4rem, calc(1.2984rem + 0.4516vw), 1.75rem);
  line-height: 1.4;
}
.block--sans {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(246, 242, 234, 0.82);
}

.accent { color: var(--gold-soft); }

/* ---------- Quiet staggered entrance ---------- */
.block {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 1s var(--ease) forwards;
}
.block:nth-child(1) { animation-delay: 0.15s; }
.block:nth-child(2) { animation-delay: 0.45s; }
.block:nth-child(3) { animation-delay: 0.75s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .block { animation: none; opacity: 1; transform: none; }
  .frame__draw path { animation: none; stroke-dashoffset: 0; }
}
