:root{
  --bg: #f6f9ff;
  --panel: #ffffff;
  --panel2: #f0f6ff;
  --text: #0f172a;
  --muted: #475569;
  --line: #d8e3ff;

  --brand: #1d4ed8;   /* blue */
  --brand2: #60a5fa;  /* light blue */
  --ok: #16a34a;
  --err: #dc2626;

  --shadow: 0 10px 24px rgba(2, 6, 23, .08);
  --radius: 18px;
  --radius2: 24px;
  --max: 1100px;
  --initials-bg: linear-gradient(135deg, rgba(29,78,216,.12), rgba(96,165,250,.18));
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);

  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(96,165,250,.35), transparent 55%),
    radial-gradient(900px 500px at 95% 0%, rgba(29,78,216,.20), transparent 60%),
    var(--bg);

  /* NEW: make the background "taller" */
  background-repeat: no-repeat;
  background-size: 100% 1000px;  /* increase this number for more vertical gradient */
  background-attachment: scroll;
}

a{ color: var(--brand); text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  width:min(var(--max), calc(100% - 36px));
  margin:0 auto;
}
.narrow{ width:min(820px, calc(100% - 36px)); margin:0 auto; }

.skip-link{
  position:absolute; left:-999px; top:-999px;
  background:var(--panel);
  border:1px solid var(--line);
  padding:10px 12px; border-radius:12px;
}
.skip-link:focus{ left:12px; top:12px; z-index:50; }

.site-header{
  position:sticky; top:0; z-index:40;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row{
  display:flex; align-items:center; gap:14px;
  padding:14px 0;
}

.brand{ display:flex; align-items:center; gap:12px; }
.brand-mark{
  width: 50px;
  height: 50px;
  display: block;
  object-fit: contain;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.brand-title{ font-weight:900; letter-spacing:.2px; color: var(--text); }
.brand-subtitle{ display:block; font-size:12px; color:var(--muted); margin-top:2px; }

.nav-toggle{
  margin-left:auto;
  display:none;
  background: var(--panel);
  color: var(--text);
  border:1px solid var(--line);
  border-radius:12px;
  padding:8px 10px;
  box-shadow: var(--shadow);
}

.nav{
  margin-left:auto;
  display:flex; gap:10px; flex-wrap:wrap;
}
.nav a{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid transparent;
  color: var(--muted);
}
.nav a.active{
  color: var(--brand);
  border-color: rgba(29,78,216,.25);
  background: rgba(29,78,216,.06);
  font-weight:700;
}
.nav a:hover{
  color: var(--brand);
  border-color: rgba(29,78,216,.20);
  text-decoration:none;
}

.hero{ padding:54px 0 24px; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:22px;
  align-items:start;
}

h1{ font-size: 44px; margin:0 0 10px; line-height:1.05; }
h2{ font-size: 26px; margin:26px 0 10px; }
h3{ font-size: 18px; margin:16px 0 8px; }
.h3{ font-size:18px; margin:0; }

.lead{ font-size: 18px; color: var(--muted); max-width: 60ch; }
.muted{ color: var(--muted); }
.tiny{ font-size: 12px; }

.pill-row{ display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 18px; }
.pill{
  border:1px solid var(--line);
  background: rgba(29,78,216,.06);
  color: var(--brand);
  border-radius: 999px;
  padding:6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius: 14px;
  padding:10px 14px;
  border:1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  cursor:pointer;
  text-decoration:none;
  box-shadow: var(--shadow);
}
.btn:hover{ text-decoration:none; border-color: rgba(29,78,216,.25); }
.btn.primary{
  border-color: rgba(29,78,216,.35);
  background: linear-gradient(135deg, rgba(29,78,216,.12), rgba(96,165,250,.16));
  color: var(--brand);
  font-weight: 800;
}
.btn.subtle{ opacity:.85; box-shadow:none; }

.cta-row{ display:flex; gap:10px; flex-wrap:wrap; margin: 18px 0 16px; }

.card, .hero-card{
  background: var(--panel);
  border:1px solid var(--line);
  border-radius: var(--radius2);
  padding: 16px;
  box-shadow: var(--shadow);
}

.hero-card-center{
  text-align: center;
}

.format-lines{
  margin: 12px 0 0;
  line-height: 1.9;
}

.divider{
  height:1px;
  background: var(--line);
  margin: 14px 0;
}

.checklist{ margin: 10px 0 0; padding-left: 18px; }
.checklist li{ margin: 6px 0; }

.countdown-card{
  margin-top: 18px;
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(29,78,216,.06), rgba(96,165,250,.06));
  border-radius: var(--radius);
  padding: 14px;
}
.countdown-title{ font-weight:800; margin-bottom: 10px; color: var(--brand); }
.countdown-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:10px;
}
.countdown-grid .num{
  font-size: 26px;
  font-weight:900;
  letter-spacing:.5px;
  color: var(--text);
}
.countdown-grid .lbl{ font-size: 12px; color: var(--muted); }

.section{ padding: 20px 0 56px; }
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}

.page{ padding: 34px 0 56px; }

.callout{
  margin-top: 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:1px solid rgba(29,78,216,.25);
  background: rgba(29,78,216,.06);
  border-radius: var(--radius);
  padding: 14px;
}

.info-grid{
  display:grid;
  text-align: center;
  grid-template-columns: repeat(2, 1fr);
  gap:12px;
}
.info-box{
  border:1px solid var(--line);
  background: var(--panel2);
  border-radius: var(--radius);
  padding: 14px;
}

.table{
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  background: var(--panel);
}
.table .row{
  display:grid;
  grid-template-columns: 160px 1fr;
  gap:10px;
  padding: 10px 12px;
  border-bottom:1px solid var(--line);
}
.table .row:last-child{ border-bottom:none; }

.row-between{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.inline{ display:flex; align-items:center; gap:10px; color: var(--muted); }
.inline select{
  background: var(--panel);
  color: var(--text);
  border:1px solid var(--line);
  border-radius:12px;
  padding: 8px 10px;
}

.form label{ display:block; font-weight:700; margin: 10px 0; color: var(--text); }
input, select, textarea{
  width:100%;
  margin-top:6px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 10px 12px;
  outline:none;
}
textarea{ resize: vertical; }

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

.stack{ display:flex; flex-direction:column; gap:10px; }

.status{ min-height: 18px; font-size: 13px; color: var(--muted); }
.status.ok{ color: var(--ok); font-weight: 700; }
.status.err{ color: var(--err); font-weight: 700; }

.accordion{ border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; background: var(--panel); }
.acc-item{
  width:100%;
  text-align:left;
  border:none;
  border-bottom:1px solid var(--line);
  background: rgba(29,78,216,.04);
  color: var(--text);
  padding: 14px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
  font-weight:800;
}
.acc-panel{ display:none; padding: 0 14px 14px; background: var(--panel); }
.acc-item[aria-expanded="true"] + .acc-panel{ display:block; }
.chev{ color: var(--muted); }

.grid3{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:14px;
  margin-top: 14px;
}

.podium-title{ font-weight:900; margin-bottom: 8px; color: var(--brand); }
.podium-list{ margin: 0; padding-left: 18px; }
.rank-row{
  margin: 10px 0;
  padding: 10px;
  border:1px solid var(--line);
  border-radius: 14px;
  background: var(--panel2);
}
.rank-head{ font-weight:900; }

.note{
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--panel2);
}
.note-title{ font-weight:900; margin-bottom: 6px; color: var(--brand); }

.photo-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-top: 14px;
}
.photo{
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: var(--panel2);
}
.photo.placeholder{ display:grid; place-items:center; color: var(--muted); font-weight: 700; }

.embed iframe{
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.site-footer{
  border-top:1px solid var(--line);
  background: rgba(255,255,255,.80);
  padding: 26px 0;
}
.footer-grid{
  display:grid;
  grid-template-columns: 2fr 1.2fr 1fr;
  gap:16px;
  padding-bottom: 16px;
}
.footer-title{ font-weight:900; margin-bottom: 6px; }
.footer-links{ display:flex; flex-direction:column; gap:6px; }

@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .grid3{ grid-template-columns: 1fr; }
  .info-grid{ grid-template-columns: 1fr; }
  .photo-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px){
  .nav-toggle{ display:inline-flex; }
  .nav{
    display:none;
    width:100%;
    padding-bottom: 10px;
  }
  .nav.open{ display:flex; flex-direction:column; margin-left:0; }
  .grid2{ grid-template-columns: 1fr; }
  h1{ font-size: 36px; }
}

.team-page-title{ text-align:center; }
.team-page-lead{ text-align:center; margin-left:auto; margin-right:auto; }

.team-section{ margin-top: 22px; }
.team-title{
  text-align:center;
  margin: 24px 0 14px;
}

.team-logo{
  display:block;
  width: min(200px, 50%);
  height: auto;
  margin: 12px auto 18px;  /* centered, with space before cards */
}

.team-grid{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:14px;
}

.person-card{
  width: 190px;
  border:1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 0;
  cursor:pointer;
  overflow:hidden;
  text-align: center;
  transition: transform .12s ease, border-color .12s ease;
}
.person-card:hover{ transform: translateY(-2px); border-color: rgba(29,78,216,.28); }
.person-card:focus-visible{
  outline: 3px solid rgba(29,78,216,.25);
  outline-offset: 3px;
}

.person-photo{
  height: 240px;
  background: var(--initials-bg);
  display:grid;
  place-items:center;
  position:relative;
}
.person-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;           /* fills the 3:4 area */
  object-position: top center; /* NEW: crop from the bottom */
  display: block;
}
.person-initials{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  font-weight: 900;
  letter-spacing: .6px;
  color: rgba(15,23,42,.65);
  font-size: 34px;
}
.person-photo img + .person-initials{
  display: none;
}
.person-photo{
  overflow: hidden;            /* make sure overflow is clipped */
}

.person-name{
  background: #ffffff;
  padding: 12px 12px;
  font-weight: 900;
  text-align: center;
  border-top: 1px solid var(--line);
}

.team-modal{
  position: fixed;
  inset: 0;
  z-index: 80;
  display:grid;
  place-items:center;
  padding: 18px;
}
.team-modal[hidden]{
  display: none !important;
}

.team-modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(2,6,23,.45);
  backdrop-filter: blur(4px);
}

.team-modal-card{
  position: relative;
  width: min(900px, calc(100% - 24px));   /* optional: a bit wider than 760 */
  aspect-ratio: 3 / 2;                    /* NEW: 6:4 */
  min-height: 0;                          /* NEW: remove forced height */
  border-radius: 26px;
  border:1px solid rgba(255,255,255,22);
  background: rgba(255,255,255,92);
  box-shadow: 0 20px 60px rgba(2,6,23,25);
  overflow:hidden;
  display:grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.team-modal-close{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.85);
  cursor:pointer;
  box-shadow: var(--shadow);
}

.team-modal-media{
  aspect-ratio: 3 / 4;        /* NEW */
  min-height: 0;              /* NEW */
  height: 100%;               /* NEW */
  background: linear-gradient(135deg, rgba(29,78,216,14), rgba(96,165,250,18));
  display:grid;
  place-items:center;
}

.team-modal-img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position: top center; /* keeps top aligned */
  display:block;
}

.team-modal-fallback{
  width: 100%;
  height: 100%;
  display: none;
  place-items: center;

  /* EXACT same background as .person-photo */
  background: var(--initials-bg);

  font-weight: 900;
  letter-spacing: .6px;
  font-size: 48px;
  color: rgba(15,23,42,.65);
}

.team-modal-body{
  aspect-ratio: 3 / 4;        /* NEW */
  height: 100%;               /* NEW */
  padding: 18px 18px 20px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:10px;
  overflow:auto;              /* NEW: scroll if bio is long */
}

.team-modal-name{ margin:0; font-size: 22px; }
.team-modal-bio{ margin:0; line-height: 1.6; white-space: pre-line; }

@media (max-width: 760px){
  .person-card{ width: 170px; }
  .person-photo{
      aspect-ratio: 3 / 4;          /* NEW */
      height: auto;                  /* NEW (don’t force px height) */
      background: linear-gradient(135deg, rgba(29,78,216,.12), rgba(96,165,250,.18));
      display:grid;
      place-items:center;
      position:relative;
  }
  .team-modal-card{ grid-template-columns: 1fr; }
  .team-modal-media{
      aspect-ratio: 3 / 4;
      min-height: 0;
      height: 100%;
      display:grid;
      place-items:center;
  }
}
