:root {
  color-scheme: dark;
  --bg-0: #05070d;
  --bg-1: #0b1020;
  --bg-2: #10172c;
  --ink: #fff6e5;
  --muted: #c3caea;
  --soft: #d8ddff;
  --blue: #95b8ff;
  --ember: #ffb86b;
  --shell: rgb(255 255 255 / 0.075);
  --shell-strong: rgb(255 255 255 / 0.12);
  --line: rgb(255 246 229 / 0.18);
  --line-strong: rgb(255 246 229 / 0.35);
  --shadow: 0 24px 80px rgb(0 0 0 / 0.22);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgb(255 184 107 / 0.18), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgb(149 184 255 / 0.22), transparent 34rem),
    linear-gradient(145deg, var(--bg-0), var(--bg-2) 55%, var(--bg-1));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

a { color: inherit; }

.workshop-wrap {
  width: min(1120px, calc(100vw - 2rem));
  max-width: 100%;
  margin: 0 auto;
  padding: 1.25rem 0 4rem;
  position: relative;
}

.workshop-wrap.wide {
  width: min(1520px, calc(100vw - 1.25rem));
  max-width: 100%;
}

.workshop-nav {
  max-width: 100%;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  backdrop-filter: blur(14px);
}

.workshop-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 780;
  letter-spacing: -0.03em;
}

.workshop-brand span:first-child { font-size: 1.8rem; }

.workshop-links {
  display: flex;
  max-width: 100%;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.workshop-link {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.58rem 0.85rem;
  text-decoration: none;
  background: var(--shell);
}

.workshop-link:hover,
.workshop-link[aria-current="page"] {
  border-color: var(--line-strong);
  background: var(--shell-strong);
}

.hero {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  padding: 2.5rem 0 2rem;
}

.page-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.25rem;
  align-items: stretch;
  padding: 2rem 0 2.25rem;
}

.hero-image-card {
  position: relative;
  min-height: clamp(18rem, 45vw, 34rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.8rem;
  background: var(--shell);
  box-shadow: var(--shadow);
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgb(5 7 13 / 0.66), transparent 46%),
    radial-gradient(circle at 20% 10%, rgb(255 184 107 / 0.18), transparent 32rem);
  pointer-events: none;
}

.image-credit {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  color: rgb(255 246 229 / 0.78);
  font-size: 0.78rem;
}

.cinematic-hero {
  position: relative;
  min-height: clamp(32rem, 78vh, 54rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: clamp(1.25rem, 3vw, 2.2rem);
  background: var(--bg-1);
  box-shadow: var(--shadow);
}

.cinematic-hero img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: block;
  object-fit: cover;
}

.cinematic-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(5 7 13 / 0.82), rgb(5 7 13 / 0.34) 48%, rgb(5 7 13 / 0.18)),
    linear-gradient(to top, rgb(5 7 13 / 0.7), transparent 48%);
}

.cinematic-overlay {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: flex-start;
  max-width: 54rem;
  padding: clamp(1.3rem, 5vw, 4rem);
}

.cinematic-overlay h1 {
  margin: 0.8rem 0 0.8rem;
  font-size: clamp(4rem, 13vw, 10rem);
  text-shadow: 0 10px 40px rgb(0 0 0 / 0.42);
}

.cinematic-overlay p {
  max-width: 42rem;
  margin: 0;
  color: rgb(255 246 229 / 0.84);
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  line-height: 1.5;
  text-shadow: 0 8px 26px rgb(0 0 0 / 0.36);
}

.model-signature {
  width: fit-content;
  border: 1px solid rgb(255 246 229 / 0.22);
  border-radius: 999px;
  padding: 0.42rem 0.68rem;
  color: rgb(255 246 229 / 0.78);
  background: rgb(5 7 13 / 0.46);
  backdrop-filter: blur(12px);
  font-size: 0.78rem;
}

.artifact-list {
  width: min(1120px, calc(100% - 1rem));
  margin: 1.25rem auto 0;
  display: grid;
  gap: 0.8rem;
}

.artifact-button {
  display: grid;
  grid-template-columns: minmax(8rem, 0.24fr) 1fr;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1rem;
  color: var(--ink);
  text-decoration: none;
  background:
    linear-gradient(135deg, rgb(255 184 107 / 0.08), transparent 42%),
    rgb(255 255 255 / 0.055);
}

.artifact-button:hover {
  border-color: var(--line-strong);
  background:
    linear-gradient(135deg, rgb(255 184 107 / 0.14), transparent 42%),
    rgb(255 255 255 / 0.085);
}

.artifact-date {
  color: var(--ember);
  font-size: 0.86rem;
  font-weight: 780;
  line-height: 1.35;
}

.artifact-summary strong {
  display: block;
  margin-bottom: 0.22rem;
  font-size: 1.08rem;
  letter-spacing: -0.025em;
}

.artifact-summary span {
  color: var(--muted);
  line-height: 1.45;
}

.article-shell {
  width: min(920px, 100%);
  max-width: 100%;
  margin: 2.25rem auto 0;
}

.article-card {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1.2rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.045));
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}

.article-card h1 {
  margin-top: 0.35rem;
  font-size: clamp(2.7rem, 8vw, 5.8rem);
  overflow-wrap: break-word;
  word-break: break-word;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 2rem;
}

.article-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.38rem 0.62rem;
  color: var(--muted);
  background: rgb(255 255 255 / 0.055);
  font-size: 0.82rem;
}

.prose {
  max-width: 100%;
  color: rgb(255 246 229 / 0.88);
  font-size: clamp(1.03rem, 2.2vw, 1.18rem);
  line-height: 1.75;
}

.prose p {
  margin: 0 0 1.2rem;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.prose h2 {
  margin: 2.25rem 0 0.8rem;
  color: var(--ink);
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.prose ul {
  margin: 0 0 1.35rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

.prose li { margin: 0.45rem 0; }

.prose blockquote {
  margin: 1rem 0 1.35rem;
  border-left: 3px solid var(--ember);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  color: var(--soft);
  background: rgb(255 255 255 / 0.055);
}

.prose pre {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  background: rgb(5 7 13 / 0.62);
}

.mirror-note {
  width: min(1120px, calc(100% - 1rem));
  margin: 1rem auto 0;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 0.9rem 1rem;
  color: var(--muted);
  background: rgb(255 255 255 / 0.055);
  line-height: 1.5;
}

.mirror-note strong { color: var(--ember); }

code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.credit-pill {
  border: 1px solid rgb(255 246 229 / 0.2);
  border-radius: 999px;
  padding: 0.34rem 0.55rem;
  background: rgb(5 7 13 / 0.5);
  backdrop-filter: blur(10px);
}

.hero-copy-card {
  display: flex;
  min-height: clamp(18rem, 45vw, 34rem);
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 1.8rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  background:
    linear-gradient(135deg, rgb(255 184 107 / 0.12), transparent 38%),
    linear-gradient(180deg, rgb(255 255 255 / 0.105), rgb(255 255 255 / 0.045));
  box-shadow: var(--shadow);
}

.hero-copy-card h1 {
  font-size: clamp(3.4rem, 8vw, 7rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.72rem 1rem;
  color: var(--ink);
  text-decoration: none;
  background: rgb(255 255 255 / 0.09);
}

.button.secondary {
  color: var(--muted);
  border-color: var(--line);
  background: rgb(255 255 255 / 0.045);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.5rem 0 1rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.section-heading p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.hero.center {
  display: block;
  width: min(900px, 100%);
  margin: 0 auto;
  text-align: center;
  min-height: 72vh;
  align-content: center;
}

.lobster {
  display: block;
  font-size: clamp(3rem, 10vw, 7rem);
  margin-bottom: 1rem;
}

.eyebrow {
  color: var(--ember);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
}

h1 {
  font-size: clamp(3rem, 9vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
  margin: 0.5rem 0 1rem;
}

.hero.center h1 {
  font-size: clamp(3rem, 12vw, 8rem);
}

.lede {
  max-width: 44rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  line-height: 1.55;
}

.hero.center .lede {
  margin: 1.25rem auto 0;
  color: var(--soft);
}

.panel,
.card {
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--shell);
  box-shadow: var(--shadow);
}

.panel {
  padding: 1.2rem;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.045));
}

.panel strong { color: var(--blue); }
.panel p { margin: 0.5rem 0 0; color: var(--muted); line-height: 1.5; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  min-height: 15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem;
  backdrop-filter: blur(10px);
  box-shadow: none;
}

.card.featured {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgb(255 184 107 / 0.16), transparent 45%),
    linear-gradient(180deg, rgb(255 255 255 / 0.12), rgb(255 255 255 / 0.05));
}

.card.empty {
  border-style: dashed;
  opacity: 0.82;
}

.tag {
  width: fit-content;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  color: #08101f;
  background: var(--ember);
  font-size: 0.78rem;
  font-weight: 850;
}

.tag.blue { background: var(--blue); }
.tag.ghost { color: var(--muted); background: rgb(255 255 255 / 0.09); border: 1px solid var(--line); }

h2 {
  margin: 1rem 0 0.55rem;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.featured h2 { font-size: clamp(1.8rem, 4vw, 3rem); }

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.meta {
  margin-top: 1.4rem;
  color: rgb(255 246 229 / 0.52);
  font-size: 0.88rem;
}

footer {
  margin-top: 2rem;
  color: rgb(255 246 229 / 0.55);
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .workshop-wrap,
  .workshop-wrap.wide {
    width: calc(100dvw - 1rem);
    max-width: calc(100% - 1rem);
  }

  .workshop-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .workshop-links {
    justify-content: flex-start;
  }

  .hero, .page-hero, .grid { grid-template-columns: 1fr; }
  .card.featured { grid-column: auto; }
  .section-heading { align-items: start; flex-direction: column; }
  .artifact-button { grid-template-columns: 1fr; }

  .article-shell {
    margin-top: 1.25rem;
  }

  .article-card h1 {
    font-size: clamp(2.15rem, 13vw, 3.35rem);
    letter-spacing: -0.07em;
  }

  .cinematic-overlay p,
  .artifact-summary span,
  .mirror-note {
    display: block;
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
  }

  .prose p {
    text-align: justify;
  }
}
