@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/bricolage-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf9f4;
  --ink: #202124;
  --muted: #505358;
  --blue: #2946c7;
  --blue-dark: #1e3292;
  --rule: #d4d4cb;
  --display: "Bricolage Grotesque", Arial, sans-serif;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
::selection { color: #fff; background: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
main:focus { outline: none; }
.wrap { width: min(79rem, calc(100% - 7rem)); margin-inline: auto; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.skip-link { position: fixed; top: .5rem; left: .5rem; padding: .75rem 1rem; z-index: 5; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.masthead { border-bottom: 1px solid var(--rule); }
.masthead-inner, nav, .brand, .hero-actions, .footer { display: flex; align-items: center; }
.masthead-inner { min-height: 5rem; justify-content: space-between; gap: 1.5rem; }
.brand { width: fit-content; gap: .65rem; font: 780 1.55rem/1 var(--display); letter-spacing: -.04em; white-space: nowrap; }
.brand b { font-weight: 460; }
nav { gap: 2.25rem; font-size: .94rem; font-weight: 650; }
nav a { padding-block: .75rem; }
nav a:hover { color: var(--blue); }
nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .35rem; }
.community-nav { padding: .58rem 1rem; border: 1px solid currentColor; border-radius: .4rem; }
.community-nav:hover { color: var(--blue); background: #eeeefa; }

.hero {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  gap: clamp(1rem, 3vw, 3.25rem);
  padding-block: clamp(3.5rem, 5.7vw, 5.8rem);
}
.hero-copy { z-index: 1; }
h1, h2, h3 { font-family: var(--display); font-optical-sizing: auto; }
h1 { font-size: clamp(4.3rem, 7.2vw, 6rem); line-height: .96; font-weight: 790; letter-spacing: -.04em; }
.hero-copy > p { max-width: 28rem; margin-top: 1.5rem; font-size: clamp(1.08rem, 1.45vw, 1.22rem); line-height: 1.55; color: var(--muted); }
.hero-actions { flex-wrap: wrap; gap: .65rem 1.65rem; margin-top: 1.8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .62rem; border-radius: .4rem; background: var(--blue); color: white; padding: .83rem 1.22rem; min-height: 3rem; font-weight: 650; }
.button:is(:any-link, button):hover { background: var(--blue-dark); }
.button:is(:any-link, button):active { transform: translateY(1px); }
.text-link { padding-block: .7rem; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .35rem; }
.text-link:hover { color: var(--blue); }
.hero-art { position: relative; display: grid; place-items: center; padding: 0 3% 0 6%; isolation: isolate; }
.hero-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -4% -1%;
  background-image: radial-gradient(#9aacf0 1px, transparent 1.2px);
  background-size: .54rem .54rem;
  mask-image: radial-gradient(ellipse closest-side at 54% 51%, #000 45%, transparent 100%);
}
.computer-print { position: relative; width: 100%; max-width: 31rem; }
.computer { display: block; width: 100%; height: auto; }
.spark { position: absolute; display: block; width: 2.25rem; aspect-ratio: 1; clip-path: polygon(50% 0,60% 34%,85% 15%,68% 42%,100% 50%,68% 59%,85% 85%,59% 68%,50% 100%,41% 68%,15% 85%,32% 59%,0 50%,32% 41%,14% 15%,41% 33%); }
.spark-orange { top: 9%; left: 9%; background: #ec6740; transform: rotate(10deg); }
.spark-blue { bottom: 4%; right: 1%; background: var(--blue); width: 1.45rem; transform: rotate(-12deg); }

.formats, .event-preview { border-top: 1px solid var(--rule); padding-block: clamp(2.5rem, 4.5vw, 4rem) clamp(3.5rem, 6vw, 5.8rem); }
h2 { font-size: clamp(2.1rem, 3.15vw, 2.8rem); line-height: 1.07; letter-spacing: -.04em; font-weight: 740; }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; }
.event-row { display: grid; grid-template-columns: 8.5rem 1fr auto; align-items: center; gap: 1rem clamp(1.1rem, 2.5vw, 2.25rem); margin-top: 1.65rem; }
.event-date { display: grid; justify-items: start; gap: .55rem; padding: 1rem; border-radius: .4rem; color: #275b43; background: #e2efe5; font-weight: 650; line-height: 1.25; }
.event-date .icon { width: 1.45rem; height: 1.45rem; }
.event-row h3 a:hover { color: var(--blue); text-decoration: underline; }
.event-row p { max-width: 56ch; margin-top: .4rem; color: var(--muted); line-height: 1.5; }
.event-row > .text-link { color: var(--blue-dark); }
.tickets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; margin-top: 1.8rem; }
.pass {
  --stub: clamp(2.9rem, 4.2vw, 3.7rem);
  display: grid;
  grid-template-columns: 1fr var(--stub);
  background: var(--stock);
  color: var(--print);
  border-radius: .6rem;
  mask: radial-gradient(circle .6rem at calc(100% - var(--stub)) 0, transparent 96%, #000) top / 100% 51% no-repeat,
        radial-gradient(circle .6rem at calc(100% - var(--stub)) 100%, transparent 96%, #000) bottom / 100% 51% no-repeat;
}
.pass-irl { --stock: #e6eafa; --print: #253eae; }
.pass-online { --stock: #fae8d9; --print: #8e391e; }
.pass-hackathon { --stock: #e2efe5; --print: #275b43; }
.pass-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 1.65rem clamp(1rem, 1.9vw, 1.65rem) 1.4rem; }
.pass-art { display: block; align-self: center; width: 100%; height: clamp(8.5rem, 12vw, 11rem); object-fit: contain; margin-bottom: 1.6rem; }
h3 { font-weight: 740; font-size: clamp(1.7rem, 2.4vw, 2.08rem); letter-spacing: -.035em; line-height: 1.12; }
.pass-copy p { margin-top: .5rem; max-width: 35ch; color: #393e50; line-height: 1.5; }
.pass-online p { color: #544138; }
.pass-hackathon p { color: #33483c; }
.field-notes { width: 100%; margin-top: auto; padding-top: 1.2rem; }
.field-notes summary { display: flex; align-items: center; justify-content: space-between; gap: .5rem; border-top: 1px solid color-mix(in srgb, currentColor 28%, transparent); padding-block: .8rem .35rem; font-size: .94rem; font-weight: 700; }
.field-notes summary::after { content: ""; flex: 0 0 .75rem; height: .75rem; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; }
.field-notes[open] summary::after { background-size: 100% 2px, 0 0; }
.field-notes summary:hover { text-decoration: underline; text-underline-offset: .2rem; }
.field-notes p { margin-top: .35rem; }
.note-link { display: inline-block; margin-top: .75rem; padding-bottom: .2rem; font-weight: 650; text-decoration: underline; text-underline-offset: .23em; }
.note-link:hover { text-decoration-thickness: 2px; }
.stub { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .75rem; position: relative; }
.stub::before { content: ""; position: absolute; inset: .8rem auto .8rem 0; border-left: 1.5px dashed currentColor; opacity: .5; }
.stub > span:last-child { font: 700 .8rem/1 var(--display); letter-spacing: .1em; }
.barcode {
  display: block;
  width: 1.95rem;
  height: 4.2rem;
  opacity: .8;
  background: repeating-linear-gradient(var(--bar-direction, to bottom), currentColor 0 1px, transparent 1px 3px, currentColor 3px 6px, transparent 6px 8px, currentColor 8px 9px, transparent 9px 11px, currentColor 11px 13px, transparent 13px 16px, currentColor 16px 20px, transparent 20px 22px);
}
.events-page { display: flex; flex-direction: column; min-height: 100vh; }
.events-list { flex: 1; padding-block: clamp(2.75rem, 6vw, 5.5rem); }
.event-feature { margin-top: clamp(1.75rem, 4vw, 3.5rem); }
.event-feature-inner { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); padding: clamp(1.5rem, 4.5vw, 4rem); }
.event-status { width: fit-content; border: 1px solid currentColor; border-radius: .3rem; padding: .3rem .65rem; font-size: .9rem; font-weight: 650; }
.event-feature h2 { max-width: 15ch; margin-block: 1rem; font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: 1; }
.event-feature-copy > p:not(.event-status) { max-width: 52ch; margin-top: .7rem; line-height: 1.55; }
.event-feature-copy .text-link { padding-block: 0; }
.event-board { display: block; width: 100%; height: auto; }
.events-page .footer { border-top: 1px solid var(--rule); flex-wrap: wrap; }
.contact { background: var(--blue-dark); color: var(--paper); }
.contact-inner { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(2rem, 7vw, 7rem); padding-block: clamp(3.5rem, 6vw, 6rem); }
.contact-intro h2 { font-size: clamp(2.8rem, 5vw, 4.5rem); text-wrap: balance; }
.contact-intro p { margin-top: 1rem; max-width: 36ch; font-size: 1.1rem; line-height: 1.55; }
.contact-form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1rem;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border-radius: .6rem;
}
.contact-form::before { content: ""; position: absolute; inset: 0 0 auto; height: .42rem; background: repeating-linear-gradient(120deg, #758adc 0 1.3rem, var(--paper) 1.3rem 2.25rem, #e88760 2.25rem 3.55rem, var(--paper) 3.55rem 4.5rem); }
.contact-form label { display: block; min-width: 0; font-size: .95rem; font-weight: 650; }
.contact-form label span { color: var(--muted); font-weight: 400; }
.contact-form :is(input, textarea) { display: block; width: 100%; min-height: 2.8rem; margin-top: .45rem; border: 1px solid #878d9b; border-radius: .3rem; padding: .6rem .75rem; color: var(--ink); background: #fff; font: 400 1rem/1.4 "DM Sans", Arial, sans-serif; }
.contact-form textarea { resize: vertical; min-height: 6rem; }
.full-field, .contact-form .button { grid-column: 1 / -1; }
.contact-form .button { justify-self: start; border: 0; }
.community { border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: clamp(3rem, 5vw, 5rem); }
.community-copy { max-width: 36rem; }
.community-copy p { margin-top: .65rem; color: var(--muted); line-height: 1.55; }
.invite { flex-shrink: 0; }
.footer { justify-content: space-between; gap: 1rem; padding-block: 1.65rem; }
.footer .brand { font-size: 1.15rem; gap: .45rem; }
.footer-icons { display: flex; gap: .35rem; }
.footer-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: .4rem; color: var(--blue-dark); }
.footer-icon svg { width: 1.45rem; height: 1.45rem; }
.footer-icon:any-link:hover { background: #e6eafa; }

@media (max-width: 60rem) {
  .wrap { width: calc(100% - 4rem); }
  h1 { font-size: clamp(3.65rem, 7.2vw, 4.6rem); }
  .hero-actions { gap: .4rem 1.1rem; }
}
@media (min-width: 44.01rem) and (max-width: 58rem) {
  .tickets { grid-template-columns: 1fr; }
  .pass-copy { display: grid; grid-template-columns: 8.5rem 1fr; align-items: start; column-gap: 1.5rem; padding: 1.45rem 1.6rem; }
  .pass-art { grid-row: 1 / span 3; height: 7rem; margin: 0; }
  .pass-copy > p, .field-notes { grid-column: 2; }
  .pass-copy p { max-width: 62ch; }
  .field-notes { padding-top: .65rem; }
}
@media (max-width: 44rem) {
  .wrap { width: calc(100% - 2.5rem); }
  .masthead-inner { min-height: 4.2rem; gap: .6rem; }
  .brand { font-size: 1.3rem; gap: .4rem; }
  .brand img { width: 1.65rem; height: 1.65rem; }
  nav { gap: .9rem; font-size: .875rem; }
  .community-nav { padding: .5rem .7rem; }
  .hero { grid-template-columns: 1fr; padding-block: 2.85rem 2.5rem; gap: 1.85rem; }
  h1 { font-size: clamp(3.65rem, 12vw, 5rem); }
  .hero-copy > p { margin-top: 1.1rem; }
  .hero-actions { margin-top: 1.25rem; }
  .hero-art { width: min(95%, 23rem); justify-self: center; }
  .spark-orange { width: 1.8rem; }
  .formats, .event-preview { padding-block: 1.8rem 2.35rem; }
  .event-row { grid-template-columns: 1fr; gap: .8rem; justify-items: start; margin-top: 1.1rem; }
  .event-date { display: flex; align-items: center; padding: .45rem .65rem; font-size: .9rem; }
  .event-date .icon { width: 1.1rem; height: 1.1rem; }
  .event-feature { grid-template-columns: minmax(0, 1fr); mask: none; }
  .event-feature-inner { grid-template-columns: minmax(0, 1fr); }
  .event-feature .stub { flex-direction: row; padding: .9rem; }
  .event-feature .stub::before { inset: 0 .8rem auto; border-left: 0; border-top: 1.5px dashed currentColor; }
  .event-feature .barcode { --bar-direction: to right; width: 4.2rem; height: 1.25rem; }
  .event-board { width: min(100%, 13rem); justify-self: center; }
  .tickets { grid-template-columns: 1fr; gap: .9rem; margin-top: 1.15rem; }
  .pass-copy { padding: 1.45rem; }
  .pass-art { height: 9rem; margin-bottom: 1rem; }
  .pass-copy p { max-width: 42ch; }
  .contact-inner { grid-template-columns: 1fr; gap: 1.85rem; padding-block: 2.75rem 3.2rem; }
  .community { align-items: flex-start; flex-direction: column; gap: 1.1rem; padding-block: 2.1rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .computer-print::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    clip-path: polygon(26% 12%, 28% 8%, 65% 6%, 68% 9%, 67% 47%, 65% 51%, 28% 48%, 25% 44%);
    background: linear-gradient(to bottom, transparent 43%, #abc6ff33 48%, #faf9f4aa 49.5%, transparent 51%) 0 100% / 100% 210% no-repeat;
    animation: crt-scan 8s linear infinite;
  }
  .pass { --angle: -5deg; --delay: 0s; }
  .pass-online { --angle: 3deg; --delay: .08s; }
  .pass-hackathon { --angle: 5deg; --delay: .16s; }
  .pass.is-arriving { transform-origin: center 80%; animation: deal-ticket .8s cubic-bezier(.19,.8,.25,1) var(--delay) backwards; }
  .pass:focus-within { animation: none; }
  .pass-art { transition: transform .35s cubic-bezier(.2,.8,.25,1); }
  @keyframes deal-ticket {
    from { transform: translateY(2.8rem) rotate(var(--angle)) scale(.96); }
    76% { transform: translateY(-.25rem) rotate(0) scale(1); }
    to { transform: none; }
  }
  @keyframes crt-scan {
    from { background-position-y: 100%; }
    17%, to { background-position-y: 28%; }
  }
  @supports (animation-timeline: view()) {
    .hero { view-timeline-name: --hero-scroll; }
    .computer-print { animation: drift-computer linear both; animation-timeline: --hero-scroll; animation-range: exit 0% exit 100%; }
    .spark { animation: drift-spark linear both; animation-timeline: --hero-scroll; animation-range: exit 0% exit 100%; }
    @keyframes drift-computer { to { transform: translateY(2rem) rotate(-3deg); } }
    @keyframes drift-spark { to { translate: 0 -1.4rem; rotate: 55deg; } }
  }
  @media (hover: hover) and (pointer: fine) {
    .pass:hover .pass-art { transform: translateY(-.25rem) rotate(-2deg); }
  }
}
@media (max-width: 34rem) {
  .contact-form { grid-template-columns: 1fr; }
}
@media (max-width: 26rem) {
  .masthead-inner { flex-wrap: wrap; row-gap: 0; padding-block: .45rem; }
  .masthead .brand { font-size: 1.15rem; }
  .masthead nav { gap: .65rem; margin-left: auto; }
  .community-nav { padding-inline: .5rem; }
}
@media (max-width: 23rem) {
  .wrap { width: calc(100% - 2rem); }
  nav { gap: .65rem; }
  .hero-actions { column-gap: .8rem; font-size: .94rem; }
  .button { padding-inline: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
