/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 6rem var(--gutter) 5rem;
}

.hero-copy {
  max-width: 46rem;
}

.hero-hello {
  font: 400 var(--step-0) / 1 var(--mono);
  color: var(--w-2);
}

.hero-facts {
  display: grid;
  gap: 0.35rem;
  margin: 1.6rem 0 2.4rem;
  font: 400 var(--step--1) / 1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--w-3);
}

.hero-kicker {
  font: 400 var(--step--1) / 1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--w-3);
}

.hero h1 {
  margin: 0.4rem 0 2rem -0.05em;
  font-size: clamp(5.5rem, 1rem + 17vw, 15rem);
  font-weight: 600;
  line-height: 0.85;
  letter-spacing: -0.03em;
  text-shadow: 0 0 80px rgba(255, 255, 255, 0.12);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.4rem;
}

.chip {
  font: 400 var(--step--1) / 1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--w-2);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  font: 400 var(--step--1) / 1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--w-3);
}

/* the name resolving out of the dark on load */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: resolve 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero-copy > :nth-child(2) { animation-delay: 0.1s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.2s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.3s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.7s; }

  @keyframes resolve {
    from {
      opacity: 0;
      filter: blur(14px);
      letter-spacing: 0.08em;
    }
  }
}

/* ---------- shared section frame ---------- */
.block {
  padding: clamp(5rem, 14vh, 9rem) var(--gutter);
}

.col {
  max-width: 38rem;
}

.col--full {
  max-width: 70rem;
}

.sec-label {
  margin-bottom: 1rem;
  font: 400 var(--step--1) / 1.4 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--w-3);
}

.sub {
  margin-top: 0.75rem;
  color: var(--w-3);
  max-width: 34rem;
}

.lede {
  margin-top: 1.25rem;
  font-size: var(--step-1);
  line-height: 1.45;
}

/* ---------- who: glass terminal ---------- */
.terminal {
  margin: 2.5rem 0 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  font: 400 0.9375rem / 1.8 var(--mono);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.015) 42%, rgba(255, 255, 255, 0.06)),
    rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 40px 90px rgba(0, 0, 0, 0.7);
}

.term-bar {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 1.4rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  color: var(--w-3);
}

.live::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.55em;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 10px var(--live);
  vertical-align: 0.1em;
}

@media (prefers-reduced-motion: no-preference) {
  .live::before {
    animation: pulse 2s ease-in-out infinite;
  }
  @keyframes pulse {
    50% { opacity: 0.35; }
  }
}

.term-body {
  padding: 1.1rem 1.4rem 1.2rem;
}

.term-body .k {
  display: inline-block;
  width: 6.5rem;
  color: var(--w-3);
}

.prompt {
  color: var(--white);
}

.caret {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  vertical-align: text-bottom;
  background: var(--white);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ---------- what we do: glass panels drifting past ---------- */
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 3rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem);
  margin-top: 3.5rem;
}

.card-slot:nth-child(even) {
  margin-top: clamp(0rem, 8vh, 5rem);
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4rem;
  min-height: 15rem;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.015) 42%, rgba(255, 255, 255, 0.06)),
    rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 0 40px rgba(255, 255, 255, 0.03),
    0 40px 90px rgba(0, 0, 0, 0.7);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

.card .num {
  font: 400 var(--step--1) / 1.4 var(--mono);
  letter-spacing: 0.14em;
  color: var(--w-3);
}

.card h3 {
  font-size: var(--step-2);
  font-weight: 500;
}

.card p {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font: 400 var(--step--1) / 1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--w-2);
}

/* ---------- contact ---------- */
.contact {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
  padding: 8rem var(--gutter) 2rem;
}

.contact h2 {
  margin-top: auto;
  max-width: 16ch;
  font-size: clamp(2.3rem, 1rem + 5.2vw, 5.25rem);
  font-weight: 500;
  line-height: 1.02;
}

.contact h2 span {
  color: var(--w-4);
}

.contact-lede {
  max-width: 34rem;
  margin-top: 0;
  color: var(--w-2);
}

.email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.contact-mail {
  font: 400 clamp(1rem, 0.7rem + 1.4vw, 1.75rem) / 1.2 var(--mono);
  color: var(--white);
  overflow-wrap: anywhere;
}

.copy {
  padding: 0.5rem 0.9rem;
  font: 400 var(--step--1) / 1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--w-2);
  background: var(--glass-dark);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.copy:hover,
.copy.done {
  color: var(--white);
  border-color: var(--white);
}

.contact-end {
  align-self: stretch;
  margin-top: auto;
  padding-top: 3rem;
  font-size: var(--step--1);
  color: var(--w-3);
}

.foot-top {
  margin-bottom: 1rem;
  font-size: var(--step-0);
  color: var(--w-2);
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .hero {
    align-items: flex-start;
    padding-top: 6.5rem;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .card-slot:nth-child(even) {
    margin-top: 0;
  }
  .term-body .k {
    width: 5rem;
  }
}
