:root {
  --nsiic-blue: #003049;
  --nsiic-ink: #14212c;
  --nsiic-line: #d8e1e9;
  --nsiic-line-strong: #b7c6d2;
  --nsiic-muted: #4e6070;
  --nsiic-red: #780109;
  --nsiic-red-deep: #5a0107;
  --nsiic-soft: #f4f7fa;
  --nsiic-teal: #2a9d8f;
  --card: #fff;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--nsiic-ink);
  background: var(--nsiic-soft);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--nsiic-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 5.5rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { height: 2.6rem; width: auto; }
.brand-divider { width: 1px; height: 2rem; background: var(--nsiic-line); }
.header-nav { display: flex; gap: 1.5rem; font-size: 0.9rem; }
.header-nav a { color: var(--nsiic-ink); transition: color 0.15s; }
.header-nav a:hover { color: var(--nsiic-red); }
.header-nav a.is-active {
  background: var(--nsiic-red);
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: 0.375rem;
  margin: -0.6rem 0;
}
.header-nav a.is-active:hover { background: var(--nsiic-red-deep); }

/* Hero */
.hero {
  background: #fff;
  border-bottom: 1px solid var(--nsiic-line);
  padding: 3.5rem 0 4rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  margin: 0 0 0.6rem;
  font-family: var(--font-serif);
  font-style: italic;
  text-transform: uppercase;
  color: var(--nsiic-red);
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
}
.lede {
  margin: 1.1rem 0 0;
  color: var(--nsiic-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 34rem;
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; margin-top: 1.5rem; }
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--nsiic-muted);
}
.meta-item svg, .search svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.hero-card {
  position: relative;
  margin: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--nsiic-blue);
  border: 1px solid var(--nsiic-blue);
  box-shadow: 10px 10px 0 var(--nsiic-blue);
}
.hero-card img { width: 100%; aspect-ratio: 4 / 2.3; object-fit: cover; }
.hero-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 48, 73, 0.95), rgba(0, 48, 73, 0));
}
.hero-card-date { font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; }
.hero-card-title { font-family: var(--font-serif); font-size: 1.6rem; }
.hero-card-sub { font-size: 0.85rem; font-weight: 600; }

/* Winners */
.winners { padding: 4rem 0 5rem; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--nsiic-line-strong);
  position: relative;
}
.section-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 4rem;
  height: 3px;
  background: var(--nsiic-red);
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.note { margin: 1rem 0 2rem; color: var(--nsiic-muted); font-size: 0.9rem; }

.search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--nsiic-line);
  border-radius: 0.375rem;
  padding: 0 0.8rem;
  color: var(--nsiic-muted);
  width: min(100%, 18rem);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search:focus-within { border-color: var(--nsiic-blue); box-shadow: 0 0 0 3px rgba(0, 48, 73, 0.12); }
.search input {
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  color: var(--nsiic-ink);
  padding: 0.65rem 0;
  width: 100%;
}

.winners .container { max-width: 48rem; }
.winner-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}
.winner-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--nsiic-line);
  border-radius: 0.5rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 1px 2px rgba(20, 33, 44, 0.04);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), border-color 0.2s, box-shadow 0.2s;
}
.winner-card.is-visible { opacity: 1; transform: none; }
.winner-card:hover {
  border-color: var(--nsiic-line-strong);
  box-shadow: 0 8px 24px rgba(0, 48, 73, 0.08);
}
.winner-rank {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: var(--nsiic-soft);
  border: 1px solid var(--nsiic-line);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--nsiic-red);
}
.winner-name {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.winner-name mark { background: rgba(42, 157, 143, 0.2); color: inherit; border-radius: 2px; }
.winner-card[hidden] { display: none; }
.empty { text-align: center; color: var(--nsiic-muted); padding: 2rem 0; }

/* Footer */
.site-footer { background: var(--nsiic-blue); color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.footer-title { margin: 0 0 1rem; font-family: var(--font-serif); font-weight: 400; font-size: 1.3rem; line-height: 1.35; max-width: 20rem; }
.footer-label { margin: 0.4rem 0 1rem; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.footer-contact, .footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  padding: 1.2rem 1rem;
}

/* Motion */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 0.64s var(--ease) both; }
.rise-late { animation-delay: 0.14s; }

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  .winner-card { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-card { box-shadow: 6px 6px 0 var(--nsiic-blue); }
}
@media (max-width: 720px) {
  .container { padding: 0 1rem; }
  .header-inner { height: auto; padding-top: 0.8rem; padding-bottom: 0.8rem; flex-wrap: wrap; }
  .brand img { height: 1.9rem; }
  .brand-divider { height: 1.5rem; }
  .header-nav { gap: 1rem; font-size: 0.85rem; align-items: center; }
  .hero { padding: 2.5rem 0 3rem; }
  .winners { padding: 3rem 0 4rem; }
  .search { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
