/* ==========================================================================
   Lab2Launch — draft site
   Palette : Illini Blue #13294B · Illini Orange #FF5F05 · cool paper #F1F3F7
   Type    : Archivo (expanded — display) · Newsreader (serif — body)
             IBM Plex Mono (utility — labels, dates, data)
   Device  : the "2" in Lab2Launch is an arrow. Transitions are set as
             `origin → venture` throughout.
   ========================================================================== */

/* --- tokens ------------------------------------------------------------- */

:root {
  --navy: #13294b;
  --navy-deep: #0b1730;
  --orange: #ff5f05;
  --orange-soft: #ffece0;
  --paper: #f1f3f7;
  --white: #ffffff;
  --slate: #5c6e8a;
  --rule: #d6dde8;
  --rule-dark: rgba(255, 255, 255, 0.14);

  --display: "Archivo", system-ui, sans-serif;
  --body: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --shell: min(1180px, 100% - 2.5rem);
  --band: clamp(4.5rem, 9vw, 7.5rem);
  --ease: cubic-bezier(0.22, 0.72, 0.24, 1);
}

/* --- reset -------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-variation-settings: "wdth" 118;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

:focus-visible {
  outline: 2.5px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Names the page for screen readers and search engines without showing a header. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- shared primitives -------------------------------------------------- */

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.band {
  padding-block: var(--band);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--orange);
  flex: none;
}

.lede {
  font-size: 1.1875rem;
  color: var(--slate);
  max-width: 56ch;
}

.section-head {
  margin-bottom: 3rem;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
}

.section-head p {
  margin-top: 1rem;
  max-width: 54ch;
  color: var(--slate);
}

/* Section head that uses the full measure of the page: title left, statement right. */
.section-head--split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.section-head--split h2 {
  margin-top: -0.1em;
}

.section-head--split p {
  margin-top: 0;
  max-width: 54ch;
  font-size: 1.125rem;
}

/* A second heading of equal rank inside one section, set off by a hairline. */
.section-head--peer {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-top: clamp(2.25rem, 4vw, 3rem);
  border-top: 1px solid var(--rule);
}

/* --- buttons ------------------------------------------------------------ */

.btn {
  --btn-bg: var(--orange);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid var(--btn-bg);
  transition: transform 0.18s var(--ease), background 0.18s, color 0.18s,
    border-color 0.18s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn .tip {
  transition: transform 0.18s var(--ease);
}

.btn:hover .tip {
  transform: translateX(3px);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  border-color: var(--rule);
}

.btn--ghost:hover {
  border-color: var(--navy);
}

.btn--onDark {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  border-color: var(--rule-dark);
}

.btn--onDark:hover {
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* --- masthead ----------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 243, 247, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.masthead__inner {
  width: var(--shell);
  margin-inline: auto;
  height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  font-family: var(--display);
  font-variation-settings: "wdth" 112;
  font-weight: 800;
  font-size: 1.1875rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark em {
  color: var(--orange);
  font-style: normal;
}

.wordmark span {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-left: 0.6rem;
  vertical-align: 0.18em;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
}

.nav a {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--slate);
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
  transition: color 0.16s, border-color 0.16s;
}

.nav a:hover {
  color: var(--navy);
}

.nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--orange);
}

/* --- hero --------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4rem, 8vw, 7rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 45%;
  height: 100%;
  background-image: radial-gradient(var(--rule) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.75;
  mask-image: linear-gradient(100deg, transparent, #000 45%, transparent 92%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.75rem);
  font-variation-settings: "wdth" 122;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.94;
  /* optical: pull the cap-height up to meet the body text's first line */
  margin-top: -0.12em;
}

.hero h1 em {
  font-style: normal;
  color: var(--orange);
}

/* --- typewriter ---------------------------------------------------------- */

/* Untyped characters are removed from flow, so the caret sits at the write
   head with no DOM shuffling. The hero column is fr-sized, so nothing around
   it moves as the line grows. */
.type-char {
  display: none;
}

.type-char.is-typed {
  display: inline;
  position: relative;
}

/* The caret hangs off the current character, absolutely positioned so it is out
   of flow. An in-flow inline-block is an atomic inline, and the browser is free
   to break the line before one — which put the caret on its own row once the
   word filled the column. */
.type-char.is-cursor::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 0.16em;
  width: 0.055em;
  height: 0.74em;
  margin-left: 0.05em;
  background: var(--orange);
  animation: caret 0.9s steps(1) 4, caret-out 0.35s 3.6s forwards;
}

@keyframes caret {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes caret-out {
  to {
    opacity: 0;
  }
}

/* Hairline between the name and the statement — the only structure the hero needs. */
.hero__body {
  border-left: 1px solid var(--rule);
  padding-left: clamp(2rem, 4vw, 3.5rem);
}

.hero__body .lede {
  margin-top: 0;
  font-size: 1.125rem;
  max-width: 46ch;
}

/* --- ledger: the signature device --------------------------------------- */

.ledger {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 24px 60px -40px rgba(19, 41, 75, 0.55);
}

.ledger__label {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 1.25rem;
}

.ledger__rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ledger__rows li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-block: 0.85rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.ledger__rows li:first-child {
  border-top: 0;
}

.ledger .from {
  color: var(--slate);
  flex: 0 1 auto;
  min-width: 0;
}

.ledger .to {
  color: var(--navy);
  font-weight: 600;
  text-align: right;
  flex: 0 1 auto;
  min-width: 0;
}

.arrow {
  flex: 1 1 auto;
  min-width: 1.1rem;
  height: 9px;
  position: relative;
  color: var(--orange);
}

.arrow::before {
  content: "";
  position: absolute;
  left: 0;
  right: 4px;
  top: 4px;
  height: 1.5px;
  background: currentColor;
  transform-origin: left center;
}

.arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0.5px;
  width: 0;
  height: 0;
  border-left: 6px solid currentColor;
  border-block: 4px solid transparent;
}

.ledger__note {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--slate);
  margin: 1.35rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  letter-spacing: 0.02em;
}

/* --- offer cards -------------------------------------------------------- */

/* Fits however many formats there are — two now, three when the next one is real. */
.offer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.offer article {
  background: var(--white);
  padding: 2.25rem 1.9rem 2.5rem;
}

.offer h3 {
  font-size: 1.3125rem;
  font-variation-settings: "wdth" 112;
  margin-bottom: 0.85rem;
}

.offer p {
  color: var(--slate);
  font-size: 1rem;
}

.offer .tick {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--orange);
  display: block;
  margin-bottom: 1.5rem;
}

/* --- event list --------------------------------------------------------- */

.events {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.events > li {
  border-bottom: 1px solid var(--rule);
}

.event {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr) 12rem;
  gap: 1.5rem 2rem;
  align-items: start;
  padding-block: 2rem;
}

.event__date {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate);
  letter-spacing: 0.04em;
  padding-top: 0.35rem;
}

.event h3 {
  font-size: 1.375rem;
  font-variation-settings: "wdth" 110;
  margin-bottom: 0.6rem;
}

.event p {
  color: var(--slate);
  font-size: 1rem;
  max-width: 62ch;
}

.event__venture {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--orange-soft);
  padding: 0.5rem 0.9rem;
  white-space: nowrap;
  align-self: start;
  justify-self: end;
  margin-top: 0.3rem;
}

.event__venture .arrow {
  flex: 0 0 1.4rem;
  min-width: 1.4rem;
}

/* --- team --------------------------------------------------------------- */

.roster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.person {
  background: var(--white);
  padding: 2rem 1.75rem 2.25rem;
}

.person__photo {
  width: 5.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 28%;
  filter: grayscale(1);
  transition: filter 0.3s var(--ease);
  margin-bottom: 1.35rem;
  background: var(--paper);
}

.person:hover .person__photo {
  filter: grayscale(0);
}

.person h3 {
  font-size: 1.1875rem;
  font-variation-settings: "wdth" 108;
  margin-bottom: 0.4rem;
}

.person h3 a {
  text-decoration: none;
  background-image: linear-gradient(var(--orange), var(--orange));
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.25s var(--ease);
}

.person h3 a:hover {
  background-size: 100% 1.5px;
}

.person__role {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--slate);
  margin: 0 0 1.1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tags span {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  color: var(--slate);
  border: 1px solid var(--rule);
  padding: 0.3rem 0.6rem;
}

/* --- sponsor ------------------------------------------------------------ */

.sponsor {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(1.5rem, 4vw, 3.25rem);
  row-gap: 0.6rem;
  align-items: baseline;
  padding: 2.25rem 2.5rem;
  background: var(--white);
  border: 1px solid var(--rule);
}

.sponsor__label {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0;
  grid-row: span 2;
  align-self: center;
  padding-right: clamp(1.5rem, 4vw, 3.25rem);
  border-right: 1px solid var(--rule);
}

.sponsor__mark {
  font-family: var(--display);
  font-variation-settings: "wdth" 106;
  font-weight: 700;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.sponsor__mark::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}

.sponsor__mark:hover {
  color: var(--orange);
}

.sponsor p {
  color: var(--slate);
  font-size: 0.9375rem;
  margin: 0;
  max-width: 62ch;
}

/* --- dark close (join + footer) ----------------------------------------- */

.dark {
  background: var(--navy-deep);
  color: var(--white);
}

.dark h2,
.dark h3 {
  color: var(--white);
}

.join__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.join h2 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-variation-settings: "wdth" 120;
  font-weight: 800;
}

.join h2 em {
  font-style: normal;
  color: var(--orange);
}

.join .lede {
  color: rgba(255, 255, 255, 0.68);
  margin-top: 1.4rem;
}

.slots {
  display: grid;
  gap: 1px;
  background: var(--rule-dark);
  border: 1px solid var(--rule-dark);
}

.slot {
  background: var(--navy-deep);
  padding: 1.75rem;
}

.slot h3 {
  font-size: 1.125rem;
  font-variation-settings: "wdth" 108;
  margin-bottom: 0.6rem;
}

.slot p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9375rem;
}

.slot .tick {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--orange);
  display: block;
  margin-bottom: 1rem;
}

.foot {
  border-top: 1px solid var(--rule-dark);
  padding-block: 3.5rem 2.5rem;
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}

.foot h4 {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 1.1rem;
}

.foot p,
.foot li {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.foot a {
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  transition: border-color 0.16s, color 0.16s;
}

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

.foot__base {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
}

/* --- notice / empty state ----------------------------------------------- */

.notice {
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--orange);
  padding: 2rem 2.25rem;
}

.notice h3 {
  font-size: 1.25rem;
  font-variation-settings: "wdth" 110;
  margin-bottom: 0.6rem;
}

.notice p {
  color: var(--slate);
  max-width: 58ch;
}

.notice a {
  color: var(--navy);
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

/* --- page header (interior pages) --------------------------------------- */

.pagehead {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
}

.pagehead h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-variation-settings: "wdth" 120;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.pagehead .lede {
  margin-top: 1.25rem;
}

/* --- motion ------------------------------------------------------------- */

.rise {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.rise.is-in {
  opacity: 1;
  transform: none;
}

.arrow::before {
  transform: scaleX(0);
  transition: transform 0.5s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms + 200ms);
}

.arrow::after {
  opacity: 0;
  transition: opacity 0.25s ease;
  transition-delay: calc(var(--i, 0) * 80ms + 600ms);
}

.is-in .arrow::before,
.arrow.is-in::before {
  transform: scaleX(1);
}

.is-in .arrow::after,
.arrow.is-in::after {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rise {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .arrow::before {
    transform: scaleX(1);
    transition: none;
  }

  .arrow::after {
    opacity: 1;
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}

/* --- responsive --------------------------------------------------------- */

@media (max-width: 62rem) {
  .hero__inner,
  .join__grid,
  .section-head--split {
    grid-template-columns: 1fr;
  }

  .section-head--split {
    gap: 1.25rem;
  }

  .section-head--split h2 {
    margin-top: 0;
  }

  .hero h1 {
    margin-top: 0;
  }

  .hero__body {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding-left: 0;
    padding-top: clamp(1.5rem, 4vw, 2.25rem);
  }

  .hero::before {
    inset: 0;
    mask-image: linear-gradient(180deg, transparent, #000 60%, transparent);
  }

  .offer {
    grid-template-columns: 1fr;
  }

  .event {
    grid-template-columns: 8rem 1fr;
  }

  .event__venture {
    grid-column: 2;
    align-self: start;
    justify-self: start;
  }

  .foot__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 40rem) {
  :root {
    --shell: min(1180px, 100% - 1.75rem);
  }

  body {
    font-size: 1rem;
  }

  .wordmark span {
    display: none;
  }

  .nav {
    gap: 1rem;
  }

  .nav a {
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
  }

  .ledger {
    padding: 1.35rem;
  }

  .ledger__rows li {
    font-size: 0.75rem;
    gap: 0.6rem;
  }

  .event {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .event__venture {
    grid-column: 1;
  }

  .event__date {
    padding-top: 0;
  }

  .sponsor {
    padding: 1.75rem;
    grid-template-columns: 1fr;
    row-gap: 1rem;
  }

  .sponsor__label {
    grid-row: auto;
    padding-right: 0;
    border-right: 0;
  }

  .foot__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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