/* =============================================================
   Zafyr London parked page
   Palette lifted from the logo: cream ground, ink linework.
   ============================================================= */

:root {
  --cream: #f3e3d6;        /* sampled from the logo's own ground */
  --cream-deep: #e6d4c6;   /* shadowed cream, hairlines */
  --sand: #d5c0ae;         /* warm mid tone */
  --ink: #000000;          /* sampled from the logo's linework */
  --ink-soft: #3a322c;     /* body copy */
  --ink-faint: #8a7767;    /* captions, notes */
  --measure: 640px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  /* Flat cream, matched to the logo's own ground so the artwork sits on the
     page with no visible edge. */
  background: var(--cream);
  color: var(--ink-soft);
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { margin: 0; font-weight: 400; }
p { margin: 0; }
::selection { background: var(--ink); color: var(--cream); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Layout ---------------------------------------------------------- */

.stage {
  min-height: 100%;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.frame {
  width: 100%;
  max-width: var(--measure);
  text-align: center;
  padding: clamp(32px, 6vw, 56px) clamp(20px, 5vw, 48px);
  border: 1px solid var(--cream-deep);
  border-radius: 2px;
}

/* --- Lockup ---------------------------------------------------------- */

.lockup { display: grid; justify-items: center; }

.logo {
  width: clamp(250px, 56vw, 420px);
  /* height:auto is required - the img's height attribute is a presentational
     hint that would otherwise beat aspect-ratio and render at full size. */
  height: auto;
  /* The artwork sits inside ~25% of baked-in whitespace top and bottom.
     Cropping to a centred 1:0.66 window trims that back to ~12% a side, so
     the lockup reads at a proper size without blowing the layout apart.
     Art bbox is 24.7-75.3% vertically, so nothing is clipped. */
  aspect-ratio: 1 / 0.66;
  object-fit: cover;
  object-position: 50% 50%;
  /* The JPEG carries its own flat cream ground. Feathering the outer 7% -
     which is empty margin in the logo artwork - dissolves the square edge
     into the page, so a slightly-off cream never reads as a visible box. */
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image:
    linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.logo-fallback { display: grid; justify-items: center; color: var(--ink); }
.logo-fallback[hidden] { display: none; }

.mark { width: clamp(74px, 15vw, 104px); height: auto; }

.wordmark {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: clamp(26px, 5vw, 40px);
  color: var(--ink);
}

.wordmark-name {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 12vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0.22em;
  text-indent: 0.22em; /* balance the trailing tracking */
  text-transform: uppercase;
}

/* --- Copy ------------------------------------------------------------ */

.tagline {
  margin-top: clamp(26px, 5vw, 38px);
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: clamp(0.86rem, 3.2vw, 1.05rem);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--ink);
}

.status {
  margin-top: clamp(30px, 5vw, 40px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border: 1px solid var(--sand);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  color: var(--ink);
}

.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
  animation: pulse 2.8s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1); }
}

/* --- Sign-up --------------------------------------------------------- */

.signup {
  margin-top: clamp(32px, 6vw, 44px);
  padding-top: clamp(28px, 5vw, 38px);
  border-top: 1px solid var(--cream-deep);
}

.form { margin: 0 auto; }

.field {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}

input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 16px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: rgba(255, 252, 249, 0.72);
  border: 1px solid var(--sand);
  border-radius: 2px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

input[type="email"]::placeholder { color: var(--ink-faint); }

input[type="email"]:focus-visible,
.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

input[type="email"]:focus { border-color: var(--ink); background: #fffcf9; }
input[type="email"][aria-invalid="true"] { border-color: #a3563f; }

.btn {
  flex: 0 0 auto;
  padding: 14px 24px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover { background: transparent; color: var(--ink); }
.btn[disabled] { opacity: 0.45; cursor: default; }
.btn[disabled]:hover { background: var(--ink); color: var(--cream); }

/* --- Marketing consent ----------------------------------------------- */

.consent {
  max-width: 460px;
  margin: 0 auto;
  display: grid;
  gap: 8px;
  /* Collapsed until the email checks out; grid-template-rows animates where
     height:auto cannot. Visible by default so the no-JS path still asks. */
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  overflow: hidden;
  margin-top: 18px;
  transition: grid-template-rows 0.45s var(--ease), opacity 0.35s var(--ease),
              margin-top 0.45s var(--ease), visibility 0s;
}

.form .consent:not(.is-open) {
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  /* visibility, not just opacity - it also takes the checkbox and the link
     out of the tab order while the step is collapsed. */
  visibility: hidden;
  transition-delay: 0s, 0s, 0s, 0.4s;
}

.consent > * { min-height: 0; }

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink-soft);
  cursor: pointer;
}

.consent-label input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 4px 0 0;
  accent-color: var(--ink);
  cursor: pointer;
}

.consent-link {
  text-align: left;
  padding-left: 26px;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.consent-link a {
  color: var(--ink-faint);
  text-decoration: none;
  border-bottom: 1px solid var(--sand);
  padding-bottom: 1px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.consent-link a:hover { color: var(--ink); border-color: var(--ink); }

/* --- Form status ------------------------------------------------------ */

.form-msg {
  min-height: 1.5em;
  margin-top: 14px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink);
}

.form-msg.is-error { color: #a3563f; }

/* --- Document pages (privacy) ---------------------------------------- */

.doc {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(48px, 9vw, 88px) clamp(20px, 5vw, 32px) clamp(56px, 10vw, 96px);
  text-align: left;
}

.doc-back {
  display: inline-block;
  margin-bottom: clamp(30px, 5vw, 44px);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.doc-back:hover { color: var(--ink); }

.doc h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.doc-standfirst {
  margin-top: 14px;
  font-size: clamp(0.95rem, 2.6vw, 1.02rem);
  color: var(--ink-soft);
}

.doc h2 {
  margin-top: clamp(34px, 6vw, 46px);
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
}

.doc h2 + p, .doc h2 + ul { margin-top: 12px; }
.doc p + p, .doc ul + p, .doc p + ul { margin-top: 14px; }

.doc p, .doc li { font-size: 0.95rem; line-height: 1.8; color: var(--ink-soft); }

.doc ul { margin: 0; padding-left: 20px; }
.doc li { margin-top: 8px; }
.doc li::marker { color: var(--sand); }

.doc a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--sand); }
.doc a:hover { border-color: var(--ink); }

.doc-updated {
  margin-top: clamp(38px, 7vw, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--cream-deep);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

/* --- Entrance -------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* --- Small screens --------------------------------------------------- */

@media (max-width: 520px) {
  .stage { padding: 32px 16px; }
  .frame { padding: 34px 20px; border: 0; background: none; }
  .field { flex-direction: column; }
  .btn { width: 100%; }
  .doc { padding-left: 4px; padding-right: 4px; }
}

/* --- Motion & contrast preferences ----------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
  .dot { animation: none; opacity: 1; }
  * { transition-duration: 0.01ms !important; }
}

@media (prefers-contrast: more) {
  :root { --ink-soft: #141110; --ink-faint: #463c33; --sand: #8a7767; }
}
