/* Shared navigation keeps membership and sign-in accessible on every public page. */
:root {
  --copper: #f2b293;
  --night: #17131d;
  --mist: #e0c9ef;
}
.mast .bar {
  gap: 22px;
  min-height: 78px;
}
.mast nav {
  gap: clamp(12px, 1.8vw, 30px);
}
.join-link,
.member-link {
  white-space: nowrap;
}
.mast .join-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 10px 16px;
  border-radius: 28px;
  color: white;
  background: #332539;
  transition:
    transform 0.22s,
    background 0.22s;
}
.join-link:hover {
  transform: translateY(-2px);
}
.mast a:focus-visible,
.intro-page button:focus-visible,
.sculpture canvas:focus-visible {
  outline: 2px solid #b687db;
  outline-offset: 4px;
}
.intro-page {
  color: #f9f2ec;
  background: var(--night);
}
.intro-page .mast {
  position: relative;
  z-index: 3;
  border-color: #39303c;
  background: #18141c;
}
.intro-page .mast .brand,
.intro-page nav > a {
  color: #f8f0eb;
}
.intro-page .brand-dot {
  color: var(--copper);
}
.intro-page .mast .join-link {
  background: #ebd3bf;
  color: #241a26;
}
.intro-page .mast .join-link:hover {
  background: #ffdfc4;
}
.intro-page .nav-link[href="/"] {
  text-decoration: underline;
  text-decoration-color: #c68d86;
  text-underline-offset: 8px;
}
.intro-page .mobile-menu div {
  background: #292031;
  border-color: #524257;
  color: #f9f1ec;
}
.introduction {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(
    ellipse at 78% 52%,
    #39283b 0%,
    #231c2a 35%,
    #17131c 68%
  );
}
.intro-layout {
  width: min(1450px, 91%);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  min-height: clamp(560px, calc(100svh - 155px), 930px);
  position: relative;
}
.intro-story {
  position: relative;
  z-index: 1;
  padding: clamp(45px, 6vw, 95px) 0;
}
.intro-label {
  margin: 0 0 clamp(20px, 3vw, 42px);
  font:
    650 0.68rem/1.4 "DM Sans",
    "Segoe UI",
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #decbd6;
}
.signal {
  width: 30px;
  height: 1px;
  background: #e6a688;
}
.intro-story h1 {
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(4.7rem, 8.8vw, 9.5rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.085em;
  margin: 0 0 24px;
  white-space: nowrap;
}
.intro-story h1 em {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: var(--copper);
  letter-spacing: -0.08em;
}
.intro-description {
  color: #f0e6e4;
  font-size: clamp(1.15rem, 1.8vw, 1.7rem);
  font-weight: 440;
  line-height: 1.43;
  letter-spacing: -0.035em;
  max-width: 27ch;
  margin: 0 0 15px;
}
.intro-purpose {
  color: #c6b9c5;
  font-size: clamp(0.95rem, 1.18vw, 1.1rem);
  line-height: 1.66;
  max-width: 43ch;
  margin: 0;
}
.intro-links {
  display: flex;
  align-items: center;
  margin-top: 30px;
}
.enter-link {
  display: inline-flex;
  gap: 25px;
  align-items: center;
  border: 1px solid #a68c9d;
  background: rgba(48, 36, 51, 0.5);
  color: #fff4eb;
  border-radius: 40px;
  padding: 13px 22px;
  font-size: 0.94rem;
  text-decoration: none;
  font-weight: 620;
  transition:
    transform 0.22s,
    background 0.22s;
}
.enter-link:hover {
  transform: translateY(-2px);
  background: #493447;
}
.enter-link span {
  color: var(--copper);
}
.sculpture {
  width: 108%;
  margin: 0 0 0 -3%;
  position: relative;
  align-self: center;
}
.model {
  position: relative;
  width: 100%;
  aspect-ratio: 1.05;
  max-height: 71svh;
  min-height: 360px;
}
.model canvas,
.model-poster {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.model-poster {
  object-fit: contain;
}
.model canvas {
  opacity: 0;
  cursor: grab;
  touch-action: pan-y;
  border-radius: 10px;
}
.live .model canvas {
  opacity: 1;
}
.live .model-poster {
  visibility: hidden;
}
.dragging .model canvas {
  cursor: grabbing;
}
.sculpture-light {
  position: absolute;
  pointer-events: none;
  inset: 9% 6% 12%;
  background: radial-gradient(ellipse at 52% 46%, #8a5a7138, transparent 68%);
  filter: blur(18px);
}
.scene-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 13px;
  color: #cbbdc9;
  font:
    0.76rem/1.4 "DM Sans",
    "Segoe UI",
    sans-serif;
  margin: 0 auto 18px;
}
.scene-controls[hidden] {
  display: none;
}
.key-hint {
  color: #b6a4b9;
}
.scene-controls button {
  background: transparent;
  color: #e7dce3;
  border: 1px solid #625063;
  border-radius: 18px;
  padding: 5px 11px;
  font: inherit;
}
.scene-controls button:hover {
  background: #423245;
}
.intro-page .footer {
  color: #bbacbd;
  border-color: #3b303d;
}
.intro-page .footer a {
  color: #e2d4df;
}
.topic-reading {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 5vw, 70px);
  margin: 32px 0;
  padding: 24px 0;
  border-block: 1px solid var(--rule);
}
.topic-reading h2 {
  font-size: 1.25rem;
}
.topic-reading p {
  line-height: 1.7;
  color: var(--muted);
  max-width: 50ch;
}
.topic-card strong {
  grid-row: 1;
  grid-column: 1;
}
.topic-card span {
  grid-row: 2;
  grid-column: 1/-1;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.97rem;
  font-weight: 400;
}
.topic-card b {
  grid-row: 1;
}
.subject-page .industry-card {
  transition:
    transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1),
    box-shadow 0.28s,
    border-color 0.28s;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .subject-page .industry-card:hover {
    transform: perspective(850px) rotateX(2deg) rotateY(-2deg) translateY(-4px);
    box-shadow: 0 13px 25px #3d234215;
    border-color: #be9fbc;
  }
}
@keyframes enter-copy {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .intro-story,
  .subject-page main {
    animation: enter-copy 0.6s cubic-bezier(0.2, 0.75, 0.24, 1) both;
  }
  @view-transition {
    navigation: auto;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.22s;
  }
}
@media (max-width: 960px) {
  .mast .nav-link {
    display: none;
  }
  .mast .mobile-menu {
    display: block;
  }
  .intro-layout {
    grid-template-columns: 0.95fr 1.05fr;
  }
  .intro-story h1 {
    font-size: clamp(4.5rem, 9.7vw, 6.2rem);
  }
}
@media (max-width: 680px) {
  .mast .bar {
    min-height: 64px;
    gap: 10px;
  }
  .mast nav {
    gap: 10px;
  }
  .intro-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
  .intro-story {
    padding: 43px 0 0;
  }
  .intro-story h1 {
    font-size: clamp(4.4rem, 16.8vw, 6.6rem);
    margin-bottom: 14px;
  }
  .intro-label {
    margin-bottom: 18px;
  }
  .intro-description {
    font-size: 1.22rem;
    max-width: 32ch;
  }
  .intro-purpose {
    font-size: 0.95rem;
    max-width: 46ch;
  }
  .intro-links {
    margin-top: 18px;
  }
  .sculpture {
    width: 100%;
    margin: 0;
  }
  .model {
    width: 100%;
    height: clamp(265px, 82vw, 430px);
    min-height: 0;
    max-height: none;
  }
  .scene-controls {
    margin: 0 0 24px;
    font-size: 0.72rem;
  }
  .key-hint {
    display: none;
  }
  .topic-reading {
    grid-template-columns: 1fr;
  }
  .introduction {
    background: radial-gradient(ellipse at 65% 70%, #35283a 0%, #19151e 65%);
  }
}
@media (max-width: 520px) {
  .mast .bar {
    display: grid;
    grid-template-columns: auto 1fr;
    padding-block: 9px;
    row-gap: 2px;
  }
  .mast nav {
    display: contents;
  }
  .mast .mobile-menu {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .mast .mobile-menu summary {
    padding: 9px;
  }
  .mast .join-link {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    padding: 6px 12px;
    font-size: 0.77rem;
  }
  .mast .member-link {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    padding: 7px 9px;
    font-size: 0.8rem;
  }
  .mast .mobile-menu div {
    z-index: 8;
  }
}
.subject-page .mast {
  position: relative;
  z-index: 4;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
}
