/* CISO, CSUSB. Dark theme, blue from the badge.
   The circuit traces run into the badge like it's the chip on the board. */

:root {
  --bg: #07090c;
  --bg-2: #0b0f14;
  --surface: #10151c;
  --line: #1b232d;
  --line-strong: #2a3542;
  --text: #e9eef4;
  --muted: #9aa6b4;
  --dim: #6b7684;

  --blue: #1668c7;
  --blue-hover: #1a78e3;
  --link: #5aa9ff;
  --trace: #1d5d9e;
  --pulse: #8fcaff;

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 1160px;
  --gutter: 24px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }

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

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--pulse); }

:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--bg); color: var(--text); padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 8px; }

.label {
  display: inline-block;
  font-family: var(--mono); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--link);
  margin-bottom: 18px;
}

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 9, 12, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 32px;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: var(--text); }
.brand img { width: 40px; height: 40px; }
.brand strong { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.04em; }
.brand span { color: var(--dim); font-family: var(--mono); font-size: 0.8rem; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color 150ms;
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); border-bottom-color: var(--blue-hover); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line-strong); border-radius: 4px;
  font: inherit; font-size: 0.9rem; font-weight: 500; color: var(--text);
  padding: 8px 14px; min-height: 44px; cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a[aria-current="page"] { color: var(--link); border-bottom-color: var(--line); }
}

/* LinkedIn icon in the header */

.social {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 4px;
  color: var(--muted); transition: color 150ms;
}
.social:hover { color: var(--text); }
.social + .social { margin-left: -24px; }
@media (max-width: 820px) {
  .site-header .wrap { gap: 4px; }
  .social { order: 2; }
  .social + .social { margin-left: 0; }
  .nav-toggle { order: 3; margin-left: 8px; }
}
.footer-li { display: inline-flex; align-items: center; gap: 8px; }
.footer-li svg { width: 16px; height: 16px; }

/* Buttons */

.btn {
  display: inline-block;
  font: inherit; font-size: 0.95rem; font-weight: 600;
  padding: 12px 22px; min-height: 44px;
  border-radius: 4px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color 150ms, color 150ms, border-color 150ms;
}
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-hover); color: #fff; }
.btn-line { border-color: var(--line-strong); color: var(--text); }
.btn-line:hover { border-color: var(--link); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Circuit board: badge in the middle, traces running out from it */

.board { position: relative; }
.board .badge {
  position: relative; z-index: 1;
  width: 100%; height: auto;
  filter: drop-shadow(0 0 48px rgba(22, 104, 199, 0.35));
}
.circuit {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  height: auto;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
}
.circuit path {
  fill: none;
  stroke: var(--trace);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: trace 1.6s cubic-bezier(0.55, 0, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 35ms + 150ms);
}
.circuit .pad {
  fill: var(--bg); stroke: var(--trace); stroke-width: 1.5;
  opacity: 0; animation: fade 0.5s ease-out 1.5s forwards;
}
.circuit .via {
  fill: var(--trace);
  opacity: 0; animation: fade 0.5s ease-out 1.3s forwards;
}
.circuit .pulse {
  stroke: var(--pulse);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 0.06 2;
  stroke-dashoffset: 0.06;
  filter: drop-shadow(0 0 4px var(--link));
  animation: pulse 5.5s linear infinite;
  animation-delay: calc(var(--d, 0s) + 2.2s);
}
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pulse {
  0% { stroke-dashoffset: -1; }
  38%, 100% { stroke-dashoffset: 0.06; }
}

@media (prefers-reduced-motion: reduce) {
  .circuit path { animation: none; stroke-dashoffset: 0; }
  .circuit .pad, .circuit .via { animation: none; opacity: 1; }
  .circuit .pulse { display: none; }
}

/* Hero (home) */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 72px; align-items: center;
  padding-top: 104px; padding-bottom: 104px;
}
.hero-text { position: relative; z-index: 2; }
.hero-lead { font-size: 1.15rem; color: var(--muted); max-width: 33em; margin-top: 22px; }
.hero .circuit { width: 368%; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; padding-top: 64px; padding-bottom: 64px; }
  .hero .board { order: -1; width: 240px; }
}

/* Page title (inner pages) */

.page-title { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-title .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 48px; align-items: center;
  padding-top: 64px; padding-bottom: 64px;
}
.page-title .text { position: relative; z-index: 2; }
.page-title p { color: var(--muted); font-size: 1.1rem; max-width: 40em; margin-top: 14px; }
.page-title .circuit { width: 1406%; }
.page-title .label { margin-bottom: 12px; }

@media (max-width: 700px) {
  .page-title .wrap { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 44px; }
  .page-title .board { display: none; }
}

/* Sections */

.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.alt { background: var(--bg-2); }
@media (max-width: 640px) { .section { padding: 52px 0; } }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 28px; }
.section-head a { font-weight: 500; font-size: 0.95rem; white-space: nowrap; }

/* Three columns on the home page */

.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cols > div {
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  padding: 26px; border-top: 2px solid var(--blue);
  display: flex; flex-direction: column;
}
.cols .label { margin-bottom: 10px; font-size: 0.75rem; color: var(--dim); }
.cols h3 { margin-bottom: 8px; }
.cols p { color: var(--muted); flex: 1; }
.cols a { margin-top: 16px; font-weight: 500; }
@media (min-width: 801px) { .cols.two { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .cols { grid-template-columns: 1fr; } }

/* Chips (competitions) */

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chips span {
  font-family: var(--mono); font-size: 0.82rem; font-weight: 500;
  padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 4px;
  color: var(--text); background: var(--surface);
}

/* Row list: competitions, programs, events, officers */

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.rows > li {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.rows .key { font-weight: 600; }
.rows .key small { display: block; font-weight: 400; color: var(--dim); font-size: 0.85rem; margin-top: 2px; }
.rows .code { font-family: var(--mono); font-weight: 500; font-size: 1.05rem; color: var(--link); }
.rows p { color: var(--muted); max-width: 44em; }
.rows .name { color: var(--text); font-weight: 500; }
.rows .tba { color: var(--dim); font-family: var(--mono); font-size: 0.9rem; }
@media (max-width: 640px) {
  .rows > li { grid-template-columns: 1fr; gap: 4px; }
}

/* Table (projects) */

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
th {
  text-align: left; font-family: var(--mono); font-weight: 500; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim);
  padding: 0 16px 10px 0; border-bottom: 1px solid var(--line-strong);
}
td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
td:first-child { font-weight: 600; color: var(--text); white-space: nowrap; }
td:last-child { font-family: var(--mono); font-size: 0.85rem; color: var(--link); white-space: nowrap; }
@media (max-width: 640px) {
  thead { position: absolute; left: -9999px; }
  table, tbody, tr, td { display: block; }
  tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  td { padding: 0; border: 0; }
  td:first-child { white-space: normal; }
  td:nth-child(2) { margin: 2px 0 6px; }
}

/* Steps (get involved) */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li {
  counter-increment: step;
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  border-top: 2px solid var(--blue); padding: 24px;
}
.steps li::before {
  content: "0" counter(step);
  display: block; font-family: var(--mono); font-size: 0.85rem; color: var(--link); margin-bottom: 10px;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* Callout (CAE affiliation) */

.callout {
  display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  padding: 32px;
}
.callout .code { font-family: var(--mono); font-size: 1.4rem; font-weight: 500; color: var(--link); }
.callout p { color: var(--muted); max-width: 42em; margin-top: 8px; }
@media (max-width: 640px) { .callout { grid-template-columns: 1fr; gap: 8px; padding: 24px; } }

.note { color: var(--muted); max-width: 40em; margin-top: 12px; }

/* AIM partner section: AIM's colors and its own square-cornered red circuit */

.aim {
  scroll-margin-top: 72px;
  --trace: #8f2b24;
  --pulse: #ff9b8f;
  --link: #f04438;
}
.aim-panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 56px; align-items: center;
  padding: 48px;
  background: #171717;
  border: 1px solid #333; border-top: 2px solid #f04438; border-radius: 8px;
}
.aim-text { position: relative; z-index: 2; }
.aim-text .label { color: #f04438; }
.aim-text p { color: #a3a3a3; max-width: 36em; }
.aim-text p + p { margin-top: 12px; }
.aim-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; margin-bottom: 18px; letter-spacing: -0.02em; }
.aim-title .ai { color: #38bdf8; }
.aim-title .sec { color: #f04438; }
.aim-title .men { color: #e0a93a; }
.aim .board .badge { filter: drop-shadow(0 0 44px rgba(240, 68, 56, 0.35)); }
.aim .circuit { width: 583.3%; }
.aim .circuit .pad { fill: #171717; }
.btn-red { background: #dc2626; color: #fff; }
.btn-red:hover { background: #b91c1c; color: #fff; }
.aim .btn-line:hover { border-color: #f04438; }
@media (max-width: 800px) {
  .aim-panel { grid-template-columns: 1fr; gap: 36px; padding: 32px 24px; }
  .aim-board { order: -1; width: 170px; }
}

/* Officers: each person gets their own CISO-style badge, wired onto a trace like a chip on a board.
   The binary around each ring spells the role. */

.org { display: grid; gap: 56px; }
.tier-row {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
  padding-top: 44px;
}
/* the bus: runs between the first and last badge centers, with a light sliding along it */
.tier-row::before {
  content: ""; position: absolute; top: 0; height: 1.5px;
  left: calc((100% - 96px) / 8); right: calc((100% - 96px) / 8);
  background:
    linear-gradient(90deg, transparent, var(--pulse), transparent) no-repeat,
    var(--trace);
  background-size: 18% 100%, 100% 100%;
  animation: bus 4s linear infinite;
}
.tier-row.two::before { left: calc((100% - 96px) * 0.375 + 32px); right: calc((100% - 96px) * 0.375 + 32px); }
.tier-row.two .member:nth-of-type(1) { grid-column: 2; }
.tier-row.two .member:nth-of-type(2) { grid-column: 3; }
/* the trunk from the cabinet bus down to the officers bus, through the middle gap */
.tier-row.four::after {
  content: ""; position: absolute; left: 50%; top: 0; bottom: -56px;
  width: 1.5px; margin-left: -0.75px; background: var(--trace);
}
@keyframes bus {
  from { background-position: -20% 0, 0 0; }
  to { background-position: 120% 0, 0 0; }
}
.tier-label {
  position: absolute; left: 0; top: -9px;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--link);
  background: var(--bg); padding-right: 10px;
}

.member { position: relative; margin: 0; text-align: center; }
/* drop from the bus into the badge, with a via where it joins */
.member::before {
  content: ""; position: absolute; left: 50%; top: -44px; height: 44px;
  width: 1.5px; margin-left: -0.75px; background: var(--trace);
}
.member::after {
  content: ""; position: absolute; left: 50%; top: -4px; margin-left: -4px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--trace);
}
.member-badge {
  position: relative; width: min(190px, 100%); aspect-ratio: 1; margin: 0 auto 16px;
  filter: drop-shadow(0 0 28px rgba(22, 104, 199, 0.28));
}
.member-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring-edge { fill: #fff; }
.ring-band { fill: none; stroke: #0b5aa8; stroke-width: 20; }
.ring-core { fill: #000; }
.ring-bits {
  font-family: var(--mono); font-size: 8.5px; fill: #fff; letter-spacing: 0.5px;
}
.ring-bits textPath { dominant-baseline: middle; }
.member-ring .ring-bits { transform-origin: 100px 100px; transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.member:hover .ring-bits { transform: rotate(60deg); }
.member-photo {
  position: absolute; left: 15%; top: 15%; width: 70%; height: 70%;
  border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 3px #000;
}
.member-photo.empty {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
}
.member-lock { width: 34%; height: 34%; fill: none; stroke: var(--dim); stroke-width: 1.6; }
.member.tba .member-badge { filter: none; opacity: 0.55; }
.member.tba .ring-band { stroke: #2a3542; }
.member.tba .ring-edge { fill: #3a4452; }
.member-role {
  display: block; font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--link); margin-bottom: 4px;
}
.member-name { display: block; font-size: 1.1rem; font-weight: 600; }
.member.tba .member-name { color: var(--dim); font-family: var(--mono); font-size: 0.95rem; font-weight: 400; }

@media (max-width: 900px) {
  .org { gap: 40px; }
  .tier-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; padding-top: 36px; }
  .tier-row::before, .tier-row::after, .member::before, .member::after { display: none; }
  .tier-row.two .member:nth-of-type(n) { grid-column: auto; }
  .tier-label { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tier-row::before { animation: none; background: var(--trace); }
  .member:hover .ring-bits { transform: none; }
}

/* Weekly project board (projects page) */

.week-lede { color: var(--muted); max-width: 40em; margin: -10px 0 14px; }
.week-legend {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 22px;
  font-family: var(--mono); font-size: 0.75rem; color: var(--dim);
}
.week-legend span { display: inline-flex; align-items: center; gap: 8px; }
.key-end { width: 18px; height: 10px; border: 1px solid var(--muted); border-radius: 2px; }

.week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: start; }
.day[data-day="1"] { --c: #5aa9ff; }
.day[data-day="2"] { --c: #7b8cff; }
.day[data-day="3"] { --c: #38c7d4; }
.day[data-day="4"] { --c: #4fd1a1; }
.day[data-day="5"] { --c: #b18cff; }

.day {
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 7%, transparent), transparent 55%), var(--bg-2);
  border: 1px solid var(--line); border-radius: 8px;
  transition: border-color 200ms, box-shadow 200ms;
}
.day.today {
  border-color: color-mix(in srgb, var(--c) 65%, var(--line));
  box-shadow: 0 0 0 1px var(--c), 0 14px 36px color-mix(in srgb, var(--c) 18%, transparent);
}
.day-head {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 11px;
  font-family: var(--mono); font-size: 0.85rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--c);
}
/* underline drawn as a trace that ends in a ring pad */
.day-head::after {
  content: ""; position: absolute; left: 0; right: 9px; bottom: -0.75px;
  height: 1.5px; background: var(--c);
}
.day-head::before {
  content: ""; position: absolute; right: 0; bottom: -3.5px;
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid var(--c); background: var(--bg-2);
}
.today-tag {
  font-size: 0.6rem; letter-spacing: 0.08em;
  padding: 2px 7px; border-radius: 999px;
  background: var(--c); color: #06080b;
}

/* Each day is a trace: the header line turns down the left side,
   and every card hangs off it on a short branch ending in a ring pad. */
.slot {
  position: relative;
  display: flex; flex-direction: column; gap: 3px;
  margin-left: 14px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--c) 7%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line));
  border-radius: 6px;
  transition: transform 150ms, border-color 150ms;
}
.slot::after {
  content: ""; position: absolute; left: -14px; top: -10px;
  width: 1.5px; height: 28px; background: var(--c);
}
.slot:not(:last-child)::after { height: calc(100% + 11px); }
.slot::before {
  content: ""; position: absolute; left: -14px; top: 17px;
  width: 14px; height: 1.5px; background: var(--c);
}
.slot-time::before {
  content: ""; position: absolute; left: -4px; top: 14px;
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid var(--c); background: var(--bg-2);
}
.slot:hover { transform: translateX(2px); border-color: color-mix(in srgb, var(--c) 60%, var(--line)); }
.slot-time { margin: 0; font-family: var(--mono); font-size: 0.72rem; color: color-mix(in srgb, var(--c) 50%, var(--text)); }
.slot h4 { margin: 0; font-size: 0.95rem; font-weight: 600; line-height: 1.3; color: var(--text); }
.slot-sub { margin: 0; font-family: var(--mono); font-size: 0.7rem; color: var(--dim); }
.slot-lead {
  display: flex; gap: 6px; align-items: flex-start;
  margin: 4px 0 0; padding-top: 7px;
  border-top: 1px dashed color-mix(in srgb, var(--c) 30%, var(--line));
  font-size: 0.78rem; line-height: 1.4; color: var(--muted);
}
.slot-lead svg { flex: none; width: 13px; height: 13px; margin-top: 2px; fill: none; stroke: color-mix(in srgb, var(--c) 60%, var(--dim)); stroke-width: 2; }
.slot-end {
  align-self: flex-start; margin: 6px 0 0;
  padding: 2px 7px; border: 1px solid var(--line-strong); border-radius: 3px;
  font-family: var(--mono); font-size: 0.64rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--text);
}
.slot.open { background: transparent; border-style: dashed; }
.slot.ended { opacity: 0.45; }
.slot.ended:hover { opacity: 0.8; }

@media (max-width: 1024px) { .week { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .week { grid-template-columns: 1fr; }
  .day.today { order: -1; }
}
@media (prefers-reduced-motion: reduce) { .slot:hover { transform: none; } }

/* Live session: a pulse runs down today's trace into the project happening now */
.day { position: relative; }
.flow { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; z-index: 2; }
.flow path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.flow-glow {
  stroke: color-mix(in srgb, var(--c) 70%, #fff); stroke-width: 2; opacity: 0.85;
  filter: drop-shadow(0 0 3px var(--c));
}
.flow-dot {
  stroke: color-mix(in srgb, var(--c) 35%, #fff);
  stroke-width: 4.5;
  stroke-dasharray: 0.11 2;
  stroke-dashoffset: 0.11;
  filter: drop-shadow(0 0 4px var(--c)) drop-shadow(0 0 10px var(--c));
  animation: flow 2.4s cubic-bezier(0.45, 0, 0.3, 1) infinite;
}
.flow-dot.slow { animation-duration: 4s; opacity: 0.7; }
.flow-ring {
  stroke: color-mix(in srgb, var(--c) 45%, #fff);
  stroke-width: 2;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 3px var(--c)) drop-shadow(0 0 8px var(--c));
  animation: ring 2.4s cubic-bezier(0.45, 0, 0.3, 1) infinite;
}
.flow-ring.slow { animation-duration: 4s; opacity: 0.6; }
@keyframes ring {
  0%, 60% { stroke-dashoffset: 1; opacity: 1; }
  74% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes flow {
  0% { stroke-dashoffset: 0.11; }
  62%, 100% { stroke-dashoffset: -1; }
}

.slot.live {
  border-color: var(--c);
  box-shadow: 0 0 0 1px var(--c), 0 0 26px color-mix(in srgb, var(--c) 30%, transparent);
  background: color-mix(in srgb, var(--c) 14%, var(--surface));
}
.slot.live { animation: card-hit 2.4s cubic-bezier(0.45, 0, 0.3, 1) infinite; }
@keyframes card-hit {
  0%, 62% { box-shadow: 0 0 0 1px var(--c), 0 0 26px color-mix(in srgb, var(--c) 30%, transparent); }
  76% { box-shadow: 0 0 0 1px var(--c), 0 0 44px color-mix(in srgb, var(--c) 60%, transparent); }
  100% { box-shadow: 0 0 0 1px var(--c), 0 0 26px color-mix(in srgb, var(--c) 30%, transparent); }
}
.slot.live .slot-time::before { animation: pad-hit 2.4s cubic-bezier(0.45, 0, 0.3, 1) infinite; }
.slot.next .slot-time::before { animation: pad-hit 4s cubic-bezier(0.45, 0, 0.3, 1) infinite; }
@keyframes pad-hit {
  0%, 58% { background: var(--bg-2); box-shadow: none; }
  64% { background: var(--c); box-shadow: 0 0 12px var(--c); }
  90%, 100% { background: var(--bg-2); box-shadow: none; }
}

.slot-state {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  margin: 2px 0 1px; padding: 2px 8px; border-radius: 999px;
  font-family: var(--mono); font-size: 0.62rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.slot-state.is-live { background: var(--c); color: #06080b; }
.slot-state.is-live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: #06080b;
  animation: blink 1.2s steps(1) infinite;
}
.slot-state.is-next { border: 1px solid color-mix(in srgb, var(--c) 60%, var(--line)); color: var(--c); }
@keyframes blink { 50% { opacity: 0.2; } }

@media (prefers-reduced-motion: reduce) {
  .slot.live, .slot.live .slot-time::before, .slot.next .slot-time::before { animation: none; }
  .slot.live .slot-time::before, .slot.next .slot-time::before { background: var(--c); }
  .slot-state.is-live::before { animation: none; }
}

/* Footer */

.site-footer { background: var(--bg-2); color: var(--dim); font-size: 0.92rem; padding: 48px 0 40px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer .brand-line { display: flex; gap: 14px; align-items: center; max-width: 380px; }
.site-footer .brand-line img { width: 56px; height: 56px; flex: none; }
.site-footer .brand-line strong { color: var(--text); display: block; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-links { display: grid; gap: 12px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
