/* ============================================================
   HART Week Hackathon — event microsite
   ============================================================ */
html { scroll-behavior: smooth; }
.hk [id] { scroll-margin-top: 5rem; }

/* Event bar --------------------------------------------------- */
.hk-bar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: oklch(11% 0.05 255 / 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--rule-bold) solid;
  border-image: var(--gradient-brand) 1;
  padding-inline: var(--page-pad);
}
.hk-bar__inner {
  max-width: var(--page-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md) var(--space-lg);
  padding-block: var(--space-sm);
  flex-wrap: wrap;
}
.hk-bar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--color-paper);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-lg);
  white-space: nowrap;
}
/* Heart sits in a small white bubble so its navy end doesn't sink into the dark bar */
.hk-bar__brand img {
  box-sizing: content-box;
  width: 2.15rem;
  height: 2.15rem;
  object-fit: contain;
  padding: 0.45rem;
  background: var(--color-paper);
  border-radius: 50%;
  box-shadow: 0 0 0 2px oklch(100% 0 0 / 0.12);
}
.hk-bar__brand em { color: var(--color-accent-bright); }
.hk-bar__nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) clamp(0.75rem, 1.6vw, 1.5rem); }
.hk-bar__nav a {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: oklch(85% 0.01 260);
  padding-block: 0.4em;
  white-space: nowrap;
  transition: color var(--dur-short) var(--ease-out);
}
.hk-bar__nav a:hover { color: var(--color-accent-bright); }
.hk-bar__home {
  border: 1px solid oklch(100% 0 0 / 0.3);
  border-radius: var(--radius-pill);
  padding: 0.4em 0.9em !important;
}

/* Hero -------------------------------------------------------- */
.hk-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-ink);
  color: var(--color-paper);
  padding-inline: var(--page-pad);
  isolation: isolate;
}
/* Soft glow in the logo colors */
.hk-hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(closest-side, #d0468966, #8a1ba244 45%, transparent 70%);
  z-index: -1;
}
.hk-hero::after {
  content: "";
  position: absolute;
  inset: auto auto -50% -20%;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(closest-side, #fd9a0740, transparent 70%);
  z-index: -1;
}
.hk-hero__inner {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-block: clamp(4rem, 9vw, 8rem) clamp(3rem, 6vw, 5rem);
}
.hk-eyebrow {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-accent-bright);
  margin-bottom: var(--space-lg);
}
.hk-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.25rem, 8vw + 1rem, 8rem);
  line-height: 0.98;
  letter-spacing: var(--tracking-display);
  margin-bottom: var(--space-lg);
  text-wrap: balance;
}
.hk-hero__title em {
  font-style: italic;
  /* Logo colors, stopping at a lifted violet so the word stays readable on navy */
  background: linear-gradient(to right, #fd9a07 0%, #e2604a 30%, #d04689 58%, #b16cf0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em;
}
.hk-hero__lede {
  font-size: var(--text-xl);
  line-height: var(--lh-relaxed);
  color: oklch(88% 0.01 260);
  max-width: 52ch;
}
.hk-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md) var(--space-xl);
  margin-top: var(--space-xl);
}
.hk-btn-light { background: var(--color-paper); color: var(--color-ink); border-color: var(--color-paper); }
.hk-btn-light:hover { color: var(--color-paper); border-color: transparent; }
.hk-link-light { color: var(--color-accent-bright); background-image: linear-gradient(var(--color-accent-bright), var(--color-accent-bright)); }

.hk-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid oklch(100% 0 0 / 0.18);
}
.hk-facts div { padding: var(--space-lg) var(--space-lg) 0 0; }
.hk-facts div + div { padding-left: var(--space-lg); border-left: 1px solid oklch(100% 0 0 / 0.18); }
.hk-facts dt {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: oklch(72% 0.02 260);
  margin-bottom: var(--space-xs);
}
.hk-facts dd { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); line-height: var(--lh-snug); }

/* Sections ---------------------------------------------------- */
.hk-section {
  max-width: var(--page-max);
  margin-inline: auto;
  padding: var(--space-3xl) var(--page-pad);
}
.hk-section + .hk-section { border-top: var(--rule-bold) solid; border-image: var(--gradient-brand) 1; }
.hk-section__head { max-width: 60ch; margin-bottom: var(--space-2xl); }
.hk-section__head .section-head { margin-bottom: var(--space-md); }
.hk-sub { font-size: var(--text-lg); line-height: var(--lh-relaxed); color: var(--color-ink-2); }

.hk-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hk-about__text .section-head { margin-bottom: var(--space-lg); }
.hk-about__text p:not(.kicker) { font-size: var(--text-lg); line-height: var(--lh-relaxed); color: var(--color-ink-2); }
.hk-about__text p + p { margin-top: var(--space-md); }
.hk-about__photo { margin: 0; }
.hk-about__photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-photo); }

/* Prompt cards */
.hk-cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}
.hk-card {
  position: relative;
  background: var(--color-paper-2);
  border-radius: var(--radius-card);
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  overflow: hidden;
}
.hk-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--gradient-brand);
}
.hk-card__num {
  font-family: var(--font-label);
  font-size: var(--text-sm);
  color: var(--color-accent-ink);
}
.hk-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-ink);
  margin: var(--space-sm) 0;
}
.hk-card p { color: var(--color-neutral); line-height: var(--lh-normal); }

/* Schedule */
.hk-phases {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: start;
}
.hk-phase {
  background: var(--color-paper-2);
  border-radius: var(--radius-card);
  padding: var(--space-xl) var(--space-lg);
}
.hk-phase--night { background: var(--color-ink); color: var(--color-paper); }
.hk-phase__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-3xl);
  margin-bottom: var(--space-lg);
}
.hk-phase__name span {
  display: block;
  font-family: var(--font-label);
  font-weight: 400;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-accent-ink);
  margin-bottom: var(--space-xs);
}
.hk-phase--night .hk-phase__name span { color: var(--color-accent-bright); }

.hk-timeline { list-style: none; position: relative; }
.hk-timeline::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--gradient-brand-v);
  border-radius: 2px;
}
.hk-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: var(--space-md);
  padding: 0 0 var(--space-lg) var(--space-xl);
}
.hk-timeline li:last-child { padding-bottom: 0; }
.hk-timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--color-paper);
  border: 2px solid var(--color-accent-ink);
}
.hk-phase--night .hk-timeline li::before { background: var(--color-ink); border-color: var(--color-accent-bright); }
.hk-timeline li.is-key::before { background: var(--gradient-brand); border-color: transparent; }
.hk-timeline time {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--color-muted);
  padding-top: 0.2rem;
}
.hk-phase--night .hk-timeline time { color: oklch(72% 0.02 260); }
.hk-timeline strong { display: block; font-weight: 600; font-size: var(--text-base); color: var(--color-ink); }
.hk-phase--night .hk-timeline strong { color: var(--color-paper); }
.hk-timeline p { margin-top: 0.2rem; font-size: var(--text-sm); line-height: var(--lh-normal); color: var(--color-neutral); }
.hk-phase--night .hk-timeline p { color: oklch(82% 0.01 260); }

/* Demo Night band */
.hk-band {
  background: var(--color-ink);
  color: var(--color-paper);
  padding-inline: var(--page-pad);
}
.hk-band__inner {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-block: var(--space-3xl);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hk-band__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-4xl);
  line-height: var(--lh-snug);
  margin-bottom: var(--space-lg);
  text-wrap: balance;
}
.hk-band p:not(.kicker) { font-size: var(--text-lg); line-height: var(--lh-relaxed); color: oklch(86% 0.01 260); }
.hk-band strong { color: var(--color-accent-bright); font-weight: 600; }
.hk-band__photo { margin: 0; }
.hk-band__photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-photo); }

/* Sponsor */
.hk-sponsor__card {
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
}
.hk-sponsor__card .section-head { margin: 0 auto var(--space-lg); max-width: 22ch; }
.hk-sponsor__card p:not(.kicker) { font-size: var(--text-lg); line-height: var(--lh-relaxed); color: var(--color-ink-2); max-width: 60ch; margin-inline: auto; }
.hk-sponsor__card strong { color: var(--color-ink); }
.hk-sponsor__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-md); margin-top: var(--space-xl); }

/* FAQ */
.hk-faq__list { max-width: 52rem; border-top: 1px solid var(--color-rule); }
.hk-faq details { border-bottom: 1px solid var(--color-rule); }
.hk-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding-block: var(--space-lg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-ink);
}
.hk-faq summary::-webkit-details-marker { display: none; }
.hk-faq summary::after {
  content: "+";
  font-family: var(--font-label);
  font-weight: 400;
  font-size: var(--text-xl);
  color: var(--color-accent-ink);
  transition: transform var(--dur-mid) var(--ease-out);
}
.hk-faq details[open] summary::after { transform: rotate(45deg); }
.hk-faq details p { padding-bottom: var(--space-lg); max-width: 65ch; line-height: var(--lh-relaxed); color: var(--color-neutral); }

/* Responsive -------------------------------------------------- */
@media (max-width: 60rem) {
  .hk-about, .hk-band__inner, .hk-phases { grid-template-columns: 1fr; }
  .hk-cards { grid-template-columns: 1fr; }
  .hk-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hk-facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hk-bar { position: static; }
}
@media (max-width: 40rem) {
  .hk-hero__lede { font-size: var(--text-lg); }
  .hk-timeline li { grid-template-columns: 1fr; gap: 0.15rem; }
  .hk-facts { grid-template-columns: 1fr; }
  .hk-facts div, .hk-facts div + div { padding-left: 0; border-left: 0; }
  .hk-bar__nav a:not(.hk-bar__home) { display: none; }
  .hk .btn { white-space: normal; text-align: center; line-height: 1.4; }
}

/* Countdown --------------------------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Its own centered band between the hero and "What it is" */
.hk-count {
  max-width: var(--page-max);
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 5rem) var(--page-pad) 0;
  text-align: center;
}
.hk-count + .hk-section { padding-top: clamp(3rem, 6vw, 5rem); }
.hk-count__label {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-accent-ink);
  margin-bottom: var(--space-lg);
}
.hk-count__units {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 9rem));
  justify-content: center;
  gap: var(--space-md);
}
.hk-count__units div {
  position: relative;
  text-align: center;
  padding: var(--space-lg) var(--space-xs) var(--space-md);
  border-radius: var(--radius-card);
  background: var(--color-ink);
  box-shadow: 0 18px 40px -24px oklch(11% 0.05 255 / 0.7);
  overflow: hidden;
}
/* Thin logo-gradient strip along the top of each tile */
.hk-count__units div::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gradient-brand);
}
.hk-count__units span {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.25rem, 4vw + 0.75rem, 4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--color-paper);
}
.hk-count__units small {
  display: block;
  margin-top: var(--space-xs);
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-accent-bright);
}
.hk-count.is-live .hk-count__label { color: #8a1ba2; }

/* Get notified page ------------------------------------------- */
.hk-notify {
  position: relative;
  overflow: hidden;
  background: var(--color-ink);
  color: var(--color-paper);
  padding-inline: var(--page-pad);
  isolation: isolate;
}
.hk-notify::before {
  content: "";
  position: absolute;
  inset: -30% -15% auto auto;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, #d0468955, #8a1ba233 45%, transparent 70%);
  z-index: -1;
}
.hk-notify__inner {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-block: clamp(3.5rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.hk-notify__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-display-s);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  margin-bottom: var(--space-lg);
  color: var(--color-paper);
}
.hk-notify__title--s { font-size: var(--text-4xl); }
.hk-notify__title em {
  font-style: italic;
  background: linear-gradient(to right, #fd9a07 0%, #e2604a 30%, #d04689 58%, #b16cf0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em;
}
.hk-notify__lede { font-size: var(--text-lg); line-height: var(--lh-relaxed); color: oklch(86% 0.01 260); max-width: 46ch; }
.hk-notify__points { list-style: none; margin-top: var(--space-xl); display: grid; gap: var(--space-sm); }
.hk-notify__points li {
  display: flex; align-items: center; gap: var(--space-sm);
  font-family: var(--font-label); font-size: var(--text-sm); color: oklch(90% 0.01 260);
}
.hk-notify__points li::before {
  content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; flex-shrink: 0;
  background: var(--gradient-brand);
}

.hk-form {
  background: var(--color-paper);
  color: var(--color-ink);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 30px 60px -30px oklch(0% 0 0 / 0.6);
  border-top: 4px solid transparent;
  background-image: linear-gradient(var(--color-paper), var(--color-paper)), var(--gradient-brand);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.hk-form--done { color: var(--color-ink); }
.hk-form--done .hk-notify__title { color: var(--color-ink); }
.hk-form--done .hk-notify__lede { color: var(--color-neutral); margin-bottom: var(--space-xl); }
.hk-form--done .hk-eyebrow { color: var(--color-accent-ink); }
.hk-form__trap { position: absolute; left: -9999px; }
.hk-form__field { border: 0; padding: 0; margin: 0 0 var(--space-lg); min-width: 0; }
.hk-form__field > label, .hk-form__field legend {
  display: block;
  font-family: var(--font-label);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-2);
  margin-bottom: var(--space-xs);
  padding: 0;
}
.hk-form__field label span, .hk-form__field legend span { color: var(--color-muted); text-transform: none; letter-spacing: 0; }
.hk-form input[type="text"], .hk-form input[type="email"] {
  width: 100%;
  font: inherit;
  font-size: var(--text-base);
  color: var(--color-ink);
  background: var(--color-paper-2);
  border: 1px solid var(--color-rule);
  border-radius: 10px;
  padding: 0.8em 0.9em;
  transition: border-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}
.hk-form input[type="text"]:focus, .hk-form input[type="email"]:focus {
  outline: none;
  border-color: #8a1ba2;
  box-shadow: 0 0 0 3px #8a1ba233;
}
.hk-form__options { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.hk-form__options label {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: var(--text-sm);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-pill);
  padding: 0.45em 0.9em;
  cursor: pointer;
  transition: border-color var(--dur-short) var(--ease-out), background var(--dur-short) var(--ease-out);
}
.hk-form__options label:hover { border-color: var(--color-ink); }
.hk-form__options label:has(input:checked) { background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); }
.hk-form__options input { accent-color: #d04689; }
.hk-form__submit { width: 100%; justify-content: center; font-size: var(--text-base); padding: 1em 1.4em; cursor: pointer; }
.hk-form__fine { margin-top: var(--space-sm); text-align: center; font-size: var(--text-xs); color: var(--color-muted); }
.hk--notify .foot { margin-top: 0; }
.hk--notify .foot__legal a { color: inherit; }

@media (max-width: 60rem) {
  .hk-notify__inner { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  .hk-count__units { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xs); }
  .hk-count__units span { font-size: 1.9rem; }
  .hk-count__units small { font-size: 0.6rem; letter-spacing: 0.1em; }
}
