/* ==========================================================================
   Hero — headline, copy, signup form, signal illustration, sector row
   ========================================================================== */

.hero { overflow-x: clip; --hero-top: clamp(26px, 4.4vw, 72px); position: relative; padding-bottom: clamp(22px, 2vw, 34px); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 48fr) minmax(0, 52fr);
  align-items: start;
  column-gap: clamp(0px, 0.8vw, 14px);
  padding-top: var(--hero-top);
  padding-bottom: clamp(4px, 0.5vw, 8px);
}

/* Copy ------------------------------------------------------------------- */
.hero__copy { position: relative; z-index: 2; min-width: 0; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--ink);
  font-size: var(--h1-size, clamp(64px, 11.4vw, 188px));
  line-height: var(--h1-leading);
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.hero__title .line__inner { padding-bottom: 0.02em; }

.hero__lede {
  margin-top: clamp(20px, 1.9vw, 30px);
  font-size: var(--fs-lede);
  font-weight: 650;
  letter-spacing: -0.018em;
  line-height: 1.15;
  color: var(--green-deep);
}

.hero__body {
  margin-top: clamp(10px, 1vw, 16px);
  max-width: 31em;
  font-size: var(--fs-body);
  line-height: 1.46;
  color: var(--muted);
}

/* Signup form (also reused in the closing CTA) -------------------------- */
.signup { margin-top: clamp(22px, 2.3vw, 38px); max-width: 760px; }
.signup__row { display: flex; gap: clamp(8px, 0.7vw, 11px); }

.signup__field { position: relative; flex: 1 1 54%; min-width: 0; }
.signup__input {
  width: 100%;
  height: clamp(54px, 4.3vw, 70px);
  padding: 0 clamp(16px, 1.7vw, 27px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(248, 244, 236, 0.85);
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.1vw, 17.5px);
  letter-spacing: 0.02em;
  color: var(--ink);
  outline: none;
  transition: border-color 0.35s, box-shadow 0.35s var(--ease-out), background 0.35s;
}
.signup__input::placeholder { color: var(--muted); opacity: 0.95; }
.signup__input:hover { border-color: var(--line); }
.signup__input:focus {
  border-color: var(--gold);
  background: #fffdf8;
  box-shadow: 0 0 0 4px rgba(166, 124, 71, 0.16);
}
.signup.is-invalid .signup__input { border-color: var(--generated); animation: shake 0.45s var(--ease-out); }
@keyframes shake {
  20% { transform: translateX(-6px); } 40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); } 80% { transform: translateX(2px); }
}

.signup__btn { flex: 0 0 auto; min-width: 11.5em; }
.signup__btn .check { display: none; width: 1.3em; height: 1.3em; }
.signup.is-done .signup__btn { background: var(--green-deep); pointer-events: none; }
.signup.is-done .signup__btn .check { display: block; }
.signup.is-done .signup__btn .check path {
  stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 0.6s var(--ease-out) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.signup__msg {
  min-height: 1.6em;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: clamp(12px, 0.95vw, 14.5px);
  letter-spacing: 0.04em;
  color: var(--muted);
}
.signup.is-invalid .signup__msg { color: var(--generated); }
.signup.is-done .signup__msg { color: var(--green-deep); }

/* Illustration ----------------------------------------------------------- */
.hero__art {
  position: relative;
  width: 95.5%;
  margin-left: auto;
  margin-right: calc(var(--gutter) * -0.4);
  margin-top: calc(var(--hero-top) * -1);   /* art starts right under the header rule */
  aspect-ratio: 720 / 680;
  user-select: none;
}
.art { width: 100%; height: 100%; overflow: visible; }
.art__layer { will-change: transform; }

.art__dash { stroke-dasharray: 3 6; }

.leaf { cursor: pointer; outline: none; }
.leaf__body, .leaf__grain, .leaf__sheen { transition: opacity 0.4s; }
.art.is-hovering .leaf:not(.is-hover) { opacity: 0.45; transition: opacity 0.5s var(--ease-out); }
.leaf { transition: opacity 0.5s var(--ease-out); }
.leaf:focus-visible .leaf__body { stroke: var(--ink); stroke-width: 2; }

.scan__beam { mix-blend-mode: multiply; }

/* Tooltip */
.art-tip {
  position: absolute;
  z-index: 5;
  left: 0; top: 0;
  width: min(250px, 60%);
  padding: 14px 16px 15px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(252, 249, 242, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 50px -24px rgba(30, 20, 5, 0.5);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition: opacity 0.35s ease, transform 0.5s var(--ease-out);
}
.art-tip.is-on { opacity: 1; transform: none; }
.art-tip__tag {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.art-tip__swatch { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--gold)); }
.art-tip__name { margin-top: 8px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.art-tip__text { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* Sector row ------------------------------------------------------------- */
.sectors {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: clamp(0px, 0.2vw, 4px);
}
.sector {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.4vw, 38px);
  height: clamp(74px, 5.6vw, 92px);
  margin-top: clamp(12px, 1.3vw, 22px);
}
.sector + .sector::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  height: 58px; width: 1px;
  background: var(--line);
  transform: translateY(-50%);
}
.sector__icon { position: relative; width: clamp(42px, 3.8vw, 60px); height: clamp(42px, 3.8vw, 60px); }
.sector__icon svg {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.7s var(--ease-spring);
}
.sector__icon::before {
  content: "";
  position: absolute;
  right: -34%; top: -26%;
  width: 56%; height: 56%;
  border-radius: 50%;
  background: var(--tint);
  opacity: 0.85;
  transition: transform 0.8s var(--ease-spring), opacity 0.4s;
}
.sector:hover .sector__icon::before { transform: translate(-30%, 30%) scale(1.25); opacity: 1; }
.sector:hover .sector__icon svg { transform: translateY(-3px) rotate(-4deg); }
.sector__label {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.12vw, 18px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.hero__tagline {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(14px, 1.6vw, 26px);
  margin-top: clamp(10px, 1.2vw, 20px);
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.08vw, 17px);
  letter-spacing: 0.1em;
  color: var(--muted);
}
.hero__tagline::before,
.hero__tagline::after {
  content: ""; width: clamp(40px, 9.2vw, 146px); height: 1px; background: var(--line);
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; row-gap: 12px; }
  .hero__art { margin: 0 -4% 0 auto; max-width: 640px; width: 108%; }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .sector:nth-child(3)::before { display: none; }
}
@media (max-width: 560px) {
  .signup__row { flex-direction: column; }
  .signup__btn { width: 100%; }
  .sectors { grid-template-columns: 1fr 1fr; }
  .sector { gap: 14px; }
  .hero__tagline::before, .hero__tagline::after { display: none; }
}

/* The headline is sized from the real font, so it appears the moment the font is ready (no animation). */
.js .hero__title { visibility: hidden; }
.js.fonts-ready .hero__title { visibility: visible; }
.signup__trap { display: none; }
/* Browser autofill: keep the field's own paper colour instead of the browser's blue */
.signup__input:-webkit-autofill,
.signup__input:-webkit-autofill:hover,
.signup__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px #faf6ee inset;
  box-shadow: 0 0 0 1000px #faf6ee inset;
  transition: background-color 9999s;
}
