:root {
  --bg: #0d0f12;
  --panel: rgba(18, 21, 25, 0.92);
  --panel-strong: rgba(24, 27, 32, 0.96);
  --panel-soft: rgba(255, 255, 255, 0.03);
  --ink: #f3f1ec;
  --muted: #b4b0aa;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #caa178;
  --accent-strong: #f2ba84;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top center, rgba(202, 161, 120, 0.1), transparent 22%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.04), transparent 20%),
    linear-gradient(180deg, #111418 0%, #0b0d10 100%);
}

.background-lights {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.light-beam,
.light-glow {
  position: absolute;
  will-change: transform;
}

.light-beam {
  top: -24vh;
  width: 34vw;
  height: 150vh;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.045),
    rgba(242, 186, 132, 0.075),
    rgba(255, 255, 255, 0)
  );
  filter: blur(16px);
  opacity: 0.42;
}

.light-beam-a {
  left: 10%;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) rotate(-24deg);
}

.light-beam-b {
  right: 4%;
  opacity: 0.22;
  transform: translate3d(calc(var(--mx, 0px) * -0.45), calc(var(--my, 0px) * -0.4), 0) rotate(18deg);
}

.light-glow {
  left: 50%;
  top: 6%;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(242, 186, 132, 0.1), transparent 68%);
  filter: blur(32px);
  transform: translate3d(calc(-50% + var(--mx, 0px) * 0.18), calc(var(--my, 0px) * 0.08), 0);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 82%);
}

.page-shell {
  width: min(100% - 28px, 1080px);
  margin: 0 auto;
  padding: 20px 0 60px;
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.78;
  transition: opacity 220ms ease;
}

.site-logo:hover {
  opacity: 1;
}

.site-nav a,
.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 200ms ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a.is-current {
  color: var(--ink);
}

.language-switcher {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lang-button {
  min-width: 48px;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
}

.lang-button.is-active {
  background: var(--ink);
  color: #101317;
}

.document {
  margin-top: 18px;
  padding: 42px min(5vw, 56px) 40px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24%),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  border-radius: 28px;
}

.opening,
.essay,
.statement,
.example-dream,
.invitation,
.process,
.share-section,
.site-footer {
  max-width: 780px;
  margin: 0 auto;
}

.opening {
  position: relative;
  padding: 18px 0 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: center;
}

.opening::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 180px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--accent), transparent);
}

.opening-copy {
  min-width: 0;
}

.dream-sculpture {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 24px 56px rgba(0, 0, 0, 0.4));
}

.dream-sculpture .shard {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1.4;
  stroke-linejoin: round;
  /* transform transition is set dynamically by JS for fast-in / slow-return feel */
  transition: stroke 300ms ease;
}

.dream-sculpture:hover .shard {
  stroke: rgba(220, 228, 238, 0.28);
}

em.hi {
  font-style: normal;
  color: var(--accent-strong);
}

.project-mark,
.section-mark {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 20px 0 0;
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4rem, 8vw, 6.6rem);
  line-height: 0.92;
  font-weight: 600;
  max-width: 11ch;
}

.opening-line {
  margin: 20px 0 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.9;
}

.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 28px;
  padding: 0 24px;
  border: 1px solid rgba(242, 186, 132, 0.42);
  background:
    linear-gradient(135deg, rgba(242, 186, 132, 0.2), rgba(242, 186, 132, 0.08)),
    rgba(255, 255, 255, 0.03);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  border-radius: 999px;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.cta-button::before {
  position: absolute;
  top: 0;
  left: -140%;
  width: 90%;
  height: 100%;
  content: "";
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.24),
    transparent
  );
  transition: left 340ms ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(242, 186, 132, 0.8);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.cta-button:hover::before,
.cta-button:focus-visible::before {
  left: 155%;
}

.cta-button-hero {
  margin-top: 32px;
}

.cta-button-center {
  margin-top: 24px;
}

.essay {
  margin-top: 54px;
}

.essay-body {
  display: grid;
  gap: 20px;
}

.essay-body p,
.example-meta,
.share-card p,
.process-item p,
.ethical-lead,
.ethical-list,
.site-footer p,
.site-footer a {
  font-size: 1rem;
  line-height: 1.95;
}

.essay-body p,
.share-card p,
.process-item p,
.ethical-lead {
  margin: 0;
}

.statement {
  margin-top: 48px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.statement p {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.02;
}

.statement p + p {
  margin-top: 6px;
}

.example-dream {
  margin-top: 56px;
}

.example-meta {
  margin: 10px 0 0;
  color: var(--muted);
}

blockquote {
  position: relative;
  margin: 20px 0 0;
  padding: 0 0 0 24px;
  border-left: 1px solid var(--line);
  overflow: hidden;
}

blockquote::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(242, 186, 132, 0.72), transparent);
  content: "";
  animation: drift-line 10s ease-in-out infinite;
}

blockquote p {
  margin: 0 0 16px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  line-height: 1.52;
  color: #f6f3ee;
}

.invitation {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.invitation p {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.14;
}

.process,
.share-section {
  margin-top: 42px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.process-item,
.share-card,
.logo-card,
.footer-ethics {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.process-item {
  padding: 18px;
}

.process-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid rgba(242, 186, 132, 0.22);
  background: rgba(242, 186, 132, 0.06);
  border-radius: 18px;
}

.process-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent-strong);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-card {
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 36%),
    var(--panel-strong);
}

.share-pub-block {
  margin-top: 24px;
  padding: 16px 20px;
  border-left: 2px solid var(--accent);
  background: rgba(202, 161, 120, 0.07);
  border-radius: 0 6px 6px 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink);
}

.share-pub-block a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(202, 161, 120, 0.35);
  transition: border-color 200ms ease;
}

.share-pub-block a:hover {
  border-color: var(--accent);
}

.share-list,
.ethical-list {
  margin: 14px 0 0;
  padding-left: 22px;
}

.share-list li,
.ethical-list li {
  margin: 8px 0;
  line-height: 1.8;
  color: var(--muted);
}

.site-footer {
  max-width: 1080px;
  margin: 30px auto 0;
  padding: 28px 28px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0.72;
  color: var(--muted);
}

.footer-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 4px;
}

.logo-card {
  display: grid;
  place-items: center;
  min-height: 108px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 38%),
    rgba(255, 255, 255, 0.012);
}

.logo-card img {
  max-width: 100%;
  height: 56px;
  object-fit: contain;
  opacity: 0.92;
}

.footer-ethics {
  margin-top: 24px;
  padding: 24px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.ethical-lead {
  margin-top: 12px;
  color: var(--muted);
}

.footer-privacy {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-privacy p {
  margin: 12px 0 0;
}

.footer-privacy a {
  display: inline-block;
  margin-top: 8px;
}

.footer-bottom-note {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-bottom-note p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(180, 176, 170, 0.72);
}

.privacy-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: rgba(180, 176, 170, 0.5);
  text-decoration: none;
  border-bottom: 1px solid rgba(180, 176, 170, 0.2);
  transition: color 200ms ease, border-color 200ms ease;
}

.privacy-link:hover {
  color: rgba(180, 176, 170, 0.85);
  border-color: rgba(180, 176, 170, 0.5);
}

/* ── Privacy page ────────────────────────────────────────── */

.privacy-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 18px 0 56px;
}

.privacy-title {
  margin: 20px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 0.95;
  font-weight: 600;
}

.privacy-body {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
}

.privacy-body p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--muted);
}

.privacy-body a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color 200ms ease;
}

.privacy-body a:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

.privacy-body ul {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 6px;
}

.privacy-body ul li {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--muted);
}

.scroll-type {
  --type-progress: 0;
}

.scroll-type .essay-body p,
.scroll-type .statement p,
.scroll-type blockquote p,
.scroll-type .invitation p,
.scroll-type .archive-coming-text,
.scroll-type .archive-coming-sub {
  color: transparent;
  background-image: linear-gradient(
    90deg,
    var(--ink) 0,
    var(--ink) calc(var(--type-progress) * 100%),
    rgba(179, 173, 166, 0.22) calc(var(--type-progress) * 100%),
    rgba(179, 173, 166, 0.22) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
}

.scroll-type .example-meta {
  opacity: calc(0.2 + var(--type-progress) * 0.8);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 900ms ease,
    transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}

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

@keyframes drift-line {
  0%,
  100% {
    transform: translateY(-10%);
    opacity: 0.25;
  }

  50% {
    transform: translateY(10%);
    opacity: 1;
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .dream-sculpture {
    max-height: 300px;
    order: -1;
  }

  .process-grid,
  .footer-logos {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 18px, 1080px);
    padding-top: 10px;
  }

  .document {
    padding: 30px 18px;
  }

  .header-controls,
  .header-controls {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    max-width: 100%;
  }

  .share-card,
  .footer-ethics {
    padding: 22px 18px;
  }

  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  blockquote {
    padding-left: 16px;
  }
}

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

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

  .scroll-type .essay-body p,
  .scroll-type .statement p,
  .scroll-type blockquote p,
  .scroll-type .invitation p,
  .scroll-type .archive-coming-text,
  .scroll-type .archive-coming-sub {
    color: inherit;
    background: none;
    -webkit-text-fill-color: currentColor;
  }

  .cta-button::before,
  blockquote::before {
    animation: none;
    transition: none;
  }

  .light-beam,
  .light-glow {
    display: none;
  }

  .archive-counter-number {
    animation: none;
  }
}

/* ── About page ─────────────────────────────────────────── */

.about-opening {
  position: relative;
  padding: 18px 0 40px;
  max-width: 780px;
  margin: 0 auto;
}

.about-opening::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 180px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--accent), transparent);
}

.about-opening-copy h1 {
  max-width: none;
}

.about-intro-text {
  margin: 22px 0 0;
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.9;
}

.about-persons {
  margin-top: 64px;
  display: grid;
  gap: 80px;
}

.person {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
  max-width: 780px;
  margin: 0 auto;
}

.person-alt {
  grid-template-columns: 1fr 300px;
}

.person-alt .person-portrait {
  grid-column: 2;
  grid-row: 1;
}

.person-alt .person-info {
  grid-column: 1;
  grid-row: 1;
}

.person-portrait {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}

.person-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(12%) contrast(0.96) brightness(0.9);
  display: block;
}

.person-portrait::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(ellipse at center 30%, transparent 52%, rgba(0, 0, 0, 0.38) 100%);
  pointer-events: none;
}

.person-info {
  padding-top: 6px;
}

.person-location {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.person-name {
  margin: 12px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 0.98;
  color: var(--ink);
  font-weight: 600;
}

.person-role {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.person-affiliation {
  margin: 6px 0 0;
  color: rgba(180, 176, 170, 0.56);
  font-size: 0.86rem;
  line-height: 1.7;
}

.person-bio {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.person-bio p {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--muted);
}

.person-bio p:last-child {
  margin-bottom: 0;
}

.about-institutions {
  margin: 72px auto 0;
  padding-top: 48px;
  border-top: 1px solid var(--line);
  max-width: 780px;
}

.about-logos {
  margin-top: 18px;
}

/* ── Archive page ────────────────────────────────────────── */

.archive-hero {
  position: relative;
  padding: 18px 0 40px;
  max-width: 780px;
  margin: 0 auto;
}

.archive-hero::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 180px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--accent), transparent);
}

.archive-hero h1 {
  max-width: none;
}

.archive-description {
  margin: 22px 0 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.9;
}

.archive-coming {
  margin: 56px auto 0;
  max-width: 780px;
}

.archive-coming-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 40px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 36%),
    var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.archive-counter {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.archive-counter-number {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(5rem, 12vw, 8rem);
  line-height: 1;
  color: var(--ink);
  font-weight: 600;
  opacity: 0.22;
  animation: archive-pulse 6s ease-in-out infinite;
}

.archive-counter-label {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}

.archive-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 28px 0;
}

.archive-coming-text {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  color: var(--ink);
}

.archive-coming-sub {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.archive-what {
  margin: 56px auto 0;
  max-width: 780px;
}

.archive-what .essay-body {
  margin-top: 18px;
}

@keyframes archive-pulse {
  0%, 100% { opacity: 0.16; }
  50% { opacity: 0.32; }
}

@media (max-width: 860px) {
  .person,
  .person-alt {
    grid-template-columns: 1fr;
  }

  .person-alt .person-portrait,
  .person-alt .person-info {
    grid-column: auto;
    grid-row: auto;
  }

  .person-portrait {
    max-height: 380px;
    aspect-ratio: auto;
  }

  .person-portrait img {
    height: 380px;
  }
}

@media (max-width: 720px) {
  .archive-coming-inner {
    padding: 28px 22px;
  }

  .about-institutions {
    margin-top: 48px;
    padding-top: 32px;
  }
}
