/* HELIXA coming-soon page */

:root {
  --cream: #E7DCC9;
  --sage: #A3A382;
  --olive: #70715B;
  --charcoal: #383735;
  --ink: #1F1E1C;          /* headline, a touch deeper than charcoal for contrast on the light wall */
  --olive-text: #5E5F4B;   /* olive darkened for small text contrast (AA on the cream wall) */

  --font-sans: "Avenir Next", Avenir, "Century Gothic", "Gill Sans", "Segoe UI", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  --gutter: clamp(24px, 3vw, 44px);
  --content-max: 1520px;
  --logo-w: 220px;
  /* Vertical position of the logo's own divider line, as a fraction of its cropped width */
  --logo-rule-ratio: 0.6621;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

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

/* ---------- Page frame (desktop / landscape tablet) ---------- */

.page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.artwork {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Bias the crop right and slightly up so the sculpture stays whole */
  object-position: 78% 40%;
}

/* Header: centred logo flanked by fine olive rules aligned to the logo's own divider */
.site-header {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(14px, 2.2vh, 24px) var(--gutter) 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  column-gap: clamp(16px, 2vw, 28px);
}

.logo {
  width: var(--logo-w);
  height: auto;
}

.rule {
  display: block;
  height: 1px;
  margin-top: calc(var(--logo-w) * var(--logo-rule-ratio));
  background: var(--olive);
  opacity: 0.55;
}

/* Hero */
.hero {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(24px, 4.5vh, 96px) var(--gutter) clamp(28px, 5vh, 110px);
  padding-left: calc(var(--gutter) + clamp(0px, 6.5vw, 108px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero > * { max-width: min(640px, 52vw); }

/* Mid-width landscape screens: push the sculpture right and keep the form clear of the plinth */
@media (min-width: 861px) and (max-width: 1180px) {
  .artwork img { object-position: 92% 40%; }
  .hero { padding-left: calc(var(--gutter) + 40px); }
  .hero > * { max-width: 46vw; }
  .signup-row { max-width: 46vw; }
  .signup button { padding: 0 24px; }
}

.eyebrow {
  margin: 0 0 clamp(16px, 2.4vh, 34px);
  font-size: clamp(0.8125rem, 0.75rem + 0.3vw, 1rem);
  letter-spacing: 0.32em;
  color: var(--olive-text);
  font-weight: 500;
}

.headline {
  margin: 0;
  font-weight: 300;
  font-size: clamp(3rem, 1.2rem + 4.6vw, 6.25rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.headline span { display: block; }

.supporting {
  margin: clamp(14px, 2.4vh, 24px) 0 0;
  font-size: clamp(1.125rem, 0.95rem + 0.7vw, 1.75rem);
  line-height: 1.35;
  color: var(--charcoal);
  font-weight: 400;
}

/* Signup */
.signup {
  margin-top: clamp(24px, 3.6vh, 52px);
  width: 100%;
}

.signup-intro {
  display: block;
  margin-bottom: 18px;
  font-size: clamp(1rem, 0.94rem + 0.25vw, 1.1875rem);
  color: var(--charcoal);
}

.signup-row {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 600px;
}

.signup input,
.signup button {
  font: inherit;
  font-size: 1.0625rem;        /* ≥16px prevents iOS zoom */
  min-height: 56px;
  border-radius: 0;
}

.signup input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 20px;
  color: var(--charcoal);
  background: rgba(251, 246, 243, 0.55);
  border: 1px solid rgba(56, 55, 53, 0.55);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.signup input::placeholder { color: #85816F; opacity: 1; }

.signup input:hover { border-color: var(--charcoal); }

.signup input:focus { outline: none; }

.signup input:focus-visible {
  border-color: var(--olive);
  background: rgba(251, 246, 243, 0.85);
  box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--olive);
}

.signup input[aria-invalid="true"] {
  border-color: #8A4B36;
}

.signup button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 32px;
  color: #FBF6F3;
  background: var(--olive);
  border: 1px solid var(--olive);
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.signup button svg { transition: transform 0.25s ease; }

.signup button:hover { background: #5E5F4B; border-color: #5E5F4B; }
.signup button:hover svg { transform: translateX(3px); }

.signup button:focus { outline: none; }
.signup button:focus-visible {
  box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--charcoal);
}

.signup-consent {
  margin: 14px 0 0;
  max-width: 600px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--olive-text);
}

.signup-note {
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: var(--olive-text);
}

.signup-status {
  margin: 6px 0 0;
  min-height: 1.5em;
  font-size: 0.9375rem;
  color: var(--charcoal);
}

.signup-status.is-error { color: #7A3F2C; }

/* Footer */
.site-footer {
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--content-max) - 2 * var(--gutter));
  margin: 0 auto;
  padding: 22px 0 clamp(20px, 3vh, 30px);
  border-top: 1px solid rgba(112, 113, 91, 0.6);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  color: var(--charcoal);
}

.site-footer p { margin: 0; }
.footer-left { letter-spacing: 0.14em; }
.footer-centre { text-align: center; }
.footer-right { text-align: right; }

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-footer a:hover { border-bottom-color: currentColor; }
.site-footer a:focus { outline: none; }
.site-footer a:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 2px;
}

/* Soften the wall behind the copy slightly on mid-width screens where the hero edges towards the sculpture */
@media (max-width: 1280px) and (min-width: 861px) {
  .artwork::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(240, 229, 214, 0.55) 0%, rgba(240, 229, 214, 0.25) 40%, rgba(240, 229, 214, 0) 58%);
  }
}

/* Short desktop/landscape windows: tighten vertical rhythm */
@media (min-width: 861px) and (max-height: 820px) {
  :root { --logo-w: 190px; }
  .hero { padding-top: 28px; padding-bottom: 36px; }
  .headline { font-size: clamp(2.75rem, 1rem + 4.2vw, 5.25rem); }
}

/* ---------- Stacked layout: phones, landscape phones, portrait tablets ---------- */

@media (max-width: 860px), (orientation: portrait) and (max-width: 1100px) {
  :root {
    --gutter: 24px;
    --logo-w: clamp(150px, 42vw, 190px);
  }

  .page {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
  }

  .site-header {
    order: 1;
    grid-template-columns: 1fr;
    justify-items: center;
    padding-top: 20px;
  }

  .rule { display: none; }

  .hero {
    order: 2;
    padding: 36px var(--gutter) 8px;
  }

  .hero > * { max-width: 100%; }

  .eyebrow { margin-bottom: 16px; letter-spacing: 0.28em; }

  .headline { font-size: clamp(2.5rem, 1.2rem + 7.4vw, 4.5rem); line-height: 1.04; }

  .supporting { font-size: clamp(1.125rem, 1rem + 0.8vw, 1.375rem); }

  .signup { margin-top: 30px; }

  .signup-row {
    flex-direction: column;
    max-width: 520px;
  }

  .signup button { width: 100%; justify-content: center; }

  /* Dedicated decorative panel below the copy */
  .artwork {
    order: 3;
    position: relative;
    inset: auto;
    z-index: 0;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 640px;
    margin-top: -8px;
    overflow: hidden;
    /* Blend the panel's top edge into the cream page */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 22%);
  }

  .artwork img {
    object-position: 100% 50%;
  }

  .site-footer {
    order: 4;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 2px;
    padding: 18px 0 28px;
    font-size: 0.875rem;
  }

  .footer-centre,
  .footer-right { text-align: left; }

  .site-footer a { padding-left: 0; }
}

/* Wider stacked layouts (portrait tablets, landscape phones): use a wider panel so the sculpture is not oversized */
@media (min-width: 600px) and (max-width: 860px), (orientation: portrait) and (min-width: 600px) and (max-width: 1100px) {
  .hero { padding-left: 48px; padding-right: 48px; }
  .site-footer { width: calc(100% - 96px); }
  .artwork { aspect-ratio: 16 / 10; }
  .artwork img { object-position: 80% 45%; }
  .site-footer { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
  .footer-centre { text-align: center; justify-self: center; }
  .footer-right { text-align: right; justify-self: end; }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .site-header,
  .hero > *,
  .site-footer {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero > :nth-child(1) { animation-delay: 0.08s; }
  .hero > :nth-child(2) { animation-delay: 0.16s; }
  .hero > :nth-child(3) { animation-delay: 0.24s; }
  .hero > :nth-child(4) { animation-delay: 0.32s; }
  .site-footer { animation-delay: 0.4s; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}

/* Instagram call to action (used while email signup is switched off) */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 32px;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  color: #FBF6F3;
  background: var(--olive);
  border: 1px solid var(--olive);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.cta svg { transition: transform 0.25s ease; }
.cta:hover { background: #5E5F4B; border-color: #5E5F4B; }
.cta:hover svg { transform: translateX(3px); }
.cta:focus { outline: none; }
.cta:focus-visible { box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--charcoal); }
@media (max-width: 860px), (orientation: portrait) and (max-width: 1100px) {
  .cta { width: 100%; max-width: 520px; padding: 0 20px; }
}
