/* Building Bonds event page. Loads after site.css (tokens, fonts, base). */
@font-face { font-family: "Micro"; src: url(fonts/Micro.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Dystopian"; src: url(fonts/dystopian_ligth-webfont.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Dystopian"; src: url(fonts/dystopian-bold-webfont.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Dystopian"; src: url(fonts/dystopian_black-webfont.woff2) format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --green: #78E486;
  --yellow: #F0E734;
  --orange: #FD6F37;
  --lilac: #6E7FC8;
}
.event { font-family: "Dystopian", "Evolventa", system-ui, sans-serif; }
.event .wrap { max-width: calc(1280px + 2 * var(--gutter)); }

/* Header */
.event-header { padding: 20px 0; }
.event-header .wrap { display: flex; justify-content: space-between; align-items: center; }
.event-header .logo img { width: clamp(100px, 10vw, 132px); }
.cvc { width: clamp(64px, 7vw, 96px); }

/* Pixel button */
.pixel-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 250px; max-width: 100%; height: 55px; position: relative; overflow: hidden;
  background: var(--green); color: #000; text-decoration: none; text-transform: uppercase;
  font-family: "Micro", monospace; font-size: 30px; line-height: 1;
}
.pixel-btn::before, .pixel-btn::after { content: ""; position: absolute; width: 10px; height: 14px; transition: height .2s ease; }
.pixel-btn::before { left: 0; top: 0; background: var(--yellow); }
.pixel-btn::after { right: 0; bottom: 0; background: var(--orange); }
.pixel-btn:hover { background: #fff; }
.pixel-btn:hover::before, .pixel-btn:hover::after { height: 100%; }

/* Banner */
.banner { padding: clamp(24px, 5vw, 60px) 0 clamp(40px, 6vw, 80px); }
.bb-art { --off: clamp(0px, 7vw - 24px, 100px); position: relative; width: min(100% - var(--off), 1018px); margin-left: var(--off); }
.bb-bars { position: relative; width: 100%; height: auto; }
/* ponytail: letter offsets measured off the live page, where the two layers were positioned separately */
.bb-letters { position: absolute; left: 11.3%; top: 15.4%; width: 79.6%; height: auto; }
.banner-copy { margin: 32px 0 0 clamp(0px, 9vw, 190px); }
.banner-copy h1 { color: var(--yellow); font-weight: 400; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.3; max-width: 34ch; margin: 0 0 32px; }

/* Date */
.date { text-align: center; color: var(--yellow); padding: clamp(32px, 6vw, 75px) 0; }
.date-big { font-weight: 300; font-size: clamp(76px, 15vw, 224px); line-height: 1; margin: 0; letter-spacing: -.02em; }
.date-big b { font-weight: 700; }
.date-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px clamp(32px, 8vw, 120px); margin-top: 32px; text-align: left; }
.save { font-size: clamp(40px, 5vw, 72px); line-height: .92; text-transform: uppercase; margin: 0; font-weight: 400; }
.save small { font-size: .3em; color: var(--lilac); vertical-align: .9em; margin-right: .1em; }
.save .v { color: var(--lilac); }
.venue { font-size: clamp(30px, 4.3vw, 62px); line-height: 1.1; margin: 0; font-weight: 700; }
.venue span { display: block; font-weight: 300; }

/* Growing together */
.growing { padding: clamp(32px, 4vw, 40px) 0; }
.growing-box {
  background: linear-gradient(121deg, var(--green), #3D9048); color: var(--navy);
  padding: clamp(40px, 6vw, 75px) clamp(24px, 10vw, 150px);
}
.growing h2, .venue, .expect h2 { text-transform: uppercase; }
.growing h2 { font-size: clamp(32px, 4vw, 54px); font-weight: 400; margin: 0 0 24px; }
.growing p { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.45; max-width: 62ch; margin: 0 0 .4em; }

/* Areas of focus */
.focus { padding: clamp(48px, 7vw, 100px) 0; }
.focus h2, .speakers h2 { font-size: clamp(32px, 4vw, 54px); font-weight: 400; text-transform: uppercase; margin: 0 0 32px; }
.focus h2 { padding-left: clamp(0px, 7vw, 190px); }
.focus-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.focus-grid li { background: #0B1856; padding: 28px 30px 32px; }
.focus-grid img { width: 104px; height: 104px; margin-bottom: 24px; }
.focus-grid h3 { font-family: "Evolventa", sans-serif; font-weight: 700; font-size: 18px; line-height: 1.2; text-transform: uppercase; margin: 0 0 22px; }
.focus-grid p { font-family: "Evolventa", sans-serif; font-size: 16px; line-height: 1.4; margin: 0; }

/* Expect */
.expect-box {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 40px; align-items: center;
  background: linear-gradient(110deg, var(--lilac), var(--navy) 95%);
  padding: clamp(40px, 6vw, 100px) clamp(24px, 6vw, 110px);
}
.expect h2 { font-size: clamp(44px, 6vw, 92px); font-weight: 400; line-height: 1; text-align: right; margin: 0; }
.expect ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px; }
.expect li { display: grid; grid-template-columns: 80px 1fr; align-items: center; gap: 16px; font-family: "Evolventa", sans-serif; font-weight: 700; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.35; max-width: 30ch; }
.expect li span { font-family: "Micro", monospace; font-size: 110px; line-height: .7; font-style: italic; text-align: center; }
.expect li:nth-child(1) span { color: var(--green); }
.expect li:nth-child(2) span { color: var(--orange); }
.expect li:nth-child(3) span { color: var(--yellow); }

/* Attend */
.attend { text-align: center; padding: clamp(72px, 10vw, 140px) 0 clamp(48px, 8vw, 100px); }
.attend h2 { color: var(--green); font-size: clamp(36px, 4.2vw, 60px); font-weight: 400; text-transform: uppercase; margin: 0; }
.attend p { font-size: clamp(19px, 2.1vw, 30px); line-height: 1.35; max-width: 34ch; margin: 32px auto 48px; }

/* Speakers */
.speakers { padding: clamp(48px, 7vw, 100px) 0; }
.speakers h2 { text-align: center; }
.speaker-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.speaker { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; background: #fff; color: #000; position: relative; overflow: hidden; }
.speaker:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.speaker img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1); transition: transform .4s ease; }
.speaker-name { display: block; padding: 6px 8px; text-align: center; font-family: "Evolventa", sans-serif; font-weight: 700; font-size: clamp(14px, 1.3vw, 18px); }
.speaker-role { display: block; font-family: "Evolventa", sans-serif; font-size: 13px; line-height: 1.3; padding: 0 10px 10px; text-align: center; }
.speaker-role::after { content: " ↗"; }
@media (hover: hover) {
  .speaker-role { position: absolute; inset: auto 0 0; padding: 12px 10px; background: var(--c, var(--lilac)); transform: translateY(100%); transition: transform .3s ease; }
  .speaker:hover .speaker-role, .speaker:focus-visible .speaker-role { transform: none; }
  .speaker:hover img { transform: scale(1.08); }
}
.speaker-grid li:nth-child(4n+2) .speaker { --c: var(--orange); }
.speaker-grid li:nth-child(4n+3) .speaker { --c: var(--green); }
.speaker-grid li:nth-child(4n+4) .speaker { --c: var(--yellow); }

/* Schedule */
.schedule { padding: clamp(48px, 7vw, 100px) 0; }
.schedule h2 { color: var(--yellow); font-size: clamp(28px, 3vw, 40px); font-weight: 400; margin: 0 0 24px; padding-left: 190px; }
.schedule ol { list-style: none; margin: 0; padding: 0; max-width: 1060px; }
.slot { display: grid; grid-template-columns: 120px 70px minmax(0, 1fr); }
.slot time { color: var(--yellow); font-family: "Evolventa", sans-serif; font-weight: 700; font-size: clamp(22px, 2.4vw, 36px); line-height: 1; padding-top: 4px; }
.slot-line { position: relative; }
.slot-line::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: #fff; }
.slot-line::after { content: ""; position: absolute; left: 50%; top: 22px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; }
.slot:first-child .slot-line::before { top: 22px; }
.slot-card { --bg: #fff; position: relative; background: var(--bg); color: var(--navy); padding: 20px 32px 24px 110px; margin-bottom: 30px; }
.slot-card.green { --bg: var(--green); }
.slot-card.yellow { --bg: var(--yellow); }
.slot-card.orange { --bg: var(--orange); }
.slot-card.blue { --bg: var(--lilac); }
.slot-num { position: absolute; left: 18px; top: 12px; min-width: 72px; text-align: center; font-family: "Micro", monospace; font-size: 72px; line-height: 1; }
.slot-card h3 { font-family: "Evolventa", sans-serif; font-weight: 700; font-size: clamp(20px, 2.4vw, 32px); line-height: 1.2; margin: 0; }
.role { margin-top: 16px; }
.role-label { display: block; font-family: "Evolventa", sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .02em; margin-bottom: 2px; }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.person { all: unset; cursor: pointer; display: block; }
.person:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.person strong { font-family: "Evolventa", sans-serif; font-size: clamp(16px, 1.5vw, 21px); text-transform: uppercase; }
.person strong::after { content: " ↗"; font-weight: 400; }
.person:hover strong { text-decoration: underline; }
.person small { display: block; font-family: "Evolventa", sans-serif; font-weight: 700; font-size: 12px; margin-top: 2px; }

/* Speaker dialog */
.bio { border: 0; padding: 0; max-width: min(860px, calc(100% - 32px)); max-height: calc(100% - 32px); background: var(--lilac); color: #fff; }
.bio::backdrop { background: rgba(3, 12, 54, .8); }
.bio-inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.bio img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.bio-text { padding: 40px 32px 32px; font-family: "Evolventa", sans-serif; }
.bio h3 { font-size: 30px; margin: 0; }
.bio h4 { font-size: 16px; font-weight: 400; margin: 6px 0 20px; }
.bio p { font-size: 16px; line-height: 1.5; margin: 0 0 1em; }
.bio-close { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border: 0; background: var(--navy); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }

/* Footer */
.event-footer { padding: 0; }
.event-footer-box {
  display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 40px; align-items: center;
  background: linear-gradient(108deg, #bfb82e, #908A00); color: var(--navy);
  padding: clamp(48px, 6vw, 100px) var(--gutter);
}
.event-footer-box p { font-family: "Evolventa", sans-serif; font-weight: 700; font-size: clamp(15px, 1.4vw, 21px); line-height: 1.45; max-width: 60ch; margin: 0 0 .7em; }
.event-footer-box .social img { width: 34px; height: 34px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .focus-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .speaker-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .expect-box { grid-template-columns: minmax(0, 1fr); }
  .expect h2 { text-align: left; }
  .expect h2 br { display: none; }
  .speaker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .schedule h2 { padding-left: 0; }
  .slot { grid-template-columns: 32px minmax(0, 1fr); }
  .slot time { grid-column: 2; padding: 0 0 10px; font-size: 22px; }
  .slot-line { grid-row: 1 / span 2; grid-column: 1; }
  .slot-card { grid-column: 2; }
  .event-footer-box { grid-template-columns: 100px minmax(0, 1fr); }
  .event-footer-box .social { grid-column: 2; }
}
@media (max-width: 640px) {
  .focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .focus-grid li { padding: 20px 16px; }
  .focus-grid img { width: 72px; height: 72px; }
  .focus-grid li:last-child { grid-column: 1 / -1; }
  .speaker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .expect li { grid-template-columns: 56px 1fr; }
  .expect li span { font-size: 76px; }
  .slot-card { padding: 16px 16px 20px 68px; }
  .slot-num { left: 8px; min-width: 52px; font-size: 52px; }
  .people { grid-template-columns: minmax(0, 1fr); }
  .bio-inner { grid-template-columns: minmax(0, 1fr); }
  .bio img { aspect-ratio: 4 / 3; height: auto; object-position: top; }
  .bio-text { padding: 24px 20px; }
  .event-footer-box { grid-template-columns: minmax(0, 1fr); }
  .event-footer-box img.bb { width: 90px; }
  .event-footer-box .social { grid-column: 1; }
}
