:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-2: #0b1728;
  --panel: rgba(10, 17, 31, 0.78);
  --panel-2: rgba(15, 23, 42, 0.82);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: rgba(226, 232, 240, 0.82);
  --accent: #fbbf24;
  --accent-2: #38bdf8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.18), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(56, 189, 248, 0.16), transparent 24%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 48%, #111827 100%);
  color: var(--text);
}

a {
  color: inherit;
}

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

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
  display: grid;
  gap: 28px;
}

.hero,
.panel,
.card,
.stack__row {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.hero {
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: center;
}

.hero__content {
  min-width: 0;
}

.hero__media {
  justify-self: end;
  width: min(100%, 320px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(8, 15, 28, 0.68);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.hero__portrait {
  width: 100%;
  display: block;
  border-radius: 22px;
  object-fit: cover;
}

.hero__meta {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.hero__label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 700;
}

.hero__name {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  line-height: 1.1;
}

.hero__text {
  color: var(--muted);
  line-height: 1.6;
}

.kicker {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  font-family: "Fraunces", serif;
  letter-spacing: -0.05em;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.9rem, 6vw, 5.4rem);
  line-height: 0.95;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

.lede {
  max-width: 42rem;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.chips {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips span {
  padding: 0.72rem 0.98rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--line);
}

.button--primary {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.95), rgba(251, 191, 36, 0.72));
  color: #111827;
  font-weight: 700;
}

.button--ghost {
  background: rgba(15, 23, 42, 0.6);
}

.section {
  display: grid;
  gap: 18px;
}

.section__head {
  display: grid;
  gap: 8px;
}

.panel {
  padding: 24px;
  display: grid;
  gap: 14px;
  color: var(--muted);
  line-height: 1.7;
}

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

.card {
  grid-column: span 6;
  padding: 22px;
  display: grid;
  gap: 12px;
  background: var(--panel-2);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.56);
}

.card__image--logo {
  object-fit: contain;
  padding: 10px;
}

.card__linkcard {
  display: block;
  text-decoration: none;
}

.card__title {
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
}

.card__body {
  color: var(--muted);
  line-height: 1.65;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: #e2e8f0;
}

.links a {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  background: rgba(8, 15, 28, 0.72);
}

.stack {
  display: grid;
  gap: 12px;
}

.stack__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  text-decoration: none;
}

.stack__row span:first-child {
  font-weight: 700;
}

.stack__row span:last-child {
  color: var(--muted);
  overflow-wrap: anywhere;
  text-align: right;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.56);
}

.footer {
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.95rem;
}

.project-page {
  display: grid;
  gap: 18px;
}

.project-hero {
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  gap: 20px;
}

.project-hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 24px;
  align-items: center;
}

.project-hero__copy {
  min-width: 0;
}

.project-hero__eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
}

.project-hero__title {
  max-width: 12ch;
  font-family: "Fraunces", serif;
  letter-spacing: -0.05em;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.95;
}

.project-hero__lede {
  max-width: 42rem;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.65;
}

.project-hero__art {
  justify-self: end;
  width: min(100%, 300px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(8, 15, 28, 0.68);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.project-hero__art img {
  width: 100%;
  display: block;
  object-fit: contain;
}

.project-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.project-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  background: rgba(15, 23, 42, 0.62);
}

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

.project-panel {
  grid-column: span 6;
  padding: 22px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel-2);
}

.project-panel--wide {
  grid-column: span 12;
}

.project-panel h2 {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.project-panel p,
.project-panel li {
  color: var(--muted);
  line-height: 1.7;
}

.project-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 10px;
}

.project-tour {
  display: grid;
  gap: 12px;
}

.project-tour__step {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(8, 15, 28, 0.55);
}

.story-page {
  display: grid;
  gap: 20px;
}

.story-header {
  display: grid;
  gap: 0;
}

.story-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.story-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.story-hero {
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.9), rgba(8, 15, 28, 0.78));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.story-hero__copy {
  min-width: 0;
}

.story-hero__copy h1 {
  max-width: 13ch;
}

.story-lede {
  max-width: 46rem;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.story-hero__art {
  margin: 0;
  justify-self: end;
  width: min(100%, 340px);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(8, 15, 28, 0.64);
}

.story-hero__art img {
  width: 100%;
  display: block;
  border-radius: 20px;
  object-fit: cover;
}

.story-hero__art figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.story-article {
  display: grid;
  gap: 18px;
  max-width: 72ch;
}

.story-article h2 {
  margin-top: 18px;
  font-family: "Fraunces", serif;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  letter-spacing: -0.04em;
}

.story-article p,
.story-quote {
  color: var(--muted);
  line-height: 1.75;
}

.story-article p {
  margin: 0;
}

.story-quote {
  margin: 0;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-family: "Fraunces", serif;
}

@media (max-width: 800px) {
  .page {
    width: min(100%, calc(100% - 24px));
    padding: 24px 0 40px;
  }

  .card {
    grid-column: span 12;
  }

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

  .hero__media {
    justify-self: stretch;
    width: 100%;
  }

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

  .project-hero__top {
    grid-template-columns: 1fr;
  }

  .project-hero__art {
    justify-self: stretch;
    width: 100%;
  }

  .project-panel,
  .project-panel--wide {
    grid-column: span 12;
  }

  .story-hero {
    grid-template-columns: 1fr;
  }

  .story-hero__art {
    justify-self: stretch;
    width: 100%;
  }

  .stack__row {
    flex-direction: column;
  }

  .stack__row span:last-child {
    text-align: left;
  }
}
