/* ============================================================================
   Princeton Chess Club — shared stylesheet (used by every page)
   ----------------------------------------------------------------------------
   HOW THIS FILE IS ORGANISED (top to bottom):
     1. :root          — colour + size "variables" you can change in one place
     2. Base/reset     — page-wide defaults (fonts, background)
     3. Custom cursor  — hides the arrow and styles the chess-piece cursor
     4. Nav            — the top navigation bar
     5. Layout         — .container, section titles, the .eyebrow label
     6. Hero           — the big animated banner at the top of the home page
     7. Buttons        — .btn styles + hover animation
     8. Cards / grids  — reusable boxes and the column grids
     9. Members/Team   — officer cards and the 3D "tilt" effect
    10. Forms          — input styling
    11. Photos         — image frames + the graceful "fallback" placeholder
    12. Mission/Sponsors — home-page sections
    13. Events/Contact — tournament entries and the contact layout
    14. Footer
    15. Responsive     — phone/tablet adjustments (the @media block)

   TIP: To recolour the whole site, change the values in :root below.
        Every colour elsewhere is written as var(--name), so one edit cascades.
   ============================================================================ */

/* Site-wide font: Princeton Monticello (University brand face — used if installed
   locally) with a close Caslon-style web fallback (Libre Caslon Text). */
@import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Text:ital,wght@0,400;0,700;1,400&display=swap');

/* 1. VARIABLES — change a value here and it updates everywhere it's used */
:root {
  --orange: #e87722;       /* Princeton orange */
  --orange-dark: #c75f10;
  --black: #121212;
  --ink: #1d1d1d;
  --paper: #faf8f4;
  --card: #ffffff;
  --muted: #6b6b6b;
  --line: #e6e1d8;
  --shadow: 0 6px 24px rgba(0,0,0,.08);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}
/* Hide the default arrow site-wide on fine pointers (custom cursor takes over) */
@media (pointer: fine) {
  html.custom-cursor-on, html.custom-cursor-on * { cursor: none !important; }
}

/* Custom pawn cursor — tilted like a normal arrow cursor (tip points up-left
   at the actual click point) but still clearly a chess pawn. The glyph's top
   sits at the pointer; we nudge + rotate it so the "point" lands on target. */
.cursor-piece {
  position: fixed; top: 0; left: 0; z-index: 10000; pointer-events: none;
  font-size: 26px; line-height: 1; transform-origin: 20% 8%;
  transform: translate(-18%, -6%) rotate(-32deg);
  color: #fff; text-shadow: 0 0 1.5px #111, 0 1px 2px rgba(0,0,0,.55);
  transition: font-size .18s ease, color .18s ease, transform .12s ease; will-change: transform;
}
.cursor-piece.hovering { font-size: 34px; color: var(--orange); }
.cursor-piece.clicking { transform: translate(-18%, -6%) rotate(-32deg) scale(.8); }
/* soft glow ring trailing behind */
.cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  width: 38px; height: 38px; border-radius: 50%; transform: translate(-50%, -50%);
  border: 2px solid rgba(232,119,34,.5);
  transition: width .25s ease, height .25s ease, opacity .3s, border-color .25s; opacity: 0;
}
.cursor-ring.hovering { width: 58px; height: 58px; border-color: rgba(232,119,34,.9); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .cursor-piece, .cursor-ring { display: none !important; }
  html.custom-cursor-on, html.custom-cursor-on * { cursor: auto !important; }
}
/* Force Playfair Display everywhere (overrides all other font declarations) */
body, h1, h2, h3, h4, h5, h6, p, a, span, div, li, ul, blockquote,
input, select, textarea, button, table, th, td,
.nav-brand, .nav-links a, .eyebrow, .btn, .role, .meta, .num, .label,
.section-title, .section-sub, .mission-statement, .year-heading, .credit, .tag {
  font-family: 'Princeton Monticello', 'Monticello', 'Libre Caslon Text', Georgia, 'Times New Roman', serif !important;
}
h1, h2, h3, .nav-brand { font-family: 'Princeton Monticello', 'Monticello', 'Libre Caslon Text', Georgia, serif; }
a { color: var(--orange-dark); }
img { max-width: 100%; display: block; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--black);
  border-bottom: 4px solid var(--orange);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.nav-brand {
  color: #fff; font-weight: 800; font-size: 1.15rem;
  text-decoration: none; letter-spacing: .5px;
  display: flex; align-items: center; gap: 10px;
}
.nav-brand .knight { color: var(--orange); font-size: 1.5rem; display: inline-block; transition: transform .4s ease; }
.nav-brand:hover .knight { transform: rotate(360deg) scale(1.2); }
.nav-brand .brand-logo { height: 46px; width: auto; display: inline-block; transition: transform .4s ease; }
.nav-brand:hover .brand-logo { transform: rotate(-6deg) scale(1.1); }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: #eaeaea; text-decoration: none; font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: .95rem; padding: 8px 14px; border-radius: 6px; transition: .2s;
}
.nav-links a:hover { background: #2a2a2a; color: #fff; }
.nav-links a.active { background: var(--orange); color: #111; font-weight: 700; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* ---- Layout ---- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px; }

/* ---- Curvy spine path (home page) ---- */
main { position: relative; }
main > section { position: relative; z-index: 1; }
.spine {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; overflow: visible;
}
.spine-path {
  fill: none; stroke: var(--orange); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round; opacity: .55;
  /* start fully hidden — JS sets the real values once the path is measured */
  stroke-dasharray: 99999;
  stroke-dashoffset: 99999;
  filter: drop-shadow(0 2px 6px rgba(232,119,34,.35));
  transition: stroke-dashoffset 1.7s cubic-bezier(.22,.61,.36,1);
  animation: spineBreathe 3.8s ease-in-out infinite;
}
/* the burst gently breathes — coming "in and out" around the scene */
@keyframes spineBreathe {
  0%, 100% { opacity: .5; }
  50%      { opacity: .72; }
}
/* Subtle variant for events / archive pages — sits behind all text */
.spine-subtle { z-index: -1; }
.spine-subtle .spine-path {
  stroke-width: 1.8; opacity: .32;
  filter: drop-shadow(0 1px 4px rgba(232,119,34,.2));
}
@media (prefers-reduced-motion: reduce) {
  .spine-path { animation: none; }
}

/* ---- Contact page "Connect with us" animation ---- */
.connect-cta {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin: 8px auto 36px;
  width: fit-content;
}
.connect-text {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--orange);
  animation: connectFade 2.8s ease-in-out infinite;
}
.connect-pulse {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 50%; background: var(--orange);
  animation: connectPulse 2.8s ease-in-out infinite;
}
@keyframes connectFade {
  0%, 100% { opacity: .5; }
  50%       { opacity: 1; }
}
@keyframes connectPulse {
  0%, 100% { transform: scale(1); opacity: .5; }
  50%       { transform: scale(1.45); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .connect-text, .connect-pulse { animation: none; opacity: 1; }
}
/* Subheaders are centred so the curve runs down the middle, over the text.
   script.js nudges them slightly left/right so the line gently weaves. */
.spine-target {
  text-align: center;
  display: block;
  margin-left: auto; margin-right: auto;
  transition: transform .7s cubic-bezier(.22,1,.36,1), font-weight .25s ease, color .25s ease;
  will-change: transform;
}
/* Give each subheader clear breathing room so it reads as a header
   sitting cleanly above its section content. */
.spine-target.eyebrow { margin-bottom: 6px; }
.spine-target.section-title { margin-top: 4px; margin-bottom: 28px; }
/* When the drawn path reaches a header, it "lights up" — bolder and emphasised. */
.spine-lit { font-weight: 800 !important; color: var(--orange-dark); }
.spine-lit.section-title { letter-spacing: .3px; }
.section-title { margin: 0 0 8px; position: relative; }
/* Section titles copy the "Sponsored by" eyebrow specs EXACTLY. */
.eyebrow, .section-title {
  font-family: "Helvetica Neue", Arial, sans-serif !important;
  text-transform: uppercase !important; letter-spacing: 2px !important;
  font-size: 1.4rem !important; font-weight: 800 !important;
}
/* (section-title underline removed) */
.section-sub { color: var(--muted); margin: 0 0 32px; font-size: 1.05rem; text-align: center;
  font-family: "Helvetica Neue", Arial, sans-serif !important; letter-spacing: .5px; }
.eyebrow {
  font-family: "Helvetica Neue", Arial, sans-serif; text-transform: uppercase;
  letter-spacing: 2px; font-size: 1.4rem; color: var(--orange-dark); font-weight: 800;
  display: none;
}
/* keep the hero eyebrow visible if ever re-added there */
.hero .eyebrow { display: block; }

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  color: #fff; text-align: center; padding: 34px 24px 40px;
  background: linear-gradient(125deg, #0d0d0d, #1c1205, #3a1f02, #0d0d0d);
  background-size: 300% 300%;
  animation: gradientFlow 16s ease infinite;
}
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* drifting checkerboard layer */
.hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: -64px; z-index: 0; opacity: .10;
  background: repeating-conic-gradient(#fff 0% 25%, transparent 0% 50%) 0 / 64px 64px;
  animation: boardDrift 40s linear infinite;
}
@keyframes boardDrift { from { transform: translateY(0); } to { transform: translateY(-64px); } }
/* radial glow that breathes */
.hero::after {
  content: ""; position: absolute; left: 50%; top: 42%; z-index: 0;
  width: 760px; height: 760px; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(232,119,34,.18), rgba(232,119,34,0) 65%);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: .32; transform: translate(-50%,-50%) scale(1); } 50% { opacity: .5; transform: translate(-50%,-50%) scale(1.18); } }

.hero > * { position: relative; z-index: 2; }
.hero-corner {
  position: absolute; top: 16px; left: 20px; z-index: 3;
  font-family: 'Princeton Monticello', 'Monticello', Georgia, serif;
  font-size: .95rem; letter-spacing: .5px; color: #fff; opacity: .85;
}
.hero h1 {
  font-size: 3.6rem; margin: 0 0 10px; line-height: 1.08; letter-spacing: -1px;
  /* Subtle holographic sheen across the whole title — mostly white with a
     faint iridescent drift so it reads clearly but shimmers. */
  background: linear-gradient(100deg,
    #ffffff 0%, #f3e3ff 18%, #ffffff 34%, #e6f3ff 50%,
    #ffffff 66%, #ffe9d2 82%, #ffffff 100%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: heroIn 1s ease both, holo 9s ease-in-out infinite;
}
@keyframes holo { 0%,100% { background-position: 0% center; } 50% { background-position: 220% center; } }
/* "Chess" keeps a hint of orange, but softer than before so it blends in. */
.hero h1 .shimmer {
  background: linear-gradient(100deg, #ffe2c2 0%, #fff 35%, #ffd9a8 55%, #fff 75%, #ffe2c2 100%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }
.hero .rotator { display: block; font-size: 1.35rem; min-height: 1.6em; margin: 6px 0 26px; color: var(--orange); font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 700; }
.hero .rotator .word { display: inline-block; animation: wordIn .5s ease; }
@keyframes wordIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero p { max-width: 620px; margin: 0 auto 22px; font-size: 1.15rem; color: #e2e2e2; animation: heroIn 1s ease .15s both; }
.hero .eyebrow { color: var(--orange); animation: heroIn 1s ease both; }
.hero .btn { animation: heroIn 1s ease .3s both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* scroll cue */
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,.7); font-size: 1.8rem; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,10px); } }

/* wave divider */
.wave { display: block; width: 100%; height: 70px; margin-top: -1px; }
.wave path { fill: var(--paper); }

/* stats band */
.stats { background: var(--black); color: #fff; }
.stats-inner { max-width: var(--maxw); margin: 0 auto; padding: 46px 24px; display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat .num { font-family: "Helvetica Neue", Arial, sans-serif; font-size: 2.8rem; font-weight: 800; color: var(--orange); line-height: 1; }
.stat .label { font-family: "Helvetica Neue", Arial, sans-serif; text-transform: uppercase; letter-spacing: 1px; font-size: .8rem; color: #bbb; margin-top: 6px; }

/* marquee */
.marquee { background: var(--orange); color: #111; overflow: hidden; white-space: nowrap; padding: 12px 0; font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 700; }
.marquee .track { display: inline-block; padding-left: 100%; animation: scrollx 22s linear infinite; }
.marquee span { margin: 0 28px; }
@keyframes scrollx { to { transform: translateX(-100%); } }
.marquee:hover .track { animation-play-state: paused; }

/* Floating chess pieces in hero */
.float-piece {
  position: absolute; z-index: 1; color: rgba(232,119,34,.18);
  font-size: 3.4rem; pointer-events: none; user-select: none;
  animation: floatY linear infinite;
}
@keyframes floatY {
  0%   { transform: translateY(110%) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-140%) rotate(20deg); opacity: 0; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-block; font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--orange); color: #111; text-decoration: none; font-weight: 700;
  padding: 13px 26px; border-radius: 8px; border: 0; cursor: pointer; transition: .2s; font-size: 1rem;
}
.btn:hover { background: #fff; }
.btn.secondary { background: transparent; color: #fff; border: 2px solid var(--orange); }
.btn.secondary:hover { background: var(--orange); color: #111; }

/* ---- Cards / grids ---- */
.grid { display: grid; gap: 24px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 26px; box-shadow: var(--shadow);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(0,0,0,.14); border-color: var(--orange); }
.card h3 { margin-top: 0; }
.card .icon { font-size: 2rem; display: inline-block; transition: transform .35s ease; }
.card:hover .icon { transform: rotate(-12deg) scale(1.18); }

.btn { transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(232,119,34,.4); }
.btn:active { transform: translateY(0); }

/* ---- Events ---- */
.event {
  display: flex; gap: 22px; align-items: center; background: var(--card);
  border: 1px solid var(--line); border-left: 6px solid var(--orange);
  border-radius: 10px; padding: 20px 24px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.event .date {
  text-align: center; min-width: 78px; font-family: "Helvetica Neue", Arial, sans-serif;
}
.event .date .day { font-size: 1.9rem; font-weight: 800; color: var(--orange-dark); line-height: 1; }
.event .date .mon { text-transform: uppercase; font-size: .8rem; letter-spacing: 1px; color: var(--muted); }
.event .body { flex: 1; }
.event .body h3 { margin: 0 0 4px; }
.event .body p { margin: 0; color: var(--muted); }
.tag {
  display: inline-block; font-family: "Helvetica Neue", Arial, sans-serif; font-size: .72rem;
  text-transform: uppercase; letter-spacing: 1px; background: #1d1d1d; color: #fff;
  padding: 3px 10px; border-radius: 20px; margin-top: 6px;
}

/* ---- Members ---- */
.member { text-align: center; }
.avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--orange); color: #111; display: flex; align-items: center; justify-content: center;
  font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 800; font-size: 1.8rem;
  border: 3px solid #111;
}
/* Tilt / interactive team cards */
.tilt { transform-style: preserve-3d; transition: transform .15s ease, box-shadow .25s ease, border-color .25s ease; will-change: transform; }
.tilt .avatar, .tilt h3, .tilt .role { transition: transform .15s ease; transform: translateZ(28px); }
.team-banner {
  text-align: center; padding: 10px 0 6px;
}
.team-banner .lead-avatars { display: flex; justify-content: center; gap: -10px; }
.member h3 { margin: 0 0 2px; }
.member .role { color: var(--orange-dark); font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 700; font-size: .9rem; }
.member .rating { color: var(--muted); font-size: .9rem; }

table.ratings { width: 100%; border-collapse: collapse; background: var(--card); box-shadow: var(--shadow); border-radius: 12px; overflow: hidden; }
table.ratings th, table.ratings td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.ratings th { background: var(--black); color: #fff; font-family: "Helvetica Neue", Arial, sans-serif; font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; }
table.ratings tr:last-child td { border-bottom: 0; }
table.ratings tr:hover td { background: #fdf3ea; }

/* ---- Forms ---- */
.form-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 1rem; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--orange); border-color: var(--orange); }
.form-note { display: none; margin-top: 16px; padding: 14px; background: #eafaef; border: 1px solid #b7e6c6; border-radius: 8px; color: #1c6b38; font-family: "Helvetica Neue", Arial, sans-serif; }

/* ---- Misc ---- */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.info-list li b { font-family: "Helvetica Neue", Arial, sans-serif; min-width: 90px; }
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.socials a { background: var(--black); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-family: "Helvetica Neue", Arial, sans-serif; font-size: .9rem; }
.socials a:hover { background: var(--orange); color: #111; }

/* ---- Photos ---- */
.photo-frame {
  position: relative; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); background: #ece7df;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.photo-frame:hover img { transform: scale(1.06); }
.photo-frame .caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff;
  font-family: "Helvetica Neue", Arial, sans-serif; font-size: .88rem;
}
/* graceful fallback when a photo fails to load */
.photo-fallback {
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  width: 100%; height: 100%; min-height: 200px; color: #b58a55; gap: 8px;
  background: repeating-conic-gradient(#efe7da 0% 25%, #e6dccb 0% 50%) 0 / 40px 40px;
}
.photo-fallback .pc { font-size: 2.6rem; }
.photo-fallback .lbl { font-family: "Helvetica Neue", Arial, sans-serif; font-size: .82rem; color: #8a6a3f; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery .photo-frame:nth-child(1) { grid-row: span 2; }
.gallery .photo-frame { min-height: 180px; }

/* Make all content text black (hero & footer keep their light text). */
main, main p, main h1, main h2, main h3, main h4, main li, main span,
main .section-sub, main .eyebrow, main .role, main .meta, main .credit,
main .mission-statement, .member-stack .member-info .bio {
  color: #000 !important;
}
main .mission-statement b { color: #000 !important; }
main .mission-statement .accent { color: var(--orange) !important; }
main .accent { color: var(--orange) !important; }

/* ---- Meet the team: big square photo + separate bio card beneath ---- */
.member-stack { display: flex; flex-direction: column; gap: 14px; align-items: center; align-self: stretch; }
/* Uniform portrait rectangles — every photo the same size, cropped to fill & centered. */
.member-stack .member-photo {
  border-radius: 14px; margin: 0 auto; width: 100%; max-width: 230px; aspect-ratio: 3 / 4; height: auto;
}
.member-stack .member-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block;
}
.member-stack .member-photo .photo-fallback { width: 100%; height: 100%; min-height: 0; }
.member-stack .member-info { text-align: center; padding: 20px; width: 100%; max-width: 280px; flex: 1; }
.member-stack .member-info h3 { margin: 0 0 4px; }
.member-stack .member-info .bio { margin: 12px 0 0; color: var(--muted); font-size: .95rem; text-align: left; }

/* ---- Etched stick-figure scene beside Suriya ---- */
.etch-scene {
  grid-column: span 2; margin: 0; align-self: stretch;
  display: flex; align-items: center; justify-content: center;
  min-height: 360px; padding: 6px; position: relative; z-index: 0;
}
.etch-scene svg {
  width: 100%; height: 100%; max-width: none;
  color: #6b4626; /* warm cocoa ink for a cozier feel */
  opacity: .5; mix-blend-mode: multiply;
}
.etch-scene .etch-caption {
  font-family: 'Princeton Monticello', 'Monticello', Georgia, serif;
  font-size: 13px; letter-spacing: 1px; fill: currentColor; opacity: .85;
}

/* Speech-bubble overlay: full opacity, on top, NOT faded/blended like the sketch. */
.etch-scene svg.etch-bubbles {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 1; mix-blend-mode: normal; color: inherit; pointer-events: none;
}
.etch-bubbles text {
  fill: #111; text-anchor: middle; font-weight: 700;
  font-family: "Helvetica Neue", Arial, sans-serif; font-size: 13px;
}
.etch-bubbles .bub {
  opacity: 0; transform-box: fill-box; transform-origin: center bottom;
  animation: bubPop 12s ease-in-out infinite;
}
@keyframes bubPop {
  0%   { opacity: 0; transform: scale(.25); }
  3%   { opacity: 1; transform: scale(1.12); }
  6%   { transform: scale(1); }
  17%  { opacity: 1; transform: scale(1); }
  21%  { opacity: 0; transform: scale(.8); }
  100% { opacity: 0; transform: scale(.8); }
}
@media (prefers-reduced-motion: reduce) {
  .etch-bubbles .bub { animation: none; opacity: 1; }
}

/* Subtle facial "animations" — give each onlooker its own little tic. */
.etch-ink .gasp, .etch-ink .blink, .etch-ink .talk, .etch-ink .furrow {
  transform-box: fill-box; transform-origin: center;
}
.etch-ink .gasp   { animation: etchGasp 2.6s ease-in-out infinite; }
.etch-ink .blink  { animation: etchBlink 4.2s steps(1, end) infinite; }
.etch-ink .talk   { animation: etchTalk 1.7s ease-in-out infinite; }
.etch-ink .furrow { animation: etchFurrow 3.4s ease-in-out infinite; }
@keyframes etchGasp   { 0%,100% { transform: scaleY(.55); } 50% { transform: scaleY(1.15); } }
@keyframes etchBlink  { 0%,90%,100% { transform: scaleY(1); } 95% { transform: scaleY(.12); } }
@keyframes etchTalk   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(1.3px); } }
@keyframes etchFurrow { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-1.1px); } }
@media (prefers-reduced-motion: reduce) {
  .etch-ink .gasp, .etch-ink .blink, .etch-ink .talk, .etch-ink .furrow { animation: none; }
}
@media (max-width: 760px) { .etch-scene { display: none; } }

/* ---- Mission / values ---- */
.values .card { border-top: 4px solid var(--orange); }
.mission-statement {
  font-size: 1.15rem; line-height: 1.6; max-width: 900px; margin-left: auto; margin-right: auto;
  text-align: center; font-family: "Georgia", serif; white-space: nowrap;
}
@media (max-width: 900px) {
  .mission-statement { white-space: normal; }
}
.mission-statement b { font-weight: 500; }
.mission-statement b { color: var(--orange-dark); }

/* ---- Sponsors ---- */
.sponsors-label { display: block; text-align: center; margin: -34px 0 12px; }
.sponsors { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sponsors-inner { max-width: var(--maxw); margin: 0 auto; padding: 64px 24px; text-align: center; }
.sponsor-logos { display: flex; gap: 50px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.sponsor-logos img { max-height: 140px; max-width: 400px; filter: none; opacity: 1; transition: filter .3s, opacity .3s, transform .3s; }
.sponsor-logos a:hover img { filter: none; opacity: 1; transform: scale(1.06); }

/* Animated sponsors band (the one moved above the mission) */
.sponsors-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #fff 0%, #fff7ef 45%, #ffe9d2 50%, #fff7ef 55%, #fff 100%);
  background-size: 220% 100%; animation: sponsorSheen 7s ease-in-out infinite;
}
@keyframes sponsorSheen { 0%,100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }

/* Title: animated gradient text that keeps moving + a growing underline */
.sponsor-title {
  font-size: 1rem; letter-spacing: 4px; position: relative; display: inline-block;
  background: linear-gradient(90deg, var(--orange) 0%, #c75f10 25%, #111 50%, #c75f10 75%, var(--orange) 100%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: titleFlow 5s linear infinite, titlePulse 2.6s ease-in-out infinite;
}
@keyframes titleFlow { to { background-position: 220% center; } }
@keyframes titlePulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.sponsor-title::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
  height: 3px; width: 0; background: var(--orange); border-radius: 3px;
  animation: titleLine 2.6s ease-in-out infinite;
}
@keyframes titleLine { 0%,100% { width: 30px; opacity: .6; } 50% { width: 120px; opacity: 1; } }

/* Logos: float in, then gently bob, with a glow pulse behind them */
.sponsor-item { position: relative; display: inline-flex; animation: logoFloat 4.5s ease-in-out infinite; }
.sponsor-item:nth-child(2) { animation-delay: .6s; }
.sponsor-item::before {
  content: ""; position: absolute; inset: -18px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,119,34,.28), transparent 70%);
  opacity: 0; transition: opacity .35s; z-index: -1;
}
.sponsor-item:hover::before { opacity: 1; }
@keyframes logoFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  .sponsors-hero, .sponsor-title, .sponsor-title::after, .sponsor-item { animation: none; }
  .sponsor-title { -webkit-text-fill-color: var(--orange-dark); color: var(--orange-dark); }
}

/* ---- Tournament / event entries (Events page) ----
   Each past tournament is an ".event-entry": a card with an optional photo,
   a title, a meta line (place + date), and a description paragraph. */
.event-entry {
  background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--orange);
  border-radius: 12px; padding: 26px 28px; margin-bottom: 22px; box-shadow: var(--shadow);
}
.event-entry h3 { margin: 0 0 4px; font-size: 1.35rem; }
.event-entry .meta {
  font-family: "Helvetica Neue", Arial, sans-serif; color: var(--orange-dark);
  font-weight: 700; font-size: .9rem; margin-bottom: 10px;
}
.event-entry .donors { font-style: italic; color: var(--muted); font-size: .92rem; }
.year-heading { font-size: 1.5rem; margin: 46px 0 20px; }

/* A photo that sits above an event write-up — breaks out to full viewport width */
.event-photo {
  margin: 0 0 22px;
  max-width: 1000px; width: 100%;

  margin-left: auto;
  margin-right: auto;
}
.event-photo .photo-frame {
  border-radius: 12px;
  max-height: 500px;
  overflow: hidden;
}
.event-photo .photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.event-photo .credit {
  font-size: .85rem; color: var(--muted); margin-top: 6px; font-style: italic;
  max-width: var(--maxw); margin-left: auto; margin-right: auto; padding: 0 24px;
}

/* Full-width photo grids (e.g. cols-2) */
.grid.cols-2:has(.event-photo) {
  max-width: 1000px; width: 100%;

  margin-left: auto;
  margin-right: auto;
  padding: 0;
  gap: 4px;
}
.grid.cols-2:has(.event-photo) .event-photo {
  width: auto;
  left: auto;
  right: auto;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
}
.grid.cols-2:has(.event-photo) .event-photo .photo-frame {
  max-height: 400px;
  overflow: hidden;
}
.grid.cols-2:has(.event-photo) .event-photo .photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.grid.cols-2:has(.event-photo) .event-photo .credit {
  max-width: none;
  padding: 0 12px;
}

/* Two announcement boxes at the top of the Events page */
.announce { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 16px; }
.announce .card h3 { margin-top: 0; }
/* The secondary button uses white text for the dark hero; on the white
   announcement card it must use dark/orange text so it's readable. */
.announce .btn.secondary { color: var(--orange-dark); border-color: var(--orange); }
.announce .btn.secondary:hover { color: #111; }

/* ---- Contact page ---- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
.contact-grid .big-email { font-size: 1.25rem; font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 700; }
.map-embed { width: 100%; height: 320px; border: 0; border-radius: 12px; box-shadow: var(--shadow); }

@media (max-width: 820px) {
  .announce, .contact-grid { grid-template-columns: 1fr; }
}

/* ---- Google Calendar ---- */
.calendar-section { margin: 40px 0 48px; }
.calendar-subtitle { color: var(--muted); font-size: .95rem; margin: 4px 0 20px; }
.calendar-wrapper {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.calendar-embed {
  display: block;
  width: 100%;
  min-width: 100%;
  height: 900px;
  border: 0;
}
@media (max-width: 820px) {
  .calendar-embed { height: 650px; }
}

/* ---- Photo collage (Photos page) ---- */
.collage {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: auto auto;
  gap: 10px;
}
.collage-item .photo-frame {
  height: 100%;
  min-height: 260px;
  border-radius: 10px;
  overflow: hidden;
}
.collage-item .photo-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  object-position: center 70%;
  transition: transform .6s ease;
}
.collage-item .photo-frame:hover img { transform: scale(1.04); }
.collage-hero .photo-frame { min-height: 380px; }
/* On the second row, flip the layout: small left, hero right */
.collage-item:nth-child(3) { grid-column: 1; }
.collage-item:nth-child(4) { grid-column: 2; }
/* Swap sizes for row 2 */
.collage-item:nth-child(3) .photo-frame { min-height: 260px; }
.collage-item:nth-child(4) .photo-frame { min-height: 380px; }

@media (max-width: 820px) {
  .collage { grid-template-columns: 1fr; }
  .collage-item:nth-child(4) { grid-column: 1; }
  .collage-hero .photo-frame,
  .collage-item:nth-child(4) .photo-frame { min-height: 260px; }
}

/* ---- Footer ---- */
.footer { background: var(--black); color: #cfcfcf; margin-top: 40px; position: relative; z-index: 5; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 22px 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer a { color: var(--orange); text-decoration: none; }
.footer h4 { color: #fff; font-family: "Helvetica Neue", Arial, sans-serif; margin: 0 0 10px; }
.footer .copy { width: 100%; border-top: 1px solid #2a2a2a; padding-top: 18px; font-size: .85rem; color: #8a8a8a; }

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2,1fr); }
  .hero h1 { font-size: 2.4rem; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--black); padding: 12px 24px; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-inner { position: relative; }
}
