/* IAU Student Council: public site. Caspian Glass, dark.
   Glass only for things that float (nav, the table panel, the phone, the contact panel);
   reading content sits on calm solid tiles. One accent: council mint. */
:root {
  --bg: #06110f;
  --ink: #eef7f3;
  --body: #c3d6d0;
  --muted: #93aca5;
  --green: #0a5c52;
  --mint: #3fe0a8;
  --mint-ink: #04241c;
  --line: rgb(255 255 255 / 0.10);
  --tile: rgb(13 31 28 / 0.78);
  --glass: rgb(255 255 255 / 0.065);
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --text: Switzer, ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --r: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(20px, 5vw, 64px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--body); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -0.03em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 8px; }

/* ---------- The Caspian field: slow light behind everything ---------- */
.field { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 80% at 50% -10%, #0c2a25 0%, var(--bg) 60%); }
.field i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: drift 38s var(--ease) infinite alternate; }
.field i:nth-child(1) { width: 60vw; height: 60vw; left: -18vw; top: -22vw; background: #0f6b5d; }
.field i:nth-child(2) { width: 46vw; height: 46vw; right: -14vw; top: 18vh; background: #0b4d58; animation-duration: 46s; animation-delay: -12s; }
.field i:nth-child(3) { width: 40vw; height: 40vw; left: 30vw; bottom: -26vw; background: #1a7a5f; opacity: .35; animation-duration: 52s; animation-delay: -20s; }
@keyframes drift { to { transform: translate3d(6vw, 4vh, 0) scale(1.12); } }

/* ---------- Glass recipe ---------- */
.glass {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.09), rgb(255 255 255 / 0.035));
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgb(255 255 255 / 0.12);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.20), 0 1px 1px rgb(0 0 0 / .2), 0 24px 60px -20px rgb(0 0 0 / .55);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: #10241f; } }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) { .glass { background: #10241f; -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; font: 600 15px/1 var(--text); text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; transition: transform .2s var(--ease), background-color .2s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn-mint { background: var(--mint); color: var(--mint-ink); box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 8px 24px -10px rgb(63 224 168 / .6); }
.btn-mint:hover { background: #5ce9b8; }
.btn-glass { background: rgb(255 255 255 / .08); color: var(--ink); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); }
.btn-glass:hover { background: rgb(255 255 255 / .13); }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.link-arrow { color: var(--ink); font-weight: 500; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 10; padding: max(14px, env(safe-area-inset-top)) var(--pad) 0; pointer-events: none; }
.nav { pointer-events: auto; max-width: 1200px; margin: 0 auto; height: 64px; border-radius: 999px; display: flex; align-items: center; gap: 24px; padding: 0 10px 0 24px; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { list-style: none; display: flex; gap: 4px; margin: 0 auto; padding: 0; }
.nav-links a { display: block; padding: 9px 14px; border-radius: 999px; color: var(--body); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--ink); background: rgb(255 255 255 / .07); }
.nav-menu { display: none; }

/* ---------- Layout ---------- */
main { max-width: calc(1200px + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.eyebrow { font: 600 13px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--mint); margin-bottom: 18px; }
.section { padding: clamp(80px, 12vw, 150px) 0 0; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2, .app-copy h2, .contact h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.02; font-weight: 700; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding: 130px 0 60px; }
.hero h1 { font-size: clamp(52px, 7vw, 100px); line-height: .96; font-weight: 800; letter-spacing: -0.032em; }
.hero h1 em { font-style: normal; color: var(--mint); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--body); max-width: 33ch; margin-top: 28px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; flex-wrap: wrap; }

.table-panel { border-radius: 34px; padding: 22px 22px 26px; }
.table-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 6px 0; }
.kicker { font: 600 13px/1 var(--text); color: var(--ink); letter-spacing: .02em; }
.hint { font-size: 13px; color: var(--muted); }
.table { width: 100%; max-width: 440px; margin: 6px auto 0; display: block; overflow: visible; }
.table .t-top { fill: url(#tableFill); stroke: rgb(255 255 255 / .16); stroke-width: .5; }
.seat { cursor: pointer; outline: none; }
.seat .s-body { fill: rgb(238 247 243 / .82); transition: fill .25s var(--ease), transform .35s var(--ease); transform-box: fill-box; transform-origin: center; }
.seat:hover .s-body { fill: #fff; }
.seat[aria-pressed="true"] .s-body { fill: var(--mint); }
.seat.is-president .s-body { fill: var(--mint); }
.seat:focus-visible .s-ring { stroke: var(--mint); }
.s-ring { fill: none; stroke: transparent; stroke-width: 1; }
.seat-card { border-top: 1px solid var(--line); margin-top: 14px; padding: 18px 8px 0; min-height: 132px; }
.seat-dept { font-size: 13px; color: var(--mint); font-weight: 600; letter-spacing: .02em; }
.seat-title { font-size: 26px; line-height: 1.1; margin-top: 6px; font-weight: 700; }
.seat-text { margin-top: 8px; color: var(--body); font-size: 15.5px; max-width: 46ch; }
.seat-card.swap > * { animation: swap .45s var(--ease) both; }
.seat-card.swap > :nth-child(2) { animation-delay: .03s; } .seat-card.swap > :nth-child(3) { animation-delay: .06s; }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } }
@keyframes seatIn { from { opacity: 0; transform: scale(.4); } }
.table.intro .seat .s-body { animation: seatIn .6s var(--ease) both; }

/* ---------- Bento: solid tiles (reading surfaces), one big ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { background: var(--tile); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; min-height: 230px; transition: border-color .3s, transform .4s var(--ease); }
.tile:hover { border-color: rgb(63 224 168 / .35); transform: translateY(-2px); }
.tile-xl { grid-column: span 2; grid-row: span 2; background: linear-gradient(160deg, #0d4a42 0%, #0a2b26 70%); }
.tile-xl h3 { font-size: clamp(30px, 3vw, 44px); }
.tile-xl p { font-size: 18px; max-width: 34ch; }
.tile-wide { grid-column: 1 / -1; min-height: 0; display: grid; grid-template-columns: 70px 1.1fr 1.6fr auto; align-items: center; gap: 24px; }
.tile-wide h3 { margin: 0; padding: 0; }
.tile-wide .tile-lead { margin: 0; padding: 0; border: 0; white-space: nowrap; }
.tile-n { font: 600 13px/1 var(--text); color: var(--muted); letter-spacing: .08em; }
.tile h3 { font-size: 22px; line-height: 1.12; margin: auto 0 10px; padding-top: 28px; font-weight: 700; }
.tile p { color: var(--body); font-size: 15.5px; }
.tile-lead { margin-top: 18px; font-size: 13px; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 28px 28px 30px; border-radius: var(--r); background: var(--tile); border: 1px solid var(--line); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgb(63 224 168 / .12); color: var(--mint); font: 700 17px/1 var(--display); margin-bottom: 40px; box-shadow: inset 0 0 0 1px rgb(63 224 168 / .3); }
.step h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 15.5px; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 47px; left: 80px; right: -16px; height: 1px; background: linear-gradient(90deg, rgb(63 224 168 / .45), transparent); }

/* ---------- App ---------- */
.app { display: grid; grid-template-columns: 1fr 380px; gap: clamp(40px, 7vw, 110px); align-items: center; }
.app-copy > p:not(.eyebrow) { margin-top: 22px; max-width: 46ch; font-size: 18px; }
.app-points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; }
.app-points li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 500; }
.app-points li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgb(63 224 168 / .14); flex: none; }
.phone { margin: 0; border-radius: 54px; padding: 12px; transform: rotate(3deg); }
.phone img { border-radius: 43px; width: 100%; }

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(80px, 10vw, 140px); }
.contact-panel { border-radius: 40px; padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.contact-badge { width: clamp(150px, 18vw, 230px); height: auto; }
.contact-panel p:not(.eyebrow) { margin-top: 16px; font-size: 18px; max-width: 40ch; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- Footer ---------- */
.footer { max-width: calc(1200px + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad) max(36px, env(safe-area-inset-bottom)); }
.footer-mark { width: 100%; height: auto; opacity: .92; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer-row { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 140px; }
  .table-panel { max-width: 560px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-wide { grid-template-columns: 1fr; display: flex; }
  .tile-wide h3 { margin: auto 0 10px; padding-top: 28px; }
  .tile-wide .tile-lead { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); white-space: normal; }
  .app { grid-template-columns: 1fr 300px; }
}
/* ---------- Phone ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { height: 58px; padding: 0 8px 0 18px; gap: 10px; }
  .nav-logo img { height: 30px; }
  .nav-cta { margin-left: auto; height: 40px; padding: 0 16px; font-size: 14px; }
  .nav-menu { display: grid; place-items: center; gap: 5px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .08); cursor: pointer; padding: 0; }
  .nav-menu span { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease); }
  .nav-menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav-links { position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; gap: 2px; padding: 10px; border-radius: 26px; background: rgb(12 30 27 / .92); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); border: 1px solid rgb(255 255 255 / .12); opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; transition: opacity .25s var(--ease), transform .3s var(--ease); }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px 16px; font-size: 17px; }
  .nav { position: relative; }
  .hero { padding: 116px 0 20px; gap: 36px; }
  .hero h1 { font-size: clamp(46px, 13.5vw, 64px); }
  .lead { margin-top: 20px; }
  .hero-actions { gap: 20px; margin-top: 28px; }
  .table-panel { padding: 16px 14px 20px; border-radius: 28px; }
  .bento { grid-template-columns: 1fr; }
  .tile-xl { grid-column: auto; grid-row: auto; }
  .tile-wide { display: flex; grid-column: auto; }
  .tile-wide h3 { margin: auto 0 10px; padding-top: 22px; }
  .tile-wide .tile-lead { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); white-space: normal; }
  .tile { min-height: 0; }
  .tile h3 { padding-top: 22px; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .step-n { margin-bottom: 22px; }
  .app { grid-template-columns: 1fr; }
  .phone { max-width: 290px; margin: 0 auto; transform: none; }
  .contact-panel { grid-template-columns: 1fr; text-align: left; border-radius: 30px; }
  .contact-badge { width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 1020px) {
  .tile-wide { flex-direction: column; align-items: stretch; text-align: left; }
}
@media (max-width: 760px) {
  .section-head br, .app-copy br { display: none; }
}
