/* ============================================================
   home.css - index.html only. Loaded after core.css.
   ============================================================ */

/* ---------- page deltas from the shared components ----------
   Drift inherited from the three pages having been built separately.
   Kept so this refactor is visually a no-op; each one is a one-line
   design decision away from being deleted. */
:root {
  /* home's hero scrim is warmer and sits slightly lower than art/terms */
  --ground-head: radial-gradient(80% 62% at 50% 46%, rgba(9, 7, 6, .72), rgba(9, 7, 6, .44) 62%, rgba(13, 10, 8, .40));
  --section-py-head-top: clamp(48px, 7vw, 88px);
}
/* home caps h1 lower than the brief's display XL */
h1 { font-size: clamp(2.5rem, 7vw, 3.6rem); }
/* ------------------------------------------------------------ */

body {
  overflow-x: hidden;
  position: relative;
}

.section-head {
  text-align: center;
  gap: 12px;
  justify-items: center;
}
.section-head .lede {
  max-width: 62ch;
  margin: 0;
}

/* ---------- hero ---------- */
.hero { text-align: center; }
.hero .wrap { display: grid; justify-items: center; gap: 0; }
.hero-logo {
  position: relative;
  width: min(280px, 66vw);
  margin-bottom: 30px;
}
.hero-logo::before {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 232, .3) 0%, rgba(127, 216, 220, .12) 45%, transparent 70%);
  filter: blur(6px);
  z-index: -1;
}
.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 28px rgba(201, 162, 232, .38))
          drop-shadow(0 0 60px rgba(127, 216, 220, .18))
          drop-shadow(0 14px 30px rgba(0, 0, 0, .65));
}
.hero-line {
  margin-top: 26px;
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 44ch;
}
.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.hero .saber { margin-top: clamp(56px, 8vw, 80px); }

/* ---------- commission form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.form-intro { display: grid; gap: 18px; }
.form-intro h2 { margin-top: 6px; }

form {
  scroll-margin-top: 96px;
  padding: clamp(24px, 4vw, 36px);
  display: grid;
  gap: 20px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: grid; gap: 8px; }
.field label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
}
.field label .opt {
  font-weight: 400;
  color: var(--text-faint);
}
.field input,
.field select,
.field textarea {
  scroll-margin-top: calc(var(--nav-h) + 24px);
  width: 100%;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  line-height: 1.4;
  padding: 16px;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(127, 216, 220, .14);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237fd8dc' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}
.field textarea { min-height: 150px; resize: vertical; }
.helper {
  font-size: .8rem;
  color: var(--text-faint);
  line-height: 1.55;
}
.helper strong { color: var(--text-dim); font-weight: 600; }
form .btn { justify-self: start; }

/* honeypot: off screen for people, still fillable by bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: .95rem;
  line-height: 1.5;
}
.form-status.show { display: flex; }
.form-status.is-ok { color: var(--teal); }
.form-status.is-warn { color: var(--gold); }
.form-status .mark {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: grid;
  place-items: center;
  font-size: .8rem;
  opacity: .75;
}

/* Same language as the "being finalized" callout on the terms page:
   gold left border, quiet fill, states a fact without alarm. */
.form-notice {
  border-left: 3px solid var(--gold);
  background: rgba(217, 193, 95, .05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: none;
}
.form-notice .tag {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--gold);
  margin-bottom: 6px;
}
.soon-line {
  max-width: 62ch;
  margin: 28px auto 0;
  text-align: center;
  font-size: .95rem;
  color: var(--text-dim);
}
#inquiry .section-head { text-align: left; justify-items: start; }
#inquiry .form-intro { display: grid; gap: 14px; }

/* ---------- footer ---------- */
.site-footer {
  padding: 48px 0 calc(48px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}
.social-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.footer-links { margin-bottom: 20px; }
.footer-links a { color: var(--teal); }
/* footer links clear the 24px target minimum (WCAG 2.2, 2.5.8) */
.social-row a,
.footer-links a { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; }
.social-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: none;
}
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-links .sep { color: var(--text-faint); padding: 0 .7em; }
.fine-print {
  max-width: 62ch;
  margin: 0 auto;
}
.fine-print .site { font-weight: 600; }

/* ---------- mobile sticky bar ---------- */
.mobile-cta-bar {
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  transition: transform 220ms ease, opacity 220ms ease;
}
.mobile-cta-bar.tucked { transform: translateY(120%); opacity: 0; pointer-events: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links .navlink { display: none; }
  .nav-links .btn { display: none; }   /* the sticky bar carries it instead */
  .nav-inner { gap: 16px; }
  .mobile-cta-bar { display: block; }
  .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
  .hero-ctas { width: 100%; flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 340px; }
}
@media (max-width: 460px) {
  .brand .wordmark { display: none; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .field input, .field select, .field textarea { transition: border-color 160ms ease, box-shadow 160ms ease; }
  .hero-logo::before { animation: heroPulse 5s ease-in-out infinite; }
  @keyframes heroPulse {
    0%, 100% { opacity: .7; }
    50% { opacity: 1; }
  }

  /* reveal on scroll: only when JS is present */
  .js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 500ms cubic-bezier(.2, .7, .2, 1), transform 500ms cubic-bezier(.2, .7, .2, 1);
    transition-delay: calc(var(--i, 0) * 60ms);
  }
  .js .in .reveal {
    opacity: 1;
    transform: none;
  }
}
