/* Harvard Computer Society case study. These copy hcs/website2026's app/globals.css:
   the hero (.hero-home, .photo-letter-*, .hero-copy), the thesis sentence (.thesis-*), the
   events strip (.photo-strip, .photo-tile, .event-caption), the dark band (.speaker-card,
   .quote-card) and the Initiatives directory (.affiliate-row). */
:root { --crimson: #a51c30; --ok: #1f9d55; --bad: #d23b3b; --hcs-ink: #100e0c; }
:root[data-theme="dark"] { --crimson: #e0566a; --ok: #3ccf86; --bad: #f0525d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --crimson: #e0566a; --ok: #3ccf86; --bad: #f0525d; } }
.hs { --serif: "Instrument Serif", Georgia, "Times New Roman", serif; --geist: Geist, Arial, Helvetica, sans-serif; }

.cs-end .links { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ---------- the homepage hero, laid out against the hero's own width */
#hero { container-type: size; background: #172025; color: #fff; font-family: Geist, Arial, Helvetica, sans-serif; }
.hh-photo { position: absolute; inset: 0; background: linear-gradient(rgb(7 11 13 / 0.18), rgb(7 11 13 / 0.18)), url("img/background.jpg") center 48% / cover no-repeat, #172025; transition: opacity 0.9s; }
.hh-photo.dim { background: linear-gradient(rgb(7 11 13 / 0.34), rgb(7 11 13 / 0.34)), url("img/background.jpg") center 48% / cover no-repeat, #172025; }
.hh-glyphs { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; opacity: 0; transition: opacity 900ms ease; }
.hh-glyphs.ready { opacity: 1; }
.hh-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background:
  linear-gradient(to top, rgb(7 11 13 / 0.9) 3%, rgb(7 11 13 / 0.64) 28%, transparent 70%),
  linear-gradient(to right, rgb(7 11 13 / 0.52) 0%, rgb(7 11 13 / 0.2) 38%, transparent 78%); }
.hh-filters { position: absolute; width: 0; height: 0; }
.hh-mono { position: absolute; inset: 50% 1cqw auto; display: flex; align-items: center; justify-content: center; opacity: 0.94; transform: translateY(-50%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 76%, transparent 100%); mask-image: linear-gradient(to bottom, black 0%, black 76%, transparent 100%); }
.hh-frame { position: relative; flex: 0 0 auto; margin-inline: -0.022em; font-family: Geist, Arial, Helvetica, sans-serif; font-size: min(39cqw, 70cqh); font-weight: 800; line-height: 0.9;
  animation: hh-letter-in 1250ms cubic-bezier(0.16, 1, 0.3, 1) calc(180ms + var(--i) * 150ms) both; }
.hh-frame::before { content: attr(data-letter); visibility: hidden; }
.hh-layer { position: absolute; left: 50%; top: 50%; display: block; font: inherit; transform: translate(-50%, -50%); user-select: none;
  color: transparent; background-position: center; background-repeat: no-repeat; background-size: auto 124%; background-clip: text; -webkit-background-clip: text;
  filter: url("#hh-glass") saturate(0.94) contrast(1.06) brightness(0.96) drop-shadow(0 -1px 0.6px rgb(255 255 255 / 0.65)) drop-shadow(0 2px 1px rgb(7 11 13 / 0.5));
  animation: hh-cycle 21s linear var(--d) infinite both; }
@keyframes hh-letter-in { from { opacity: 0; transform: translateY(0.08em); } to { opacity: 1; transform: none; } }
@keyframes hh-cycle { 0%, 28.5% { opacity: 1; } 33.333%, 95.2% { opacity: 0; } 100% { opacity: 1; } }
.hh-bar { position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: flex; align-items: center; gap: 28px; padding: 18px 9cqw; font-size: 14px; font-weight: 600; animation: hh-up 700ms ease 850ms both; }
.hh-brand { display: flex; align-items: center; gap: 14px; margin-right: auto; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.hh-brand img { width: 36px; height: 40px; object-fit: contain; }
.hh-bar .go { margin-left: 6px; padding: 9px 16px; border-radius: 999px; background: #fff; color: #111; }
.hh-copy { position: absolute; left: 9cqw; right: 9cqw; bottom: 0; z-index: 2; padding-bottom: max(56px, 9cqh); animation: hh-up 900ms cubic-bezier(0.16, 1, 0.3, 1) 1150ms both; }
.hh-copy h1 { max-width: 980px; margin: 0; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(2.6rem, 8.3cqw, 7.3rem); font-weight: 400; line-height: 0.9; letter-spacing: -0.045em; }
.hh-copy p { max-width: 620px; margin: 1.3rem 0 1.6rem; color: rgb(255 255 255 / 0.76); font-size: clamp(0.95rem, 1.6cqw, 1.25rem); font-weight: 360; line-height: 1.5; }
.hh-copy .go { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: #fff; color: #111; font-size: 14px; font-weight: 600; }
.hh-copy .go svg, .hh-cue svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hh-cue { position: absolute; left: 50%; bottom: 18px; z-index: 3; transform: translateX(-50%); }
.hh-cue svg { width: 34px; height: 34px; stroke-width: 1.5; animation: hh-bounce 1.7s ease-in-out infinite; }
@keyframes hh-up { from { opacity: 0; transform: translateY(1.2rem); } to { opacity: 1; transform: none; } }
@keyframes hh-bounce { 0%, 100% { transform: translateY(-0.25rem); } 50% { transform: translateY(0.35rem); } }
@media (prefers-reduced-motion: reduce) { .hh-frame, .hh-layer, .hh-bar, .hh-copy, .hh-cue svg { animation: none; } .hh-layer:not(:last-child) { opacity: 0; } }
@container (max-width: 700px) { .hh-bar a:not(.go) { display: none; } .hh-bar { padding: 14px 18px; gap: 12px; } .hh-brand { gap: 10px; font-size: 13px; white-space: nowrap; } .hh-brand img { width: 26px; height: 30px; } .hh-bar .go { padding: 7px 12px; font-size: 12.5px; white-space: nowrap; } .hh-copy { left: 20px; right: 20px; } .hh-copy p { display: none; } }
.cs-hero .cs-hero-fade { height: 10%; }

/* ---------- glyph demos */
.gf { position: absolute; inset: 0; overflow: hidden; background: #0b0f11; color: #fff; }
.gf .photo { position: absolute; inset: 0; background: url("img/background.jpg") center 48% / cover no-repeat; }
.gf .photo.dim::after { content: ""; position: absolute; inset: 0; background: rgb(7 11 13 / 0.34); }
.gf canvas { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; }
.gf .title { position: absolute; left: 34px; bottom: 34px; z-index: 2; font-family: "Instrument Serif", Georgia, serif; font-size: 52px; line-height: 0.92; letter-spacing: -0.04em; pointer-events: none; text-shadow: 0 1px 24px rgb(0 0 0 / 0.25); }
.gf .title small { display: block; margin-top: 10px; font: 360 13px/1.45 Geist, Arial, sans-serif; letter-spacing: 0; color: rgb(255 255 255 / 0.76); max-width: 300px; }

/* ---------- the thesis sentence */
.th { padding: 30px 26px 32px; font-family: "Instrument Serif", Georgia, serif; font-size: 34px; line-height: 1.16; letter-spacing: -0.035em; text-align: center; text-wrap: pretty; color: var(--ink); }
.th .nw { white-space: nowrap; }
.th a.lk { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--crimson) 35%, transparent); text-decoration-thickness: 0.045em; text-underline-offset: 0.12em; }
.tchip { position: relative; top: -0.04em; display: inline-flex; height: 0; align-items: center; margin-inline: 0.2em 0.04em; vertical-align: middle; }
@property --fan { syntax: '<number>'; inherits: true; initial-value: 1; }
.tstack { --step: 60%; --page-width: calc(100% + (var(--count) - 1) * var(--step)); position: relative; display: block; flex: none;
  width: calc(1.04em + (var(--count) - 1) * 0.6 * 1.04em); height: 1.04em; padding: 0; border: 0; border-radius: 999px; background: none; font: inherit; cursor: pointer;
  opacity: var(--fan); filter: drop-shadow(0 0.05em 0.09em rgb(16 14 12 / 0.14)); -webkit-tap-highlight-color: transparent; transition: scale 200ms cubic-bezier(0.23, 1, 0.32, 1), --fan 1.4s cubic-bezier(0.32, 0.72, 0, 1); }
.tstack:active { scale: 0.97; }
@media (hover: hover) and (pointer: fine) { .tstack:hover { scale: 1.06; } }
.twin { position: absolute; inset: -1px; clip-path: inset(0 round 999px); }
.tbelt { position: absolute; inset: 1px; }
.tbelt.turning { transform: translateX(100%); transition: transform 560ms cubic-bezier(0.65, 0, 0.35, 1); }
.tdisc { position: absolute; top: 0; left: 0; z-index: var(--layer, 10); height: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgb(16 14 12 / 0.08);
  transform: translateX(calc(var(--slot) * var(--step) * var(--fan) - var(--page) * var(--page-width))); }
.tdisc.parked { visibility: hidden; }
.tdisc img { width: 100%; height: 100%; object-fit: cover; display: block; }


/* ---------- 1. the photo letters */
.lt { position: absolute; inset: 0; background: #172025; overflow: hidden; }
.lt-photo { position: absolute; inset: 0; background: linear-gradient(rgb(7 11 13 / 0.45), rgb(7 11 13 / 0.45)), url("img/background.jpg") center 48% / cover no-repeat; }
.lt-mono { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.lt-frame { position: relative; margin-inline: -0.022em; font-family: Geist, Arial, Helvetica, sans-serif; font-size: 280px; font-weight: 800; line-height: 0.9; }
.lt-frame::before { content: attr(data-letter); visibility: hidden; }
.lt-layer { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); user-select: none; color: transparent;
  background-position: center; background-repeat: no-repeat; background-size: auto 124%; background-clip: text; -webkit-background-clip: text;
  filter: url("#hh-glass") saturate(0.94) contrast(1.06) brightness(0.96) drop-shadow(0 -1px 0.6px rgb(255 255 255 / 0.65)) drop-shadow(0 2px 1px rgb(7 11 13 / 0.5));
  opacity: 0; transition: opacity 1.4s ease; }
.lt-layer.on { opacity: 1; }

/* ---------- 4. the events strip */
.ev { position: absolute; inset: 0; display: flex; align-items: center; }
.ev-strip { width: 100%; overflow: hidden; padding-block: 4px;
  -webkit-mask-image: linear-gradient(to right, transparent, black 2.5rem, black calc(100% - 2.5rem), transparent); mask-image: linear-gradient(to right, transparent, black 2.5rem, black calc(100% - 2.5rem), transparent); }
.ev-track { display: flex; width: max-content; animation: ev-marquee 84s linear infinite; }
.ev-seq { display: flex; gap: 12px; padding-right: 12px; }
.ev-strip:hover .ev-track { animation-play-state: paused; }
@keyframes ev-marquee { to { transform: translateX(-50%); } }
.ev-tile { position: relative; flex: 0 0 380px; aspect-ratio: 4 / 3; margin: 0; overflow: hidden; border-radius: 7px; background: #ddd; }
.ev-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1); }
.ev-tile:hover img { transform: scale(1.035); }
.ev-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / 0.86), rgb(0 0 0 / 0.08) 68%, transparent); }
.ev-tile figcaption { position: absolute; inset: auto 0 0; z-index: 2; padding: 16px; color: #fff; }
.ev-tile figcaption p { margin: 0 0 5px; font: 650 9.5px/1 "Geist Mono", var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.ev-tile figcaption h3 { margin: 0; font: 400 26px/1 "Instrument Serif", Georgia, serif; letter-spacing: -0.025em; }
.ev-tile figcaption span { display: block; margin-top: 6px; color: rgb(255 255 255 / 0.78); font: 400 11.5px/1.45 Geist, Arial, sans-serif; }
.ev-phone { display: none; position: relative; width: 300px; height: 330px; margin: 0 auto; border-radius: 34px; background: #fff; box-shadow: 0 0 0 9px #1d1d1f, 0 18px 40px rgb(0 0 0 / 0.18); overflow: hidden; align-items: center; }
.ev-phone .ev-strip { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; padding-inline: 20px; }
.ev-phone .ev-strip::-webkit-scrollbar { display: none; }
.ev-phone .ev-track { animation: none; }
.ev-phone .ev-tile { flex-basis: 236px; scroll-snap-align: center; }
.ev[data-mode="phone"] > .ev-strip { display: none; }
.ev[data-mode="phone"] .ev-phone { display: flex; }
@media (prefers-reduced-motion: reduce) { .ev-track { animation: none; } .ev > .ev-strip { overflow-x: auto; } }

/* ---------- 5. the dark band: past speakers */
.sp { padding: 30px 22px 24px; background: #0f0d0e; color: #fff; border-radius: 8px; }
.sp h3 { margin: 0; font: 400 34px/1.05 "Instrument Serif", Georgia, serif; letter-spacing: -0.04em; text-align: center; }
.sp-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.sp-card { display: grid; flex: 1 1 150px; align-content: center; gap: 5px; min-height: 92px; padding: 12px; border: 1px solid rgb(255 255 255 / 0.1); border-radius: 12px; cursor: pointer;
  background: linear-gradient(to bottom, rgb(255 255 255 / 0.08), rgb(255 255 255 / 0.03)); color: #fff; text-align: center; font: inherit; transition: border-color 0.2s, background 0.2s; }
.sp-card strong { font: 400 21px/1.05 "Instrument Serif", Georgia, serif; letter-spacing: -0.025em; }
.sp-card span { color: rgb(255 255 255 / 0.56); font: 400 11px/1.4 Geist, Arial, sans-serif; }
.sp-card.on { border-color: rgb(255 255 255 / 0.45); background: rgb(255 255 255 / 0.12); }
.sp-quote { margin: 12px 0 0; min-height: 132px; padding: 20px 22px; border: 1px solid rgb(255 255 255 / 0.1); border-radius: 14px; background: rgb(255 255 255 / 0.06); }
.sp-quote blockquote { margin: 0; }
.sp-quote p { margin: 0; color: rgb(255 255 255 / 0.92); font: 400 15px/1.6 Geist, Arial, sans-serif; text-wrap: pretty; }
.sp-quote figcaption { margin-top: 12px; }
.sp-quote a { color: rgb(255 255 255 / 0.56); font: 400 12.5px/1.4 Geist, Arial, sans-serif; text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.3); text-underline-offset: 3px; }

/* ---------- 6. the Initiatives directory */
.gr { position: absolute; inset: 0; padding: 14px; }
.gr-page { height: 100%; overflow-y: auto; padding: 0 26px; border-radius: 6px; background: #fff; color: #171414; scrollbar-width: thin; }
.gr-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 26px; padding-block: 22px; border-bottom: 1px solid #ece8e8; }
.gr-row:first-child { border-top: 0; }
.gr-logo { display: grid; place-items: center; height: 64px; }
.gr-logo img { max-width: 100%; max-height: 64px; object-fit: contain; }
.gr-row h3, .gr-row h5 { margin: 0; font: 400 30px/0.98 "Instrument Serif", Georgia, serif; transition: color 180ms ease; }
.gr-row p { margin: 6px 0 0; color: #625959; font: 400 12.5px/1.6 Geist, Arial, sans-serif; }
.gr-row:hover h3, .gr-row:hover h5 { color: #8c1628; }
.gr-arch { margin: 0; padding: 34px 0 12px; font: 400 34px/1 "Instrument Serif", Georgia, serif; border-bottom: 1px solid #ece8e8; }

/* ---------- 7. Before */
.bf { position: absolute; inset: 0; padding: 18px 18px 0; }
.bf-win { height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 10px 10px 0 0; background: #fff; box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.18), 0 10px 30px rgb(0 0 0 / 0.12); }
.bf-bar { flex: none; display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 12px; background: #dee1e6; }
.bf-lights { display: flex; gap: 7px; }
.bf-lights i { width: 11px; height: 11px; border-radius: 50%; }
.bf-lights i:nth-child(1) { background: #ff5f57; } .bf-lights i:nth-child(2) { background: #febc2e; } .bf-lights i:nth-child(3) { background: #28c840; }
.bf-url { flex: 1; max-width: 360px; height: 26px; display: flex; align-items: center; padding: 0 12px; border-radius: 13px; background: #fff; color: #202124; font: 400 12.5px/1 system-ui, -apple-system, sans-serif; }
.bf-view { position: relative; flex: 1; min-height: 0; }
.bf-xml { position: absolute; inset: 0; padding: 14px 16px; overflow: hidden; color: #000; font: 400 12px/1.5 system-ui, -apple-system, sans-serif; transition: opacity 0.35s; }
.bf-note { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid #ccc; }
.bf-xml pre { margin: 0; font: 400 12.5px/1.6 Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all; }
.bf-xml .tg { color: #881280; }
.bf-xml.off { opacity: 0; }
.bf-new { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.02); transition: opacity 0.45s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.bf-new.on { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .gf .title { left: 18px; bottom: 20px; font-size: 38px; }
  .gf .title small { display: none; }
  .th { padding: 32px 14px 34px; font-size: 25px; }
  .lt-frame { font-size: 150px; }
  #d-letters { height: 240px; }
  .ev-tile { flex-basis: 280px; }
  .bf { padding: 12px 12px 0; }
  .bf-xml { padding: 10px 12px; font-size: 11px; }
  .bf-xml pre { font-size: 11px; }
  .sp h3 { font-size: 28px; }
  .sp-card { flex-basis: 120px; }
  .gr-page { padding: 0 16px; }
  .gr-row { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding-block: 16px; }
  .gr-row h3, .gr-row h5 { font-size: 23px; }
}
