/* ==========================================================================
   RISE CAYMAN  &  NORTHWESTERN MEDIA
   Partner microsite stylesheet.

   All colours, fonts and spacing live in this file.
   You do NOT need to touch this file to change any words on the page.
   Words live in index.html.

   Palette is University of Northwestern's official brand colour set:
     Purple  #291D40   (PMS 2695 C)
     Gold    #E8A311   (PMS 124 C)
     White   #FFFFFF
   ========================================================================== */

/* ---------- TOKENS ---------- */
:root {
  --unw-purple:      #291D40;
  --unw-purple-deep: #170E29;
  --unw-purple-mid:  #3B2B5C;
  --unw-purple-soft: #4E3B75;

  --gold:            #E8A311;
  --gold-soft:       #F3C767;
  --gold-dim:        rgba(232, 163, 17, .35);

  --paper:           #F5F3F7;
  --paper-2:         #ECE8F1;
  --white:           #FFFFFF;

  --ink:             #1F1730;
  --ink-soft:        #443A5C;
  --muted:           #6F6688;
  --muted-dark:      #9C93B5;
  --rule:            #DCD5E5;
  --rule-dark:       rgba(255, 255, 255, .14);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --prose:   "Newsreader", Georgia, "Times New Roman", serif;

  --gutter: clamp(20px, 4vw, 40px);
  --pad-y:  clamp(76px, 8.5vw, 138px);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--prose);
  font-size: 17.5px;
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

::selection { background: var(--gold); color: var(--unw-purple-deep); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- LAYOUT ---------- */
.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap.is-narrow { max-width: 820px; }

.band { padding-top: var(--pad-y); padding-bottom: var(--pad-y); }
.band.is-tight { padding-top: clamp(52px, 5.5vw, 84px); padding-bottom: clamp(52px, 5.5vw, 84px); }

.band.on-dark { background: var(--unw-purple); color: var(--paper); }
.band.on-deep { background: var(--unw-purple-deep); color: var(--paper); }
.band.on-tint { background: var(--paper-2); }

/* ---------- TYPE ---------- */
.eyebrow {
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 600;
  font-stretch: 115%;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
  max-width: 120px;
}
.on-dark .eyebrow, .on-deep .eyebrow { color: var(--gold); }
.on-dark .eyebrow::after, .on-deep .eyebrow::after { background: var(--gold-dim); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.018em;
  color: var(--unw-purple);
}
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4,
.on-deep h1, .on-deep h2, .on-deep h3, .on-deep h4 { color: var(--white); }

h1 {
  font-size: clamp(2.5rem, 6.4vw, 5.1rem);
  font-weight: 800;
  font-stretch: 96%;
  line-height: .97;
  letter-spacing: -.028em;
}
h2 {
  font-size: clamp(1.85rem, 3.7vw, 3.05rem);
  font-weight: 700;
  letter-spacing: -.024em;
  max-width: 20ch;
}
h2.is-wide { max-width: 30ch; }
h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -.012em;
}
h4 {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: .16em;
  text-transform: uppercase;
}

p { max-width: 68ch; }
p + p { margin-top: 1.05em; }

.lede {
  font-size: clamp(1.16rem, 1.85vw, 1.42rem);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 400;
}
.on-dark .lede, .on-deep .lede { color: rgba(245, 243, 247, .82); }

.body-note {
  font-family: var(--display);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 400;
}
.on-dark .body-note, .on-deep .body-note { color: var(--muted-dark); }

.hed-gap { margin-bottom: 26px; }
.stack > * + * { margin-top: 22px; }

em { font-style: italic; }
strong { font-weight: 600; color: var(--unw-purple); }
.on-dark strong, .on-deep strong { color: var(--gold-soft); }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  transition: background .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(23, 14, 41, .93);
  backdrop-filter: blur(9px);
  border-bottom-color: var(--rule-dark);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.lockup { display: flex; align-items: center; gap: 16px; }

.mark-rise {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 108%;
  font-size: 19px;
  letter-spacing: .16em;
  color: var(--white);
  text-decoration: none;
  line-height: 1;
}
.mark-amp {
  font-family: var(--prose);
  font-style: italic;
  font-size: 21px;
  color: var(--gold);
  line-height: 1;
  position: relative;
  top: -1px;
}
.mark-unw {
  font-family: var(--display);
  font-weight: 600;
  font-stretch: 106%;
  font-size: 12.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
  line-height: 1.25;
  max-width: 12ch;
}
.nav-link {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .74);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 3px;
  white-space: nowrap;
}
.nav-link:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  margin-top: -77px;
  padding-top: 190px;
  padding-bottom: clamp(56px, 7vw, 100px);
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--unw-purple-deep);
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .68;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23,14,41,.82) 0%, rgba(23,14,41,.26) 36%, rgba(23,14,41,.90) 82%, rgba(23,14,41,.98) 100%),
    linear-gradient(90deg, rgba(41,29,64,.72) 0%, rgba(41,29,64,.10) 70%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero .eyebrow { color: var(--gold); }
.hero .eyebrow::after { background: var(--gold-dim); }
.hero h1 { color: var(--white); max-width: 15ch; text-shadow: 0 2px 30px rgba(23,14,41,.45); }
.hero-sub {
  margin-top: 26px;
  max-width: 54ch;
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  line-height: 1.56;
  color: rgba(255, 255, 255, .9);
}

.hero-meta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}
.hero-meta span { display: flex; align-items: center; gap: 26px; }
.hero-meta span::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.hero-meta span:last-child::after { display: none; }

/* ---------- COUNTDOWN ---------- */
.countdown {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 34px;
}
.cd-label {
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  flex-basis: 100%;
  margin-bottom: 4px;
  line-height: 1.5;
}
.cd-units { display: flex; gap: 26px; }
.cd-num {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 700;
  font-stretch: 92%;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.cd-cap {
  font-family: var(--display);
  font-size: 9.5px;
  font-weight: 600;
  font-stretch: 115%;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-top: 7px;
}

/* ---------- STAT ROW ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 46px;
}
.on-dark .stats, .on-deep .stats {
  background: var(--rule-dark);
  border-top-color: var(--rule-dark);
  border-bottom-color: var(--rule-dark);
}
.stat { background: var(--paper); padding: 26px 22px 24px; }
.on-tint .stat { background: var(--paper-2); }
.on-dark .stat { background: var(--unw-purple); }
.on-deep .stat { background: var(--unw-purple-deep); }
.stat-num {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  font-stretch: 92%;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--unw-purple);
}
.on-dark .stat-num, .on-deep .stat-num { color: var(--gold); }
.stat-cap {
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 11px;
  line-height: 1.5;
}
.on-dark .stat-cap, .on-deep .stat-cap { color: var(--muted-dark); }

/* ---------- SPLIT (text + photo) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.split-photo {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 26px 60px -30px rgba(31, 23, 48, .55);
}
.split-photo img { width: 100%; height: 100%; object-fit: cover; }
.split-photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 22px 18px;
  background: linear-gradient(180deg, rgba(23,14,41,0), rgba(23,14,41,.9));
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
}

/* ---------- CARD GRIDS ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 56px); }

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold);
  padding: 26px 24px 28px;
  border-radius: 2px;
}
.on-dark .card, .on-deep .card {
  background: var(--unw-purple-mid);
  border-color: rgba(255, 255, 255, .1);
  border-top-color: var(--gold);
}
.card h3, .card h4 { margin-bottom: 12px; }
.card h4 { color: var(--muted); }
.on-dark .card h4, .on-deep .card h4 { color: var(--gold); }
.card p { font-size: 16px; line-height: 1.62; color: var(--ink-soft); }
.on-dark .card p, .on-deep .card p { color: rgba(245, 243, 247, .82); }

/* ---------- SPEC LIST ---------- */
.spec { border-top: 1px solid var(--rule); margin-top: 34px; max-width: 78ch; }
.on-dark .spec, .on-deep .spec { border-top-color: var(--rule-dark); }
.spec li {
  list-style: none;
  border-bottom: 1px solid var(--rule);
  padding: 17px 0 17px 42px;
  position: relative;
  font-size: 16.5px;
  line-height: 1.58;
  color: var(--ink-soft);
}
.on-dark .spec li, .on-deep .spec li {
  border-bottom-color: var(--rule-dark);
  color: rgba(245, 243, 247, .84);
}
.spec li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 28px;
  width: 22px;
  height: 1px;
  background: var(--gold);
}

/* ---------- SIGNAL MAP (signature element) ---------- */
.signal-frame { margin-top: 46px; }
.signal-svg { width: 100%; height: auto; display: block; }

.sm-city {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 400;
  font-stretch: 106%;
  letter-spacing: .07em;
  fill: rgba(245, 243, 247, .46);
  text-transform: uppercase;
}
.sm-call {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  font-stretch: 108%;
  letter-spacing: .04em;
  fill: #F5F3F7;
}
.sm-spine { stroke: rgba(255,255,255,.13); stroke-width: 1; }
.sm-line {
  fill: none;
  stroke: rgba(232, 163, 17, .42);
  stroke-width: 1.1;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
}
.signal-frame.is-live .sm-line { animation: draw 1.5s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.sm-node { fill: var(--gold); opacity: 0; }
.sm-halo { fill: none; stroke: var(--gold); stroke-width: 1; opacity: 0; }
.signal-frame.is-live .sm-node { animation: pop .6s ease 1.35s forwards; }
.signal-frame.is-live .sm-halo { animation: halo 2.8s ease-out 1.6s infinite; }
@keyframes pop { to { opacity: 1; } }
@keyframes halo {
  0%   { r: 12; opacity: .75; }
  100% { r: 48; opacity: 0; }
}
.sm-dest {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 100%;
  font-size: 17px;
  letter-spacing: -.01em;
  fill: #FFFFFF;
}
.sm-dest-sub {
  font-family: var(--display);
  font-weight: 600;
  font-stretch: 114%;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  fill: #E8A311;
}

/* Mobile fallback for the signal map */
.signal-mobile { display: none; }
.sig-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.sig-chip {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  font-stretch: 108%;
  letter-spacing: .1em;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 2px;
  color: rgba(245, 243, 247, .86);
}
.sig-converge {
  margin-top: 24px;
  padding: 22px 24px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, .05);
}
.sig-converge strong { display: block; font-family: var(--display); font-size: 17px; margin-bottom: 5px; color: var(--white); }

/* ---------- COLLAGE ---------- */
.collage {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 44px;
}
.collage figure { overflow: hidden; border-radius: 2px; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.col-a { grid-column: span 3; aspect-ratio: 16 / 11; }
.col-b { grid-column: span 3; aspect-ratio: 16 / 11; }
.col-c { grid-column: span 4; aspect-ratio: 21 / 8; }
.col-d { grid-column: span 2; aspect-ratio: 21 / 16; }

/* ---------- PATH TIMELINE ---------- */
.path { margin-top: 48px; display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: clamp(20px, 4vw, 54px);
  padding: 28px 0;
  border-top: 1px solid var(--rule-dark);
  align-items: baseline;
}
.step:last-child { border-bottom: 1px solid var(--rule-dark); }
.step-when {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  font-stretch: 114%;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.5;
}
.step-what { font-size: 16.5px; line-height: 1.6; color: rgba(245, 243, 247, .86); max-width: 62ch; }
.step-what b { font-weight: 600; color: var(--white); }

/* ---------- BUILDER ---------- */
.builder {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: clamp(26px, 4vw, 46px);
  margin-top: 42px;
  box-shadow: 0 22px 50px -34px rgba(31, 23, 48, .5);
}
.q { border-top: 1px solid var(--rule); padding-top: 24px; margin-top: 26px; }
.q:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.q-label {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  font-stretch: 106%;
  letter-spacing: .02em;
  color: var(--unw-purple);
  margin-bottom: 14px;
}
.opts { display: flex; flex-wrap: wrap; gap: 9px; }
.opt {
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 15px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-soft);
  border-radius: 2px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  text-align: left;
}
.opt:hover { border-color: var(--unw-purple-soft); color: var(--unw-purple); }
.opt.is-on { background: var(--unw-purple); border-color: var(--unw-purple); color: var(--white); }

.brief {
  margin-top: 30px;
  border-top: 3px solid var(--gold);
  background: var(--paper-2);
  padding: 26px 24px;
  border-radius: 2px;
}
.brief-title {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  font-stretch: 114%;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.brief-body { font-size: 16.5px; line-height: 1.66; color: var(--ink-soft); }
.brief-body p + p { margin-top: .9em; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn {
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: 2px;
  border: 1px solid var(--unw-purple);
  background: var(--unw-purple);
  color: var(--white);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background .18s ease, color .18s ease;
}
.btn:hover { background: var(--unw-purple-deep); }
.btn.is-ghost { background: transparent; color: var(--unw-purple); }
.btn.is-ghost:hover { background: var(--unw-purple); color: var(--white); }
.btn.is-gold { background: var(--gold); border-color: var(--gold); color: var(--unw-purple-deep); }
.btn.is-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }

/* ---------- CLOSER ---------- */
.closer {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--unw-purple-deep);
  overflow: hidden;
  padding: clamp(80px, 10vw, 150px) 0;
}
.closer-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.closer-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(23,14,41,.92) 0%, rgba(23,14,41,.45) 42%, rgba(23,14,41,.92) 100%),
    linear-gradient(90deg, rgba(23,14,41,.80) 0%, rgba(23,14,41,.30) 58%, rgba(23,14,41,0) 100%);
}
.closer .wrap { position: relative; z-index: 2; }
.closer .lede { color: rgba(255, 255, 255, .88); }
.closer .body-note { color: rgba(255, 255, 255, .6); }
.closer h2 {
  font-size: clamp(2.6rem, 7.5vw, 6rem);
  font-weight: 800;
  font-stretch: 94%;
  color: var(--white);
  max-width: 14ch;
  letter-spacing: -.03em;
}
.closer-rule { width: 84px; height: 3px; background: var(--gold); margin: 34px 0 30px; }

.contact { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 820px; }
.contact-item h4 { color: var(--gold); margin-bottom: 9px; }
.contact-item a, .contact-item p {
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,.9);
  text-decoration: none;
  display: block;
}
.contact-item a:hover { color: var(--gold); }

.legal {
  border-top: 1px solid var(--rule-dark);
  margin-top: 56px;
  padding-top: 22px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .09em;
  color: rgba(255,255,255,.42);
  line-height: 1.7;
}

/* ---------- REVEAL ---------- */
.rise { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.rise.is-live { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split-photo { max-height: 460px; }
  .contact { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  body { font-size: 16.5px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .hero { min-height: 88vh; padding-top: 150px; }
  .cd-units { gap: 20px; }
  .collage { grid-template-columns: repeat(2, 1fr); }
  .col-a, .col-b, .col-c, .col-d { grid-column: span 1; aspect-ratio: 4 / 3; }
  .mark-unw { max-width: 9ch; font-size: 11px; }
  .signal-desktop { display: none; }
  .signal-mobile { display: block; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-long { display: none; }
  .nav-link { font-size: 10px; letter-spacing: .14em; }
}

@media (max-width: 420px) {
  .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}

@media print {
  .nav, .builder, .actions { display: none; }
  body { background: #fff; }
  .rise { opacity: 1 !important; transform: none !important; }
  .sm-line { stroke-dashoffset: 0 !important; }
  .sm-node { opacity: 1 !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rise { opacity: 1; transform: none; }
  .sm-line { stroke-dashoffset: 0; }
  .sm-node { opacity: 1; }
}
