/* Shift Student Club, concept landing page. Step 4, final.
   Colours sampled from the Shift post and story templates (Nov 8, 2026):
   navy #141D37 ground, white and periwinkle #8FA3CE text, hairline #44578A, mist #E6E9F1 light ground.
   Layout carried over from wireframe B (signed off by Adam): modest lines, sentence case, art leads. */

@font-face { font-family: "Fustat"; src: url(fonts/fustat-latin.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --navy: #141D37;
  --mist: #E6E9F1;
  --white: #FFFFFF;
  --peri: #8FA3CE;        /* secondary text on navy, 6.6:1 */
  --peri-ink: #44578A;    /* secondary text on mist, 5.8:1; also the hairline on navy */
  --rule-navy: #44578A;
  --rule-mist: #BCC5DC;
  --sans: "Fustat", "Segoe UI", system-ui, sans-serif;
  --gutter: 16px;
  color-scheme: dark;
}
@media (min-width: 1024px) { :root { --gutter: 40px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--navy); color: var(--white); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--white); color: var(--navy); padding: 10px 14px; font-weight: 700; }
.skip:focus { top: 12px; }

/* bands */
.band { width: 100%; }
.band.dark { background: var(--navy); color: var(--white); --rule: var(--rule-navy); --dim: var(--peri); }
.band.light { background: var(--mist); color: var(--navy); --rule: var(--rule-mist); --dim: var(--peri-ink); }
.wrap { max-width: 1440px; margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
section.band { padding-bottom: 72px; }
@media (min-width: 1024px) { section.band { padding-bottom: 120px; } }
section.hero, section.join { padding-bottom: 0; }

/* 12-column grid */
.cells { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.cells > * { min-width: 0; }
.cell { padding: 20px; }
@media (min-width: 1024px) { .cell { padding: 28px; } }
.s12 { grid-column: span 12; }
@media (min-width: 1024px) {
  .d2 { grid-column: span 2; } .d3 { grid-column: span 3; } .d4 { grid-column: span 4; }
  .d5 { grid-column: span 5; } .d7 { grid-column: span 7; } .d9 { grid-column: span 9; }
}

/* type */
.eyebrow { font-size: 15px; font-weight: 600; color: var(--dim); margin: 0; }
.headline { font-weight: 800; font-size: clamp(52px, 6.6vw, 96px); line-height: 1.02; letter-spacing: -.04em; margin: 0; text-wrap: balance; }
.display { font-weight: 800; font-size: clamp(48px, 6vw, 88px); line-height: 1; letter-spacing: -.045em; margin: 0; text-wrap: balance; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; margin: 0; max-width: 34ch; }
.h3 { font-weight: 700; font-size: clamp(28px, 2.8vw, 40px); line-height: 1; letter-spacing: -.02em; margin: 0; }
.body { font-size: 17px; line-height: 1.5; margin: 0; max-width: 42ch; }
.list { list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 500; color: var(--dim); display: grid; gap: 4px; }
.tbd { color: var(--dim); }

/* buttons, 0 radius */
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; font: 700 16px/1 var(--sans); text-decoration: none; border: 1px solid currentColor; transition: background-color .2s, color .2s; }
.dark .btn-primary { background: var(--white); color: var(--navy); border-color: var(--white); }
.dark .btn-primary:hover { background: var(--peri); border-color: var(--peri); }
.dark .btn-secondary:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.cta-line { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta-note { font-size: 14px; color: var(--dim); }
.small-link { font-size: 14px; font-weight: 600; text-underline-offset: 4px; }

/* wordmark */
.wm { display: block; height: auto; }

/* header */
.header { border-bottom: 1px solid var(--rule-navy); }
.header .cell { display: flex; align-items: center; min-height: 72px; padding-block: 14px; }
.header .wm { width: 104px; }
.nav-link { font-size: 15px; font-weight: 600; text-decoration: none; }
.nav-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.header .end { justify-content: flex-end; }
.desk-only { display: none; }
@media (min-width: 1024px) { .desk-only { display: flex; } }
@media (max-width: 1023.98px) {
  .desk-only { display: none !important; }
  .header .cells { grid-template-columns: 1fr auto; }
  .header .brand, .header .end { grid-column: auto; }
}

/* hero: the art leads */
.hero-media { aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; background: #2b4a6a; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 36%; }
@media (min-width: 1024px) { .hero-media { aspect-ratio: auto; height: calc(100svh - 73px); min-height: 560px; } .hero-media img { object-position: 50% 50%; } }
@media (min-width: 1024px) { .hero { overflow-x: clip; } .hero .next { border-top: 0; position: relative; } .hero .next::before { content: ""; position: absolute; top: 0; left: 0; width: 100vw; height: 1px; background: var(--rule); } }
.hero-side { display: grid; grid-template-rows: auto 1fr auto; }
.hero-main { display: flex; flex-direction: column; justify-content: flex-end; gap: 28px; padding-block: 40px 28px; }
.next { display: grid; gap: 14px; border-top: 1px solid var(--rule); }
.next-row { display: grid; gap: 6px; }
.next-date { font-weight: 800; font-size: 32px; line-height: 1; letter-spacing: -.02em; }
.next-meta { font-size: 16px; line-height: 1.4; }
@media (max-width: 1023.98px) {
  .hero .wrap { padding-inline: 0; }
  .hero-side > * { padding-left: max(calc(var(--gutter) + 20px), env(safe-area-inset-left, 0px)); padding-right: max(calc(var(--gutter) + 20px), env(safe-area-inset-right, 0px)); }
  .hero-main { padding-block: 32px; }
}

/* ticker */
.ticker { overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker-track ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker-track li { font-weight: 800; font-size: clamp(28px, 3.4vw, 48px); letter-spacing: -.01em; text-transform: uppercase; padding: 18px 0; white-space: nowrap; }
.ticker-track li::after { content: "/"; font-weight: 400; padding-inline: .6em; color: var(--peri-ink); }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; width: auto; }
  .ticker-track ul { flex-wrap: wrap; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)); }
  .ticker-track ul[aria-hidden] { display: none; }
}

/* section openers */
.opener .cell { padding-block: 56px 28px; }
.opener .eyebrow-cell { display: flex; align-items: flex-end; }
@media (min-width: 1024px) { .opener .cell { padding-block: 140px 48px; } }
@media (max-width: 1023.98px) {
  .opener .eyebrow-cell { padding-block: 48px 0; }
  .opener .eyebrow-cell + .cell { padding-top: 14px; }
}
.row .cell { padding-block: 28px; }
@media (min-width: 1024px) { .row .cell { padding-block: 36px; } }

/* what we cover */
.who-row { display: grid; gap: 12px; padding-block: 26px; }
.who-row > .cell { padding-block: 0; }
.who + .who { position: relative; }
.who + .who::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--rule); transform-origin: 0 50%; transform: scaleX(var(--rs, 1)); }
@media (min-width: 1024px) {
  .who-row { grid-template-columns: 3fr 5fr 4fr; gap: 0; padding-block: 0; }
  .who-row > .cell { padding-block: 30px; }
}
@media (max-width: 1023.98px) {
  .who-row .list { grid-template-columns: 1fr 1fr; column-gap: 16px; row-gap: 2px; }
  .who-row .list li:nth-child(n+5) { display: none; }
}

/* the talks */
#meetups .opener .cell { padding-bottom: 72px; }
.idx-head { border-top: 1px solid var(--rule); }
.idx { position: relative; }
.idx::before, .idx:last-of-type::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--rule); transform-origin: 0 50%; transform: scaleX(var(--rs, 1)); }
.idx::before { top: 0; } .idx:last-of-type::after { bottom: 0; }
.idx-next::before { display: none; }
.idx-head .cell { padding-block: 18px; }
.idx .cell { padding-block: 30px; }
@media (min-width: 1024px) {
  #meetups .opener .cell { padding-block: 160px 96px; }
  .idx-head .cell { padding-block: 22px; }
  .idx .cell { padding-block: 44px; }
  #meetups.band { padding-bottom: 200px; }
}
.idx-talk { font-weight: 700; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -.01em; margin: 0; }
.idx-date { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 16px; }
.idx-next { border-top: 0; background: var(--navy); color: var(--white); --dim: var(--peri); }
.idx-mob { display: grid; gap: 8px; }
.idx-mob-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; color: var(--dim); }
@media (min-width: 1024px) { .idx-mob { display: none; } }
@media (max-width: 1023.98px) { .idx-desk, .idx-head { display: none; } }

/* partners */
.partners-copy { display: grid; gap: 28px; align-content: start; }
.past { display: grid; gap: 12px; }

/* join: the forest closes the page */
.join { position: relative; }
.join-art { aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; background: #3d4a52; }
.join-art img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
@media (min-width: 1024px) { .join-art { aspect-ratio: auto; height: 90svh; min-height: 520px; width: 100%; } }
.join-art::after { content: ""; position: absolute; inset: 0; background: rgba(20, 29, 55, .4); }
.join-over { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 22px; text-align: center; padding: 24px max(20px, env(safe-area-inset-left, 0px)); color: var(--white); }
.join-over .wm { width: min(448px, 60vw); }
.join-tag { font-weight: 800; font-size: clamp(24px, 3vw, 40px); letter-spacing: -.02em; line-height: 1; margin: 0; }
.join-line { font-size: 18px; font-weight: 600; margin: 0; }

/* footer */
.footer .cell { padding-block: 28px; }
.footer .cells > .cell:last-child { padding-top: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; font-weight: 600; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-name { margin: 0; font-weight: 700; }
.concept { font-size: 14px; color: var(--peri); margin: 0; }
.foot-stack { display: grid; gap: 16px; align-content: start; }

/* motion (motion.js, GSAP). Principles: shift, don't fade; the cut is the brand moment; the art is a stage; stillness for sponsors.
   .mo is set in <head> only when motion is allowed; it hides the hero until the timeline takes over. */
.mo .hero-media, .mo .hero .eyebrow, .mo .hero-main, .mo .hero .next { visibility: hidden; }
.g-word { display: inline-block; }
