/* =========================================================
   MSN Alumni - styles.css
   Design direction: Windows Vista Aero meets MSN 2004-2009.
   Glassy, glossy, luminous. Sky-toned with Microsoft's
   4-color brand energy (red, green, blue, yellow).
   ========================================================= */

:root {
  /* Sky & ice palette */
  --sky-0:   #eaf6ff;
  --sky-1:   #cfe8fb;
  --sky-2:   #a7d2f2;
  --sky-3:   #7fb8e6;
  --sky-4:   #4d8dc7;
  --sky-ink: #1b3a5b;

  /* Microsoft 4-color brand */
  --ms-red:    #F25022;
  --ms-green:  #7FBA00;
  --ms-blue:   #00A4EF;
  --ms-yellow: #FFB900;

  /* Aero accents */
  --ice:     #f4fbff;
  --glass:   rgba(255, 255, 255, 0.48);
  --glass-2: rgba(255, 255, 255, 0.22);
  --glass-edge: rgba(255, 255, 255, 0.85);
  --glass-shade: rgba(25, 60, 100, 0.18);

  /* Type - Trebuchet MS is the authentic MSN-era font */
  --font-body:    Tahoma, "Segoe UI", Verdana, Geneva, sans-serif;
  --font-display: "Trebuchet MS", Trebuchet, Tahoma, sans-serif;

  --ink:      #153250;
  --ink-soft: #3a5b7f;
  --ink-mute: #6f89a5;

  --radius-xl: 22px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 7px;
}

/* --------- Reset-ish --------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sky-1);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

/* =========================================================
   SKY - atmospheric background stack
   4 aurora blobs, each tinted with a Microsoft brand color.
   ========================================================= */
.sky {
  position: fixed; inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* Base vertical wash */
.sky__wash {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, #ffffff 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg,
      #e8f4fc 0%,
      #d4eaf8 28%,
      #c2dff4 58%,
      #b4d4ef 82%,
      #c8dff2 100%);
}

/* Aurora blobs - one per Microsoft brand color */
.sky__aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
  will-change: transform;
}
/* Blue - upper left */
.sky__aurora--a {
  width: 60vmax; height: 60vmax;
  left: -15vmax; top: -20vmax;
  background: radial-gradient(closest-side, rgba(180,225,255,.9) 0%, rgba(0,164,239,.35) 45%, rgba(0,164,239,0) 70%);
  opacity: .7;
  animation: drift-a 28s ease-in-out infinite alternate;
}
/* Yellow/Gold - upper right */
.sky__aurora--b {
  width: 50vmax; height: 50vmax;
  right: -12vmax; top: 5vmax;
  background: radial-gradient(closest-side, rgba(255,240,180,.95) 0%, rgba(255,185,0,.45) 45%, rgba(255,185,0,0) 70%);
  opacity: .55;
  animation: drift-b 34s ease-in-out infinite alternate;
}
/* Green - lower left */
.sky__aurora--c {
  width: 65vmax; height: 65vmax;
  left: 5vmax; bottom: -28vmax;
  background: radial-gradient(closest-side, rgba(210,240,180,.9) 0%, rgba(127,186,0,.35) 45%, rgba(127,186,0,0) 70%);
  opacity: .45;
  animation: drift-c 40s ease-in-out infinite alternate;
}
/* Red - lower right (very soft, just warmth) */
.sky__aurora--d {
  width: 45vmax; height: 45vmax;
  right: 5vmax; bottom: -10vmax;
  background: radial-gradient(closest-side, rgba(255,210,195,.9) 0%, rgba(242,80,34,.22) 45%, rgba(242,80,34,0) 70%);
  opacity: .4;
  animation: drift-d 38s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(6vmax, 4vmax, 0) scale(1.05); } }
@keyframes drift-b { to { transform: translate3d(-5vmax, 6vmax, 0) scale(1.08); } }
@keyframes drift-c { to { transform: translate3d(4vmax, -4vmax, 0) scale(1.04); } }
@keyframes drift-d { to { transform: translate3d(-4vmax, -5vmax, 0) scale(1.06); } }

/* Top bloom highlight */
.sky__bloom {
  position: absolute; top: -10vmax; left: 50%;
  width: 80vmax; height: 40vmax;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}

/* Whisper of clouds */
.sky__clouds {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 30% at 20% 70%, rgba(255,255,255,.3) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(40% 25% at 80% 30%, rgba(255,255,255,.25) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(50% 22% at 60% 85%, rgba(255,255,255,.2) 0%, rgba(255,255,255,0) 60%);
}

/* Film grain for warmth */
.sky__grain {
  position: absolute; inset: -20%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.05  0 0 0 0 0.12  0 0 0 0 0.18  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: .06;
  mix-blend-mode: multiply;
}

/* =========================================================
   DRIFTING BUTTERFLIES
   ========================================================= */
.flutter { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.flutter__b {
  position: absolute;
  width: 36px; height: 36px;
  opacity: 0;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.18));
  will-change: transform, opacity;
}
.flutter__b--1 { left: 8%;  top: 22%; animation: float-bf 22s ease-in-out infinite, fade-in 2s ease-out .4s both; }
.flutter__b--2 { right: 12%; top: 38%; width: 28px; height: 28px; animation: float-bf2 28s ease-in-out infinite, fade-in 2s ease-out .9s both; }
.flutter__b--3 { left: 58%; bottom: 14%; width: 24px; height: 24px; animation: float-bf3 32s ease-in-out infinite, fade-in 2s ease-out 1.3s both; }
@keyframes fade-in { to { opacity: .8; } }
@keyframes float-bf  { 0%,100% { transform: translate(0,0) rotate(-6deg); } 50% { transform: translate(40px,-30px) rotate(6deg); } }
@keyframes float-bf2 { 0%,100% { transform: translate(0,0) rotate(4deg); }  50% { transform: translate(-50px,25px) rotate(-8deg); } }
@keyframes float-bf3 { 0%,100% { transform: translate(0,0) rotate(-3deg); } 50% { transform: translate(35px,-40px) rotate(8deg); } }

/* =========================================================
   STAGE / LAYOUT
   ========================================================= */
.stage {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  padding: clamp(24px, 5vw, 64px) clamp(16px, 4vw, 40px);
  position: relative;
  z-index: 1;
}

/* =========================================================
   CARD - the Aero glass surface
   Deeper blur, stronger specular, refined layering.
   ========================================================= */
.card {
  width: min(980px, 100%);
  margin: auto 0;
  padding: clamp(28px, 4.5vw, 56px) clamp(24px, 5vw, 64px) clamp(28px, 4.5vw, 48px);
  border-radius: var(--radius-xl);

  background:
    linear-gradient(135deg, rgba(255,255,255,.60) 0%, rgba(255,255,255,.20) 35%, rgba(255,255,255,.10) 60%, rgba(255,255,255,.25) 100%),
    linear-gradient(180deg, rgba(255,255,255,.78) 0%, rgba(235,247,255,.60) 60%, rgba(218,237,254,.56) 100%);

  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);

  border: 1px solid rgba(255,255,255,.75);
  box-shadow:
    0 40px 80px -20px rgba(20, 60, 120, .32),
    0 12px 28px -8px rgba(20, 60, 120, .16),
    0 0 0 1px rgba(255,255,255,.4) inset,
    /* Thick top highlight - the Aero signature */
    0 2px 0 rgba(255,255,255,.85) inset,
    0 -1px 0 rgba(20, 60, 120, .06) inset;

  position: relative;
  overflow: hidden;
  animation: rise 900ms cubic-bezier(.2,.7,.2,1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px) scale(.99); }
  to   { opacity: 1; transform: none; }
}

/* Specular streak - stronger gloss */
.card::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 44%;
  border-radius: calc(var(--radius-xl) - 1px) calc(var(--radius-xl) - 1px) 40% 50% / calc(var(--radius-xl) - 1px) calc(var(--radius-xl) - 1px) 18% 22%;
  background: linear-gradient(180deg, rgba(255,255,255,.80) 0%, rgba(255,255,255,.22) 55%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

/* Colored halo bleeding Microsoft brand colors into card edges */
.card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(55% 28% at 0% 0%,   rgba(242,80,34,.18)  0%, rgba(242,80,34,0)  70%),
    radial-gradient(55% 28% at 100% 0%,  rgba(127,186,0,.16)  0%, rgba(127,186,0,0)  70%),
    radial-gradient(55% 28% at 0% 100%,  rgba(0,164,239,.20)  0%, rgba(0,164,239,0)  70%),
    radial-gradient(55% 28% at 100% 100%, rgba(255,185,0,.18) 0%, rgba(255,185,0,0)  70%);
  z-index: -1;
}

/* =========================================================
   LOCKUP (butterfly + wordmark)
   ========================================================= */
.lockup {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(14px, 2.4vw, 24px);
  margin-bottom: clamp(22px, 3vw, 32px);
}
.lockup__mark {
  width: clamp(56px, 7vw, 84px);
  aspect-ratio: 72/56;
  display: grid; place-items: center;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.22)) drop-shadow(0 1px 3px rgba(0,0,0,.15));
  animation: hover-bf 6s ease-in-out infinite;
}
.lockup__mark svg { width: 100%; height: auto; }
@keyframes hover-bf {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-4px) rotate(2deg); }
}

.eyebrow {
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 8px;
  font-family: var(--font-body);
  animation: stagger 800ms ease-out 120ms both;
}
.wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6.8vw, 76px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--sky-ink);
  display: inline-flex;
  align-items: baseline;
  gap: .16em;
  animation: stagger 900ms cubic-bezier(.2,.7,.2,1) 180ms both;
}
.wordmark__msn {
  background: linear-gradient(180deg, #2a6cb0 0%, #1a4a82 55%, #143a68 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  position: relative;
}
.wordmark__alumni {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: .72em;
  letter-spacing: -.01em;
}

@keyframes stagger {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* =========================================================
   BODY COPY
   ========================================================= */
.body {
  max-width: 62ch;
  margin: 0 0 clamp(22px, 3vw, 30px);
  animation: stagger 1000ms ease-out 300ms both;
}
.body p {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(15px, 1.2vw, 16.5px);
}
.body p:last-child { margin-bottom: 0; }
.lede {
  font-size: clamp(16px, 1.35vw, 18px) !important;
  color: var(--sky-ink) !important;
}
abbr { text-decoration: none; border-bottom: 1px dotted rgba(30,80,140,.35); }

/* =========================================================
   PANEL - inset Aero sub-surface
   ========================================================= */
.panel {
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.4vw, 24px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.60) 0%, rgba(235,247,255,.40) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.80);
  box-shadow:
    0 2px 0 rgba(255,255,255,.85) inset,
    0 -1px 0 rgba(30,80,140,.06) inset,
    0 8px 28px -12px rgba(20,60,120,.22);
  position: relative;
  animation: stagger 1000ms ease-out 420ms both;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 50%;
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 30% 40% / calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 14% 18%;
  background: linear-gradient(180deg, rgba(255,255,255,.50) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.panel__status {
  margin-bottom: 14px;
}
.panel__title {
  font-weight: 700;
  font-size: 15.5px;
  color: var(--sky-ink);
  font-family: var(--font-display);
  letter-spacing: -.01em;
}
.panel__sub {
  font-size: 13.5px;
  color: var(--ink-mute);
  margin-top: 3px;
}

.panel__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--sky-ink);
  background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(232,244,255,.75) 100%);
  border: 1px solid rgba(255,255,255,.88);
  box-shadow:
    0 1px 0 rgba(255,255,255,.95) inset,
    0 2px 6px rgba(20,60,120,.10);
  font-weight: 600;
  font-family: var(--font-body);
}
.chip--ghost {
  color: var(--ink-soft);
  background: rgba(255,255,255,.38);
  border-color: rgba(255,255,255,.65);
  font-weight: 500;
}

/* 4-color Microsoft dot */
.chip__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: conic-gradient(
    #F25022 0deg 90deg,
    #7FBA00 90deg 180deg,
    #00A4EF 180deg 270deg,
    #FFB900 270deg 360deg
  );
  box-shadow: 0 0 6px rgba(0,0,0,.2), 0 0 0 1px rgba(255,255,255,.5) inset;
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 6px rgba(0,0,0,.2), 0 0 0 1px rgba(255,255,255,.5) inset; }
  50%      { transform: scale(1.18); box-shadow: 0 0 10px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.5) inset; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.foot {
  margin-top: clamp(20px, 3vw, 32px);
  font-size: 12px;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  animation: stagger 900ms ease-out 600ms both;
  text-align: center;
  max-width: 700px;
}
.foot__domain {
  color: var(--sky-ink);
  font-weight: 700;
  letter-spacing: .02em;
  font-family: var(--font-display);
}
.foot__dot { opacity: .5; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 720px) {
  .lockup {
    grid-template-columns: auto;
    justify-items: start;
  }
  .wordmark { flex-wrap: wrap; }
  .flutter__b--2 { display: none; }
}

@media (max-width: 420px) {
  .card { border-radius: 16px; }
  .eyebrow { font-size: 10.5px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .sky__aurora { animation: none; }
  .flutter__b { animation: none; opacity: .7; }
}

/* Contrast bump */
@media (prefers-contrast: more) {
  :root {
    --ink: #0d2036;
    --ink-soft: #25466a;
    --ink-mute: #4c6684;
  }
  .card { border-color: rgba(255,255,255,.95); }
}
