:root {
  --bg: #000000;
  --panel: rgba(192, 132, 252, 0.07);
  --panel-2: rgba(192, 132, 252, 0.025);
  --text: #f7f0ff;
  --muted-text: rgba(237, 222, 255, 0.78);
  --muted-sub: rgba(237, 222, 255, 0.56);
  --accent: #d8b4fe;
  --accent-2: #8b5cf6;
  --accent-rgb: 216, 180, 254;
  --glow-primary: 168, 85, 247;
  --glow-secondary: 236, 72, 153;
  --metal: #eadcff;
 
  --radius: 10px;
  --max-width: 1040px;
  --container-width: 980px;
  --container-width-narrow: 960px;
  --section-space: 3.4rem;

  --transition-fast: 180ms ease;
  --transition-medium: 260ms cubic-bezier(.2, .9, .2, 1);
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --article-detail-width: min(104ch, 96vw);
  --nav-height: 72px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  padding: var(--nav-height) 0 0;
  font-family: var(--font-body);
  background-color: var(--bg);
  background-image: none;
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before,
body::after {
  content: none;
}

body::before {
  width: 560px;
  height: 560px;
  left: -200px;
  top: -18%;
  background: radial-gradient(circle at center, rgba(var(--glow-primary), 0.12), rgba(var(--glow-primary), 0.02));
}

body::after {
  width: 760px;
  height: 760px;
  right: -260px;
  bottom: -12%;
  background: radial-gradient(circle at center, rgba(var(--glow-secondary), 0.1), rgba(var(--glow-secondary), 0.02));
}

/* ------------------------------
   Layout primitives
------------------------------ */

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container.section-narrow {
  max-width: var(--container-width-narrow);
}

.section-shell {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-content {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.site-content > main,
.site-content > div,
.site-content > section {
  contain: layout paint style;
}

section {
  padding: var(--section-space) 0;
}

.section-header {
  max-width: 780px;
  margin: 0 auto 2.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: center;
}

.section-header.centered {
  align-items: center;
  text-align: center;
}

.section-kicker {
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: rgba(var(--accent-rgb), 0.78);
  font-weight: 600;
}

.section-title {
  font-size: 2.25rem;
  margin: 0 0 0.9rem 0;
  font-weight: 700;
  font-family: var(--font-display);
  text-align: center;
  letter-spacing: -0.03em;
}

.section-sub {
  color: var(--muted-text);
  margin: 0 auto 1.6rem;
  max-width: 920px;
  text-align: center;
  font-size: 1.18rem;
  opacity: 0.95;
  line-height: 1.75;
}

.lead {
  color: var(--text);
}

/* ------------------------------
   Links and CTAs
------------------------------ */

.ghost-link {
  color: var(--text);
  text-decoration: none;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  font-weight: 600;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ghost-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.ghost-link:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.6);
  outline-offset: 3px;
}

.cta-primary {
  display: inline-block;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  padding: 0.7rem 1.15rem;
  border-radius: calc(var(--radius) - 2px);
  color: #180c24;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(var(--accent-rgb), 0.16);
  min-width: 220px;
  text-align: center;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cta-primary.cta-wide {
  min-width: 264px;
  background: linear-gradient(180deg, #eadcff, #b882f4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 10px 26px rgba(var(--accent-rgb), 0.2);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.4), 0 14px 30px rgba(var(--accent-rgb), 0.26);
}

.cta-primary:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.6);
  outline-offset: 4px;
}

/* ------------------------------
   Shared surfaces
------------------------------ */

/* ------------------------------
   Header / navigation
------------------------------ */

.nav-wrap {
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  border-bottom: none;
  box-shadow: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 0.4rem 0;
  overflow: visible;
}

.nav-wrap::before {
  content: none;
}

.nav-wrap::after {
  content: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: calc(var(--nav-height) - 0.8rem);
  position: relative;
  z-index: 1;
  padding: 0.56rem 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  opacity: 0.98;
  font-family: var(--font-body);
  text-decoration: none;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.brand-wordmark {
  display: inline-block;
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 0.98rem + 0.22vw, 1.12rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--text);
  text-shadow: none;
  text-transform: none;
}

.brand:hover {
  opacity: 0.9;
}

.brand:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.6);
  outline-offset: 4px;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  padding: 0.22rem 0;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  background: transparent;
  border: none;
  position: relative;
  transition:
    color var(--transition-fast),
    opacity var(--transition-fast);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.28rem;
  height: 1px;
  background: rgba(var(--accent-rgb), 0.55);
  transform: scaleX(0.35);
  transform-origin: center;
  opacity: 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.nav-links a:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.6);
  outline-offset: 3px;
}

.nav-dropdown {
  display: none;
  position: relative;
}

.nav-toggle {
  list-style: none;
  cursor: pointer;
  padding: 0.1rem;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.nav-toggle::-webkit-details-marker {
  display: none;
}

.nav-toggle::marker {
  content: "";
}

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

.nav-toggle-icon {
  width: 20px;
  height: 1px;
  background: currentColor;
  border-radius: 999px;
  position: relative;
  box-shadow: 0 6px 0 0 currentColor, 0 12px 0 0 currentColor;
}

.nav-dropdown[open] .nav-toggle {
  color: var(--accent);
}

.nav-toggle:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.6);
  outline-offset: 4px;
}

.nav-dropdown-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  min-width: 170px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
  z-index: 20;
}

.nav-dropdown-panel a {
  color: var(--text);
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.nav-dropdown-panel a:hover,
.nav-dropdown-panel a:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

/* ------------------------------
   Hero
------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(38rem, 82vh, 52rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    clamp(5.5rem, calc(var(--nav-height) + 3.5rem), 8rem)
    1.5rem
    clamp(4rem, 10vh, 6rem);
  background: #000000;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: 0;
  background-image: url("dragon.6c7d13874b45.png");
  background-size: auto 88%;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(6px) brightness(0.48) saturate(0.82);
  opacity: 0.78;
  transform: scale(1.03);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 42%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), #000000 82%);
  pointer-events: none;
}

.home-lower {
  position: relative;
  background: #000000;
}

.home-lower::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5rem;
  background: linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0) 100%);
  opacity: 0.95;
  pointer-events: none;
}

.home-page .artifact-carousel,
.home-page .home-timeline,
.home-page .home-slides,
.home-page .home-about-simple,
.home-page .home-coaching {
  position: relative;
  background: transparent;
  content-visibility: auto;
  contain-intrinsic-size: 720px;
}

.hero-inner {
  width: 100%;
  max-width: 1080px;
  padding-inline: clamp(0.25rem, 2vw, 1.25rem);
  text-align: center;
  position: relative;
  z-index: 3;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  line-height: 0.96;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

.hero .hero-main {
  font-weight: 800;
  letter-spacing: 0;
}

.hero .hero-large {
  display: block;
  font-family: var(--font-display);
  font-size: 4.4rem;
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 auto;
  max-width: 18ch;
}

.hero p.lead {
  color: rgba(233, 241, 255, 0.9);
  margin-top: 1.2rem;
  font-size: 1.14rem;
  line-height: 1.74;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.cta-row {
  margin-top: 1.7rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.glass-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  background: rgba(var(--accent-rgb), 0.07);
  color: rgba(250, 244, 255, 0.92);
  font-weight: 600;
}

.eyebrow {
  padding: 0.25rem 0.65rem;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
}

/* ------------------------------
   Motion primitives
------------------------------ */

.motion-reveal {
  --reveal-offset-x: 0px;
  --reveal-offset-y: 24px;
  --reveal-duration: 820ms;
  --reveal-delay: 0ms;
  --reveal-scale: 1;
  --reveal-final-opacity: 1;
  --reveal-ease: cubic-bezier(0.215, 0.61, 0.355, 1);
  opacity: 0.001;
  transform: translate3d(var(--reveal-offset-x), var(--reveal-offset-y), 0) scale(var(--reveal-scale));
  transform-origin: center;
  transition:
    transform var(--reveal-duration) var(--reveal-ease) var(--reveal-delay),
    opacity var(--reveal-duration) var(--reveal-ease) var(--reveal-delay);
  will-change: transform, opacity;
}

.motion-reveal.is-visible {
  opacity: var(--reveal-final-opacity);
  transform: translate3d(0, 0, 0) scale(1);
}

.motion-reveal--up {
  --reveal-offset-y: 34px;
}

.motion-reveal--left {
  --reveal-offset-x: 34px;
  --reveal-offset-y: 0px;
}

.motion-reveal--right {
  --reveal-offset-x: -34px;
  --reveal-offset-y: 0px;
}

.motion-reveal--soft {
  --reveal-offset-y: 18px;
  --reveal-scale: 0.985;
}

.hero .motion-reveal {
  --reveal-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero .motion-reveal--up {
  --reveal-offset-y: 20px;
}

.motion-reveal--settled {
  will-change: auto;
}

.motion-parallax {
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* ------------------------------
   Home: Timeline
------------------------------ */

.home-timeline {
  padding-bottom: calc(var(--section-space) + 0.6rem);
}

.home-timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.8rem, 3vw, 2.6rem);
  align-items: stretch;
}

.home-timeline-copy {
  text-align: left;
  max-width: none;
  align-self: center;
}

.home-timeline-copy .section-kicker,
.home-timeline-copy .section-title,
.home-timeline-copy .section-sub {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.home-timeline-sub {
  max-width: none;
}

.home-timeline-note {
  margin: 1.5rem 0 0;
  color: rgba(245, 245, 247, 0.9);
  line-height: 1.75;
  font-size: 1.1rem;
  max-width: none;
  padding-left: 0;
  border-left: none;
}

.home-timeline-panel {
  position: relative;
  padding: 2.6rem 2.8rem;
  border-radius: 22px;
  border: none;
  background: transparent;
  box-shadow: none;
  width: 100%;
  height: 100%;
}

.home-timeline-card {
  position: relative;
  padding: 2.85rem 3.1rem;
  border-radius: 22px;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.home-timeline-card::after {
  content: none;
}

.home-timeline-list {
  --timeline-gutter: 26px;
  --timeline-line: 13px;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.6rem;
  grid-auto-rows: minmax(88px, auto);
}

.home-timeline-list::before {
  content: "";
  position: absolute;
  left: var(--timeline-line);
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.7), rgba(var(--accent-rgb), 0.12));
  opacity: 0.85;
}

.home-timeline-item {
  display: grid;
  grid-template-columns: var(--timeline-gutter) 1fr;
  gap: 1.2rem;
  align-items: center;
  position: relative;
  z-index: 1;
  --reveal-final-opacity: 0.55;
}

.home-timeline-marker {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.95) 0%, rgba(var(--accent-rgb), 0.4) 60%, rgba(var(--accent-rgb), 0.18) 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.7);
  box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.08);
  margin-top: 0;
  justify-self: center;
}

.home-timeline-stage {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}

.home-timeline-text {
  margin: 0;
  color: rgba(245, 245, 247, 0.88);
  line-height: 1.7;
  font-size: 1.08rem;
  max-width: 38ch;
}

.home-timeline-item {
  opacity: var(--reveal-final-opacity);
}

.home-timeline-item:nth-child(2) {
  --reveal-final-opacity: 0.68;
}

.home-timeline-item:nth-child(3) {
  --reveal-final-opacity: 0.78;
}

.home-timeline-item:nth-child(4) {
  --reveal-final-opacity: 0.9;
}

.home-timeline-item:nth-child(5) {
  --reveal-final-opacity: 1;
}

.home-timeline-item:nth-child(5) .home-timeline-stage {
  font-size: 1.18rem;
}

.home-timeline-item:nth-child(5) .home-timeline-marker {
  box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0.16);
}

/* ------------------------------
   Home: About
------------------------------ */

.home-about-simple {
  padding-bottom: calc(var(--section-space) + 1.6rem);
}

.home-about-simple-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(1.6rem, 3vw, 2.4rem);
  align-items: center;
}

.home-about-simple-copy {
  max-width: 62ch;
}

.home-about-simple-title {
  text-align: left;
  margin: 0.25rem 0 0.6rem;
}

.home-about-simple-text {
  margin: 0;
  color: rgba(228, 237, 255, 0.84);
  line-height: 1.8;
  font-size: 1.08rem;
}

.home-about-simple-text + .home-about-simple-text {
  margin-top: 1.25rem;
}

.home-about-simple-media {
  --parallax-y: 0px;
  margin: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  background: rgba(var(--accent-rgb), 0.05);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  justify-self: end;
  width: min(340px, 70vw);
  aspect-ratio: 1 / 1;
  display: block;
  transform: translate3d(0, var(--parallax-y), 0);
}

.home-about-simple-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ------------------------------
   Footer: Newsletter
------------------------------ */

.footer-newsletter {
  padding: 0 0 1.6rem;
}

.footer-newsletter-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(1.4rem, 4vw, 2.4rem);
  align-items: start;
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.footer-newsletter-copy {
  max-width: 36ch;
  margin: 0;
}

.footer-newsletter-title {
  text-align: left;
}

.footer-newsletter-title {
  margin: 0 0 0.35rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.footer-newsletter-text {
  margin: 0;
  color: rgba(228, 237, 255, 0.62);
  line-height: 1.6;
  font-size: 0.92rem;
}

.newsletter-form {
  width: 100%;
  max-width: 360px;
  margin: 0;
  padding: 0;
}

.newsletter-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.newsletter-field {
  min-width: 0;
}

.newsletter-field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.32rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 600;
}

.newsletter-field label span {
  color: var(--muted-sub);
  font-size: 0.78rem;
  font-weight: 600;
}

.newsletter-input {
  width: 100%;
  min-height: 42px;
  padding: 0.72rem 0.8rem;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.newsletter-input:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.48);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.14);
}

.newsletter-input::placeholder {
  color: var(--muted-sub);
}

.newsletter-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  margin-top: 0.85rem;
  padding: 0.66rem 1.05rem;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
}

.newsletter-form .formkit-alert {
  display: none;
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 5px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.newsletter-form .formkit-alert:not(:empty) {
  display: block;
}

.newsletter-form .formkit-alert-error {
  border: 1px solid rgba(248, 113, 113, 0.28);
  background: rgba(127, 29, 29, 0.2);
  color: rgba(254, 226, 226, 0.96);
}

.newsletter-form .formkit-alert-success {
  border: 1px solid rgba(134, 239, 172, 0.26);
  background: rgba(34, 197, 94, 0.12);
  color: rgba(220, 252, 231, 0.95);
}

.home-coaching {
  padding-top: 0;
  padding-bottom: calc(var(--section-space) + 2rem);
}

.home-coaching-inner {
  text-align: center;
  max-width: 720px;
}

.home-coaching-text {
  margin: 0 auto 1.45rem;
  color: rgba(228, 237, 255, 0.84);
  line-height: 1.8;
  font-size: 1.08rem;
  max-width: 58ch;
}

.social-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.social-link polygon {
  fill: currentColor;
  stroke: none;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.12);
  outline: none;
}

.profile-socials {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 0.75rem 0.9rem;
  border-top: 1px solid rgba(var(--accent-rgb), 0.18);
  background: rgba(255, 255, 255, 0.02);
}

.profile-cta {
  min-width: 0;
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
  line-height: 1.1;
}

.profile-cta:hover,
.profile-cta:focus-visible {
  outline: none;
}

/* ------------------------------
   Home: Slides
------------------------------ */

.home-slides {
  padding-top: calc(var(--section-space) + 0.6rem);
  padding-bottom: calc(var(--section-space) + 0.3rem);
}

.home-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 3vw, 2.6rem);
  align-items: center;
  padding: clamp(1.6rem, 3vw, 2.6rem) 0;
  --featured-panel-width: clamp(260px, 38vw, 420px);
}

.home-slide:first-child {
  border-top: 0;
  padding-top: 0.7rem;
}

.home-slide-title {
  margin: 0.25rem 0 0 0;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.home-slide-copy {
  text-align: center;
}

.home-slide-sub {
  margin: 0.9rem auto 1.25rem;
  color: rgba(245, 245, 247, 0.9);
  line-height: 1.8;
  max-width: 52ch;
  font-size: 1.06rem;
}

.home-slide-copy .cta-primary {
  margin-left: auto;
  margin-right: auto;
}

.home-slide-invert {
  grid-template-columns: clamp(320px, 40vw, 420px) minmax(0, 1fr);
}

.home-slide-visual {
  --parallax-y: 0px;
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  background: linear-gradient(135deg, rgba(234, 220, 255, 0.03), rgba(var(--accent-rgb), 0.12), rgba(12, 7, 18, 0.92));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  min-height: 300px;
  display: grid;
  place-items: center;
  isolation: isolate;
  width: min(100%, var(--featured-panel-width));
  justify-self: center;
  transform: translate3d(0, var(--parallax-y), 0);
}

.home-slide-visual::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 30%, rgba(var(--accent-rgb), 0.16), transparent 48%),
    radial-gradient(circle at 70% 60%, rgba(var(--accent-rgb), 0.12), transparent 52%);
  filter: blur(16px);
  opacity: 0.9;
  pointer-events: none;
}

.home-slide-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  mix-blend-mode: screen;
}

.home-slide-visual-carousel {
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: clamp(0.9rem, 2vw, 1.35rem);
  width: 100%;
  min-width: 0;
}

.home-slide-carousel.artifact-carousel {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  --carousel-visible: 1;
  --carousel-card-width: 260px;
}

.home-slide-carousel .carousel-head {
  margin-bottom: 0.85rem;
}

.home-slide-glass .home-slide-visual {
  border-color: rgba(var(--accent-rgb), 0.2);
  background: linear-gradient(140deg, rgba(234, 220, 255, 0.08), rgba(var(--accent-rgb), 0.16), rgba(12, 7, 18, 0.92));
}

.home-slide-glass .home-slide-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, transparent 32%, rgba(255, 255, 255, 0.28) 50%, transparent 68%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.22), transparent 48%);
  opacity: 0.35;
  mix-blend-mode: screen;
  pointer-events: none;
}

.home-slide-glass .home-slide-visual img {
  opacity: 0.95;
  filter: saturate(1.06) contrast(1.04);
  transform: scale(1.02);
}

.home-slide-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.7rem 0 1.4rem;
  justify-content: center;
}

.home-slide-chip {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  background: rgba(9, 12, 16, 0.6);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
}

/* ------------------------------
   Home: Responsive
------------------------------ */

@media (max-width: 1024px) {
  .carousel-controls {
    display: none;
  }

  .home-about-simple-inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .home-about-simple-copy {
    margin: 0 auto;
  }

  .home-about-simple-media {
    justify-self: center;
  }

  .home-timeline-grid {
    grid-template-columns: 1fr;
  }

  .home-timeline-panel,
  .home-timeline-card {
    justify-self: stretch;
    max-width: none;
  }

  .home-slide {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .home-slide-invert {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .footer-newsletter-inner {
    grid-template-columns: 1fr;
    max-width: 420px;
    text-align: center;
  }

  .footer-newsletter-copy,
  .newsletter-form {
    margin: 0 auto;
  }

  .footer-newsletter-title {
    text-align: center;
  }

  .home-about-simple-copy {
    text-align: center;
    margin: 0 auto;
  }

  .home-about-simple-title {
    font-size: 2.1rem;
    text-align: center;
  }

  .home-about-simple-text {
    text-align: left;
  }

  .home-about-simple-media {
    justify-self: center;
  }

  .newsletter-fields {
    grid-template-columns: 1fr;
  }

  .home-slide {
    gap: 2.2rem;
  }

  .home-slide-title {
    font-size: 2rem;
  }

  .home-slide-sub {
    max-width: 100%;
  }

  .home-timeline-copy {
    text-align: center;
  }

  .home-timeline-copy .section-kicker,
  .home-timeline-copy .section-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .home-timeline-copy .section-sub {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .home-timeline-note {
    text-align: left;
  }

  .home-timeline-card,
  .home-timeline-panel {
    padding: 1.8rem 1.6rem;
  }

  .home-timeline-list {
    --timeline-gutter: 22px;
    --timeline-line: 11px;
    grid-auto-rows: minmax(72px, auto);
  }

  .home-timeline-item {
    grid-template-columns: var(--timeline-gutter) 1fr;
    gap: 0.9rem;
  }

  .home-timeline-list::before {
    left: var(--timeline-line);
  }

  .home-timeline-stage {
    font-size: 1.05rem;
  }
}

/* ------------------------------
   Artifacts: tiles + carousel
------------------------------ */

.artifact-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
  text-decoration: none;
  transform: translateY(0);
  transition:
    transform 360ms cubic-bezier(.18, .9, .24, 1),
    box-shadow 360ms cubic-bezier(.18, .9, .24, 1),
    border-color 260ms ease,
    background 260ms ease;
  min-height: 240px;
}

.artifact-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.artifact-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.22);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.42), 0 10px 30px rgba(var(--accent-rgb), 0.12);
}

.artifact-tile:hover::before {
  opacity: 1;
}

.artifact-tile:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.6);
  outline-offset: 4px;
}

.tile-media {
  position: relative;
  flex: 1;
  background-size: cover;
  background-position: center;
  filter: saturate(1.02);
  min-height: 180px;
  transform: scale(1);
  transition: transform 420ms cubic-bezier(.18, .9, .24, 1), filter 320ms ease;
}

.tile-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.55) 100%);
  opacity: 0.9;
  transition: opacity 320ms ease;
}

.artifact-tile:hover .tile-media {
  transform: scale(1.02);
  filter: saturate(1.06);
}

.artifact-tile:hover .tile-media::after {
  opacity: 0.82;
}

.tile-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.0) 0%, rgba(0, 0, 0, 0.65) 100%);
  transition: transform 320ms ease, background 320ms ease;
}

.artifact-tile:hover .tile-body {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.0) 0%, rgba(0, 0, 0, 0.72) 100%);
}

.tile-tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  width: max-content;
}

.tile-title {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.35;
}

.tile-date {
  margin: 0;
  color: var(--muted-text);
  font-size: 0.9rem;
}

.artifact-carousel {
  padding-top: 3.2rem;
  padding-bottom: 4.2rem;
  --carousel-card-width: 240px;
  --carousel-card-ratio: 13 / 12;
  --carousel-gap: 0.75rem;
  --carousel-visible: 1;
  min-width: 0;
  max-width: 100%;
}

/* Carousel sizing: mobile -> desktop */
@media (min-width: 475px) {
  .artifact-carousel:not(.home-slide-carousel) {
    --carousel-visible: 2;
    --carousel-card-width: 210px;
    --carousel-gap: 0.75rem;
  }
}

@media (min-width: 640px) {
  .artifact-carousel:not(.home-slide-carousel) {
    --carousel-card-width: 230px;
    --carousel-gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .artifact-carousel:not(.home-slide-carousel) {
    --carousel-visible: 3;
    --carousel-card-width: 250px;
  }
}

@media (min-width: 1200px) {
  .artifact-carousel:not(.home-slide-carousel) {
    --carousel-card-width: 260px;
  }
}

.carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.carousel-head .section-title {
  text-align: left;
  margin: 0;
}

.carousel-controls {
  display: flex;
  gap: 0.5rem;
}

.carousel-indicator {
  display: flex;
  justify-content: center;
  margin-top: 0.65rem;
  height: 10px;
  width: calc((var(--carousel-card-width) * var(--carousel-visible)) + (var(--carousel-gap) * (var(--carousel-visible) - 1)));
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.carousel-indicator::before {
  content: "";
  width: 42px;
  height: 6px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  background:
    linear-gradient(180deg, rgba(216, 180, 254, 0.55), rgba(139, 92, 246, 0.35));
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.25),
    inset 0 -1px 2px rgba(0, 0, 0, 0.35),
    0 12px 24px rgba(0, 0, 0, 0.45);
}

.artifact-carousel:not(.has-overflow) .carousel-indicator {
  display: none;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent-rgb), 0.08));
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.carousel-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(var(--accent-rgb), 0.18);
  border-color: rgba(var(--accent-rgb), 0.6);
}

.carousel-btn:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.6);
  outline-offset: 4px;
}

.carousel-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.artifact-slider {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: calc((var(--carousel-card-width) * var(--carousel-visible)) + (var(--carousel-gap) * (var(--carousel-visible) - 1)));
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 0.5rem 0.1rem 0.75rem;
}

.artifact-slider::-webkit-scrollbar {
  display: none;
}

.artifact-slider.is-dragging {
  cursor: grabbing;
}

.artifact-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--carousel-card-width);
  gap: var(--carousel-gap);
  padding: 0.1rem;
  /* Let the track exceed the slider width so horizontal scroll / overflow works inside flex layouts */
  width: max-content;
}

.artifact-slider .artifact-tile {
  width: 100%;
  min-height: 0;
  aspect-ratio: var(--carousel-card-ratio);
  scroll-snap-align: start;
}

.artifact-slider .tile-media {
  min-height: 0;
}

/* Home carousels: text-only cards (no cover image) */
.artifact-carousel .artifact-tile.artifact-tile--no-cover {
  aspect-ratio: auto;
  min-height: 168px;
  justify-content: center;
}

.artifact-carousel .artifact-tile--no-cover .tile-body {
  position: relative;
  inset: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  background: linear-gradient(180deg, rgba(12, 14, 18, 0.95), rgba(6, 8, 10, 0.98));
  border-top: 1px solid rgba(var(--accent-rgb), 0.12);
}

@media (min-width: 769px) {
  .artifact-carousel .artifact-tile {
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  }
}

.artifact-carousel .artifact-tile:hover {
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.4), 0 10px 26px rgba(var(--accent-rgb), 0.1);
}

/* ------------------------------
   Artifacts: index page
------------------------------ */

.artifacts-simplified {
  --artifact-log-width: 1180px;
  --container-width: 1240px;
  padding: 2.4rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.artifacts-simplified::before,
.artifacts-simplified::after {
  content: none;
}

.artifacts-simplified::before {
  display: none;
}

.artifacts-simplified::after {
  display: none;
}

.artifact-header {
  padding: 0 0 1rem;
  max-width: var(--artifact-log-width);
  margin: 0.35rem auto 0;
}

.artifact-heading {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 760px;
  text-align: left;
  align-items: flex-start;
  margin: 0 auto;
}

.artifact-page-title {
  margin: 0;
  font-size: clamp(3rem, 6vw, 4.8rem);
  letter-spacing: 0.01em;
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 600;
}

.artifact-lead {
  margin: 0;
  color: var(--muted-text);
  line-height: 1.6;
  font-size: 1.02rem;
  max-width: 700px;
}

.artifact-feature {
  max-width: var(--artifact-log-width);
  margin: 0 auto;
  padding: 0 clamp(0.25rem, 1vw, 0.6rem);
}

.artifact-featured-tile {
  min-height: min(68vh, 560px);
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(var(--accent-rgb), 0.12), transparent 34%),
    linear-gradient(135deg, rgba(10, 12, 18, 0.96), rgba(3, 4, 7, 0.98));
  border-color: rgba(var(--accent-rgb), 0.16);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.artifact-featured-tile .artifact-featured-media {
  min-height: 100%;
  transform: scale(1.02);
}

.artifact-featured-tile .artifact-featured-media::after {
  background:
    linear-gradient(90deg, rgba(4, 6, 8, 0.9) 0%, rgba(4, 6, 8, 0.62) 46%, rgba(4, 6, 8, 0.14) 100%),
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.06) 0%, rgba(0, 0, 0, 0.58) 100%);
}

.artifact-featured-body {
  top: 0;
  right: auto;
  bottom: 0;
  width: min(56%, 660px);
  padding: clamp(1.55rem, 3vw, 2.6rem);
  gap: 1rem;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(6, 8, 12, 0.08) 0%, rgba(6, 8, 12, 0.36) 42%, rgba(6, 8, 12, 0.72) 100%);
  backdrop-filter: none;
}

.artifact-featured-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.artifact-featured-tag {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.artifact-featured-category {
  color: rgba(233, 241, 255, 0.72);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.artifact-featured-tile.artifact-tile--no-cover {
  min-height: 440px;
}

.artifact-featured-tile.artifact-tile--no-cover .artifact-featured-body {
  position: relative;
  width: 100%;
  inset: auto;
  justify-content: center;
  background:
    radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.1), transparent 30%),
    linear-gradient(180deg, rgba(12, 14, 18, 0.97), rgba(6, 8, 10, 0.98));
  border-top: 1px solid rgba(var(--accent-rgb), 0.16);
}

.artifact-featured-title {
  margin: 0;
  font-size: clamp(2.35rem, 4vw, 4rem);
  line-height: 0.94;
  max-width: 11ch;
  letter-spacing: -0.035em;
}

.artifact-featured-summary {
  margin: 0;
  max-width: 50ch;
  color: rgba(237, 244, 242, 0.86);
  font-size: 1.02rem;
  line-height: 1.78;
}

.artifact-featured-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}

.artifact-featured-note {
  color: rgba(233, 241, 255, 0.64);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 28ch;
}

.artifact-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 0.08rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.artifact-featured-cta::after {
  content: "→";
  font-size: 1rem;
}

.artifact-shelf {
  max-width: var(--artifact-log-width);
  margin: 1.7rem auto 0;
  padding: 0 clamp(0.25rem, 1vw, 0.6rem);
}

.artifact-shelf-heading {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
}

.artifact-shelf-heading .section-title {
  margin: 0;
  text-align: left;
  font-size: 1.55rem;
}

.artifact-shelf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.artifact-controls {
  margin: 0.7rem 0 1.4rem;
  max-width: min(58rem, 100%);
  margin-left: auto;
  margin-right: auto;
}

.artifact-pinned {
  margin: 1.2rem auto 0.55rem;
  max-width: var(--artifact-log-width);
  display: grid;
  gap: 0.8rem;
  padding: 0 0 1rem;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.artifact-pinned .pinned-header {
  padding-bottom: 0.35rem;
  border-bottom: none;
  justify-content: center;
}

.artifact-pinned .pinned-heading {
  color: #ffffff;
  text-align: center;
}

.pinned-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.pinned-tile {
  min-height: 0;
  aspect-ratio: 5 / 4;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
}

.pinned-tile .tile-media {
  min-height: 0;
}

.pinned-tile .tile-body {
  padding: 0.75rem 0.85rem;
  gap: 0.2rem;
}

.pinned-tile .tile-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
}

.pinned-tile .tile-title {
  font-size: 0.92rem;
}

.pinned-tile .tile-date {
  font-size: 0.72rem;
}

@media (max-width: 1100px) {
  .pinned-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
}

.control-inner {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
}

.controls-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(10.5rem, 18vw, 12.5rem);
  gap: 0.85rem;
  align-items: end;
}

.filters-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-block label {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  display: block;
  color: var(--text);
}

.search-block {
  min-width: 0;
}

.search-input-wrap {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.search-input:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.6);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2);
}

.search-input:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26), 0 0 0 2px rgba(var(--accent-rgb), 0.14);
}

.search-input::placeholder {
  color: var(--muted-text);
}

.search-input-bold {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.sort-control,
.category-control {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--text);
  font-weight: 600;
  position: relative;
  width: 100%;
  max-width: clamp(10.5rem, 18vw, 12.5rem);
  justify-self: end;
}

.sort-control label,
.category-control label {
  font-size: 0.95rem;
}

.sort-select,
.category-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  min-height: 3.2rem;
  padding: 0.85rem 2.6rem 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.sort-select:hover,
.category-select:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26), 0 0 0 2px rgba(var(--accent-rgb), 0.14);
}

.sort-select option,
.category-select option {
  background: #0f0c08;
  color: var(--text);
}

.sort-select:focus,
.category-select:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.6);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2);
}

.sort-control::after,
.category-control::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: calc(50% + 0.9rem);
  width: 8px;
  height: 8px;
  pointer-events: none;
  border-right: 2px solid rgba(255, 255, 255, 0.9);
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.85;
}

.category-control {
  display: none;
}

.category-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.category-btn {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease;
}

.category-btn:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.12);
}

.category-btn.active {
  border-color: rgba(var(--accent-rgb), 0.75);
  background: rgba(var(--accent-rgb), 0.22);
  color: var(--text);
}

.category-btn:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.6);
  outline-offset: 3px;
}

.artifact-layout {
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(var(--artifact-sidebar-min), var(--artifact-sidebar-max));
  gap: 1.5rem;
  align-items: start;
  grid-template-areas: "main sidebar";
}

.artifact-main {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  grid-area: main;
}

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.artifact-listing {
  margin-top: 1.2rem;
}

.artifact-log {
  max-width: var(--artifact-log-width);
  margin: 0 auto;
  padding: 0 clamp(0.8rem, 2vw, 1.4rem);
}

.artifact-listing .artifact-grid {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.artifact-row {
  display: block;
  align-items: center;
  padding: 1.2rem clamp(1rem, 2vw, 1.4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  border-top: none;
  border-left: none;
  border-right: none;
  overflow: visible;
  text-decoration: none;
  color: var(--text);
  background: transparent;
  transition: background 220ms ease, border-color 220ms ease;
  box-shadow: none;
  min-height: 0;
  transform: none;
}

.artifact-row:hover {
  background: rgba(255, 255, 255, 0.028);
  border-color: rgba(var(--accent-rgb), 0.18);
  transform: none;
  box-shadow: none;
}

.artifact-row-content {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.artifact-row-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.artifact-catalog .tile-media {
  min-height: 200px;
}

.artifact-gallery-page {
  --artifact-log-width: 1120px;
  --container-width: 1180px;
}

.artifact-gallery-page .artifact-heading {
  max-width: 760px;
}

.artifact-gallery-page .artifact-listing .artifact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.artifact-gallery-page .artifact-catalog {
  max-width: var(--artifact-log-width);
  margin: 0 auto;
  padding: 0 clamp(0.25rem, 1vw, 0.6rem);
}

.artifact-gallery-page .artifact-catalog-card {
  min-height: 440px;
  aspect-ratio: 4 / 5;
}

.artifact-gallery-page .artifact-shelf-grid .artifact-catalog-card {
  min-height: 320px;
  aspect-ratio: 8 / 7;
}

.artifact-gallery-page .artifact-catalog-card .tile-media {
  min-height: 100%;
}

.artifact-gallery-page .artifact-catalog-card .tile-media::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.72) 100%);
}

.artifact-gallery-page .artifact-catalog-card .tile-body {
  gap: 0.7rem;
  padding: 1.35rem;
}

.artifact-gallery-page .artifact-shelf-grid .tile-body {
  gap: 0.45rem;
  padding: 1rem;
}

.artifact-gallery-page .artifact-tile--no-cover {
  justify-content: center;
}

.artifact-gallery-page .artifact-tile--no-cover .tile-body {
  position: relative;
  inset: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, rgba(12, 14, 18, 0.95), rgba(6, 8, 10, 0.98));
  border-top: 1px solid rgba(var(--accent-rgb), 0.12);
}

.artifact-card-title {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.18;
}

.artifact-gallery-page .artifact-shelf-grid .artifact-card-title {
  font-size: 1.22rem;
  line-height: 1.15;
}

.artifact-card-summary {
  margin: 0;
  color: var(--muted-text);
  font-size: 1rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.artifact-gallery-page .artifact-shelf-grid .artifact-card-summary {
  font-size: 0.95rem;
  line-height: 1.6;
  -webkit-line-clamp: 3;
}

.artifact-gallery-page .artifact-catalog .no-results {
  grid-column: 1 / -1;
}

@media (min-width: 769px) {
  .artifact-catalog .artifact-tile {
    min-height: 0;
    aspect-ratio: 6 / 5;
  }

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

  .artifact-gallery-page .artifact-shelf-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
  }

  .artifact-catalog .tile-media {
    min-height: 0;
  }
}

@media (max-width: 1200px) {
  .artifact-gallery-page .artifact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .artifact-gallery-page .artifact-shelf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.3rem;
  }
}

/* ------------------------------
   Pinned sidebar
------------------------------ */

.pinned-sidebar {
  position: sticky;
  top: 120px;
  grid-area: sidebar;
}

.pinned-panel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  background: rgba(6, 8, 10, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pinned-panel::before {
  content: none;
}

.pinned-panel::after {
  content: none;
}

.pinned-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.2);
}

.pinned-heading {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(var(--accent-rgb), 0.75);
  font-weight: 700;
}

.pinned-stack {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.pinned-mini {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
  position: relative;
  z-index: 1;
  min-height: 92px;
}

.pinned-mini:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.pinned-mini:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.6);
  outline-offset: 4px;
}

.pinned-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.pinned-mini-body {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.pinned-mini .tile-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
}

.pinned-date {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted-text);
  letter-spacing: 0.01em;
  font-weight: 600;
}

.pinned-title {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text);
  letter-spacing: -0.005em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pinned-empty {
  color: var(--muted-text);
  margin: 0.25rem 0 0 0;
}

.no-results {
  padding: 2.4rem 0;
  text-align: center;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

/* ------------------------------
   Article detail
------------------------------ */

.article-detail {
  position: relative;
  padding: 6.5rem 0 4.5rem;
  overflow: visible;
  --article-detail-width: min(125ch, 96vw);
  background: var(--bg);
}

.article-detail-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(156ch, 96vw);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.article-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.article-detail-layout--with-rail {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(2rem, 3.5vw, 4rem);
  align-items: start;
}

.article-detail-card {
  background: transparent;
  color: var(--text);
  border-radius: 0;
  padding: 3rem 3.2rem 2.8rem;
  border: none;
  box-shadow: none;
}

.article-detail-card--library {
  width: min(100%, 46rem);
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.article-rail {
  position: sticky;
  top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  align-self: start;
}

.article-rail-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 1.1rem 0 0;
  max-height: calc(100vh - var(--nav-height) - 5rem);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.article-rail-inner::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.article-rail-label {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(237, 244, 242, 0.4);
}

.article-rail-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding-left: 1rem;
}

.article-rail-nav::before {
  content: "";
  position: absolute;
  top: 0.15rem;
  bottom: 0.15rem;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
}

.article-rail-link {
  position: relative;
  display: block;
  padding: 0.2rem 0;
  color: rgba(237, 244, 242, 0.52);
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
  line-height: 1.35;
}

.article-rail-link::before {
  content: "";
  position: absolute;
  top: 0.75rem;
  left: -1rem;
  width: 0.42rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-50%);
  transition: width var(--transition-fast), background-color var(--transition-fast);
}

.article-rail-link:hover {
  color: rgba(237, 244, 242, 0.86);
  transform: translateX(2px);
}

.article-rail-link.is-active {
  color: rgba(255, 255, 255, 0.96);
}

.article-rail-link.is-active::before {
  width: 0.78rem;
  background: rgba(var(--accent-rgb), 0.72);
}

.article-rail-link--level-1,
.article-rail-link--level-2 {
  font-size: 0.9rem;
  font-weight: 500;
}

.article-rail-link--level-3 {
  font-size: 0.82rem;
  padding-left: 0.6rem;
}

.article-rail-link--level-4,
.article-rail-link--level-5,
.article-rail-link--level-6 {
  font-size: 0.78rem;
  padding-left: 1rem;
}

.article-detail-top {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1.8rem;
}

.article-detail-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.2rem;
  padding-bottom: 1.6rem;
  border-bottom: none;
}

.article-detail-header--artifact {
  margin-bottom: 2.6rem;
  padding-bottom: 0;
}

.article-detail-header--library {
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.article-detail-hero {
  position: relative;
  overflow: hidden;
  min-height: min(64vh, 520px);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(12, 14, 18, 0.96), rgba(6, 8, 10, 0.98));
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  box-shadow: 0 30px 85px rgba(0, 0, 0, 0.42);
}

.article-detail-hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
}

.article-detail-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 6, 8, 0.94) 0%, rgba(4, 6, 8, 0.72) 44%, rgba(4, 6, 8, 0.26) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.58) 100%);
}

.article-detail-hero-copy {
  position: relative;
  z-index: 1;
  min-height: min(64vh, 520px);
  width: min(58%, 720px);
  padding: clamp(1.5rem, 3vw, 2.8rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.95rem;
}

.article-detail-hero--no-cover .article-detail-hero-copy {
  width: 100%;
  min-height: 360px;
}

.article-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(237, 244, 242, 0.68);
  font-weight: 700;
}

.article-detail-kicker {
  padding: 0.25rem 0.6rem;
}

.article-detail-date {
  margin: 0;
  color: rgba(237, 244, 242, 0.68);
}

.article-detail-title {
  margin: 0;
  font-size: clamp(2.4rem, 3.2vw, 3.15rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
  font-family: var(--font-display);
}

.article-detail-header--artifact .article-detail-title {
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 0.98;
  max-width: 11ch;
}

.article-detail-header--library .article-detail-title {
  max-width: 14ch;
  font-size: clamp(2.2rem, 3.3vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.article-detail-subtitle {
  margin: 0;
  max-width: 48ch;
  color: rgba(237, 244, 242, 0.76);
  font-size: 1.02rem;
  line-height: 1.8;
}

.article-detail-body {
  color: rgba(237, 244, 242, 0.98);
  font-size: 1.2rem;
  line-height: 1.9;
  font-family: inherit;
  text-rendering: optimizeLegibility;
}

.article-detail-body--library {
  font-size: 1.08rem;
  line-height: 1.92;
}

.article-detail-body > *:first-child {
  margin-top: 0;
}

.article-detail-body img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.article-detail-body figure {
  margin: 2.2rem 0;
}

.article-detail-body figcaption {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: rgba(237, 244, 242, 0.6);
  text-align: center;
}

.article-detail-footer {
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  display: flex;
  justify-content: flex-start;
  border-top: none;
}

.article-back-button {
  padding: 0.65rem 1.3rem;
  text-decoration: none;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.article-back-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
}

.article-back-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 4px;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: var(--text);
  margin-top: 2.4rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-family: var(--font-display);
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.prose h1 {
  font-size: 2.05rem;
  margin-top: 2.8rem;
}

.prose h2 {
  font-size: 1.55rem;
}

.prose h3 {
  font-size: 1.25rem;
}

.prose h4 {
  font-size: 1.1rem;
}

.prose p {
  margin: 0 0 1.6rem;
  color: rgba(237, 244, 242, 0.96);
}

.article-detail-body--library.prose p,
.article-detail-body--library.prose ul,
.article-detail-body--library.prose ol,
.article-detail-body--library.prose blockquote {
  max-width: 42rem;
}

.prose a {
  color: #d8b4fe;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: #f0d9ff;
}

.prose ul,
.prose ol {
  margin: 0 0 1.6rem;
  padding-left: 1.6rem;
  font-size: 1.08rem;
  list-style-position: outside;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.6rem;
  color: rgba(237, 244, 242, 0.92);
  line-height: 1.7;
}

.prose li::marker {
  color: rgba(237, 244, 242, 0.8);
}

.prose blockquote {
  border-left: 2px solid rgba(var(--accent-rgb), 0.6);
  padding-left: 1.35rem;
  color: rgba(237, 244, 242, 0.92);
  font-style: italic;
  margin: 2rem 0;
  font-size: 1.1rem;
}

.prose blockquote p {
  margin: 0.7rem 0;
}

.prose code {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95rem;
}

.prose pre {
  background: rgba(0, 0, 0, 0.6);
  padding: 1.3rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.prose pre code {
  background: none;
  color: var(--text);
  padding: 0;
  border-radius: 0;
  font-size: 1rem;
}

.prose hr {
  border: none;
  height: 1px;
  margin: 2.2rem 0;
  background: rgba(255, 255, 255, 0.12);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1rem;
}

.prose th,
.prose td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.prose th {
  text-align: left;
  color: rgba(237, 244, 242, 0.82);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose em {
  font-style: italic;
  color: rgba(237, 244, 242, 0.9);
}

/* ------------------------------
   Footer
------------------------------ */

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.55);
}

footer h3 {
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.22em;
  font-weight: 600;
}

footer p {
  color: rgba(255, 255, 255, 0.78);
}

@media (prefers-reduced-motion: reduce), (update: slow) {
  .motion-reveal,
  .motion-reveal.is-visible {
    opacity: var(--reveal-final-opacity, 1);
    transform: none;
    transition: none;
    will-change: auto;
  }

  .motion-parallax,
  .home-slide-visual,
  .home-about-simple-media {
    transform: none;
  }

  .home-slide-visual::before,
  .home-slide-glass .home-slide-visual::after {
    display: none;
  }

  .artifact-tile,
  .tile-media,
  .tile-body,
  .cta-primary,
  .social-link,
  .carousel-btn,
  .motion-reveal {
    transition: none;
  }

  .artifact-slider {
    scroll-behavior: auto;
  }
}

/* ------------------------------
   Responsive tweaks
------------------------------ */

@media (max-width: 1200px) {
  :root {
    --container-width: 920px;
    --container-width-narrow: 900px;
    --section-space: 3.1rem;
    --article-detail-width: min(96ch, 94vw);
    --nav-height: 68px;
  }

  .hero-inner {
    max-width: 980px;
  }

  .hero .hero-large {
    font-size: 3.4rem;
  }

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

@media (max-width: 992px) {
  :root {
    --container-width: 880px;
    --container-width-narrow: 840px;
    --section-space: 2.9rem;
    --article-detail-width: min(88ch, 94vw);
    --nav-height: 64px;
  }

  .hero-inner {
    max-width: 880px;
  }

  .hero .hero-large {
    font-size: 3rem;
  }

  .hero p.lead {
    max-width: 90%;
    font-size: 1.12rem;
  }

  .hero {
    min-height: clamp(34rem, 74vh, 44rem);
    padding-top: clamp(5rem, calc(var(--nav-height) + 2.75rem), 6.5rem);
    padding-bottom: clamp(3.5rem, 8vh, 5rem);
  }

  .cta-primary {
    min-width: 200px;
  }

  .controls-row {
    grid-template-columns: 1fr;
  }

  .sort-control,
  .category-control {
    max-width: none;
    justify-self: stretch;
  }

  .artifact-layout {
    padding: 0;
    grid-template-columns: 1fr;
    grid-template-areas:
      "pinned"
      "main";
  }

  .pinned-sidebar {
    position: static;
    grid-area: pinned;
  }

  .article-detail-card {
    padding: 2.5rem 2.2rem 2.3rem;
  }

  .article-detail-layout--with-rail {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.5rem;
  }

  .article-detail-hero-copy {
    width: min(64%, 620px);
    padding: 1.8rem;
  }

}

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 2.5rem);
    padding-bottom: 3.5rem;
  }

  .hero .hero-large {
    font-size: 2.6rem;
  }

  .home-slide-visual::before,
  .home-slide-glass .home-slide-visual::after {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .nav-dropdown {
    display: inline-flex;
  }

  .artifact-slider {
    scroll-behavior: auto;
  }

  .article-detail {
    padding: 5.5rem 0 3.8rem;
  }

  .article-detail-shell {
    max-width: 100%;
    padding: 0 1.25rem;
  }

  .article-detail-layout--with-rail {
    grid-template-columns: 1fr;
  }

  .article-detail-card {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .article-detail-header--artifact {
    margin-bottom: 2rem;
  }

  .article-detail-hero {
    min-height: 360px;
    border-radius: 18px;
  }

  .article-detail-hero-copy {
    width: 100%;
    min-height: 360px;
    padding: 1.25rem;
    gap: 0.7rem;
    justify-content: flex-end;
  }

  .article-detail-header--artifact .article-detail-title {
    max-width: 100%;
    font-size: clamp(2.2rem, 8vw, 2.9rem);
  }

  .article-detail-subtitle {
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .article-rail {
    display: none;
  }

  .article-detail-title {
    font-size: clamp(2.05rem, 7vw, 2.55rem);
  }

  .article-detail-body {
    font-size: 1.12rem;
    line-height: 1.82;
  }

  .article-detail-body img {
    padding: 0.25rem;
    border-radius: 14px;
  }

  .hero p.lead {
    max-width: 100%;
    font-size: 1.02rem;
  }

  .artifact-tile {
    min-height: 220px;
  }

  .artifacts-simplified {
    padding: 2.8rem 0 3rem;
  }

  .artifact-pinned {
    display: none;
  }

  .artifact-page-title {
    font-size: 2.2rem;
  }

  .artifact-lead {
    font-size: 1rem;
  }

  .artifact-featured-tile {
    min-height: 360px;
    border-radius: 20px;
  }

  .artifact-featured-body {
    width: 100%;
    padding: 1.2rem;
    justify-content: flex-end;
    background: linear-gradient(180deg, rgba(4, 6, 8, 0.06) 0%, rgba(4, 6, 8, 0.88) 100%);
  }

  .artifact-featured-meta {
    gap: 0.45rem;
  }

  .artifact-featured-title {
    font-size: 2rem;
    max-width: 100%;
  }

  .artifact-featured-summary {
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .artifact-featured-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .artifact-featured-note {
    max-width: 100%;
    font-size: 0.88rem;
  }

  .artifact-shelf {
    margin-top: 1.1rem;
  }

  .artifact-gallery-page .artifact-tile.artifact-tile--no-cover {
    aspect-ratio: auto;
    min-height: 300px;
  }

  .artifact-gallery-page .artifact-catalog-card {
    aspect-ratio: auto;
    min-height: 300px;
  }

  .artifact-gallery-page .artifact-grid {
    grid-template-columns: 1fr;
  }

  .artifact-gallery-page .artifact-shelf-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .artifact-card-summary {
    font-size: 0.94rem;
  }

  .artifact-row {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .filters-row {
    flex-direction: column;
    align-items: stretch;
  }

  .category-control {
    display: flex;
  }

  .category-filters {
    display: none;
  }

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

  .pinned-panel {
    padding: 1.2rem;
  }

  .pinned-header {
    justify-content: center;
    text-align: center;
  }

  .pinned-heading {
    text-align: center;
  }

  .pinned-stack {
    gap: 0.9rem;
  }

  .pinned-mini {
    grid-template-columns: 1fr;
    padding: 0.95rem;
    text-align: center;
  }

  .pinned-mini-body {
    align-items: center;
  }

  .pinned-mini .tile-tag {
    align-self: center;
  }

  .pinned-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    order: -1;
  }

  .pinned-title {
    text-align: center;
  }


}
