:root {
  color-scheme: light;
  --black: #000000;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --soft-line: rgba(0, 0, 0, 0.09);
  --white: #ffffff;
  --surface: #f5f5f7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --max-width: 1320px;
  --side: clamp(22px, 4.4vw, 72px);
  --section: clamp(88px, 11vw, 164px);
  --radius-large: 30px;
  --radius-card: 22px;
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.55);
  outline-offset: 3px;
}

::selection {
  background: rgba(0, 113, 227, 0.22);
}

.wrap {
  width: min(var(--max-width), calc(100% - (var(--side) * 2)));
  margin-inline: auto;
}

.section-dark {
  background: var(--black);
  color: var(--white);
}

.section-light {
  background: var(--surface);
}

.section-white {
  background: var(--white);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--white);
  color: var(--black);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 15, 16, 0.74);
  color: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: background-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(18, 18, 19, 0.88);
}

.nav-shell {
  width: min(1120px, calc(100% - 36px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.wordmark-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white) !important;
}

.hero {
  min-height: 100svh;
  padding: clamp(144px, 17vh, 210px) 0 clamp(64px, 8vw, 112px);
  overflow: hidden;
}

.hero-copy {
  max-width: 1060px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: #a1a1a6;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-blue {
  color: var(--blue);
}

.hero h1 {
  max-width: 1000px;
  margin: 0 auto;
  font-size: clamp(48px, 7.5vw, 108px);
  font-weight: 650;
  letter-spacing: -0.058em;
  line-height: 0.99;
}

.hero-lead {
  max-width: 720px;
  margin: 32px auto 0;
  color: #a1a1a6;
  font-size: clamp(19px, 2vw, 27px);
  font-weight: 450;
  letter-spacing: -0.022em;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

.button {
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button[hidden] {
  display: none;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--blue);
  color: var(--white);
}

.button-primary:hover {
  background: var(--blue-hover);
}

.button-quiet {
  color: #2997ff;
}

.button-quiet:hover {
  color: #59adff;
}

.hero-stage {
  margin-top: clamp(70px, 9vw, 132px);
  perspective: 1300px;
}

.hero-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-large);
  background: #111113;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.55);
  transform: rotateX(1.5deg);
  transform-origin: 50% 100%;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-caption {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px 26px;
  color: #a1a1a6;
  font-size: 13px;
}

.hero-caption div {
  display: grid;
  gap: 5px;
}

.hero-caption strong {
  color: var(--white);
  font-size: 19px;
  letter-spacing: -0.02em;
}

.caption-kicker {
  color: #2997ff;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.issue-section,
.archive-section,
.hackathon-section {
  padding: var(--section) 0;
}

.section-heading,
.archive-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.55fr);
  align-items: end;
  gap: clamp(40px, 7vw, 110px);
  margin-bottom: clamp(48px, 6vw, 82px);
}

.section-heading h2,
.archive-heading h2,
.mechanism-intro h2,
.about-grid h2 {
  margin: 0;
  font-size: clamp(39px, 5.2vw, 72px);
  font-weight: 650;
  letter-spacing: -0.052em;
  line-height: 1.03;
}

.section-heading > p,
.archive-heading > p,
.mechanism-intro > p,
.about-copy {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.58;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.feature-card {
  grid-column: span 4;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.025);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.feature-card:first-child {
  grid-column: span 8;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.feature-card-media {
  position: relative;
  overflow: hidden;
  background: #e8e8ed;
}

.feature-card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0, 1);
}

.feature-card:first-child .feature-card-media img {
  aspect-ratio: 16 / 9;
}

.feature-card:hover .feature-card-media img {
  transform: scale(1.025);
}

.feature-index {
  position: absolute;
  top: 15px;
  left: 15px;
  min-width: 32px;
  height: 32px;
  padding-inline: 9px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.58);
  color: var(--white);
  font-size: 11px;
  font-weight: 650;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.feature-card-body {
  padding: 26px 26px 28px;
}

.feature-meta {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.feature-card h3 {
  margin: 0;
  font-size: clamp(25px, 2.3vw, 38px);
  font-weight: 650;
  letter-spacing: -0.038em;
  line-height: 1.08;
}

.feature-card:not(:first-child) h3 {
  font-size: clamp(24px, 2vw, 31px);
}

.feature-memory {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.case-type {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.case-value {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--soft-line);
}

.case-value p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.case-value .value-kicker {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.case-value .value-audience {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.case-value-note,
.value-notice {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.case-dates {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.case-dates p {
  margin: 0;
}

.value-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.value-tags li {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--surface);
  color: #515154;
  font-size: 11px;
}

.feature-open {
  width: 100%;
  margin-top: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  text-align: left;
  font-size: 15px;
}

.feature-open:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.editorial-break {
  padding: clamp(110px, 14vw, 210px) 0;
}

.editorial-inner {
  max-width: 1130px;
  text-align: center;
}

.editorial-inner h2 {
  margin: 0;
  font-size: clamp(43px, 6vw, 84px);
  font-weight: 650;
  letter-spacing: -0.057em;
  line-height: 1.04;
}

.editorial-inner > p:last-child {
  max-width: 720px;
  margin: 34px auto 0;
  color: #a1a1a6;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.56;
}

.mechanism-section {
  padding: var(--section) 0;
}

.mechanism-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(60px, 10vw, 150px);
  align-items: start;
}

.mechanism-intro {
  position: sticky;
  top: 110px;
}

.mechanism-intro h2 {
  max-width: 520px;
}

.mechanism-intro > p {
  max-width: 440px;
  margin-top: 26px;
}

.mechanism-list {
  border-top: 1px solid var(--line);
}

.mechanism-row {
  width: 100%;
  min-height: 115px;
  padding: 20px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: clamp(28px, 3.4vw, 49px);
  font-weight: 600;
  letter-spacing: -0.043em;
  line-height: 1.08;
  transition: color 180ms ease, padding 180ms ease;
}

.mechanism-row:hover {
  padding-left: 12px;
  color: var(--blue);
}

.mechanism-row small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
}

.mechanism-number {
  align-self: start;
  padding-top: 12px;
  color: #86868b;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.mechanism-arrow {
  color: #86868b;
  font-size: 22px;
}

.archive-heading {
  margin-bottom: 40px;
}

.type-guide {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.type-tile {
  min-width: 0;
  padding: 24px 20px;
  border: 0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: background-color 160ms ease, color 160ms ease;
}

.type-tile strong {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.type-tile span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.type-tile small {
  margin-top: auto;
  padding-top: 8px;
  color: var(--blue);
  font-size: 12px;
}

.type-tile:hover {
  background: #e8e8ed;
}

.type-tile.is-active {
  background: var(--ink);
  color: var(--white);
}

.type-tile.is-active span {
  color: #a1a1a6;
}

.type-tile.is-active small {
  color: #2997ff;
}

.value-notice {
  margin-block: 22px 30px;
}

.mechanism-selection {
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.mechanism-selection[hidden] {
  display: none;
}

.mechanism-selection button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
}

.archive-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 38px;
}

.search-field {
  min-width: min(100%, 310px);
  height: 46px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-field:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.11);
}

.search-field svg {
  width: 18px;
  fill: none;
  stroke: #86868b;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.filter-scroller {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-scroller::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: #515154;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.archive-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.025);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.archive-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.archive-image,
.archive-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.archive-image {
  object-fit: cover;
  background: #e8e8ed;
}

.archive-media.is-unavailable {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.archive-media.is-unavailable span:last-child {
  color: var(--blue);
}

.archive-summary {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
}

.archive-image-source {
  display: inline-block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
}

.archive-placeholder {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  overflow: hidden;
  background: #171719;
  color: rgba(255, 255, 255, 0.94);
}

.archive-placeholder::before {
  content: "";
  position: absolute;
  top: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
}

.archive-placeholder::after {
  content: "";
  position: absolute;
  top: 50px;
  right: 12px;
  width: 78px;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  transform: rotate(-28deg);
}

.archive-placeholder span {
  position: relative;
  z-index: 1;
  max-width: 80%;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.archive-card-body {
  padding: 22px 22px 24px;
}

.archive-card h3 {
  margin: 0;
  min-height: 2.25em;
  font-size: 21px;
  font-weight: 620;
  letter-spacing: -0.028em;
  line-height: 1.14;
}

.archive-author {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.value-conditions {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.value-conditions summary {
  color: var(--blue);
  cursor: pointer;
}

.value-conditions p {
  margin: 12px 0 0;
}

.archive-mechanism {
  display: block;
  margin-top: 20px;
  color: var(--blue);
  font-size: 13px;
}

.archive-card > a {
  display: block;
}

.archive-more {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 44px;
}

.button-outline {
  border: 1px solid #86868b;
  background: transparent;
  color: var(--ink);
}

.button-outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.archive-more p {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.empty-state,
.loading-copy {
  grid-column: 1 / -1;
  margin: 0;
  padding: 60px 0;
  color: var(--muted);
  text-align: center;
}

.hackathon-tools,
.hackathon-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hackathon-tools > p,
.hackathon-notice,
.hackathon-count,
.hackathon-group-heading > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.hackathon-notice {
  margin-block: 20px 40px;
}

.hackathon-group + .hackathon-group {
  margin-top: 60px;
}

.hackathon-group-heading {
  margin-bottom: 20px;
}

.hackathon-group-heading h3 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.hackathon-group-heading h3 span {
  margin-left: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
}

.hackathon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.hackathon-card {
  min-width: 0;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 12px;
  background: var(--surface);
}

.hackathon-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  line-height: 1.5;
}

.hackathon-status {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 600;
}

.hackathon-status[data-status="open"] {
  border-color: transparent;
  background: var(--blue);
  color: var(--white);
}

.hackathon-status[data-status="restricted"] {
  background: var(--ink);
  color: var(--white);
}

.hackathon-format,
.hackathon-organizer {
  color: var(--muted);
}

.hackathon-topic {
  margin: 24px 0 12px;
  color: var(--blue);
  font-size: 12px;
}

.hackathon-card h4 {
  margin: 0;
  font-size: clamp(24px, 2.3vw, 34px);
  letter-spacing: -0.04em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.hackathon-organizer {
  margin: 12px 0 24px;
  font-size: 12px;
  line-height: 1.6;
}

.hackathon-restriction {
  font-size: 13px;
  font-weight: 650;
}

.hackathon-facts {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--soft-line);
  display: grid;
  gap: 12px;
  font-size: 13px;
  line-height: 1.6;
}

.hackathon-facts > div {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
}

.hackathon-facts dt {
  color: var(--muted);
}

.hackathon-facts dd {
  margin: 0;
}

.hackathon-value {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.7;
}

.hackathon-value p:last-child {
  margin: 10px 0 0;
}

.hackathon-details {
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.hackathon-details summary {
  color: var(--blue);
  cursor: pointer;
}

.hackathon-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--blue);
}

.hackathon-official {
  margin-top: 24px;
  font-size: 14px;
}

.hackathon-count {
  margin-top: 28px;
}

.about-section {
  padding: var(--section) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: clamp(60px, 10vw, 150px);
  align-items: start;
}

.about-copy {
  color: #a1a1a6;
}

.about-copy p {
  margin: 0 0 20px;
}

.text-link {
  display: inline-flex;
  gap: 6px;
  margin-top: 12px;
  color: #2997ff;
  font-size: 16px;
}

.site-footer {
  padding: 34px 0 40px;
  border-top: 1px solid #2b2b2d;
  background: var(--black);
  color: #86868b;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  font-size: 12px;
}

.footer-inner strong {
  color: var(--white);
  letter-spacing: 0.07em;
}

.footer-inner p {
  margin: 6px 0 0;
}

.case-dialog {
  width: min(920px, calc(100% - 32px));
  max-height: min(900px, calc(100svh - 32px));
  padding: 0;
  border: 0;
  border-radius: 26px;
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.34);
}

.case-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dialog-shell {
  position: relative;
  max-height: min(900px, calc(100svh - 32px));
  overflow-y: auto;
}

.dialog-close {
  position: sticky;
  z-index: 2;
  top: 16px;
  float: right;
  width: 38px;
  height: 38px;
  margin: 16px 16px 0 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(232, 232, 237, 0.9);
  color: #515154;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dialog-cover {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
}

.dialog-body {
  padding: clamp(34px, 6vw, 68px);
}

.dialog-body h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(36px, 5vw, 61px);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1.03;
}

.dialog-byline {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.dialog-memory {
  margin: 36px 0 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 520;
  letter-spacing: -0.022em;
  line-height: 1.48;
}

.dialog-detail-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 42px;
}

.dialog-value {
  margin-top: 32px;
  padding: 28px;
  border-radius: 12px;
  background: var(--surface);
}

.dialog-value > h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.value-boundary {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.dialog-value .dialog-detail-grid {
  margin-top: 26px;
}

.dialog-value .case-value-note {
  margin: 24px 0 0;
}

.dialog-detail h3 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.dialog-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.dialog-evidence {
  grid-column: 1 / -1;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.dialog-action {
  margin-top: 44px;
}

.noscript-note {
  position: fixed;
  z-index: 200;
  right: 18px;
  bottom: 18px;
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.2, 0.7, 0, 1), transform 700ms cubic-bezier(0.2, 0.7, 0, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .type-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .archive-heading,
  .mechanism-layout,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .archive-heading {
    align-items: start;
  }

  .section-heading > p,
  .archive-heading > p {
    max-width: 620px;
  }

  .feature-card,
  .feature-card:first-child {
    grid-column: span 6;
  }

  .feature-card:last-child {
    grid-column: 4 / span 6;
  }

  .feature-card:first-child .feature-card-media img {
    aspect-ratio: 4 / 3;
  }

  .mechanism-intro {
    position: static;
    max-width: 660px;
  }

  .archive-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .search-field {
    width: 100%;
  }

  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .type-guide {
    grid-template-columns: 1fr;
  }

  .type-tile {
    padding: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .type-tile span {
    grid-column: 1 / -1;
  }

  .type-tile small {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
  }

  .dialog-value {
    padding: 22px 18px;
  }

  :root {
    --side: 20px;
    --section: 86px;
    --radius-large: 21px;
    --radius-card: 19px;
  }

  .nav-shell {
    width: calc(100% - 28px);
  }

  .nav-links > a:not(.nav-cta) {
    display: none;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links > .nav-hackathons:not(.nav-cta) {
    display: block;
  }

  .hackathon-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .hackathon-tools > p {
    margin: 0;
  }

  .hackathon-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 132px;
  }

  .hero-copy {
    text-align: left;
  }

  .hero h1 {
    font-size: clamp(40px, 11vw, 48px);
    line-height: 0.98;
  }

  .hero-lead {
    margin-top: 25px;
    font-size: 19px;
  }

  .hero-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 28px;
  }

  .hero-stage {
    margin-top: 58px;
  }

  .hero-visual {
    transform: none;
  }

  .hero-visual img {
    aspect-ratio: 4 / 3;
  }

  .hero-caption {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .section-heading,
  .archive-heading {
    gap: 24px;
    margin-bottom: 40px;
  }

  .section-heading h2,
  .archive-heading h2,
  .mechanism-intro h2,
  .about-grid h2 {
    font-size: 42px;
  }

  .featured-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .feature-card,
  .feature-card:first-child,
  .feature-card:last-child {
    grid-column: 1;
  }

  .feature-card-body {
    padding: 22px;
  }

  .feature-card h3,
  .feature-card:not(:first-child) h3 {
    font-size: 28px;
  }

  .editorial-inner {
    text-align: left;
  }

  .editorial-inner h2 {
    font-size: 46px;
  }

  .editorial-inner > p:last-child {
    margin-left: 0;
  }

  .mechanism-layout {
    gap: 48px;
  }

  .mechanism-row {
    min-height: 92px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    font-size: 29px;
  }

  .mechanism-number {
    padding-top: 7px;
  }

  .filter-scroller {
    margin-right: calc(var(--side) * -1);
    padding-right: var(--side);
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }

  .archive-card h3 {
    min-height: 0;
  }

  .about-grid {
    gap: 38px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .dialog-detail-grid {
    grid-template-columns: 1fr;
  }

  .dialog-evidence {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
