/* ==========================================================================
   Vocalroom
   League Gothic display + Barlow Condensed body
   Single Fraunces accent (the "vast" outline in the CTA)
   Hot yellow + ink + cream + photo hero
   ========================================================================== */

:root {
  --yellow: #ffea00;
  --yellow-hot: #ffd600;
  --yellow-wash: #fff8b0;
  --ink: #120c04;
  --ink-soft: #1a1308;
  --ink-mid: #251b0d;
  --cream: #faf4dc;
  --cream-dim: #c5b992;
  --accent: #ff4a1f;
  --rule: rgba(250, 244, 220, 0.14);
  --rule-ink: rgba(18, 12, 4, 0.2);

  --max: 1400px;
  --gutter: clamp(1.2rem, 4vw, 3.4rem);
  --radius: 3px;

  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out: cubic-bezier(0.075, 0.82, 0.165, 1);

  --f-display: "League Gothic", "Arial Narrow", sans-serif;
  --f-body: "Barlow Condensed", "Helvetica Neue", sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

/* ==========================================================================
   Grain
   ========================================================================== */

.grain {
  position: fixed;
  inset: -5%;
  z-index: 200;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: grain 6s steps(6) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 2%); }
  40% { transform: translate(2%, -2%); }
  60% { transform: translate(-1%, 1%); }
  80% { transform: translate(1%, -1%); }
}

/* ==========================================================================
   Typography
   ========================================================================== */

.title,
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: 0;
  color: var(--cream);
  font-variation-settings: "wdth" 90;
}

.title {
  font-size: clamp(2.6rem, 6.4vw, 6rem);
}

.title--xl {
  font-size: clamp(5.5rem, 18vw, 20rem);
  line-height: 0.82;
  font-variation-settings: "wdth" 86;
  letter-spacing: -0.005em;
}

.title--narrow {
  max-width: 16ch;
}

.title--ink {
  color: var(--ink);
}

.title--white {
  color: #fff;
}

h3 {
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  font-variation-settings: "wdth" 88;
  line-height: 0.92;
}

/* Yellow inline highlight (replaces Fraunces italic accents) */

.hi {
  color: var(--yellow);
}

.hi-ink {
  color: transparent;
  -webkit-text-stroke: 1.6px var(--ink);
}

/* Body paragraphs */

p {
  margin: 0 0 1em;
  color: var(--cream-dim);
  font-weight: 400;
}

.lead {
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  color: var(--cream);
  max-width: 56ch;
  margin-bottom: 1.5rem;
  line-height: 1.45;
  font-weight: 500;
}

.lead--white {
  color: #fff;
}

.lead--ink {
  color: var(--ink);
}

strong {
  font-weight: 600;
  color: inherit;
}

/* Tag (small label, condensed uppercase) */

.tag {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.4rem;
  font-weight: 500;
}

.tag--ink {
  color: var(--ink);
  border-color: var(--rule-ink);
}

/* Eyebrow (mono-ish small caps) */

.eyebrow {
  font-family: var(--f-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cream);
  font-weight: 500;
  margin: 0 0 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.eyebrow--ink {
  color: var(--ink);
}

/* Pulse dot */

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  animation: pulse 2.4s ease-in-out infinite;
}

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

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem var(--gutter);
  background: rgba(18, 12, 4, 0.78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--rule);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--cream);
  transition: transform 0.5s var(--ease);
}

.logo:hover {
  transform: scale(1.04);
}

.logo__mark {
  width: 28px;
  height: 28px;
  color: var(--yellow);
}

.logo__text {
  font-family: var(--f-display);
  font-size: 1.65rem;
  text-transform: uppercase;
  letter-spacing: 0;
  font-variation-settings: "wdth" 86;
  line-height: 1;
}

.logo__hi {
  color: var(--yellow);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  background: transparent;
  font-family: var(--f-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.5s var(--ease), color 0.5s var(--ease),
    border-color 0.5s var(--ease), transform 0.5s var(--ease);
}

.btn:hover {
  transform: scale(1.04);
}

.btn--sm {
  padding: 0.7rem 1.1rem;
  font-size: 0.78rem;
  border-color: var(--rule);
  color: var(--cream);
}

.btn--sm:hover {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}

/* Hero buttons */

.btn--solid {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}
.btn--solid:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn--outline-light {
  color: #fff;
  border-color: #fff;
  background: transparent;
}
.btn--outline-light:hover {
  background: #fff;
  color: var(--ink);
}

/* CTA button */

.btn--ink {
  color: var(--yellow);
  background: var(--ink);
  border-color: var(--ink);
  margin-top: 0.7rem;
}
.btn--ink:hover {
  background: var(--yellow-hot);
  color: var(--ink);
  border-color: var(--yellow-hot);
}

.arrow {
  font-family: var(--f-body);
  font-style: normal;
  display: inline-block;
  font-weight: 500;
  transition: transform 0.5s var(--ease);
}

.btn:hover .arrow,
.link:hover .arrow {
  transform: translate(3px, -3px);
}

/* ==========================================================================
   HERO (full bleed photo + white VOCALROOM overlay)
   ========================================================================== */

.hero {
  position: relative;
  min-height: min(100vh, 980px);
  padding: clamp(7rem, 14vw, 11rem) var(--gutter) clamp(4rem, 7vw, 7rem);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--ink);
}

.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0% 25%;
  filter: contrast(1.05) saturate(1.1);
  transform: scale(1.4);
  transform-origin: 18% 30%;
  animation: heroDrift 30s ease-in-out infinite alternate;
}

@media (max-width: 860px) {
  .hero__photo img {
    object-position: 60% 20%;
    transform: scale(1.05);
    transform-origin: center center;
  }
}

@keyframes heroDrift {
  from { transform: scale(1.4); }
  to { transform: scale(1.43) translateY(-1%); }
}

/* Dark gradient overlay so the white text is readable */
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
      180deg,
      rgba(18, 12, 4, 0.55) 0%,
      rgba(18, 12, 4, 0.15) 35%,
      rgba(18, 12, 4, 0.45) 75%,
      rgba(18, 12, 4, 0.85) 100%
    ),
    radial-gradient(
      ellipse at 25% 70%,
      rgba(18, 12, 4, 0.55),
      transparent 60%
    );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.hero .eyebrow {
  color: #fff;
  opacity: 0.92;
  margin-bottom: 1.6rem;
}

.hero .dot {
  background: var(--yellow);
}

.hero .title--xl {
  color: #fff;
  letter-spacing: -0.01em;
}

.hero .lead {
  margin-top: clamp(1.4rem, 2.4vw, 2rem);
  color: #fff;
  max-width: 44ch;
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  font-weight: 500;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

.actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.scroll-cue {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #fff;
  opacity: 0.6;
  margin: 0;
  z-index: 3;
  font-weight: 500;
}

.scroll-cue i {
  width: 1px;
  height: 32px;
  background: #fff;
  display: block;
  transform-origin: top;
  animation: scroll 2.2s ease-in-out infinite;
}

@keyframes scroll {
  0% { transform: scaleY(0); transform-origin: top; }
  48% { transform: scaleY(1); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 860px) {
  .scroll-cue { display: none; }
}

/* ==========================================================================
   Page load cascade (hero only)
   ========================================================================== */

.hero .eyebrow,
.hero .title--xl,
.hero .lead,
.hero .actions {
  opacity: 0;
  transform: translateY(34px);
}

body.is-loaded .hero .eyebrow {
  animation: rise 1.1s var(--ease) 0.15s both;
}
body.is-loaded .hero .title--xl {
  animation: rise 1.3s var(--ease) 0.28s both;
}
body.is-loaded .hero .lead {
  animation: rise 1.1s var(--ease) 0.55s both;
}
body.is-loaded .hero .actions {
  animation: rise 1.1s var(--ease) 0.7s both;
}

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

/* ==========================================================================
   Ticker
   ========================================================================== */

.ticker {
  background: var(--ink);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  padding: 1.4rem 0;
}

.ticker__track {
  display: inline-flex;
  gap: 2.2rem;
  white-space: nowrap;
  align-items: center;
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  text-transform: uppercase;
  color: var(--cream);
  animation: slide 32s linear infinite;
  will-change: transform;
  font-variation-settings: "wdth" 88;
  line-height: 1;
}

.ticker .hl {
  color: var(--yellow);
}

.ticker i {
  color: var(--yellow);
  font-size: 0.7em;
  font-style: normal;
}

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Panels
   ========================================================================== */

.panel {
  padding: clamp(5rem, 10vw, 9rem) var(--gutter);
  position: relative;
}

.panel > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

/* Direct text children of a flat panel align to the left, not centered.
   (Wrappers like .panel__grid keep their own auto margin via max-width.) */
.panel > .tag,
.panel > .title,
.panel > .lead,
.panel > .quote,
.panel > header {
  margin-left: 0;
  margin-right: auto;
}

.panel--dark {
  background: var(--ink);
  color: var(--cream);
}

.panel--light {
  background: var(--cream);
  color: var(--ink);
  overflow: hidden;
}

.panel--light::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 18% 18%,
      rgba(255, 234, 0, 0.32),
      transparent 55%
    ),
    radial-gradient(
      circle at 84% 82%,
      rgba(255, 74, 31, 0.07),
      transparent 55%
    );
  pointer-events: none;
}

.panel--light > * {
  position: relative;
}

/* Quote */

.quote {
  font-family: var(--f-body);
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--cream);
  padding: 1.8rem 0 0;
  border-top: 1px solid var(--rule);
  margin-top: 2rem;
  max-width: 56ch;
}

/* Problem section title is a bit narrower so it sits next to the body */

.panel--problem .title--narrow {
  max-width: 18ch;
  margin-bottom: 1.6rem;
}

/* ==========================================================================
   Split panel (Guide)
   ========================================================================== */

.panel--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.6rem;
  align-items: center;
}

@media (min-width: 900px) {
  .panel--split {
    grid-template-columns: 1.05fr 1fr;
    gap: 5rem;
  }
}

/* ==========================================================================
   Photo (with tilt support)
   ========================================================================== */

.photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-soft);
  aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
  perspective: 1200px;
  will-change: transform;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 2s var(--ease), filter 2s var(--ease);
  filter: saturate(0.95) contrast(1.05);
}

.photo:hover img {
  transform: scale(1.04);
}

/* Mirrored variant: flip the image but keep figcaption readable */
.photo--flip img {
  transform: scaleX(-1);
}
.photo--flip:hover img {
  transform: scaleX(-1) scale(1.04);
}

.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px var(--rule);
  pointer-events: none;
  z-index: 2;
}

.photo figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 3;
  font-family: var(--f-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--cream);
  background: rgba(18, 12, 4, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.photo figcaption i {
  color: var(--yellow);
  font-style: normal;
}

.panel__text .tag {
  margin-bottom: 1.3rem;
}

.panel__text h2 {
  margin-bottom: 1.4rem;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--f-body);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--yellow);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease);
  margin-top: 1rem;
}

.link:hover {
  border-color: var(--yellow);
  transform: translateX(2px);
}

/* ==========================================================================
   Plan
   ========================================================================== */

.plan {
  padding-bottom: clamp(6rem, 11vw, 10rem);
}

.plan > header,
.plan > ol {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 980px) {
  .plan {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 6rem;
    align-items: start;
  }
  .plan > header,
  .plan > ol {
    max-width: none;
    margin: 0;
  }
  .plan__head {
    position: sticky;
    top: 6.5rem;
  }
}

.plan__head .tag {
  margin-bottom: 1.3rem;
}

.plan__head h2 {
  margin-bottom: 1.2rem;
}

.plan__steps li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(5rem, auto) 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.6rem;
  row-gap: 0.4rem;
  padding: 2.6rem 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}

.plan__steps li:last-child {
  border-bottom: 1px solid var(--rule);
}

.plan__steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 1px;
  background: var(--yellow);
  transition: width 1.4s var(--ease);
}

.plan__steps li.is-visible::before {
  width: 100%;
}

.num {
  grid-column: 1;
  grid-row: 1 / span 2;
  font-family: var(--f-display);
  font-size: clamp(3.6rem, 6vw, 5.6rem);
  font-variation-settings: "wdth" 84;
  text-transform: uppercase;
  color: var(--yellow);
  line-height: 0.85;
  align-self: start;
}

.plan__steps h3 {
  grid-column: 2;
  grid-row: 1;
  color: var(--cream);
  margin: 0 0 0.7rem;
}

.plan__steps p {
  grid-column: 2;
  grid-row: 2;
  max-width: 54ch;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--cream-dim);
}

/* ==========================================================================
   Stakes (success vs failure)
   ========================================================================== */

.panel--light header {
  max-width: 44ch;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.panel--light .tag {
  margin-bottom: 1.3rem;
}

.panel--light .lead--ink {
  margin-top: 1rem;
  font-size: clamp(1.1rem, 1.4vw, 1.28rem);
}

.stakes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}

@media (min-width: 820px) {
  .stakes {
    grid-template-columns: 1fr 1fr;
    gap: 2.4rem;
  }
}

.stakes__col {
  padding: 2.2rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--rule-ink);
}

.stakes__col--no {
  background: rgba(18, 12, 4, 0.04);
}

.stakes__col--yes {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  position: relative;
  overflow: hidden;
}

.stakes__col--yes::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 80% -10%,
    rgba(255, 234, 0, 0.12),
    transparent 60%
  );
  pointer-events: none;
}

.stakes__col .eyebrow {
  margin: 0 0 1.5rem;
  font-size: 0.78rem;
  opacity: 0.8;
}

.stakes__col--yes .eyebrow {
  color: var(--yellow);
  opacity: 1;
}

.stakes__col ul {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
}

.stakes__col li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 0.9rem;
  align-items: flex-start;
  font-family: var(--f-body);
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}

.stakes__col--yes li {
  color: var(--cream);
}

.icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  margin-top: 0.18em;
}

.icon--x {
  border: 1.5px solid rgba(18, 12, 4, 0.35);
}

.icon--x::before,
.icon--x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 1.5px;
  background: rgba(18, 12, 4, 0.5);
  transform-origin: center;
}

.icon--x::before { transform: translate(-50%, -50%) rotate(45deg); }
.icon--x::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.icon--check {
  background: var(--yellow);
  border: 1.5px solid var(--yellow);
}

.icon--check::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 5px;
  border-left: 1.8px solid var(--ink);
  border-bottom: 1.8px solid var(--ink);
  transform: translate(-50%, -65%) rotate(-45deg);
}

/* ==========================================================================
   CTA / Signup form
   ========================================================================== */

.panel--cta {
  background: var(--yellow);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}

.panel--cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 95% 5%,
      rgba(255, 74, 31, 0.08),
      transparent 60%
    ),
    radial-gradient(
      circle at 0% 100%,
      rgba(255, 214, 0, 0.85),
      transparent 55%
    );
  pointer-events: none;
}

.cta {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .cta {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.cta__text .tag {
  margin-bottom: 1.4rem;
}

.cta__title {
  font-family: var(--f-display);
  font-size: clamp(3.4rem, 9vw, 8.5rem);
  font-weight: 400;
  line-height: 0.88;
  color: var(--ink);
  margin: 1.2rem 0 1.2rem;
  text-transform: uppercase;
  font-variation-settings: "wdth" 88;
}

/* The "vast" accent: League Gothic with outline so it stays distinct */
.cta__title .vast {
  font-family: var(--f-display);
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 2.5px var(--ink);
  text-transform: uppercase;
  font-variation-settings: "wdth" 86;
  margin: 0 0.04em;
  display: inline-block;
}

/* Signup form */

.signup {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  background: var(--ink);
  color: var(--cream);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: 4px;
  position: relative;
  box-shadow: 24px 24px 0 0 rgba(18, 12, 4, 0.14),
    0 40px 100px -20px rgba(18, 12, 4, 0.35);
}

.signup::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--rule);
  pointer-events: none;
  border-radius: 2px;
}

.hp {
  position: absolute;
  left: -9999px;
  visibility: hidden;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.field > span {
  font-family: var(--f-body);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cream-dim);
  font-weight: 600;
}

.field .opt {
  font-style: italic;
  text-transform: none;
  font-size: 0.78rem;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0.04em;
}

.signup input,
.signup select,
.signup textarea {
  width: 100%;
  background: transparent;
  color: var(--cream);
  border: none;
  border-bottom: 1px solid var(--rule);
  font-family: var(--f-body);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.75rem 0 0.85rem;
  outline: none;
  transition: border-color 0.4s var(--ease);
  border-radius: 0;
}

.signup input::placeholder,
.signup textarea::placeholder {
  color: var(--cream-dim);
  opacity: 0.55;
  font-style: italic;
  font-weight: 400;
}

.signup input:focus,
.signup select:focus,
.signup textarea:focus {
  border-bottom-color: var(--yellow);
}

.signup select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%23faf4dc' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.3rem center;
  padding-right: 1.8rem;
  cursor: pointer;
}

.signup select option {
  background: var(--ink);
  color: var(--cream);
}

.signup textarea {
  resize: vertical;
  min-height: 5em;
  line-height: 1.5;
}

.fineprint {
  font-family: var(--f-body);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cream-dim);
  margin: 0.4rem 0 0;
  opacity: 0.72;
  font-weight: 500;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.foot {
  padding: 2.6rem var(--gutter);
  background: var(--ink);
  border-top: 1px solid var(--rule);
  font-family: var(--f-body);
  font-size: 0.82rem;
  color: var(--cream-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.foot p {
  margin: 0;
  color: inherit;
}

.foot__mark .hi {
  color: var(--yellow);
}

.foot a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
  padding-bottom: 1px;
}

.foot a:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Word split (injected by JS) */

.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 0.04em;
  margin: 0 -0.04em;
}

.word {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease);
  will-change: transform;
}

[data-split].is-visible .word {
  transform: translateY(0);
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero > *,
  .hero .eyebrow,
  .hero .title--xl,
  .hero .lead,
  .hero .actions,
  [data-reveal],
  .word {
    opacity: 1 !important;
    transform: none !important;
  }
  html { scroll-behavior: auto; }
}
