:root {
  --bg: #0b0d10;
  --panel: #12151a;
  --ink: #e8edf2;
  --muted: #8b949e;
  --line: rgba(232, 237, 242, 0.1);
  --accent: #f0a33a;
  --font-display: "Chakra Petch", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 237, 242, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 237, 242, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 45% 35% at 50% 0%, rgba(240, 163, 58, 0.08), transparent 60%),
    radial-gradient(ellipse 30% 25% at 80% 80%, rgba(80, 120, 160, 0.08), transparent 55%);
}
.noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.shell {
  position: relative;
  z-index: 1;
  height: 100dvh;
  max-height: 100vh;
  width: min(100vw, 1180px);
  margin: 0 auto;
  padding: 1.4rem 1.5rem 1.2rem;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 1.1rem;
  overflow: hidden;
}

.hero {
  text-align: center;
  animation: rise 0.45s ease both;
}
.eyebrow {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.majors {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: rise 0.5s ease 0.06s both;
}

.major-tile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  min-width: min(420px, 92vw);
  padding: 0.85rem 1.1rem 0.85rem 0.85rem;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(24, 28, 34, 0.95), rgba(14, 16, 20, 0.98));
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.major-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 163, 58, 0.35);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

/* per-major skin: Singapore sticker vibe */
.major-tile.singapore {
  border-color: rgba(226, 59, 59, 0.45);
  background:
    radial-gradient(circle at 12% 50%, rgba(226, 59, 59, 0.18), transparent 45%),
    linear-gradient(160deg, #1a1012, #0e0b0c 70%);
}
.major-tile.singapore:hover {
  border-color: rgba(240, 160, 176, 0.55);
  box-shadow: 0 16px 44px rgba(226, 59, 59, 0.18);
}
.major-tile.singapore .tile-art {
  width: 78px;
  height: 96px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(180deg, #2a1518, #140c0e);
  border: 1px solid rgba(240, 160, 176, 0.28);
  clip-path: polygon(8% 0, 92% 0, 100% 10%, 100% 90%, 92% 100%, 8% 100%, 0 90%, 0 10%);
}
.major-tile.singapore .tile-art img {
  width: 62px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(226, 59, 59, 0.35));
}
.major-tile.singapore .tile-label {
  color: #f0a0ae;
}
.major-tile.singapore .tile-status {
  color: #e23b3b;
}

.tile-meta {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}
.tile-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.tile-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
}
.tile-status {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.about {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto;
  gap: 0.55rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  animation: rise 0.55s ease 0.12s both;
  overflow: hidden;
  justify-items: center;
  align-content: start;
}
.about h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
  line-height: 1.1;
}
.about-copy {
  min-height: 0;
  overflow: hidden;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  width: min(100%, 76ch);
  text-align: justify;
  text-align-last: left;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}
.about-copy p {
  margin: 0;
  color: #d5dbe4;
  font-size: clamp(1.02rem, 1.45vh + 0.5rem, 1.14rem);
  line-height: 1.7;
  font-weight: 400;
  text-justify: inter-word;
  word-spacing: 0.02em;
}

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

@media (max-width: 720px) {
  html,
  body {
    overflow: auto;
  }
  .shell {
    height: auto;
    max-height: none;
    overflow: visible;
    gap: 1.25rem;
  }
  .major-tile {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}
